form-custom-test 3.0.116 → 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 +42 -40
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +9 -9
- package/dist/render.es.js +42 -40
- package/dist/render.style.css +1 -1
- package/dist/render.umd.js +20 -20
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -26185,13 +26185,13 @@ function registerIcon(app) {
|
|
|
26185
26185
|
if (typeof window !== "undefined") {
|
|
26186
26186
|
let loadSvg = function() {
|
|
26187
26187
|
var body = document.body;
|
|
26188
|
-
var svgDom = document.getElementById("
|
|
26188
|
+
var svgDom = document.getElementById("__svg__icons__dom__1777516735841__");
|
|
26189
26189
|
if (!svgDom) {
|
|
26190
26190
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
26191
26191
|
svgDom.style.position = "absolute";
|
|
26192
26192
|
svgDom.style.width = "0";
|
|
26193
26193
|
svgDom.style.height = "0";
|
|
26194
|
-
svgDom.id = "
|
|
26194
|
+
svgDom.id = "__svg__icons__dom__1777516735841__";
|
|
26195
26195
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
26196
26196
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
26197
26197
|
}
|
|
@@ -61832,11 +61832,11 @@ const _sfc_main$4 = {
|
|
|
61832
61832
|
},
|
|
61833
61833
|
assetTypeValue: {
|
|
61834
61834
|
handler(newVal) {
|
|
61835
|
+
this.disabled = !!newVal;
|
|
61835
61836
|
if (newVal) {
|
|
61836
61837
|
this.form.assetType = newVal;
|
|
61837
|
-
this.disabled = true;
|
|
61838
61838
|
} else {
|
|
61839
|
-
this.
|
|
61839
|
+
this.form.assetType = "all";
|
|
61840
61840
|
}
|
|
61841
61841
|
},
|
|
61842
61842
|
immediate: true
|
|
@@ -61858,7 +61858,7 @@ const _sfc_main$4 = {
|
|
|
61858
61858
|
assetTypeOptions: [],
|
|
61859
61859
|
form: {
|
|
61860
61860
|
assetCode: "",
|
|
61861
|
-
assetType: "",
|
|
61861
|
+
assetType: "all",
|
|
61862
61862
|
assetOwnerUnit: "",
|
|
61863
61863
|
labelName: ""
|
|
61864
61864
|
},
|
|
@@ -61871,9 +61871,21 @@ const _sfc_main$4 = {
|
|
|
61871
61871
|
},
|
|
61872
61872
|
methods: {
|
|
61873
61873
|
handleClose() {
|
|
61874
|
+
this.form = {
|
|
61875
|
+
assetCode: "",
|
|
61876
|
+
assetType: "all",
|
|
61877
|
+
assetOwnerUnit: "",
|
|
61878
|
+
labelName: ""
|
|
61879
|
+
};
|
|
61874
61880
|
this.$emit("close");
|
|
61875
61881
|
},
|
|
61876
61882
|
handleConfirm() {
|
|
61883
|
+
this.form = {
|
|
61884
|
+
assetCode: "",
|
|
61885
|
+
assetType: "all",
|
|
61886
|
+
assetOwnerUnit: "",
|
|
61887
|
+
labelName: ""
|
|
61888
|
+
};
|
|
61877
61889
|
this.$emit("confirm", this.selectedRows);
|
|
61878
61890
|
},
|
|
61879
61891
|
handleSelectionChange(selection) {
|
|
@@ -61904,7 +61916,7 @@ const _sfc_main$4 = {
|
|
|
61904
61916
|
service$1({
|
|
61905
61917
|
method: "post",
|
|
61906
61918
|
url: "/asset-business/overview/pageList",
|
|
61907
|
-
data: __spreadValues({ size: this.pageSize, current: this.currentPage, reqType: "disposal" }, this.form)
|
|
61919
|
+
data: __spreadProps(__spreadValues({ size: this.pageSize, current: this.currentPage, reqType: "disposal" }, this.form), { assetType: this.form.assetType === "all" ? "" : this.form.assetType })
|
|
61908
61920
|
}).then(({ data: data2 }) => {
|
|
61909
61921
|
const { records, total, current } = data2;
|
|
61910
61922
|
this.tableData = records.map((item) => {
|
|
@@ -61932,39 +61944,19 @@ const _sfc_main$4 = {
|
|
|
61932
61944
|
if (!selection || selection.length === 0) {
|
|
61933
61945
|
return;
|
|
61934
61946
|
}
|
|
61935
|
-
if (this.limit === 1) {
|
|
61936
|
-
const picked = selection[selection.length - 1];
|
|
61937
|
-
this.selectedRows = picked ? [picked] : [];
|
|
61938
|
-
if (tableRef && typeof tableRef.clearSelection === "function") {
|
|
61939
|
-
tableRef.clearSelection();
|
|
61940
|
-
}
|
|
61941
|
-
return;
|
|
61942
|
-
}
|
|
61943
|
-
if (this.limit > 1) {
|
|
61944
|
-
const acc = [...this.selectedRows];
|
|
61945
|
-
selection.forEach((item) => {
|
|
61946
|
-
if (acc.length >= this.limit)
|
|
61947
|
-
return;
|
|
61948
|
-
if (!acc.some((i) => i.assetId === item.assetId)) {
|
|
61949
|
-
acc.push(item);
|
|
61950
|
-
}
|
|
61951
|
-
});
|
|
61952
|
-
this.selectedRows = acc;
|
|
61953
|
-
if (tableRef && typeof tableRef.clearSelection === "function") {
|
|
61954
|
-
tableRef.clearSelection();
|
|
61955
|
-
}
|
|
61956
|
-
return;
|
|
61957
|
-
}
|
|
61958
61947
|
const arr = [...this.selectedRows, ...selection].reduce((acc, item) => {
|
|
61959
61948
|
if (!acc.some((i) => i.assetId === item.assetId)) {
|
|
61960
61949
|
acc.push(item);
|
|
61961
61950
|
}
|
|
61962
61951
|
return acc;
|
|
61963
61952
|
}, []);
|
|
61964
|
-
this.
|
|
61965
|
-
|
|
61966
|
-
|
|
61953
|
+
if (this.limit) {
|
|
61954
|
+
if (arr.length > this.limit) {
|
|
61955
|
+
this.$message.error(`\u6700\u591A\u9009\u62E9 ${this.limit} \u4E2A\u8D44\u4EA7`);
|
|
61956
|
+
return;
|
|
61957
|
+
}
|
|
61967
61958
|
}
|
|
61959
|
+
this.selectedRows = arr;
|
|
61968
61960
|
},
|
|
61969
61961
|
handleRemove(assetId) {
|
|
61970
61962
|
const index2 = this.selectedRows.findIndex((item) => item.assetId === assetId);
|
|
@@ -61986,6 +61978,10 @@ const _sfc_main$4 = {
|
|
|
61986
61978
|
label: item.label,
|
|
61987
61979
|
value: item.itemValue
|
|
61988
61980
|
}));
|
|
61981
|
+
this.assetTypeOptions.unshift({
|
|
61982
|
+
label: "\u5168\u90E8",
|
|
61983
|
+
value: "all"
|
|
61984
|
+
});
|
|
61989
61985
|
});
|
|
61990
61986
|
},
|
|
61991
61987
|
handleSearch() {
|
|
@@ -62063,7 +62059,10 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62063
62059
|
createElementVNode("div", _hoisted_2$2, [
|
|
62064
62060
|
createElementVNode("div", _hoisted_3$1, [
|
|
62065
62061
|
createElementVNode("div", _hoisted_4, [
|
|
62066
|
-
createVNode(_component_el_form, {
|
|
62062
|
+
createVNode(_component_el_form, {
|
|
62063
|
+
model: $data.form,
|
|
62064
|
+
ref: "formRef"
|
|
62065
|
+
}, {
|
|
62067
62066
|
default: withCtx(() => [
|
|
62068
62067
|
createVNode(_component_el_row, { gutter: 12 }, {
|
|
62069
62068
|
default: withCtx(() => [
|
|
@@ -62075,7 +62074,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62075
62074
|
maxlength: "50",
|
|
62076
62075
|
modelValue: $data.form.assetCode,
|
|
62077
62076
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event),
|
|
62078
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
62077
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
62078
|
+
clearable: ""
|
|
62079
62079
|
}, {
|
|
62080
62080
|
prefix: withCtx(() => [..._cache[7] || (_cache[7] = [
|
|
62081
62081
|
createElementVNode("span", null, "\u8D44\u4EA7\u7F16\u7801\uFF1A", -1)
|
|
@@ -62096,7 +62096,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62096
62096
|
maxlength: "50",
|
|
62097
62097
|
modelValue: $data.form.labelName,
|
|
62098
62098
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.form.labelName = $event),
|
|
62099
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
62099
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
62100
|
+
clearable: ""
|
|
62100
62101
|
}, {
|
|
62101
62102
|
prefix: withCtx(() => [..._cache[8] || (_cache[8] = [
|
|
62102
62103
|
createElementVNode("span", null, "\u8D44\u4EA7\u540D\u79F0\uFF1A", -1)
|
|
@@ -62117,7 +62118,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62117
62118
|
disabled: $data.disabled,
|
|
62118
62119
|
modelValue: $data.form.assetType,
|
|
62119
62120
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.form.assetType = $event),
|
|
62120
|
-
placeholder: "\u8BF7\u9009\u62E9"
|
|
62121
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
62122
|
+
clearable: ""
|
|
62121
62123
|
}, {
|
|
62122
62124
|
prefix: withCtx(() => [..._cache[9] || (_cache[9] = [
|
|
62123
62125
|
createElementVNode("span", null, "\u8D44\u4EA7\u7C7B\u578B\uFF1A", -1)
|
|
@@ -62147,7 +62149,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62147
62149
|
maxlength: "50",
|
|
62148
62150
|
modelValue: $data.form.assetOwnerUnit,
|
|
62149
62151
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.form.assetOwnerUnit = $event),
|
|
62150
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
62152
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
62153
|
+
clearable: ""
|
|
62151
62154
|
}, {
|
|
62152
62155
|
prefix: withCtx(() => [..._cache[10] || (_cache[10] = [
|
|
62153
62156
|
createElementVNode("span", null, "\u4EA7\u6743\u6240\u5C5E\u5355\u4F4D\uFF1A", -1)
|
|
@@ -62193,7 +62196,6 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62193
62196
|
"check-strictly": "",
|
|
62194
62197
|
"row-key": "assetId",
|
|
62195
62198
|
ref: "tableRef",
|
|
62196
|
-
onSelectionChange: $options.handleSelectionChange,
|
|
62197
62199
|
"header-row-class-name": "headerRowClassName",
|
|
62198
62200
|
"header-cell-class-name": "headerCellClassName",
|
|
62199
62201
|
stripe: ""
|
|
@@ -62244,7 +62246,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62244
62246
|
})
|
|
62245
62247
|
]),
|
|
62246
62248
|
_: 1
|
|
62247
|
-
}, 8, ["data"
|
|
62249
|
+
}, 8, ["data"]),
|
|
62248
62250
|
createVNode(_component_el_pagination, {
|
|
62249
62251
|
onSizeChange: $options.handleSizeChange,
|
|
62250
62252
|
onCurrentChange: $options.handleCurrentChange,
|
|
@@ -62322,7 +62324,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62322
62324
|
_: 1
|
|
62323
62325
|
}, 8, ["modelValue", "onClose"]);
|
|
62324
62326
|
}
|
|
62325
|
-
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
62327
|
+
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-6f20caea"]]);
|
|
62326
62328
|
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
62327
62329
|
const _sfc_main$3 = {
|
|
62328
62330
|
name: "asset-select-widget",
|