Commit bbbec7dc by 匡雅琴

跟进专员

1 parent 5ed583fe
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</el-form-item> </el-form-item>
<el-form-item label="负责的业务类型"> <el-form-item label="负责的业务类型">
<el-checkbox-group v-model="selectBusiness" @change="selectType"> <el-checkbox-group v-model="selectBusiness" @change="selectType">
<el-checkbox v-for="item in businessType" :key="item" :label="item.id">{{ item.businessName }}</el-checkbox> <el-checkbox :disabled="(typeIndex == 0 && item.id != 1) || (typeIndex == 1 && item.id == 1)" v-for="item in businessType" :key="item" :label="item.id">{{ item.businessName }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
<el-form-item style="text-align: center"> <el-form-item style="text-align: center">
...@@ -74,6 +74,15 @@ export default { ...@@ -74,6 +74,15 @@ export default {
selectBusiness: [] selectBusiness: []
} }
}, },
watch: {
typeIndex(val) {
if (val == 0) {
this.selectBusiness = [1]
} else {
this.selectBusiness = []
}
}
},
methods: { methods: {
init() { init() {
this.newTag = '' this.newTag = ''
...@@ -88,13 +97,14 @@ export default { ...@@ -88,13 +97,14 @@ export default {
// 获取业务类型 // 获取业务类型
getBusinessType() { getBusinessType() {
this.$apis.emp.getListEntBusinessType().then(res => { this.$apis.emp.getListEntBusinessType().then(res => {
console.log(res,'111'); console.log(res, '111')
this.businessType = res this.businessType = res
this.selectBusiness = [1]
}) })
}, },
// 选取业务类型 // 选取业务类型
selectType(data) { selectType(data) {
console.log(data, 'businessType'); console.log(data, 'businessType')
this.selectBusiness = data this.selectBusiness = data
}, },
selectTable(val) { selectTable(val) {
...@@ -197,8 +207,7 @@ export default { ...@@ -197,8 +207,7 @@ export default {
}, },
mounted() { mounted() {
this.listEntFollowerType(), this.listEntFollowerType(), this.getBusinessType()
this.getBusinessType()
} }
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!