cloud-web-corejs 1.0.54-dev.604 → 1.0.54-dev.605
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/views/bd/setting/formVersion/compareDialog.vue +1 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +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 +0 -2
- package/src/views/bd/setting/form_template/mixins/list.js +4 -6
- package/src/views/user/form/vform/designer.vue +3 -2
package/package.json
CHANGED
|
@@ -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,
|
|
@@ -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,
|
|
@@ -93,6 +93,7 @@ export default {
|
|
|
93
93
|
return */
|
|
94
94
|
debugger;
|
|
95
95
|
let a = 1;
|
|
96
|
+
let b = 1;
|
|
96
97
|
if (this.columnFlag) {
|
|
97
98
|
this.reportTemplate = this.formTemplate;
|
|
98
99
|
this.showDesinger = true;
|
|
@@ -103,7 +104,7 @@ export default {
|
|
|
103
104
|
});
|
|
104
105
|
this.$refs.designer.setFormJson(formJson);
|
|
105
106
|
});
|
|
106
|
-
} else if (this.
|
|
107
|
+
} else if (this.jsonFlag && this.formTemplate) {
|
|
107
108
|
this.reportTemplate = this.$baseLodash.cloneDeep(this.formTemplate);
|
|
108
109
|
this.showDesinger = true;
|
|
109
110
|
this.$nextTick(() => {
|