form-custom-test 3.0.115 → 3.0.117
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 +45 -43
- package/dist/designer.style.css +2 -2
- package/dist/designer.umd.js +9 -9
- package/dist/render.es.js +45 -43
- package/dist/render.style.css +2 -2
- package/dist/render.umd.js +20 -20
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -11455,7 +11455,7 @@ function _sfc_render$3s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11455
11455
|
return openBlock(), createBlock(_component_el_checkbox_button, {
|
|
11456
11456
|
key: index2,
|
|
11457
11457
|
label: item.value,
|
|
11458
|
-
disabled: item.disabled,
|
|
11458
|
+
disabled: _ctx.getDisabled() || item.disabled,
|
|
11459
11459
|
border: $props.field.options.border,
|
|
11460
11460
|
style: normalizeStyle({ display: $props.field.options.displayStyle })
|
|
11461
11461
|
}, {
|
|
@@ -11468,7 +11468,7 @@ function _sfc_render$3s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11468
11468
|
return openBlock(), createBlock(_component_el_checkbox, {
|
|
11469
11469
|
key: index2,
|
|
11470
11470
|
label: item.value,
|
|
11471
|
-
disabled: item.disabled,
|
|
11471
|
+
disabled: _ctx.getDisabled() || item.disabled,
|
|
11472
11472
|
border: $props.field.options.border,
|
|
11473
11473
|
style: normalizeStyle({ display: $props.field.options.displayStyle })
|
|
11474
11474
|
}, {
|
|
@@ -11485,7 +11485,7 @@ function _sfc_render$3s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11485
11485
|
_: 1
|
|
11486
11486
|
}, 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"]);
|
|
11487
11487
|
}
|
|
11488
|
-
var checkboxWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3s, [["render", _sfc_render$3s], ["__scopeId", "data-v-
|
|
11488
|
+
var checkboxWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3s, [["render", _sfc_render$3s], ["__scopeId", "data-v-8c1ca3c8"]]);
|
|
11489
11489
|
var __glob_0_2$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11490
11490
|
__proto__: null,
|
|
11491
11491
|
"default": checkboxWidget
|
|
@@ -68451,13 +68451,13 @@ function registerIcon(app) {
|
|
|
68451
68451
|
if (typeof window !== "undefined") {
|
|
68452
68452
|
let loadSvg = function() {
|
|
68453
68453
|
var body = document.body;
|
|
68454
|
-
var svgDom = document.getElementById("
|
|
68454
|
+
var svgDom = document.getElementById("__svg__icons__dom__1777516726974__");
|
|
68455
68455
|
if (!svgDom) {
|
|
68456
68456
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
68457
68457
|
svgDom.style.position = "absolute";
|
|
68458
68458
|
svgDom.style.width = "0";
|
|
68459
68459
|
svgDom.style.height = "0";
|
|
68460
|
-
svgDom.id = "
|
|
68460
|
+
svgDom.id = "__svg__icons__dom__1777516726974__";
|
|
68461
68461
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
68462
68462
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
68463
68463
|
}
|
|
@@ -78551,11 +78551,11 @@ const _sfc_main$4 = {
|
|
|
78551
78551
|
},
|
|
78552
78552
|
assetTypeValue: {
|
|
78553
78553
|
handler(newVal) {
|
|
78554
|
+
this.disabled = !!newVal;
|
|
78554
78555
|
if (newVal) {
|
|
78555
78556
|
this.form.assetType = newVal;
|
|
78556
|
-
this.disabled = true;
|
|
78557
78557
|
} else {
|
|
78558
|
-
this.
|
|
78558
|
+
this.form.assetType = "all";
|
|
78559
78559
|
}
|
|
78560
78560
|
},
|
|
78561
78561
|
immediate: true
|
|
@@ -78577,7 +78577,7 @@ const _sfc_main$4 = {
|
|
|
78577
78577
|
assetTypeOptions: [],
|
|
78578
78578
|
form: {
|
|
78579
78579
|
assetCode: "",
|
|
78580
|
-
assetType: "",
|
|
78580
|
+
assetType: "all",
|
|
78581
78581
|
assetOwnerUnit: "",
|
|
78582
78582
|
labelName: ""
|
|
78583
78583
|
},
|
|
@@ -78590,9 +78590,21 @@ const _sfc_main$4 = {
|
|
|
78590
78590
|
},
|
|
78591
78591
|
methods: {
|
|
78592
78592
|
handleClose() {
|
|
78593
|
+
this.form = {
|
|
78594
|
+
assetCode: "",
|
|
78595
|
+
assetType: "all",
|
|
78596
|
+
assetOwnerUnit: "",
|
|
78597
|
+
labelName: ""
|
|
78598
|
+
};
|
|
78593
78599
|
this.$emit("close");
|
|
78594
78600
|
},
|
|
78595
78601
|
handleConfirm() {
|
|
78602
|
+
this.form = {
|
|
78603
|
+
assetCode: "",
|
|
78604
|
+
assetType: "all",
|
|
78605
|
+
assetOwnerUnit: "",
|
|
78606
|
+
labelName: ""
|
|
78607
|
+
};
|
|
78596
78608
|
this.$emit("confirm", this.selectedRows);
|
|
78597
78609
|
},
|
|
78598
78610
|
handleSelectionChange(selection) {
|
|
@@ -78623,7 +78635,7 @@ const _sfc_main$4 = {
|
|
|
78623
78635
|
service$1({
|
|
78624
78636
|
method: "post",
|
|
78625
78637
|
url: "/asset-business/overview/pageList",
|
|
78626
|
-
data: __spreadValues({ size: this.pageSize, current: this.currentPage, reqType: "disposal" }, this.form)
|
|
78638
|
+
data: __spreadProps(__spreadValues({ size: this.pageSize, current: this.currentPage, reqType: "disposal" }, this.form), { assetType: this.form.assetType === "all" ? "" : this.form.assetType })
|
|
78627
78639
|
}).then(({ data: data2 }) => {
|
|
78628
78640
|
const { records, total, current } = data2;
|
|
78629
78641
|
this.tableData = records.map((item) => {
|
|
@@ -78651,39 +78663,19 @@ const _sfc_main$4 = {
|
|
|
78651
78663
|
if (!selection || selection.length === 0) {
|
|
78652
78664
|
return;
|
|
78653
78665
|
}
|
|
78654
|
-
if (this.limit === 1) {
|
|
78655
|
-
const picked = selection[selection.length - 1];
|
|
78656
|
-
this.selectedRows = picked ? [picked] : [];
|
|
78657
|
-
if (tableRef && typeof tableRef.clearSelection === "function") {
|
|
78658
|
-
tableRef.clearSelection();
|
|
78659
|
-
}
|
|
78660
|
-
return;
|
|
78661
|
-
}
|
|
78662
|
-
if (this.limit > 1) {
|
|
78663
|
-
const acc = [...this.selectedRows];
|
|
78664
|
-
selection.forEach((item) => {
|
|
78665
|
-
if (acc.length >= this.limit)
|
|
78666
|
-
return;
|
|
78667
|
-
if (!acc.some((i) => i.assetId === item.assetId)) {
|
|
78668
|
-
acc.push(item);
|
|
78669
|
-
}
|
|
78670
|
-
});
|
|
78671
|
-
this.selectedRows = acc;
|
|
78672
|
-
if (tableRef && typeof tableRef.clearSelection === "function") {
|
|
78673
|
-
tableRef.clearSelection();
|
|
78674
|
-
}
|
|
78675
|
-
return;
|
|
78676
|
-
}
|
|
78677
78666
|
const arr = [...this.selectedRows, ...selection].reduce((acc, item) => {
|
|
78678
78667
|
if (!acc.some((i) => i.assetId === item.assetId)) {
|
|
78679
78668
|
acc.push(item);
|
|
78680
78669
|
}
|
|
78681
78670
|
return acc;
|
|
78682
78671
|
}, []);
|
|
78683
|
-
this.
|
|
78684
|
-
|
|
78685
|
-
|
|
78672
|
+
if (this.limit) {
|
|
78673
|
+
if (arr.length > this.limit) {
|
|
78674
|
+
this.$message.error(`\u6700\u591A\u9009\u62E9 ${this.limit} \u4E2A\u8D44\u4EA7`);
|
|
78675
|
+
return;
|
|
78676
|
+
}
|
|
78686
78677
|
}
|
|
78678
|
+
this.selectedRows = arr;
|
|
78687
78679
|
},
|
|
78688
78680
|
handleRemove(assetId) {
|
|
78689
78681
|
const index2 = this.selectedRows.findIndex((item) => item.assetId === assetId);
|
|
@@ -78705,6 +78697,10 @@ const _sfc_main$4 = {
|
|
|
78705
78697
|
label: item.label,
|
|
78706
78698
|
value: item.itemValue
|
|
78707
78699
|
}));
|
|
78700
|
+
this.assetTypeOptions.unshift({
|
|
78701
|
+
label: "\u5168\u90E8",
|
|
78702
|
+
value: "all"
|
|
78703
|
+
});
|
|
78708
78704
|
});
|
|
78709
78705
|
},
|
|
78710
78706
|
handleSearch() {
|
|
@@ -78782,7 +78778,10 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78782
78778
|
createElementVNode("div", _hoisted_2$2, [
|
|
78783
78779
|
createElementVNode("div", _hoisted_3$1, [
|
|
78784
78780
|
createElementVNode("div", _hoisted_4, [
|
|
78785
|
-
createVNode(_component_el_form, {
|
|
78781
|
+
createVNode(_component_el_form, {
|
|
78782
|
+
model: $data.form,
|
|
78783
|
+
ref: "formRef"
|
|
78784
|
+
}, {
|
|
78786
78785
|
default: withCtx(() => [
|
|
78787
78786
|
createVNode(_component_el_row, { gutter: 12 }, {
|
|
78788
78787
|
default: withCtx(() => [
|
|
@@ -78794,7 +78793,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78794
78793
|
maxlength: "50",
|
|
78795
78794
|
modelValue: $data.form.assetCode,
|
|
78796
78795
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event),
|
|
78797
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
78796
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
78797
|
+
clearable: ""
|
|
78798
78798
|
}, {
|
|
78799
78799
|
prefix: withCtx(() => [..._cache[7] || (_cache[7] = [
|
|
78800
78800
|
createElementVNode("span", null, "\u8D44\u4EA7\u7F16\u7801\uFF1A", -1)
|
|
@@ -78815,7 +78815,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78815
78815
|
maxlength: "50",
|
|
78816
78816
|
modelValue: $data.form.labelName,
|
|
78817
78817
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.form.labelName = $event),
|
|
78818
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
78818
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
78819
|
+
clearable: ""
|
|
78819
78820
|
}, {
|
|
78820
78821
|
prefix: withCtx(() => [..._cache[8] || (_cache[8] = [
|
|
78821
78822
|
createElementVNode("span", null, "\u8D44\u4EA7\u540D\u79F0\uFF1A", -1)
|
|
@@ -78836,7 +78837,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78836
78837
|
disabled: $data.disabled,
|
|
78837
78838
|
modelValue: $data.form.assetType,
|
|
78838
78839
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.form.assetType = $event),
|
|
78839
|
-
placeholder: "\u8BF7\u9009\u62E9"
|
|
78840
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
78841
|
+
clearable: ""
|
|
78840
78842
|
}, {
|
|
78841
78843
|
prefix: withCtx(() => [..._cache[9] || (_cache[9] = [
|
|
78842
78844
|
createElementVNode("span", null, "\u8D44\u4EA7\u7C7B\u578B\uFF1A", -1)
|
|
@@ -78866,7 +78868,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78866
78868
|
maxlength: "50",
|
|
78867
78869
|
modelValue: $data.form.assetOwnerUnit,
|
|
78868
78870
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.form.assetOwnerUnit = $event),
|
|
78869
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
78871
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
78872
|
+
clearable: ""
|
|
78870
78873
|
}, {
|
|
78871
78874
|
prefix: withCtx(() => [..._cache[10] || (_cache[10] = [
|
|
78872
78875
|
createElementVNode("span", null, "\u4EA7\u6743\u6240\u5C5E\u5355\u4F4D\uFF1A", -1)
|
|
@@ -78912,7 +78915,6 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78912
78915
|
"check-strictly": "",
|
|
78913
78916
|
"row-key": "assetId",
|
|
78914
78917
|
ref: "tableRef",
|
|
78915
|
-
onSelectionChange: $options.handleSelectionChange,
|
|
78916
78918
|
"header-row-class-name": "headerRowClassName",
|
|
78917
78919
|
"header-cell-class-name": "headerCellClassName",
|
|
78918
78920
|
stripe: ""
|
|
@@ -78963,7 +78965,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78963
78965
|
})
|
|
78964
78966
|
]),
|
|
78965
78967
|
_: 1
|
|
78966
|
-
}, 8, ["data"
|
|
78968
|
+
}, 8, ["data"]),
|
|
78967
78969
|
createVNode(_component_el_pagination, {
|
|
78968
78970
|
onSizeChange: $options.handleSizeChange,
|
|
78969
78971
|
onCurrentChange: $options.handleCurrentChange,
|
|
@@ -79041,7 +79043,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
79041
79043
|
_: 1
|
|
79042
79044
|
}, 8, ["modelValue", "onClose"]);
|
|
79043
79045
|
}
|
|
79044
|
-
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
79046
|
+
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-6f20caea"]]);
|
|
79045
79047
|
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
79046
79048
|
const _sfc_main$3 = {
|
|
79047
79049
|
name: "asset-select-widget",
|