form-custom-test 3.0.109 → 3.0.111
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 +313 -124
- package/dist/designer.style.css +2 -2
- package/dist/designer.umd.js +113 -113
- package/dist/render.es.js +302 -119
- package/dist/render.style.css +2 -2
- package/dist/render.umd.js +84 -84
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source2, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source2)
|
|
23
|
+
if (__hasOwnProp.call(source2, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source2[prop];
|
|
25
|
+
if (source2 != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source2)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source2, prop))
|
|
28
|
+
target[prop] = source2[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
import { openBlock, createElementBlock, normalizeClass, renderSlot, reactive, createElementVNode, toDisplayString, createCommentVNode, resolveComponent, normalizeStyle, withModifiers, Fragment, createVNode, createBlock, withCtx, createTextVNode, renderList, defineComponent, createSlots, watch, ref, onBeforeUnmount, onMounted, onUnmounted, withDirectives, mergeProps, resolveDynamicComponent, vShow, isVNode } from "vue";
|
|
21
33
|
import { ElMessage } from "element-plus";
|
|
22
34
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
@@ -1520,6 +1532,8 @@ var enLocale = {
|
|
|
1520
1532
|
formCss: "Form CSS",
|
|
1521
1533
|
addCss: "Edit",
|
|
1522
1534
|
customClass: "Custom Class",
|
|
1535
|
+
mainTip: "Main Tip",
|
|
1536
|
+
subTip: "Sub Tip",
|
|
1523
1537
|
globalFunctions: "Global Functions",
|
|
1524
1538
|
addEventHandler: "Edit",
|
|
1525
1539
|
editWidgetEventHandler: "Edit Widget Event Handler",
|
|
@@ -1847,6 +1861,8 @@ var zhLocale = {
|
|
|
1847
1861
|
formCss: "\u8868\u5355\u5168\u5C40CSS",
|
|
1848
1862
|
addCss: "\u7F16\u5199CSS",
|
|
1849
1863
|
customClass: "\u81EA\u5B9A\u4E49CSS\u6837\u5F0F",
|
|
1864
|
+
mainTip: "\u4E3B\u63D0\u793A\u8BED",
|
|
1865
|
+
subTip: "\u526F\u63D0\u793A\u8BED",
|
|
1850
1866
|
globalFunctions: "\u8868\u5355\u5168\u5C40\u51FD\u6570",
|
|
1851
1867
|
addEventHandler: "\u7F16\u5199\u4EE3\u7801",
|
|
1852
1868
|
editWidgetEventHandler: "\u7EC4\u4EF6\u4E8B\u4EF6\u5904\u7406",
|
|
@@ -10854,15 +10870,16 @@ const _hoisted_2$k = {
|
|
|
10854
10870
|
key: 0,
|
|
10855
10871
|
class: "el-upload__tip"
|
|
10856
10872
|
};
|
|
10857
|
-
const _hoisted_3$g = { class: "
|
|
10858
|
-
const _hoisted_4$d = { class: "
|
|
10859
|
-
const _hoisted_5$b = { class: "
|
|
10860
|
-
const _hoisted_6$b =
|
|
10861
|
-
const _hoisted_7$9 = ["
|
|
10862
|
-
const _hoisted_8$6 =
|
|
10863
|
-
const _hoisted_9$5 =
|
|
10864
|
-
const _hoisted_10$
|
|
10873
|
+
const _hoisted_3$g = { class: "main-tip" };
|
|
10874
|
+
const _hoisted_4$d = { class: "sub-tip" };
|
|
10875
|
+
const _hoisted_5$b = { class: "upload-file-list" };
|
|
10876
|
+
const _hoisted_6$b = { class: "left-wrap" };
|
|
10877
|
+
const _hoisted_7$9 = ["src"];
|
|
10878
|
+
const _hoisted_8$6 = ["title"];
|
|
10879
|
+
const _hoisted_9$5 = { class: "right-wrap" };
|
|
10880
|
+
const _hoisted_10$4 = ["title", "onClick"];
|
|
10865
10881
|
const _hoisted_11$2 = ["onClick"];
|
|
10882
|
+
const _hoisted_12$1 = ["onClick"];
|
|
10866
10883
|
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10867
10884
|
const _component_el_button = resolveComponent("el-button");
|
|
10868
10885
|
const _component_el_upload = resolveComponent("el-upload");
|
|
@@ -10906,40 +10923,40 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10906
10923
|
!!$props.field.options.uploadTip && !_ctx.getDisabled() ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString($props.field.options.uploadTip), 1)) : createCommentVNode("", true)
|
|
10907
10924
|
]),
|
|
10908
10925
|
file: withCtx(({ file }) => [
|
|
10909
|
-
createElementVNode("div",
|
|
10910
|
-
createElementVNode("div",
|
|
10926
|
+
createElementVNode("div", _hoisted_5$b, [
|
|
10927
|
+
createElementVNode("div", _hoisted_6$b, [
|
|
10911
10928
|
createElementVNode("img", {
|
|
10912
10929
|
src: $options.getFileIcon(file.name),
|
|
10913
10930
|
alt: "",
|
|
10914
10931
|
style: { "width": "18px", "height": "18px", "margin-right": "8px" }
|
|
10915
|
-
}, null, 8,
|
|
10932
|
+
}, null, 8, _hoisted_7$9),
|
|
10916
10933
|
createElementVNode("div", {
|
|
10917
10934
|
class: "upload-file-name",
|
|
10918
10935
|
title: file.name
|
|
10919
|
-
}, toDisplayString(file.name), 9,
|
|
10936
|
+
}, toDisplayString(file.name), 9, _hoisted_8$6)
|
|
10920
10937
|
]),
|
|
10921
|
-
createElementVNode("div",
|
|
10938
|
+
createElementVNode("div", _hoisted_9$5, [
|
|
10922
10939
|
!_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
|
|
10923
10940
|
key: 0,
|
|
10924
10941
|
class: "file-action",
|
|
10925
10942
|
title: _ctx.i18nt("render.hint.removeFile"),
|
|
10926
10943
|
onClick: ($event) => $options.removeUploadFile(file.name, file.url, file.uid)
|
|
10927
|
-
}, [..._cache[
|
|
10944
|
+
}, [..._cache[2] || (_cache[2] = [
|
|
10928
10945
|
createElementVNode("img", {
|
|
10929
10946
|
src: _imports_1,
|
|
10930
10947
|
alt: ""
|
|
10931
10948
|
}, null, -1)
|
|
10932
|
-
])], 8,
|
|
10949
|
+
])], 8, _hoisted_10$4)) : createCommentVNode("", true),
|
|
10933
10950
|
_ctx.getDisabled() && !$options.isZip(file.name) ? (openBlock(), createElementBlock("div", {
|
|
10934
10951
|
key: 1,
|
|
10935
10952
|
onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
|
|
10936
10953
|
class: "pr-8px color-primary cursor-pointer file-action-right"
|
|
10937
|
-
}, " \u9884\u89C8 ", 8,
|
|
10954
|
+
}, " \u9884\u89C8 ", 8, _hoisted_11$2)) : createCommentVNode("", true),
|
|
10938
10955
|
_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
|
|
10939
10956
|
key: 2,
|
|
10940
10957
|
onClick: withModifiers(($event) => $options.handleDownload(file), ["stop"]),
|
|
10941
10958
|
class: "pr-8px color-primary cursor-pointer file-action-right"
|
|
10942
|
-
}, " \u4E0B\u8F7D ", 8,
|
|
10959
|
+
}, " \u4E0B\u8F7D ", 8, _hoisted_12$1)) : createCommentVNode("", true)
|
|
10943
10960
|
])
|
|
10944
10961
|
])
|
|
10945
10962
|
]),
|
|
@@ -10953,13 +10970,13 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10953
10970
|
src: _imports_0,
|
|
10954
10971
|
alt: ""
|
|
10955
10972
|
}, null, -1)),
|
|
10956
|
-
|
|
10957
|
-
createElementVNode("div",
|
|
10973
|
+
createElementVNode("div", _hoisted_3$g, toDisplayString($props.field.options.mainTip || "\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"), 1),
|
|
10974
|
+
createElementVNode("div", _hoisted_4$d, toDisplayString($props.field.options.subTip || `\u652F\u6301\u4E0A\u4F20${$props.field.options.fileTypes.slice(0, 8).join("\uFF0C")}\u7B49\u683C\u5F0F\u6587\u4EF6`), 1)
|
|
10958
10975
|
], 64)) : (openBlock(), createBlock(_component_el_button, {
|
|
10959
10976
|
key: 1,
|
|
10960
10977
|
type: "primary"
|
|
10961
10978
|
}, {
|
|
10962
|
-
default: withCtx(() => [..._cache[
|
|
10979
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
10963
10980
|
createTextVNode(" \u9009\u62E9\u6587\u4EF6", -1)
|
|
10964
10981
|
])]),
|
|
10965
10982
|
_: 1
|
|
@@ -10980,7 +10997,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10980
10997
|
_: 1
|
|
10981
10998
|
}, 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"]);
|
|
10982
10999
|
}
|
|
10983
|
-
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$R], ["__scopeId", "data-v-
|
|
11000
|
+
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$R], ["__scopeId", "data-v-7746136c"]]);
|
|
10984
11001
|
var __glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10985
11002
|
__proto__: null,
|
|
10986
11003
|
"default": fileUploadWidget
|
|
@@ -11665,6 +11682,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11665
11682
|
"sub-form-row-id": $props.subFormRowId
|
|
11666
11683
|
}, {
|
|
11667
11684
|
default: withCtx(() => [
|
|
11685
|
+
createTextVNode(toDisplayString(_ctx.getDisabled()) + " ", 1),
|
|
11668
11686
|
createVNode(_component_el_radio_group, {
|
|
11669
11687
|
ref: "fieldEditor",
|
|
11670
11688
|
modelValue: $data.fieldModel,
|
|
@@ -11709,7 +11727,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11709
11727
|
_: 1
|
|
11710
11728
|
}, 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"]);
|
|
11711
11729
|
}
|
|
11712
|
-
var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-
|
|
11730
|
+
var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-12ecda57"]]);
|
|
11713
11731
|
var __glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11714
11732
|
__proto__: null,
|
|
11715
11733
|
"default": radioWidget
|
|
@@ -26161,13 +26179,13 @@ function registerIcon(app) {
|
|
|
26161
26179
|
if (typeof window !== "undefined") {
|
|
26162
26180
|
let loadSvg = function() {
|
|
26163
26181
|
var body = document.body;
|
|
26164
|
-
var svgDom = document.getElementById("
|
|
26182
|
+
var svgDom = document.getElementById("__svg__icons__dom__1777430449026__");
|
|
26165
26183
|
if (!svgDom) {
|
|
26166
26184
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
26167
26185
|
svgDom.style.position = "absolute";
|
|
26168
26186
|
svgDom.style.width = "0";
|
|
26169
26187
|
svgDom.style.height = "0";
|
|
26170
|
-
svgDom.id = "
|
|
26188
|
+
svgDom.id = "__svg__icons__dom__1777430449026__";
|
|
26171
26189
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
26172
26190
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
26173
26191
|
}
|
|
@@ -26446,7 +26464,7 @@ const _hoisted_9$4 = {
|
|
|
26446
26464
|
key: 1,
|
|
26447
26465
|
class: "drag-handler"
|
|
26448
26466
|
};
|
|
26449
|
-
const _hoisted_10$
|
|
26467
|
+
const _hoisted_10$3 = ["title"];
|
|
26450
26468
|
const _hoisted_11$1 = { key: 0 };
|
|
26451
26469
|
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26452
26470
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
@@ -26508,7 +26526,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26508
26526
|
title: _ctx.i18nt("designer.hint.dragHandler")
|
|
26509
26527
|
}, [
|
|
26510
26528
|
createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
|
|
26511
|
-
], 8, _hoisted_10$
|
|
26529
|
+
], 8, _hoisted_10$3),
|
|
26512
26530
|
createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.widget.type}`, `extension.widgetLabel.${$props.widget.type}`)), 1),
|
|
26513
26531
|
$props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_11$1, [
|
|
26514
26532
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
@@ -34254,7 +34272,7 @@ const _hoisted_6$4 = {
|
|
|
34254
34272
|
const _hoisted_7$3 = { class: "group-actions" };
|
|
34255
34273
|
const _hoisted_8$3 = { class: "group-content" };
|
|
34256
34274
|
const _hoisted_9$2 = { class: "form-widget-list" };
|
|
34257
|
-
const _hoisted_10$
|
|
34275
|
+
const _hoisted_10$2 = {
|
|
34258
34276
|
key: 0,
|
|
34259
34277
|
class: "empty-hint"
|
|
34260
34278
|
};
|
|
@@ -34358,7 +34376,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34358
34376
|
]),
|
|
34359
34377
|
_: 1
|
|
34360
34378
|
}, 16, ["list", "onUpdate", "move"]),
|
|
34361
|
-
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
34379
|
+
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10$2, " \u62D6\u62FD\u4EFB\u610F\u7EC4\u4EF6\u5230\u6B64\u5904 ")) : createCommentVNode("", true)
|
|
34362
34380
|
], 2)
|
|
34363
34381
|
], 2))
|
|
34364
34382
|
]),
|
|
@@ -34750,7 +34768,7 @@ const _hoisted_9$1 = {
|
|
|
34750
34768
|
class: "field-loading",
|
|
34751
34769
|
style: { "color": "#909399", "font-size": "12px", "padding": "8px" }
|
|
34752
34770
|
};
|
|
34753
|
-
const _hoisted_10 = {
|
|
34771
|
+
const _hoisted_10$1 = {
|
|
34754
34772
|
key: 1,
|
|
34755
34773
|
class: "empty-hint"
|
|
34756
34774
|
};
|
|
@@ -34832,7 +34850,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34832
34850
|
}, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "sub-form-disabled"])) : (openBlock(), createElementBlock("div", _hoisted_9$1, " \u5B57\u6BB5\u52A0\u8F7D\u4E2D... "))
|
|
34833
34851
|
], 64)) : createCommentVNode("", true)
|
|
34834
34852
|
], 64);
|
|
34835
|
-
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
34853
|
+
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
34836
34854
|
!$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)
|
|
34837
34855
|
]))
|
|
34838
34856
|
])
|
|
@@ -61769,16 +61787,10 @@ const _sfc_main$4 = {
|
|
|
61769
61787
|
this.visible = newVal;
|
|
61770
61788
|
if (newVal) {
|
|
61771
61789
|
this.getTableData();
|
|
61790
|
+
this.selectedRows = this.fieldValue && Array.isArray(this.fieldValue) ? lodash.exports.cloneDeep(this.fieldValue) : [];
|
|
61772
61791
|
}
|
|
61773
61792
|
}
|
|
61774
61793
|
},
|
|
61775
|
-
fieldValue: {
|
|
61776
|
-
handler(newVal) {
|
|
61777
|
-
this.selectedRows = newVal && Array.isArray(newVal) ? lodash.exports.cloneDeep(newVal) : [];
|
|
61778
|
-
},
|
|
61779
|
-
deep: true,
|
|
61780
|
-
immediate: true
|
|
61781
|
-
},
|
|
61782
61794
|
assetTypeValue: {
|
|
61783
61795
|
handler(newVal) {
|
|
61784
61796
|
if (newVal) {
|
|
@@ -61791,6 +61803,12 @@ const _sfc_main$4 = {
|
|
|
61791
61803
|
immediate: true
|
|
61792
61804
|
}
|
|
61793
61805
|
},
|
|
61806
|
+
computed: {
|
|
61807
|
+
filterList() {
|
|
61808
|
+
const value2 = this.searchValue.toLocaleLowerCase();
|
|
61809
|
+
return this.selectedRows.filter((item) => item.labelName.toLocaleLowerCase().includes(value2) || item.assetCode.toLocaleLowerCase().includes(value2));
|
|
61810
|
+
}
|
|
61811
|
+
},
|
|
61794
61812
|
data() {
|
|
61795
61813
|
return {
|
|
61796
61814
|
tableData: [],
|
|
@@ -61802,9 +61820,12 @@ const _sfc_main$4 = {
|
|
|
61802
61820
|
form: {
|
|
61803
61821
|
assetCode: "",
|
|
61804
61822
|
assetType: "",
|
|
61805
|
-
|
|
61823
|
+
assetOwnerUnit: "",
|
|
61824
|
+
labelName: ""
|
|
61806
61825
|
},
|
|
61807
|
-
disabled: false
|
|
61826
|
+
disabled: false,
|
|
61827
|
+
total: 0,
|
|
61828
|
+
searchValue: ""
|
|
61808
61829
|
};
|
|
61809
61830
|
},
|
|
61810
61831
|
methods: {
|
|
@@ -61818,29 +61839,40 @@ const _sfc_main$4 = {
|
|
|
61818
61839
|
service$1({
|
|
61819
61840
|
method: "post",
|
|
61820
61841
|
url: "/asset-business/overview/pageList",
|
|
61821
|
-
data: __spreadValues({ size: this.pageSize, current: this.currentPage }, this.form)
|
|
61842
|
+
data: __spreadValues({ size: this.pageSize, current: this.currentPage, reqType: "disposal" }, this.form)
|
|
61822
61843
|
}).then(({ data: data2 }) => {
|
|
61823
|
-
|
|
61844
|
+
const { records, total, current } = data2;
|
|
61845
|
+
this.tableData = records.map((item) => {
|
|
61846
|
+
const _a = item, { id } = _a, rest = __objRest(_a, ["id"]);
|
|
61847
|
+
const obj = __spreadProps(__spreadValues({}, rest), {
|
|
61848
|
+
assetId: id
|
|
61849
|
+
});
|
|
61850
|
+
return obj;
|
|
61851
|
+
});
|
|
61852
|
+
this.total = total;
|
|
61853
|
+
this.currentPage = current;
|
|
61824
61854
|
});
|
|
61825
61855
|
},
|
|
61826
61856
|
handleSizeChange(size) {
|
|
61827
61857
|
this.pageSize = size;
|
|
61858
|
+
this.getTableData();
|
|
61828
61859
|
},
|
|
61829
61860
|
handleCurrentChange(page) {
|
|
61830
61861
|
this.currentPage = page;
|
|
61862
|
+
this.getTableData();
|
|
61831
61863
|
},
|
|
61832
61864
|
handleAdd() {
|
|
61833
61865
|
const selection = this.$refs.tableRef.getSelectionRows();
|
|
61834
61866
|
const arr = [...this.selectedRows, ...selection].reduce((acc, item) => {
|
|
61835
|
-
if (!acc.some((i) => i.
|
|
61867
|
+
if (!acc.some((i) => i.assetId === item.assetId)) {
|
|
61836
61868
|
acc.push(item);
|
|
61837
61869
|
}
|
|
61838
61870
|
return acc;
|
|
61839
61871
|
}, []);
|
|
61840
61872
|
this.selectedRows = arr;
|
|
61841
61873
|
},
|
|
61842
|
-
handleRemove(
|
|
61843
|
-
const index2 = this.selectedRows.findIndex((item) => item.
|
|
61874
|
+
handleRemove(assetId) {
|
|
61875
|
+
const index2 = this.selectedRows.findIndex((item) => item.assetId === assetId);
|
|
61844
61876
|
if (index2 !== -1) {
|
|
61845
61877
|
this.selectedRows.splice(index2, 1);
|
|
61846
61878
|
}
|
|
@@ -61876,10 +61908,11 @@ const _hoisted_2$2 = { class: "bottom-wrap" };
|
|
|
61876
61908
|
const _hoisted_3$1 = { class: "left-wrap" };
|
|
61877
61909
|
const _hoisted_4 = { class: "filter-wrap" };
|
|
61878
61910
|
const _hoisted_5 = { class: "right-wrap" };
|
|
61879
|
-
const _hoisted_6 = { class: "asset-wrap" };
|
|
61880
|
-
const _hoisted_7 = { class: "asset-
|
|
61881
|
-
const _hoisted_8 = { class: "asset-item-
|
|
61882
|
-
const _hoisted_9 = { class: "
|
|
61911
|
+
const _hoisted_6 = { class: "asset-wrap-title" };
|
|
61912
|
+
const _hoisted_7 = { class: "asset-wrap" };
|
|
61913
|
+
const _hoisted_8 = { class: "asset-item-left" };
|
|
61914
|
+
const _hoisted_9 = { class: "asset-item-right" };
|
|
61915
|
+
const _hoisted_10 = { class: "dialog-footer" };
|
|
61883
61916
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
61884
61917
|
const _component_el_input = resolveComponent("el-input");
|
|
61885
61918
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
@@ -61892,25 +61925,28 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61892
61925
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
61893
61926
|
const _component_el_table = resolveComponent("el-table");
|
|
61894
61927
|
const _component_el_pagination = resolveComponent("el-pagination");
|
|
61895
|
-
const
|
|
61928
|
+
const _component_DArrowRight = resolveComponent("DArrowRight");
|
|
61896
61929
|
const _component_el_icon = resolveComponent("el-icon");
|
|
61930
|
+
const _component_Search = resolveComponent("Search");
|
|
61931
|
+
const _component_Close = resolveComponent("Close");
|
|
61932
|
+
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
61897
61933
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
61898
61934
|
return openBlock(), createBlock(_component_el_dialog, {
|
|
61899
61935
|
modelValue: $data.visible,
|
|
61900
|
-
"onUpdate:modelValue": _cache[
|
|
61936
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.visible = $event),
|
|
61901
61937
|
title: "\u8D44\u4EA7\u9009\u62E9",
|
|
61902
|
-
width: "
|
|
61938
|
+
width: "1418px",
|
|
61903
61939
|
onClose: $options.handleClose,
|
|
61904
|
-
"body-class": "
|
|
61905
|
-
"header-class": "
|
|
61940
|
+
"body-class": "asset-list-dialog-body",
|
|
61941
|
+
"header-class": "asset-list-dialog-header"
|
|
61906
61942
|
}, {
|
|
61907
61943
|
footer: withCtx(() => [
|
|
61908
|
-
createElementVNode("div",
|
|
61944
|
+
createElementVNode("div", _hoisted_10, [
|
|
61909
61945
|
createVNode(_component_el_button, {
|
|
61910
61946
|
onClick: $options.handleClose,
|
|
61911
61947
|
size: "default"
|
|
61912
61948
|
}, {
|
|
61913
|
-
default: withCtx(() => [..._cache[
|
|
61949
|
+
default: withCtx(() => [..._cache[12] || (_cache[12] = [
|
|
61914
61950
|
createTextVNode(" \u53D6\u6D88 ", -1)
|
|
61915
61951
|
])]),
|
|
61916
61952
|
_: 1
|
|
@@ -61920,7 +61956,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61920
61956
|
onClick: $options.handleConfirm,
|
|
61921
61957
|
size: "default"
|
|
61922
61958
|
}, {
|
|
61923
|
-
default: withCtx(() => [..._cache[
|
|
61959
|
+
default: withCtx(() => [..._cache[13] || (_cache[13] = [
|
|
61924
61960
|
createTextVNode(" \u786E\u5B9A ", -1)
|
|
61925
61961
|
])]),
|
|
61926
61962
|
_: 1
|
|
@@ -61932,22 +61968,25 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61932
61968
|
createElementVNode("div", _hoisted_2$2, [
|
|
61933
61969
|
createElementVNode("div", _hoisted_3$1, [
|
|
61934
61970
|
createElementVNode("div", _hoisted_4, [
|
|
61935
|
-
createVNode(_component_el_form, {
|
|
61936
|
-
model: $data.form,
|
|
61937
|
-
size: "small"
|
|
61938
|
-
}, {
|
|
61971
|
+
createVNode(_component_el_form, { model: $data.form }, {
|
|
61939
61972
|
default: withCtx(() => [
|
|
61940
|
-
createVNode(_component_el_row, { gutter:
|
|
61973
|
+
createVNode(_component_el_row, { gutter: 12 }, {
|
|
61941
61974
|
default: withCtx(() => [
|
|
61942
|
-
createVNode(_component_el_col, { span:
|
|
61975
|
+
createVNode(_component_el_col, { span: 5 }, {
|
|
61943
61976
|
default: withCtx(() => [
|
|
61944
|
-
createVNode(_component_el_form_item,
|
|
61977
|
+
createVNode(_component_el_form_item, null, {
|
|
61945
61978
|
default: withCtx(() => [
|
|
61946
61979
|
createVNode(_component_el_input, {
|
|
61947
|
-
|
|
61980
|
+
maxlength: "50",
|
|
61948
61981
|
modelValue: $data.form.assetCode,
|
|
61949
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event)
|
|
61950
|
-
|
|
61982
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event),
|
|
61983
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
61984
|
+
}, {
|
|
61985
|
+
prefix: withCtx(() => [..._cache[7] || (_cache[7] = [
|
|
61986
|
+
createElementVNode("span", null, "\u8D44\u4EA7\u7F16\u7801\uFF1A", -1)
|
|
61987
|
+
])]),
|
|
61988
|
+
_: 1
|
|
61989
|
+
}, 8, ["modelValue"])
|
|
61951
61990
|
]),
|
|
61952
61991
|
_: 1
|
|
61953
61992
|
})
|
|
@@ -61956,15 +61995,38 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61956
61995
|
}),
|
|
61957
61996
|
createVNode(_component_el_col, { span: 6 }, {
|
|
61958
61997
|
default: withCtx(() => [
|
|
61959
|
-
createVNode(_component_el_form_item,
|
|
61998
|
+
createVNode(_component_el_form_item, null, {
|
|
61999
|
+
default: withCtx(() => [
|
|
62000
|
+
createVNode(_component_el_input, {
|
|
62001
|
+
maxlength: "50",
|
|
62002
|
+
modelValue: $data.form.labelName,
|
|
62003
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.form.labelName = $event),
|
|
62004
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
62005
|
+
}, {
|
|
62006
|
+
prefix: withCtx(() => [..._cache[8] || (_cache[8] = [
|
|
62007
|
+
createElementVNode("span", null, "\u8D44\u4EA7\u540D\u79F0\uFF1A", -1)
|
|
62008
|
+
])]),
|
|
62009
|
+
_: 1
|
|
62010
|
+
}, 8, ["modelValue"])
|
|
62011
|
+
]),
|
|
62012
|
+
_: 1
|
|
62013
|
+
})
|
|
62014
|
+
]),
|
|
62015
|
+
_: 1
|
|
62016
|
+
}),
|
|
62017
|
+
createVNode(_component_el_col, { span: 5 }, {
|
|
62018
|
+
default: withCtx(() => [
|
|
62019
|
+
createVNode(_component_el_form_item, null, {
|
|
61960
62020
|
default: withCtx(() => [
|
|
61961
62021
|
createVNode(_component_el_select, {
|
|
61962
|
-
size: "small",
|
|
61963
62022
|
disabled: $data.disabled,
|
|
61964
62023
|
modelValue: $data.form.assetType,
|
|
61965
|
-
"onUpdate:modelValue": _cache[
|
|
61966
|
-
placeholder: "\u8BF7\u9009\u62E9
|
|
62024
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.form.assetType = $event),
|
|
62025
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
61967
62026
|
}, {
|
|
62027
|
+
prefix: withCtx(() => [..._cache[9] || (_cache[9] = [
|
|
62028
|
+
createElementVNode("span", null, "\u8D44\u4EA7\u7C7B\u578B\uFF1A", -1)
|
|
62029
|
+
])]),
|
|
61968
62030
|
default: withCtx(() => [
|
|
61969
62031
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.assetTypeOptions, (item) => {
|
|
61970
62032
|
return openBlock(), createBlock(_component_el_option, {
|
|
@@ -61984,29 +62046,34 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61984
62046
|
}),
|
|
61985
62047
|
createVNode(_component_el_col, { span: 6 }, {
|
|
61986
62048
|
default: withCtx(() => [
|
|
61987
|
-
createVNode(_component_el_form_item,
|
|
62049
|
+
createVNode(_component_el_form_item, null, {
|
|
61988
62050
|
default: withCtx(() => [
|
|
61989
62051
|
createVNode(_component_el_input, {
|
|
61990
|
-
|
|
61991
|
-
modelValue: $data.form.
|
|
61992
|
-
"onUpdate:modelValue": _cache[
|
|
61993
|
-
|
|
62052
|
+
maxlength: "50",
|
|
62053
|
+
modelValue: $data.form.assetOwnerUnit,
|
|
62054
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.form.assetOwnerUnit = $event),
|
|
62055
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
62056
|
+
}, {
|
|
62057
|
+
prefix: withCtx(() => [..._cache[10] || (_cache[10] = [
|
|
62058
|
+
createElementVNode("span", null, "\u4EA7\u6743\u6240\u5C5E\u5355\u4F4D\uFF1A", -1)
|
|
62059
|
+
])]),
|
|
62060
|
+
_: 1
|
|
62061
|
+
}, 8, ["modelValue"])
|
|
61994
62062
|
]),
|
|
61995
62063
|
_: 1
|
|
61996
62064
|
})
|
|
61997
62065
|
]),
|
|
61998
62066
|
_: 1
|
|
61999
62067
|
}),
|
|
62000
|
-
createVNode(_component_el_col, { span:
|
|
62068
|
+
createVNode(_component_el_col, { span: 2 }, {
|
|
62001
62069
|
default: withCtx(() => [
|
|
62002
62070
|
createVNode(_component_el_form_item, null, {
|
|
62003
62071
|
default: withCtx(() => [
|
|
62004
62072
|
createVNode(_component_el_button, {
|
|
62005
62073
|
type: "primary",
|
|
62006
|
-
size: "small",
|
|
62007
62074
|
onClick: $options.handleSearch
|
|
62008
62075
|
}, {
|
|
62009
|
-
default: withCtx(() => [..._cache[
|
|
62076
|
+
default: withCtx(() => [..._cache[11] || (_cache[11] = [
|
|
62010
62077
|
createTextVNode("\u641C\u7D22", -1)
|
|
62011
62078
|
])]),
|
|
62012
62079
|
_: 1
|
|
@@ -62026,11 +62093,14 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62026
62093
|
]),
|
|
62027
62094
|
createVNode(_component_el_table, {
|
|
62028
62095
|
data: $data.tableData,
|
|
62029
|
-
|
|
62096
|
+
height: "500px",
|
|
62030
62097
|
style: { "width": "100%" },
|
|
62031
62098
|
"check-strictly": "",
|
|
62032
|
-
"row-key": "
|
|
62033
|
-
ref: "tableRef"
|
|
62099
|
+
"row-key": "assetId",
|
|
62100
|
+
ref: "tableRef",
|
|
62101
|
+
"header-row-class-name": "headerRowClassName",
|
|
62102
|
+
"header-cell-class-name": "headerCellClassName",
|
|
62103
|
+
stripe: ""
|
|
62034
62104
|
}, {
|
|
62035
62105
|
default: withCtx(() => [
|
|
62036
62106
|
createVNode(_component_el_table_column, {
|
|
@@ -62039,7 +62109,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62039
62109
|
}),
|
|
62040
62110
|
createVNode(_component_el_table_column, {
|
|
62041
62111
|
prop: "assetCode",
|
|
62042
|
-
label: "\u8D44\u4EA7\u7F16\u7801"
|
|
62112
|
+
label: "\u8D44\u4EA7\u7F16\u7801",
|
|
62113
|
+
width: "200"
|
|
62043
62114
|
}),
|
|
62044
62115
|
createVNode(_component_el_table_column, {
|
|
62045
62116
|
prop: "labelName",
|
|
@@ -62047,6 +62118,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62047
62118
|
}),
|
|
62048
62119
|
createVNode(_component_el_table_column, {
|
|
62049
62120
|
prop: "assetTypeName",
|
|
62121
|
+
"header-align": "center",
|
|
62122
|
+
align: "center",
|
|
62050
62123
|
label: "\u8D44\u4EA7\u7C7B\u578B"
|
|
62051
62124
|
}),
|
|
62052
62125
|
createVNode(_component_el_table_column, {
|
|
@@ -62055,7 +62128,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62055
62128
|
}),
|
|
62056
62129
|
createVNode(_component_el_table_column, {
|
|
62057
62130
|
prop: "originalValue",
|
|
62058
|
-
label: "\u539F\u503C"
|
|
62131
|
+
label: "\u539F\u503C(\u4E07\u5143)",
|
|
62132
|
+
width: "120"
|
|
62059
62133
|
}, {
|
|
62060
62134
|
default: withCtx(({ row }) => [
|
|
62061
62135
|
createTextVNode(toDisplayString(row.originalValue | _ctx.formatMoney), 1)
|
|
@@ -62064,7 +62138,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62064
62138
|
}),
|
|
62065
62139
|
createVNode(_component_el_table_column, {
|
|
62066
62140
|
prop: "netValue",
|
|
62067
|
-
label: "\u51C0\u503C"
|
|
62141
|
+
label: "\u51C0\u503C(\u4E07\u5143)",
|
|
62142
|
+
width: "120"
|
|
62068
62143
|
}, {
|
|
62069
62144
|
default: withCtx(({ row }) => [
|
|
62070
62145
|
createTextVNode(toDisplayString(row.netValue | _ctx.formatMoney), 1)
|
|
@@ -62080,34 +62155,70 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62080
62155
|
"current-page": $data.currentPage,
|
|
62081
62156
|
layout: "total, sizes, prev, pager, next",
|
|
62082
62157
|
size: "small",
|
|
62083
|
-
total: $data.
|
|
62158
|
+
total: $data.total
|
|
62084
62159
|
}, null, 8, ["onSizeChange", "onCurrentChange", "current-page", "total"])
|
|
62085
62160
|
]),
|
|
62086
62161
|
createElementVNode("div", {
|
|
62087
62162
|
class: "center-wrap",
|
|
62088
|
-
onClick: _cache[
|
|
62089
|
-
},
|
|
62163
|
+
onClick: _cache[4] || (_cache[4] = (...args) => $options.handleAdd && $options.handleAdd(...args))
|
|
62164
|
+
}, [
|
|
62165
|
+
createVNode(_component_el_icon, null, {
|
|
62166
|
+
default: withCtx(() => [
|
|
62167
|
+
createVNode(_component_DArrowRight)
|
|
62168
|
+
]),
|
|
62169
|
+
_: 1
|
|
62170
|
+
})
|
|
62171
|
+
]),
|
|
62090
62172
|
createElementVNode("div", _hoisted_5, [
|
|
62091
|
-
createElementVNode("
|
|
62092
|
-
(
|
|
62093
|
-
|
|
62094
|
-
|
|
62095
|
-
|
|
62096
|
-
|
|
62097
|
-
|
|
62098
|
-
|
|
62099
|
-
|
|
62100
|
-
|
|
62101
|
-
|
|
62102
|
-
|
|
62103
|
-
|
|
62173
|
+
createElementVNode("div", _hoisted_6, [
|
|
62174
|
+
createVNode(_component_el_input, {
|
|
62175
|
+
modelValue: $data.searchValue,
|
|
62176
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.searchValue = $event),
|
|
62177
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D44\u4EA7\u540D\u79F0\u6216\u8D44\u4EA7\u7F16\u7801\u641C\u7D22",
|
|
62178
|
+
clearable: ""
|
|
62179
|
+
}, {
|
|
62180
|
+
prefix: withCtx(() => [
|
|
62181
|
+
createVNode(_component_el_icon, null, {
|
|
62182
|
+
default: withCtx(() => [
|
|
62183
|
+
createVNode(_component_Search)
|
|
62184
|
+
]),
|
|
62185
|
+
_: 1
|
|
62186
|
+
})
|
|
62187
|
+
]),
|
|
62188
|
+
_: 1
|
|
62189
|
+
}, 8, ["modelValue"])
|
|
62190
|
+
]),
|
|
62191
|
+
createVNode(_component_el_scrollbar, {
|
|
62192
|
+
height: "512px",
|
|
62193
|
+
class: "asset-wrap-scroll"
|
|
62194
|
+
}, {
|
|
62195
|
+
default: withCtx(() => [
|
|
62196
|
+
createElementVNode("ul", _hoisted_7, [
|
|
62197
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.filterList, (item) => {
|
|
62198
|
+
return openBlock(), createElementBlock("li", {
|
|
62199
|
+
class: "asset-item",
|
|
62200
|
+
key: item.assetId
|
|
62201
|
+
}, [
|
|
62202
|
+
createElementVNode("div", _hoisted_8, [
|
|
62203
|
+
createElementVNode("div", null, toDisplayString(item.labelName), 1),
|
|
62204
|
+
createElementVNode("div", null, toDisplayString(item.assetCode), 1)
|
|
62104
62205
|
]),
|
|
62105
|
-
|
|
62106
|
-
|
|
62107
|
-
|
|
62108
|
-
|
|
62109
|
-
|
|
62110
|
-
|
|
62206
|
+
createElementVNode("div", _hoisted_9, [
|
|
62207
|
+
createVNode(_component_el_icon, {
|
|
62208
|
+
onClick: ($event) => $options.handleRemove(item.assetId)
|
|
62209
|
+
}, {
|
|
62210
|
+
default: withCtx(() => [
|
|
62211
|
+
createVNode(_component_Close)
|
|
62212
|
+
]),
|
|
62213
|
+
_: 1
|
|
62214
|
+
}, 8, ["onClick"])
|
|
62215
|
+
])
|
|
62216
|
+
]);
|
|
62217
|
+
}), 128))
|
|
62218
|
+
])
|
|
62219
|
+
]),
|
|
62220
|
+
_: 1
|
|
62221
|
+
})
|
|
62111
62222
|
])
|
|
62112
62223
|
])
|
|
62113
62224
|
])
|
|
@@ -62115,9 +62226,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62115
62226
|
_: 1
|
|
62116
62227
|
}, 8, ["modelValue", "onClose"]);
|
|
62117
62228
|
}
|
|
62118
|
-
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
62229
|
+
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-b38703a2"]]);
|
|
62119
62230
|
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
62120
|
-
var index_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
62121
62231
|
const _sfc_main$3 = {
|
|
62122
62232
|
name: "asset-select-widget",
|
|
62123
62233
|
componentName: "FieldWidget",
|
|
@@ -62201,6 +62311,57 @@ const _sfc_main$3 = {
|
|
|
62201
62311
|
this.unregisterFromRefList();
|
|
62202
62312
|
},
|
|
62203
62313
|
methods: {
|
|
62314
|
+
updateFieldLabel(fieldName, newLabel) {
|
|
62315
|
+
var _a;
|
|
62316
|
+
if (!fieldName)
|
|
62317
|
+
return false;
|
|
62318
|
+
const labelText = newLabel == null ? "" : String(newLabel);
|
|
62319
|
+
const widgetRef = this.getWidgetRef(fieldName, false);
|
|
62320
|
+
if ((_a = widgetRef == null ? void 0 : widgetRef.field) == null ? void 0 : _a.options) {
|
|
62321
|
+
widgetRef.field.options.label = labelText;
|
|
62322
|
+
const formRef2 = this.getFormRef();
|
|
62323
|
+
if (formRef2 && typeof formRef2.$forceUpdate === "function") {
|
|
62324
|
+
formRef2.$forceUpdate();
|
|
62325
|
+
}
|
|
62326
|
+
return true;
|
|
62327
|
+
}
|
|
62328
|
+
const formRef = this.getFormRef();
|
|
62329
|
+
if (!formRef || typeof formRef.getFormJson !== "function" || typeof formRef.setFormJson !== "function") {
|
|
62330
|
+
return false;
|
|
62331
|
+
}
|
|
62332
|
+
const formJson = formRef.getFormJson();
|
|
62333
|
+
let updated = false;
|
|
62334
|
+
const walk = (list) => {
|
|
62335
|
+
if (!Array.isArray(list))
|
|
62336
|
+
return;
|
|
62337
|
+
list.forEach((w) => {
|
|
62338
|
+
var _a2;
|
|
62339
|
+
if (updated)
|
|
62340
|
+
return;
|
|
62341
|
+
if (((_a2 = w == null ? void 0 : w.options) == null ? void 0 : _a2.name) === fieldName) {
|
|
62342
|
+
w.options.label = labelText;
|
|
62343
|
+
updated = true;
|
|
62344
|
+
return;
|
|
62345
|
+
}
|
|
62346
|
+
if (Array.isArray(w == null ? void 0 : w.widgetList))
|
|
62347
|
+
walk(w.widgetList);
|
|
62348
|
+
if (Array.isArray(w == null ? void 0 : w.cols)) {
|
|
62349
|
+
w.cols.forEach((c) => walk(c == null ? void 0 : c.widgetList));
|
|
62350
|
+
}
|
|
62351
|
+
if (Array.isArray(w == null ? void 0 : w.rows)) {
|
|
62352
|
+
w.rows.forEach((r) => Array.isArray(r == null ? void 0 : r.cols) && r.cols.forEach((c) => walk(c == null ? void 0 : c.widgetList)));
|
|
62353
|
+
}
|
|
62354
|
+
if (Array.isArray(w == null ? void 0 : w.tabs)) {
|
|
62355
|
+
w.tabs.forEach((t) => walk(t == null ? void 0 : t.widgetList));
|
|
62356
|
+
}
|
|
62357
|
+
});
|
|
62358
|
+
};
|
|
62359
|
+
walk(formJson == null ? void 0 : formJson.widgetList);
|
|
62360
|
+
if (!updated)
|
|
62361
|
+
return false;
|
|
62362
|
+
formRef.setFormJson(formJson);
|
|
62363
|
+
return true;
|
|
62364
|
+
},
|
|
62204
62365
|
handleClick() {
|
|
62205
62366
|
this.dialogVisible = true;
|
|
62206
62367
|
},
|
|
@@ -62261,7 +62422,7 @@ const _sfc_main$3 = {
|
|
|
62261
62422
|
}
|
|
62262
62423
|
}
|
|
62263
62424
|
};
|
|
62264
|
-
const _hoisted_1$3 = { class: "
|
|
62425
|
+
const _hoisted_1$3 = { class: "asset-select-widget__trigger" };
|
|
62265
62426
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
62266
62427
|
const _component_el_button = resolveComponent("el-button");
|
|
62267
62428
|
const _component_asset_dialog = resolveComponent("asset-dialog");
|
|
@@ -62280,12 +62441,14 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62280
62441
|
}, {
|
|
62281
62442
|
default: withCtx(() => [
|
|
62282
62443
|
createElementVNode("div", {
|
|
62283
|
-
class: "
|
|
62444
|
+
class: "asset-select-widget",
|
|
62284
62445
|
style: normalizeStyle($options.widgetStyle)
|
|
62285
62446
|
}, [
|
|
62286
62447
|
createElementVNode("div", _hoisted_1$3, [
|
|
62287
62448
|
createVNode(_component_el_button, {
|
|
62288
62449
|
type: "primary",
|
|
62450
|
+
class: "asset-select-widget__button",
|
|
62451
|
+
plain: "",
|
|
62289
62452
|
disabled: $props.field.options.disabled,
|
|
62290
62453
|
placeholder: "\u8BF7\u9009\u62E9\u8D44\u4EA7",
|
|
62291
62454
|
onClick: $options.handleClick,
|
|
@@ -62310,7 +62473,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62310
62473
|
_: 1
|
|
62311
62474
|
}, 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"]);
|
|
62312
62475
|
}
|
|
62313
|
-
var AssetSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3]
|
|
62476
|
+
var AssetSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
62314
62477
|
var detailDialog_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
62315
62478
|
const _sfc_main$2 = {
|
|
62316
62479
|
name: "detail-dialog",
|
|
@@ -62430,8 +62593,6 @@ const _sfc_main$2 = {
|
|
|
62430
62593
|
if (typeof ref2.disableForm === "function") {
|
|
62431
62594
|
ref2.disableForm();
|
|
62432
62595
|
}
|
|
62433
|
-
} else if (typeof ref2.enableForm === "function") {
|
|
62434
|
-
ref2.enableForm();
|
|
62435
62596
|
}
|
|
62436
62597
|
},
|
|
62437
62598
|
applyFormJsonToRender(parsed) {
|
|
@@ -62598,7 +62759,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62598
62759
|
_: 1
|
|
62599
62760
|
}, 8, ["modelValue", "onClose"]);
|
|
62600
62761
|
}
|
|
62601
|
-
var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
62762
|
+
var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-8f804046"]]);
|
|
62602
62763
|
var index_vue_vue_type_style_index_0_lang = "";
|
|
62603
62764
|
const _sfc_main$1 = {
|
|
62604
62765
|
name: "asset-table-widget",
|
|
@@ -62701,6 +62862,17 @@ const _sfc_main$1 = {
|
|
|
62701
62862
|
const rowData = args[0];
|
|
62702
62863
|
const fn = new Function("rowData", handler);
|
|
62703
62864
|
fn.call(this, rowData);
|
|
62865
|
+
} else if (eventName === "onChange") {
|
|
62866
|
+
const value2 = args[0];
|
|
62867
|
+
const oldValue = args[1];
|
|
62868
|
+
if (this.subFormItemFlag) {
|
|
62869
|
+
const subFormData = this.formModel[this.subFormName] || [];
|
|
62870
|
+
const fn = new Function("value", "oldValue", "subFormData", "rowId", "sfrIdx", handler);
|
|
62871
|
+
fn.call(this, value2, oldValue, subFormData, this.subFormRowId, this.subFormRowIndex);
|
|
62872
|
+
} else {
|
|
62873
|
+
const fn = new Function("value", "oldValue", handler);
|
|
62874
|
+
fn.call(this, value2, oldValue);
|
|
62875
|
+
}
|
|
62704
62876
|
} else if (args.length > 0) {
|
|
62705
62877
|
const paramNames = args.map((_, index2) => `arg${index2}`).join(", ");
|
|
62706
62878
|
const fn = new Function(paramNames, handler);
|
|
@@ -62740,15 +62912,16 @@ const _sfc_main$1 = {
|
|
|
62740
62912
|
const index2 = this.fieldModel.findIndex((item) => item.id === this.detailDialogData.id);
|
|
62741
62913
|
if (index2 === -1)
|
|
62742
62914
|
return;
|
|
62915
|
+
const oldValue = lodash.exports.cloneDeep(this.fieldModel);
|
|
62743
62916
|
this.fieldModel[index2] = __spreadProps(__spreadValues(__spreadValues({}, this.fieldModel[index2]), formData), { isUpdate: true });
|
|
62744
|
-
|
|
62917
|
+
this.triggerEvent("onChange", this.fieldModel, oldValue);
|
|
62745
62918
|
}
|
|
62746
62919
|
}
|
|
62747
62920
|
};
|
|
62748
62921
|
const _hoisted_1$1 = { key: 1 };
|
|
62749
62922
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
62750
62923
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
62751
|
-
const
|
|
62924
|
+
const _component_el_text = resolveComponent("el-text");
|
|
62752
62925
|
const _component_el_table = resolveComponent("el-table");
|
|
62753
62926
|
const _component_detail_dialog = resolveComponent("detail-dialog");
|
|
62754
62927
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
@@ -62772,6 +62945,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62772
62945
|
createVNode(_component_el_table, {
|
|
62773
62946
|
data: $data.fieldModel,
|
|
62774
62947
|
"max-height": "500px",
|
|
62948
|
+
"header-row-class-name": "headerRowClassName",
|
|
62949
|
+
"header-cell-class-name": "headerCellClassName",
|
|
62950
|
+
stripe: "",
|
|
62775
62951
|
style: { "width": "100%" },
|
|
62776
62952
|
"row-key": "id",
|
|
62777
62953
|
ref: "tableRef"
|
|
@@ -62783,12 +62959,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62783
62959
|
}),
|
|
62784
62960
|
createVNode(_component_el_table_column, {
|
|
62785
62961
|
prop: "labelName",
|
|
62786
|
-
label: "\u8D44\u4EA7\u540D\u79F0"
|
|
62962
|
+
label: "\u8D44\u4EA7\u540D\u79F0",
|
|
62963
|
+
align: "left"
|
|
62787
62964
|
}, {
|
|
62788
62965
|
default: withCtx(({ row }) => [
|
|
62789
|
-
$props.field.options.clickRow ? (openBlock(), createBlock(
|
|
62966
|
+
$props.field.options.clickRow ? (openBlock(), createBlock(_component_el_text, {
|
|
62790
62967
|
key: 0,
|
|
62791
|
-
|
|
62968
|
+
class: "click-text",
|
|
62969
|
+
type: "primary",
|
|
62792
62970
|
size: "small",
|
|
62793
62971
|
onClick: ($event) => $options.handleRow(row)
|
|
62794
62972
|
}, {
|
|
@@ -62802,6 +62980,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62802
62980
|
}),
|
|
62803
62981
|
createVNode(_component_el_table_column, {
|
|
62804
62982
|
prop: "assetTypeName",
|
|
62983
|
+
align: "center",
|
|
62805
62984
|
label: "\u8D44\u4EA7\u7C7B\u578B"
|
|
62806
62985
|
}),
|
|
62807
62986
|
createVNode(_component_el_table_column, {
|
|
@@ -62828,6 +63007,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62828
63007
|
}),
|
|
62829
63008
|
createVNode(_component_el_table_column, {
|
|
62830
63009
|
prop: "isUpdate",
|
|
63010
|
+
align: "center",
|
|
63011
|
+
"header-align": "center",
|
|
62831
63012
|
label: "\u662F\u5426\u5DF2\u5B8C\u6210\u586B\u5199"
|
|
62832
63013
|
}, {
|
|
62833
63014
|
default: withCtx(({ row }) => [
|
|
@@ -63049,6 +63230,8 @@ const loadExtension = function(app) {
|
|
|
63049
63230
|
registerCPEditor(app, "card-shadow", "card-shadow-editor", createSelectEditor("shadow", "extension.setting.cardShadow", {
|
|
63050
63231
|
optionItems: shadowOptions
|
|
63051
63232
|
}));
|
|
63233
|
+
registerCPEditor(app, "mainTip", "mainTip-editor", createInputTextEditor("mainTip", "designer.setting.mainTip"));
|
|
63234
|
+
registerCPEditor(app, "subTip", "subTip-editor", createInputTextEditor("subTip", "designer.setting.subTip"));
|
|
63052
63235
|
app.component(AlertWidget.name, AlertWidget);
|
|
63053
63236
|
registerCPEditor(app, "alert-title", "alert-title-editor", createInputTextEditor("title", "extension.setting.alertTitle"));
|
|
63054
63237
|
let typeOptions = [
|