|
|
@ -147,7 +147,7 @@ export default { |
|
|
|
this.$set(this.outForm, 'formReadOnly', lodash.get(this.bpmnBusinessObject, 'formReadOnly', false)) |
|
|
|
this.$set(this.outForm, 'formReadOnly', lodash.get(this.bpmnBusinessObject, 'formReadOnly', false)) |
|
|
|
// 缓存表单数据,以防意外刷新网页造成静态数据丢失,(获取逻辑:[1:获取外置表单缓存,2:获取动态表单缓存]) |
|
|
|
// 缓存表单数据,以防意外刷新网页造成静态数据丢失,(获取逻辑:[1:获取外置表单缓存,2:获取动态表单缓存]) |
|
|
|
this.$set(this.outForm, 'formKey', this.formType === '2' ? formKey : (getLocalStorage(this.bpmnBusinessObject.id + 'outFormKey') || '')) |
|
|
|
this.$set(this.outForm, 'formKey', this.formType === '2' ? formKey : (getLocalStorage(this.bpmnBusinessObject.id + 'outFormKey') || '')) |
|
|
|
const dyFormKey = Number(this.formType === '1' ? formKey : (getLocalStorage(this.bpmnBusinessObject.id + 'dyFormKey') || '')) |
|
|
|
const dyFormKey = this.formType === '1' ? formKey : (getLocalStorage(this.bpmnBusinessObject.id + 'dyFormKey') || '') |
|
|
|
// 查询动态表单数据进行数据格式化处理(格式化成父子嵌套数据) |
|
|
|
// 查询动态表单数据进行数据格式化处理(格式化成父子嵌套数据) |
|
|
|
const form = lodash.find(this.options, item => this.getFormDefinitionJson(item).id === dyFormKey) |
|
|
|
const form = lodash.find(this.options, item => this.getFormDefinitionJson(item).id === dyFormKey) |
|
|
|
if (!lodash.isEmpty(form)) { |
|
|
|
if (!lodash.isEmpty(form)) { |
|
|
@ -192,7 +192,7 @@ export default { |
|
|
|
const dyForm = lodash.create({}) |
|
|
|
const dyForm = lodash.create({}) |
|
|
|
lodash.set(dyForm, 'name', form.name) |
|
|
|
lodash.set(dyForm, 'name', form.name) |
|
|
|
lodash.set(dyForm, 'version', this.getFormDefinitionJson(form).version) |
|
|
|
lodash.set(dyForm, 'version', this.getFormDefinitionJson(form).version) |
|
|
|
lodash.set(dyForm, 'formKey', Number(this.getFormDefinitionJson(form).id)) |
|
|
|
lodash.set(dyForm, 'formKey', this.getFormDefinitionJson(form).id) |
|
|
|
const formJson = this.getFormDefinitionJson(form).json |
|
|
|
const formJson = this.getFormDefinitionJson(form).json |
|
|
|
const dynamicForm = eval('(' + formJson + ')') || {} |
|
|
|
const dynamicForm = eval('(' + formJson + ')') || {} |
|
|
|
const dynamicFormField = [] |
|
|
|
const dynamicFormField = [] |
|
|
|