bl-common-vue3 3.7.173 → 3.7.174
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/lib/vue3common.common.js +42 -30
- package/lib/vue3common.umd.js +42 -30
- package/lib/vue3common.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/vue3common.common.js
CHANGED
|
@@ -149226,7 +149226,7 @@ module.exports = uncurryThis([].slice);
|
|
|
149226
149226
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","amd":"vue","root":"vue"}
|
|
149227
149227
|
var external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_ = __webpack_require__("8bbf");
|
|
149228
149228
|
|
|
149229
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/ExtraManage/index.vue?vue&type=template&id=
|
|
149229
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/ExtraManage/index.vue?vue&type=template&id=6348444b
|
|
149230
149230
|
|
|
149231
149231
|
const _hoisted_1 = {
|
|
149232
149232
|
key: 0
|
|
@@ -149272,9 +149272,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149272
149272
|
"column-status": Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["withCtx"])(({
|
|
149273
149273
|
record
|
|
149274
149274
|
}) => [Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["createVNode"])(_component_a_switch, {
|
|
149275
|
-
checked: _ctx.
|
|
149276
|
-
checkedValue: 1,
|
|
149277
|
-
unCheckedValue: 0,
|
|
149275
|
+
checked: _ctx.getStatusChecked(record),
|
|
149278
149276
|
onChange: $event => _ctx.statusChange(record, $event)
|
|
149279
149277
|
}, null, 8, ["checked", "onChange"])]),
|
|
149280
149278
|
"column-action": Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["withCtx"])(({
|
|
@@ -149331,7 +149329,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149331
149329
|
_: 1
|
|
149332
149330
|
}, 8, ["title", "visible", "onClose"]);
|
|
149333
149331
|
}
|
|
149334
|
-
// CONCATENATED MODULE: ./src/components/ExtraManage/index.vue?vue&type=template&id=
|
|
149332
|
+
// CONCATENATED MODULE: ./src/components/ExtraManage/index.vue?vue&type=template&id=6348444b
|
|
149335
149333
|
|
|
149336
149334
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/ExtraManage/components/ExtraManageEdit.vue?vue&type=template&id=730a8392&scoped=true
|
|
149337
149335
|
|
|
@@ -150323,7 +150321,7 @@ const CustomTable = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_
|
|
|
150323
150321
|
editVisible: false,
|
|
150324
150322
|
editId: 0,
|
|
150325
150323
|
customTable: null,
|
|
150326
|
-
|
|
150324
|
+
statusPendingMap: {}
|
|
150327
150325
|
});
|
|
150328
150326
|
const closeModal = () => {
|
|
150329
150327
|
emit("closeModal");
|
|
@@ -150494,39 +150492,53 @@ const CustomTable = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_
|
|
|
150494
150492
|
const newLang = event.newValue; // 获取新的语言值
|
|
150495
150493
|
Object(locale["d" /* loadLanguageAsync */])(newLang);
|
|
150496
150494
|
});
|
|
150497
|
-
const
|
|
150495
|
+
const getStatusChecked = record => {
|
|
150498
150496
|
const key = record === null || record === void 0 ? void 0 : record.id;
|
|
150499
|
-
if (Object.prototype.hasOwnProperty.call(state.
|
|
150500
|
-
return state.
|
|
150497
|
+
if (Object.prototype.hasOwnProperty.call(state.statusPendingMap, key)) {
|
|
150498
|
+
return state.statusPendingMap[key] === 1;
|
|
150501
150499
|
}
|
|
150502
|
-
return Number(record === null || record === void 0 ? void 0 : record.status) === 1
|
|
150500
|
+
return Number(record === null || record === void 0 ? void 0 : record.status) === 1;
|
|
150503
150501
|
};
|
|
150504
|
-
const
|
|
150502
|
+
const requestAfterSwitchPaint = async callback => {
|
|
150503
|
+
await Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["nextTick"])();
|
|
150504
|
+
if (window.requestAnimationFrame) {
|
|
150505
|
+
window.requestAnimationFrame(() => {
|
|
150506
|
+
window.setTimeout(callback, 0);
|
|
150507
|
+
});
|
|
150508
|
+
return;
|
|
150509
|
+
}
|
|
150510
|
+
window.setTimeout(callback, 0);
|
|
150511
|
+
};
|
|
150512
|
+
const statusChange = async (record, checked) => {
|
|
150505
150513
|
const status = checked ? 1 : 0;
|
|
150506
|
-
const oldStatus =
|
|
150507
|
-
state.
|
|
150514
|
+
const oldStatus = Number(record.status) === 1 ? 1 : 0;
|
|
150515
|
+
state.statusPendingMap[record.id] = status;
|
|
150508
150516
|
record.status = status;
|
|
150509
150517
|
const params = {
|
|
150510
150518
|
...record,
|
|
150511
150519
|
status
|
|
150512
150520
|
};
|
|
150513
|
-
|
|
150514
|
-
|
|
150515
|
-
|
|
150516
|
-
|
|
150517
|
-
|
|
150518
|
-
|
|
150519
|
-
|
|
150520
|
-
|
|
150521
|
+
await requestAfterSwitchPaint(() => {
|
|
150522
|
+
// 编辑
|
|
150523
|
+
emit("request", {
|
|
150524
|
+
params: {
|
|
150525
|
+
method: 'put',
|
|
150526
|
+
server: props.requestAllInfo.edit.service,
|
|
150527
|
+
url: props.requestAllInfo.edit.serviceUrl.replace(/\${id}/g, record.id),
|
|
150528
|
+
extra: {
|
|
150529
|
+
...params
|
|
150530
|
+
}
|
|
150531
|
+
},
|
|
150532
|
+
success: res => {
|
|
150533
|
+
delete state.statusPendingMap[record.id];
|
|
150534
|
+
record.status = status;
|
|
150535
|
+
external_commonjs_ant_design_vue_commonjs2_ant_design_vue_amd_ant_design_vue_root_ant_design_vue_["message"].success((res === null || res === void 0 ? void 0 : res.msg) || Object(locale["e" /* t */])('common.save.success'));
|
|
150536
|
+
},
|
|
150537
|
+
fail: () => {
|
|
150538
|
+
delete state.statusPendingMap[record.id];
|
|
150539
|
+
record.status = oldStatus;
|
|
150521
150540
|
}
|
|
150522
|
-
}
|
|
150523
|
-
success: res => {
|
|
150524
|
-
external_commonjs_ant_design_vue_commonjs2_ant_design_vue_amd_ant_design_vue_root_ant_design_vue_["message"].success((res === null || res === void 0 ? void 0 : res.msg) || Object(locale["e" /* t */])('common.save.success'));
|
|
150525
|
-
},
|
|
150526
|
-
fail: () => {
|
|
150527
|
-
state.statusMap[record.id] = oldStatus;
|
|
150528
|
-
record.status = oldStatus;
|
|
150529
|
-
}
|
|
150541
|
+
});
|
|
150530
150542
|
});
|
|
150531
150543
|
};
|
|
150532
150544
|
return {
|
|
@@ -150541,7 +150553,7 @@ const CustomTable = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_
|
|
|
150541
150553
|
handleDelete,
|
|
150542
150554
|
handleEdit,
|
|
150543
150555
|
editSuccess,
|
|
150544
|
-
|
|
150556
|
+
getStatusChecked,
|
|
150545
150557
|
statusChange
|
|
150546
150558
|
};
|
|
150547
150559
|
}
|
package/lib/vue3common.umd.js
CHANGED
|
@@ -149235,7 +149235,7 @@ module.exports = uncurryThis([].slice);
|
|
|
149235
149235
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","amd":"vue","root":"vue"}
|
|
149236
149236
|
var external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_ = __webpack_require__("8bbf");
|
|
149237
149237
|
|
|
149238
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/ExtraManage/index.vue?vue&type=template&id=
|
|
149238
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/ExtraManage/index.vue?vue&type=template&id=6348444b
|
|
149239
149239
|
|
|
149240
149240
|
const _hoisted_1 = {
|
|
149241
149241
|
key: 0
|
|
@@ -149281,9 +149281,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149281
149281
|
"column-status": Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["withCtx"])(({
|
|
149282
149282
|
record
|
|
149283
149283
|
}) => [Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["createVNode"])(_component_a_switch, {
|
|
149284
|
-
checked: _ctx.
|
|
149285
|
-
checkedValue: 1,
|
|
149286
|
-
unCheckedValue: 0,
|
|
149284
|
+
checked: _ctx.getStatusChecked(record),
|
|
149287
149285
|
onChange: $event => _ctx.statusChange(record, $event)
|
|
149288
149286
|
}, null, 8, ["checked", "onChange"])]),
|
|
149289
149287
|
"column-action": Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["withCtx"])(({
|
|
@@ -149340,7 +149338,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149340
149338
|
_: 1
|
|
149341
149339
|
}, 8, ["title", "visible", "onClose"]);
|
|
149342
149340
|
}
|
|
149343
|
-
// CONCATENATED MODULE: ./src/components/ExtraManage/index.vue?vue&type=template&id=
|
|
149341
|
+
// CONCATENATED MODULE: ./src/components/ExtraManage/index.vue?vue&type=template&id=6348444b
|
|
149344
149342
|
|
|
149345
149343
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/ExtraManage/components/ExtraManageEdit.vue?vue&type=template&id=730a8392&scoped=true
|
|
149346
149344
|
|
|
@@ -150332,7 +150330,7 @@ const CustomTable = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_
|
|
|
150332
150330
|
editVisible: false,
|
|
150333
150331
|
editId: 0,
|
|
150334
150332
|
customTable: null,
|
|
150335
|
-
|
|
150333
|
+
statusPendingMap: {}
|
|
150336
150334
|
});
|
|
150337
150335
|
const closeModal = () => {
|
|
150338
150336
|
emit("closeModal");
|
|
@@ -150503,39 +150501,53 @@ const CustomTable = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_
|
|
|
150503
150501
|
const newLang = event.newValue; // 获取新的语言值
|
|
150504
150502
|
Object(locale["d" /* loadLanguageAsync */])(newLang);
|
|
150505
150503
|
});
|
|
150506
|
-
const
|
|
150504
|
+
const getStatusChecked = record => {
|
|
150507
150505
|
const key = record === null || record === void 0 ? void 0 : record.id;
|
|
150508
|
-
if (Object.prototype.hasOwnProperty.call(state.
|
|
150509
|
-
return state.
|
|
150506
|
+
if (Object.prototype.hasOwnProperty.call(state.statusPendingMap, key)) {
|
|
150507
|
+
return state.statusPendingMap[key] === 1;
|
|
150510
150508
|
}
|
|
150511
|
-
return Number(record === null || record === void 0 ? void 0 : record.status) === 1
|
|
150509
|
+
return Number(record === null || record === void 0 ? void 0 : record.status) === 1;
|
|
150512
150510
|
};
|
|
150513
|
-
const
|
|
150511
|
+
const requestAfterSwitchPaint = async callback => {
|
|
150512
|
+
await Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["nextTick"])();
|
|
150513
|
+
if (window.requestAnimationFrame) {
|
|
150514
|
+
window.requestAnimationFrame(() => {
|
|
150515
|
+
window.setTimeout(callback, 0);
|
|
150516
|
+
});
|
|
150517
|
+
return;
|
|
150518
|
+
}
|
|
150519
|
+
window.setTimeout(callback, 0);
|
|
150520
|
+
};
|
|
150521
|
+
const statusChange = async (record, checked) => {
|
|
150514
150522
|
const status = checked ? 1 : 0;
|
|
150515
|
-
const oldStatus =
|
|
150516
|
-
state.
|
|
150523
|
+
const oldStatus = Number(record.status) === 1 ? 1 : 0;
|
|
150524
|
+
state.statusPendingMap[record.id] = status;
|
|
150517
150525
|
record.status = status;
|
|
150518
150526
|
const params = {
|
|
150519
150527
|
...record,
|
|
150520
150528
|
status
|
|
150521
150529
|
};
|
|
150522
|
-
|
|
150523
|
-
|
|
150524
|
-
|
|
150525
|
-
|
|
150526
|
-
|
|
150527
|
-
|
|
150528
|
-
|
|
150529
|
-
|
|
150530
|
+
await requestAfterSwitchPaint(() => {
|
|
150531
|
+
// 编辑
|
|
150532
|
+
emit("request", {
|
|
150533
|
+
params: {
|
|
150534
|
+
method: 'put',
|
|
150535
|
+
server: props.requestAllInfo.edit.service,
|
|
150536
|
+
url: props.requestAllInfo.edit.serviceUrl.replace(/\${id}/g, record.id),
|
|
150537
|
+
extra: {
|
|
150538
|
+
...params
|
|
150539
|
+
}
|
|
150540
|
+
},
|
|
150541
|
+
success: res => {
|
|
150542
|
+
delete state.statusPendingMap[record.id];
|
|
150543
|
+
record.status = status;
|
|
150544
|
+
external_commonjs_ant_design_vue_commonjs2_ant_design_vue_amd_ant_design_vue_root_ant_design_vue_["message"].success((res === null || res === void 0 ? void 0 : res.msg) || Object(locale["e" /* t */])('common.save.success'));
|
|
150545
|
+
},
|
|
150546
|
+
fail: () => {
|
|
150547
|
+
delete state.statusPendingMap[record.id];
|
|
150548
|
+
record.status = oldStatus;
|
|
150530
150549
|
}
|
|
150531
|
-
}
|
|
150532
|
-
success: res => {
|
|
150533
|
-
external_commonjs_ant_design_vue_commonjs2_ant_design_vue_amd_ant_design_vue_root_ant_design_vue_["message"].success((res === null || res === void 0 ? void 0 : res.msg) || Object(locale["e" /* t */])('common.save.success'));
|
|
150534
|
-
},
|
|
150535
|
-
fail: () => {
|
|
150536
|
-
state.statusMap[record.id] = oldStatus;
|
|
150537
|
-
record.status = oldStatus;
|
|
150538
|
-
}
|
|
150550
|
+
});
|
|
150539
150551
|
});
|
|
150540
150552
|
};
|
|
150541
150553
|
return {
|
|
@@ -150550,7 +150562,7 @@ const CustomTable = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_
|
|
|
150550
150562
|
handleDelete,
|
|
150551
150563
|
handleEdit,
|
|
150552
150564
|
editSuccess,
|
|
150553
|
-
|
|
150565
|
+
getStatusChecked,
|
|
150554
150566
|
statusChange
|
|
150555
150567
|
};
|
|
150556
150568
|
}
|