Commit 44e6d5fc authored by huangjie's avatar huangjie

*

parent 2f345cd0
...@@ -313,9 +313,18 @@ ...@@ -313,9 +313,18 @@
} }
}, },
created() { created() {
this.getCustomerList() this.$watch(
this.getDictType() () => this.$route.params,
this.prvinceTree() () => {
this.getCustomerList()
this.getDictType()
this.prvinceTree()
this.searchParam.companyName=''
},
// 组件创建完后获取数据,
// 此时 data 已经被 observed 了
{ immediate: true }
)
}, },
methods:{ methods:{
sq1(item,sq){ sq1(item,sq){
......
...@@ -243,8 +243,13 @@ export default { ...@@ -243,8 +243,13 @@ export default {
} }
}, },
created() { created() {
this.getCustomerList() this.$watch(
this.getDictType() () => this.$route.params,
() => {
this.getCustomerList()
this.getDictType()
this.searchParam.companyName = ''
},{ immediate: true })
}, },
methods:{ methods:{
sq1(item,sq){ sq1(item,sq){
......
...@@ -202,6 +202,16 @@ ...@@ -202,6 +202,16 @@
save(){ save(){
let param = JSON.parse(JSON.stringify(this.queryParam)) let param = JSON.parse(JSON.stringify(this.queryParam))
param.sex = parseInt(param.sex) param.sex = parseInt(param.sex)
if(!this.queryParam.phone){
this.$message.error('请输入电话号码')
return false
}
var regPartton = /1[3-9]+\d{9}/;
var regPartton1 = /0\d{2,3}-\d{7,8}|\(?0\d{2,3}[)-]?\d{7,8}|\(?0\d{2,3}[)-]*\d{7,8}/;
if (!regPartton.test(this.queryParam.phone) && !regPartton1.test(this.queryParam.phone)) {
this.$message.error("请输入正确的电话");
return false
}
if(this.isnew == false){ if(this.isnew == false){
editLXR(param).then(result=>{ editLXR(param).then(result=>{
if(result.code == 200){ if(result.code == 200){
......
...@@ -40,21 +40,33 @@ ...@@ -40,21 +40,33 @@
sortable sortable
label="对接深度/竞争力度" label="对接深度/竞争力度"
> >
<template slot-scope="scope">
{{scope.row.depth || '--'}}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="companyRole" prop="companyRole"
label="企业角色" label="企业角色"
width=""> width="">
<template slot-scope="scope">
{{scope.row.companyRole || '--'}}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="responsiblePerson" prop="responsiblePerson"
label="负责人" label="负责人"
width=""> width="">
<template slot-scope="scope">
{{scope.row.responsiblePerson || '--'}}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="responsiblePerson" prop="responsiblePerson"
label="负责人联系方式" label="负责人联系方式"
width=""> width="">
<template slot-scope="scope">
{{scope.row.responsiblePerson || '--'}}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="responsiblePerson" prop="responsiblePerson"
......
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