form-custom-test 3.0.41 → 3.0.43
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/dist/designer.es.js +268 -132
- package/dist/designer.style.css +2 -2
- package/dist/designer.umd.js +101 -101
- package/dist/render.es.js +211 -113
- package/dist/render.style.css +2 -2
- package/dist/render.umd.js +67 -67
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -307,7 +307,7 @@ var settle$1 = function settle2(resolve, reject, response) {
|
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
var utils$9 = utils$d;
|
|
310
|
-
var cookies$
|
|
310
|
+
var cookies$2 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv() {
|
|
311
311
|
return {
|
|
312
312
|
write: function write(name, value2, expires, path, domain, secure) {
|
|
313
313
|
var cookie = [];
|
|
@@ -447,7 +447,7 @@ Cancel$3.prototype.__CANCEL__ = true;
|
|
|
447
447
|
var Cancel_1 = Cancel$3;
|
|
448
448
|
var utils$6 = utils$d;
|
|
449
449
|
var settle = settle$1;
|
|
450
|
-
var cookies$
|
|
450
|
+
var cookies$1 = cookies$2;
|
|
451
451
|
var buildURL$1 = buildURL$2;
|
|
452
452
|
var buildFullPath = buildFullPath$1;
|
|
453
453
|
var parseHeaders = parseHeaders$1;
|
|
@@ -538,7 +538,7 @@ var xhr = function xhrAdapter(config) {
|
|
|
538
538
|
request2 = null;
|
|
539
539
|
};
|
|
540
540
|
if (utils$6.isStandardBrowserEnv()) {
|
|
541
|
-
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies$
|
|
541
|
+
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies$1.read(config.xsrfCookieName) : void 0;
|
|
542
542
|
if (xsrfValue) {
|
|
543
543
|
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
|
544
544
|
}
|
|
@@ -1865,9 +1865,9 @@ const advancedFields = [
|
|
|
1865
1865
|
uploadURL: "",
|
|
1866
1866
|
uploadTip: "",
|
|
1867
1867
|
withCredentials: false,
|
|
1868
|
-
multipleSelect:
|
|
1868
|
+
multipleSelect: true,
|
|
1869
1869
|
showFileList: true,
|
|
1870
|
-
limit:
|
|
1870
|
+
limit: 10,
|
|
1871
1871
|
fileMaxSize: 5,
|
|
1872
1872
|
fileTypes: ["doc", "docx", "xls", "xlsx"],
|
|
1873
1873
|
allowDrag: true,
|
|
@@ -4077,7 +4077,7 @@ const _hoisted_5$h = ["title", "onDblclick"];
|
|
|
4077
4077
|
const _hoisted_6$g = ["src"];
|
|
4078
4078
|
const _hoisted_7$d = ["src"];
|
|
4079
4079
|
const _hoisted_8$9 = { class: "bottom clear-fix" };
|
|
4080
|
-
const _hoisted_9$
|
|
4080
|
+
const _hoisted_9$7 = { class: "ft-title" };
|
|
4081
4081
|
function _sfc_render$3s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4082
4082
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
4083
4083
|
const _component_draggable = resolveComponent("draggable");
|
|
@@ -4297,7 +4297,7 @@ function _sfc_render$3s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4297
4297
|
_: 2
|
|
4298
4298
|
}, 1024),
|
|
4299
4299
|
createElementVNode("div", _hoisted_8$9, [
|
|
4300
|
-
createElementVNode("span", _hoisted_9$
|
|
4300
|
+
createElementVNode("span", _hoisted_9$7, "#" + toDisplayString(idx + 1) + " " + toDisplayString(ft.title), 1),
|
|
4301
4301
|
createVNode(_component_el_button, {
|
|
4302
4302
|
link: "",
|
|
4303
4303
|
type: "primary",
|
|
@@ -10472,6 +10472,14 @@ var fieldMixin = {
|
|
|
10472
10472
|
getFormRef() {
|
|
10473
10473
|
return this.refList["v_form_ref"];
|
|
10474
10474
|
},
|
|
10475
|
+
findColByName(colName) {
|
|
10476
|
+
const formRef = this.getFormRef();
|
|
10477
|
+
return formRef && typeof formRef.findColByName === "function" ? formRef.findColByName(null, colName) : null;
|
|
10478
|
+
},
|
|
10479
|
+
setColHidden(colName, hidden) {
|
|
10480
|
+
const formRef = this.getFormRef();
|
|
10481
|
+
return formRef && typeof formRef.setColHidden === "function" ? formRef.setColHidden(colName, hidden) : false;
|
|
10482
|
+
},
|
|
10475
10483
|
getWidgetRef(widgetName, showError, rowId) {
|
|
10476
10484
|
let foundRef = null;
|
|
10477
10485
|
if (this.subFormItemFlag && !this.designState) {
|
|
@@ -10586,8 +10594,7 @@ var fieldMixin = {
|
|
|
10586
10594
|
this.field.options.optionItems = deepClone(options || []);
|
|
10587
10595
|
}
|
|
10588
10596
|
} else {
|
|
10589
|
-
this.field.options.optionItems = options;
|
|
10590
|
-
console.log(this.field, "this.field.options.optionItems");
|
|
10597
|
+
this.field.options.optionItems = deepClone(options || []);
|
|
10591
10598
|
}
|
|
10592
10599
|
this.clearSelectedOptions();
|
|
10593
10600
|
},
|
|
@@ -10875,7 +10882,7 @@ const _hoisted_7$b = {
|
|
|
10875
10882
|
class: "drag-handler background-opacity"
|
|
10876
10883
|
};
|
|
10877
10884
|
const _hoisted_8$7 = ["title"];
|
|
10878
|
-
const _hoisted_9$
|
|
10885
|
+
const _hoisted_9$6 = { key: 0 };
|
|
10879
10886
|
function _sfc_render$3o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10880
10887
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
10881
10888
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
@@ -10984,7 +10991,7 @@ function _sfc_render$3o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10984
10991
|
createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
|
|
10985
10992
|
], 8, _hoisted_8$7),
|
|
10986
10993
|
createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.field.type}`, `extension.widgetLabel.${$props.field.type}`)), 1),
|
|
10987
|
-
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$
|
|
10994
|
+
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$6, [
|
|
10988
10995
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
10989
10996
|
])) : createCommentVNode("", true)
|
|
10990
10997
|
])) : createCommentVNode("", true)
|
|
@@ -11959,7 +11966,7 @@ function useCookies() {
|
|
|
11959
11966
|
}
|
|
11960
11967
|
var _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABsUlEQVR4AaxSy0ojURA9dTMZZobxA4ZhZhgXLlwo4kLcuRMknU4aIuILFPyP/Ieg4Asx0El3B8GdO3EhogsXLhQV8QMUFTVdnmC6JWkVRIu6fU/XOXW41L0GH4zPM1DLmVDL3lMrb792KM3mHfLU2KOR5vkEvV3LgJxCw2XNZnvQEprL9UJ1EdBjBN5qRMcGUiyGkJDOcoTQ+Dro/IpEmsn8Rk08CA5xmR4XIIy42KBeEN+/ZLNFYRpfw4oWCt/Vsn5AvnjsSUE0K5ulq7o2Wk0G9aKsuydQyQPahdv7eSC1wHonDHLieWdoiYRBnZdqeQsiM8TDXA7xNJu3iRP5okFC9UbhRQPN5Ps58Vn2rXG5xHNq233EiUwY6JDzj8MqA7KPb+kpoDYJ4IBzr9DkD3FTNhnw/ttgwoCKO9yZnJRKNxIE19AHPi5T43B9HSj8JB+niZAWiwZqVjj9dkhoy4Z7EXFSrZ4jpTYUHWi7X1LwThpkbICd/TE2/4WYMb6H3QYfb1Kp7PA2JgD5D8seQSNiAwncRQm8bgnKfDQNtmUTv+ySp8bjSZ/I2ODp9/3fRwAAAP//S/wI2gAAAAZJREFUAwCGXJIhFOitmwAAAABJRU5ErkJggg==";
|
|
11961
11968
|
var fileUploadWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11962
|
-
|
|
11969
|
+
useCookies();
|
|
11963
11970
|
let selectFileText = "'" + translate("render.hint.selectFile") + "'";
|
|
11964
11971
|
const _sfc_main$36 = {
|
|
11965
11972
|
name: "file-upload-widget",
|
|
@@ -11998,7 +12005,9 @@ const _sfc_main$36 = {
|
|
|
11998
12005
|
fieldModel: [],
|
|
11999
12006
|
rules: [],
|
|
12000
12007
|
uploadHeaders: {
|
|
12001
|
-
authorization:
|
|
12008
|
+
authorization: sessionStorage.getItem("Authorization"),
|
|
12009
|
+
Company: sessionStorage.getItem("companyId"),
|
|
12010
|
+
Post: sessionStorage.getItem("postId"),
|
|
12002
12011
|
client: "web"
|
|
12003
12012
|
},
|
|
12004
12013
|
uploadData: {},
|
|
@@ -12013,17 +12022,14 @@ const _sfc_main$36 = {
|
|
|
12013
12022
|
},
|
|
12014
12023
|
computed: {
|
|
12015
12024
|
realUploadURL() {
|
|
12016
|
-
|
|
12017
|
-
console.log("test uploadURL: ", uploadURL);
|
|
12018
|
-
if (!!uploadURL) {
|
|
12019
|
-
return uploadURL;
|
|
12020
|
-
}
|
|
12025
|
+
const uploadURL = this.field.options.uploadURL;
|
|
12021
12026
|
if (!!uploadURL && (uploadURL.indexOf("DSV.") > -1 || uploadURL.indexOf("DSV[") > -1)) {
|
|
12022
|
-
|
|
12023
|
-
console.log("test DSV: ", DSV);
|
|
12024
|
-
console.log("test uploadURL: ", evalFn(this.field.options.uploadURL, DSV));
|
|
12027
|
+
const DSV = this.getGlobalDsv();
|
|
12025
12028
|
return evalFn(this.field.options.uploadURL, DSV);
|
|
12026
12029
|
}
|
|
12030
|
+
if (!!uploadURL) {
|
|
12031
|
+
return uploadURL;
|
|
12032
|
+
}
|
|
12027
12033
|
return "/api/unified-file/sys-file/upload/?system=WF";
|
|
12028
12034
|
}
|
|
12029
12035
|
},
|
|
@@ -12044,49 +12050,41 @@ const _sfc_main$36 = {
|
|
|
12044
12050
|
},
|
|
12045
12051
|
methods: {
|
|
12046
12052
|
handleProgress(event, file, fileList) {
|
|
12047
|
-
|
|
12048
|
-
this.progressPercent = event.percent
|
|
12053
|
+
this.showProgress = true;
|
|
12054
|
+
this.progressPercent = Math.round(event.percent);
|
|
12049
12055
|
},
|
|
12050
12056
|
handleFileExceed() {
|
|
12051
12057
|
let uploadLimit = this.field.options.limit;
|
|
12052
12058
|
this.$message.warning(this.i18nt("render.hint.uploadExceed").replace("${uploadLimit}", uploadLimit));
|
|
12053
12059
|
},
|
|
12054
12060
|
beforeFileUpload(file) {
|
|
12055
|
-
|
|
12061
|
+
var _a2, _b2, _c2;
|
|
12056
12062
|
let fileTypeCheckResult = false;
|
|
12057
|
-
|
|
12058
|
-
if (!!this.field.options
|
|
12059
|
-
|
|
12060
|
-
if (uploadFileTypes.length > 0) {
|
|
12061
|
-
fileTypeCheckResult = uploadFileTypes.some((ft) => {
|
|
12062
|
-
return extFileName.toLowerCase() === ft.toLowerCase();
|
|
12063
|
-
});
|
|
12064
|
-
}
|
|
12063
|
+
const extFileName = file.name.substring(file.name.lastIndexOf(".") + 1);
|
|
12064
|
+
if (!!((_b2 = (_a2 = this.field.options) == null ? void 0 : _a2.fileTypes) == null ? void 0 : _b2.length)) {
|
|
12065
|
+
fileTypeCheckResult = this.field.options.fileTypes.some((ft) => extFileName.toLowerCase() === ft.toLowerCase());
|
|
12065
12066
|
}
|
|
12066
12067
|
if (!fileTypeCheckResult) {
|
|
12067
12068
|
this.$message.error(this.i18nt("render.hint.unsupportedFileType") + extFileName);
|
|
12068
12069
|
return false;
|
|
12069
12070
|
}
|
|
12070
|
-
console.log("fileTypeCheckResult", fileTypeCheckResult);
|
|
12071
|
-
let fileSizeCheckResult = false;
|
|
12072
12071
|
let uploadFileMaxSize = 5;
|
|
12073
|
-
if (!!this.field.options
|
|
12072
|
+
if (!!((_c2 = this.field.options) == null ? void 0 : _c2.fileMaxSize)) {
|
|
12074
12073
|
uploadFileMaxSize = this.field.options.fileMaxSize;
|
|
12075
12074
|
}
|
|
12076
|
-
fileSizeCheckResult = file.size / 1024 / 1024 <= uploadFileMaxSize;
|
|
12077
|
-
console.log("fileSizeCheckResult", fileSizeCheckResult);
|
|
12075
|
+
const fileSizeCheckResult = file.size / 1024 / 1024 <= uploadFileMaxSize;
|
|
12078
12076
|
if (!fileSizeCheckResult) {
|
|
12079
12077
|
this.$message.error(this.i18nt("render.hint.fileSizeExceed") + uploadFileMaxSize + "MB");
|
|
12080
12078
|
return false;
|
|
12081
12079
|
}
|
|
12082
12080
|
this.uploadData.key = file.name;
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
|
|
12081
|
+
const allowUpload = this.handleOnBeforeUpload(file);
|
|
12082
|
+
if (allowUpload) {
|
|
12083
|
+
this.showProgress = true;
|
|
12084
|
+
}
|
|
12085
|
+
return allowUpload;
|
|
12087
12086
|
},
|
|
12088
12087
|
handleOnBeforeUpload(file) {
|
|
12089
|
-
console.log("handleOnBeforeUpload", !!this.field.options.onBeforeUpload, file);
|
|
12090
12088
|
if (!!this.field.options.onBeforeUpload) {
|
|
12091
12089
|
let bfFunc = new Function("file", this.field.options.onBeforeUpload);
|
|
12092
12090
|
let result = bfFunc.call(this, file);
|
|
@@ -12099,62 +12097,83 @@ const _sfc_main$36 = {
|
|
|
12099
12097
|
return true;
|
|
12100
12098
|
}
|
|
12101
12099
|
},
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
|
-
|
|
12100
|
+
buildFieldModelFromFileList(fileList, currentFileCustomResult) {
|
|
12101
|
+
const list = fileList.filter((item) => item.status === "success" && (item.response != null || item.url)).map((item) => {
|
|
12102
|
+
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
12103
|
+
const res = item.response;
|
|
12104
|
+
const d = (res == null ? void 0 : res.data) != null ? res.data : res;
|
|
12105
|
+
if (d && (d.fileName != null || d.fileUrl != null || d.url != null)) {
|
|
12106
|
+
return {
|
|
12107
|
+
fileName: (_b2 = (_a2 = d.fileName) != null ? _a2 : d.name) != null ? _b2 : item.name,
|
|
12108
|
+
fileId: d.fileId,
|
|
12109
|
+
fileUrl: (_e = (_d = (_c2 = d.fileUrl) != null ? _c2 : d.url) != null ? _d : item.url) != null ? _e : "",
|
|
12110
|
+
type: d.type,
|
|
12111
|
+
name: (_g = (_f = d.fileName) != null ? _f : d.name) != null ? _g : item.name,
|
|
12112
|
+
url: (_j = (_i = (_h = d.fileUrl) != null ? _h : d.url) != null ? _i : item.url) != null ? _j : ""
|
|
12113
|
+
};
|
|
12114
|
+
}
|
|
12115
|
+
return {
|
|
12116
|
+
fileName: item.name,
|
|
12117
|
+
fileId: item.uid,
|
|
12118
|
+
fileUrl: item.url || "",
|
|
12119
|
+
type: (_k = item.raw) == null ? void 0 : _k.type,
|
|
12120
|
+
name: item.name,
|
|
12121
|
+
url: item.url || ""
|
|
12122
|
+
};
|
|
12123
|
+
});
|
|
12124
|
+
if (currentFileCustomResult && currentFileCustomResult.name && currentFileCustomResult.url) {
|
|
12125
|
+
const idx = list.length - 1;
|
|
12126
|
+
if (idx >= 0) {
|
|
12127
|
+
list[idx] = __spreadProps(__spreadValues({}, list[idx]), {
|
|
12128
|
+
name: currentFileCustomResult.name,
|
|
12129
|
+
url: currentFileCustomResult.url,
|
|
12130
|
+
fileName: currentFileCustomResult.name,
|
|
12131
|
+
fileUrl: currentFileCustomResult.url
|
|
12132
|
+
});
|
|
12133
|
+
} else {
|
|
12134
|
+
list.push({
|
|
12135
|
+
name: currentFileCustomResult.name,
|
|
12136
|
+
url: currentFileCustomResult.url,
|
|
12137
|
+
fileName: currentFileCustomResult.name,
|
|
12138
|
+
fileUrl: currentFileCustomResult.url
|
|
12139
|
+
});
|
|
12140
|
+
}
|
|
12116
12141
|
}
|
|
12117
|
-
|
|
12142
|
+
return list;
|
|
12143
|
+
},
|
|
12144
|
+
updateFieldModelAndEmitDataChangeForUpload(fileList, currentFileCustomResult) {
|
|
12145
|
+
const oldValue = deepClone(this.fieldModel);
|
|
12146
|
+
this.fieldModel = this.buildFieldModelFromFileList(fileList, currentFileCustomResult);
|
|
12118
12147
|
this.syncUpdateFormModel(this.fieldModel);
|
|
12119
12148
|
this.emitFieldDataChange(this.fieldModel, oldValue);
|
|
12120
12149
|
this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
|
|
12121
12150
|
},
|
|
12122
12151
|
handleFileUpload(res, file, fileList) {
|
|
12123
|
-
|
|
12124
|
-
this.showProgress = false;
|
|
12152
|
+
var _a2;
|
|
12125
12153
|
if (file.status === "success") {
|
|
12126
|
-
ElMessage.success("\u4E0A\u4F20\u6210\u529F");
|
|
12127
12154
|
let customResult = null;
|
|
12128
12155
|
if (!!this.field.options.onUploadSuccess) {
|
|
12129
|
-
|
|
12156
|
+
const mountFunc = new Function("result", "file", "fileList", this.field.options.onUploadSuccess);
|
|
12130
12157
|
customResult = mountFunc.call(this, res, file, fileList);
|
|
12131
12158
|
}
|
|
12132
|
-
|
|
12133
|
-
if (item.response) {
|
|
12134
|
-
const { data: data2 } = item.response;
|
|
12135
|
-
return {
|
|
12136
|
-
fileName: data2.fileName,
|
|
12137
|
-
fileId: data2.fileId,
|
|
12138
|
-
fileUrl: data2.fileUrl,
|
|
12139
|
-
type: data2.type
|
|
12140
|
-
};
|
|
12141
|
-
} else {
|
|
12142
|
-
return item;
|
|
12143
|
-
}
|
|
12144
|
-
});
|
|
12145
|
-
this.updateFieldModelAndEmitDataChangeForUpload(list, customResult, res);
|
|
12159
|
+
this.updateFieldModelAndEmitDataChangeForUpload(fileList, customResult);
|
|
12146
12160
|
if (!!customResult && !!customResult.name) {
|
|
12147
12161
|
file.name = customResult.name;
|
|
12148
12162
|
} else {
|
|
12149
|
-
file.name = file.name || res.name || res.fileName || res.filename;
|
|
12163
|
+
file.name = file.name || (res == null ? void 0 : res.name) || (res == null ? void 0 : res.fileName) || (res == null ? void 0 : res.filename);
|
|
12150
12164
|
}
|
|
12151
12165
|
if (!!customResult && !!customResult.url) {
|
|
12152
12166
|
file.url = customResult.url;
|
|
12153
12167
|
} else {
|
|
12154
|
-
file.url = file.url || res.url;
|
|
12168
|
+
file.url = file.url || (res == null ? void 0 : res.url) || ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.fileUrl);
|
|
12155
12169
|
}
|
|
12156
12170
|
this.fileList = deepClone(fileList);
|
|
12157
12171
|
this.uploadBtnHidden = fileList.length >= this.field.options.limit;
|
|
12172
|
+
const allDone = !fileList.some((f) => f.status === "uploading");
|
|
12173
|
+
if (allDone) {
|
|
12174
|
+
this.showProgress = false;
|
|
12175
|
+
ElMessage.success(this.field.options.multipleSelect ? "\u6279\u91CF\u4E0A\u4F20\u6210\u529F" : "\u4E0A\u4F20\u6210\u529F");
|
|
12176
|
+
}
|
|
12158
12177
|
}
|
|
12159
12178
|
},
|
|
12160
12179
|
updateFieldModelAndEmitDataChangeForRemove(deletedFileIdx, fileList) {
|
|
@@ -12307,7 +12326,7 @@ function _sfc_render$36(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12307
12326
|
_: 1
|
|
12308
12327
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
12309
12328
|
}
|
|
12310
|
-
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$36, [["render", _sfc_render$36], ["__scopeId", "data-v-
|
|
12329
|
+
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$36, [["render", _sfc_render$36], ["__scopeId", "data-v-4ae90317"]]);
|
|
12311
12330
|
var __glob_0_7$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12312
12331
|
__proto__: null,
|
|
12313
12332
|
"default": fileUploadWidget
|
|
@@ -24881,7 +24900,6 @@ const _sfc_main$2Y = {
|
|
|
24881
24900
|
if (this.field.options.optionItems) {
|
|
24882
24901
|
return this.field.options.optionItems;
|
|
24883
24902
|
}
|
|
24884
|
-
console.log(this.field.options.optionItems);
|
|
24885
24903
|
return [];
|
|
24886
24904
|
}
|
|
24887
24905
|
}
|
|
@@ -24940,7 +24958,7 @@ function _sfc_render$2Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24940
24958
|
_: 1
|
|
24941
24959
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
24942
24960
|
}
|
|
24943
|
-
var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Y, [["render", _sfc_render$2Y], ["__scopeId", "data-v-
|
|
24961
|
+
var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Y, [["render", _sfc_render$2Y], ["__scopeId", "data-v-70a357a0"]]);
|
|
24944
24962
|
var __glob_0_17$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24945
24963
|
__proto__: null,
|
|
24946
24964
|
"default": selectWidget
|
|
@@ -25647,6 +25665,9 @@ const _sfc_main$2Q = {
|
|
|
25647
25665
|
formConfig() {
|
|
25648
25666
|
return this.getFormConfig();
|
|
25649
25667
|
},
|
|
25668
|
+
colVisible() {
|
|
25669
|
+
return !!(this.widget && this.widget.options && !this.widget.options.hidden);
|
|
25670
|
+
},
|
|
25650
25671
|
customClass() {
|
|
25651
25672
|
if (!this.widget || !this.widget.options) {
|
|
25652
25673
|
return "";
|
|
@@ -25661,7 +25682,20 @@ const _sfc_main$2Q = {
|
|
|
25661
25682
|
this.initLayoutProps();
|
|
25662
25683
|
this.initRefList();
|
|
25663
25684
|
},
|
|
25685
|
+
beforeUnmount() {
|
|
25686
|
+
var _a2, _b2;
|
|
25687
|
+
if (this.refList != null && ((_b2 = (_a2 = this.widget) == null ? void 0 : _a2.options) == null ? void 0 : _b2.name)) {
|
|
25688
|
+
delete this.refList[this.widget.options.name];
|
|
25689
|
+
}
|
|
25690
|
+
},
|
|
25691
|
+
watch: {},
|
|
25664
25692
|
methods: {
|
|
25693
|
+
setHidden(flag) {
|
|
25694
|
+
if (this.widget && this.widget.options) {
|
|
25695
|
+
this.widget.options.hidden = !!flag;
|
|
25696
|
+
this.$nextTick(() => this.$forceUpdate());
|
|
25697
|
+
}
|
|
25698
|
+
},
|
|
25665
25699
|
initLayoutProps() {
|
|
25666
25700
|
if (!this.widget || !this.widget.options) {
|
|
25667
25701
|
return;
|
|
@@ -25754,10 +25788,10 @@ function _sfc_render$2Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25754
25788
|
]),
|
|
25755
25789
|
_: 3
|
|
25756
25790
|
}, 16, ["class", "style"])), [
|
|
25757
|
-
[vShow, $
|
|
25791
|
+
[vShow, $options.colVisible]
|
|
25758
25792
|
]) : createCommentVNode("", true);
|
|
25759
25793
|
}
|
|
25760
|
-
var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Q, [["render", _sfc_render$2Q], ["__scopeId", "data-v-
|
|
25794
|
+
var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Q, [["render", _sfc_render$2Q], ["__scopeId", "data-v-76952447"]]);
|
|
25761
25795
|
var __glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25762
25796
|
__proto__: null,
|
|
25763
25797
|
"default": GridColItem
|
|
@@ -25979,7 +26013,7 @@ function _sfc_render$2P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25979
26013
|
ref: $props.widget.id
|
|
25980
26014
|
}, {
|
|
25981
26015
|
default: withCtx(() => [
|
|
25982
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.cols || [], (colWidget, colIdx) => {
|
|
26016
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.cols.filter((item) => !item.options.hidden) || [], (colWidget, colIdx) => {
|
|
25983
26017
|
return openBlock(), createBlock(_component_grid_col_item, {
|
|
25984
26018
|
key: colIdx,
|
|
25985
26019
|
widget: colWidget,
|
|
@@ -27219,6 +27253,45 @@ const _sfc_main$2K = {
|
|
|
27219
27253
|
},
|
|
27220
27254
|
getGlobalDsv() {
|
|
27221
27255
|
return this.globalDsv;
|
|
27256
|
+
},
|
|
27257
|
+
findColByName(list, colName) {
|
|
27258
|
+
const listToSearch = list != null ? list : this.formJsonObj && this.formJsonObj.widgetList;
|
|
27259
|
+
if (!listToSearch || !colName)
|
|
27260
|
+
return null;
|
|
27261
|
+
for (const w of listToSearch) {
|
|
27262
|
+
if (w.type === "grid" && w.cols && w.cols.length) {
|
|
27263
|
+
const col = w.cols.find((c) => c.options && c.options.name === colName);
|
|
27264
|
+
if (col)
|
|
27265
|
+
return col;
|
|
27266
|
+
}
|
|
27267
|
+
if (w.type === "grid-col" && w.options && w.options.name === colName)
|
|
27268
|
+
return w;
|
|
27269
|
+
if (w.widgetList && w.widgetList.length) {
|
|
27270
|
+
const found = this.findColByName(w.widgetList, colName);
|
|
27271
|
+
if (found)
|
|
27272
|
+
return found;
|
|
27273
|
+
}
|
|
27274
|
+
if (w.cols && w.cols.length) {
|
|
27275
|
+
for (const c of w.cols) {
|
|
27276
|
+
if (c.options && c.options.name === colName)
|
|
27277
|
+
return c;
|
|
27278
|
+
if (c.widgetList && c.widgetList.length) {
|
|
27279
|
+
const found = this.findColByName(c.widgetList, colName);
|
|
27280
|
+
if (found)
|
|
27281
|
+
return found;
|
|
27282
|
+
}
|
|
27283
|
+
}
|
|
27284
|
+
}
|
|
27285
|
+
}
|
|
27286
|
+
return null;
|
|
27287
|
+
},
|
|
27288
|
+
setColHidden(colName, hidden) {
|
|
27289
|
+
const col = this.findColByName(null, colName);
|
|
27290
|
+
if (!col || !col.options)
|
|
27291
|
+
return false;
|
|
27292
|
+
col.options.hidden = !!hidden;
|
|
27293
|
+
this.$nextTick(() => this.$forceUpdate());
|
|
27294
|
+
return true;
|
|
27222
27295
|
}
|
|
27223
27296
|
}
|
|
27224
27297
|
};
|
|
@@ -27277,7 +27350,7 @@ function _sfc_render$2K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27277
27350
|
_: 3
|
|
27278
27351
|
}, 8, ["label-position", "size", "class", "label-width", "model"]);
|
|
27279
27352
|
}
|
|
27280
|
-
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2K, [["render", _sfc_render$2K], ["__scopeId", "data-v-
|
|
27353
|
+
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2K, [["render", _sfc_render$2K], ["__scopeId", "data-v-32478e29"]]);
|
|
27281
27354
|
var ace$2 = { exports: {} };
|
|
27282
27355
|
(function(module, exports) {
|
|
27283
27356
|
(function() {
|
|
@@ -53261,7 +53334,7 @@ const _hoisted_8$6 = {
|
|
|
53261
53334
|
key: 2,
|
|
53262
53335
|
class: ""
|
|
53263
53336
|
};
|
|
53264
|
-
const _hoisted_9$
|
|
53337
|
+
const _hoisted_9$5 = { class: "dialog-footer" };
|
|
53265
53338
|
const _hoisted_10$4 = {
|
|
53266
53339
|
key: 3,
|
|
53267
53340
|
class: ""
|
|
@@ -53271,8 +53344,8 @@ const _hoisted_12$2 = {
|
|
|
53271
53344
|
key: 4,
|
|
53272
53345
|
class: ""
|
|
53273
53346
|
};
|
|
53274
|
-
const _hoisted_13$
|
|
53275
|
-
const _hoisted_14$
|
|
53347
|
+
const _hoisted_13$2 = { style: { "border": "1px solid #DCDFE6" } };
|
|
53348
|
+
const _hoisted_14$2 = { class: "dialog-footer" };
|
|
53276
53349
|
const _hoisted_15$1 = {
|
|
53277
53350
|
key: 5,
|
|
53278
53351
|
class: ""
|
|
@@ -53622,7 +53695,7 @@ function _sfc_render$2I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53622
53695
|
"destroy-on-close": true
|
|
53623
53696
|
}, {
|
|
53624
53697
|
footer: withCtx(() => [
|
|
53625
|
-
createElementVNode("div", _hoisted_9$
|
|
53698
|
+
createElementVNode("div", _hoisted_9$5, [
|
|
53626
53699
|
createVNode(_component_el_button, {
|
|
53627
53700
|
type: "primary",
|
|
53628
53701
|
class: "copy-json-btn",
|
|
@@ -53784,7 +53857,7 @@ function _sfc_render$2I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53784
53857
|
"append-to-body": true
|
|
53785
53858
|
}, {
|
|
53786
53859
|
footer: withCtx(() => [
|
|
53787
|
-
createElementVNode("div", _hoisted_14$
|
|
53860
|
+
createElementVNode("div", _hoisted_14$2, [
|
|
53788
53861
|
createVNode(_component_el_button, {
|
|
53789
53862
|
type: "primary",
|
|
53790
53863
|
class: "copy-form-data-json-btn",
|
|
@@ -53813,7 +53886,7 @@ function _sfc_render$2I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53813
53886
|
])
|
|
53814
53887
|
]),
|
|
53815
53888
|
default: withCtx(() => [
|
|
53816
|
-
createElementVNode("div", _hoisted_13$
|
|
53889
|
+
createElementVNode("div", _hoisted_13$2, [
|
|
53817
53890
|
createVNode(_component_code_editor, {
|
|
53818
53891
|
mode: "json",
|
|
53819
53892
|
readonly: true,
|
|
@@ -55565,7 +55638,6 @@ const _sfc_main$27 = {
|
|
|
55565
55638
|
const records = (data2 == null ? void 0 : data2.records) || (data2 == null ? void 0 : data2.data) || data2 || [];
|
|
55566
55639
|
if (Array.isArray(records) && records.length > 0) {
|
|
55567
55640
|
const dictItems = records.filter((item) => item.dictType === dictCode);
|
|
55568
|
-
console.log(dictItems, "dictItems222222");
|
|
55569
55641
|
if (dictItems.length > 0) {
|
|
55570
55642
|
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
55571
55643
|
id: generateId(),
|
|
@@ -55614,7 +55686,7 @@ const _hoisted_8$5 = {
|
|
|
55614
55686
|
key: 6,
|
|
55615
55687
|
style: { "margin-bottom": "10px" }
|
|
55616
55688
|
};
|
|
55617
|
-
const _hoisted_9$
|
|
55689
|
+
const _hoisted_9$4 = { key: 7 };
|
|
55618
55690
|
const _hoisted_10$3 = {
|
|
55619
55691
|
key: 8,
|
|
55620
55692
|
class: ""
|
|
@@ -55624,8 +55696,8 @@ const _hoisted_12$1 = {
|
|
|
55624
55696
|
key: 9,
|
|
55625
55697
|
class: ""
|
|
55626
55698
|
};
|
|
55627
|
-
const _hoisted_13 = { class: "dialog-footer" };
|
|
55628
|
-
const _hoisted_14 = {
|
|
55699
|
+
const _hoisted_13$1 = { class: "dialog-footer" };
|
|
55700
|
+
const _hoisted_14$1 = {
|
|
55629
55701
|
key: 10,
|
|
55630
55702
|
class: ""
|
|
55631
55703
|
};
|
|
@@ -55879,7 +55951,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55879
55951
|
_: 1
|
|
55880
55952
|
})
|
|
55881
55953
|
])) : createCommentVNode("", true),
|
|
55882
|
-
$props.selectedWidget.type === "radio" || $props.selectedWidget.type === "radio-other" || $props.selectedWidget.type === "checkbox" || $props.selectedWidget.type === "select" || $props.selectedWidget.type === "select-other" ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
55954
|
+
$props.selectedWidget.type === "radio" || $props.selectedWidget.type === "radio-other" || $props.selectedWidget.type === "checkbox" || $props.selectedWidget.type === "select" || $props.selectedWidget.type === "select-other" ? (openBlock(), createElementBlock("div", _hoisted_9$4, [
|
|
55883
55955
|
createVNode(_component_el_button, {
|
|
55884
55956
|
link: "",
|
|
55885
55957
|
type: "primary",
|
|
@@ -55977,7 +56049,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55977
56049
|
"destroy-on-close": true
|
|
55978
56050
|
}, {
|
|
55979
56051
|
footer: withCtx(() => [
|
|
55980
|
-
createElementVNode("div", _hoisted_13, [
|
|
56052
|
+
createElementVNode("div", _hoisted_13$1, [
|
|
55981
56053
|
createVNode(_component_el_button, {
|
|
55982
56054
|
size: "large",
|
|
55983
56055
|
type: "primary",
|
|
@@ -56012,7 +56084,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56012
56084
|
])), [
|
|
56013
56085
|
[_directive_drag, [".drag-dialog.el-dialog", ".drag-dialog .el-dialog__header"]]
|
|
56014
56086
|
]) : createCommentVNode("", true),
|
|
56015
|
-
$data.showImportTreeDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_14, [
|
|
56087
|
+
$data.showImportTreeDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
56016
56088
|
createVNode(_component_el_dialog, {
|
|
56017
56089
|
title: _ctx.i18nt("designer.setting.importOptions"),
|
|
56018
56090
|
modelValue: $data.showImportTreeDialogFlag,
|
|
@@ -56062,7 +56134,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56062
56134
|
]) : createCommentVNode("", true)
|
|
56063
56135
|
]);
|
|
56064
56136
|
}
|
|
56065
|
-
var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-
|
|
56137
|
+
var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-77962d50"]]);
|
|
56066
56138
|
const _sfc_main$26 = {
|
|
56067
56139
|
name: "optionItems-editor",
|
|
56068
56140
|
mixins: [i18n$1],
|
|
@@ -61667,7 +61739,7 @@ const _hoisted_5$7 = ["title"];
|
|
|
61667
61739
|
const _hoisted_6$7 = ["title"];
|
|
61668
61740
|
const _hoisted_7$5 = ["title"];
|
|
61669
61741
|
const _hoisted_8$4 = ["title"];
|
|
61670
|
-
const _hoisted_9$
|
|
61742
|
+
const _hoisted_9$3 = {
|
|
61671
61743
|
key: 1,
|
|
61672
61744
|
class: "drag-handler"
|
|
61673
61745
|
};
|
|
@@ -61728,7 +61800,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61728
61800
|
createVNode(_component_svg_icon, { "icon-class": "el-delete" })
|
|
61729
61801
|
], 8, _hoisted_8$4)
|
|
61730
61802
|
])) : createCommentVNode("", true),
|
|
61731
|
-
$props.designer.selectedId === $props.widget.id && !$props.widget.internal ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
61803
|
+
$props.designer.selectedId === $props.widget.id && !$props.widget.internal ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
61732
61804
|
createElementVNode("i", {
|
|
61733
61805
|
title: _ctx.i18nt("designer.hint.dragHandler")
|
|
61734
61806
|
}, [
|
|
@@ -61816,6 +61888,11 @@ const _sfc_main$n = {
|
|
|
61816
61888
|
}
|
|
61817
61889
|
},
|
|
61818
61890
|
watch: {
|
|
61891
|
+
"widget.options.name": {
|
|
61892
|
+
handler(newVal, oldVal) {
|
|
61893
|
+
this.registerToRefList(oldVal);
|
|
61894
|
+
}
|
|
61895
|
+
},
|
|
61819
61896
|
"designer.formConfig.layoutType": {
|
|
61820
61897
|
handler(val) {
|
|
61821
61898
|
if (!!this.widget.options.responsive) {
|
|
@@ -61887,7 +61964,17 @@ const _sfc_main$n = {
|
|
|
61887
61964
|
this.initRefList();
|
|
61888
61965
|
this.initLayoutProps();
|
|
61889
61966
|
},
|
|
61967
|
+
beforeUnmount() {
|
|
61968
|
+
var _a2, _b2;
|
|
61969
|
+
if (this.refList != null && ((_b2 = (_a2 = this.widget) == null ? void 0 : _a2.options) == null ? void 0 : _b2.name)) {
|
|
61970
|
+
delete this.refList[this.widget.options.name];
|
|
61971
|
+
}
|
|
61972
|
+
},
|
|
61890
61973
|
methods: {
|
|
61974
|
+
setHidden(flag) {
|
|
61975
|
+
this.widget.options.hidden = !!flag;
|
|
61976
|
+
this.$nextTick(() => this.$forceUpdate());
|
|
61977
|
+
},
|
|
61891
61978
|
initLayoutProps() {
|
|
61892
61979
|
if (!!this.widget.options.responsive) {
|
|
61893
61980
|
let lyType = this.designer.formConfig.layoutType;
|
|
@@ -61972,11 +62059,15 @@ const _hoisted_8$3 = {
|
|
|
61972
62059
|
key: 1,
|
|
61973
62060
|
class: "grid-col-handler"
|
|
61974
62061
|
};
|
|
62062
|
+
const _hoisted_9$2 = {
|
|
62063
|
+
key: 0,
|
|
62064
|
+
class: "col-hidden-tag"
|
|
62065
|
+
};
|
|
61975
62066
|
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
61976
62067
|
const _component_draggable = resolveComponent("draggable");
|
|
61977
62068
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
61978
62069
|
const _component_el_col = resolveComponent("el-col");
|
|
61979
|
-
return $props.widget.type === "grid-col" ? (openBlock(), createBlock(_component_el_col, mergeProps({
|
|
62070
|
+
return $props.widget.type === "grid-col" && (!$props.widget.options.hidden || $props.designer) ? (openBlock(), createBlock(_component_el_col, mergeProps({
|
|
61980
62071
|
key: 0,
|
|
61981
62072
|
class: "grid-cell"
|
|
61982
62073
|
}, $data.layoutProps, {
|
|
@@ -62059,13 +62150,16 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62059
62150
|
], 8, _hoisted_7$4)
|
|
62060
62151
|
])) : createCommentVNode("", true),
|
|
62061
62152
|
$props.designer.selectedId === $props.widget.id && $props.widget.type === "grid-col" ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
|
|
62062
|
-
createElementVNode("i", null, toDisplayString(_ctx.i18nt("designer.widgetLabel." + $props.widget.type)), 1)
|
|
62153
|
+
createElementVNode("i", null, toDisplayString(_ctx.i18nt("designer.widgetLabel." + $props.widget.type)), 1),
|
|
62154
|
+
$props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$2, [
|
|
62155
|
+
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
62156
|
+
])) : createCommentVNode("", true)
|
|
62063
62157
|
])) : createCommentVNode("", true)
|
|
62064
62158
|
]),
|
|
62065
62159
|
_: 1
|
|
62066
62160
|
}, 16, ["class", "style"])) : createCommentVNode("", true);
|
|
62067
62161
|
}
|
|
62068
|
-
var GridColWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
62162
|
+
var GridColWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-cb053c20"]]);
|
|
62069
62163
|
var __glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
62070
62164
|
__proto__: null,
|
|
62071
62165
|
"default": GridColWidget
|
|
@@ -63440,6 +63534,45 @@ function createDesigner(vueInstance) {
|
|
|
63440
63534
|
}
|
|
63441
63535
|
return Object.keys(originalWidget.options).indexOf(configName) > -1;
|
|
63442
63536
|
},
|
|
63537
|
+
findColByName(list, colName) {
|
|
63538
|
+
const listToSearch = list != null ? list : this.widgetList;
|
|
63539
|
+
if (!listToSearch || !colName)
|
|
63540
|
+
return null;
|
|
63541
|
+
for (const w of listToSearch) {
|
|
63542
|
+
if (w.type === "grid" && w.cols && w.cols.length) {
|
|
63543
|
+
const col = w.cols.find((c) => c.options && c.options.name === colName);
|
|
63544
|
+
if (col)
|
|
63545
|
+
return col;
|
|
63546
|
+
}
|
|
63547
|
+
if (w.type === "grid-col" && w.options && w.options.name === colName)
|
|
63548
|
+
return w;
|
|
63549
|
+
if (w.widgetList && w.widgetList.length) {
|
|
63550
|
+
const found = this.findColByName(w.widgetList, colName);
|
|
63551
|
+
if (found)
|
|
63552
|
+
return found;
|
|
63553
|
+
}
|
|
63554
|
+
if (w.cols && w.cols.length) {
|
|
63555
|
+
for (const c of w.cols) {
|
|
63556
|
+
if (c.options && c.options.name === colName)
|
|
63557
|
+
return c;
|
|
63558
|
+
if (c.widgetList && c.widgetList.length) {
|
|
63559
|
+
const found = this.findColByName(c.widgetList, colName);
|
|
63560
|
+
if (found)
|
|
63561
|
+
return found;
|
|
63562
|
+
}
|
|
63563
|
+
}
|
|
63564
|
+
}
|
|
63565
|
+
}
|
|
63566
|
+
return null;
|
|
63567
|
+
},
|
|
63568
|
+
setColHidden(colName, hidden) {
|
|
63569
|
+
const col = this.findColByName(null, colName);
|
|
63570
|
+
if (!col || !col.options)
|
|
63571
|
+
return false;
|
|
63572
|
+
col.options.hidden = !!hidden;
|
|
63573
|
+
this.saveCurrentHistoryStep();
|
|
63574
|
+
return true;
|
|
63575
|
+
},
|
|
63443
63576
|
upgradeWidgetConfig(oldWidget) {
|
|
63444
63577
|
let newWidget = null;
|
|
63445
63578
|
if (!!oldWidget.category) {
|
|
@@ -64036,7 +64169,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
64036
64169
|
_: 3
|
|
64037
64170
|
});
|
|
64038
64171
|
}
|
|
64039
|
-
var VFormDesigner = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-
|
|
64172
|
+
var VFormDesigner = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-cd16a5dc"]]);
|
|
64040
64173
|
var vuedraggable_umd = { exports: {} };
|
|
64041
64174
|
var require$$0 = /* @__PURE__ */ getDefaultExportFromNamespaceIfPresent(vue);
|
|
64042
64175
|
(function(module, exports) {
|
|
@@ -67622,13 +67755,13 @@ function registerIcon(app) {
|
|
|
67622
67755
|
if (typeof window !== "undefined") {
|
|
67623
67756
|
let loadSvg = function() {
|
|
67624
67757
|
var body = document.body;
|
|
67625
|
-
var svgDom = document.getElementById("
|
|
67758
|
+
var svgDom = document.getElementById("__svg__icons__dom__1772271186397__");
|
|
67626
67759
|
if (!svgDom) {
|
|
67627
67760
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
67628
67761
|
svgDom.style.position = "absolute";
|
|
67629
67762
|
svgDom.style.width = "0";
|
|
67630
67763
|
svgDom.style.height = "0";
|
|
67631
|
-
svgDom.id = "
|
|
67764
|
+
svgDom.id = "__svg__icons__dom__1772271186397__";
|
|
67632
67765
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
67633
67766
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
67634
67767
|
}
|
|
@@ -74793,6 +74926,7 @@ const _sfc_main$8 = {
|
|
|
74793
74926
|
fieldSchemas.push(this.cloneFieldSchema(swItem));
|
|
74794
74927
|
});
|
|
74795
74928
|
if (rowIndex === void 0) {
|
|
74929
|
+
console.log(fieldSchemas, "fieldSchemas");
|
|
74796
74930
|
this.fieldSchemaData.push(fieldSchemas);
|
|
74797
74931
|
} else {
|
|
74798
74932
|
this.fieldSchemaData.splice(rowIndex, 0, fieldSchemas);
|
|
@@ -74971,34 +75105,36 @@ const _sfc_main$8 = {
|
|
|
74971
75105
|
}
|
|
74972
75106
|
}
|
|
74973
75107
|
};
|
|
74974
|
-
const _hoisted_1$7 = { class: "
|
|
74975
|
-
const _hoisted_2$5 = { class: "
|
|
74976
|
-
const _hoisted_3$5 = {
|
|
75108
|
+
const _hoisted_1$7 = { class: "sub-form-header" };
|
|
75109
|
+
const _hoisted_2$5 = { class: "sub-form-label" };
|
|
75110
|
+
const _hoisted_3$5 = { class: "group-header" };
|
|
75111
|
+
const _hoisted_4$4 = { class: "group-title" };
|
|
75112
|
+
const _hoisted_5$2 = {
|
|
74977
75113
|
key: 0,
|
|
74978
75114
|
class: "row-number-span"
|
|
74979
75115
|
};
|
|
74980
|
-
const
|
|
75116
|
+
const _hoisted_6$2 = {
|
|
74981
75117
|
key: 1,
|
|
74982
75118
|
class: "row-number-span"
|
|
74983
75119
|
};
|
|
74984
|
-
const
|
|
74985
|
-
const
|
|
74986
|
-
const
|
|
75120
|
+
const _hoisted_7$1 = { class: "group-actions" };
|
|
75121
|
+
const _hoisted_8$1 = { class: "group-content" };
|
|
75122
|
+
const _hoisted_9 = {
|
|
74987
75123
|
key: 1,
|
|
74988
75124
|
class: "field-loading",
|
|
74989
75125
|
style: { "color": "#909399", "font-size": "12px", "padding": "8px" }
|
|
74990
75126
|
};
|
|
74991
|
-
const
|
|
75127
|
+
const _hoisted_10 = {
|
|
74992
75128
|
key: 1,
|
|
74993
75129
|
class: "empty-hint"
|
|
74994
75130
|
};
|
|
74995
|
-
const
|
|
74996
|
-
const
|
|
74997
|
-
const
|
|
75131
|
+
const _hoisted_11 = { key: 0 };
|
|
75132
|
+
const _hoisted_12 = { key: 1 };
|
|
75133
|
+
const _hoisted_13 = {
|
|
74998
75134
|
key: 0,
|
|
74999
75135
|
class: "empty-hint"
|
|
75000
75136
|
};
|
|
75001
|
-
const
|
|
75137
|
+
const _hoisted_14 = {
|
|
75002
75138
|
key: 1,
|
|
75003
75139
|
class: "empty-hint"
|
|
75004
75140
|
};
|
|
@@ -75012,16 +75148,19 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75012
75148
|
key: $props.widget.id,
|
|
75013
75149
|
class: normalizeClass(["custom-sub-form-container", $options.customClass])
|
|
75014
75150
|
}, [
|
|
75151
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
75152
|
+
createElementVNode("span", _hoisted_2$5, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1)
|
|
75153
|
+
]),
|
|
75015
75154
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.rowIdData, (subFormRowId, sfrIdx) => {
|
|
75016
75155
|
return openBlock(), createElementBlock("div", {
|
|
75017
75156
|
class: "form-group-row",
|
|
75018
75157
|
key: subFormRowId
|
|
75019
75158
|
}, [
|
|
75020
|
-
createElementVNode("div",
|
|
75021
|
-
createElementVNode("div",
|
|
75022
|
-
$props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span",
|
|
75159
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
75160
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
75161
|
+
$props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_5$2, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355") + " " + toDisplayString(sfrIdx + 1), 1)) : (openBlock(), createElementBlock("span", _hoisted_6$2, "\u8868\u5355\u7EC4"))
|
|
75023
75162
|
]),
|
|
75024
|
-
createElementVNode("div",
|
|
75163
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
75025
75164
|
sfrIdx > 0 ? (openBlock(), createBlock(_component_el_button, {
|
|
75026
75165
|
key: 0,
|
|
75027
75166
|
size: "small",
|
|
@@ -75037,7 +75176,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75037
75176
|
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
75038
75177
|
])
|
|
75039
75178
|
]),
|
|
75040
|
-
createElementVNode("div",
|
|
75179
|
+
createElementVNode("div", _hoisted_8$1, [
|
|
75041
75180
|
$props.widget && $props.widget.widgetList && $props.widget.widgetList.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($props.widget.widgetList, (subWidget, swIdx) => {
|
|
75042
75181
|
return openBlock(), createElementBlock(Fragment, {
|
|
75043
75182
|
key: subWidget ? subWidget.id + "gc" + subFormRowId + "-" + swIdx : "gc" + subFormRowId + "-" + swIdx
|
|
@@ -75062,16 +75201,16 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75062
75201
|
"sub-form-row-id": subFormRowId,
|
|
75063
75202
|
"sub-form-row-index": sfrIdx,
|
|
75064
75203
|
"sub-form-col-index": swIdx
|
|
75065
|
-
}, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index"])) : (openBlock(), createElementBlock("div",
|
|
75204
|
+
}, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index"])) : (openBlock(), createElementBlock("div", _hoisted_9, " \u5B57\u6BB5\u52A0\u8F7D\u4E2D... "))
|
|
75066
75205
|
], 64)) : createCommentVNode("", true)
|
|
75067
75206
|
], 64);
|
|
75068
|
-
}), 128)) : (openBlock(), createElementBlock("div",
|
|
75069
|
-
!$props.widget ? (openBlock(), createElementBlock("div",
|
|
75207
|
+
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
75208
|
+
!$props.widget ? (openBlock(), createElementBlock("div", _hoisted_11, "\u7EC4\u4EF6\u672A\u521D\u59CB\u5316")) : !$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_12, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : createCommentVNode("", true)
|
|
75070
75209
|
]))
|
|
75071
75210
|
])
|
|
75072
75211
|
]);
|
|
75073
75212
|
}), 128)),
|
|
75074
|
-
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div",
|
|
75213
|
+
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_13, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : $data.rowIdData.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_14, ' \u70B9\u51FB"\u6DFB\u52A0"\u6309\u94AE\u6DFB\u52A0\u6570\u636E\u884C ')) : createCommentVNode("", true),
|
|
75075
75214
|
createVNode(_component_el_button, {
|
|
75076
75215
|
disabled: $data.actionDisabled,
|
|
75077
75216
|
type: "primary",
|
|
@@ -75092,7 +75231,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75092
75231
|
_: 1
|
|
75093
75232
|
}, 8, ["widget"]);
|
|
75094
75233
|
}
|
|
75095
|
-
var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-
|
|
75234
|
+
var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-489afa42"]]);
|
|
75096
75235
|
const customTableCellSchema = {
|
|
75097
75236
|
type: "custom-table-cell",
|
|
75098
75237
|
category: "container",
|
|
@@ -76811,7 +76950,6 @@ const _sfc_main$1 = {
|
|
|
76811
76950
|
let dictManager = null;
|
|
76812
76951
|
if (typeof window !== "undefined" && window.getDictData) {
|
|
76813
76952
|
const dictItems = window.getDictData(dictCode);
|
|
76814
|
-
console.log(dictItems, "dictItems");
|
|
76815
76953
|
if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
|
|
76816
76954
|
col.options = dictItems.map((item) => ({
|
|
76817
76955
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
@@ -76827,7 +76965,6 @@ const _sfc_main$1 = {
|
|
|
76827
76965
|
}
|
|
76828
76966
|
if (typeof window !== "undefined" && window.dictCache && window.dictCache[dictCode]) {
|
|
76829
76967
|
const dictItems = window.dictCache[dictCode];
|
|
76830
|
-
console.log(dictItems, "dictItems");
|
|
76831
76968
|
if (Array.isArray(dictItems) && dictItems.length > 0) {
|
|
76832
76969
|
col.options = dictItems.map((item) => ({
|
|
76833
76970
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
@@ -76842,7 +76979,6 @@ const _sfc_main$1 = {
|
|
|
76842
76979
|
}
|
|
76843
76980
|
}
|
|
76844
76981
|
if (typeof window !== "undefined" && window.service) {
|
|
76845
|
-
console.log(window.service, "window.service");
|
|
76846
76982
|
window.service.post("/unified-dict/sysItemDict/page", {
|
|
76847
76983
|
current: 1,
|
|
76848
76984
|
size: 1e4,
|
|
@@ -77349,7 +77485,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
77349
77485
|
}, 8, ["modelValue", "title"])
|
|
77350
77486
|
], 64);
|
|
77351
77487
|
}
|
|
77352
|
-
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
77488
|
+
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-514d67ae"]]);
|
|
77353
77489
|
const _sfc_main = {
|
|
77354
77490
|
name: "current-user-widget",
|
|
77355
77491
|
componentName: "FieldWidget",
|