Commit bbbec7dc by 匡雅琴

跟进专员

1 parent 5ed583fe
......@@ -38,8 +38,8 @@
</el-form-item>
<el-form-item label="负责的业务类型">
<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-group>
<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-form-item>
<el-form-item style="text-align: center">
<el-button @click="onCancel" size="small">取消</el-button>
......@@ -74,6 +74,15 @@ export default {
selectBusiness: []
}
},
watch: {
typeIndex(val) {
if (val == 0) {
this.selectBusiness = [1]
} else {
this.selectBusiness = []
}
}
},
methods: {
init() {
this.newTag = ''
......@@ -88,20 +97,21 @@ export default {
// 获取业务类型
getBusinessType() {
this.$apis.emp.getListEntBusinessType().then(res => {
console.log(res,'111');
console.log(res, '111')
this.businessType = res
this.selectBusiness = [1]
})
},
// 选取业务类型
selectType(data) {
console.log(data, 'businessType');
console.log(data, 'businessType')
this.selectBusiness = data
},
selectTable(val) {
this.innerTags = val
},
listEntFollowerType() {
const merchantId = this.$globalState.session.merchantId
const merchantId = this.$globalState.session.merchantId
this.$apis.emp.listEntFollowerType({ merchantId }).then(res => {
this.empType = res
this.empTypeF = res.filter(item => item.commonFlag)
......@@ -197,11 +207,10 @@ export default {
},
mounted() {
this.listEntFollowerType(),
this.getBusinessType()
this.listEntFollowerType(), this.getBusinessType()
}
}
</script>
</script>
<style scoped lang="scss">
.drawer-sale-panel {
......@@ -318,4 +327,4 @@ export default {
height: 32px;
line-height: 32px;
}
</style>
\ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!