Commit 68a921f4 authored by 吴冠's avatar 吴冠

11.05

parent cf2aa8a0
...@@ -87,6 +87,10 @@ export default { ...@@ -87,6 +87,10 @@ export default {
}, },
getDistrict() { getDistrict() {
this.$emit('senddistrictId', this.districtId) this.$emit('senddistrictId', this.districtId)
},
/* 给id传中文值 */
init(){
} }
} }
} }
......
...@@ -17,13 +17,14 @@ ...@@ -17,13 +17,14 @@
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import {getMessagephone} from '@/common/list.js' import {getMessagephone} from '@/common/list.js'
export default { export default {
mounted(){ mounted(){
getMessagephone() getMessagephone().then(res => {
console.log("111111111111") this.footList[3].list[0].name=`客服联系电话 : ${res.data.phone}`
this.footList[3].list[1].name=`电子邮箱 : ${res.data.email}`
});
}, },
data() { data() {
return { return {
...@@ -54,20 +55,13 @@ import {getMessagephone} from '@/common/list.js' ...@@ -54,20 +55,13 @@ import {getMessagephone} from '@/common/list.js'
/* */ /* */
{ {
title: "联系方式", title: "联系方式",
list: [{name:"客服联系电话 : 13810057696"}, {name:"电子邮箱: 13810057696@139.com"},] list: [{name:"客服联系电话 : "}, {name:"电子邮箱: "},]
}, },
] ]
} }
}, },
mothods:{ mothods:{
async getMessagephone(){
console.log("111111111111")
const {data} = await getMessagephone()
console.log(data)
console.log("111111111111")
this.footList[3].list[0].name=`客服联系电话 : ${data.phone}`
this.footList[3].list[1].name=`电子邮箱 : ${data.email}`
}
} }
} }
</script> </script>
......
...@@ -1116,11 +1116,32 @@ export default { ...@@ -1116,11 +1116,32 @@ export default {
this.perfectForm.businessScope = data.businessScope this.perfectForm.businessScope = data.businessScope
this.comId = data.id/* 储存公司Id */ this.comId = data.id/* 储存公司Id */
this.form.type=data.type this.form.type=data.type
if(this.form.type==1){
this.form.type='采购商'
}else{
this.from.type="供应商"
}
console.log(data.type+'11111111111') console.log(data.type+'11111111111')
this.comType = data.type /* 采购商或供应商 */ this.comType = data.type /* 采购商或供应商 */
this.proId = data.provinceId this.proId = data.provinceId
this.citId = data.cityId this.citId = data.cityId
this.disId = data.districtId this.disId = data.districtId
/* if(this.form.provinceId=this.proId){
this.form.provinceId = sessionStorage.getItem("proName")
}
if(this.form.cityId=this.citId){
this.form.provinceId = sessionStorage.getItem("cityName")
}
if(this.form.districtId=this.disId){
this.form.provinceId = sessionStorage.getItem("disName")
} */
this.adminform.name = data.contacts.userName
this.adminform.idNumber = data.contacts.idNumber
this.adminform.email = data.contacts.email
this.adminform.phonenumber = data.contacts.phoneNumber
for(let item of data.fileList){ for(let item of data.fileList){
item.url=item.fileUrl item.url=item.fileUrl
item.name=item.fileName item.name=item.fileName
...@@ -1251,6 +1272,10 @@ export default { ...@@ -1251,6 +1272,10 @@ export default {
var { data, code, msg } = await getPutInfo(perfectForm); var { data, code, msg } = await getPutInfo(perfectForm);
if (code === 200) { if (code === 200) {
this.$message.success(msg); this.$message.success(msg);
/* sessionStorage.setItem("proName",this.form.provinceId)
sessionStorage.setItem("cityName",this.form.cityId)
sessionStorage.setItem("disName",this.form.districtId) */
this.active++; this.active++;
}else{ }else{
this.$message.error(error) this.$message.error(error)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment