bm-admin-ui 1.1.5-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 +12 -12
- package/es/components/feedback/src/bmAlert.vue.d.ts +5 -5
- package/es/components/feedback/src/bmModal.vue.d.ts +7 -7
- 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 +199 -14
- 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 +12 -12
- 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 +12 -12
- 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 +12 -12
- package/lib/components/feedback/src/bmAlert.vue.d.ts +5 -5
- package/lib/components/feedback/src/bmModal.vue.d.ts +7 -7
- 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 +200 -14
- 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 +12 -12
- 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 +12 -12
- 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 +12 -12
- package/types/components/feedback/src/bmAlert.vue.d.ts +5 -5
- package/types/components/feedback/src/bmModal.vue.d.ts +7 -7
- 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 +12 -12
- 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 +12 -12
- 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,12 +19292,186 @@ 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.
|
|
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,
|
|
19410
|
+
disabled: __props.disabled,
|
|
19411
|
+
loading: buttonLoadingForProductCenter.value.export,
|
|
19412
|
+
onClick: exportForProductCenter
|
|
19413
|
+
}, {
|
|
19414
|
+
default: vue.withCtx(() => [
|
|
19415
|
+
vue.createTextVNode("\u5BFC\u51FA")
|
|
19416
|
+
]),
|
|
19417
|
+
_: 1
|
|
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, [
|
|
19289
19475
|
!__props.hidden ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
19290
19476
|
vue.unref(exportFeature) ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19291
19477
|
key: 0,
|
|
@@ -19349,9 +19535,9 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19349
19535
|
_: 1
|
|
19350
19536
|
}, 8, ["disabled"])
|
|
19351
19537
|
], 64)) : vue.createCommentVNode("v-if", true)
|
|
19352
|
-
])
|
|
19538
|
+
]))
|
|
19353
19539
|
]),
|
|
19354
|
-
vue.createElementVNode("div",
|
|
19540
|
+
vue.createElementVNode("div", _hoisted_7$3, [
|
|
19355
19541
|
vue.createVNode(vue.unref(antDesignVue.FormItemRest), null, {
|
|
19356
19542
|
default: vue.withCtx(() => [
|
|
19357
19543
|
vue.createVNode(vue.unref(components.BmFloatTable), {
|
|
@@ -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,12 +1043,12 @@ 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
|
-
title: string;
|
|
1051
1050
|
visible: boolean;
|
|
1051
|
+
title: string;
|
|
1052
1052
|
mode: string;
|
|
1053
1053
|
showCount: boolean;
|
|
1054
1054
|
unitStr: string;
|
|
@@ -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,12 +1043,12 @@ 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
|
-
title: string;
|
|
1051
1050
|
visible: boolean;
|
|
1051
|
+
title: string;
|
|
1052
1052
|
mode: string;
|
|
1053
1053
|
showCount: boolean;
|
|
1054
1054
|
unitStr: string;
|
|
@@ -19,7 +19,7 @@ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
19
19
|
default: number;
|
|
20
20
|
};
|
|
21
21
|
width: {
|
|
22
|
-
type: (
|
|
22
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
23
|
default: number;
|
|
24
24
|
};
|
|
25
25
|
showAlways: {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const utils: {
|
|
2
|
+
confirmModal(content: string | string[], title?: string, type?: string, config?: {}, cate?: string): Promise<unknown>;
|
|
3
|
+
toThousands(num: string | number): string;
|
|
4
|
+
toFixNumHasDefault(value: string | number | undefined, num?: number, isMoney?: boolean, defaultValue?: string): string;
|
|
5
|
+
wait(ms?: number): Promise<void>;
|
|
6
|
+
};
|
|
7
|
+
export default utils;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const ant_design_vue_1 = require("ant-design-vue");
|
|
4
|
+
const vue_1 = require("vue");
|
|
5
|
+
const icons_vue_1 = require("@ant-design/icons-vue");
|
|
6
|
+
const utils = {
|
|
7
|
+
confirmModal(content, title = '提示', type = 'info', config = {}, cate = 'confirm') {
|
|
8
|
+
content = content || '确定提交吗?';
|
|
9
|
+
const icon = {
|
|
10
|
+
info: icons_vue_1.InfoCircleFilled,
|
|
11
|
+
warning: icons_vue_1.ExclamationCircleFilled,
|
|
12
|
+
success: icons_vue_1.CheckCircleFilled,
|
|
13
|
+
error: icons_vue_1.CloseCircleFilled,
|
|
14
|
+
};
|
|
15
|
+
const iconStyles = {
|
|
16
|
+
info: 'color:#FF9019;',
|
|
17
|
+
warning: 'color:#FF9019;',
|
|
18
|
+
success: 'color:#29CC7A;',
|
|
19
|
+
error: 'color:#E64C2E;',
|
|
20
|
+
};
|
|
21
|
+
return new Promise((resolve) => {
|
|
22
|
+
ant_design_vue_1.Modal[cate](Object.assign(Object.assign({ class: `bm-confirm-modal bm-confirm-modal-${type}`, closable: false, title, centered: true, icon: (0, vue_1.createVNode)(icon[type], { style: iconStyles[type] }), content: typeof content === 'object'
|
|
23
|
+
? (0, vue_1.h)('div', { style: 'color:#555;' }, content.map((ele) => {
|
|
24
|
+
return (0, vue_1.h)('p', ele);
|
|
25
|
+
}))
|
|
26
|
+
: (0, vue_1.createVNode)('div', { style: 'color:#555;' }, content) }, config), { onOk() {
|
|
27
|
+
resolve(true);
|
|
28
|
+
},
|
|
29
|
+
onCancel() {
|
|
30
|
+
resolve(false);
|
|
31
|
+
} }));
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
toThousands(num) {
|
|
35
|
+
num = String(num);
|
|
36
|
+
if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(num)) {
|
|
37
|
+
return num;
|
|
38
|
+
}
|
|
39
|
+
let a = RegExp.$1;
|
|
40
|
+
let b = RegExp.$2;
|
|
41
|
+
let c = RegExp.$3;
|
|
42
|
+
let re = /(\\d)(\\d{3})(,|$)/;
|
|
43
|
+
re.compile('(\\d)(\\d{3})(,|$)');
|
|
44
|
+
while (re.test(b)) {
|
|
45
|
+
b = b.replace(re, '$1,$2$3');
|
|
46
|
+
}
|
|
47
|
+
return a + '' + b + '' + c;
|
|
48
|
+
},
|
|
49
|
+
toFixNumHasDefault(value, num = 0, isMoney = false, defaultValue = '-') {
|
|
50
|
+
if (value === 0 || value === '0' || value) {
|
|
51
|
+
return ((isMoney ? '¥' : '') +
|
|
52
|
+
(value === 0 || value === '0'
|
|
53
|
+
? 0
|
|
54
|
+
: this.toThousands(Number(value).toFixed(num))));
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return defaultValue;
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
wait(ms = 0) {
|
|
61
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
exports.default = utils;
|