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
|
@@ -12,6 +12,7 @@ var components = require('bm-admin-ui/lib/components');
|
|
|
12
12
|
var iconsVue = require('@ant-design/icons-vue');
|
|
13
13
|
var lodashEs = require('lodash-es');
|
|
14
14
|
var customParseFormat = require('dayjs/plugin/customParseFormat');
|
|
15
|
+
var utils = require('bm-admin-ui/lib/utils');
|
|
15
16
|
var isNull = require('bm-admin-ui/lib/utils/isNull');
|
|
16
17
|
|
|
17
18
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -20,6 +21,7 @@ var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
|
20
21
|
var Picture__default = /*#__PURE__*/_interopDefaultLegacy(Picture);
|
|
21
22
|
var BmStaffsSelector__default = /*#__PURE__*/_interopDefaultLegacy(BmStaffsSelector);
|
|
22
23
|
var customParseFormat__default = /*#__PURE__*/_interopDefaultLegacy(customParseFormat);
|
|
24
|
+
var utils__default = /*#__PURE__*/_interopDefaultLegacy(utils);
|
|
23
25
|
|
|
24
26
|
const fieldRatioMap = {
|
|
25
27
|
'25%': 6,
|
|
@@ -1118,8 +1120,8 @@ const _hoisted_5$4 = {
|
|
|
1118
1120
|
key: 1,
|
|
1119
1121
|
class: "bm-fc-select-material-temp__content__circle"
|
|
1120
1122
|
};
|
|
1121
|
-
const _hoisted_6$
|
|
1122
|
-
const _hoisted_7$
|
|
1123
|
+
const _hoisted_6$4 = ["title"];
|
|
1124
|
+
const _hoisted_7$4 = { class: "bm-fc-select-material-temp__content__item-time" };
|
|
1123
1125
|
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
1124
1126
|
__name: "select-material-temp",
|
|
1125
1127
|
props: [
|
|
@@ -1334,9 +1336,9 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
1334
1336
|
vue.createElementVNode("span", {
|
|
1335
1337
|
class: "bm-fc-select-material-temp__content__name",
|
|
1336
1338
|
title: item.templateName
|
|
1337
|
-
}, vue.toDisplayString(item.templateName), 9, _hoisted_6$
|
|
1339
|
+
}, vue.toDisplayString(item.templateName), 9, _hoisted_6$4)
|
|
1338
1340
|
], 8, _hoisted_4$4),
|
|
1339
|
-
vue.createElementVNode("div", _hoisted_7$
|
|
1341
|
+
vue.createElementVNode("div", _hoisted_7$4, vue.toDisplayString(vue.unref(dayjs__default["default"])(item.lastUpdateTime).format("YYYY/MM/DD")), 1)
|
|
1340
1342
|
])
|
|
1341
1343
|
]),
|
|
1342
1344
|
_: 2
|
|
@@ -18731,9 +18733,17 @@ var ShopInput = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "shop-input
|
|
|
18731
18733
|
const _hoisted_1$5 = { class: "bm-dc-table-widget" };
|
|
18732
18734
|
const _hoisted_2$4 = { class: "bm-dc-table-widget__title" };
|
|
18733
18735
|
const _hoisted_3$3 = { class: "bm-dc-table-widget__title-samll" };
|
|
18734
|
-
const _hoisted_4$3 = {
|
|
18735
|
-
|
|
18736
|
-
|
|
18736
|
+
const _hoisted_4$3 = {
|
|
18737
|
+
key: 0,
|
|
18738
|
+
class: "bm-dc-table-widget__top-bar"
|
|
18739
|
+
};
|
|
18740
|
+
const _hoisted_5$3 = ["accept"];
|
|
18741
|
+
const _hoisted_6$3 = {
|
|
18742
|
+
key: 1,
|
|
18743
|
+
class: "bm-dc-table-widget__top-bar"
|
|
18744
|
+
};
|
|
18745
|
+
const _hoisted_7$3 = { class: "bm-dc-table-widget__table" };
|
|
18746
|
+
const _sfc_main$7 = vue.defineComponent({
|
|
18737
18747
|
__name: "table-widget",
|
|
18738
18748
|
props: [
|
|
18739
18749
|
"rule",
|
|
@@ -18828,6 +18838,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
18828
18838
|
const formData = vue.computed(
|
|
18829
18839
|
() => props.formData || props.formCreateInject.api.bind()
|
|
18830
18840
|
);
|
|
18841
|
+
const tableConfig = vue.computed(() => props.rule?.config?.tableConfig || {});
|
|
18842
|
+
const validColumns = vue.computed(() => columns.filter((c) => isValidColumn(c)));
|
|
18831
18843
|
function isShow(key) {
|
|
18832
18844
|
return props.rule.config.tableAdvancedFeatures.includes(key);
|
|
18833
18845
|
}
|
|
@@ -19024,12 +19036,12 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19024
19036
|
const reader = new FileReader();
|
|
19025
19037
|
reader.onload = (fr) => {
|
|
19026
19038
|
const rows = parseCsv(fr?.target?.result);
|
|
19027
|
-
const
|
|
19039
|
+
const validColumns2 = columns.filter((c) => isValidColumn(c));
|
|
19028
19040
|
const result = [];
|
|
19029
19041
|
rows.forEach((row) => {
|
|
19030
19042
|
const rowData = {};
|
|
19031
19043
|
row.forEach((item, index) => {
|
|
19032
|
-
rowData[
|
|
19044
|
+
rowData[validColumns2[index].field] = item;
|
|
19033
19045
|
});
|
|
19034
19046
|
result.push(rowData);
|
|
19035
19047
|
});
|
|
@@ -19066,9 +19078,9 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19066
19078
|
}
|
|
19067
19079
|
async function validate(rowData) {
|
|
19068
19080
|
let error = "";
|
|
19069
|
-
const
|
|
19081
|
+
const validColumns2 = columns.filter((c) => isValidColumn(c));
|
|
19070
19082
|
for (const row of rowData) {
|
|
19071
|
-
for (const { field } of
|
|
19083
|
+
for (const { field } of validColumns2) {
|
|
19072
19084
|
const rule = childRulesMap.value[`${field}`];
|
|
19073
19085
|
const title = rule?.title?.title;
|
|
19074
19086
|
if (!rule)
|
|
@@ -19280,77 +19292,252 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19280
19292
|
deep: true
|
|
19281
19293
|
}
|
|
19282
19294
|
);
|
|
19295
|
+
const buttonLoadingForProductCenter = vue.ref({
|
|
19296
|
+
export: false,
|
|
19297
|
+
download: false,
|
|
19298
|
+
import: false
|
|
19299
|
+
});
|
|
19300
|
+
async function exportForProductCenter() {
|
|
19301
|
+
if (!tableConfig.value.template || tableConfig.value.template === "table") {
|
|
19302
|
+
return handleExport();
|
|
19303
|
+
}
|
|
19304
|
+
try {
|
|
19305
|
+
buttonLoadingForProductCenter.value.export = true;
|
|
19306
|
+
const selected = xGrid.value?.getCheckboxRecords?.();
|
|
19307
|
+
await props.extraConfig.table?.exportFetch?.({
|
|
19308
|
+
tableConfig: tableConfig.value,
|
|
19309
|
+
columns: validColumns.value,
|
|
19310
|
+
data: selected
|
|
19311
|
+
});
|
|
19312
|
+
} catch (error) {
|
|
19313
|
+
console.log("\u{1F680} ~ error:", error);
|
|
19314
|
+
} finally {
|
|
19315
|
+
buttonLoadingForProductCenter.value.export = false;
|
|
19316
|
+
}
|
|
19317
|
+
}
|
|
19318
|
+
async function downloadTemplateForProductCenter() {
|
|
19319
|
+
if (!tableConfig.value.template || tableConfig.value.template === "table") {
|
|
19320
|
+
return handleDownload();
|
|
19321
|
+
}
|
|
19322
|
+
try {
|
|
19323
|
+
buttonLoadingForProductCenter.value.download = true;
|
|
19324
|
+
await props.extraConfig.table?.downloadTemplateFetch?.({
|
|
19325
|
+
tableConfig: tableConfig.value,
|
|
19326
|
+
columns: validColumns.value
|
|
19327
|
+
});
|
|
19328
|
+
} catch (error) {
|
|
19329
|
+
console.log("\u{1F680} ~ error:", error);
|
|
19330
|
+
} finally {
|
|
19331
|
+
buttonLoadingForProductCenter.value.download = false;
|
|
19332
|
+
}
|
|
19333
|
+
}
|
|
19334
|
+
async function importHandleForProductCenter(e) {
|
|
19335
|
+
if (!tableConfig.value.template || tableConfig.value.template === "table") {
|
|
19336
|
+
return handleChange(e);
|
|
19337
|
+
}
|
|
19338
|
+
try {
|
|
19339
|
+
buttonLoadingForProductCenter.value.import = true;
|
|
19340
|
+
let res = await props.extraConfig.table?.importFetch?.({
|
|
19341
|
+
tableConfig: tableConfig.value,
|
|
19342
|
+
columns: validColumns.value
|
|
19343
|
+
}) || {};
|
|
19344
|
+
if (res.promptMessage && !await utils__default["default"].confirmModal(res.promptMessage)) {
|
|
19345
|
+
return;
|
|
19346
|
+
}
|
|
19347
|
+
if (res.templateDataList?.length) {
|
|
19348
|
+
data.push(...res.templateDataList);
|
|
19349
|
+
}
|
|
19350
|
+
const numFormatter = (value) => utils__default["default"].toFixNumHasDefault(value, 0, false, "0");
|
|
19351
|
+
if (!res.successNum) {
|
|
19352
|
+
let confirmRet = await utils__default["default"].confirmModal(
|
|
19353
|
+
`\u5BFC\u5165\u5931\u8D25\uFF0C\u5171${numFormatter(res.errorNum)}\u6761`,
|
|
19354
|
+
"\u63D0\u793A",
|
|
19355
|
+
"error",
|
|
19356
|
+
{
|
|
19357
|
+
okText: "\u4E0B\u8F7D\u9519\u8BEF\u6570\u636E"
|
|
19358
|
+
},
|
|
19359
|
+
"error"
|
|
19360
|
+
);
|
|
19361
|
+
if (confirmRet) {
|
|
19362
|
+
props.extraConfig.table?.downloadErrorFetch?.({
|
|
19363
|
+
data: res
|
|
19364
|
+
});
|
|
19365
|
+
}
|
|
19366
|
+
} else if (res.successNum === res.importNum) {
|
|
19367
|
+
let confirmRet = await utils__default["default"].confirmModal(
|
|
19368
|
+
`\u5BFC\u5165\u6210\u529F\uFF0C\u5171${numFormatter(res.successNum)}\u6761`,
|
|
19369
|
+
"\u63D0\u793A",
|
|
19370
|
+
"success",
|
|
19371
|
+
{
|
|
19372
|
+
okText: "\u77E5\u9053\u4E86"
|
|
19373
|
+
},
|
|
19374
|
+
"success"
|
|
19375
|
+
);
|
|
19376
|
+
} else {
|
|
19377
|
+
let confirmRet = await utils__default["default"].confirmModal(
|
|
19378
|
+
`\u5BFC\u5165\u6210\u529F${numFormatter(res.successNum)}\u6761\uFF0C\u5931\u8D25${numFormatter(
|
|
19379
|
+
res.errorNum
|
|
19380
|
+
)}\u6761`,
|
|
19381
|
+
"\u63D0\u793A",
|
|
19382
|
+
"warning",
|
|
19383
|
+
{
|
|
19384
|
+
okText: "\u4E0B\u8F7D\u9519\u8BEF\u6570\u636E"
|
|
19385
|
+
},
|
|
19386
|
+
"warning"
|
|
19387
|
+
);
|
|
19388
|
+
if (confirmRet) {
|
|
19389
|
+
props.extraConfig.table?.downloadErrorFetch?.({
|
|
19390
|
+
data: res
|
|
19391
|
+
});
|
|
19392
|
+
}
|
|
19393
|
+
}
|
|
19394
|
+
} catch (error) {
|
|
19395
|
+
console.log("\u{1F680} ~ error:", error);
|
|
19396
|
+
} finally {
|
|
19397
|
+
buttonLoadingForProductCenter.value.import = false;
|
|
19398
|
+
}
|
|
19399
|
+
}
|
|
19283
19400
|
return (_ctx, _cache) => {
|
|
19284
19401
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
19285
19402
|
vue.createElementVNode("div", _hoisted_2$4, [
|
|
19286
19403
|
vue.createTextVNode(vue.toDisplayString(__props.rule.title.title) + " ", 1),
|
|
19287
19404
|
vue.createElementVNode("span", _hoisted_3$3, vue.toDisplayString(vue.unref(countText)), 1),
|
|
19288
|
-
vue.
|
|
19289
|
-
|
|
19290
|
-
|
|
19291
|
-
|
|
19292
|
-
|
|
19293
|
-
}, {
|
|
19294
|
-
default: vue.withCtx(() => [
|
|
19295
|
-
vue.createTextVNode("\u5BFC\u51FA")
|
|
19296
|
-
]),
|
|
19297
|
-
_: 1
|
|
19298
|
-
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
|
|
19299
|
-
vue.createTextVNode("\xA0 "),
|
|
19300
|
-
vue.unref(importFeature) && !__props.hidden ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
19301
|
-
vue.createElementVNode("input", {
|
|
19302
|
-
ref_key: "inputRef",
|
|
19303
|
-
ref: inputRef,
|
|
19304
|
-
style: { "display": "none" },
|
|
19305
|
-
name: "file",
|
|
19306
|
-
type: "file",
|
|
19307
|
-
accept: "text/csv",
|
|
19308
|
-
onChange: handleChange
|
|
19309
|
-
}, null, 544),
|
|
19310
|
-
vue.createVNode(vue.unref(antDesignVue.Button), {
|
|
19405
|
+
vue.createCommentVNode(" \u5546\u54C1\u4E2D\u5FC3\u5B9A\u5236 \u6309\u94AE "),
|
|
19406
|
+
vue.unref(tableConfig).system === "productCenter" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [
|
|
19407
|
+
!__props.hidden ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
19408
|
+
vue.unref(tableConfig).buttons?.includes("export") ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19409
|
+
key: 0,
|
|
19311
19410
|
disabled: __props.disabled,
|
|
19312
|
-
|
|
19411
|
+
loading: buttonLoadingForProductCenter.value.export,
|
|
19412
|
+
onClick: exportForProductCenter
|
|
19313
19413
|
}, {
|
|
19314
19414
|
default: vue.withCtx(() => [
|
|
19315
|
-
vue.createTextVNode("\
|
|
19415
|
+
vue.createTextVNode("\u5BFC\u51FA")
|
|
19316
19416
|
]),
|
|
19317
19417
|
_: 1
|
|
19318
|
-
}, 8, ["disabled"]),
|
|
19418
|
+
}, 8, ["disabled", "loading"])) : vue.createCommentVNode("v-if", true),
|
|
19419
|
+
vue.unref(tableConfig).buttons?.includes("downloadTemplate") ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19420
|
+
key: 1,
|
|
19421
|
+
disabled: __props.disabled,
|
|
19422
|
+
loading: buttonLoadingForProductCenter.value.download,
|
|
19423
|
+
onClick: downloadTemplateForProductCenter
|
|
19424
|
+
}, {
|
|
19425
|
+
default: vue.withCtx(() => [
|
|
19426
|
+
vue.createTextVNode("\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F")
|
|
19427
|
+
]),
|
|
19428
|
+
_: 1
|
|
19429
|
+
}, 8, ["disabled", "loading"])) : vue.createCommentVNode("v-if", true),
|
|
19430
|
+
vue.unref(tableConfig).buttons?.includes("import") ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
19431
|
+
vue.createElementVNode("input", {
|
|
19432
|
+
ref_key: "inputRef",
|
|
19433
|
+
ref: inputRef,
|
|
19434
|
+
style: { "display": "none" },
|
|
19435
|
+
name: "file",
|
|
19436
|
+
type: "file",
|
|
19437
|
+
accept: vue.unref(tableConfig).template === "table" ? "text/csv" : "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, .xlsx, .xls, .XLSX, .XLS",
|
|
19438
|
+
onChange: importHandleForProductCenter
|
|
19439
|
+
}, null, 40, _hoisted_5$3),
|
|
19440
|
+
vue.createVNode(vue.unref(antDesignVue.Button), {
|
|
19441
|
+
disabled: __props.disabled,
|
|
19442
|
+
loading: buttonLoadingForProductCenter.value.import,
|
|
19443
|
+
onClick: handleImport
|
|
19444
|
+
}, {
|
|
19445
|
+
default: vue.withCtx(() => [
|
|
19446
|
+
vue.createTextVNode("\u6279\u91CF\u5BFC\u5165")
|
|
19447
|
+
]),
|
|
19448
|
+
_: 1
|
|
19449
|
+
}, 8, ["disabled", "loading"])
|
|
19450
|
+
], 64)) : vue.createCommentVNode("v-if", true),
|
|
19451
|
+
vue.unref(tableConfig).buttons?.includes("delete") ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19452
|
+
key: 3,
|
|
19453
|
+
disabled: __props.disabled,
|
|
19454
|
+
onClick: handleBatchDelete
|
|
19455
|
+
}, {
|
|
19456
|
+
default: vue.withCtx(() => [
|
|
19457
|
+
vue.createTextVNode("\u6279\u91CF\u5220\u9664")
|
|
19458
|
+
]),
|
|
19459
|
+
_: 1
|
|
19460
|
+
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
|
|
19461
|
+
vue.unref(tableConfig).buttons?.includes("add") ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19462
|
+
key: 4,
|
|
19463
|
+
type: "primary",
|
|
19464
|
+
disabled: __props.disabled,
|
|
19465
|
+
onClick: handleAdd
|
|
19466
|
+
}, {
|
|
19467
|
+
default: vue.withCtx(() => [
|
|
19468
|
+
vue.createVNode(vue.unref(iconsVue.PlusOutlined)),
|
|
19469
|
+
vue.createTextVNode(" \u65B0\u589E")
|
|
19470
|
+
]),
|
|
19471
|
+
_: 1
|
|
19472
|
+
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
|
|
19473
|
+
], 64)) : vue.createCommentVNode("v-if", true)
|
|
19474
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$3, [
|
|
19475
|
+
!__props.hidden ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
19476
|
+
vue.unref(exportFeature) ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19477
|
+
key: 0,
|
|
19478
|
+
disabled: __props.disabled,
|
|
19479
|
+
onClick: handleExport
|
|
19480
|
+
}, {
|
|
19481
|
+
default: vue.withCtx(() => [
|
|
19482
|
+
vue.createTextVNode("\u5BFC\u51FA")
|
|
19483
|
+
]),
|
|
19484
|
+
_: 1
|
|
19485
|
+
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
|
|
19486
|
+
vue.createTextVNode("\xA0 "),
|
|
19487
|
+
vue.unref(importFeature) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
19488
|
+
vue.createElementVNode("input", {
|
|
19489
|
+
ref_key: "inputRef",
|
|
19490
|
+
ref: inputRef,
|
|
19491
|
+
style: { "display": "none" },
|
|
19492
|
+
name: "file",
|
|
19493
|
+
type: "file",
|
|
19494
|
+
accept: "text/csv",
|
|
19495
|
+
onChange: handleChange
|
|
19496
|
+
}, null, 544),
|
|
19497
|
+
vue.createVNode(vue.unref(antDesignVue.Button), {
|
|
19498
|
+
disabled: __props.disabled,
|
|
19499
|
+
onClick: handleDownload
|
|
19500
|
+
}, {
|
|
19501
|
+
default: vue.withCtx(() => [
|
|
19502
|
+
vue.createTextVNode("\u4E0B\u8F7D\u6A21\u677F")
|
|
19503
|
+
]),
|
|
19504
|
+
_: 1
|
|
19505
|
+
}, 8, ["disabled"]),
|
|
19506
|
+
vue.createVNode(vue.unref(antDesignVue.Button), {
|
|
19507
|
+
disabled: __props.disabled,
|
|
19508
|
+
onClick: handleImport
|
|
19509
|
+
}, {
|
|
19510
|
+
default: vue.withCtx(() => [
|
|
19511
|
+
vue.createTextVNode("\u6279\u91CF\u5BFC\u5165")
|
|
19512
|
+
]),
|
|
19513
|
+
_: 1
|
|
19514
|
+
}, 8, ["disabled"])
|
|
19515
|
+
], 64)) : vue.createCommentVNode("v-if", true),
|
|
19516
|
+
vue.unref(deleteFeature) ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19517
|
+
key: 2,
|
|
19518
|
+
disabled: __props.disabled,
|
|
19519
|
+
onClick: handleBatchDelete
|
|
19520
|
+
}, {
|
|
19521
|
+
default: vue.withCtx(() => [
|
|
19522
|
+
vue.createTextVNode("\u6279\u91CF\u5220\u9664")
|
|
19523
|
+
]),
|
|
19524
|
+
_: 1
|
|
19525
|
+
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
|
|
19319
19526
|
vue.createVNode(vue.unref(antDesignVue.Button), {
|
|
19527
|
+
type: "primary",
|
|
19320
19528
|
disabled: __props.disabled,
|
|
19321
|
-
onClick:
|
|
19529
|
+
onClick: handleAdd
|
|
19322
19530
|
}, {
|
|
19323
19531
|
default: vue.withCtx(() => [
|
|
19324
|
-
vue.
|
|
19532
|
+
vue.createVNode(vue.unref(iconsVue.PlusOutlined)),
|
|
19533
|
+
vue.createTextVNode(" \u65B0\u589E ")
|
|
19325
19534
|
]),
|
|
19326
19535
|
_: 1
|
|
19327
19536
|
}, 8, ["disabled"])
|
|
19328
|
-
], 64)) : vue.createCommentVNode("v-if", true)
|
|
19329
|
-
|
|
19330
|
-
key: 2,
|
|
19331
|
-
disabled: __props.disabled,
|
|
19332
|
-
onClick: handleBatchDelete
|
|
19333
|
-
}, {
|
|
19334
|
-
default: vue.withCtx(() => [
|
|
19335
|
-
vue.createTextVNode("\u6279\u91CF\u5220\u9664")
|
|
19336
|
-
]),
|
|
19337
|
-
_: 1
|
|
19338
|
-
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
|
|
19339
|
-
!__props.hidden ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19340
|
-
key: 3,
|
|
19341
|
-
type: "primary",
|
|
19342
|
-
disabled: __props.disabled,
|
|
19343
|
-
onClick: handleAdd
|
|
19344
|
-
}, {
|
|
19345
|
-
default: vue.withCtx(() => [
|
|
19346
|
-
vue.createVNode(vue.unref(iconsVue.PlusOutlined)),
|
|
19347
|
-
vue.createTextVNode(" \u65B0\u589E ")
|
|
19348
|
-
]),
|
|
19349
|
-
_: 1
|
|
19350
|
-
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
|
|
19351
|
-
])
|
|
19537
|
+
], 64)) : vue.createCommentVNode("v-if", true)
|
|
19538
|
+
]))
|
|
19352
19539
|
]),
|
|
19353
|
-
vue.createElementVNode("div",
|
|
19540
|
+
vue.createElementVNode("div", _hoisted_7$3, [
|
|
19354
19541
|
vue.createVNode(vue.unref(antDesignVue.FormItemRest), null, {
|
|
19355
19542
|
default: vue.withCtx(() => [
|
|
19356
19543
|
vue.createVNode(vue.unref(components.BmFloatTable), {
|
|
@@ -21150,7 +21337,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21150
21337
|
"formPermissions",
|
|
21151
21338
|
"resolveRulesConfig"
|
|
21152
21339
|
],
|
|
21153
|
-
emits: ["update:value"],
|
|
21340
|
+
emits: ["update:value", "change"],
|
|
21154
21341
|
setup(__props, { expose, emit: emits }) {
|
|
21155
21342
|
const props = __props;
|
|
21156
21343
|
const formRuleList = vue.computed(() => {
|
|
@@ -21310,6 +21497,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21310
21497
|
immediate: true
|
|
21311
21498
|
}
|
|
21312
21499
|
);
|
|
21500
|
+
function onChange(...reset) {
|
|
21501
|
+
emits("change", ...reset);
|
|
21502
|
+
}
|
|
21313
21503
|
expose({ fApi });
|
|
21314
21504
|
return (_ctx, _cache) => {
|
|
21315
21505
|
const _component_formCreate = vue.resolveComponent("formCreate", true);
|
|
@@ -21324,7 +21514,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21324
21514
|
"model-value": __props.value,
|
|
21325
21515
|
option: vue.unref(option),
|
|
21326
21516
|
rule: rule.value,
|
|
21327
|
-
"onUpdate:modelValue": handleValue
|
|
21517
|
+
"onUpdate:modelValue": handleValue,
|
|
21518
|
+
onChange
|
|
21328
21519
|
}, null, 8, ["api", "model-value", "option", "rule"])
|
|
21329
21520
|
], 64);
|
|
21330
21521
|
};
|
|
@@ -1889,11 +1889,11 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
1889
1889
|
emits("mouseleave");
|
|
1890
1890
|
}
|
|
1891
1891
|
function emitSetActiveRuleEvt(rule) {
|
|
1892
|
+
if (rule?.config.immutable)
|
|
1893
|
+
return;
|
|
1892
1894
|
emits("set-active-rule", rule, tableRule.value);
|
|
1893
1895
|
}
|
|
1894
1896
|
function handleClick(element) {
|
|
1895
|
-
if (element?.config.immutable)
|
|
1896
|
-
return;
|
|
1897
1897
|
emitSetActiveRuleEvt(element);
|
|
1898
1898
|
}
|
|
1899
1899
|
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>;
|