yuanjia-form-pro-standard 1.1.6-beta6.7 → 1.1.6-beta6.8
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/designer.es.js +31 -14
- package/designer.umd.js +2 -2
- package/package.json +1 -1
package/designer.es.js
CHANGED
|
@@ -210793,10 +210793,12 @@ const _sfc_main$46 = {
|
|
|
210793
210793
|
data() {
|
|
210794
210794
|
return {
|
|
210795
210795
|
optionList: [],
|
|
210796
|
-
headers: {}
|
|
210796
|
+
headers: {},
|
|
210797
|
+
loading: false
|
|
210797
210798
|
};
|
|
210798
210799
|
},
|
|
210799
210800
|
created() {
|
|
210801
|
+
this.loadFormList();
|
|
210800
210802
|
},
|
|
210801
210803
|
mounted() {
|
|
210802
210804
|
const token = almLocalStorage.getItem("token");
|
|
@@ -210809,18 +210811,30 @@ const _sfc_main$46 = {
|
|
|
210809
210811
|
headers["X-Authorization"] = "Bearer " + rToken;
|
|
210810
210812
|
}
|
|
210811
210813
|
this.headers = headers;
|
|
210812
|
-
const url = commonGETUrlTranslation("formset/formset_construct_manage", { PageIndex: 1, PageSize: 100 });
|
|
210813
|
-
axios$1.get(url, { headers }).then((res) => {
|
|
210814
|
-
var _a2, _b2, _c2;
|
|
210815
|
-
this.optionList = (_c2 = (_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) == null ? void 0 : _b2.Items) == null ? void 0 : _c2.map((item) => ({
|
|
210816
|
-
label: item == null ? void 0 : item.name,
|
|
210817
|
-
value: item == null ? void 0 : item.id
|
|
210818
|
-
}));
|
|
210819
|
-
}).catch((error2) => {
|
|
210820
|
-
this.$message.error(this.i18nt("designer.hint.loadFormTemplateFailed") + ":" + error2);
|
|
210821
|
-
});
|
|
210822
210814
|
},
|
|
210823
210815
|
methods: {
|
|
210816
|
+
loadFormList(keywords2 = "") {
|
|
210817
|
+
const params = { PageIndex: 1, PageSize: 100 };
|
|
210818
|
+
if (keywords2) {
|
|
210819
|
+
params.keywords = keywords2;
|
|
210820
|
+
}
|
|
210821
|
+
const url = commonGETUrlTranslation("formset/formset_construct_manage", params);
|
|
210822
|
+
this.loading = true;
|
|
210823
|
+
axios$1.get(url, { headers: this.headers }).then((res) => {
|
|
210824
|
+
var _a2, _b2, _c2;
|
|
210825
|
+
this.optionList = ((_c2 = (_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) == null ? void 0 : _b2.Items) == null ? void 0 : _c2.map((item) => ({
|
|
210826
|
+
label: item == null ? void 0 : item.name,
|
|
210827
|
+
value: item == null ? void 0 : item.id
|
|
210828
|
+
}))) || [];
|
|
210829
|
+
this.loading = false;
|
|
210830
|
+
}).catch((error2) => {
|
|
210831
|
+
this.$message.error(this.i18nt("designer.hint.loadFormTemplateFailed") + ":" + error2);
|
|
210832
|
+
this.loading = false;
|
|
210833
|
+
});
|
|
210834
|
+
},
|
|
210835
|
+
remoteSearch: _.debounce(function(query) {
|
|
210836
|
+
this.loadFormList(query);
|
|
210837
|
+
}, 300),
|
|
210824
210838
|
handleChange(val) {
|
|
210825
210839
|
var _a2;
|
|
210826
210840
|
console.log(this.optionModel, val, "optionModel");
|
|
@@ -210843,6 +210857,9 @@ function _sfc_render$46(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
210843
210857
|
modelValue: $props.optionModel.childFormKey,
|
|
210844
210858
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $props.optionModel.childFormKey = $event),
|
|
210845
210859
|
filterable: "",
|
|
210860
|
+
remote: "",
|
|
210861
|
+
"remote-method": $options.remoteSearch,
|
|
210862
|
+
loading: $data.loading,
|
|
210846
210863
|
"allow-create": "",
|
|
210847
210864
|
onChange: $options.handleChange
|
|
210848
210865
|
}, {
|
|
@@ -210856,7 +210873,7 @@ function _sfc_render$46(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
210856
210873
|
}), 128))
|
|
210857
210874
|
]),
|
|
210858
210875
|
_: 1
|
|
210859
|
-
}, 8, ["modelValue", "onChange"])
|
|
210876
|
+
}, 8, ["modelValue", "remote-method", "loading", "onChange"])
|
|
210860
210877
|
]),
|
|
210861
210878
|
_: 1
|
|
210862
210879
|
}, 8, ["label"]);
|
|
@@ -236451,13 +236468,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
|
|
|
236451
236468
|
if (typeof window !== "undefined") {
|
|
236452
236469
|
let loadSvg = function() {
|
|
236453
236470
|
var body = document.body;
|
|
236454
|
-
var svgDom = document.getElementById("
|
|
236471
|
+
var svgDom = document.getElementById("__svg__icons__dom__1768267384727__");
|
|
236455
236472
|
if (!svgDom) {
|
|
236456
236473
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
236457
236474
|
svgDom.style.position = "absolute";
|
|
236458
236475
|
svgDom.style.width = "0";
|
|
236459
236476
|
svgDom.style.height = "0";
|
|
236460
|
-
svgDom.id = "
|
|
236477
|
+
svgDom.id = "__svg__icons__dom__1768267384727__";
|
|
236461
236478
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
236462
236479
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
236463
236480
|
}
|