dfs-page-config 0.4.61 → 0.4.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dfs-page-config.js +499 -494
- package/dist/dfs-page-config.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/dfs-page-config.js
CHANGED
|
@@ -28381,69 +28381,285 @@ function _sfc_render$j(k, L, ie, ae, pe, _e) {
|
|
|
28381
28381
|
], 64);
|
|
28382
28382
|
}
|
|
28383
28383
|
const UploadComp = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$j], ["__scopeId", "data-v-50cdb1c3"]]), elSwitch = "", elTimeSelect = "", elScrollbar = "", elPopper = "", elInput = "", elTag = "", elOption = "", elOptionGroup = "", elSelect = "", elDatePicker = "", elCheckboxGroup = "", elCheckbox = "", elRadioButton = "", elRadioGroup = "", elRadio = "", elCascader = "", elCascaderPanel = "", elInputNumber = "", elBadge = "", elMessage = "";
|
|
28384
|
-
|
|
28385
|
-
|
|
28386
|
-
|
|
28387
|
-
|
|
28388
|
-
|
|
28389
|
-
|
|
28390
|
-
|
|
28391
|
-
|
|
28392
|
-
|
|
28393
|
-
|
|
28394
|
-
|
|
28395
|
-
|
|
28396
|
-
|
|
28397
|
-
|
|
28398
|
-
|
|
28399
|
-
|
|
28400
|
-
|
|
28401
|
-
|
|
28402
|
-
|
|
28403
|
-
|
|
28384
|
+
/*! Element Plus v2.2.28 */
|
|
28385
|
+
var zhCn = {
|
|
28386
|
+
name: "zh-cn",
|
|
28387
|
+
el: {
|
|
28388
|
+
colorpicker: {
|
|
28389
|
+
confirm: "确定",
|
|
28390
|
+
clear: "清空"
|
|
28391
|
+
},
|
|
28392
|
+
datepicker: {
|
|
28393
|
+
now: "此刻",
|
|
28394
|
+
today: "今天",
|
|
28395
|
+
cancel: "取消",
|
|
28396
|
+
clear: "清空",
|
|
28397
|
+
confirm: "确定",
|
|
28398
|
+
selectDate: "选择日期",
|
|
28399
|
+
selectTime: "选择时间",
|
|
28400
|
+
startDate: "开始日期",
|
|
28401
|
+
startTime: "开始时间",
|
|
28402
|
+
endDate: "结束日期",
|
|
28403
|
+
endTime: "结束时间",
|
|
28404
|
+
prevYear: "前一年",
|
|
28405
|
+
nextYear: "后一年",
|
|
28406
|
+
prevMonth: "上个月",
|
|
28407
|
+
nextMonth: "下个月",
|
|
28408
|
+
year: "年",
|
|
28409
|
+
month1: "1 月",
|
|
28410
|
+
month2: "2 月",
|
|
28411
|
+
month3: "3 月",
|
|
28412
|
+
month4: "4 月",
|
|
28413
|
+
month5: "5 月",
|
|
28414
|
+
month6: "6 月",
|
|
28415
|
+
month7: "7 月",
|
|
28416
|
+
month8: "8 月",
|
|
28417
|
+
month9: "9 月",
|
|
28418
|
+
month10: "10 月",
|
|
28419
|
+
month11: "11 月",
|
|
28420
|
+
month12: "12 月",
|
|
28421
|
+
weeks: {
|
|
28422
|
+
sun: "日",
|
|
28423
|
+
mon: "一",
|
|
28424
|
+
tue: "二",
|
|
28425
|
+
wed: "三",
|
|
28426
|
+
thu: "四",
|
|
28427
|
+
fri: "五",
|
|
28428
|
+
sat: "六"
|
|
28429
|
+
},
|
|
28430
|
+
months: {
|
|
28431
|
+
jan: "一月",
|
|
28432
|
+
feb: "二月",
|
|
28433
|
+
mar: "三月",
|
|
28434
|
+
apr: "四月",
|
|
28435
|
+
may: "五月",
|
|
28436
|
+
jun: "六月",
|
|
28437
|
+
jul: "七月",
|
|
28438
|
+
aug: "八月",
|
|
28439
|
+
sep: "九月",
|
|
28440
|
+
oct: "十月",
|
|
28441
|
+
nov: "十一月",
|
|
28442
|
+
dec: "十二月"
|
|
28443
|
+
}
|
|
28444
|
+
},
|
|
28445
|
+
select: {
|
|
28446
|
+
loading: "加载中",
|
|
28447
|
+
noMatch: "无匹配数据",
|
|
28448
|
+
noData: "无数据",
|
|
28449
|
+
placeholder: "请选择"
|
|
28450
|
+
},
|
|
28451
|
+
cascader: {
|
|
28452
|
+
noMatch: "无匹配数据",
|
|
28453
|
+
loading: "加载中",
|
|
28454
|
+
placeholder: "请选择",
|
|
28455
|
+
noData: "暂无数据"
|
|
28456
|
+
},
|
|
28457
|
+
pagination: {
|
|
28458
|
+
goto: "前往",
|
|
28459
|
+
pagesize: "条/页",
|
|
28460
|
+
total: "共 {total} 条",
|
|
28461
|
+
pageClassifier: "页",
|
|
28462
|
+
deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
|
|
28463
|
+
},
|
|
28464
|
+
messagebox: {
|
|
28465
|
+
title: "提示",
|
|
28466
|
+
confirm: "确定",
|
|
28467
|
+
cancel: "取消",
|
|
28468
|
+
error: "输入的数据不合法!"
|
|
28469
|
+
},
|
|
28470
|
+
upload: {
|
|
28471
|
+
deleteTip: "按 delete 键可删除",
|
|
28472
|
+
delete: "删除",
|
|
28473
|
+
preview: "查看图片",
|
|
28474
|
+
continue: "继续上传"
|
|
28475
|
+
},
|
|
28476
|
+
table: {
|
|
28477
|
+
emptyText: "暂无数据",
|
|
28478
|
+
confirmFilter: "筛选",
|
|
28479
|
+
resetFilter: "重置",
|
|
28480
|
+
clearFilter: "全部",
|
|
28481
|
+
sumText: "合计"
|
|
28482
|
+
},
|
|
28483
|
+
tree: {
|
|
28484
|
+
emptyText: "暂无数据"
|
|
28485
|
+
},
|
|
28486
|
+
transfer: {
|
|
28487
|
+
noMatch: "无匹配数据",
|
|
28488
|
+
noData: "无数据",
|
|
28489
|
+
titles: ["列表 1", "列表 2"],
|
|
28490
|
+
filterPlaceholder: "请输入搜索内容",
|
|
28491
|
+
noCheckedFormat: "共 {total} 项",
|
|
28492
|
+
hasCheckedFormat: "已选 {checked}/{total} 项"
|
|
28493
|
+
},
|
|
28494
|
+
image: {
|
|
28495
|
+
error: "加载失败"
|
|
28496
|
+
},
|
|
28497
|
+
pageHeader: {
|
|
28498
|
+
title: "返回"
|
|
28499
|
+
},
|
|
28500
|
+
popconfirm: {
|
|
28501
|
+
confirmButtonText: "确定",
|
|
28502
|
+
cancelButtonText: "取消"
|
|
28404
28503
|
}
|
|
28405
|
-
}
|
|
28406
|
-
|
|
28407
|
-
|
|
28408
|
-
|
|
28409
|
-
|
|
28410
|
-
|
|
28411
|
-
|
|
28412
|
-
|
|
28413
|
-
|
|
28414
|
-
|
|
28415
|
-
|
|
28416
|
-
}
|
|
28417
|
-
|
|
28418
|
-
|
|
28419
|
-
|
|
28420
|
-
|
|
28421
|
-
|
|
28422
|
-
|
|
28423
|
-
|
|
28424
|
-
|
|
28425
|
-
|
|
28426
|
-
|
|
28427
|
-
|
|
28428
|
-
|
|
28429
|
-
|
|
28430
|
-
|
|
28431
|
-
|
|
28432
|
-
|
|
28433
|
-
|
|
28434
|
-
|
|
28435
|
-
|
|
28436
|
-
|
|
28437
|
-
|
|
28438
|
-
|
|
28439
|
-
|
|
28440
|
-
|
|
28441
|
-
|
|
28442
|
-
|
|
28504
|
+
}
|
|
28505
|
+
};
|
|
28506
|
+
/*! Element Plus v2.2.28 */
|
|
28507
|
+
var en = {
|
|
28508
|
+
name: "en",
|
|
28509
|
+
el: {
|
|
28510
|
+
colorpicker: {
|
|
28511
|
+
confirm: "OK",
|
|
28512
|
+
clear: "Clear",
|
|
28513
|
+
defaultLabel: "color picker",
|
|
28514
|
+
description: "current color is {color}. press enter to select a new color."
|
|
28515
|
+
},
|
|
28516
|
+
datepicker: {
|
|
28517
|
+
now: "Now",
|
|
28518
|
+
today: "Today",
|
|
28519
|
+
cancel: "Cancel",
|
|
28520
|
+
clear: "Clear",
|
|
28521
|
+
confirm: "OK",
|
|
28522
|
+
dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
|
|
28523
|
+
monthTablePrompt: "Use the arrow keys and enter to select the month",
|
|
28524
|
+
yearTablePrompt: "Use the arrow keys and enter to select the year",
|
|
28525
|
+
selectedDate: "Selected date",
|
|
28526
|
+
selectDate: "Select date",
|
|
28527
|
+
selectTime: "Select time",
|
|
28528
|
+
startDate: "Start Date",
|
|
28529
|
+
startTime: "Start Time",
|
|
28530
|
+
endDate: "End Date",
|
|
28531
|
+
endTime: "End Time",
|
|
28532
|
+
prevYear: "Previous Year",
|
|
28533
|
+
nextYear: "Next Year",
|
|
28534
|
+
prevMonth: "Previous Month",
|
|
28535
|
+
nextMonth: "Next Month",
|
|
28536
|
+
year: "",
|
|
28537
|
+
month1: "January",
|
|
28538
|
+
month2: "February",
|
|
28539
|
+
month3: "March",
|
|
28540
|
+
month4: "April",
|
|
28541
|
+
month5: "May",
|
|
28542
|
+
month6: "June",
|
|
28543
|
+
month7: "July",
|
|
28544
|
+
month8: "August",
|
|
28545
|
+
month9: "September",
|
|
28546
|
+
month10: "October",
|
|
28547
|
+
month11: "November",
|
|
28548
|
+
month12: "December",
|
|
28549
|
+
week: "week",
|
|
28550
|
+
weeks: {
|
|
28551
|
+
sun: "Sun",
|
|
28552
|
+
mon: "Mon",
|
|
28553
|
+
tue: "Tue",
|
|
28554
|
+
wed: "Wed",
|
|
28555
|
+
thu: "Thu",
|
|
28556
|
+
fri: "Fri",
|
|
28557
|
+
sat: "Sat"
|
|
28558
|
+
},
|
|
28559
|
+
weeksFull: {
|
|
28560
|
+
sun: "Sunday",
|
|
28561
|
+
mon: "Monday",
|
|
28562
|
+
tue: "Tuesday",
|
|
28563
|
+
wed: "Wednesday",
|
|
28564
|
+
thu: "Thursday",
|
|
28565
|
+
fri: "Friday",
|
|
28566
|
+
sat: "Saturday"
|
|
28567
|
+
},
|
|
28568
|
+
months: {
|
|
28569
|
+
jan: "Jan",
|
|
28570
|
+
feb: "Feb",
|
|
28571
|
+
mar: "Mar",
|
|
28572
|
+
apr: "Apr",
|
|
28573
|
+
may: "May",
|
|
28574
|
+
jun: "Jun",
|
|
28575
|
+
jul: "Jul",
|
|
28576
|
+
aug: "Aug",
|
|
28577
|
+
sep: "Sep",
|
|
28578
|
+
oct: "Oct",
|
|
28579
|
+
nov: "Nov",
|
|
28580
|
+
dec: "Dec"
|
|
28581
|
+
}
|
|
28582
|
+
},
|
|
28583
|
+
inputNumber: {
|
|
28584
|
+
decrease: "decrease number",
|
|
28585
|
+
increase: "increase number"
|
|
28586
|
+
},
|
|
28587
|
+
select: {
|
|
28588
|
+
loading: "Loading",
|
|
28589
|
+
noMatch: "No matching data",
|
|
28590
|
+
noData: "No data",
|
|
28591
|
+
placeholder: "Select"
|
|
28592
|
+
},
|
|
28593
|
+
dropdown: {
|
|
28594
|
+
toggleDropdown: "Toggle Dropdown"
|
|
28595
|
+
},
|
|
28596
|
+
cascader: {
|
|
28597
|
+
noMatch: "No matching data",
|
|
28598
|
+
loading: "Loading",
|
|
28599
|
+
placeholder: "Select",
|
|
28600
|
+
noData: "No data"
|
|
28601
|
+
},
|
|
28602
|
+
pagination: {
|
|
28603
|
+
goto: "Go to",
|
|
28604
|
+
pagesize: "/page",
|
|
28605
|
+
total: "Total {total}",
|
|
28606
|
+
pageClassifier: "",
|
|
28607
|
+
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
|
|
28608
|
+
},
|
|
28609
|
+
dialog: {
|
|
28610
|
+
close: "Close this dialog"
|
|
28611
|
+
},
|
|
28612
|
+
drawer: {
|
|
28613
|
+
close: "Close this dialog"
|
|
28614
|
+
},
|
|
28615
|
+
messagebox: {
|
|
28616
|
+
title: "Message",
|
|
28617
|
+
confirm: "OK",
|
|
28618
|
+
cancel: "Cancel",
|
|
28619
|
+
error: "Illegal input",
|
|
28620
|
+
close: "Close this dialog"
|
|
28621
|
+
},
|
|
28622
|
+
upload: {
|
|
28623
|
+
deleteTip: "press delete to remove",
|
|
28624
|
+
delete: "Delete",
|
|
28625
|
+
preview: "Preview",
|
|
28626
|
+
continue: "Continue"
|
|
28627
|
+
},
|
|
28628
|
+
slider: {
|
|
28629
|
+
defaultLabel: "slider between {min} and {max}",
|
|
28630
|
+
defaultRangeStartLabel: "pick start value",
|
|
28631
|
+
defaultRangeEndLabel: "pick end value"
|
|
28632
|
+
},
|
|
28633
|
+
table: {
|
|
28634
|
+
emptyText: "No Data",
|
|
28635
|
+
confirmFilter: "Confirm",
|
|
28636
|
+
resetFilter: "Reset",
|
|
28637
|
+
clearFilter: "All",
|
|
28638
|
+
sumText: "Sum"
|
|
28639
|
+
},
|
|
28640
|
+
tree: {
|
|
28641
|
+
emptyText: "No Data"
|
|
28642
|
+
},
|
|
28643
|
+
transfer: {
|
|
28644
|
+
noMatch: "No matching data",
|
|
28645
|
+
noData: "No data",
|
|
28646
|
+
titles: ["List 1", "List 2"],
|
|
28647
|
+
filterPlaceholder: "Enter keyword",
|
|
28648
|
+
noCheckedFormat: "{total} items",
|
|
28649
|
+
hasCheckedFormat: "{checked}/{total} checked"
|
|
28650
|
+
},
|
|
28651
|
+
image: {
|
|
28652
|
+
error: "FAILED"
|
|
28653
|
+
},
|
|
28654
|
+
pageHeader: {
|
|
28655
|
+
title: "Back"
|
|
28656
|
+
},
|
|
28657
|
+
popconfirm: {
|
|
28658
|
+
confirmButtonText: "Yes",
|
|
28659
|
+
cancelButtonText: "No"
|
|
28443
28660
|
}
|
|
28444
|
-
}
|
|
28445
|
-
|
|
28446
|
-
);
|
|
28661
|
+
}
|
|
28662
|
+
};
|
|
28447
28663
|
const initPage = (k, L) => {
|
|
28448
28664
|
L.dispatch("_INIT_PAGE", {
|
|
28449
28665
|
pageKey: k.pageKey,
|
|
@@ -28525,6 +28741,226 @@ function getSlots(k) {
|
|
|
28525
28741
|
L.slot && slotsArr.push(L), (L.elementGroup || L.children) && getSlots(L);
|
|
28526
28742
|
});
|
|
28527
28743
|
}
|
|
28744
|
+
const store = createStore({
|
|
28745
|
+
// plugins: [createPersistedState()],
|
|
28746
|
+
state: {
|
|
28747
|
+
// 页面配置数据
|
|
28748
|
+
_CONFIG_DATA: {},
|
|
28749
|
+
_BASE_URL: "https://gateway-c4.doublefs.com",
|
|
28750
|
+
_ENV: {},
|
|
28751
|
+
loading: !1,
|
|
28752
|
+
locale: zhCn
|
|
28753
|
+
},
|
|
28754
|
+
getters: {
|
|
28755
|
+
// 获取页面配置数据
|
|
28756
|
+
_GET_CONFIG_DATA(k) {
|
|
28757
|
+
return function(L) {
|
|
28758
|
+
return k._CONFIG_DATA[L].components;
|
|
28759
|
+
};
|
|
28760
|
+
},
|
|
28761
|
+
_GET_DIALOGREF(k) {
|
|
28762
|
+
return function(L) {
|
|
28763
|
+
return k._CONFIG_DATA[L].dialogRef;
|
|
28764
|
+
};
|
|
28765
|
+
}
|
|
28766
|
+
},
|
|
28767
|
+
mutations: {
|
|
28768
|
+
// 显示/隐藏loading
|
|
28769
|
+
setLoading(k, L = !1) {
|
|
28770
|
+
k.loading = L;
|
|
28771
|
+
},
|
|
28772
|
+
saveUrl(k, L) {
|
|
28773
|
+
k._BASE_URL = L;
|
|
28774
|
+
},
|
|
28775
|
+
saveLocale(k, L) {
|
|
28776
|
+
L === "en" ? (k.locale = en, localStorage.setItem("my_locale_comp", "en")) : (k.locale = zhCn, localStorage.setItem("my_locale_comp", "zh"));
|
|
28777
|
+
},
|
|
28778
|
+
// 储存页面配置数据
|
|
28779
|
+
savaPageConfigData(k, L) {
|
|
28780
|
+
k._CONFIG_DATA[L.pageKey] = {
|
|
28781
|
+
components: L.components,
|
|
28782
|
+
cellComponents: {},
|
|
28783
|
+
dialogRef: L.dialogRef
|
|
28784
|
+
};
|
|
28785
|
+
},
|
|
28786
|
+
// 储存table数据
|
|
28787
|
+
updateRowData(k, L) {
|
|
28788
|
+
if (!Array.isArray(L.res.result))
|
|
28789
|
+
return ElMessage.warning("tableData必须为数组对象");
|
|
28790
|
+
L.tableComp.data = L.tableComp.data || {}, L.tableComp.data.result = L.res.result, L.tableComp.data.totalNum = L.res.totalNum, L.tableComp.selectedRows = [];
|
|
28791
|
+
}
|
|
28792
|
+
},
|
|
28793
|
+
actions: {
|
|
28794
|
+
// 初始化入口
|
|
28795
|
+
_INIT_PAGE(k, L) {
|
|
28796
|
+
k.commit("savaPageConfigData", L), initData(k, L.components, L.pageKey);
|
|
28797
|
+
},
|
|
28798
|
+
// 查询
|
|
28799
|
+
_QUERY_LIST(k, { pageKey: L, target: ie, row: ae, partialUpdate: pe }) {
|
|
28800
|
+
const _e = getTargetComp(k, L, ie);
|
|
28801
|
+
_e.pageInfo.pageNum = 1, _e.pageInfo.currentPage = 1, _e.resetPagination = Math.random(), pe ? setTimeout(() => {
|
|
28802
|
+
k.dispatch("_TABLE_QUERY", { tableComp: _e, pageKey: L, row: ae, partialUpdate: pe });
|
|
28803
|
+
}, 1e3) : k.dispatch("_TABLE_QUERY", { tableComp: _e, pageKey: L, row: ae, partialUpdate: pe });
|
|
28804
|
+
},
|
|
28805
|
+
// 查询列表查询
|
|
28806
|
+
_TABLE_QUERY(k, { tableComp: L, pageKey: ie, row: ae, partialUpdate: pe }) {
|
|
28807
|
+
let _e = {}, xe = {};
|
|
28808
|
+
if (L.dependencies && (xe = getTargetComp(k, ie, L.dependencies), _e = getFormData(xe)), L.previousFormData = { ...L.formData }, L.formData = _e, L.searchBefore && L.searchBefore(L, ae) === !1)
|
|
28809
|
+
return;
|
|
28810
|
+
const Oe = getOwnSearchData(L, xe);
|
|
28811
|
+
L.formData = { ..._e, ...Oe };
|
|
28812
|
+
let Ie = handleParams(L);
|
|
28813
|
+
if (pe) {
|
|
28814
|
+
Ie = { ...Ie };
|
|
28815
|
+
const $e = L.selectedRows.map((Et) => Et[pe.searchKey]);
|
|
28816
|
+
Ie[pe.searchKey] = $e.toString();
|
|
28817
|
+
}
|
|
28818
|
+
let Ne = L.method == "GET" ? "params" : "data";
|
|
28819
|
+
k.commit("setLoading", !0), service({
|
|
28820
|
+
url: k.state._BASE_URL + L.url,
|
|
28821
|
+
[Ne]: Ie || {},
|
|
28822
|
+
method: L.method || "POST"
|
|
28823
|
+
}).then(($e) => {
|
|
28824
|
+
const Et = filterRes($e, L);
|
|
28825
|
+
L.searchAfter && L.searchAfter(Et, $e, L) === !1 || (pe ? L.selectedNodes.forEach((qe) => {
|
|
28826
|
+
for (let Dt = 0; Dt < Et.result.length; Dt++) {
|
|
28827
|
+
const Ue = Et.result[Dt];
|
|
28828
|
+
qe.data[pe.dataKey] == Ue[pe.dataKey] && qe.setData(Ue);
|
|
28829
|
+
}
|
|
28830
|
+
}) : k.commit("updateRowData", { tableComp: L, res: Et }));
|
|
28831
|
+
}).finally(() => {
|
|
28832
|
+
k.commit("setLoading", !1);
|
|
28833
|
+
});
|
|
28834
|
+
},
|
|
28835
|
+
_UPDATE_COMPONENT(k, { pageKey: L, compKey: ie }) {
|
|
28836
|
+
const ae = getTargetComp(k, L, ie);
|
|
28837
|
+
ae.updateKey = new Date().getTime();
|
|
28838
|
+
}
|
|
28839
|
+
}
|
|
28840
|
+
});
|
|
28841
|
+
function initData(k, L, ie) {
|
|
28842
|
+
L.forEach((ae) => {
|
|
28843
|
+
if (ae.children && initData(k, ae.children, ie), ae.type == "Form") {
|
|
28844
|
+
let pe = {};
|
|
28845
|
+
Object.defineProperty(ae, "formData", {
|
|
28846
|
+
enumerable: !0,
|
|
28847
|
+
// 可枚举
|
|
28848
|
+
// configurable: false, // 不允许重新配置
|
|
28849
|
+
configurable: !0,
|
|
28850
|
+
// 允许重新配置
|
|
28851
|
+
get() {
|
|
28852
|
+
return pe;
|
|
28853
|
+
},
|
|
28854
|
+
set(_e) {
|
|
28855
|
+
pe = _e, console.error("[警告] 不建议直接替换formData对象,建议使用修改属性值的方式进行更新"), console.error("不推荐: formData = { ... }"), console.error("推荐: formData.propertyName = value");
|
|
28856
|
+
}
|
|
28857
|
+
}), ae.elementGroup && ae.elementGroup.length ? ae.elementGroup.forEach((_e) => {
|
|
28858
|
+
_e.prop && (pe[_e.prop] = _e.value ?? null);
|
|
28859
|
+
}) : ae.elementGroup = [];
|
|
28860
|
+
}
|
|
28861
|
+
ae.type == "AgTable" && (ae.pageInfo || (ae.pageInfo = { pageNum: 1, currentPage: 1, pageSize: 50 }), ae.initQuery && k.dispatch("_TABLE_QUERY", { pageKey: ie, tableComp: ae }));
|
|
28862
|
+
});
|
|
28863
|
+
}
|
|
28864
|
+
function getOwnSearchData(k, L) {
|
|
28865
|
+
const ie = {};
|
|
28866
|
+
return k.params && Object.keys(k.params).forEach((ae) => {
|
|
28867
|
+
typeof k.params[ae] == "function" ? ie[ae] = k.params[ae](L) : ie[ae] = k.params[ae];
|
|
28868
|
+
}), ie;
|
|
28869
|
+
}
|
|
28870
|
+
function handleParams(k) {
|
|
28871
|
+
var ie;
|
|
28872
|
+
let L = k.formData || {};
|
|
28873
|
+
return ((ie = k.configFlag) == null ? void 0 : ie.pagination) !== !1 && (L = { ...L, ...k.pageInfo }), k.exportDataSearchParams = L, L;
|
|
28874
|
+
}
|
|
28875
|
+
function filterRes(k, L) {
|
|
28876
|
+
var ae, pe;
|
|
28877
|
+
if (!k)
|
|
28878
|
+
return {
|
|
28879
|
+
result: [],
|
|
28880
|
+
totalNum: 0
|
|
28881
|
+
};
|
|
28882
|
+
let ie = {};
|
|
28883
|
+
return ie.result = getDataByProp(k, (ae = L.data) == null ? void 0 : ae.resultKey, 1), ie.totalNum = getDataByProp(k, (pe = L.data) == null ? void 0 : pe.totalKey, 2), ie;
|
|
28884
|
+
}
|
|
28885
|
+
function getDataByProp(k, L, ie) {
|
|
28886
|
+
if (!L)
|
|
28887
|
+
return getDefaultData(k, ie);
|
|
28888
|
+
let ae = k;
|
|
28889
|
+
return L.split(".").forEach((pe) => {
|
|
28890
|
+
ae = ae[pe];
|
|
28891
|
+
}), ae || (ae = getDefaultData(k, ie)), ae;
|
|
28892
|
+
}
|
|
28893
|
+
function getDefaultData(k, L) {
|
|
28894
|
+
return L == 1 ? k.result || k.items || k || [] : k.totalNum || 0;
|
|
28895
|
+
}
|
|
28896
|
+
function errorHandle(k, L, ie) {
|
|
28897
|
+
var pe, _e;
|
|
28898
|
+
let ae = ((pe = k == null ? void 0 : k.data) == null ? void 0 : pe.message) || ((_e = k == null ? void 0 : k.data) == null ? void 0 : _e.msg);
|
|
28899
|
+
ElMessage({
|
|
28900
|
+
type: "error",
|
|
28901
|
+
message: ae,
|
|
28902
|
+
duration: ie || 2e3,
|
|
28903
|
+
onClose: () => {
|
|
28904
|
+
L && L();
|
|
28905
|
+
}
|
|
28906
|
+
});
|
|
28907
|
+
}
|
|
28908
|
+
const headerObj = {};
|
|
28909
|
+
var l_, u_, c_;
|
|
28910
|
+
if (location.host.indexOf("odm") > -1 || location.host.indexOf("suliangtong") > -1) {
|
|
28911
|
+
let k = localStorage.getItem("userInfo");
|
|
28912
|
+
if (k)
|
|
28913
|
+
try {
|
|
28914
|
+
k = JSON.parse(k), headerObj["x-user-slt-mobile"] = k.mobile, headerObj["x-user-slt-login-id"] = (l_ = k.supplierUserVo) == null ? void 0 : l_.userLoginId, headerObj["x-user-slt-user-name"] = (u_ = k.supplierUserVo) != null && u_.userName ? encodeURIComponent((c_ = k.supplierUserVo) == null ? void 0 : c_.userName) : k.mobile;
|
|
28915
|
+
} catch {
|
|
28916
|
+
}
|
|
28917
|
+
}
|
|
28918
|
+
const service = axios.create({
|
|
28919
|
+
timeout: 1e3 * 30,
|
|
28920
|
+
withCredentials: !0,
|
|
28921
|
+
headers: headerObj
|
|
28922
|
+
});
|
|
28923
|
+
service.interceptors.request.use(
|
|
28924
|
+
(k) => {
|
|
28925
|
+
var ie;
|
|
28926
|
+
store.state._ENV.VITE_PROXY_FLAG == "true" && ((ie = store.state._ENV.VITE_PROXY_SERVICE) == null || ie.split(",").forEach((ae) => {
|
|
28927
|
+
var pe;
|
|
28928
|
+
console.log(ae, "item", k.url), (pe = k.url.split(".com/")[1]) != null && pe.startsWith(ae.trim().slice(1)) && (k.url = k.url.replace(/^http.*\.com/, location.origin));
|
|
28929
|
+
}));
|
|
28930
|
+
const L = getRequestHeaders(k.url);
|
|
28931
|
+
return Object.keys(L).forEach((ae) => {
|
|
28932
|
+
k.headers[ae] = L[ae];
|
|
28933
|
+
}), k;
|
|
28934
|
+
},
|
|
28935
|
+
(k) => Promise.reject(k.data)
|
|
28936
|
+
);
|
|
28937
|
+
service.interceptors.response.use(
|
|
28938
|
+
(k) => {
|
|
28939
|
+
if (k.data.code == 1304 || k.data.code === 20007)
|
|
28940
|
+
window.location.href = k.data.data;
|
|
28941
|
+
else {
|
|
28942
|
+
if (k.data.code === 401 || k.data.code === 10001)
|
|
28943
|
+
return errorHandle(k), window.location.href = window.location.origin, Promise.reject(k.data.message);
|
|
28944
|
+
if (k.data.code === 204)
|
|
28945
|
+
return errorHandle(k.data.msg, () => window.location.href = "/"), Promise.reject(k);
|
|
28946
|
+
if (k.data.code !== 0)
|
|
28947
|
+
return errorHandle(k), Promise.reject(k.data);
|
|
28948
|
+
if (Object.prototype.toString.call(k.data.data).toLowerCase() == "[object object]")
|
|
28949
|
+
return k.data.data;
|
|
28950
|
+
if (typeof k.data.data == "string" && k.data.data != "") {
|
|
28951
|
+
let L = {};
|
|
28952
|
+
try {
|
|
28953
|
+
L = JSON.parse(k.data.data);
|
|
28954
|
+
} catch {
|
|
28955
|
+
L = k.data.data;
|
|
28956
|
+
}
|
|
28957
|
+
return L;
|
|
28958
|
+
} else
|
|
28959
|
+
return k.data.data;
|
|
28960
|
+
}
|
|
28961
|
+
},
|
|
28962
|
+
(k) => (errorHandle(k.response), Promise.reject(k))
|
|
28963
|
+
);
|
|
28528
28964
|
const _sfc_main$j = defineComponent({
|
|
28529
28965
|
props: {
|
|
28530
28966
|
option: Object,
|
|
@@ -29187,438 +29623,7 @@ function _sfc_render$g(k, L, ie, ae, pe, _e) {
|
|
|
29187
29623
|
}, 8, ["onClick", "disabled", "size", "type"]))
|
|
29188
29624
|
], 64);
|
|
29189
29625
|
}
|
|
29190
|
-
const Upload = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]])
|
|
29191
|
-
/*! Element Plus v2.2.28 */
|
|
29192
|
-
var zhCn = {
|
|
29193
|
-
name: "zh-cn",
|
|
29194
|
-
el: {
|
|
29195
|
-
colorpicker: {
|
|
29196
|
-
confirm: "确定",
|
|
29197
|
-
clear: "清空"
|
|
29198
|
-
},
|
|
29199
|
-
datepicker: {
|
|
29200
|
-
now: "此刻",
|
|
29201
|
-
today: "今天",
|
|
29202
|
-
cancel: "取消",
|
|
29203
|
-
clear: "清空",
|
|
29204
|
-
confirm: "确定",
|
|
29205
|
-
selectDate: "选择日期",
|
|
29206
|
-
selectTime: "选择时间",
|
|
29207
|
-
startDate: "开始日期",
|
|
29208
|
-
startTime: "开始时间",
|
|
29209
|
-
endDate: "结束日期",
|
|
29210
|
-
endTime: "结束时间",
|
|
29211
|
-
prevYear: "前一年",
|
|
29212
|
-
nextYear: "后一年",
|
|
29213
|
-
prevMonth: "上个月",
|
|
29214
|
-
nextMonth: "下个月",
|
|
29215
|
-
year: "年",
|
|
29216
|
-
month1: "1 月",
|
|
29217
|
-
month2: "2 月",
|
|
29218
|
-
month3: "3 月",
|
|
29219
|
-
month4: "4 月",
|
|
29220
|
-
month5: "5 月",
|
|
29221
|
-
month6: "6 月",
|
|
29222
|
-
month7: "7 月",
|
|
29223
|
-
month8: "8 月",
|
|
29224
|
-
month9: "9 月",
|
|
29225
|
-
month10: "10 月",
|
|
29226
|
-
month11: "11 月",
|
|
29227
|
-
month12: "12 月",
|
|
29228
|
-
weeks: {
|
|
29229
|
-
sun: "日",
|
|
29230
|
-
mon: "一",
|
|
29231
|
-
tue: "二",
|
|
29232
|
-
wed: "三",
|
|
29233
|
-
thu: "四",
|
|
29234
|
-
fri: "五",
|
|
29235
|
-
sat: "六"
|
|
29236
|
-
},
|
|
29237
|
-
months: {
|
|
29238
|
-
jan: "一月",
|
|
29239
|
-
feb: "二月",
|
|
29240
|
-
mar: "三月",
|
|
29241
|
-
apr: "四月",
|
|
29242
|
-
may: "五月",
|
|
29243
|
-
jun: "六月",
|
|
29244
|
-
jul: "七月",
|
|
29245
|
-
aug: "八月",
|
|
29246
|
-
sep: "九月",
|
|
29247
|
-
oct: "十月",
|
|
29248
|
-
nov: "十一月",
|
|
29249
|
-
dec: "十二月"
|
|
29250
|
-
}
|
|
29251
|
-
},
|
|
29252
|
-
select: {
|
|
29253
|
-
loading: "加载中",
|
|
29254
|
-
noMatch: "无匹配数据",
|
|
29255
|
-
noData: "无数据",
|
|
29256
|
-
placeholder: "请选择"
|
|
29257
|
-
},
|
|
29258
|
-
cascader: {
|
|
29259
|
-
noMatch: "无匹配数据",
|
|
29260
|
-
loading: "加载中",
|
|
29261
|
-
placeholder: "请选择",
|
|
29262
|
-
noData: "暂无数据"
|
|
29263
|
-
},
|
|
29264
|
-
pagination: {
|
|
29265
|
-
goto: "前往",
|
|
29266
|
-
pagesize: "条/页",
|
|
29267
|
-
total: "共 {total} 条",
|
|
29268
|
-
pageClassifier: "页",
|
|
29269
|
-
deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
|
|
29270
|
-
},
|
|
29271
|
-
messagebox: {
|
|
29272
|
-
title: "提示",
|
|
29273
|
-
confirm: "确定",
|
|
29274
|
-
cancel: "取消",
|
|
29275
|
-
error: "输入的数据不合法!"
|
|
29276
|
-
},
|
|
29277
|
-
upload: {
|
|
29278
|
-
deleteTip: "按 delete 键可删除",
|
|
29279
|
-
delete: "删除",
|
|
29280
|
-
preview: "查看图片",
|
|
29281
|
-
continue: "继续上传"
|
|
29282
|
-
},
|
|
29283
|
-
table: {
|
|
29284
|
-
emptyText: "暂无数据",
|
|
29285
|
-
confirmFilter: "筛选",
|
|
29286
|
-
resetFilter: "重置",
|
|
29287
|
-
clearFilter: "全部",
|
|
29288
|
-
sumText: "合计"
|
|
29289
|
-
},
|
|
29290
|
-
tree: {
|
|
29291
|
-
emptyText: "暂无数据"
|
|
29292
|
-
},
|
|
29293
|
-
transfer: {
|
|
29294
|
-
noMatch: "无匹配数据",
|
|
29295
|
-
noData: "无数据",
|
|
29296
|
-
titles: ["列表 1", "列表 2"],
|
|
29297
|
-
filterPlaceholder: "请输入搜索内容",
|
|
29298
|
-
noCheckedFormat: "共 {total} 项",
|
|
29299
|
-
hasCheckedFormat: "已选 {checked}/{total} 项"
|
|
29300
|
-
},
|
|
29301
|
-
image: {
|
|
29302
|
-
error: "加载失败"
|
|
29303
|
-
},
|
|
29304
|
-
pageHeader: {
|
|
29305
|
-
title: "返回"
|
|
29306
|
-
},
|
|
29307
|
-
popconfirm: {
|
|
29308
|
-
confirmButtonText: "确定",
|
|
29309
|
-
cancelButtonText: "取消"
|
|
29310
|
-
}
|
|
29311
|
-
}
|
|
29312
|
-
};
|
|
29313
|
-
/*! Element Plus v2.2.28 */
|
|
29314
|
-
var en = {
|
|
29315
|
-
name: "en",
|
|
29316
|
-
el: {
|
|
29317
|
-
colorpicker: {
|
|
29318
|
-
confirm: "OK",
|
|
29319
|
-
clear: "Clear",
|
|
29320
|
-
defaultLabel: "color picker",
|
|
29321
|
-
description: "current color is {color}. press enter to select a new color."
|
|
29322
|
-
},
|
|
29323
|
-
datepicker: {
|
|
29324
|
-
now: "Now",
|
|
29325
|
-
today: "Today",
|
|
29326
|
-
cancel: "Cancel",
|
|
29327
|
-
clear: "Clear",
|
|
29328
|
-
confirm: "OK",
|
|
29329
|
-
dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
|
|
29330
|
-
monthTablePrompt: "Use the arrow keys and enter to select the month",
|
|
29331
|
-
yearTablePrompt: "Use the arrow keys and enter to select the year",
|
|
29332
|
-
selectedDate: "Selected date",
|
|
29333
|
-
selectDate: "Select date",
|
|
29334
|
-
selectTime: "Select time",
|
|
29335
|
-
startDate: "Start Date",
|
|
29336
|
-
startTime: "Start Time",
|
|
29337
|
-
endDate: "End Date",
|
|
29338
|
-
endTime: "End Time",
|
|
29339
|
-
prevYear: "Previous Year",
|
|
29340
|
-
nextYear: "Next Year",
|
|
29341
|
-
prevMonth: "Previous Month",
|
|
29342
|
-
nextMonth: "Next Month",
|
|
29343
|
-
year: "",
|
|
29344
|
-
month1: "January",
|
|
29345
|
-
month2: "February",
|
|
29346
|
-
month3: "March",
|
|
29347
|
-
month4: "April",
|
|
29348
|
-
month5: "May",
|
|
29349
|
-
month6: "June",
|
|
29350
|
-
month7: "July",
|
|
29351
|
-
month8: "August",
|
|
29352
|
-
month9: "September",
|
|
29353
|
-
month10: "October",
|
|
29354
|
-
month11: "November",
|
|
29355
|
-
month12: "December",
|
|
29356
|
-
week: "week",
|
|
29357
|
-
weeks: {
|
|
29358
|
-
sun: "Sun",
|
|
29359
|
-
mon: "Mon",
|
|
29360
|
-
tue: "Tue",
|
|
29361
|
-
wed: "Wed",
|
|
29362
|
-
thu: "Thu",
|
|
29363
|
-
fri: "Fri",
|
|
29364
|
-
sat: "Sat"
|
|
29365
|
-
},
|
|
29366
|
-
weeksFull: {
|
|
29367
|
-
sun: "Sunday",
|
|
29368
|
-
mon: "Monday",
|
|
29369
|
-
tue: "Tuesday",
|
|
29370
|
-
wed: "Wednesday",
|
|
29371
|
-
thu: "Thursday",
|
|
29372
|
-
fri: "Friday",
|
|
29373
|
-
sat: "Saturday"
|
|
29374
|
-
},
|
|
29375
|
-
months: {
|
|
29376
|
-
jan: "Jan",
|
|
29377
|
-
feb: "Feb",
|
|
29378
|
-
mar: "Mar",
|
|
29379
|
-
apr: "Apr",
|
|
29380
|
-
may: "May",
|
|
29381
|
-
jun: "Jun",
|
|
29382
|
-
jul: "Jul",
|
|
29383
|
-
aug: "Aug",
|
|
29384
|
-
sep: "Sep",
|
|
29385
|
-
oct: "Oct",
|
|
29386
|
-
nov: "Nov",
|
|
29387
|
-
dec: "Dec"
|
|
29388
|
-
}
|
|
29389
|
-
},
|
|
29390
|
-
inputNumber: {
|
|
29391
|
-
decrease: "decrease number",
|
|
29392
|
-
increase: "increase number"
|
|
29393
|
-
},
|
|
29394
|
-
select: {
|
|
29395
|
-
loading: "Loading",
|
|
29396
|
-
noMatch: "No matching data",
|
|
29397
|
-
noData: "No data",
|
|
29398
|
-
placeholder: "Select"
|
|
29399
|
-
},
|
|
29400
|
-
dropdown: {
|
|
29401
|
-
toggleDropdown: "Toggle Dropdown"
|
|
29402
|
-
},
|
|
29403
|
-
cascader: {
|
|
29404
|
-
noMatch: "No matching data",
|
|
29405
|
-
loading: "Loading",
|
|
29406
|
-
placeholder: "Select",
|
|
29407
|
-
noData: "No data"
|
|
29408
|
-
},
|
|
29409
|
-
pagination: {
|
|
29410
|
-
goto: "Go to",
|
|
29411
|
-
pagesize: "/page",
|
|
29412
|
-
total: "Total {total}",
|
|
29413
|
-
pageClassifier: "",
|
|
29414
|
-
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
|
|
29415
|
-
},
|
|
29416
|
-
dialog: {
|
|
29417
|
-
close: "Close this dialog"
|
|
29418
|
-
},
|
|
29419
|
-
drawer: {
|
|
29420
|
-
close: "Close this dialog"
|
|
29421
|
-
},
|
|
29422
|
-
messagebox: {
|
|
29423
|
-
title: "Message",
|
|
29424
|
-
confirm: "OK",
|
|
29425
|
-
cancel: "Cancel",
|
|
29426
|
-
error: "Illegal input",
|
|
29427
|
-
close: "Close this dialog"
|
|
29428
|
-
},
|
|
29429
|
-
upload: {
|
|
29430
|
-
deleteTip: "press delete to remove",
|
|
29431
|
-
delete: "Delete",
|
|
29432
|
-
preview: "Preview",
|
|
29433
|
-
continue: "Continue"
|
|
29434
|
-
},
|
|
29435
|
-
slider: {
|
|
29436
|
-
defaultLabel: "slider between {min} and {max}",
|
|
29437
|
-
defaultRangeStartLabel: "pick start value",
|
|
29438
|
-
defaultRangeEndLabel: "pick end value"
|
|
29439
|
-
},
|
|
29440
|
-
table: {
|
|
29441
|
-
emptyText: "No Data",
|
|
29442
|
-
confirmFilter: "Confirm",
|
|
29443
|
-
resetFilter: "Reset",
|
|
29444
|
-
clearFilter: "All",
|
|
29445
|
-
sumText: "Sum"
|
|
29446
|
-
},
|
|
29447
|
-
tree: {
|
|
29448
|
-
emptyText: "No Data"
|
|
29449
|
-
},
|
|
29450
|
-
transfer: {
|
|
29451
|
-
noMatch: "No matching data",
|
|
29452
|
-
noData: "No data",
|
|
29453
|
-
titles: ["List 1", "List 2"],
|
|
29454
|
-
filterPlaceholder: "Enter keyword",
|
|
29455
|
-
noCheckedFormat: "{total} items",
|
|
29456
|
-
hasCheckedFormat: "{checked}/{total} checked"
|
|
29457
|
-
},
|
|
29458
|
-
image: {
|
|
29459
|
-
error: "FAILED"
|
|
29460
|
-
},
|
|
29461
|
-
pageHeader: {
|
|
29462
|
-
title: "Back"
|
|
29463
|
-
},
|
|
29464
|
-
popconfirm: {
|
|
29465
|
-
confirmButtonText: "Yes",
|
|
29466
|
-
cancelButtonText: "No"
|
|
29467
|
-
}
|
|
29468
|
-
}
|
|
29469
|
-
};
|
|
29470
|
-
const store = createStore({
|
|
29471
|
-
// plugins: [createPersistedState()],
|
|
29472
|
-
state: {
|
|
29473
|
-
// 页面配置数据
|
|
29474
|
-
_CONFIG_DATA: {},
|
|
29475
|
-
_BASE_URL: "https://gateway-c4.doublefs.com",
|
|
29476
|
-
loading: !1,
|
|
29477
|
-
locale: zhCn
|
|
29478
|
-
},
|
|
29479
|
-
getters: {
|
|
29480
|
-
// 获取页面配置数据
|
|
29481
|
-
_GET_CONFIG_DATA(k) {
|
|
29482
|
-
return function(L) {
|
|
29483
|
-
return k._CONFIG_DATA[L].components;
|
|
29484
|
-
};
|
|
29485
|
-
},
|
|
29486
|
-
_GET_DIALOGREF(k) {
|
|
29487
|
-
return function(L) {
|
|
29488
|
-
return k._CONFIG_DATA[L].dialogRef;
|
|
29489
|
-
};
|
|
29490
|
-
}
|
|
29491
|
-
},
|
|
29492
|
-
mutations: {
|
|
29493
|
-
// 显示/隐藏loading
|
|
29494
|
-
setLoading(k, L = !1) {
|
|
29495
|
-
k.loading = L;
|
|
29496
|
-
},
|
|
29497
|
-
saveUrl(k, L) {
|
|
29498
|
-
k._BASE_URL = L;
|
|
29499
|
-
},
|
|
29500
|
-
saveLocale(k, L) {
|
|
29501
|
-
L === "en" ? (k.locale = en, localStorage.setItem("my_locale_comp", "en")) : (k.locale = zhCn, localStorage.setItem("my_locale_comp", "zh"));
|
|
29502
|
-
},
|
|
29503
|
-
// 储存页面配置数据
|
|
29504
|
-
savaPageConfigData(k, L) {
|
|
29505
|
-
k._CONFIG_DATA[L.pageKey] = {
|
|
29506
|
-
components: L.components,
|
|
29507
|
-
cellComponents: {},
|
|
29508
|
-
dialogRef: L.dialogRef
|
|
29509
|
-
};
|
|
29510
|
-
},
|
|
29511
|
-
// 储存table数据
|
|
29512
|
-
updateRowData(k, L) {
|
|
29513
|
-
if (!Array.isArray(L.res.result))
|
|
29514
|
-
return ElMessage.warning("tableData必须为数组对象");
|
|
29515
|
-
L.tableComp.data = L.tableComp.data || {}, L.tableComp.data.result = L.res.result, L.tableComp.data.totalNum = L.res.totalNum, L.tableComp.selectedRows = [];
|
|
29516
|
-
}
|
|
29517
|
-
},
|
|
29518
|
-
actions: {
|
|
29519
|
-
// 初始化入口
|
|
29520
|
-
_INIT_PAGE(k, L) {
|
|
29521
|
-
k.commit("savaPageConfigData", L), initData(k, L.components, L.pageKey);
|
|
29522
|
-
},
|
|
29523
|
-
// 查询
|
|
29524
|
-
_QUERY_LIST(k, { pageKey: L, target: ie, row: ae, partialUpdate: pe }) {
|
|
29525
|
-
const _e = getTargetComp(k, L, ie);
|
|
29526
|
-
_e.pageInfo.pageNum = 1, _e.pageInfo.currentPage = 1, _e.resetPagination = Math.random(), pe ? setTimeout(() => {
|
|
29527
|
-
k.dispatch("_TABLE_QUERY", { tableComp: _e, pageKey: L, row: ae, partialUpdate: pe });
|
|
29528
|
-
}, 1e3) : k.dispatch("_TABLE_QUERY", { tableComp: _e, pageKey: L, row: ae, partialUpdate: pe });
|
|
29529
|
-
},
|
|
29530
|
-
// 查询列表查询
|
|
29531
|
-
_TABLE_QUERY(k, { tableComp: L, pageKey: ie, row: ae, partialUpdate: pe }) {
|
|
29532
|
-
let _e = {}, xe = {};
|
|
29533
|
-
if (L.dependencies && (xe = getTargetComp(k, ie, L.dependencies), _e = getFormData(xe)), L.previousFormData = { ...L.formData }, L.formData = _e, L.searchBefore && L.searchBefore(L, ae) === !1)
|
|
29534
|
-
return;
|
|
29535
|
-
const Oe = getOwnSearchData(L, xe);
|
|
29536
|
-
L.formData = { ..._e, ...Oe };
|
|
29537
|
-
let Ie = handleParams(L);
|
|
29538
|
-
if (pe) {
|
|
29539
|
-
Ie = { ...Ie };
|
|
29540
|
-
const $e = L.selectedRows.map((Et) => Et[pe.searchKey]);
|
|
29541
|
-
Ie[pe.searchKey] = $e.toString();
|
|
29542
|
-
}
|
|
29543
|
-
let Ne = L.method == "GET" ? "params" : "data";
|
|
29544
|
-
k.commit("setLoading", !0), service({
|
|
29545
|
-
url: k.state._BASE_URL + L.url,
|
|
29546
|
-
[Ne]: Ie || {},
|
|
29547
|
-
method: L.method || "POST"
|
|
29548
|
-
}).then(($e) => {
|
|
29549
|
-
const Et = filterRes($e, L);
|
|
29550
|
-
L.searchAfter && L.searchAfter(Et, $e, L) === !1 || (pe ? L.selectedNodes.forEach((qe) => {
|
|
29551
|
-
for (let Dt = 0; Dt < Et.result.length; Dt++) {
|
|
29552
|
-
const Ue = Et.result[Dt];
|
|
29553
|
-
qe.data[pe.dataKey] == Ue[pe.dataKey] && qe.setData(Ue);
|
|
29554
|
-
}
|
|
29555
|
-
}) : k.commit("updateRowData", { tableComp: L, res: Et }));
|
|
29556
|
-
}).finally(() => {
|
|
29557
|
-
k.commit("setLoading", !1);
|
|
29558
|
-
});
|
|
29559
|
-
},
|
|
29560
|
-
_UPDATE_COMPONENT(k, { pageKey: L, compKey: ie }) {
|
|
29561
|
-
const ae = getTargetComp(k, L, ie);
|
|
29562
|
-
ae.updateKey = new Date().getTime();
|
|
29563
|
-
}
|
|
29564
|
-
}
|
|
29565
|
-
});
|
|
29566
|
-
function initData(k, L, ie) {
|
|
29567
|
-
L.forEach((ae) => {
|
|
29568
|
-
if (ae.children && initData(k, ae.children, ie), ae.type == "Form") {
|
|
29569
|
-
let pe = {};
|
|
29570
|
-
Object.defineProperty(ae, "formData", {
|
|
29571
|
-
enumerable: !0,
|
|
29572
|
-
// 可枚举
|
|
29573
|
-
// configurable: false, // 不允许重新配置
|
|
29574
|
-
configurable: !0,
|
|
29575
|
-
// 允许重新配置
|
|
29576
|
-
get() {
|
|
29577
|
-
return pe;
|
|
29578
|
-
},
|
|
29579
|
-
set(_e) {
|
|
29580
|
-
pe = _e, console.error("[警告] 不建议直接替换formData对象,建议使用修改属性值的方式进行更新"), console.error("不推荐: formData = { ... }"), console.error("推荐: formData.propertyName = value");
|
|
29581
|
-
}
|
|
29582
|
-
}), ae.elementGroup && ae.elementGroup.length ? ae.elementGroup.forEach((_e) => {
|
|
29583
|
-
_e.prop && (pe[_e.prop] = _e.value ?? null);
|
|
29584
|
-
}) : ae.elementGroup = [];
|
|
29585
|
-
}
|
|
29586
|
-
ae.type == "AgTable" && (ae.pageInfo || (ae.pageInfo = { pageNum: 1, currentPage: 1, pageSize: 50 }), ae.initQuery && k.dispatch("_TABLE_QUERY", { pageKey: ie, tableComp: ae }));
|
|
29587
|
-
});
|
|
29588
|
-
}
|
|
29589
|
-
function getOwnSearchData(k, L) {
|
|
29590
|
-
const ie = {};
|
|
29591
|
-
return k.params && Object.keys(k.params).forEach((ae) => {
|
|
29592
|
-
typeof k.params[ae] == "function" ? ie[ae] = k.params[ae](L) : ie[ae] = k.params[ae];
|
|
29593
|
-
}), ie;
|
|
29594
|
-
}
|
|
29595
|
-
function handleParams(k) {
|
|
29596
|
-
var ie;
|
|
29597
|
-
let L = k.formData || {};
|
|
29598
|
-
return ((ie = k.configFlag) == null ? void 0 : ie.pagination) !== !1 && (L = { ...L, ...k.pageInfo }), k.exportDataSearchParams = L, L;
|
|
29599
|
-
}
|
|
29600
|
-
function filterRes(k, L) {
|
|
29601
|
-
var ae, pe;
|
|
29602
|
-
if (!k)
|
|
29603
|
-
return {
|
|
29604
|
-
result: [],
|
|
29605
|
-
totalNum: 0
|
|
29606
|
-
};
|
|
29607
|
-
let ie = {};
|
|
29608
|
-
return ie.result = getDataByProp(k, (ae = L.data) == null ? void 0 : ae.resultKey, 1), ie.totalNum = getDataByProp(k, (pe = L.data) == null ? void 0 : pe.totalKey, 2), ie;
|
|
29609
|
-
}
|
|
29610
|
-
function getDataByProp(k, L, ie) {
|
|
29611
|
-
if (!L)
|
|
29612
|
-
return getDefaultData(k, ie);
|
|
29613
|
-
let ae = k;
|
|
29614
|
-
return L.split(".").forEach((pe) => {
|
|
29615
|
-
ae = ae[pe];
|
|
29616
|
-
}), ae || (ae = getDefaultData(k, ie)), ae;
|
|
29617
|
-
}
|
|
29618
|
-
function getDefaultData(k, L) {
|
|
29619
|
-
return L == 1 ? k.result || k.items || k || [] : k.totalNum || 0;
|
|
29620
|
-
}
|
|
29621
|
-
const _sfc_main$g = defineComponent({
|
|
29626
|
+
const Upload = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]]), _sfc_main$g = defineComponent({
|
|
29622
29627
|
name: "ButtonGroup",
|
|
29623
29628
|
components: { Upload },
|
|
29624
29629
|
props: {
|
|
@@ -105525,7 +105530,7 @@ const index = (k, L) => {
|
|
|
105525
105530
|
Object.keys(store[ae]).forEach((pe) => {
|
|
105526
105531
|
L.store[ae][pe] = store[ae][pe];
|
|
105527
105532
|
});
|
|
105528
|
-
}), store.commit("saveUrl", L.baseUrl), store.commit("saveLocale", L.locale), L.store.state._CONFIG_DATA = store.state._CONFIG_DATA, L.store.state._BASE_URL = L.baseUrl, store._mutations.setLoading = L.store._mutations.setLoading, install(k), k.component("DfsPageConfig", Page);
|
|
105533
|
+
}), store.commit("saveUrl", L.baseUrl), store.commit("saveLocale", L.locale), L.store.state._CONFIG_DATA = store.state._CONFIG_DATA, L.store.state._BASE_URL = L.baseUrl, L.store.state._ENV = L.env || {}, store._mutations.setLoading = L.store._mutations.setLoading, install(k), k.component("DfsPageConfig", Page);
|
|
105529
105534
|
const ie = () => ({
|
|
105530
105535
|
t: (ae) => ae
|
|
105531
105536
|
});
|