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

$nextTick!!!!

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