[update] 修改企标制修订自动发起的回显

This commit is contained in:
lideqin
2023-12-27 17:48:52 +08:00
parent 98252484c5
commit 483769629b
2 changed files with 50 additions and 11 deletions
@@ -114,7 +114,7 @@ export default {
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
initData (data) {
// 给表格赋值,在线编辑不知道要怎么赋值?
this.dataSource = data.otherDraftUserVOS
this.dataSource = data.otherDraftUserVOS || []
// 给表单赋值
this.$nextTick(() => {
this.$refs.baseInfoForm.initData(data)
@@ -124,7 +124,7 @@ export default {
getData () {
// 把数据抛出,在线编辑不知道要不要抛
const data = {}
data.otherDraftUserVOS = this.dataSource
data.otherDraftUserVOS = this.dataSource || []
data.businessJson = JSON.stringify(this.$refs.baseInfoForm.getData())
return data
},
@@ -135,7 +135,7 @@ export default {
if (formData) {
// 有数据可以抛出
const data = {}
data.otherDraftUserVOS = this.dataSource
data.otherDraftUserVOS = this.dataSource || []
data.formInline = formData.formInline
return data
} else {