Commit 8a0a1e1e authored by 张伯涛's avatar 张伯涛

$nextTick!!!!

parent 65b57bdf
......@@ -141,7 +141,9 @@ export default {
watch: {
'fatherType': function(val) {
if (val === 'project') {
this.$nextTick(() => {
this.getList()
})
}
}
},
......
......@@ -33,7 +33,7 @@
label="参与二级单位"
prop="ZCY2NDORG"
>
<el-select v-model="form.ZCY2NDORG" clearable placeholder="请选择">
<el-select v-model="form.ZCY2NDORG" multiple style="width: 100%" clearable placeholder="请选择">
<el-option
v-for="item in secondUnitOptions"
:key="item.OID"
......@@ -1670,6 +1670,9 @@ export default {
console.log('获取详情', list)
this.ZBZTList.push(list)
}
if (formList.ZCY2NDORG) {
formList.ZCY2NDORG = formList.ZCY2NDORG.split(',')
}
this.form = {
BUSINESSID: formList.BUSINESSID,
ZFUNDNAME: formList.ZFUNDNAME,
......@@ -1865,6 +1868,7 @@ export default {
this.addLoading = true
this.form.ZAWARDMAINAME = this.ZBZTList.map(item => item.ZBPNAME_ZH).join(',')
this.form.ZAWARDMAI = this.ZBZTList.map(item => item.ZBP).join(',')
this.form.ZCY2NDORG = this.form.ZCY2NDORG.length ? this.form.ZCY2NDORG.join(',') : ''
const formList = this.form
// form 表单截取部分数据 以便新增或修改
this.form = {
......
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