[update] 联调联络人管理
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<!-- 部门名称 -->
|
||||
<a-col :span="6">
|
||||
<a-form-item :label="$t('system.contact.departName')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-input :placeholder="$t('pleaseEnter')+$t('system.contact.departName')" v-model="queryParam.departName"></a-input>
|
||||
<j-input :placeholder="$t('pleaseEnter')+$t('system.contact.departName')" v-model="queryParam.departName"></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
@@ -109,7 +109,8 @@ export default {
|
||||
}
|
||||
],
|
||||
url: {
|
||||
list: '/laws/system/lawsContactManage/page'
|
||||
list: '/laws/system/lawsContactManage/page',
|
||||
delete: '/laws/system/lawsContactManage/delete'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
v-decorator.trim="[ 'departId', validatorRules.departId]"
|
||||
:multi="false"
|
||||
:backDepart="true"
|
||||
:treeOpera="true">
|
||||
:treeOpera="true"
|
||||
@back="departBack">
|
||||
</j-select-depart>
|
||||
</a-form-item>
|
||||
<!-- 标准化工程师 -->
|
||||
@@ -124,6 +125,10 @@ export default {
|
||||
this.form.setFieldsValue(pick(this.model, 'departId', 'engineerId', 'contactId', 'leaderId'))
|
||||
})
|
||||
},
|
||||
// 部门选择完成的回调
|
||||
departBack (value) {
|
||||
this.model.departName = value.map(item => item.text).join(',')
|
||||
},
|
||||
// 选择用户得到用户名
|
||||
userSelectNameChange (value, fieldName) {
|
||||
this.model[fieldName + '_dictText'] = value
|
||||
@@ -137,6 +142,7 @@ export default {
|
||||
if (!err) {
|
||||
this.confirmLoading = true
|
||||
const param = Object.assign({}, values)
|
||||
param.departName = this.model.departName
|
||||
let url = ''
|
||||
if (this.model.id) {
|
||||
url = this.url.edit
|
||||
|
||||
Reference in New Issue
Block a user