bxs-tools-ui 1.4.0 → 1.4.1
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/add-and-take/index.js +13 -12
- package/lib/index.js +13 -12
- package/package.json +1 -1
- package/packages/add-and-take/handler.js +3 -2
- package/packages/add-and-take/index.vue +2 -2
|
@@ -1343,8 +1343,8 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
1343
1343
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1344
1344
|
|
|
1345
1345
|
"use strict";
|
|
1346
|
-
/* harmony import */ var
|
|
1347
|
-
/* harmony import */ var
|
|
1346
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ba01e47c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(108);
|
|
1347
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ba01e47c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ba01e47c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
1348
1348
|
/* unused harmony reexport * */
|
|
1349
1349
|
|
|
1350
1350
|
|
|
@@ -3345,11 +3345,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3345
3345
|
var defineProperty = __webpack_require__(26);
|
|
3346
3346
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
3347
3347
|
|
|
3348
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=
|
|
3348
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=ba01e47c&
|
|
3349
3349
|
|
|
3350
3350
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3351
3351
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { defineProperty_default()(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3352
|
-
var
|
|
3352
|
+
var add_and_takevue_type_template_id_ba01e47c_render = function render() {
|
|
3353
3353
|
var _vm = this,
|
|
3354
3354
|
_c = _vm._self._c,
|
|
3355
3355
|
_setup = _vm._self._setupProxy;
|
|
@@ -3645,7 +3645,7 @@ var add_and_takevue_type_template_id_f6a871c8_render = function render() {
|
|
|
3645
3645
|
};
|
|
3646
3646
|
var staticRenderFns = [];
|
|
3647
3647
|
|
|
3648
|
-
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=
|
|
3648
|
+
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=ba01e47c&
|
|
3649
3649
|
|
|
3650
3650
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
3651
3651
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -3897,13 +3897,14 @@ function rebuildAccountDataBySetting(values, accountData) {
|
|
|
3897
3897
|
}
|
|
3898
3898
|
return accountData;
|
|
3899
3899
|
}
|
|
3900
|
-
function rebuildAccountDataByResult(detailsData, accountData) {
|
|
3900
|
+
function rebuildAccountDataByResult(detailsData, accountData, popupType) {
|
|
3901
3901
|
if (!detailsData || !accountData || !accountData.addAndTakeData) {
|
|
3902
3902
|
return accountData;
|
|
3903
3903
|
}
|
|
3904
3904
|
accountData.addAndTakeData.forEach(function (item) {
|
|
3905
|
+
var correspondingDetailsDataKey = popupType === 'reduceBaof' && item.key === 'take' ? 'draw_value' : item.key;
|
|
3905
3906
|
var detailData = detailsData.find(function (e) {
|
|
3906
|
-
return e.key ===
|
|
3907
|
+
return e.key === correspondingDetailsDataKey;
|
|
3907
3908
|
});
|
|
3908
3909
|
var values = detailData && detailData.values;
|
|
3909
3910
|
var details = detailData && detailData.details;
|
|
@@ -4701,7 +4702,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
4701
4702
|
d.values = d.values && d.values.map(function (v) { return (v ? Math.round(v) : v); });
|
|
4702
4703
|
});
|
|
4703
4704
|
_this.addAndTakeDetailData = data;
|
|
4704
|
-
_this.accountData = rebuildAccountDataByResult(data, Object(lodash["cloneDeep"])(accountData));
|
|
4705
|
+
_this.accountData = rebuildAccountDataByResult(data, Object(lodash["cloneDeep"])(accountData), type);
|
|
4705
4706
|
return Promise.resolve(data);
|
|
4706
4707
|
})
|
|
4707
4708
|
.catch(function (error) {
|
|
@@ -4810,7 +4811,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
4810
4811
|
_detail.values = _detail.recommendValues;
|
|
4811
4812
|
}
|
|
4812
4813
|
});
|
|
4813
|
-
this.accountData = rebuildAccountDataByResult(_addAndTakeDetailData, Object(lodash["cloneDeep"])(this.accountData));
|
|
4814
|
+
this.accountData = rebuildAccountDataByResult(_addAndTakeDetailData, Object(lodash["cloneDeep"])(this.accountData), this.type);
|
|
4814
4815
|
this.getAddAndTakeData();
|
|
4815
4816
|
};
|
|
4816
4817
|
AddAndTake.prototype.deleteAllData = function () {
|
|
@@ -4973,8 +4974,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
4973
4974
|
|
|
4974
4975
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
|
|
4975
4976
|
/* harmony default export */ var packages_add_and_takevue_type_script_lang_ts_ = (add_and_takevue_type_script_lang_ts_);
|
|
4976
|
-
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=
|
|
4977
|
-
var
|
|
4977
|
+
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=ba01e47c&prod&lang=css&
|
|
4978
|
+
var add_and_takevue_type_style_index_0_id_ba01e47c_prod_lang_css_ = __webpack_require__(137);
|
|
4978
4979
|
|
|
4979
4980
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue
|
|
4980
4981
|
|
|
@@ -4987,7 +4988,7 @@ var add_and_takevue_type_style_index_0_id_f6a871c8_prod_lang_css_ = __webpack_re
|
|
|
4987
4988
|
|
|
4988
4989
|
var add_and_take_component = Object(componentNormalizer["a" /* default */])(
|
|
4989
4990
|
packages_add_and_takevue_type_script_lang_ts_,
|
|
4990
|
-
|
|
4991
|
+
add_and_takevue_type_template_id_ba01e47c_render,
|
|
4991
4992
|
staticRenderFns,
|
|
4992
4993
|
false,
|
|
4993
4994
|
null,
|
package/lib/index.js
CHANGED
|
@@ -27225,8 +27225,8 @@ module.exports = function (str, opts) {
|
|
|
27225
27225
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
27226
27226
|
|
|
27227
27227
|
"use strict";
|
|
27228
|
-
/* harmony import */ var
|
|
27229
|
-
/* harmony import */ var
|
|
27228
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ba01e47c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56);
|
|
27229
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ba01e47c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ba01e47c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
27230
27230
|
/* unused harmony reexport * */
|
|
27231
27231
|
|
|
27232
27232
|
|
|
@@ -34084,11 +34084,11 @@ __webpack_require__.d(__webpack_exports__, "ProductInfo", function() { return /*
|
|
|
34084
34084
|
var defineProperty = __webpack_require__(8);
|
|
34085
34085
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
34086
34086
|
|
|
34087
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=
|
|
34087
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=ba01e47c&
|
|
34088
34088
|
|
|
34089
34089
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34090
34090
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { defineProperty_default()(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34091
|
-
var
|
|
34091
|
+
var add_and_takevue_type_template_id_ba01e47c_render = function render() {
|
|
34092
34092
|
var _vm = this,
|
|
34093
34093
|
_c = _vm._self._c,
|
|
34094
34094
|
_setup = _vm._self._setupProxy;
|
|
@@ -34384,7 +34384,7 @@ var add_and_takevue_type_template_id_f6a871c8_render = function render() {
|
|
|
34384
34384
|
};
|
|
34385
34385
|
var staticRenderFns = [];
|
|
34386
34386
|
|
|
34387
|
-
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=
|
|
34387
|
+
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=ba01e47c&
|
|
34388
34388
|
|
|
34389
34389
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
34390
34390
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -35253,13 +35253,14 @@ function rebuildAccountDataBySetting(values, accountData) {
|
|
|
35253
35253
|
}
|
|
35254
35254
|
return accountData;
|
|
35255
35255
|
}
|
|
35256
|
-
function rebuildAccountDataByResult(detailsData, accountData) {
|
|
35256
|
+
function rebuildAccountDataByResult(detailsData, accountData, popupType) {
|
|
35257
35257
|
if (!detailsData || !accountData || !accountData.addAndTakeData) {
|
|
35258
35258
|
return accountData;
|
|
35259
35259
|
}
|
|
35260
35260
|
accountData.addAndTakeData.forEach(function (item) {
|
|
35261
|
+
var correspondingDetailsDataKey = popupType === 'reduceBaof' && item.key === 'take' ? 'draw_value' : item.key;
|
|
35261
35262
|
var detailData = detailsData.find(function (e) {
|
|
35262
|
-
return e.key ===
|
|
35263
|
+
return e.key === correspondingDetailsDataKey;
|
|
35263
35264
|
});
|
|
35264
35265
|
var values = detailData && detailData.values;
|
|
35265
35266
|
var details = detailData && detailData.details;
|
|
@@ -36306,7 +36307,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
36306
36307
|
d.values = d.values && d.values.map(function (v) { return (v ? Math.round(v) : v); });
|
|
36307
36308
|
});
|
|
36308
36309
|
_this.addAndTakeDetailData = data;
|
|
36309
|
-
_this.accountData = rebuildAccountDataByResult(data, Object(lodash["cloneDeep"])(accountData));
|
|
36310
|
+
_this.accountData = rebuildAccountDataByResult(data, Object(lodash["cloneDeep"])(accountData), type);
|
|
36310
36311
|
return Promise.resolve(data);
|
|
36311
36312
|
})
|
|
36312
36313
|
.catch(function (error) {
|
|
@@ -36415,7 +36416,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
36415
36416
|
_detail.values = _detail.recommendValues;
|
|
36416
36417
|
}
|
|
36417
36418
|
});
|
|
36418
|
-
this.accountData = rebuildAccountDataByResult(_addAndTakeDetailData, Object(lodash["cloneDeep"])(this.accountData));
|
|
36419
|
+
this.accountData = rebuildAccountDataByResult(_addAndTakeDetailData, Object(lodash["cloneDeep"])(this.accountData), this.type);
|
|
36419
36420
|
this.getAddAndTakeData();
|
|
36420
36421
|
};
|
|
36421
36422
|
AddAndTake.prototype.deleteAllData = function () {
|
|
@@ -36578,8 +36579,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
36578
36579
|
|
|
36579
36580
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
|
|
36580
36581
|
/* harmony default export */ var packages_add_and_takevue_type_script_lang_ts_ = (add_and_takevue_type_script_lang_ts_);
|
|
36581
|
-
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=
|
|
36582
|
-
var
|
|
36582
|
+
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=ba01e47c&prod&lang=css&
|
|
36583
|
+
var add_and_takevue_type_style_index_0_id_ba01e47c_prod_lang_css_ = __webpack_require__(110);
|
|
36583
36584
|
|
|
36584
36585
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue
|
|
36585
36586
|
|
|
@@ -36592,7 +36593,7 @@ var add_and_takevue_type_style_index_0_id_f6a871c8_prod_lang_css_ = __webpack_re
|
|
|
36592
36593
|
|
|
36593
36594
|
var add_and_take_component = normalizeComponent(
|
|
36594
36595
|
packages_add_and_takevue_type_script_lang_ts_,
|
|
36595
|
-
|
|
36596
|
+
add_and_takevue_type_template_id_ba01e47c_render,
|
|
36596
36597
|
staticRenderFns,
|
|
36597
36598
|
false,
|
|
36598
36599
|
null,
|
package/package.json
CHANGED
|
@@ -187,12 +187,13 @@ export function rebuildAccountDataBySetting(values, accountData) {
|
|
|
187
187
|
return accountData;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export function rebuildAccountDataByResult(detailsData, accountData) {
|
|
190
|
+
export function rebuildAccountDataByResult(detailsData, accountData, popupType) {
|
|
191
191
|
if (!detailsData || !accountData || !accountData.addAndTakeData) {
|
|
192
192
|
return accountData;
|
|
193
193
|
}
|
|
194
194
|
accountData.addAndTakeData.forEach(item => {
|
|
195
|
-
const
|
|
195
|
+
const correspondingDetailsDataKey = popupType === 'reduceBaof' && item.key === 'take' ? 'draw_value' : item.key;
|
|
196
|
+
const detailData = detailsData.find(e => e.key === correspondingDetailsDataKey);
|
|
196
197
|
const values = detailData && detailData.values;
|
|
197
198
|
const details = detailData && detailData.details;
|
|
198
199
|
if (!(values && values.length)) {
|
|
@@ -625,7 +625,7 @@ export default class AddAndTake extends Vue {
|
|
|
625
625
|
d.values = d.values && d.values.map(v => (v ? Math.round(v) : v));
|
|
626
626
|
});
|
|
627
627
|
this.addAndTakeDetailData = data;
|
|
628
|
-
this.accountData = rebuildAccountDataByResult(data, cloneDeep(accountData));
|
|
628
|
+
this.accountData = rebuildAccountDataByResult(data, cloneDeep(accountData), type);
|
|
629
629
|
return Promise.resolve(data);
|
|
630
630
|
})
|
|
631
631
|
.catch(error => {
|
|
@@ -733,7 +733,7 @@ export default class AddAndTake extends Vue {
|
|
|
733
733
|
_detail.values = _detail.recommendValues;
|
|
734
734
|
}
|
|
735
735
|
});
|
|
736
|
-
this.accountData = rebuildAccountDataByResult(_addAndTakeDetailData, cloneDeep(this.accountData));
|
|
736
|
+
this.accountData = rebuildAccountDataByResult(_addAndTakeDetailData, cloneDeep(this.accountData), this.type);
|
|
737
737
|
this.getAddAndTakeData();
|
|
738
738
|
}
|
|
739
739
|
deleteAllData() {
|