|
|
@@ -17,7 +17,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="$route.path === '/projectChangeDetail' || $route.path === '/customerDetail' || $route.path === '/PublicCustomerDetail'" :label="$t(`跟进对象`)" prop="dataextend.contactsid" :rules="{ required: true, message: $t('请选择跟进对象'), trigger: 'change'}">
|
|
|
+ <el-form-item v-if="$route.path === '/projectChangeDetail' || $route.path === '/customerDetail' || $route.path === '/PublicCustomerDetail'" :label="$t(`跟进对象`)" prop="dataextendContactsid" :rules="{ required: true, message: $t('请选择跟进对象'), trigger: 'change'}">
|
|
|
<el-tag
|
|
|
style="float: left;margin-right: 5px;margin-bottom: 5px"
|
|
|
v-for="tag in selectTag"
|
|
|
@@ -91,6 +91,7 @@ export default {
|
|
|
form:{
|
|
|
content:'',
|
|
|
type:'',
|
|
|
+ dataextendContactsid:[],
|
|
|
dataextend: {
|
|
|
contactsid: [] // 跟进对象
|
|
|
}//扩展参数
|
|
|
@@ -190,13 +191,17 @@ export default {
|
|
|
onSelect(row){
|
|
|
this.selectTag = row
|
|
|
this.form.dataextend.contactsid = row.map(item=>item.sys_phonebookid)
|
|
|
- this.$refs.form.validateField('dataextend.contactsid')
|
|
|
+ this.form.dataextendContactsid = this.form.dataextend.contactsid
|
|
|
+ console.log(this.form.dataextend.contactsid,'33333')
|
|
|
+ console.log(this.form.dataextendContactsid)
|
|
|
+ this.$refs.form.validateField('dataextendContactsid')
|
|
|
},
|
|
|
closeTag(row){
|
|
|
for (var i=0;i<this.selectTag.length;i++){
|
|
|
if (row.contactsid === this.selectTag[i].contactsid){
|
|
|
this.selectTag.splice(i,1)
|
|
|
this.form.dataextend.contactsid.splice(i,1)
|
|
|
+ this.form.dataextendContactsid.splice(i,1)
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
@@ -205,6 +210,7 @@ export default {
|
|
|
this.dialogFormVisible = false
|
|
|
this.selectTag = []
|
|
|
this.form.dataextend.contactsid = []
|
|
|
+ this.form.dataextendContactsid = []
|
|
|
this.$refs.form.resetFields()
|
|
|
}
|
|
|
}
|