[update] 修改企标流程保存后回显的bug
This commit is contained in:
+1
-1
@@ -343,7 +343,7 @@ export default {
|
|||||||
this.$refs.baseInfoFormRef.initData(this.model)
|
this.$refs.baseInfoFormRef.initData(this.model)
|
||||||
} else if (this.currentNode === 2) {
|
} else if (this.currentNode === 2) {
|
||||||
// 节点2草稿情况下需要回显数据
|
// 节点2草稿情况下需要回显数据
|
||||||
if (type === 'draft') {
|
if (this.model.infoJsonStr) {
|
||||||
this.$refs.baseInfoFormRef.initData(this.model)
|
this.$refs.baseInfoFormRef.initData(this.model)
|
||||||
}
|
}
|
||||||
} else if (this.currentNode === 3) {
|
} else if (this.currentNode === 3) {
|
||||||
|
|||||||
+10
-8
@@ -72,14 +72,16 @@ export default {
|
|||||||
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
||||||
initData (data) {
|
initData (data) {
|
||||||
console.log('&&&&&&&&&&&&7', data)
|
console.log('&&&&&&&&&&&&7', data)
|
||||||
// 给表单赋值
|
if (data.dataList && data.dataList.length > 0) {
|
||||||
this.formInline.collectUserLeader = data.dataList[0].collectUserLeader
|
// 给表单赋值
|
||||||
this.formInline.collectUserLeader_dictText = data.dataList[0].collectUserLeader_dictText
|
this.formInline.collectUserLeader = data.dataList[0].collectUserLeader
|
||||||
this.formInline = Object.assign({}, this.formInline)
|
this.formInline.collectUserLeader_dictText = data.dataList[0].collectUserLeader_dictText
|
||||||
// 给表格赋值
|
this.formInline = Object.assign({}, this.formInline)
|
||||||
this.$nextTick(() => {
|
// 给表格赋值
|
||||||
this.$refs.tableRef.initData(data)
|
this.$nextTick(() => {
|
||||||
})
|
this.$refs.tableRef.initData(data)
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
initTableData (data) {
|
initTableData (data) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
+4
@@ -204,6 +204,7 @@ export default {
|
|||||||
dataIndex: 'approvalUser',
|
dataIndex: 'approvalUser',
|
||||||
customRender: (value, row, index) => {
|
customRender: (value, row, index) => {
|
||||||
return <user-selection v-model={this.dataSource[index].approvalUser}
|
return <user-selection v-model={this.dataSource[index].approvalUser}
|
||||||
|
filedName={index + ''} onNameChange={this.userNameChange}
|
||||||
nameStr={this.dataSource[index].approvalUser_dictText}
|
nameStr={this.dataSource[index].approvalUser_dictText}
|
||||||
disabled={this.disabled} type={'radio'} placeholder={this.$t('pleaseSelect')} />
|
disabled={this.disabled} type={'radio'} placeholder={this.$t('pleaseSelect')} />
|
||||||
}
|
}
|
||||||
@@ -318,6 +319,9 @@ export default {
|
|||||||
// 选人的名字获取
|
// 选人的名字获取
|
||||||
userSelectNameChange (value) {
|
userSelectNameChange (value) {
|
||||||
this.selectNames = value
|
this.selectNames = value
|
||||||
|
},
|
||||||
|
userNameChange (value, fieldName) {
|
||||||
|
this.dataSource[Number(fieldName)].approvalUser_dictText = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
@@ -195,6 +195,7 @@ export default {
|
|||||||
dataIndex: 'drafter',
|
dataIndex: 'drafter',
|
||||||
customRender: (value, row, index) => {
|
customRender: (value, row, index) => {
|
||||||
return <user-selection v-model={this.dataSource[index].prcMainDraftUser}
|
return <user-selection v-model={this.dataSource[index].prcMainDraftUser}
|
||||||
|
filedName={index + ''} onNameChange={this.userNameChange}
|
||||||
nameStr={this.dataSource[index].prcMainDraftUser_dictText}
|
nameStr={this.dataSource[index].prcMainDraftUser_dictText}
|
||||||
disabled={this.disabled} type={'radio'} placeholder={this.$t('pleaseSelect')} />
|
disabled={this.disabled} type={'radio'} placeholder={this.$t('pleaseSelect')} />
|
||||||
}
|
}
|
||||||
@@ -285,6 +286,9 @@ export default {
|
|||||||
// 选人的名字获取
|
// 选人的名字获取
|
||||||
userSelectNameChange (value) {
|
userSelectNameChange (value) {
|
||||||
this.selectNames = value
|
this.selectNames = value
|
||||||
|
},
|
||||||
|
userNameChange (value, fieldName) {
|
||||||
|
this.dataSource[Number(fieldName)].prcMainDraftUser_dictText = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -437,6 +437,7 @@ export default {
|
|||||||
this.model.data = (JSON.parse(this.model.infoJsonStr)).data
|
this.model.data = (JSON.parse(this.model.infoJsonStr)).data
|
||||||
// 如果是节点1的保存回显人员信息
|
// 如果是节点1的保存回显人员信息
|
||||||
if (this.currentNode === 1 || this.currentNode === 7) {
|
if (this.currentNode === 1 || this.currentNode === 7) {
|
||||||
|
console.log(JSON.parse(this.model.infoJsonStr).personnelObj)
|
||||||
this.draftInitPersonInfo(JSON.parse(this.model.infoJsonStr).personnelObj)
|
this.draftInitPersonInfo(JSON.parse(this.model.infoJsonStr).personnelObj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user