[update 标准解读流程] 完善
This commit is contained in:
+12
-3
@@ -139,7 +139,7 @@ export default {
|
||||
* 获取组件内的数据
|
||||
* @param isValidate - 是否需要校验
|
||||
*/
|
||||
getData (isValidate) {
|
||||
async getData (isValidate) {
|
||||
const obj = {}
|
||||
if (isValidate) {
|
||||
// 如果没有选择标准
|
||||
@@ -152,12 +152,21 @@ export default {
|
||||
// 选择的标准列表
|
||||
obj.standardData = this.dataSource
|
||||
// 选择的条款列表
|
||||
obj.clauseData = this.$refs.interpretationClauseTable.getData()
|
||||
if (this.showClauseTable) {
|
||||
obj.clauseData = this.$refs.interpretationClauseTable.getData()
|
||||
}
|
||||
return obj
|
||||
},
|
||||
// 更新组件内的数据
|
||||
setData (data) {
|
||||
|
||||
this.dataSource = [data.data.processStandardInterpret]
|
||||
// 如果有条款列表就回显条款列表
|
||||
if (data.data.processStandardInterpretClauseList && data.data.processStandardInterpretClauseList.length) {
|
||||
this.showClauseTable = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.interpretationClauseTable.setData(data.data.processStandardInterpretClauseList)
|
||||
})
|
||||
}
|
||||
},
|
||||
// 添加标准
|
||||
handleAddStandard () {
|
||||
|
||||
+1
@@ -277,6 +277,7 @@ export default {
|
||||
}
|
||||
// 是否下发有值就自动带入下一步,并回显数据
|
||||
if (data.data.processStandardInterpret.isDistribute) {
|
||||
this.form.setFieldsValue(data.data.processStandardInterpret)
|
||||
this.isNextStep = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.interpretationClauseTable.setData(this.clauseDataSource)
|
||||
|
||||
Reference in New Issue
Block a user