bm-admin-ui 1.1.4-alpha → 1.1.6-alpha
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/es/components/attachment/index.d.ts +1 -1
- package/es/components/attachment/src/attachment.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +1 -1
- package/es/components/cascader/index.d.ts +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +1 -1
- package/es/components/edit-form/index.d.ts +2 -2
- package/es/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/es/components/editor/index.d.ts +3 -3
- package/es/components/editor/src/editor.vue.d.ts +3 -3
- package/es/components/feedback/index.d.ts +11 -11
- package/es/components/feedback/src/bmAlert.vue.d.ts +5 -5
- package/es/components/feedback/src/bmModal.vue.d.ts +6 -6
- package/es/components/float-table/index.d.ts +2 -2
- package/es/components/float-table/src/float-table.vue.d.ts +2 -2
- package/es/components/form-create/index.js +256 -66
- package/es/components/form-designer/index.js +2 -2
- package/es/components/over-tooltips/index.d.ts +1 -1
- package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +1 -1
- package/es/components/staffs-selector/index.d.ts +11 -11
- package/es/components/staffs-selector/src/departmentCmp.vue.d.ts +2 -2
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +11 -11
- package/es/components/upload/index.d.ts +1 -1
- package/es/components/upload/src/upload.vue.d.ts +1 -1
- package/es/utils/index.d.ts +7 -0
- package/es/utils/index.js +62 -0
- package/lib/components/attachment/index.d.ts +1 -1
- package/lib/components/attachment/src/attachment.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +1 -1
- package/lib/components/cascader/index.d.ts +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +1 -1
- package/lib/components/edit-form/index.d.ts +2 -2
- package/lib/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/lib/components/editor/index.d.ts +3 -3
- package/lib/components/editor/src/editor.vue.d.ts +3 -3
- package/lib/components/feedback/index.d.ts +11 -11
- package/lib/components/feedback/src/bmAlert.vue.d.ts +5 -5
- package/lib/components/feedback/src/bmModal.vue.d.ts +6 -6
- package/lib/components/float-table/index.d.ts +2 -2
- package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
- package/lib/components/form-create/index.js +257 -66
- package/lib/components/form-designer/index.js +2 -2
- package/lib/components/over-tooltips/index.d.ts +1 -1
- package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +1 -1
- package/lib/components/staffs-selector/index.d.ts +11 -11
- package/lib/components/staffs-selector/src/departmentCmp.vue.d.ts +2 -2
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +11 -11
- package/lib/components/upload/index.d.ts +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +1 -1
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/index.js +64 -0
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/types/components/attachment/index.d.ts +1 -1
- package/types/components/attachment/src/attachment.vue.d.ts +1 -1
- package/types/components/button/index.d.ts +1 -1
- package/types/components/button/src/button.vue.d.ts +1 -1
- package/types/components/cascader/index.d.ts +1 -1
- package/types/components/cascader/src/cascader.vue.d.ts +1 -1
- package/types/components/edit-form/index.d.ts +2 -2
- package/types/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/types/components/editor/index.d.ts +3 -3
- package/types/components/editor/src/editor.vue.d.ts +3 -3
- package/types/components/feedback/index.d.ts +11 -11
- package/types/components/feedback/src/bmAlert.vue.d.ts +5 -5
- package/types/components/feedback/src/bmModal.vue.d.ts +6 -6
- package/types/components/float-table/index.d.ts +2 -2
- package/types/components/float-table/src/float-table.vue.d.ts +2 -2
- package/types/components/over-tooltips/index.d.ts +1 -1
- package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +1 -1
- package/types/components/staffs-selector/index.d.ts +11 -11
- package/types/components/staffs-selector/src/departmentCmp.vue.d.ts +2 -2
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +11 -11
- package/types/components/upload/index.d.ts +1 -1
- package/types/components/upload/src/upload.vue.d.ts +1 -1
- package/types/utils/index.d.ts +7 -0
|
@@ -8,6 +8,7 @@ import { BmTagsDisplay, BmFloatTable } from 'bm-admin-ui/es/components';
|
|
|
8
8
|
import { EyeOutlined, SearchOutlined, CheckCircleFilled, PlusOutlined } from '@ant-design/icons-vue';
|
|
9
9
|
import { cloneDeep, floor, debounce } from 'lodash-es';
|
|
10
10
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
11
|
+
import utils from 'bm-admin-ui/es/utils';
|
|
11
12
|
import { isNull } from 'bm-admin-ui/es/utils/isNull';
|
|
12
13
|
|
|
13
14
|
const fieldRatioMap = {
|
|
@@ -1107,8 +1108,8 @@ const _hoisted_5$4 = {
|
|
|
1107
1108
|
key: 1,
|
|
1108
1109
|
class: "bm-fc-select-material-temp__content__circle"
|
|
1109
1110
|
};
|
|
1110
|
-
const _hoisted_6$
|
|
1111
|
-
const _hoisted_7$
|
|
1111
|
+
const _hoisted_6$4 = ["title"];
|
|
1112
|
+
const _hoisted_7$4 = { class: "bm-fc-select-material-temp__content__item-time" };
|
|
1112
1113
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
1113
1114
|
__name: "select-material-temp",
|
|
1114
1115
|
props: [
|
|
@@ -1323,9 +1324,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1323
1324
|
createElementVNode("span", {
|
|
1324
1325
|
class: "bm-fc-select-material-temp__content__name",
|
|
1325
1326
|
title: item.templateName
|
|
1326
|
-
}, toDisplayString(item.templateName), 9, _hoisted_6$
|
|
1327
|
+
}, toDisplayString(item.templateName), 9, _hoisted_6$4)
|
|
1327
1328
|
], 8, _hoisted_4$4),
|
|
1328
|
-
createElementVNode("div", _hoisted_7$
|
|
1329
|
+
createElementVNode("div", _hoisted_7$4, toDisplayString(unref(dayjs)(item.lastUpdateTime).format("YYYY/MM/DD")), 1)
|
|
1329
1330
|
])
|
|
1330
1331
|
]),
|
|
1331
1332
|
_: 2
|
|
@@ -18720,9 +18721,17 @@ var ShopInput = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "shop-input
|
|
|
18720
18721
|
const _hoisted_1$5 = { class: "bm-dc-table-widget" };
|
|
18721
18722
|
const _hoisted_2$4 = { class: "bm-dc-table-widget__title" };
|
|
18722
18723
|
const _hoisted_3$3 = { class: "bm-dc-table-widget__title-samll" };
|
|
18723
|
-
const _hoisted_4$3 = {
|
|
18724
|
-
|
|
18725
|
-
|
|
18724
|
+
const _hoisted_4$3 = {
|
|
18725
|
+
key: 0,
|
|
18726
|
+
class: "bm-dc-table-widget__top-bar"
|
|
18727
|
+
};
|
|
18728
|
+
const _hoisted_5$3 = ["accept"];
|
|
18729
|
+
const _hoisted_6$3 = {
|
|
18730
|
+
key: 1,
|
|
18731
|
+
class: "bm-dc-table-widget__top-bar"
|
|
18732
|
+
};
|
|
18733
|
+
const _hoisted_7$3 = { class: "bm-dc-table-widget__table" };
|
|
18734
|
+
const _sfc_main$7 = defineComponent({
|
|
18726
18735
|
__name: "table-widget",
|
|
18727
18736
|
props: [
|
|
18728
18737
|
"rule",
|
|
@@ -18817,6 +18826,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
18817
18826
|
const formData = computed(
|
|
18818
18827
|
() => props.formData || props.formCreateInject.api.bind()
|
|
18819
18828
|
);
|
|
18829
|
+
const tableConfig = computed(() => props.rule?.config?.tableConfig || {});
|
|
18830
|
+
const validColumns = computed(() => columns.filter((c) => isValidColumn(c)));
|
|
18820
18831
|
function isShow(key) {
|
|
18821
18832
|
return props.rule.config.tableAdvancedFeatures.includes(key);
|
|
18822
18833
|
}
|
|
@@ -19013,12 +19024,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
19013
19024
|
const reader = new FileReader();
|
|
19014
19025
|
reader.onload = (fr) => {
|
|
19015
19026
|
const rows = parseCsv(fr?.target?.result);
|
|
19016
|
-
const
|
|
19027
|
+
const validColumns2 = columns.filter((c) => isValidColumn(c));
|
|
19017
19028
|
const result = [];
|
|
19018
19029
|
rows.forEach((row) => {
|
|
19019
19030
|
const rowData = {};
|
|
19020
19031
|
row.forEach((item, index) => {
|
|
19021
|
-
rowData[
|
|
19032
|
+
rowData[validColumns2[index].field] = item;
|
|
19022
19033
|
});
|
|
19023
19034
|
result.push(rowData);
|
|
19024
19035
|
});
|
|
@@ -19055,9 +19066,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
19055
19066
|
}
|
|
19056
19067
|
async function validate(rowData) {
|
|
19057
19068
|
let error = "";
|
|
19058
|
-
const
|
|
19069
|
+
const validColumns2 = columns.filter((c) => isValidColumn(c));
|
|
19059
19070
|
for (const row of rowData) {
|
|
19060
|
-
for (const { field } of
|
|
19071
|
+
for (const { field } of validColumns2) {
|
|
19061
19072
|
const rule = childRulesMap.value[`${field}`];
|
|
19062
19073
|
const title = rule?.title?.title;
|
|
19063
19074
|
if (!rule)
|
|
@@ -19269,77 +19280,252 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
19269
19280
|
deep: true
|
|
19270
19281
|
}
|
|
19271
19282
|
);
|
|
19283
|
+
const buttonLoadingForProductCenter = ref({
|
|
19284
|
+
export: false,
|
|
19285
|
+
download: false,
|
|
19286
|
+
import: false
|
|
19287
|
+
});
|
|
19288
|
+
async function exportForProductCenter() {
|
|
19289
|
+
if (!tableConfig.value.template || tableConfig.value.template === "table") {
|
|
19290
|
+
return handleExport();
|
|
19291
|
+
}
|
|
19292
|
+
try {
|
|
19293
|
+
buttonLoadingForProductCenter.value.export = true;
|
|
19294
|
+
const selected = xGrid.value?.getCheckboxRecords?.();
|
|
19295
|
+
await props.extraConfig.table?.exportFetch?.({
|
|
19296
|
+
tableConfig: tableConfig.value,
|
|
19297
|
+
columns: validColumns.value,
|
|
19298
|
+
data: selected
|
|
19299
|
+
});
|
|
19300
|
+
} catch (error) {
|
|
19301
|
+
console.log("\u{1F680} ~ error:", error);
|
|
19302
|
+
} finally {
|
|
19303
|
+
buttonLoadingForProductCenter.value.export = false;
|
|
19304
|
+
}
|
|
19305
|
+
}
|
|
19306
|
+
async function downloadTemplateForProductCenter() {
|
|
19307
|
+
if (!tableConfig.value.template || tableConfig.value.template === "table") {
|
|
19308
|
+
return handleDownload();
|
|
19309
|
+
}
|
|
19310
|
+
try {
|
|
19311
|
+
buttonLoadingForProductCenter.value.download = true;
|
|
19312
|
+
await props.extraConfig.table?.downloadTemplateFetch?.({
|
|
19313
|
+
tableConfig: tableConfig.value,
|
|
19314
|
+
columns: validColumns.value
|
|
19315
|
+
});
|
|
19316
|
+
} catch (error) {
|
|
19317
|
+
console.log("\u{1F680} ~ error:", error);
|
|
19318
|
+
} finally {
|
|
19319
|
+
buttonLoadingForProductCenter.value.download = false;
|
|
19320
|
+
}
|
|
19321
|
+
}
|
|
19322
|
+
async function importHandleForProductCenter(e) {
|
|
19323
|
+
if (!tableConfig.value.template || tableConfig.value.template === "table") {
|
|
19324
|
+
return handleChange(e);
|
|
19325
|
+
}
|
|
19326
|
+
try {
|
|
19327
|
+
buttonLoadingForProductCenter.value.import = true;
|
|
19328
|
+
let res = await props.extraConfig.table?.importFetch?.({
|
|
19329
|
+
tableConfig: tableConfig.value,
|
|
19330
|
+
columns: validColumns.value
|
|
19331
|
+
}) || {};
|
|
19332
|
+
if (res.promptMessage && !await utils.confirmModal(res.promptMessage)) {
|
|
19333
|
+
return;
|
|
19334
|
+
}
|
|
19335
|
+
if (res.templateDataList?.length) {
|
|
19336
|
+
data.push(...res.templateDataList);
|
|
19337
|
+
}
|
|
19338
|
+
const numFormatter = (value) => utils.toFixNumHasDefault(value, 0, false, "0");
|
|
19339
|
+
if (!res.successNum) {
|
|
19340
|
+
let confirmRet = await utils.confirmModal(
|
|
19341
|
+
`\u5BFC\u5165\u5931\u8D25\uFF0C\u5171${numFormatter(res.errorNum)}\u6761`,
|
|
19342
|
+
"\u63D0\u793A",
|
|
19343
|
+
"error",
|
|
19344
|
+
{
|
|
19345
|
+
okText: "\u4E0B\u8F7D\u9519\u8BEF\u6570\u636E"
|
|
19346
|
+
},
|
|
19347
|
+
"error"
|
|
19348
|
+
);
|
|
19349
|
+
if (confirmRet) {
|
|
19350
|
+
props.extraConfig.table?.downloadErrorFetch?.({
|
|
19351
|
+
data: res
|
|
19352
|
+
});
|
|
19353
|
+
}
|
|
19354
|
+
} else if (res.successNum === res.importNum) {
|
|
19355
|
+
let confirmRet = await utils.confirmModal(
|
|
19356
|
+
`\u5BFC\u5165\u6210\u529F\uFF0C\u5171${numFormatter(res.successNum)}\u6761`,
|
|
19357
|
+
"\u63D0\u793A",
|
|
19358
|
+
"success",
|
|
19359
|
+
{
|
|
19360
|
+
okText: "\u77E5\u9053\u4E86"
|
|
19361
|
+
},
|
|
19362
|
+
"success"
|
|
19363
|
+
);
|
|
19364
|
+
} else {
|
|
19365
|
+
let confirmRet = await utils.confirmModal(
|
|
19366
|
+
`\u5BFC\u5165\u6210\u529F${numFormatter(res.successNum)}\u6761\uFF0C\u5931\u8D25${numFormatter(
|
|
19367
|
+
res.errorNum
|
|
19368
|
+
)}\u6761`,
|
|
19369
|
+
"\u63D0\u793A",
|
|
19370
|
+
"warning",
|
|
19371
|
+
{
|
|
19372
|
+
okText: "\u4E0B\u8F7D\u9519\u8BEF\u6570\u636E"
|
|
19373
|
+
},
|
|
19374
|
+
"warning"
|
|
19375
|
+
);
|
|
19376
|
+
if (confirmRet) {
|
|
19377
|
+
props.extraConfig.table?.downloadErrorFetch?.({
|
|
19378
|
+
data: res
|
|
19379
|
+
});
|
|
19380
|
+
}
|
|
19381
|
+
}
|
|
19382
|
+
} catch (error) {
|
|
19383
|
+
console.log("\u{1F680} ~ error:", error);
|
|
19384
|
+
} finally {
|
|
19385
|
+
buttonLoadingForProductCenter.value.import = false;
|
|
19386
|
+
}
|
|
19387
|
+
}
|
|
19272
19388
|
return (_ctx, _cache) => {
|
|
19273
19389
|
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
19274
19390
|
createElementVNode("div", _hoisted_2$4, [
|
|
19275
19391
|
createTextVNode(toDisplayString(__props.rule.title.title) + " ", 1),
|
|
19276
19392
|
createElementVNode("span", _hoisted_3$3, toDisplayString(unref(countText)), 1),
|
|
19277
|
-
|
|
19278
|
-
|
|
19279
|
-
|
|
19280
|
-
|
|
19281
|
-
|
|
19282
|
-
}, {
|
|
19283
|
-
default: withCtx(() => [
|
|
19284
|
-
createTextVNode("\u5BFC\u51FA")
|
|
19285
|
-
]),
|
|
19286
|
-
_: 1
|
|
19287
|
-
}, 8, ["disabled"])) : createCommentVNode("v-if", true),
|
|
19288
|
-
createTextVNode("\xA0 "),
|
|
19289
|
-
unref(importFeature) && !__props.hidden ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19290
|
-
createElementVNode("input", {
|
|
19291
|
-
ref_key: "inputRef",
|
|
19292
|
-
ref: inputRef,
|
|
19293
|
-
style: { "display": "none" },
|
|
19294
|
-
name: "file",
|
|
19295
|
-
type: "file",
|
|
19296
|
-
accept: "text/csv",
|
|
19297
|
-
onChange: handleChange
|
|
19298
|
-
}, null, 544),
|
|
19299
|
-
createVNode(unref(Button), {
|
|
19393
|
+
createCommentVNode(" \u5546\u54C1\u4E2D\u5FC3\u5B9A\u5236 \u6309\u94AE "),
|
|
19394
|
+
unref(tableConfig).system === "productCenter" ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
19395
|
+
!__props.hidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
19396
|
+
unref(tableConfig).buttons?.includes("export") ? (openBlock(), createBlock(unref(Button), {
|
|
19397
|
+
key: 0,
|
|
19300
19398
|
disabled: __props.disabled,
|
|
19301
|
-
|
|
19399
|
+
loading: buttonLoadingForProductCenter.value.export,
|
|
19400
|
+
onClick: exportForProductCenter
|
|
19302
19401
|
}, {
|
|
19303
19402
|
default: withCtx(() => [
|
|
19304
|
-
createTextVNode("\
|
|
19403
|
+
createTextVNode("\u5BFC\u51FA")
|
|
19305
19404
|
]),
|
|
19306
19405
|
_: 1
|
|
19307
|
-
}, 8, ["disabled"]),
|
|
19406
|
+
}, 8, ["disabled", "loading"])) : createCommentVNode("v-if", true),
|
|
19407
|
+
unref(tableConfig).buttons?.includes("downloadTemplate") ? (openBlock(), createBlock(unref(Button), {
|
|
19408
|
+
key: 1,
|
|
19409
|
+
disabled: __props.disabled,
|
|
19410
|
+
loading: buttonLoadingForProductCenter.value.download,
|
|
19411
|
+
onClick: downloadTemplateForProductCenter
|
|
19412
|
+
}, {
|
|
19413
|
+
default: withCtx(() => [
|
|
19414
|
+
createTextVNode("\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F")
|
|
19415
|
+
]),
|
|
19416
|
+
_: 1
|
|
19417
|
+
}, 8, ["disabled", "loading"])) : createCommentVNode("v-if", true),
|
|
19418
|
+
unref(tableConfig).buttons?.includes("import") ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
19419
|
+
createElementVNode("input", {
|
|
19420
|
+
ref_key: "inputRef",
|
|
19421
|
+
ref: inputRef,
|
|
19422
|
+
style: { "display": "none" },
|
|
19423
|
+
name: "file",
|
|
19424
|
+
type: "file",
|
|
19425
|
+
accept: unref(tableConfig).template === "table" ? "text/csv" : "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, .xlsx, .xls, .XLSX, .XLS",
|
|
19426
|
+
onChange: importHandleForProductCenter
|
|
19427
|
+
}, null, 40, _hoisted_5$3),
|
|
19428
|
+
createVNode(unref(Button), {
|
|
19429
|
+
disabled: __props.disabled,
|
|
19430
|
+
loading: buttonLoadingForProductCenter.value.import,
|
|
19431
|
+
onClick: handleImport
|
|
19432
|
+
}, {
|
|
19433
|
+
default: withCtx(() => [
|
|
19434
|
+
createTextVNode("\u6279\u91CF\u5BFC\u5165")
|
|
19435
|
+
]),
|
|
19436
|
+
_: 1
|
|
19437
|
+
}, 8, ["disabled", "loading"])
|
|
19438
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
19439
|
+
unref(tableConfig).buttons?.includes("delete") ? (openBlock(), createBlock(unref(Button), {
|
|
19440
|
+
key: 3,
|
|
19441
|
+
disabled: __props.disabled,
|
|
19442
|
+
onClick: handleBatchDelete
|
|
19443
|
+
}, {
|
|
19444
|
+
default: withCtx(() => [
|
|
19445
|
+
createTextVNode("\u6279\u91CF\u5220\u9664")
|
|
19446
|
+
]),
|
|
19447
|
+
_: 1
|
|
19448
|
+
}, 8, ["disabled"])) : createCommentVNode("v-if", true),
|
|
19449
|
+
unref(tableConfig).buttons?.includes("add") ? (openBlock(), createBlock(unref(Button), {
|
|
19450
|
+
key: 4,
|
|
19451
|
+
type: "primary",
|
|
19452
|
+
disabled: __props.disabled,
|
|
19453
|
+
onClick: handleAdd
|
|
19454
|
+
}, {
|
|
19455
|
+
default: withCtx(() => [
|
|
19456
|
+
createVNode(unref(PlusOutlined)),
|
|
19457
|
+
createTextVNode(" \u65B0\u589E")
|
|
19458
|
+
]),
|
|
19459
|
+
_: 1
|
|
19460
|
+
}, 8, ["disabled"])) : createCommentVNode("v-if", true)
|
|
19461
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
19462
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
19463
|
+
!__props.hidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
19464
|
+
unref(exportFeature) ? (openBlock(), createBlock(unref(Button), {
|
|
19465
|
+
key: 0,
|
|
19466
|
+
disabled: __props.disabled,
|
|
19467
|
+
onClick: handleExport
|
|
19468
|
+
}, {
|
|
19469
|
+
default: withCtx(() => [
|
|
19470
|
+
createTextVNode("\u5BFC\u51FA")
|
|
19471
|
+
]),
|
|
19472
|
+
_: 1
|
|
19473
|
+
}, 8, ["disabled"])) : createCommentVNode("v-if", true),
|
|
19474
|
+
createTextVNode("\xA0 "),
|
|
19475
|
+
unref(importFeature) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19476
|
+
createElementVNode("input", {
|
|
19477
|
+
ref_key: "inputRef",
|
|
19478
|
+
ref: inputRef,
|
|
19479
|
+
style: { "display": "none" },
|
|
19480
|
+
name: "file",
|
|
19481
|
+
type: "file",
|
|
19482
|
+
accept: "text/csv",
|
|
19483
|
+
onChange: handleChange
|
|
19484
|
+
}, null, 544),
|
|
19485
|
+
createVNode(unref(Button), {
|
|
19486
|
+
disabled: __props.disabled,
|
|
19487
|
+
onClick: handleDownload
|
|
19488
|
+
}, {
|
|
19489
|
+
default: withCtx(() => [
|
|
19490
|
+
createTextVNode("\u4E0B\u8F7D\u6A21\u677F")
|
|
19491
|
+
]),
|
|
19492
|
+
_: 1
|
|
19493
|
+
}, 8, ["disabled"]),
|
|
19494
|
+
createVNode(unref(Button), {
|
|
19495
|
+
disabled: __props.disabled,
|
|
19496
|
+
onClick: handleImport
|
|
19497
|
+
}, {
|
|
19498
|
+
default: withCtx(() => [
|
|
19499
|
+
createTextVNode("\u6279\u91CF\u5BFC\u5165")
|
|
19500
|
+
]),
|
|
19501
|
+
_: 1
|
|
19502
|
+
}, 8, ["disabled"])
|
|
19503
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
19504
|
+
unref(deleteFeature) ? (openBlock(), createBlock(unref(Button), {
|
|
19505
|
+
key: 2,
|
|
19506
|
+
disabled: __props.disabled,
|
|
19507
|
+
onClick: handleBatchDelete
|
|
19508
|
+
}, {
|
|
19509
|
+
default: withCtx(() => [
|
|
19510
|
+
createTextVNode("\u6279\u91CF\u5220\u9664")
|
|
19511
|
+
]),
|
|
19512
|
+
_: 1
|
|
19513
|
+
}, 8, ["disabled"])) : createCommentVNode("v-if", true),
|
|
19308
19514
|
createVNode(unref(Button), {
|
|
19515
|
+
type: "primary",
|
|
19309
19516
|
disabled: __props.disabled,
|
|
19310
|
-
onClick:
|
|
19517
|
+
onClick: handleAdd
|
|
19311
19518
|
}, {
|
|
19312
19519
|
default: withCtx(() => [
|
|
19313
|
-
|
|
19520
|
+
createVNode(unref(PlusOutlined)),
|
|
19521
|
+
createTextVNode(" \u65B0\u589E ")
|
|
19314
19522
|
]),
|
|
19315
19523
|
_: 1
|
|
19316
19524
|
}, 8, ["disabled"])
|
|
19317
|
-
], 64)) : createCommentVNode("v-if", true)
|
|
19318
|
-
|
|
19319
|
-
key: 2,
|
|
19320
|
-
disabled: __props.disabled,
|
|
19321
|
-
onClick: handleBatchDelete
|
|
19322
|
-
}, {
|
|
19323
|
-
default: withCtx(() => [
|
|
19324
|
-
createTextVNode("\u6279\u91CF\u5220\u9664")
|
|
19325
|
-
]),
|
|
19326
|
-
_: 1
|
|
19327
|
-
}, 8, ["disabled"])) : createCommentVNode("v-if", true),
|
|
19328
|
-
!__props.hidden ? (openBlock(), createBlock(unref(Button), {
|
|
19329
|
-
key: 3,
|
|
19330
|
-
type: "primary",
|
|
19331
|
-
disabled: __props.disabled,
|
|
19332
|
-
onClick: handleAdd
|
|
19333
|
-
}, {
|
|
19334
|
-
default: withCtx(() => [
|
|
19335
|
-
createVNode(unref(PlusOutlined)),
|
|
19336
|
-
createTextVNode(" \u65B0\u589E ")
|
|
19337
|
-
]),
|
|
19338
|
-
_: 1
|
|
19339
|
-
}, 8, ["disabled"])) : createCommentVNode("v-if", true)
|
|
19340
|
-
])
|
|
19525
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
19526
|
+
]))
|
|
19341
19527
|
]),
|
|
19342
|
-
createElementVNode("div",
|
|
19528
|
+
createElementVNode("div", _hoisted_7$3, [
|
|
19343
19529
|
createVNode(unref(FormItemRest), null, {
|
|
19344
19530
|
default: withCtx(() => [
|
|
19345
19531
|
createVNode(unref(BmFloatTable), {
|
|
@@ -21139,7 +21325,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21139
21325
|
"formPermissions",
|
|
21140
21326
|
"resolveRulesConfig"
|
|
21141
21327
|
],
|
|
21142
|
-
emits: ["update:value"],
|
|
21328
|
+
emits: ["update:value", "change"],
|
|
21143
21329
|
setup(__props, { expose, emit: emits }) {
|
|
21144
21330
|
const props = __props;
|
|
21145
21331
|
const formRuleList = computed(() => {
|
|
@@ -21299,6 +21485,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21299
21485
|
immediate: true
|
|
21300
21486
|
}
|
|
21301
21487
|
);
|
|
21488
|
+
function onChange(...reset) {
|
|
21489
|
+
emits("change", ...reset);
|
|
21490
|
+
}
|
|
21302
21491
|
expose({ fApi });
|
|
21303
21492
|
return (_ctx, _cache) => {
|
|
21304
21493
|
const _component_formCreate = resolveComponent("formCreate", true);
|
|
@@ -21313,7 +21502,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21313
21502
|
"model-value": __props.value,
|
|
21314
21503
|
option: unref(option),
|
|
21315
21504
|
rule: rule.value,
|
|
21316
|
-
"onUpdate:modelValue": handleValue
|
|
21505
|
+
"onUpdate:modelValue": handleValue,
|
|
21506
|
+
onChange
|
|
21317
21507
|
}, null, 8, ["api", "model-value", "option", "rule"])
|
|
21318
21508
|
], 64);
|
|
21319
21509
|
};
|
|
@@ -1879,11 +1879,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1879
1879
|
emits("mouseleave");
|
|
1880
1880
|
}
|
|
1881
1881
|
function emitSetActiveRuleEvt(rule) {
|
|
1882
|
+
if (rule?.config.immutable)
|
|
1883
|
+
return;
|
|
1882
1884
|
emits("set-active-rule", rule, tableRule.value);
|
|
1883
1885
|
}
|
|
1884
1886
|
function handleClick(element) {
|
|
1885
|
-
if (element?.config.immutable)
|
|
1886
|
-
return;
|
|
1887
1887
|
emitSetActiveRuleEvt(element);
|
|
1888
1888
|
}
|
|
1889
1889
|
function handleUpdate({ newIndex }) {
|
|
@@ -14,7 +14,7 @@ declare const BmOverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
14
14
|
default: number;
|
|
15
15
|
};
|
|
16
16
|
width: {
|
|
17
|
-
type: (
|
|
17
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
18
18
|
default: number;
|
|
19
19
|
};
|
|
20
20
|
showAlways: {
|
|
@@ -82,8 +82,8 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
82
82
|
default: string;
|
|
83
83
|
};
|
|
84
84
|
}>> & {
|
|
85
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
86
85
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
87
87
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
88
88
|
}>>;
|
|
89
89
|
emit: (event: "change" | "update:visible" | "update:select", ...args: any[]) => void;
|
|
@@ -144,7 +144,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
144
144
|
type: BooleanConstructor;
|
|
145
145
|
default: any;
|
|
146
146
|
};
|
|
147
|
-
width: (
|
|
147
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
148
148
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
149
149
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
150
150
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -290,7 +290,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
290
290
|
modalRender: import("vue").PropType<(arg: {
|
|
291
291
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
292
292
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
293
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "
|
|
293
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "keyboard" | "focusTriggerAfterClose">;
|
|
294
294
|
$attrs: {
|
|
295
295
|
[x: string]: unknown;
|
|
296
296
|
};
|
|
@@ -329,7 +329,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
329
329
|
type: BooleanConstructor;
|
|
330
330
|
default: any;
|
|
331
331
|
};
|
|
332
|
-
width: (
|
|
332
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
333
333
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
334
334
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
335
335
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -534,7 +534,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
534
534
|
type: BooleanConstructor;
|
|
535
535
|
default: any;
|
|
536
536
|
};
|
|
537
|
-
width: (
|
|
537
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
538
538
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
539
539
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
540
540
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -709,7 +709,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
709
709
|
type: BooleanConstructor;
|
|
710
710
|
default: any;
|
|
711
711
|
};
|
|
712
|
-
width: (
|
|
712
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
713
713
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
714
714
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
715
715
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -902,9 +902,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
902
902
|
searchVal: import("vue").Ref<string>;
|
|
903
903
|
selectAll: import("vue").Ref<boolean>;
|
|
904
904
|
indeterminate: import("vue").Ref<boolean>;
|
|
905
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
905
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
906
906
|
[key: string]: any;
|
|
907
|
-
}> | null | undefined) |
|
|
907
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
908
908
|
[key: string]: any;
|
|
909
909
|
}> | null | undefined)[]>;
|
|
910
910
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -977,9 +977,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
977
977
|
searchVal: import("vue").Ref<string>;
|
|
978
978
|
selectAll: import("vue").Ref<boolean>;
|
|
979
979
|
indeterminate: import("vue").Ref<boolean>;
|
|
980
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
980
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
981
981
|
[key: string]: any;
|
|
982
|
-
}> | null | undefined) |
|
|
982
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
983
983
|
[key: string]: any;
|
|
984
984
|
}> | null | undefined)[]>;
|
|
985
985
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -1043,8 +1043,8 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1043
1043
|
default: string;
|
|
1044
1044
|
};
|
|
1045
1045
|
}>> & {
|
|
1046
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
1047
1046
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1047
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
1048
1048
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1049
1049
|
}, {
|
|
1050
1050
|
visible: boolean;
|
|
@@ -20,9 +20,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
searchVal: import("vue").Ref<string>;
|
|
21
21
|
selectAll: import("vue").Ref<boolean>;
|
|
22
22
|
indeterminate: import("vue").Ref<boolean>;
|
|
23
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
23
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
24
24
|
[key: string]: any;
|
|
25
|
-
}> | null | undefined) |
|
|
25
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
26
|
[key: string]: any;
|
|
27
27
|
}> | null | undefined)[]>;
|
|
28
28
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -21,9 +21,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
searchVal: import("vue").Ref<string>;
|
|
22
22
|
selectAll: import("vue").Ref<boolean>;
|
|
23
23
|
indeterminate: import("vue").Ref<boolean>;
|
|
24
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
24
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
25
|
[key: string]: any;
|
|
26
|
-
}> | null | undefined) |
|
|
26
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
}> | null | undefined)[]>;
|
|
29
29
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -82,8 +82,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
82
|
default: string;
|
|
83
83
|
};
|
|
84
84
|
}>> & {
|
|
85
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
86
85
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
87
87
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
88
88
|
}>>;
|
|
89
89
|
emit: (event: "change" | "update:visible" | "update:select", ...args: any[]) => void;
|
|
@@ -144,7 +144,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
144
144
|
type: BooleanConstructor;
|
|
145
145
|
default: any;
|
|
146
146
|
};
|
|
147
|
-
width: (
|
|
147
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
148
148
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
149
149
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
150
150
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -290,7 +290,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
290
290
|
modalRender: import("vue").PropType<(arg: {
|
|
291
291
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
292
292
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
293
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "
|
|
293
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "keyboard" | "focusTriggerAfterClose">;
|
|
294
294
|
$attrs: {
|
|
295
295
|
[x: string]: unknown;
|
|
296
296
|
};
|
|
@@ -329,7 +329,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
329
329
|
type: BooleanConstructor;
|
|
330
330
|
default: any;
|
|
331
331
|
};
|
|
332
|
-
width: (
|
|
332
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
333
333
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
334
334
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
335
335
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -534,7 +534,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
534
534
|
type: BooleanConstructor;
|
|
535
535
|
default: any;
|
|
536
536
|
};
|
|
537
|
-
width: (
|
|
537
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
538
538
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
539
539
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
540
540
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -709,7 +709,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
709
709
|
type: BooleanConstructor;
|
|
710
710
|
default: any;
|
|
711
711
|
};
|
|
712
|
-
width: (
|
|
712
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
713
713
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
714
714
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
715
715
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -902,9 +902,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
902
902
|
searchVal: import("vue").Ref<string>;
|
|
903
903
|
selectAll: import("vue").Ref<boolean>;
|
|
904
904
|
indeterminate: import("vue").Ref<boolean>;
|
|
905
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
905
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
906
906
|
[key: string]: any;
|
|
907
|
-
}> | null | undefined) |
|
|
907
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
908
908
|
[key: string]: any;
|
|
909
909
|
}> | null | undefined)[]>;
|
|
910
910
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -977,9 +977,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
977
977
|
searchVal: import("vue").Ref<string>;
|
|
978
978
|
selectAll: import("vue").Ref<boolean>;
|
|
979
979
|
indeterminate: import("vue").Ref<boolean>;
|
|
980
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
980
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
981
981
|
[key: string]: any;
|
|
982
|
-
}> | null | undefined) |
|
|
982
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
983
983
|
[key: string]: any;
|
|
984
984
|
}> | null | undefined)[]>;
|
|
985
985
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -1043,8 +1043,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1043
1043
|
default: string;
|
|
1044
1044
|
};
|
|
1045
1045
|
}>> & {
|
|
1046
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
1047
1046
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1047
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
1048
1048
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1049
1049
|
}, {
|
|
1050
1050
|
visible: boolean;
|