dfs-page-config 0.4.61 → 0.4.63
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 +675 -664
- package/dist/dfs-page-config.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dfs-page-config.js
CHANGED
|
@@ -28052,7 +28052,587 @@ axiosExports.default = axios$1;
|
|
|
28052
28052
|
(function(k) {
|
|
28053
28053
|
k.exports = axiosExports;
|
|
28054
28054
|
})(axios$3);
|
|
28055
|
-
const axios = /* @__PURE__ */ getDefaultExportFromCjs(axiosExports$1),
|
|
28055
|
+
const axios = /* @__PURE__ */ getDefaultExportFromCjs(axiosExports$1), elBadge = "", elMessage = "";
|
|
28056
|
+
/*! Element Plus v2.2.28 */
|
|
28057
|
+
var zhCn = {
|
|
28058
|
+
name: "zh-cn",
|
|
28059
|
+
el: {
|
|
28060
|
+
colorpicker: {
|
|
28061
|
+
confirm: "确定",
|
|
28062
|
+
clear: "清空"
|
|
28063
|
+
},
|
|
28064
|
+
datepicker: {
|
|
28065
|
+
now: "此刻",
|
|
28066
|
+
today: "今天",
|
|
28067
|
+
cancel: "取消",
|
|
28068
|
+
clear: "清空",
|
|
28069
|
+
confirm: "确定",
|
|
28070
|
+
selectDate: "选择日期",
|
|
28071
|
+
selectTime: "选择时间",
|
|
28072
|
+
startDate: "开始日期",
|
|
28073
|
+
startTime: "开始时间",
|
|
28074
|
+
endDate: "结束日期",
|
|
28075
|
+
endTime: "结束时间",
|
|
28076
|
+
prevYear: "前一年",
|
|
28077
|
+
nextYear: "后一年",
|
|
28078
|
+
prevMonth: "上个月",
|
|
28079
|
+
nextMonth: "下个月",
|
|
28080
|
+
year: "年",
|
|
28081
|
+
month1: "1 月",
|
|
28082
|
+
month2: "2 月",
|
|
28083
|
+
month3: "3 月",
|
|
28084
|
+
month4: "4 月",
|
|
28085
|
+
month5: "5 月",
|
|
28086
|
+
month6: "6 月",
|
|
28087
|
+
month7: "7 月",
|
|
28088
|
+
month8: "8 月",
|
|
28089
|
+
month9: "9 月",
|
|
28090
|
+
month10: "10 月",
|
|
28091
|
+
month11: "11 月",
|
|
28092
|
+
month12: "12 月",
|
|
28093
|
+
weeks: {
|
|
28094
|
+
sun: "日",
|
|
28095
|
+
mon: "一",
|
|
28096
|
+
tue: "二",
|
|
28097
|
+
wed: "三",
|
|
28098
|
+
thu: "四",
|
|
28099
|
+
fri: "五",
|
|
28100
|
+
sat: "六"
|
|
28101
|
+
},
|
|
28102
|
+
months: {
|
|
28103
|
+
jan: "一月",
|
|
28104
|
+
feb: "二月",
|
|
28105
|
+
mar: "三月",
|
|
28106
|
+
apr: "四月",
|
|
28107
|
+
may: "五月",
|
|
28108
|
+
jun: "六月",
|
|
28109
|
+
jul: "七月",
|
|
28110
|
+
aug: "八月",
|
|
28111
|
+
sep: "九月",
|
|
28112
|
+
oct: "十月",
|
|
28113
|
+
nov: "十一月",
|
|
28114
|
+
dec: "十二月"
|
|
28115
|
+
}
|
|
28116
|
+
},
|
|
28117
|
+
select: {
|
|
28118
|
+
loading: "加载中",
|
|
28119
|
+
noMatch: "无匹配数据",
|
|
28120
|
+
noData: "无数据",
|
|
28121
|
+
placeholder: "请选择"
|
|
28122
|
+
},
|
|
28123
|
+
cascader: {
|
|
28124
|
+
noMatch: "无匹配数据",
|
|
28125
|
+
loading: "加载中",
|
|
28126
|
+
placeholder: "请选择",
|
|
28127
|
+
noData: "暂无数据"
|
|
28128
|
+
},
|
|
28129
|
+
pagination: {
|
|
28130
|
+
goto: "前往",
|
|
28131
|
+
pagesize: "条/页",
|
|
28132
|
+
total: "共 {total} 条",
|
|
28133
|
+
pageClassifier: "页",
|
|
28134
|
+
deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
|
|
28135
|
+
},
|
|
28136
|
+
messagebox: {
|
|
28137
|
+
title: "提示",
|
|
28138
|
+
confirm: "确定",
|
|
28139
|
+
cancel: "取消",
|
|
28140
|
+
error: "输入的数据不合法!"
|
|
28141
|
+
},
|
|
28142
|
+
upload: {
|
|
28143
|
+
deleteTip: "按 delete 键可删除",
|
|
28144
|
+
delete: "删除",
|
|
28145
|
+
preview: "查看图片",
|
|
28146
|
+
continue: "继续上传"
|
|
28147
|
+
},
|
|
28148
|
+
table: {
|
|
28149
|
+
emptyText: "暂无数据",
|
|
28150
|
+
confirmFilter: "筛选",
|
|
28151
|
+
resetFilter: "重置",
|
|
28152
|
+
clearFilter: "全部",
|
|
28153
|
+
sumText: "合计"
|
|
28154
|
+
},
|
|
28155
|
+
tree: {
|
|
28156
|
+
emptyText: "暂无数据"
|
|
28157
|
+
},
|
|
28158
|
+
transfer: {
|
|
28159
|
+
noMatch: "无匹配数据",
|
|
28160
|
+
noData: "无数据",
|
|
28161
|
+
titles: ["列表 1", "列表 2"],
|
|
28162
|
+
filterPlaceholder: "请输入搜索内容",
|
|
28163
|
+
noCheckedFormat: "共 {total} 项",
|
|
28164
|
+
hasCheckedFormat: "已选 {checked}/{total} 项"
|
|
28165
|
+
},
|
|
28166
|
+
image: {
|
|
28167
|
+
error: "加载失败"
|
|
28168
|
+
},
|
|
28169
|
+
pageHeader: {
|
|
28170
|
+
title: "返回"
|
|
28171
|
+
},
|
|
28172
|
+
popconfirm: {
|
|
28173
|
+
confirmButtonText: "确定",
|
|
28174
|
+
cancelButtonText: "取消"
|
|
28175
|
+
}
|
|
28176
|
+
}
|
|
28177
|
+
};
|
|
28178
|
+
/*! Element Plus v2.2.28 */
|
|
28179
|
+
var en = {
|
|
28180
|
+
name: "en",
|
|
28181
|
+
el: {
|
|
28182
|
+
colorpicker: {
|
|
28183
|
+
confirm: "OK",
|
|
28184
|
+
clear: "Clear",
|
|
28185
|
+
defaultLabel: "color picker",
|
|
28186
|
+
description: "current color is {color}. press enter to select a new color."
|
|
28187
|
+
},
|
|
28188
|
+
datepicker: {
|
|
28189
|
+
now: "Now",
|
|
28190
|
+
today: "Today",
|
|
28191
|
+
cancel: "Cancel",
|
|
28192
|
+
clear: "Clear",
|
|
28193
|
+
confirm: "OK",
|
|
28194
|
+
dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
|
|
28195
|
+
monthTablePrompt: "Use the arrow keys and enter to select the month",
|
|
28196
|
+
yearTablePrompt: "Use the arrow keys and enter to select the year",
|
|
28197
|
+
selectedDate: "Selected date",
|
|
28198
|
+
selectDate: "Select date",
|
|
28199
|
+
selectTime: "Select time",
|
|
28200
|
+
startDate: "Start Date",
|
|
28201
|
+
startTime: "Start Time",
|
|
28202
|
+
endDate: "End Date",
|
|
28203
|
+
endTime: "End Time",
|
|
28204
|
+
prevYear: "Previous Year",
|
|
28205
|
+
nextYear: "Next Year",
|
|
28206
|
+
prevMonth: "Previous Month",
|
|
28207
|
+
nextMonth: "Next Month",
|
|
28208
|
+
year: "",
|
|
28209
|
+
month1: "January",
|
|
28210
|
+
month2: "February",
|
|
28211
|
+
month3: "March",
|
|
28212
|
+
month4: "April",
|
|
28213
|
+
month5: "May",
|
|
28214
|
+
month6: "June",
|
|
28215
|
+
month7: "July",
|
|
28216
|
+
month8: "August",
|
|
28217
|
+
month9: "September",
|
|
28218
|
+
month10: "October",
|
|
28219
|
+
month11: "November",
|
|
28220
|
+
month12: "December",
|
|
28221
|
+
week: "week",
|
|
28222
|
+
weeks: {
|
|
28223
|
+
sun: "Sun",
|
|
28224
|
+
mon: "Mon",
|
|
28225
|
+
tue: "Tue",
|
|
28226
|
+
wed: "Wed",
|
|
28227
|
+
thu: "Thu",
|
|
28228
|
+
fri: "Fri",
|
|
28229
|
+
sat: "Sat"
|
|
28230
|
+
},
|
|
28231
|
+
weeksFull: {
|
|
28232
|
+
sun: "Sunday",
|
|
28233
|
+
mon: "Monday",
|
|
28234
|
+
tue: "Tuesday",
|
|
28235
|
+
wed: "Wednesday",
|
|
28236
|
+
thu: "Thursday",
|
|
28237
|
+
fri: "Friday",
|
|
28238
|
+
sat: "Saturday"
|
|
28239
|
+
},
|
|
28240
|
+
months: {
|
|
28241
|
+
jan: "Jan",
|
|
28242
|
+
feb: "Feb",
|
|
28243
|
+
mar: "Mar",
|
|
28244
|
+
apr: "Apr",
|
|
28245
|
+
may: "May",
|
|
28246
|
+
jun: "Jun",
|
|
28247
|
+
jul: "Jul",
|
|
28248
|
+
aug: "Aug",
|
|
28249
|
+
sep: "Sep",
|
|
28250
|
+
oct: "Oct",
|
|
28251
|
+
nov: "Nov",
|
|
28252
|
+
dec: "Dec"
|
|
28253
|
+
}
|
|
28254
|
+
},
|
|
28255
|
+
inputNumber: {
|
|
28256
|
+
decrease: "decrease number",
|
|
28257
|
+
increase: "increase number"
|
|
28258
|
+
},
|
|
28259
|
+
select: {
|
|
28260
|
+
loading: "Loading",
|
|
28261
|
+
noMatch: "No matching data",
|
|
28262
|
+
noData: "No data",
|
|
28263
|
+
placeholder: "Select"
|
|
28264
|
+
},
|
|
28265
|
+
dropdown: {
|
|
28266
|
+
toggleDropdown: "Toggle Dropdown"
|
|
28267
|
+
},
|
|
28268
|
+
cascader: {
|
|
28269
|
+
noMatch: "No matching data",
|
|
28270
|
+
loading: "Loading",
|
|
28271
|
+
placeholder: "Select",
|
|
28272
|
+
noData: "No data"
|
|
28273
|
+
},
|
|
28274
|
+
pagination: {
|
|
28275
|
+
goto: "Go to",
|
|
28276
|
+
pagesize: "/page",
|
|
28277
|
+
total: "Total {total}",
|
|
28278
|
+
pageClassifier: "",
|
|
28279
|
+
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
|
|
28280
|
+
},
|
|
28281
|
+
dialog: {
|
|
28282
|
+
close: "Close this dialog"
|
|
28283
|
+
},
|
|
28284
|
+
drawer: {
|
|
28285
|
+
close: "Close this dialog"
|
|
28286
|
+
},
|
|
28287
|
+
messagebox: {
|
|
28288
|
+
title: "Message",
|
|
28289
|
+
confirm: "OK",
|
|
28290
|
+
cancel: "Cancel",
|
|
28291
|
+
error: "Illegal input",
|
|
28292
|
+
close: "Close this dialog"
|
|
28293
|
+
},
|
|
28294
|
+
upload: {
|
|
28295
|
+
deleteTip: "press delete to remove",
|
|
28296
|
+
delete: "Delete",
|
|
28297
|
+
preview: "Preview",
|
|
28298
|
+
continue: "Continue"
|
|
28299
|
+
},
|
|
28300
|
+
slider: {
|
|
28301
|
+
defaultLabel: "slider between {min} and {max}",
|
|
28302
|
+
defaultRangeStartLabel: "pick start value",
|
|
28303
|
+
defaultRangeEndLabel: "pick end value"
|
|
28304
|
+
},
|
|
28305
|
+
table: {
|
|
28306
|
+
emptyText: "No Data",
|
|
28307
|
+
confirmFilter: "Confirm",
|
|
28308
|
+
resetFilter: "Reset",
|
|
28309
|
+
clearFilter: "All",
|
|
28310
|
+
sumText: "Sum"
|
|
28311
|
+
},
|
|
28312
|
+
tree: {
|
|
28313
|
+
emptyText: "No Data"
|
|
28314
|
+
},
|
|
28315
|
+
transfer: {
|
|
28316
|
+
noMatch: "No matching data",
|
|
28317
|
+
noData: "No data",
|
|
28318
|
+
titles: ["List 1", "List 2"],
|
|
28319
|
+
filterPlaceholder: "Enter keyword",
|
|
28320
|
+
noCheckedFormat: "{total} items",
|
|
28321
|
+
hasCheckedFormat: "{checked}/{total} checked"
|
|
28322
|
+
},
|
|
28323
|
+
image: {
|
|
28324
|
+
error: "FAILED"
|
|
28325
|
+
},
|
|
28326
|
+
pageHeader: {
|
|
28327
|
+
title: "Back"
|
|
28328
|
+
},
|
|
28329
|
+
popconfirm: {
|
|
28330
|
+
confirmButtonText: "Yes",
|
|
28331
|
+
cancelButtonText: "No"
|
|
28332
|
+
}
|
|
28333
|
+
}
|
|
28334
|
+
};
|
|
28335
|
+
function errorHandle(k, L, ie) {
|
|
28336
|
+
var pe, _e;
|
|
28337
|
+
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);
|
|
28338
|
+
ElMessage({
|
|
28339
|
+
type: "error",
|
|
28340
|
+
message: ae,
|
|
28341
|
+
duration: ie || 2e3,
|
|
28342
|
+
onClose: () => {
|
|
28343
|
+
L && L();
|
|
28344
|
+
}
|
|
28345
|
+
});
|
|
28346
|
+
}
|
|
28347
|
+
const headerObj = {};
|
|
28348
|
+
var l_, u_, c_;
|
|
28349
|
+
if (location.host.indexOf("odm") > -1 || location.host.indexOf("suliangtong") > -1) {
|
|
28350
|
+
let k = localStorage.getItem("userInfo");
|
|
28351
|
+
if (k)
|
|
28352
|
+
try {
|
|
28353
|
+
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;
|
|
28354
|
+
} catch {
|
|
28355
|
+
}
|
|
28356
|
+
}
|
|
28357
|
+
const service = axios.create({
|
|
28358
|
+
timeout: 1e3 * 30,
|
|
28359
|
+
withCredentials: !0,
|
|
28360
|
+
headers: headerObj
|
|
28361
|
+
});
|
|
28362
|
+
service.interceptors.request.use(
|
|
28363
|
+
(k) => {
|
|
28364
|
+
k.url = handleProxy(k.url);
|
|
28365
|
+
const L = getRequestHeaders(k.url);
|
|
28366
|
+
return Object.keys(L).forEach((ie) => {
|
|
28367
|
+
k.headers[ie] = L[ie];
|
|
28368
|
+
}), k;
|
|
28369
|
+
},
|
|
28370
|
+
(k) => Promise.reject(k.data)
|
|
28371
|
+
);
|
|
28372
|
+
service.interceptors.response.use(
|
|
28373
|
+
(k) => {
|
|
28374
|
+
if (k.data.code == 1304 || k.data.code === 20007)
|
|
28375
|
+
window.location.href = k.data.data;
|
|
28376
|
+
else {
|
|
28377
|
+
if (k.data.code === 401 || k.data.code === 10001)
|
|
28378
|
+
return errorHandle(k), window.location.href = window.location.origin, Promise.reject(k.data.message);
|
|
28379
|
+
if (k.data.code === 204)
|
|
28380
|
+
return errorHandle(k.data.msg, () => window.location.href = "/"), Promise.reject(k);
|
|
28381
|
+
if (k.data.code !== 0)
|
|
28382
|
+
return errorHandle(k), Promise.reject(k.data);
|
|
28383
|
+
if (Object.prototype.toString.call(k.data.data).toLowerCase() == "[object object]")
|
|
28384
|
+
return k.data.data;
|
|
28385
|
+
if (typeof k.data.data == "string" && k.data.data != "") {
|
|
28386
|
+
let L = {};
|
|
28387
|
+
try {
|
|
28388
|
+
L = JSON.parse(k.data.data);
|
|
28389
|
+
} catch {
|
|
28390
|
+
L = k.data.data;
|
|
28391
|
+
}
|
|
28392
|
+
return L;
|
|
28393
|
+
} else
|
|
28394
|
+
return k.data.data;
|
|
28395
|
+
}
|
|
28396
|
+
},
|
|
28397
|
+
(k) => (errorHandle(k.response), Promise.reject(k))
|
|
28398
|
+
);
|
|
28399
|
+
const initPage = (k, L) => {
|
|
28400
|
+
L.dispatch("_INIT_PAGE", {
|
|
28401
|
+
pageKey: k.pageKey,
|
|
28402
|
+
components: k.components,
|
|
28403
|
+
dialogRef: k.dialogRef
|
|
28404
|
+
});
|
|
28405
|
+
}, queryData = (k, L, ie) => {
|
|
28406
|
+
k.dispatch("_QUERY_LIST", { pageKey: L, target: ie });
|
|
28407
|
+
};
|
|
28408
|
+
let component = {};
|
|
28409
|
+
function getTargetComp({ getters: k }, L, ie) {
|
|
28410
|
+
component = {};
|
|
28411
|
+
const ae = k._GET_CONFIG_DATA;
|
|
28412
|
+
if (!ae(L))
|
|
28413
|
+
return {};
|
|
28414
|
+
const pe = ae(L);
|
|
28415
|
+
if (getComp(pe, ie), !component.type)
|
|
28416
|
+
throw new Error(`没有找到key为'${ie}'的组件,请检查是否已定义`);
|
|
28417
|
+
return component;
|
|
28418
|
+
}
|
|
28419
|
+
function getComp(k, L) {
|
|
28420
|
+
for (let ie = 0; ie < k.length; ie++)
|
|
28421
|
+
k[ie].children && getComp(k[ie].children, L), k[ie].key === L && (component = k[ie]);
|
|
28422
|
+
}
|
|
28423
|
+
function getRelationComp(k, L, ie) {
|
|
28424
|
+
const ae = {};
|
|
28425
|
+
return ie.forEach((pe) => {
|
|
28426
|
+
const _e = getTargetComp(k, L, pe);
|
|
28427
|
+
ae[pe] = _e;
|
|
28428
|
+
}), ae;
|
|
28429
|
+
}
|
|
28430
|
+
let obj = {};
|
|
28431
|
+
function getSelectOption(k, L, ie) {
|
|
28432
|
+
let ae = {};
|
|
28433
|
+
L.relation && (ae = getRelationComp(k, ie, L.relation));
|
|
28434
|
+
const pe = typeof L.params == "function" ? L.params(ae) : L.params, _e = L.url + (L.dataKey ? "-" + L.dataKey : "") + (pe ? "-" + JSON.stringify(pe) : "");
|
|
28435
|
+
if (k.state[_e] && !L.noCache)
|
|
28436
|
+
L.options = k.state[_e];
|
|
28437
|
+
else {
|
|
28438
|
+
if (obj[L.url] && !L.params) {
|
|
28439
|
+
obj[L.url].push(L);
|
|
28440
|
+
return;
|
|
28441
|
+
} else
|
|
28442
|
+
L.params || (obj[L.url] = [L]);
|
|
28443
|
+
let xe = L.method == "POST" ? "data" : "params", Oe = L.baseUrl || k.state._BASE_URL;
|
|
28444
|
+
L.service === "c2" && (Oe = Oe.replace("c1", "c2")), service({
|
|
28445
|
+
url: Oe + L.url,
|
|
28446
|
+
[xe]: pe || {},
|
|
28447
|
+
method: L.method || "GET"
|
|
28448
|
+
}).then((Ie) => {
|
|
28449
|
+
const Ne = Ie[L.dataKey] || Ie.items || Ie;
|
|
28450
|
+
k.state[_e] = Ne;
|
|
28451
|
+
const $e = obj[L.url];
|
|
28452
|
+
$e ? ($e.forEach((Et) => {
|
|
28453
|
+
Et.options = Ie[Et.dataKey] || Ne;
|
|
28454
|
+
}), delete obj[L.url]) : L.options = Ne;
|
|
28455
|
+
});
|
|
28456
|
+
}
|
|
28457
|
+
}
|
|
28458
|
+
const getFormData = (k) => {
|
|
28459
|
+
let L = {};
|
|
28460
|
+
const ie = k.formData;
|
|
28461
|
+
return k.elementGroup.forEach((ae) => {
|
|
28462
|
+
(ae.isShow === void 0 || typeof ae.isShow == "function" && ae.isShow(ie)) && (typeof ie[ae.prop] == "object" ? L[ae.prop] = ie[ae.prop] : (L[ae.prop] = ie[ae.prop] + "" == "0" ? 0 : ie[ae.prop] || null, typeof L[ae.prop] == "string" && (L[ae.prop] = L[ae.prop].trim()))), ae.type === "Daterange" || ae.type === "Datetimerange" ? (L[ae.prop] ? (L[ae.startTime] = formatDate(
|
|
28463
|
+
L[ae.prop][0],
|
|
28464
|
+
ae.type === "Daterange" ? "yyyy-MM-dd" : "yyyy-MM-dd HH:mm:ss"
|
|
28465
|
+
), L[ae.endTime] = formatDate(
|
|
28466
|
+
L[ae.prop][1],
|
|
28467
|
+
ae.type === "Daterange" ? "yyyy-MM-dd" : "yyyy-MM-dd HH:mm:ss"
|
|
28468
|
+
)) : (L[ae.startTime] = null, L[ae.endTime] = null), delete L[ae.prop]) : ae.type === "Year" && (L[ae.prop] = formatDate(L[ae.prop], "yyyy"));
|
|
28469
|
+
}), L;
|
|
28470
|
+
};
|
|
28471
|
+
let slotsArr = [];
|
|
28472
|
+
function getAllSlots(k) {
|
|
28473
|
+
return slotsArr = [], getSlots(k), slotsArr;
|
|
28474
|
+
}
|
|
28475
|
+
function getSlots(k) {
|
|
28476
|
+
[...k.elementGroup || [], ...k.children || []].forEach((L) => {
|
|
28477
|
+
L.slot && slotsArr.push(L), (L.elementGroup || L.children) && getSlots(L);
|
|
28478
|
+
});
|
|
28479
|
+
}
|
|
28480
|
+
const store = createStore({
|
|
28481
|
+
// plugins: [createPersistedState()],
|
|
28482
|
+
state: {
|
|
28483
|
+
// 页面配置数据
|
|
28484
|
+
_CONFIG_DATA: {},
|
|
28485
|
+
_BASE_URL: "https://gateway-c4.doublefs.com",
|
|
28486
|
+
_ENV: {},
|
|
28487
|
+
loading: !1,
|
|
28488
|
+
locale: zhCn
|
|
28489
|
+
},
|
|
28490
|
+
getters: {
|
|
28491
|
+
// 获取页面配置数据
|
|
28492
|
+
_GET_CONFIG_DATA(k) {
|
|
28493
|
+
return function(L) {
|
|
28494
|
+
return k._CONFIG_DATA[L].components;
|
|
28495
|
+
};
|
|
28496
|
+
},
|
|
28497
|
+
_GET_DIALOGREF(k) {
|
|
28498
|
+
return function(L) {
|
|
28499
|
+
return k._CONFIG_DATA[L].dialogRef;
|
|
28500
|
+
};
|
|
28501
|
+
}
|
|
28502
|
+
},
|
|
28503
|
+
mutations: {
|
|
28504
|
+
// 显示/隐藏loading
|
|
28505
|
+
setLoading(k, L = !1) {
|
|
28506
|
+
k.loading = L;
|
|
28507
|
+
},
|
|
28508
|
+
saveUrl(k, L) {
|
|
28509
|
+
k._BASE_URL = L;
|
|
28510
|
+
},
|
|
28511
|
+
saveLocale(k, L) {
|
|
28512
|
+
L === "en" ? (k.locale = en, localStorage.setItem("my_locale_comp", "en")) : (k.locale = zhCn, localStorage.setItem("my_locale_comp", "zh"));
|
|
28513
|
+
},
|
|
28514
|
+
saveEnv(k, L) {
|
|
28515
|
+
k._ENV = L;
|
|
28516
|
+
},
|
|
28517
|
+
// 储存页面配置数据
|
|
28518
|
+
savaPageConfigData(k, L) {
|
|
28519
|
+
k._CONFIG_DATA[L.pageKey] = {
|
|
28520
|
+
components: L.components,
|
|
28521
|
+
cellComponents: {},
|
|
28522
|
+
dialogRef: L.dialogRef
|
|
28523
|
+
};
|
|
28524
|
+
},
|
|
28525
|
+
// 储存table数据
|
|
28526
|
+
updateRowData(k, L) {
|
|
28527
|
+
if (!Array.isArray(L.res.result))
|
|
28528
|
+
return ElMessage.warning("tableData必须为数组对象");
|
|
28529
|
+
L.tableComp.data = L.tableComp.data || {}, L.tableComp.data.result = L.res.result, L.tableComp.data.totalNum = L.res.totalNum, L.tableComp.selectedRows = [];
|
|
28530
|
+
}
|
|
28531
|
+
},
|
|
28532
|
+
actions: {
|
|
28533
|
+
// 初始化入口
|
|
28534
|
+
_INIT_PAGE(k, L) {
|
|
28535
|
+
k.commit("savaPageConfigData", L), initData(k, L.components, L.pageKey);
|
|
28536
|
+
},
|
|
28537
|
+
// 查询
|
|
28538
|
+
_QUERY_LIST(k, { pageKey: L, target: ie, row: ae, partialUpdate: pe }) {
|
|
28539
|
+
const _e = getTargetComp(k, L, ie);
|
|
28540
|
+
_e.pageInfo.pageNum = 1, _e.pageInfo.currentPage = 1, _e.resetPagination = Math.random(), pe ? setTimeout(() => {
|
|
28541
|
+
k.dispatch("_TABLE_QUERY", { tableComp: _e, pageKey: L, row: ae, partialUpdate: pe });
|
|
28542
|
+
}, 1e3) : k.dispatch("_TABLE_QUERY", { tableComp: _e, pageKey: L, row: ae, partialUpdate: pe });
|
|
28543
|
+
},
|
|
28544
|
+
// 查询列表查询
|
|
28545
|
+
_TABLE_QUERY(k, { tableComp: L, pageKey: ie, row: ae, partialUpdate: pe }) {
|
|
28546
|
+
let _e = {}, xe = {};
|
|
28547
|
+
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)
|
|
28548
|
+
return;
|
|
28549
|
+
const Oe = getOwnSearchData(L, xe);
|
|
28550
|
+
L.formData = { ..._e, ...Oe };
|
|
28551
|
+
let Ie = handleParams(L);
|
|
28552
|
+
if (pe) {
|
|
28553
|
+
Ie = { ...Ie };
|
|
28554
|
+
const $e = L.selectedRows.map((Et) => Et[pe.searchKey]);
|
|
28555
|
+
Ie[pe.searchKey] = $e.toString();
|
|
28556
|
+
}
|
|
28557
|
+
let Ne = L.method == "GET" ? "params" : "data";
|
|
28558
|
+
k.commit("setLoading", !0), service({
|
|
28559
|
+
url: k.state._BASE_URL + L.url,
|
|
28560
|
+
[Ne]: Ie || {},
|
|
28561
|
+
method: L.method || "POST"
|
|
28562
|
+
}).then(($e) => {
|
|
28563
|
+
const Et = filterRes($e, L);
|
|
28564
|
+
L.searchAfter && L.searchAfter(Et, $e, L) === !1 || (pe ? L.selectedNodes.forEach((qe) => {
|
|
28565
|
+
for (let Dt = 0; Dt < Et.result.length; Dt++) {
|
|
28566
|
+
const Ue = Et.result[Dt];
|
|
28567
|
+
qe.data[pe.dataKey] == Ue[pe.dataKey] && qe.setData(Ue);
|
|
28568
|
+
}
|
|
28569
|
+
}) : k.commit("updateRowData", { tableComp: L, res: Et }));
|
|
28570
|
+
}).finally(() => {
|
|
28571
|
+
k.commit("setLoading", !1);
|
|
28572
|
+
});
|
|
28573
|
+
},
|
|
28574
|
+
_UPDATE_COMPONENT(k, { pageKey: L, compKey: ie }) {
|
|
28575
|
+
const ae = getTargetComp(k, L, ie);
|
|
28576
|
+
ae.updateKey = new Date().getTime();
|
|
28577
|
+
}
|
|
28578
|
+
}
|
|
28579
|
+
});
|
|
28580
|
+
function initData(k, L, ie) {
|
|
28581
|
+
L.forEach((ae) => {
|
|
28582
|
+
if (ae.children && initData(k, ae.children, ie), ae.type == "Form") {
|
|
28583
|
+
let pe = {};
|
|
28584
|
+
Object.defineProperty(ae, "formData", {
|
|
28585
|
+
enumerable: !0,
|
|
28586
|
+
// 可枚举
|
|
28587
|
+
// configurable: false, // 不允许重新配置
|
|
28588
|
+
configurable: !0,
|
|
28589
|
+
// 允许重新配置
|
|
28590
|
+
get() {
|
|
28591
|
+
return pe;
|
|
28592
|
+
},
|
|
28593
|
+
set(_e) {
|
|
28594
|
+
pe = _e, console.error("[警告] 不建议直接替换formData对象,建议使用修改属性值的方式进行更新"), console.error("不推荐: formData = { ... }"), console.error("推荐: formData.propertyName = value");
|
|
28595
|
+
}
|
|
28596
|
+
}), ae.elementGroup && ae.elementGroup.length ? ae.elementGroup.forEach((_e) => {
|
|
28597
|
+
_e.prop && (pe[_e.prop] = _e.value ?? null);
|
|
28598
|
+
}) : ae.elementGroup = [];
|
|
28599
|
+
}
|
|
28600
|
+
ae.type == "AgTable" && (ae.pageInfo || (ae.pageInfo = { pageNum: 1, currentPage: 1, pageSize: 50 }), ae.initQuery && k.dispatch("_TABLE_QUERY", { pageKey: ie, tableComp: ae }));
|
|
28601
|
+
});
|
|
28602
|
+
}
|
|
28603
|
+
function getOwnSearchData(k, L) {
|
|
28604
|
+
const ie = {};
|
|
28605
|
+
return k.params && Object.keys(k.params).forEach((ae) => {
|
|
28606
|
+
typeof k.params[ae] == "function" ? ie[ae] = k.params[ae](L) : ie[ae] = k.params[ae];
|
|
28607
|
+
}), ie;
|
|
28608
|
+
}
|
|
28609
|
+
function handleParams(k) {
|
|
28610
|
+
var ie;
|
|
28611
|
+
let L = k.formData || {};
|
|
28612
|
+
return ((ie = k.configFlag) == null ? void 0 : ie.pagination) !== !1 && (L = { ...L, ...k.pageInfo }), k.exportDataSearchParams = L, L;
|
|
28613
|
+
}
|
|
28614
|
+
function filterRes(k, L) {
|
|
28615
|
+
var ae, pe;
|
|
28616
|
+
if (!k)
|
|
28617
|
+
return {
|
|
28618
|
+
result: [],
|
|
28619
|
+
totalNum: 0
|
|
28620
|
+
};
|
|
28621
|
+
let ie = {};
|
|
28622
|
+
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;
|
|
28623
|
+
}
|
|
28624
|
+
function getDataByProp(k, L, ie) {
|
|
28625
|
+
if (!L)
|
|
28626
|
+
return getDefaultData(k, ie);
|
|
28627
|
+
let ae = k;
|
|
28628
|
+
return L.split(".").forEach((pe) => {
|
|
28629
|
+
ae = ae[pe];
|
|
28630
|
+
}), ae || (ae = getDefaultData(k, ie)), ae;
|
|
28631
|
+
}
|
|
28632
|
+
function getDefaultData(k, L) {
|
|
28633
|
+
return L == 1 ? k.result || k.items || k || [] : k.totalNum || 0;
|
|
28634
|
+
}
|
|
28635
|
+
const padding = (k, L) => (new Array(L).join("0") + k).slice(-L), formatDate = (k, L) => {
|
|
28056
28636
|
if (!k)
|
|
28057
28637
|
return "";
|
|
28058
28638
|
const ie = typeof k == "string" ? new Date(k) : k;
|
|
@@ -28105,11 +28685,18 @@ const axios = /* @__PURE__ */ getDefaultExportFromCjs(axiosExports$1), padding =
|
|
|
28105
28685
|
return pe && ae.length != String(pe).length && (pe = padding(pe, ae.length)), pe;
|
|
28106
28686
|
}
|
|
28107
28687
|
);
|
|
28688
|
+
}, handleProxy = (k) => {
|
|
28689
|
+
var ie;
|
|
28690
|
+
let L = k;
|
|
28691
|
+
return store.state._ENV.VITE_PROXY_FLAG == "true" && ((ie = store.state._ENV.VITE_PROXY_SERVICE) == null || ie.split(",").forEach((ae) => {
|
|
28692
|
+
var pe;
|
|
28693
|
+
(pe = k.split(".com/")[1]) != null && pe.startsWith(ae.trim().slice(1)) && (L = k.replace(/^http.*\.com/, location.origin));
|
|
28694
|
+
})), L;
|
|
28108
28695
|
}, downLoadData = (k) => {
|
|
28109
28696
|
const { url: L, fileName: ie, params: ae, store: pe } = k;
|
|
28110
28697
|
pe.commit("setLoading", !0), axios.defaults.withCredentials = !0, axios.defaults.timeout = 6e4, axios.defaults.responseType = "blob", axios.defaults.headers = getRequestHeaders(L);
|
|
28111
28698
|
let _e = k.method || "post";
|
|
28112
|
-
axios[_e](L, ae).then(function(xe) {
|
|
28699
|
+
axios[_e](handleProxy(L), ae).then(function(xe) {
|
|
28113
28700
|
var $e;
|
|
28114
28701
|
const Oe = ($e = xe.headers["content-disposition"]) == null ? void 0 : $e.split("attachment;filename=")[1], Ie = URL.createObjectURL(xe.data);
|
|
28115
28702
|
var Ne = document.createElement("a");
|
|
@@ -28297,235 +28884,90 @@ const axios = /* @__PURE__ */ getDefaultExportFromCjs(axiosExports$1), padding =
|
|
|
28297
28884
|
beforeAvatarUpload: or,
|
|
28298
28885
|
handleDownload: er,
|
|
28299
28886
|
format: _e,
|
|
28300
|
-
bol: qe,
|
|
28301
|
-
handleExceed: ir,
|
|
28302
|
-
params: Oe,
|
|
28303
|
-
handleChange: ur
|
|
28304
|
-
};
|
|
28305
|
-
}
|
|
28306
|
-
}), UploadComp_vue_vue_type_style_index_0_scoped_50cdb1c3_lang = "", UploadComp_vue_vue_type_style_index_1_lang = "", _export_sfc = (k, L) => {
|
|
28307
|
-
const ie = k.__vccOpts || k;
|
|
28308
|
-
for (const [ae, pe] of L)
|
|
28309
|
-
ie[ae] = pe;
|
|
28310
|
-
return ie;
|
|
28311
|
-
}, _hoisted_1$i = { class: "el-upload__tip" };
|
|
28312
|
-
function _sfc_render$j(k, L, ie, ae, pe, _e) {
|
|
28313
|
-
const xe = ElButton, Oe = resolveComponent("Plus"), Ie = ElIcon, Ne = ElUpload, $e = ElDialog;
|
|
28314
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
28315
|
-
createVNode(Ne, {
|
|
28316
|
-
class: normalizeClass("upload" + (k.isDraggable ? " is-draggable" : "") + (k.disabled ? " is-disabled" : "")),
|
|
28317
|
-
name: "upload",
|
|
28318
|
-
multiple: k.multiple,
|
|
28319
|
-
drag: k.drag,
|
|
28320
|
-
"list-type": k.listType,
|
|
28321
|
-
ref: "uploadRef",
|
|
28322
|
-
data: k.params,
|
|
28323
|
-
action: k.uploadUrl,
|
|
28324
|
-
"show-file-list": !0,
|
|
28325
|
-
"file-list": k.fileList,
|
|
28326
|
-
limit: k.limit,
|
|
28327
|
-
accept: k.format.toString(),
|
|
28328
|
-
"auto-upload": k.autoUpload,
|
|
28329
|
-
"on-exceed": k.handleExceed,
|
|
28330
|
-
"on-success": k.handleAvatarSuccess,
|
|
28331
|
-
"before-upload": k.beforeAvatarUpload,
|
|
28332
|
-
"on-preview": k.handlePictureCardPreview,
|
|
28333
|
-
"on-remove": k.handleRemove,
|
|
28334
|
-
"with-credentials": !0,
|
|
28335
|
-
headers: k.headers,
|
|
28336
|
-
disabled: k.disabled,
|
|
28337
|
-
"on-change": k.handleChange
|
|
28338
|
-
}, createSlots({
|
|
28339
|
-
default: withCtx(() => [
|
|
28340
|
-
k.listType == "text" ? (openBlock(), createBlock(xe, {
|
|
28341
|
-
key: 0,
|
|
28342
|
-
type: "success",
|
|
28343
|
-
disabled: k.disabled,
|
|
28344
|
-
size: "small"
|
|
28345
|
-
}, {
|
|
28346
|
-
default: withCtx(() => [
|
|
28347
|
-
createTextVNode(toDisplayString(k.text), 1)
|
|
28348
|
-
]),
|
|
28349
|
-
_: 1
|
|
28350
|
-
}, 8, ["disabled"])) : createCommentVNode("", !0)
|
|
28351
|
-
]),
|
|
28352
|
-
_: 2
|
|
28353
|
-
}, [
|
|
28354
|
-
k.listType != "text" ? {
|
|
28355
|
-
name: "default",
|
|
28356
|
-
fn: withCtx(() => [
|
|
28357
|
-
createVNode(Ie, null, {
|
|
28358
|
-
default: withCtx(() => [
|
|
28359
|
-
createVNode(Oe)
|
|
28360
|
-
]),
|
|
28361
|
-
_: 1
|
|
28362
|
-
})
|
|
28363
|
-
]),
|
|
28364
|
-
key: "0"
|
|
28365
|
-
} : void 0,
|
|
28366
|
-
k.tip ? {
|
|
28367
|
-
name: "tip",
|
|
28368
|
-
fn: withCtx(() => [
|
|
28369
|
-
createElementVNode("div", _hoisted_1$i, toDisplayString(k.tip), 1)
|
|
28370
|
-
]),
|
|
28371
|
-
key: "1"
|
|
28372
|
-
} : void 0
|
|
28373
|
-
]), 1032, ["class", "multiple", "drag", "list-type", "data", "action", "file-list", "limit", "accept", "auto-upload", "on-exceed", "on-success", "before-upload", "on-preview", "on-remove", "headers", "disabled", "on-change"]),
|
|
28374
|
-
createVNode($e, {
|
|
28375
|
-
class: "dfs-image-preview",
|
|
28376
|
-
modelValue: k.dialogVisible,
|
|
28377
|
-
"onUpdate:modelValue": L[0] || (L[0] = (Et) => k.dialogVisible = Et),
|
|
28378
|
-
title: k.t("预览"),
|
|
28379
|
-
center: ""
|
|
28380
|
-
}, null, 8, ["modelValue", "title"])
|
|
28381
|
-
], 64);
|
|
28382
|
-
}
|
|
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
|
-
function errorHandle(k, L, ie) {
|
|
28385
|
-
var pe, _e;
|
|
28386
|
-
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);
|
|
28387
|
-
ElMessage({
|
|
28388
|
-
type: "error",
|
|
28389
|
-
message: ae,
|
|
28390
|
-
duration: ie || 2e3,
|
|
28391
|
-
onClose: () => {
|
|
28392
|
-
L && L();
|
|
28393
|
-
}
|
|
28394
|
-
});
|
|
28395
|
-
}
|
|
28396
|
-
const headerObj = {};
|
|
28397
|
-
var l_, u_, c_;
|
|
28398
|
-
if (location.host.indexOf("odm") > -1 || location.host.indexOf("suliangtong") > -1) {
|
|
28399
|
-
let k = localStorage.getItem("userInfo");
|
|
28400
|
-
if (k)
|
|
28401
|
-
try {
|
|
28402
|
-
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;
|
|
28403
|
-
} catch {
|
|
28404
|
-
}
|
|
28405
|
-
}
|
|
28406
|
-
const service = axios.create({
|
|
28407
|
-
timeout: 1e3 * 30,
|
|
28408
|
-
withCredentials: !0,
|
|
28409
|
-
headers: headerObj
|
|
28410
|
-
});
|
|
28411
|
-
service.interceptors.request.use(
|
|
28412
|
-
(k) => {
|
|
28413
|
-
const L = getRequestHeaders(k.url);
|
|
28414
|
-
return Object.keys(L).forEach((ie) => {
|
|
28415
|
-
k.headers[ie] = L[ie];
|
|
28416
|
-
}), k;
|
|
28417
|
-
},
|
|
28418
|
-
(k) => Promise.reject(k.data)
|
|
28419
|
-
);
|
|
28420
|
-
service.interceptors.response.use(
|
|
28421
|
-
(k) => {
|
|
28422
|
-
if (k.data.code == 1304 || k.data.code === 20007)
|
|
28423
|
-
window.location.href = k.data.data;
|
|
28424
|
-
else {
|
|
28425
|
-
if (k.data.code === 401 || k.data.code === 10001)
|
|
28426
|
-
return errorHandle(k), window.location.href = window.location.origin, Promise.reject(k.data.message);
|
|
28427
|
-
if (k.data.code === 204)
|
|
28428
|
-
return errorHandle(k.data.msg, () => window.location.href = "/"), Promise.reject(k);
|
|
28429
|
-
if (k.data.code !== 0)
|
|
28430
|
-
return errorHandle(k), Promise.reject(k.data);
|
|
28431
|
-
if (Object.prototype.toString.call(k.data.data).toLowerCase() == "[object object]")
|
|
28432
|
-
return k.data.data;
|
|
28433
|
-
if (typeof k.data.data == "string" && k.data.data != "") {
|
|
28434
|
-
let L = {};
|
|
28435
|
-
try {
|
|
28436
|
-
L = JSON.parse(k.data.data);
|
|
28437
|
-
} catch {
|
|
28438
|
-
L = k.data.data;
|
|
28439
|
-
}
|
|
28440
|
-
return L;
|
|
28441
|
-
} else
|
|
28442
|
-
return k.data.data;
|
|
28443
|
-
}
|
|
28444
|
-
},
|
|
28445
|
-
(k) => (errorHandle(k.response), Promise.reject(k))
|
|
28446
|
-
);
|
|
28447
|
-
const initPage = (k, L) => {
|
|
28448
|
-
L.dispatch("_INIT_PAGE", {
|
|
28449
|
-
pageKey: k.pageKey,
|
|
28450
|
-
components: k.components,
|
|
28451
|
-
dialogRef: k.dialogRef
|
|
28452
|
-
});
|
|
28453
|
-
}, queryData = (k, L, ie) => {
|
|
28454
|
-
k.dispatch("_QUERY_LIST", { pageKey: L, target: ie });
|
|
28455
|
-
};
|
|
28456
|
-
let component = {};
|
|
28457
|
-
function getTargetComp({ getters: k }, L, ie) {
|
|
28458
|
-
component = {};
|
|
28459
|
-
const ae = k._GET_CONFIG_DATA;
|
|
28460
|
-
if (!ae(L))
|
|
28461
|
-
return {};
|
|
28462
|
-
const pe = ae(L);
|
|
28463
|
-
if (getComp(pe, ie), !component.type)
|
|
28464
|
-
throw new Error(`没有找到key为'${ie}'的组件,请检查是否已定义`);
|
|
28465
|
-
return component;
|
|
28466
|
-
}
|
|
28467
|
-
function getComp(k, L) {
|
|
28468
|
-
for (let ie = 0; ie < k.length; ie++)
|
|
28469
|
-
k[ie].children && getComp(k[ie].children, L), k[ie].key === L && (component = k[ie]);
|
|
28470
|
-
}
|
|
28471
|
-
function getRelationComp(k, L, ie) {
|
|
28472
|
-
const ae = {};
|
|
28473
|
-
return ie.forEach((pe) => {
|
|
28474
|
-
const _e = getTargetComp(k, L, pe);
|
|
28475
|
-
ae[pe] = _e;
|
|
28476
|
-
}), ae;
|
|
28477
|
-
}
|
|
28478
|
-
let obj = {};
|
|
28479
|
-
function getSelectOption(k, L, ie) {
|
|
28480
|
-
let ae = {};
|
|
28481
|
-
L.relation && (ae = getRelationComp(k, ie, L.relation));
|
|
28482
|
-
const pe = typeof L.params == "function" ? L.params(ae) : L.params, _e = L.url + (L.dataKey ? "-" + L.dataKey : "") + (pe ? "-" + JSON.stringify(pe) : "");
|
|
28483
|
-
if (k.state[_e] && !L.noCache)
|
|
28484
|
-
L.options = k.state[_e];
|
|
28485
|
-
else {
|
|
28486
|
-
if (obj[L.url] && !L.params) {
|
|
28487
|
-
obj[L.url].push(L);
|
|
28488
|
-
return;
|
|
28489
|
-
} else
|
|
28490
|
-
L.params || (obj[L.url] = [L]);
|
|
28491
|
-
let xe = L.method == "POST" ? "data" : "params", Oe = L.baseUrl || k.state._BASE_URL;
|
|
28492
|
-
L.service === "c2" && (Oe = Oe.replace("c1", "c2")), service({
|
|
28493
|
-
url: Oe + L.url,
|
|
28494
|
-
[xe]: pe || {},
|
|
28495
|
-
method: L.method || "GET"
|
|
28496
|
-
}).then((Ie) => {
|
|
28497
|
-
const Ne = Ie[L.dataKey] || Ie.items || Ie;
|
|
28498
|
-
k.state[_e] = Ne;
|
|
28499
|
-
const $e = obj[L.url];
|
|
28500
|
-
$e ? ($e.forEach((Et) => {
|
|
28501
|
-
Et.options = Ie[Et.dataKey] || Ne;
|
|
28502
|
-
}), delete obj[L.url]) : L.options = Ne;
|
|
28503
|
-
});
|
|
28504
|
-
}
|
|
28505
|
-
}
|
|
28506
|
-
const getFormData = (k) => {
|
|
28507
|
-
let L = {};
|
|
28508
|
-
const ie = k.formData;
|
|
28509
|
-
return k.elementGroup.forEach((ae) => {
|
|
28510
|
-
(ae.isShow === void 0 || typeof ae.isShow == "function" && ae.isShow(ie)) && (typeof ie[ae.prop] == "object" ? L[ae.prop] = ie[ae.prop] : (L[ae.prop] = ie[ae.prop] + "" == "0" ? 0 : ie[ae.prop] || null, typeof L[ae.prop] == "string" && (L[ae.prop] = L[ae.prop].trim()))), ae.type === "Daterange" || ae.type === "Datetimerange" ? (L[ae.prop] ? (L[ae.startTime] = formatDate(
|
|
28511
|
-
L[ae.prop][0],
|
|
28512
|
-
ae.type === "Daterange" ? "yyyy-MM-dd" : "yyyy-MM-dd HH:mm:ss"
|
|
28513
|
-
), L[ae.endTime] = formatDate(
|
|
28514
|
-
L[ae.prop][1],
|
|
28515
|
-
ae.type === "Daterange" ? "yyyy-MM-dd" : "yyyy-MM-dd HH:mm:ss"
|
|
28516
|
-
)) : (L[ae.startTime] = null, L[ae.endTime] = null), delete L[ae.prop]) : ae.type === "Year" && (L[ae.prop] = formatDate(L[ae.prop], "yyyy"));
|
|
28517
|
-
}), L;
|
|
28518
|
-
};
|
|
28519
|
-
let slotsArr = [];
|
|
28520
|
-
function getAllSlots(k) {
|
|
28521
|
-
return slotsArr = [], getSlots(k), slotsArr;
|
|
28522
|
-
}
|
|
28523
|
-
function getSlots(k) {
|
|
28524
|
-
[...k.elementGroup || [], ...k.children || []].forEach((L) => {
|
|
28525
|
-
L.slot && slotsArr.push(L), (L.elementGroup || L.children) && getSlots(L);
|
|
28526
|
-
});
|
|
28887
|
+
bol: qe,
|
|
28888
|
+
handleExceed: ir,
|
|
28889
|
+
params: Oe,
|
|
28890
|
+
handleChange: ur
|
|
28891
|
+
};
|
|
28892
|
+
}
|
|
28893
|
+
}), UploadComp_vue_vue_type_style_index_0_scoped_50cdb1c3_lang = "", UploadComp_vue_vue_type_style_index_1_lang = "", _export_sfc = (k, L) => {
|
|
28894
|
+
const ie = k.__vccOpts || k;
|
|
28895
|
+
for (const [ae, pe] of L)
|
|
28896
|
+
ie[ae] = pe;
|
|
28897
|
+
return ie;
|
|
28898
|
+
}, _hoisted_1$i = { class: "el-upload__tip" };
|
|
28899
|
+
function _sfc_render$j(k, L, ie, ae, pe, _e) {
|
|
28900
|
+
const xe = ElButton, Oe = resolveComponent("Plus"), Ie = ElIcon, Ne = ElUpload, $e = ElDialog;
|
|
28901
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
28902
|
+
createVNode(Ne, {
|
|
28903
|
+
class: normalizeClass("upload" + (k.isDraggable ? " is-draggable" : "") + (k.disabled ? " is-disabled" : "")),
|
|
28904
|
+
name: "upload",
|
|
28905
|
+
multiple: k.multiple,
|
|
28906
|
+
drag: k.drag,
|
|
28907
|
+
"list-type": k.listType,
|
|
28908
|
+
ref: "uploadRef",
|
|
28909
|
+
data: k.params,
|
|
28910
|
+
action: k.uploadUrl,
|
|
28911
|
+
"show-file-list": !0,
|
|
28912
|
+
"file-list": k.fileList,
|
|
28913
|
+
limit: k.limit,
|
|
28914
|
+
accept: k.format.toString(),
|
|
28915
|
+
"auto-upload": k.autoUpload,
|
|
28916
|
+
"on-exceed": k.handleExceed,
|
|
28917
|
+
"on-success": k.handleAvatarSuccess,
|
|
28918
|
+
"before-upload": k.beforeAvatarUpload,
|
|
28919
|
+
"on-preview": k.handlePictureCardPreview,
|
|
28920
|
+
"on-remove": k.handleRemove,
|
|
28921
|
+
"with-credentials": !0,
|
|
28922
|
+
headers: k.headers,
|
|
28923
|
+
disabled: k.disabled,
|
|
28924
|
+
"on-change": k.handleChange
|
|
28925
|
+
}, createSlots({
|
|
28926
|
+
default: withCtx(() => [
|
|
28927
|
+
k.listType == "text" ? (openBlock(), createBlock(xe, {
|
|
28928
|
+
key: 0,
|
|
28929
|
+
type: "success",
|
|
28930
|
+
disabled: k.disabled,
|
|
28931
|
+
size: "small"
|
|
28932
|
+
}, {
|
|
28933
|
+
default: withCtx(() => [
|
|
28934
|
+
createTextVNode(toDisplayString(k.text), 1)
|
|
28935
|
+
]),
|
|
28936
|
+
_: 1
|
|
28937
|
+
}, 8, ["disabled"])) : createCommentVNode("", !0)
|
|
28938
|
+
]),
|
|
28939
|
+
_: 2
|
|
28940
|
+
}, [
|
|
28941
|
+
k.listType != "text" ? {
|
|
28942
|
+
name: "default",
|
|
28943
|
+
fn: withCtx(() => [
|
|
28944
|
+
createVNode(Ie, null, {
|
|
28945
|
+
default: withCtx(() => [
|
|
28946
|
+
createVNode(Oe)
|
|
28947
|
+
]),
|
|
28948
|
+
_: 1
|
|
28949
|
+
})
|
|
28950
|
+
]),
|
|
28951
|
+
key: "0"
|
|
28952
|
+
} : void 0,
|
|
28953
|
+
k.tip ? {
|
|
28954
|
+
name: "tip",
|
|
28955
|
+
fn: withCtx(() => [
|
|
28956
|
+
createElementVNode("div", _hoisted_1$i, toDisplayString(k.tip), 1)
|
|
28957
|
+
]),
|
|
28958
|
+
key: "1"
|
|
28959
|
+
} : void 0
|
|
28960
|
+
]), 1032, ["class", "multiple", "drag", "list-type", "data", "action", "file-list", "limit", "accept", "auto-upload", "on-exceed", "on-success", "before-upload", "on-preview", "on-remove", "headers", "disabled", "on-change"]),
|
|
28961
|
+
createVNode($e, {
|
|
28962
|
+
class: "dfs-image-preview",
|
|
28963
|
+
modelValue: k.dialogVisible,
|
|
28964
|
+
"onUpdate:modelValue": L[0] || (L[0] = (Et) => k.dialogVisible = Et),
|
|
28965
|
+
title: k.t("预览"),
|
|
28966
|
+
center: ""
|
|
28967
|
+
}, null, 8, ["modelValue", "title"])
|
|
28968
|
+
], 64);
|
|
28527
28969
|
}
|
|
28528
|
-
const _sfc_main$j = defineComponent({
|
|
28970
|
+
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 = "", _sfc_main$j = defineComponent({
|
|
28529
28971
|
props: {
|
|
28530
28972
|
option: Object,
|
|
28531
28973
|
formComp: Object,
|
|
@@ -29102,7 +29544,7 @@ const Form = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h]
|
|
|
29102
29544
|
setup(k, L) {
|
|
29103
29545
|
const { t: ie } = getCurrentInstance().appContext.config.globalProperties.useI18n(), ae = useStore(), pe = ref(), _e = reactive({
|
|
29104
29546
|
uploadUrl: computed$1(
|
|
29105
|
-
() => ae.state._BASE_URL + k.url
|
|
29547
|
+
() => handleProxy(ae.state._BASE_URL + k.url)
|
|
29106
29548
|
)
|
|
29107
29549
|
}), xe = ref(!1), Oe = getRequestHeaders(_e.uploadUrl);
|
|
29108
29550
|
async function Ie() {
|
|
@@ -29187,438 +29629,7 @@ function _sfc_render$g(k, L, ie, ae, pe, _e) {
|
|
|
29187
29629
|
}, 8, ["onClick", "disabled", "size", "type"]))
|
|
29188
29630
|
], 64);
|
|
29189
29631
|
}
|
|
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({
|
|
29632
|
+
const Upload = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]]), _sfc_main$g = defineComponent({
|
|
29622
29633
|
name: "ButtonGroup",
|
|
29623
29634
|
components: { Upload },
|
|
29624
29635
|
props: {
|
|
@@ -105525,7 +105536,7 @@ const index = (k, L) => {
|
|
|
105525
105536
|
Object.keys(store[ae]).forEach((pe) => {
|
|
105526
105537
|
L.store[ae][pe] = store[ae][pe];
|
|
105527
105538
|
});
|
|
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);
|
|
105539
|
+
}), store.commit("saveUrl", L.baseUrl), store.commit("saveLocale", L.locale), store.commit("saveEnv", L.env), 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);
|
|
105529
105540
|
const ie = () => ({
|
|
105530
105541
|
t: (ae) => ae
|
|
105531
105542
|
});
|