|
@@ -99,6 +99,9 @@ export default {
|
|
queryFields: [],
|
|
queryFields: [],
|
|
formComponentConfig: {
|
|
formComponentConfig: {
|
|
components: [],
|
|
components: [],
|
|
|
|
+ config: {
|
|
|
|
+ layout: 2,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
workFlowList: [],
|
|
workFlowList: [],
|
|
}
|
|
}
|
|
@@ -142,9 +145,9 @@ export default {
|
|
// 日期处理
|
|
// 日期处理
|
|
this.formValue = record
|
|
this.formValue = record
|
|
this.queryFields = this.formValue.queryFields.map((item) => item.fieldName)
|
|
this.queryFields = this.formValue.queryFields.map((item) => item.fieldName)
|
|
|
|
+ this.formComponentConfig = JSON.parse(record.jsonString)
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
setFieldsValue(Object.assign(pick(record, ['id', 'type', 'name', 'category', 'remark'])))
|
|
setFieldsValue(Object.assign(pick(record, ['id', 'type', 'name', 'category', 'remark'])))
|
|
- this.$refs.formComponent.base(record.jsonString)
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
next() {
|
|
next() {
|
|
@@ -160,12 +163,16 @@ export default {
|
|
}
|
|
}
|
|
// 日期处理
|
|
// 日期处理
|
|
this.current++
|
|
this.current++
|
|
- this.formValue = values
|
|
|
|
|
|
+ this.formValue = {
|
|
|
|
+ ...this.formValue,
|
|
|
|
+ ...values,
|
|
|
|
+ }
|
|
})
|
|
})
|
|
|
|
+ this.$refs.formComponent.base(this.formComponentConfig)
|
|
break
|
|
break
|
|
case 1:
|
|
case 1:
|
|
this.formComponentConfig = {
|
|
this.formComponentConfig = {
|
|
- components: this.$refs.formComponent.list2,
|
|
|
|
|
|
+ components: this.$refs.formComponent.components,
|
|
config: this.$refs.formComponent.config,
|
|
config: this.$refs.formComponent.config,
|
|
}
|
|
}
|
|
this.current++
|
|
this.current++
|
|
@@ -214,7 +221,13 @@ export default {
|
|
this.confirmLoading = false
|
|
this.confirmLoading = false
|
|
this.type = 0
|
|
this.type = 0
|
|
this.current = 0
|
|
this.current = 0
|
|
- this.formValue = { queryFields: [] }
|
|
|
|
|
|
+ this.formValue = { queryFields: [], flowId: '' }
|
|
|
|
+ this.formComponentConfig = {
|
|
|
|
+ components: [],
|
|
|
|
+ config: {
|
|
|
|
+ layout: 2,
|
|
|
|
+ },
|
|
|
|
+ }
|
|
this.form.resetFields()
|
|
this.form.resetFields()
|
|
if (this.BaseTool.Object.isNotBlank(values)) {
|
|
if (this.BaseTool.Object.isNotBlank(values)) {
|
|
this.$emit('ok', values)
|
|
this.$emit('ok', values)
|