Commit 44e6d5fc authored by huangjie's avatar huangjie

*

parent 2f345cd0
......@@ -313,9 +313,18 @@
}
},
created() {
this.getCustomerList()
this.getDictType()
this.prvinceTree()
this.$watch(
() => this.$route.params,
() => {
this.getCustomerList()
this.getDictType()
this.prvinceTree()
this.searchParam.companyName=''
},
// 组件创建完后获取数据,
// 此时 data 已经被 observed 了
{ immediate: true }
)
},
methods:{
sq1(item,sq){
......
......@@ -243,8 +243,13 @@ export default {
}
},
created() {
this.getCustomerList()
this.getDictType()
this.$watch(
() => this.$route.params,
() => {
this.getCustomerList()
this.getDictType()
this.searchParam.companyName = ''
},{ immediate: true })
},
methods:{
sq1(item,sq){
......
......@@ -202,6 +202,16 @@
save(){
let param = JSON.parse(JSON.stringify(this.queryParam))
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){
editLXR(param).then(result=>{
if(result.code == 200){
......
......@@ -40,21 +40,33 @@
sortable
label="对接深度/竞争力度"
>
<template slot-scope="scope">
{{scope.row.depth || '--'}}
</template>
</el-table-column>
<el-table-column
prop="companyRole"
label="企业角色"
width="">
<template slot-scope="scope">
{{scope.row.companyRole || '--'}}
</template>
</el-table-column>
<el-table-column
prop="responsiblePerson"
label="负责人"
width="">
<template slot-scope="scope">
{{scope.row.responsiblePerson || '--'}}
</template>
</el-table-column>
<el-table-column
prop="responsiblePerson"
label="负责人联系方式"
width="">
<template slot-scope="scope">
{{scope.row.responsiblePerson || '--'}}
</template>
</el-table-column>
<el-table-column
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