cloud-web-corejs 1.0.54-dev.604 → 1.0.54-dev.606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/layout/components/extractedCode/viewDialog.vue +1 -3
- package/src/views/bd/setting/formVersion/compareDialog.vue +1 -2
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +1 -0
- package/src/views/bd/setting/form_script/mixins/edit.js +1 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +1 -0
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +5 -0
- package/src/views/bd/setting/form_template/list.vue +0 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +1 -3
- package/src/views/bd/setting/form_template/mixins/list.js +4 -6
- package/src/views/bd/setting/table_model/mixins/edit.js +1 -0
- package/src/views/user/form/vform/designer.vue +2 -6
package/package.json
CHANGED
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
:_viewType="1"
|
|
26
26
|
@reload="$reloadHandle"
|
|
27
27
|
@openDesignDialog="openDesingerDialogByChild"
|
|
28
|
-
:extractedObj="extractedObj"
|
|
29
28
|
></component>
|
|
30
29
|
<el-drawer
|
|
31
30
|
:title="$t1('表单设计({formName})', { formName })"
|
|
@@ -88,7 +87,6 @@ export default {
|
|
|
88
87
|
isFullscreen: false,
|
|
89
88
|
formDesTabs: "first",
|
|
90
89
|
title: null,
|
|
91
|
-
extractedObj: null,
|
|
92
90
|
};
|
|
93
91
|
},
|
|
94
92
|
mounted() {
|
|
@@ -105,7 +103,6 @@ export default {
|
|
|
105
103
|
openWfDialog() {
|
|
106
104
|
let obj = this.extractedRow?.obj;
|
|
107
105
|
if (!obj) return;
|
|
108
|
-
this.extractedObj = obj;
|
|
109
106
|
let objType = this.extractedRow.objType;
|
|
110
107
|
let id = obj.id;
|
|
111
108
|
let wfDataId = id;
|
|
@@ -131,6 +128,7 @@ export default {
|
|
|
131
128
|
}
|
|
132
129
|
this.param = Object.assign(param, {
|
|
133
130
|
_dataId: wfDataId,
|
|
131
|
+
extractedObj: obj,
|
|
134
132
|
});
|
|
135
133
|
this.wfContent = require("@base/views" + url).default;
|
|
136
134
|
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
:readonly="designerReadonly"
|
|
69
69
|
:showFormScript="false"
|
|
70
70
|
:historyFlag="true"
|
|
71
|
+
:jsonFlag="true"
|
|
71
72
|
:formTemplate="currentFormTemplate"
|
|
72
73
|
></formDesignerDialog>
|
|
73
74
|
</el-dialog>
|
|
@@ -194,8 +195,6 @@ export default {
|
|
|
194
195
|
},
|
|
195
196
|
rever(row) {},
|
|
196
197
|
openDesingerDialog(row, callback, readonly = false) {
|
|
197
|
-
debugger;
|
|
198
|
-
let a = 1;
|
|
199
198
|
this.formCode = row.formCode;
|
|
200
199
|
this.formName = row.formName + " - " + row.version;
|
|
201
200
|
this.currentFormTemplate = row;
|
|
@@ -21,6 +21,7 @@ modules = {
|
|
|
21
21
|
},
|
|
22
22
|
hData: Object,
|
|
23
23
|
compareHData: Object,
|
|
24
|
+
extractedObj: Object,
|
|
24
25
|
},
|
|
25
26
|
components: {
|
|
26
27
|
formOplogTable,
|
|
@@ -104,7 +105,6 @@ modules = {
|
|
|
104
105
|
this.getMenuKindAuth(this.formScript.menuKindCode);
|
|
105
106
|
},
|
|
106
107
|
getData() {
|
|
107
|
-
debugger
|
|
108
108
|
if(this.extractedObj){
|
|
109
109
|
this.dataId = this.extractedObj.id;
|
|
110
110
|
this.initData(this.extractedObj)
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
:columnFlag="columnFlag"
|
|
25
25
|
:sourceData="sourceData"
|
|
26
26
|
:formTemplate="formTemplate"
|
|
27
|
+
:jsonFlag="jsonFlag"
|
|
27
28
|
></designer>
|
|
28
29
|
</el-tab-pane>
|
|
29
30
|
<el-tab-pane :label="$t1('后端脚本')" name="second" v-if="showFormScript">
|
|
@@ -78,6 +79,10 @@ export default {
|
|
|
78
79
|
type: Boolean,
|
|
79
80
|
default: false,
|
|
80
81
|
},
|
|
82
|
+
jsonFlag: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: false,
|
|
85
|
+
},
|
|
81
86
|
widgetList: Array,
|
|
82
87
|
columnFlag: Boolean,
|
|
83
88
|
sourceData: Object,
|
|
@@ -13,7 +13,7 @@ modules = {
|
|
|
13
13
|
currentFormType: Object,
|
|
14
14
|
// readonly: Boolean,
|
|
15
15
|
otherFlag:Boolean,
|
|
16
|
-
extractedObj:{
|
|
16
|
+
extractedObj: {
|
|
17
17
|
type:Object,
|
|
18
18
|
default:()=> null
|
|
19
19
|
},
|
|
@@ -226,11 +226,9 @@ modules = {
|
|
|
226
226
|
},
|
|
227
227
|
openDesignDialog() {
|
|
228
228
|
let readonly = this.readonly || !this.menuKindAuth.editAuth
|
|
229
|
-
debugger
|
|
230
229
|
this.$emit('openDesignDialog', {
|
|
231
230
|
row: this.formTemplate,
|
|
232
231
|
readonly,
|
|
233
|
-
historyFlag: !!this.hData,
|
|
234
232
|
callback: () => {
|
|
235
233
|
this.$baseReload()
|
|
236
234
|
}
|
|
@@ -137,7 +137,6 @@ modules = {
|
|
|
137
137
|
menuKindAuth: {},
|
|
138
138
|
showTree: false,
|
|
139
139
|
designerReadonly: false,
|
|
140
|
-
historyFlag: false,
|
|
141
140
|
};
|
|
142
141
|
},
|
|
143
142
|
computed: {
|
|
@@ -211,19 +210,18 @@ modules = {
|
|
|
211
210
|
});
|
|
212
211
|
}
|
|
213
212
|
},
|
|
214
|
-
openDesingerDialog(row, callback, readonly = false
|
|
213
|
+
openDesingerDialog(row, callback, readonly = false) {
|
|
215
214
|
this.formCode = row.formCode;
|
|
216
215
|
this.formName = row.formName;
|
|
217
|
-
this.
|
|
218
|
-
this.currentFormTemplate = historyFlag ? row : null;
|
|
216
|
+
this.currentFormTemplate = row;
|
|
219
217
|
this.isFullscreen = false;
|
|
220
218
|
|
|
221
219
|
this.designerReadonly = readonly
|
|
222
220
|
this.showDesingerDialog = true;
|
|
223
221
|
this.designerSaveCallback = callback ?? null;
|
|
224
222
|
},
|
|
225
|
-
openDesingerDialogByChild({row, readonly,
|
|
226
|
-
this.openDesingerDialog(row, callback, readonly
|
|
223
|
+
openDesingerDialogByChild({row, readonly, callback}) {
|
|
224
|
+
this.openDesingerDialog(row, callback, readonly);
|
|
227
225
|
},
|
|
228
226
|
reflushTemplateList() {
|
|
229
227
|
this.searchEvent();
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
widgetList: Array,
|
|
36
36
|
columnFlag: Boolean,
|
|
37
37
|
sourceData: Object,
|
|
38
|
-
|
|
38
|
+
jsonFlag: Boolean,
|
|
39
39
|
},
|
|
40
40
|
components: {
|
|
41
41
|
VFormDesigner,
|
|
@@ -89,10 +89,6 @@ export default {
|
|
|
89
89
|
designer.setFormJson(this.formJson);
|
|
90
90
|
},
|
|
91
91
|
getTemplate() {
|
|
92
|
-
/* this.showDesinger = true;
|
|
93
|
-
return */
|
|
94
|
-
debugger;
|
|
95
|
-
let a = 1;
|
|
96
92
|
if (this.columnFlag) {
|
|
97
93
|
this.reportTemplate = this.formTemplate;
|
|
98
94
|
this.showDesinger = true;
|
|
@@ -103,7 +99,7 @@ export default {
|
|
|
103
99
|
});
|
|
104
100
|
this.$refs.designer.setFormJson(formJson);
|
|
105
101
|
});
|
|
106
|
-
} else if (this.
|
|
102
|
+
} else if (this.jsonFlag && this.formTemplate) {
|
|
107
103
|
this.reportTemplate = this.$baseLodash.cloneDeep(this.formTemplate);
|
|
108
104
|
this.showDesinger = true;
|
|
109
105
|
this.$nextTick(() => {
|