mooho-base-admin-plus 0.1.64 → 0.1.65
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/mooho-base-admin-plus.min.esm.js +33 -33
- package/dist/mooho-base-admin-plus.min.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/input/dialog-select.vue +9 -8
- package/src/components/richEditor/index.vue +2 -2
- package/src/components/upload/upload-attachment.vue +6 -6
- package/src/components/upload/upload-image.vue +10 -10
- package/src/components/view/filter-edit.vue +2 -2
- package/src/setting.js +1 -1
|
@@ -1159,7 +1159,7 @@ const Setting = {
|
|
|
1159
1159
|
tabsOrder: true,
|
|
1160
1160
|
siderFix: true,
|
|
1161
1161
|
headerFix: true,
|
|
1162
|
-
headerHide:
|
|
1162
|
+
headerHide: true,
|
|
1163
1163
|
headerMenu: false,
|
|
1164
1164
|
menuAccordion: true,
|
|
1165
1165
|
showSiderCollapse: true,
|
|
@@ -23915,7 +23915,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23915
23915
|
]),
|
|
23916
23916
|
_: 1
|
|
23917
23917
|
}, 16)) : createCommentVNode("", true),
|
|
23918
|
-
$options.needDataSource && $data.data.controlType != "DialogSelect" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 3 }, _ctx.grid8)), {
|
|
23918
|
+
$options.needDataSource && $data.data.controlType != "DialogSelect" && $data.data.controlType != "MultiDialogSelect" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 3 }, _ctx.grid8)), {
|
|
23919
23919
|
default: withCtx(() => [
|
|
23920
23920
|
createVNode$1(_component_FormItem, {
|
|
23921
23921
|
label: "\u6570\u636E\u6E90",
|
|
@@ -23942,7 +23942,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23942
23942
|
default: withCtx(() => [
|
|
23943
23943
|
createVNode$1(_component_FormItem, {
|
|
23944
23944
|
label: "\u89C6\u56FE",
|
|
23945
|
-
key: "
|
|
23945
|
+
key: "source",
|
|
23946
23946
|
prop: "source"
|
|
23947
23947
|
}, {
|
|
23948
23948
|
default: withCtx(() => [
|
|
@@ -31251,7 +31251,7 @@ const _sfc_main$C = {
|
|
|
31251
31251
|
this.$_setUpEditorEvents();
|
|
31252
31252
|
const newData = this.instance.getData();
|
|
31253
31253
|
if (data2 !== newData) {
|
|
31254
|
-
this.$emit("update:
|
|
31254
|
+
this.$emit("update:modelValue", newData);
|
|
31255
31255
|
}
|
|
31256
31256
|
this.instance.fire("unlockSnapshot");
|
|
31257
31257
|
}
|
|
@@ -31262,7 +31262,7 @@ const _sfc_main$C = {
|
|
|
31262
31262
|
const onChange = debounce((evt) => {
|
|
31263
31263
|
const data2 = editor.getData();
|
|
31264
31264
|
if (this.modelValue !== data2) {
|
|
31265
|
-
this.$emit("update:
|
|
31265
|
+
this.$emit("update:modelValue", data2, evt, editor);
|
|
31266
31266
|
}
|
|
31267
31267
|
}, 80);
|
|
31268
31268
|
editor.on("change", onChange);
|
|
@@ -31284,7 +31284,7 @@ const _sfc_main$B = {
|
|
|
31284
31284
|
};
|
|
31285
31285
|
},
|
|
31286
31286
|
props: {
|
|
31287
|
-
|
|
31287
|
+
modelValue: {
|
|
31288
31288
|
type: String
|
|
31289
31289
|
},
|
|
31290
31290
|
source: {
|
|
@@ -31316,7 +31316,7 @@ const _sfc_main$B = {
|
|
|
31316
31316
|
},
|
|
31317
31317
|
computed: {},
|
|
31318
31318
|
watch: {
|
|
31319
|
-
|
|
31319
|
+
modelValue() {
|
|
31320
31320
|
this.showSelected();
|
|
31321
31321
|
}
|
|
31322
31322
|
},
|
|
@@ -31325,7 +31325,7 @@ const _sfc_main$B = {
|
|
|
31325
31325
|
},
|
|
31326
31326
|
methods: __spreadProps(__spreadValues({}, mapActions("admin/dataView", { loadDataView: "load" })), {
|
|
31327
31327
|
showSelected() {
|
|
31328
|
-
if (this.
|
|
31328
|
+
if (this.modelValue == null) {
|
|
31329
31329
|
this.selected = null;
|
|
31330
31330
|
this.selectedData = null;
|
|
31331
31331
|
return;
|
|
@@ -31334,7 +31334,7 @@ const _sfc_main$B = {
|
|
|
31334
31334
|
page: 1,
|
|
31335
31335
|
per: 999
|
|
31336
31336
|
};
|
|
31337
|
-
filter2[this.sourceDataCode] = JSON.parse(this.
|
|
31337
|
+
filter2[this.sourceDataCode] = JSON.parse(this.modelValue).join(",");
|
|
31338
31338
|
this.loadDataView(this.source).then(async (view) => {
|
|
31339
31339
|
if (view.dataView.isCustom) {
|
|
31340
31340
|
let res2 = await customModelApi.query(view.dataView.model, filter2);
|
|
@@ -31367,7 +31367,7 @@ const _sfc_main$B = {
|
|
|
31367
31367
|
page: 1,
|
|
31368
31368
|
per: 1
|
|
31369
31369
|
};
|
|
31370
|
-
filter2[this.sourceDataCode] = this.
|
|
31370
|
+
filter2[this.sourceDataCode] = this.modelValue;
|
|
31371
31371
|
this.loadDataView(this.source).then(async (view) => {
|
|
31372
31372
|
if (view.dataView.isCustom) {
|
|
31373
31373
|
let res2 = await customModelApi.query(view.dataView.model, filter2);
|
|
@@ -31407,14 +31407,14 @@ const _sfc_main$B = {
|
|
|
31407
31407
|
}
|
|
31408
31408
|
},
|
|
31409
31409
|
dialogCheck(row) {
|
|
31410
|
-
this.$emit("
|
|
31410
|
+
this.$emit("update:modelValue", this.parseData(row, this.sourceDataCode));
|
|
31411
31411
|
this.selected = this.parseData(row, this.sourceDisplayCode);
|
|
31412
31412
|
this.selectedData = row;
|
|
31413
31413
|
this.$emit("on-change", row);
|
|
31414
31414
|
this.$refs.dialogTable.close();
|
|
31415
31415
|
},
|
|
31416
31416
|
dialogSelectRemove() {
|
|
31417
|
-
this.$emit("
|
|
31417
|
+
this.$emit("update:modelValue", null);
|
|
31418
31418
|
this.selected = null;
|
|
31419
31419
|
this.selectedData = null;
|
|
31420
31420
|
this.$emit("on-change");
|
|
@@ -31427,7 +31427,7 @@ const _sfc_main$B = {
|
|
|
31427
31427
|
let displayData = selectedData.length == 0 ? null : selectedData.map((item) => {
|
|
31428
31428
|
return this.parseData(item, this.sourceDisplayCode);
|
|
31429
31429
|
}).join(",");
|
|
31430
|
-
this.$emit("
|
|
31430
|
+
this.$emit("update:modelValue", JSON.stringify(data2));
|
|
31431
31431
|
this.selected = displayData;
|
|
31432
31432
|
this.selectedData = data2;
|
|
31433
31433
|
this.$emit("on-change", data2);
|
|
@@ -31740,7 +31740,7 @@ var ItemSelect = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_rende
|
|
|
31740
31740
|
const _sfc_main$z = {
|
|
31741
31741
|
mixins: [mixinPage],
|
|
31742
31742
|
props: {
|
|
31743
|
-
|
|
31743
|
+
modelValue: {
|
|
31744
31744
|
type: String
|
|
31745
31745
|
},
|
|
31746
31746
|
readonly: {
|
|
@@ -31760,9 +31760,9 @@ const _sfc_main$z = {
|
|
|
31760
31760
|
computed: {
|
|
31761
31761
|
fileList() {
|
|
31762
31762
|
let list = [];
|
|
31763
|
-
if (this.
|
|
31763
|
+
if (this.modelValue && this.modelValue !== "") {
|
|
31764
31764
|
try {
|
|
31765
|
-
list = JSON.parse(this.
|
|
31765
|
+
list = JSON.parse(this.modelValue);
|
|
31766
31766
|
} catch (e2) {
|
|
31767
31767
|
}
|
|
31768
31768
|
}
|
|
@@ -31793,7 +31793,7 @@ const _sfc_main$z = {
|
|
|
31793
31793
|
name: file.name,
|
|
31794
31794
|
user: this.info.id
|
|
31795
31795
|
});
|
|
31796
|
-
this.$emit("
|
|
31796
|
+
this.$emit("update:modelValue", JSON.stringify(list));
|
|
31797
31797
|
},
|
|
31798
31798
|
onUploadPreview(file) {
|
|
31799
31799
|
window.location.href = this.getAttachmentUrl(file.file, file.name);
|
|
@@ -31805,9 +31805,9 @@ const _sfc_main$z = {
|
|
|
31805
31805
|
});
|
|
31806
31806
|
list.splice(index2, 1);
|
|
31807
31807
|
if (list.length === 0) {
|
|
31808
|
-
this.$emit("
|
|
31808
|
+
this.$emit("update:modelValue", null);
|
|
31809
31809
|
} else {
|
|
31810
|
-
this.$emit("
|
|
31810
|
+
this.$emit("update:modelValue", JSON.stringify(list));
|
|
31811
31811
|
}
|
|
31812
31812
|
}
|
|
31813
31813
|
}
|
|
@@ -31845,7 +31845,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31845
31845
|
}, 8, ["action", "headers", "default-file-list", "before-upload", "on-success", "on-preview", "on-remove", "disabled", "accept"]),
|
|
31846
31846
|
withDirectives(createVNode$1(_component_Input, {
|
|
31847
31847
|
type: "text",
|
|
31848
|
-
"model-value":
|
|
31848
|
+
"model-value": _ctx.value,
|
|
31849
31849
|
size: $props.size
|
|
31850
31850
|
}, null, 8, ["model-value", "size"]), [
|
|
31851
31851
|
[vShow, false]
|
|
@@ -31853,7 +31853,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31853
31853
|
]);
|
|
31854
31854
|
}
|
|
31855
31855
|
var AttachmentUpload = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z]]);
|
|
31856
|
-
var uploadImage_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".form-image-group[data-v-
|
|
31856
|
+
var uploadImage_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".form-image-group[data-v-ea165552]{display:flex}.form-image-group div+div[data-v-ea165552]{margin-left:4px}.form-image[data-v-ea165552]{display:flex;align-items:center;justify-content:center;border:solid 1px #ccc;margin-top:8px}.form-image img[data-v-ea165552]{max-height:100%;max-width:100%}.form-image .action[data-v-ea165552]{display:none;background-color:#000;opacity:.75;position:absolute;float:right}.form-image:hover .action[data-v-ea165552]{display:block}.form-image .action i[data-v-ea165552]{float:right;color:#fff;font-size:24px;margin-top:4px;margin-right:4px;cursor:pointer}\n")();
|
|
31857
31857
|
const _sfc_main$y = {
|
|
31858
31858
|
mixins: [mixinPage],
|
|
31859
31859
|
data() {
|
|
@@ -31863,7 +31863,7 @@ const _sfc_main$y = {
|
|
|
31863
31863
|
};
|
|
31864
31864
|
},
|
|
31865
31865
|
props: {
|
|
31866
|
-
|
|
31866
|
+
modelValue: {
|
|
31867
31867
|
type: String
|
|
31868
31868
|
},
|
|
31869
31869
|
readonly: {
|
|
@@ -31883,9 +31883,9 @@ const _sfc_main$y = {
|
|
|
31883
31883
|
computed: {
|
|
31884
31884
|
fileList() {
|
|
31885
31885
|
let list = [];
|
|
31886
|
-
if (this.
|
|
31886
|
+
if (this.modelValue && this.modelValue !== "") {
|
|
31887
31887
|
try {
|
|
31888
|
-
list = this.
|
|
31888
|
+
list = this.modelValue.split(",");
|
|
31889
31889
|
} catch (e2) {
|
|
31890
31890
|
}
|
|
31891
31891
|
}
|
|
@@ -31912,7 +31912,7 @@ const _sfc_main$y = {
|
|
|
31912
31912
|
onUploadSuccess(res2, file) {
|
|
31913
31913
|
let list = this.fileList;
|
|
31914
31914
|
list.push(file.response.data[0]);
|
|
31915
|
-
this.$emit("
|
|
31915
|
+
this.$emit("update:modelValue", list.join(","));
|
|
31916
31916
|
},
|
|
31917
31917
|
forwardImage(index2) {
|
|
31918
31918
|
let list = this.fileList;
|
|
@@ -31920,9 +31920,9 @@ const _sfc_main$y = {
|
|
|
31920
31920
|
let id = list.splice(index2, 1);
|
|
31921
31921
|
list.splice(index2 + 1, 0, id);
|
|
31922
31922
|
if (list.length === 0) {
|
|
31923
|
-
this.$emit("
|
|
31923
|
+
this.$emit("update:modelValue", null);
|
|
31924
31924
|
} else {
|
|
31925
|
-
this.$emit("
|
|
31925
|
+
this.$emit("update:modelValue", list.join(","));
|
|
31926
31926
|
}
|
|
31927
31927
|
}
|
|
31928
31928
|
},
|
|
@@ -31932,9 +31932,9 @@ const _sfc_main$y = {
|
|
|
31932
31932
|
let id = list.splice(index2, 1);
|
|
31933
31933
|
list.splice(index2 - 1, 0, id);
|
|
31934
31934
|
if (list.length === 0) {
|
|
31935
|
-
this.$emit("
|
|
31935
|
+
this.$emit("update:modelValue", null);
|
|
31936
31936
|
} else {
|
|
31937
|
-
this.$emit("
|
|
31937
|
+
this.$emit("update:modelValue", list.join(","));
|
|
31938
31938
|
}
|
|
31939
31939
|
}
|
|
31940
31940
|
},
|
|
@@ -31942,9 +31942,9 @@ const _sfc_main$y = {
|
|
|
31942
31942
|
let list = this.fileList;
|
|
31943
31943
|
list.splice(index2, 1);
|
|
31944
31944
|
if (list.length === 0) {
|
|
31945
|
-
this.$emit("
|
|
31945
|
+
this.$emit("update:modelValue", null);
|
|
31946
31946
|
} else {
|
|
31947
|
-
this.$emit("
|
|
31947
|
+
this.$emit("update:modelValue", list.join(","));
|
|
31948
31948
|
}
|
|
31949
31949
|
},
|
|
31950
31950
|
previewImage(item) {
|
|
@@ -32029,7 +32029,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32029
32029
|
}, 8, ["action", "headers", "before-upload", "on-success"])) : createCommentVNode("", true),
|
|
32030
32030
|
withDirectives(createVNode$1(_component_Input, {
|
|
32031
32031
|
type: "text",
|
|
32032
|
-
"model-value":
|
|
32032
|
+
"model-value": _ctx.value
|
|
32033
32033
|
}, null, 8, ["model-value"]), [
|
|
32034
32034
|
[vShow, false]
|
|
32035
32035
|
])
|
|
@@ -32076,7 +32076,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32076
32076
|
}, 8, ["modelValue", "mask-closable", "draggable"])
|
|
32077
32077
|
]);
|
|
32078
32078
|
}
|
|
32079
|
-
var ImageUpload = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y], ["__scopeId", "data-v-
|
|
32079
|
+
var ImageUpload = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y], ["__scopeId", "data-v-ea165552"]]);
|
|
32080
32080
|
const _sfc_main$x = {
|
|
32081
32081
|
mixins: [mixinPage],
|
|
32082
32082
|
data() {
|