@xatlas/rainbow-core 2.4.8 → 2.4.9
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/core.common.js +185 -165
- package/dist/core.common.js.map +1 -1
- package/dist/core.umd.js +185 -165
- package/dist/core.umd.js.map +1 -1
- package/dist/core.umd.min.js +4 -4
- package/dist/core.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core.common.js
CHANGED
|
@@ -4991,6 +4991,17 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
4991
4991
|
|
|
4992
4992
|
// extracted by mini-css-extract-plugin
|
|
4993
4993
|
|
|
4994
|
+
/***/ }),
|
|
4995
|
+
|
|
4996
|
+
/***/ "4aca":
|
|
4997
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4998
|
+
|
|
4999
|
+
"use strict";
|
|
5000
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_52b036b7_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4eee");
|
|
5001
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_52b036b7_prod_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_52b036b7_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
5002
|
+
/* unused harmony reexport * */
|
|
5003
|
+
|
|
5004
|
+
|
|
4994
5005
|
/***/ }),
|
|
4995
5006
|
|
|
4996
5007
|
/***/ "4af3":
|
|
@@ -5040,6 +5051,13 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
5040
5051
|
|
|
5041
5052
|
/***/ }),
|
|
5042
5053
|
|
|
5054
|
+
/***/ "4eee":
|
|
5055
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5056
|
+
|
|
5057
|
+
// extracted by mini-css-extract-plugin
|
|
5058
|
+
|
|
5059
|
+
/***/ }),
|
|
5060
|
+
|
|
5043
5061
|
/***/ "5104":
|
|
5044
5062
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5045
5063
|
|
|
@@ -17861,7 +17879,7 @@ module.exports = require("qs");
|
|
|
17861
17879
|
|
|
17862
17880
|
"use strict";
|
|
17863
17881
|
|
|
17864
|
-
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/Item.vue?vue&type=template&id=
|
|
17882
|
+
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/Item.vue?vue&type=template&id=52b036b7
|
|
17865
17883
|
var render = function render() {
|
|
17866
17884
|
var _vm$schema$params;
|
|
17867
17885
|
var _vm = this,
|
|
@@ -17990,6 +18008,7 @@ var render = function render() {
|
|
|
17990
18008
|
}
|
|
17991
18009
|
}
|
|
17992
18010
|
}) : _vm.schema.control === 'year' ? _c('a-date-picker', {
|
|
18011
|
+
ref: "yearDatePicker",
|
|
17993
18012
|
staticStyle: {
|
|
17994
18013
|
"width": "100%",
|
|
17995
18014
|
"min-width": "199px"
|
|
@@ -18013,6 +18032,9 @@ var render = function render() {
|
|
|
18013
18032
|
},
|
|
18014
18033
|
"openChange": function openChange(status) {
|
|
18015
18034
|
return _vm.yearPickerPanelOpen = status;
|
|
18035
|
+
},
|
|
18036
|
+
"change": function change(value) {
|
|
18037
|
+
return !value && _vm.$emit('change', null);
|
|
18016
18038
|
}
|
|
18017
18039
|
}
|
|
18018
18040
|
}) : ['birthday'].includes(_vm.schema.control) ? _c('a-date-picker', {
|
|
@@ -18611,7 +18633,7 @@ var render = function render() {
|
|
|
18611
18633
|
};
|
|
18612
18634
|
var staticRenderFns = [];
|
|
18613
18635
|
|
|
18614
|
-
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=template&id=
|
|
18636
|
+
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=template&id=52b036b7
|
|
18615
18637
|
|
|
18616
18638
|
// EXTERNAL MODULE: external {"root":"qs","commonjs2":"qs","commonjs":"qs","amd":"qs"}
|
|
18617
18639
|
var external_root_qs_commonjs2_qs_commonjs_qs_amd_qs_ = __webpack_require__("796d");
|
|
@@ -20868,6 +20890,9 @@ var Popup = __webpack_require__("3aaf");
|
|
|
20868
20890
|
watch: {
|
|
20869
20891
|
value: function value(_value, old) {
|
|
20870
20892
|
var input = this.$refs.aInput;
|
|
20893
|
+
if (this.$refs.yearDatePicker && _value) {
|
|
20894
|
+
this.$refs.item.clearValidate();
|
|
20895
|
+
}
|
|
20871
20896
|
if (input) {
|
|
20872
20897
|
input.setValue(_value);
|
|
20873
20898
|
this.$refs.item.clearValidate();
|
|
@@ -20877,8 +20902,8 @@ var Popup = __webpack_require__("3aaf");
|
|
|
20877
20902
|
});
|
|
20878
20903
|
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=script&lang=js
|
|
20879
20904
|
/* harmony default export */ var forms_Itemvue_type_script_lang_js = (Itemvue_type_script_lang_js);
|
|
20880
|
-
// EXTERNAL MODULE: ../src/web/components/forms/Item.vue?vue&type=style&index=0&id=
|
|
20881
|
-
var
|
|
20905
|
+
// EXTERNAL MODULE: ../src/web/components/forms/Item.vue?vue&type=style&index=0&id=52b036b7&prod&lang=less
|
|
20906
|
+
var Itemvue_type_style_index_0_id_52b036b7_prod_lang_less = __webpack_require__("4aca");
|
|
20882
20907
|
|
|
20883
20908
|
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue
|
|
20884
20909
|
|
|
@@ -36241,17 +36266,6 @@ var NodeContainer_component = Object(componentNormalizer["a" /* default */])(
|
|
|
36241
36266
|
|
|
36242
36267
|
}));
|
|
36243
36268
|
|
|
36244
|
-
/***/ }),
|
|
36245
|
-
|
|
36246
|
-
/***/ "b21b":
|
|
36247
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
36248
|
-
|
|
36249
|
-
"use strict";
|
|
36250
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_e04613b0_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f23a");
|
|
36251
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_e04613b0_prod_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_e04613b0_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
36252
|
-
/* unused harmony reexport * */
|
|
36253
|
-
|
|
36254
|
-
|
|
36255
36269
|
/***/ }),
|
|
36256
36270
|
|
|
36257
36271
|
/***/ "b472":
|
|
@@ -39237,6 +39251,7 @@ function base_toPrimitive(t, r) { if ("object" != base_typeof(t) || !t) return t
|
|
|
39237
39251
|
}))();
|
|
39238
39252
|
},
|
|
39239
39253
|
handleBulkEdit: function handleBulkEdit() {
|
|
39254
|
+
this.bulkAction = base_objectSpread({}, this.action);
|
|
39240
39255
|
this.actionRowEditing = true;
|
|
39241
39256
|
},
|
|
39242
39257
|
handleCancelEdit: function handleCancelEdit() {
|
|
@@ -39798,6 +39813,8 @@ var SHOW_RULES = {
|
|
|
39798
39813
|
defaultModel: null,
|
|
39799
39814
|
unwatchs: [],
|
|
39800
39815
|
editions: [],
|
|
39816
|
+
bulkAction: null,
|
|
39817
|
+
// 存储批量编辑动作的参数,防止编辑后,点击取消,弹窗内再点取消,保存时key被篡改为 cancel
|
|
39801
39818
|
preview: false // 临时字段,支持表单设计器二维码预览功能,不能关闭弹窗
|
|
39802
39819
|
};
|
|
39803
39820
|
},
|
|
@@ -39863,24 +39880,30 @@ var SHOW_RULES = {
|
|
|
39863
39880
|
}];
|
|
39864
39881
|
},
|
|
39865
39882
|
settingActions: function settingActions() {
|
|
39866
|
-
var _this$
|
|
39883
|
+
var _this$bulkAction, _this$bulkAction2, _this$bulkAction3, _this$bulkAction4, _this$bulkAction5;
|
|
39867
39884
|
var actions = [{
|
|
39868
|
-
key: ((_this$
|
|
39885
|
+
key: ((_this$bulkAction = this.bulkAction) === null || _this$bulkAction === void 0 ? void 0 : _this$bulkAction.key) || '',
|
|
39869
39886
|
name: '保存',
|
|
39870
39887
|
icon: 'save',
|
|
39871
39888
|
method: 'PUT',
|
|
39872
39889
|
action: 'saveEdit',
|
|
39873
|
-
primary: '1'
|
|
39890
|
+
primary: '1',
|
|
39891
|
+
list: ((_this$bulkAction2 = this.bulkAction) === null || _this$bulkAction2 === void 0 ? void 0 : _this$bulkAction2.list) || null,
|
|
39892
|
+
configs: ((_this$bulkAction3 = this.bulkAction) === null || _this$bulkAction3 === void 0 ? void 0 : _this$bulkAction3.configs) || []
|
|
39874
39893
|
}, {
|
|
39875
39894
|
key: '_cancle',
|
|
39876
39895
|
name: '取消',
|
|
39877
39896
|
icon: 'stop',
|
|
39878
39897
|
action: 'cancelEdit',
|
|
39879
|
-
group: '1'
|
|
39898
|
+
group: '1',
|
|
39899
|
+
list: ((_this$bulkAction4 = this.bulkAction) === null || _this$bulkAction4 === void 0 ? void 0 : _this$bulkAction4.list) || null,
|
|
39900
|
+
configs: ((_this$bulkAction5 = this.bulkAction) === null || _this$bulkAction5 === void 0 ? void 0 : _this$bulkAction5.configs) || []
|
|
39880
39901
|
}];
|
|
39881
|
-
return this.actionRowEditing
|
|
39882
|
-
|
|
39883
|
-
|
|
39902
|
+
return this.actionRowEditing
|
|
39903
|
+
// ? this.editions.length
|
|
39904
|
+
// ? actions
|
|
39905
|
+
// : actions.filter(action => ['cancelEdit'].includes(action.action))
|
|
39906
|
+
? actions : [{
|
|
39884
39907
|
key: '_refresh',
|
|
39885
39908
|
name: '',
|
|
39886
39909
|
icon: 'reload',
|
|
@@ -40117,146 +40140,150 @@ var SHOW_RULES = {
|
|
|
40117
40140
|
this.actionSubmited = new Date().getTime();
|
|
40118
40141
|
},
|
|
40119
40142
|
commitActionView: function commitActionView(data) {
|
|
40120
|
-
var
|
|
40121
|
-
|
|
40122
|
-
|
|
40123
|
-
|
|
40124
|
-
|
|
40125
|
-
|
|
40126
|
-
|
|
40127
|
-
|
|
40128
|
-
|
|
40129
|
-
|
|
40130
|
-
|
|
40131
|
-
|
|
40132
|
-
|
|
40133
|
-
|
|
40134
|
-
|
|
40135
|
-
|
|
40136
|
-
|
|
40137
|
-
|
|
40138
|
-
|
|
40139
|
-
|
|
40140
|
-
|
|
40141
|
-
|
|
40142
|
-
|
|
40143
|
-
|
|
40144
|
-
|
|
40145
|
-
|
|
40146
|
-
|
|
40147
|
-
|
|
40148
|
-
|
|
40149
|
-
|
|
40150
|
-
|
|
40151
|
-
|
|
40152
|
-
|
|
40153
|
-
|
|
40154
|
-
|
|
40155
|
-
|
|
40156
|
-
|
|
40157
|
-
|
|
40158
|
-
|
|
40159
|
-
|
|
40160
|
-
|
|
40161
|
-
|
|
40162
|
-
|
|
40163
|
-
|
|
40164
|
-
|
|
40165
|
-
|
|
40166
|
-
|
|
40167
|
-
|
|
40168
|
-
|
|
40169
|
-
|
|
40170
|
-
|
|
40171
|
-
|
|
40172
|
-
|
|
40173
|
-
|
|
40174
|
-
|
|
40175
|
-
|
|
40176
|
-
|
|
40177
|
-
|
|
40143
|
+
var _arguments = arguments,
|
|
40144
|
+
_this5 = this;
|
|
40145
|
+
return action_asyncToGenerator( /*#__PURE__*/action_regeneratorRuntime().mark(function _callee5() {
|
|
40146
|
+
var params, selections, actionModel, idName, editions, _this5$action, key, method, _this5$action$params, _this5$action$params2, _this5$action$params3, _this5$action$params4, type, redirectProfile, autofill, _this5$action$params5, confirmActionDialog, schema, submit, regex, replaceForOneSelection, replacedStrings, finalString;
|
|
40147
|
+
return action_regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
40148
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
40149
|
+
case 0:
|
|
40150
|
+
params = _arguments.length > 1 && _arguments[1] !== undefined ? _arguments[1] : null;
|
|
40151
|
+
// 临时逻辑,支持表单设计器二维码预览功能,不能关闭弹窗
|
|
40152
|
+
if (params) _this5.preview = params.preview;
|
|
40153
|
+
selections = _this5.selections, actionModel = _this5.actionModel, idName = _this5.idName, editions = _this5.editions, _this5$action = _this5.action, key = _this5$action.key, method = _this5$action.method, _this5$action$params = _this5$action.params, _this5$action$params2 = _this5$action$params === void 0 ? {} : _this5$action$params, _this5$action$params3 = _this5$action$params2.commit, _this5$action$params4 = _this5$action$params3 === void 0 ? {} : _this5$action$params3, type = _this5$action$params4.type, redirectProfile = _this5$action$params4.redirectProfile, autofill = _this5$action$params2.autofill, _this5$action$params5 = _this5$action$params2.confirmActionDialog, confirmActionDialog = _this5$action$params5 === void 0 ? null : _this5$action$params5, schema = _this5.schema;
|
|
40154
|
+
submit = /*#__PURE__*/function () {
|
|
40155
|
+
var _ref2 = action_asyncToGenerator( /*#__PURE__*/action_regeneratorRuntime().mark(function _callee3() {
|
|
40156
|
+
var nothasFile, query, multiple, result, autofillData, filterColumns, _key;
|
|
40157
|
+
return action_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
40158
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
40159
|
+
case 0:
|
|
40160
|
+
if (selections.length > 1) {
|
|
40161
|
+
delete data[idName];
|
|
40162
|
+
data = selections.map(function (item) {
|
|
40163
|
+
return action_objectSpread(action_objectSpread({}, item), data);
|
|
40164
|
+
});
|
|
40165
|
+
} else if (actionModel && !editions.length) {
|
|
40166
|
+
data = action_objectSpread(action_objectSpread({}, actionModel), data);
|
|
40167
|
+
}
|
|
40168
|
+
nothasFile = Object.keys(data).every(function (key) {
|
|
40169
|
+
return !(data[key] instanceof File) && !(data[key] && data[key] instanceof Array && data[key].some(function (d) {
|
|
40170
|
+
return d instanceof File;
|
|
40171
|
+
}));
|
|
40172
|
+
});
|
|
40173
|
+
query = {};
|
|
40174
|
+
multiple = Object.keys(data).find(function (key) {
|
|
40175
|
+
return data[key] && data[key] instanceof Array && data[key].some(function (d) {
|
|
40176
|
+
return d instanceof File;
|
|
40177
|
+
});
|
|
40178
|
+
}) ? '1' : '0';
|
|
40179
|
+
if (multiple === '1') query.multiple = multiple;
|
|
40180
|
+
if (!nothasFile) {
|
|
40181
|
+
data = _this5.transformData(data);
|
|
40182
|
+
}
|
|
40183
|
+
_context3.next = 8;
|
|
40184
|
+
return _this5.saveData({
|
|
40185
|
+
data: data,
|
|
40186
|
+
key: key,
|
|
40187
|
+
method: method,
|
|
40188
|
+
query: query,
|
|
40189
|
+
type: type,
|
|
40190
|
+
params: params
|
|
40191
|
+
});
|
|
40192
|
+
case 8:
|
|
40193
|
+
result = _context3.sent;
|
|
40194
|
+
if (result) {
|
|
40195
|
+
if (autofill) {
|
|
40196
|
+
autofillData = action_objectSpread({}, result);
|
|
40197
|
+
filterColumns = _this5.filterColumns().map(function (item) {
|
|
40198
|
+
return item.name;
|
|
40199
|
+
});
|
|
40200
|
+
for (_key in autofillData) {
|
|
40201
|
+
if (!filterColumns.includes(_key)) {
|
|
40202
|
+
delete autofillData[_key];
|
|
40203
|
+
}
|
|
40204
|
+
}
|
|
40205
|
+
// 表单自动填充,将表单项值存在本地
|
|
40206
|
+
localStorage.setItem("form_".concat(schema.id), JSON.stringify(autofillData));
|
|
40207
|
+
}
|
|
40208
|
+
_this5.actionCommitResult.data = function () {
|
|
40209
|
+
return {
|
|
40210
|
+
data: result
|
|
40211
|
+
};
|
|
40212
|
+
};
|
|
40213
|
+
if (redirectProfile) {
|
|
40214
|
+
_this5.handleModelProfile && _this5.handleModelProfile(result);
|
|
40215
|
+
}
|
|
40216
|
+
if (_this5.id && type && type === 'remove') {
|
|
40217
|
+
_this5.handleBack();
|
|
40218
|
+
}
|
|
40219
|
+
}
|
|
40220
|
+
|
|
40221
|
+
// 普通动作
|
|
40222
|
+
// 刷新数据
|
|
40223
|
+
flushed({
|
|
40224
|
+
params: {
|
|
40225
|
+
commit: {
|
|
40226
|
+
type: type
|
|
40227
|
+
}
|
|
40228
|
+
}
|
|
40229
|
+
}, _this5);
|
|
40230
|
+
case 11:
|
|
40231
|
+
case "end":
|
|
40232
|
+
return _context3.stop();
|
|
40233
|
+
}
|
|
40234
|
+
}, _callee3);
|
|
40235
|
+
}));
|
|
40236
|
+
return function submit() {
|
|
40237
|
+
return _ref2.apply(this, arguments);
|
|
40238
|
+
};
|
|
40239
|
+
}(); // confirmActionDialog 有值则提交会二次弹窗提醒
|
|
40240
|
+
if (!confirmActionDialog) {
|
|
40241
|
+
_context5.next = 12;
|
|
40242
|
+
break;
|
|
40243
|
+
}
|
|
40244
|
+
regex = /\$\{(\w+)\}/g; // 首先,创建一个函数来替换单个对象的所有占位符
|
|
40245
|
+
replaceForOneSelection = function replaceForOneSelection(obj) {
|
|
40246
|
+
return confirmActionDialog.content.replace(regex, function (match) {
|
|
40247
|
+
var key = match.substring(2, match.length - 1);
|
|
40248
|
+
var attr = _this5.columns.find(function (item) {
|
|
40249
|
+
return item.key === key;
|
|
40250
|
+
}) || null;
|
|
40251
|
+
return _this5.formatter(null, obj[key], attr === null || attr === void 0 ? void 0 : attr.schema);
|
|
40178
40252
|
});
|
|
40179
|
-
|
|
40180
|
-
|
|
40181
|
-
|
|
40182
|
-
|
|
40183
|
-
|
|
40184
|
-
|
|
40185
|
-
|
|
40186
|
-
|
|
40187
|
-
|
|
40188
|
-
|
|
40189
|
-
|
|
40253
|
+
}; // 使用 map 函数为每个 selection 创建替换后的字符串
|
|
40254
|
+
replacedStrings = selections.map(function (s) {
|
|
40255
|
+
return replaceForOneSelection(s);
|
|
40256
|
+
}); // onfirmActionDialog.type 值为:summary(概括,只展示所选数据第一条数据的值)、detailed(详细,展示所选数据每一条数据的值,并用“,”隔开)
|
|
40257
|
+
finalString = confirmActionDialog.type === 'summary' ? replacedStrings[0] : replacedStrings.join(',');
|
|
40258
|
+
_this5.$confirm({
|
|
40259
|
+
title: '请再次确认以下信息,确认无误后提交!',
|
|
40260
|
+
content: "".concat(finalString, "\u3002"),
|
|
40261
|
+
onOk: function onOk() {
|
|
40262
|
+
return action_asyncToGenerator( /*#__PURE__*/action_regeneratorRuntime().mark(function _callee4() {
|
|
40263
|
+
return action_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
40264
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
40265
|
+
case 0:
|
|
40266
|
+
_context4.next = 2;
|
|
40267
|
+
return submit();
|
|
40268
|
+
case 2:
|
|
40269
|
+
case "end":
|
|
40270
|
+
return _context4.stop();
|
|
40190
40271
|
}
|
|
40191
|
-
}
|
|
40192
|
-
|
|
40193
|
-
localStorage.setItem("form_".concat(schema.id), JSON.stringify(autofillData));
|
|
40194
|
-
}
|
|
40195
|
-
_this5.actionCommitResult.data = function () {
|
|
40196
|
-
return {
|
|
40197
|
-
data: result
|
|
40198
|
-
};
|
|
40199
|
-
};
|
|
40200
|
-
if (redirectProfile) {
|
|
40201
|
-
_this5.handleModelProfile && _this5.handleModelProfile(result);
|
|
40202
|
-
}
|
|
40203
|
-
if (_this5.id && type && type === 'remove') {
|
|
40204
|
-
_this5.handleBack();
|
|
40205
|
-
}
|
|
40272
|
+
}, _callee4);
|
|
40273
|
+
}))();
|
|
40206
40274
|
}
|
|
40207
|
-
|
|
40208
|
-
|
|
40209
|
-
|
|
40210
|
-
|
|
40211
|
-
|
|
40212
|
-
|
|
40213
|
-
|
|
40214
|
-
|
|
40215
|
-
|
|
40216
|
-
}, _this5);
|
|
40217
|
-
case 11:
|
|
40218
|
-
case "end":
|
|
40219
|
-
return _context3.stop();
|
|
40220
|
-
}
|
|
40221
|
-
}, _callee3);
|
|
40222
|
-
}));
|
|
40223
|
-
return function submit() {
|
|
40224
|
-
return _ref2.apply(this, arguments);
|
|
40225
|
-
};
|
|
40226
|
-
}();
|
|
40227
|
-
|
|
40228
|
-
// confirmActionDialog 有值则提交会二次弹窗提醒
|
|
40229
|
-
if (confirmActionDialog) {
|
|
40230
|
-
var regex = /\$\{(\w+)\}/g;
|
|
40231
|
-
|
|
40232
|
-
// 首先,创建一个函数来替换单个对象的所有占位符
|
|
40233
|
-
var replaceForOneSelection = function replaceForOneSelection(obj) {
|
|
40234
|
-
return confirmActionDialog.content.replace(regex, function (match) {
|
|
40235
|
-
var key = match.substring(2, match.length - 1);
|
|
40236
|
-
var attr = _this5.columns.find(function (item) {
|
|
40237
|
-
return item.key === key;
|
|
40238
|
-
}) || null;
|
|
40239
|
-
return _this5.formatter(null, obj[key], attr === null || attr === void 0 ? void 0 : attr.schema);
|
|
40240
|
-
});
|
|
40241
|
-
};
|
|
40242
|
-
|
|
40243
|
-
// 使用 map 函数为每个 selection 创建替换后的字符串
|
|
40244
|
-
var replacedStrings = selections.map(function (s) {
|
|
40245
|
-
return replaceForOneSelection(s);
|
|
40246
|
-
});
|
|
40247
|
-
|
|
40248
|
-
// onfirmActionDialog.type 值为:summary(概括,只展示所选数据第一条数据的值)、detailed(详细,展示所选数据每一条数据的值,并用“,”隔开)
|
|
40249
|
-
var finalString = confirmActionDialog.type === 'summary' ? replacedStrings[0] : replacedStrings.join(',');
|
|
40250
|
-
this.$confirm({
|
|
40251
|
-
title: '请再次确认以下信息,确认无误后提交!',
|
|
40252
|
-
content: "".concat(finalString, "\u3002"),
|
|
40253
|
-
onOk: function onOk() {
|
|
40254
|
-
submit();
|
|
40275
|
+
});
|
|
40276
|
+
_context5.next = 14;
|
|
40277
|
+
break;
|
|
40278
|
+
case 12:
|
|
40279
|
+
_context5.next = 14;
|
|
40280
|
+
return submit();
|
|
40281
|
+
case 14:
|
|
40282
|
+
case "end":
|
|
40283
|
+
return _context5.stop();
|
|
40255
40284
|
}
|
|
40256
|
-
});
|
|
40257
|
-
}
|
|
40258
|
-
submit();
|
|
40259
|
-
}
|
|
40285
|
+
}, _callee5);
|
|
40286
|
+
}))();
|
|
40260
40287
|
},
|
|
40261
40288
|
filterColumns: function filterColumns() {
|
|
40262
40289
|
var action = this.action,
|
|
@@ -52981,13 +53008,6 @@ module.exports = require("vuex/dist/logger");
|
|
|
52981
53008
|
|
|
52982
53009
|
/***/ }),
|
|
52983
53010
|
|
|
52984
|
-
/***/ "f23a":
|
|
52985
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
52986
|
-
|
|
52987
|
-
// extracted by mini-css-extract-plugin
|
|
52988
|
-
|
|
52989
|
-
/***/ }),
|
|
52990
|
-
|
|
52991
53011
|
/***/ "f24a":
|
|
52992
53012
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
52993
53013
|
|