@bytenew/bn-applet-ui 1.1.38 → 1.1.40
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/bn-applet-ui.umd.js
CHANGED
|
@@ -255,6 +255,30 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.bnDrop-select[data-v-0984e2b5]{displa
|
|
|
255
255
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
256
256
|
|
|
257
257
|
|
|
258
|
+
/***/ },
|
|
259
|
+
|
|
260
|
+
/***/ 3808
|
|
261
|
+
(module, __webpack_exports__, __webpack_require__) {
|
|
262
|
+
|
|
263
|
+
"use strict";
|
|
264
|
+
__webpack_require__.r(__webpack_exports__);
|
|
265
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
266
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
267
|
+
/* harmony export */ });
|
|
268
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
269
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
270
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
271
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
272
|
+
// Imports
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
276
|
+
// Module
|
|
277
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.BnEmptyTip[data-v-24b4124f]{position:relative;width:100%;display:flex;justify-content:space-around;align-items:center}.BnEmptyTip .BnEmptyTip-box[data-v-24b4124f]{display:flex;justify-content:center;flex-direction:column;align-items:center;background-position:top;background-size:contain;background-repeat:no-repeat}.BnEmptyTip .BnEmptyTip-img[data-v-24b4124f]{background-size:contain;background-position:center 35%;background-repeat:no-repeat}.BnEmptyTip .BnEmptyTip-text[data-v-24b4124f]{height:24px;line-height:24px;text-align:center;font-size:14px;color:#ccc}`, ""]);
|
|
278
|
+
// Exports
|
|
279
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
280
|
+
|
|
281
|
+
|
|
258
282
|
/***/ },
|
|
259
283
|
|
|
260
284
|
/***/ 6408
|
|
@@ -431,7 +455,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.addressSet[data-v-50cd72d0]{display:f
|
|
|
431
455
|
|
|
432
456
|
/***/ },
|
|
433
457
|
|
|
434
|
-
/***/
|
|
458
|
+
/***/ 8412
|
|
435
459
|
(module, __webpack_exports__, __webpack_require__) {
|
|
436
460
|
|
|
437
461
|
"use strict";
|
|
@@ -455,7 +479,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.addPadding .el-input__inner{padding-r
|
|
|
455
479
|
|
|
456
480
|
/***/ },
|
|
457
481
|
|
|
458
|
-
/***/
|
|
482
|
+
/***/ 9095
|
|
459
483
|
(module, __webpack_exports__, __webpack_require__) {
|
|
460
484
|
|
|
461
485
|
"use strict";
|
|
@@ -475,14 +499,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
475
499
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
476
500
|
___CSS_LOADER_EXPORT___.i(_node_modules_css_loader_dist_cjs_js_clonedRuleSet_64_use_1_node_modules_vue_vue_loader_v15_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_64_use_2_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_64_use_3_font_iconfont_css__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A);
|
|
477
501
|
// Module
|
|
478
|
-
___CSS_LOADER_EXPORT___.push([module.id, `*[data-v-
|
|
502
|
+
___CSS_LOADER_EXPORT___.push([module.id, `*[data-v-75daf7c0]{box-sizing:border-box}.clearFix[data-v-75daf7c0]:after{display:block;content:"";clear:both}.input-ratio[data-v-75daf7c0]:after{content:"%";position:absolute;right:8px;top:calc(50% - 8px);color:#c0c4cc;font-weight:700}.bnRule[data-v-75daf7c0]{position:relative;width:100%}.bnRule-setting[data-v-75daf7c0]{position:relative;float:left;width:42%;display:flex;align-items:center}.bnRule-code[data-v-75daf7c0]{width:100%}.bnRule-condition[data-v-75daf7c0]{position:relative;float:left;width:58%;display:flex;align-items:center}.bnRule-wrap[data-v-75daf7c0]{flex-wrap:wrap}.bnRule-wrap .bnRule-setting[data-v-75daf7c0]{width:100%}.bnRule-wrap .bnRule-condition[data-v-75daf7c0]{width:100%;padding-left:24px}.bnRule-wrap .bnRule-setting .bnRule-component[data-v-75daf7c0]{flex-grow:0}.bnRule-wrap .bnRule-setting .bnRule-search[data-v-75daf7c0]{padding-right:10px}.bnRule-setting-left[data-v-75daf7c0]{display:flex;position:relative;flex-grow:1;align-items:center;max-width:100%}.bnRule-setting-left-min[data-v-75daf7c0]{max-width:calc(100% - 30px)}.bnRule-text[data-v-75daf7c0]{display:flex;position:relative;flex-grow:0;min-width:24px;align-items:center;padding-right:8px;color:#8c8c8c}.bnRule-component[data-v-75daf7c0]{position:relative;flex-grow:1}.bnRule-component-custom[data-v-75daf7c0]{position:absolute;right:8px;top:5px;padding:0 7px;height:22px;line-height:22px;border:1px solid rgba(0,0,0,.15);border-radius:2px;font-size:12px;background:#fff;cursor:pointer}.bnRule-component-custom[data-v-75daf7c0]:hover{color:#2783f2}.bnRule-search[data-v-75daf7c0]{width:140px;padding:0 10px}.bnRule-del[data-v-75daf7c0],.bnRule-search[data-v-75daf7c0]{position:relative;flex-grow:0}.bnRule-del[data-v-75daf7c0]{width:28px;text-align:right;line-height:32px;cursor:pointer;color:#8c8c8c}.bnRule-condition-valueType[data-v-75daf7c0]{position:relative;flex-grow:0;min-width:120px;max-width:130px}.bnRule-condition-subType[data-v-75daf7c0]{position:relative;flex-grow:0;min-width:96px}.bnRule-condition-value[data-v-75daf7c0]{position:relative;flex-grow:1}`, ""]);
|
|
479
503
|
// Exports
|
|
480
504
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
481
505
|
|
|
482
506
|
|
|
483
507
|
/***/ },
|
|
484
508
|
|
|
485
|
-
/***/
|
|
509
|
+
/***/ 3210
|
|
486
510
|
(module, __webpack_exports__, __webpack_require__) {
|
|
487
511
|
|
|
488
512
|
"use strict";
|
|
@@ -499,14 +523,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
499
523
|
|
|
500
524
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
501
525
|
// Module
|
|
502
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.bnRule-down[data-v-
|
|
526
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.bnRule-down[data-v-75daf7c0]{position:relative;min-width:80px;height:32px;line-height:32px;cursor:pointer;overflow:hidden;padding-right:20px}.bnRule-down-title[data-v-75daf7c0]{font-size:14px;color:#262626}.bnRule-down-title-empty[data-v-75daf7c0]{font-size:14px;color:#c0c4cc;margin-right:8px}.bnRule-down .bnWork-down[data-v-75daf7c0]{position:absolute;right:0;top:0;font-size:14px;color:#c0c4cc}.bnRule-condition.clearPadding[data-v-75daf7c0]{padding-left:0}`, ""]);
|
|
503
527
|
// Exports
|
|
504
528
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
505
529
|
|
|
506
530
|
|
|
507
531
|
/***/ },
|
|
508
532
|
|
|
509
|
-
/***/
|
|
533
|
+
/***/ 5101
|
|
510
534
|
(module, __webpack_exports__, __webpack_require__) {
|
|
511
535
|
|
|
512
536
|
"use strict";
|
|
@@ -523,7 +547,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
523
547
|
|
|
524
548
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
525
549
|
// Module
|
|
526
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.bnRule-simple[data-v-
|
|
550
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.bnRule-simple[data-v-75daf7c0]{padding-top:32px}.bnRule-simple .bnRule-setting .bnRule-search[data-v-75daf7c0]{flex-grow:1}.bnRule-simple-title[data-v-75daf7c0]{display:flex;justify-content:space-between;position:absolute;top:0;left:0;width:100%;height:32px;line-height:32px}.bnRule-component-title-text[data-v-75daf7c0],.bnRule-simple-title-text[data-v-75daf7c0]{max-width:calc(100% - 80px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bnRule-component-title-text[data-v-75daf7c0]{font-size:14px;color:#666}.bnRule-simple-title-but[data-v-75daf7c0]{color:#4b7df7;font-size:12px;cursor:pointer}`, ""]);
|
|
527
551
|
// Exports
|
|
528
552
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
529
553
|
|
|
@@ -1003,6 +1027,22 @@ var update = add("bdc5a4da", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1003
1027
|
|
|
1004
1028
|
/***/ },
|
|
1005
1029
|
|
|
1030
|
+
/***/ 2348
|
|
1031
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1032
|
+
|
|
1033
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1034
|
+
|
|
1035
|
+
// load the styles
|
|
1036
|
+
var content = __webpack_require__(3808);
|
|
1037
|
+
if(content.__esModule) content = content.default;
|
|
1038
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1039
|
+
if(content.locals) module.exports = content.locals;
|
|
1040
|
+
// add the styles to the DOM
|
|
1041
|
+
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1042
|
+
var update = add("28c22795", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1043
|
+
|
|
1044
|
+
/***/ },
|
|
1045
|
+
|
|
1006
1046
|
/***/ 9732
|
|
1007
1047
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1008
1048
|
|
|
@@ -1115,67 +1155,67 @@ var update = add("c93e91a8", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1115
1155
|
|
|
1116
1156
|
/***/ },
|
|
1117
1157
|
|
|
1118
|
-
/***/
|
|
1158
|
+
/***/ 8611
|
|
1119
1159
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1120
1160
|
|
|
1121
1161
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1122
1162
|
|
|
1123
1163
|
// load the styles
|
|
1124
|
-
var content = __webpack_require__(
|
|
1164
|
+
var content = __webpack_require__(8412);
|
|
1125
1165
|
if(content.__esModule) content = content.default;
|
|
1126
1166
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1127
1167
|
if(content.locals) module.exports = content.locals;
|
|
1128
1168
|
// add the styles to the DOM
|
|
1129
1169
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1130
|
-
var update = add("
|
|
1170
|
+
var update = add("3455c9b3", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1131
1171
|
|
|
1132
1172
|
/***/ },
|
|
1133
1173
|
|
|
1134
|
-
/***/
|
|
1174
|
+
/***/ 43
|
|
1135
1175
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1136
1176
|
|
|
1137
1177
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1138
1178
|
|
|
1139
1179
|
// load the styles
|
|
1140
|
-
var content = __webpack_require__(
|
|
1180
|
+
var content = __webpack_require__(9095);
|
|
1141
1181
|
if(content.__esModule) content = content.default;
|
|
1142
1182
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1143
1183
|
if(content.locals) module.exports = content.locals;
|
|
1144
1184
|
// add the styles to the DOM
|
|
1145
1185
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1146
|
-
var update = add("
|
|
1186
|
+
var update = add("48b8b57f", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1147
1187
|
|
|
1148
1188
|
/***/ },
|
|
1149
1189
|
|
|
1150
|
-
/***/
|
|
1190
|
+
/***/ 9454
|
|
1151
1191
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1152
1192
|
|
|
1153
1193
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1154
1194
|
|
|
1155
1195
|
// load the styles
|
|
1156
|
-
var content = __webpack_require__(
|
|
1196
|
+
var content = __webpack_require__(3210);
|
|
1157
1197
|
if(content.__esModule) content = content.default;
|
|
1158
1198
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1159
1199
|
if(content.locals) module.exports = content.locals;
|
|
1160
1200
|
// add the styles to the DOM
|
|
1161
1201
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1162
|
-
var update = add("
|
|
1202
|
+
var update = add("0ee33e40", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1163
1203
|
|
|
1164
1204
|
/***/ },
|
|
1165
1205
|
|
|
1166
|
-
/***/
|
|
1206
|
+
/***/ 8049
|
|
1167
1207
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1168
1208
|
|
|
1169
1209
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1170
1210
|
|
|
1171
1211
|
// load the styles
|
|
1172
|
-
var content = __webpack_require__(
|
|
1212
|
+
var content = __webpack_require__(5101);
|
|
1173
1213
|
if(content.__esModule) content = content.default;
|
|
1174
1214
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1175
1215
|
if(content.locals) module.exports = content.locals;
|
|
1176
1216
|
// add the styles to the DOM
|
|
1177
1217
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1178
|
-
var update = add("
|
|
1218
|
+
var update = add("55e471fe", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1179
1219
|
|
|
1180
1220
|
/***/ },
|
|
1181
1221
|
|
|
@@ -4246,7 +4286,7 @@ module.exports = function (it) {
|
|
|
4246
4286
|
|
|
4247
4287
|
/***/ },
|
|
4248
4288
|
|
|
4249
|
-
/***/
|
|
4289
|
+
/***/ 3138
|
|
4250
4290
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
4251
4291
|
|
|
4252
4292
|
"use strict";
|
|
@@ -6911,7 +6951,7 @@ module.exports = function (argument) {
|
|
|
6911
6951
|
|
|
6912
6952
|
var call = __webpack_require__(9565);
|
|
6913
6953
|
var isObject = __webpack_require__(34);
|
|
6914
|
-
var isSymbol = __webpack_require__(
|
|
6954
|
+
var isSymbol = __webpack_require__(3138);
|
|
6915
6955
|
var getMethod = __webpack_require__(5966);
|
|
6916
6956
|
var ordinaryToPrimitive = __webpack_require__(4270);
|
|
6917
6957
|
var wellKnownSymbol = __webpack_require__(8227);
|
|
@@ -6944,7 +6984,7 @@ module.exports = function (input, pref) {
|
|
|
6944
6984
|
"use strict";
|
|
6945
6985
|
|
|
6946
6986
|
var toPrimitive = __webpack_require__(2777);
|
|
6947
|
-
var isSymbol = __webpack_require__(
|
|
6987
|
+
var isSymbol = __webpack_require__(3138);
|
|
6948
6988
|
|
|
6949
6989
|
// `ToPropertyKey` abstract operation
|
|
6950
6990
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
@@ -8626,7 +8666,7 @@ var fails = __webpack_require__(9039);
|
|
|
8626
8666
|
var isArray = __webpack_require__(4376);
|
|
8627
8667
|
var isCallable = __webpack_require__(4901);
|
|
8628
8668
|
var isRawJSON = __webpack_require__(5810);
|
|
8629
|
-
var isSymbol = __webpack_require__(
|
|
8669
|
+
var isSymbol = __webpack_require__(3138);
|
|
8630
8670
|
var classof = __webpack_require__(2195);
|
|
8631
8671
|
var toString = __webpack_require__(655);
|
|
8632
8672
|
var arraySlice = __webpack_require__(7680);
|
|
@@ -8856,7 +8896,7 @@ var isForced = __webpack_require__(2796);
|
|
|
8856
8896
|
var hasOwn = __webpack_require__(9297);
|
|
8857
8897
|
var inheritIfRequired = __webpack_require__(3167);
|
|
8858
8898
|
var isPrototypeOf = __webpack_require__(1625);
|
|
8859
|
-
var isSymbol = __webpack_require__(
|
|
8899
|
+
var isSymbol = __webpack_require__(3138);
|
|
8860
8900
|
var toPrimitive = __webpack_require__(2777);
|
|
8861
8901
|
var fails = __webpack_require__(9039);
|
|
8862
8902
|
var getOwnPropertyNames = (__webpack_require__(8480).f);
|
|
@@ -10527,11 +10567,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10527
10567
|
BnDialog: () => (/* reexport */ dialog),
|
|
10528
10568
|
BnDrop: () => (/* reexport */ BnDrop),
|
|
10529
10569
|
BnDropdown: () => (/* reexport */ bnDropdown),
|
|
10570
|
+
BnEmptyTip: () => (/* reexport */ BnEmptyTip),
|
|
10530
10571
|
BnFiTaxAutoComplete: () => (/* reexport */ BnFiTaxAutoComplete),
|
|
10531
10572
|
BnFileView: () => (/* reexport */ BnFileView),
|
|
10532
10573
|
BnFunText: () => (/* reexport */ bnFunText),
|
|
10533
10574
|
BnInpNum: () => (/* reexport */ BnInpNum),
|
|
10534
|
-
BnInputNum: () => (/* reexport */ BnInputNum),
|
|
10535
10575
|
BnRuleCondition: () => (/* reexport */ bnRuleCondition),
|
|
10536
10576
|
BnSelect: () => (/* reexport */ BnSelect_select),
|
|
10537
10577
|
BnVirtPopover: () => (/* reexport */ BnVirtPopover),
|
|
@@ -14156,6 +14196,119 @@ var bnDropdown_component = normalizeComponent(
|
|
|
14156
14196
|
)
|
|
14157
14197
|
|
|
14158
14198
|
/* harmony default export */ const bnDropdown = (bnDropdown_component.exports);
|
|
14199
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnEmptyTip/BnEmptyTip.vue?vue&type=template&id=24b4124f&scoped=true
|
|
14200
|
+
var BnEmptyTipvue_type_template_id_24b4124f_scoped_true_render = function render() {
|
|
14201
|
+
var _vm = this,
|
|
14202
|
+
_c = _vm._self._c;
|
|
14203
|
+
return _c('div', {
|
|
14204
|
+
staticClass: "BnEmptyTip"
|
|
14205
|
+
}, [_c('div', {
|
|
14206
|
+
staticClass: "BnEmptyTip-box"
|
|
14207
|
+
}, [_c('div', {
|
|
14208
|
+
staticClass: "BnEmptyTip-img",
|
|
14209
|
+
style: _vm.boxStyle
|
|
14210
|
+
}), _c('div', {
|
|
14211
|
+
staticClass: "BnEmptyTip-text"
|
|
14212
|
+
}, [_vm._v(_vm._s(_vm.displayTip))])])]);
|
|
14213
|
+
};
|
|
14214
|
+
var BnEmptyTipvue_type_template_id_24b4124f_scoped_true_staticRenderFns = [];
|
|
14215
|
+
|
|
14216
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnEmptyTip/BnEmptyTip.vue?vue&type=script&lang=js
|
|
14217
|
+
|
|
14218
|
+
|
|
14219
|
+
var typeMap = {
|
|
14220
|
+
no: {
|
|
14221
|
+
url: 'https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_110527787_41d59fbd8671cfd9a5d2449ccdbfa03f.png',
|
|
14222
|
+
tip: '呀~没有内容呢~',
|
|
14223
|
+
width: 1,
|
|
14224
|
+
height: 0.8
|
|
14225
|
+
},
|
|
14226
|
+
search: {
|
|
14227
|
+
url: 'https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_457fba620e4e4c5ced6aab5691f3b933.png',
|
|
14228
|
+
tip: '呀~没有搜索到呢~',
|
|
14229
|
+
width: 0.8,
|
|
14230
|
+
height: 0.8
|
|
14231
|
+
},
|
|
14232
|
+
folder: {
|
|
14233
|
+
url: 'https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_3d1230b752dd77eded103a5161dd4fd7.png',
|
|
14234
|
+
tip: '呀~文件夹为空呢~',
|
|
14235
|
+
width: 0.8,
|
|
14236
|
+
height: 0.8
|
|
14237
|
+
},
|
|
14238
|
+
"default": {
|
|
14239
|
+
url: 'https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_24c3b65ec3eaedbf32ef990df0bff0f2.png',
|
|
14240
|
+
tip: '呀~没有内容呢~',
|
|
14241
|
+
width: 0.8,
|
|
14242
|
+
height: 0.8
|
|
14243
|
+
}
|
|
14244
|
+
};
|
|
14245
|
+
/* harmony default export */ const BnEmptyTipvue_type_script_lang_js = ({
|
|
14246
|
+
name: "BnEmptyTip",
|
|
14247
|
+
props: {
|
|
14248
|
+
url: {
|
|
14249
|
+
type: String,
|
|
14250
|
+
"default": ''
|
|
14251
|
+
},
|
|
14252
|
+
tip: {
|
|
14253
|
+
type: String,
|
|
14254
|
+
"default": ''
|
|
14255
|
+
},
|
|
14256
|
+
type: {
|
|
14257
|
+
type: String,
|
|
14258
|
+
"default": 'no'
|
|
14259
|
+
},
|
|
14260
|
+
size: {
|
|
14261
|
+
type: Number,
|
|
14262
|
+
"default": 200
|
|
14263
|
+
}
|
|
14264
|
+
},
|
|
14265
|
+
computed: {
|
|
14266
|
+
displayTip: function displayTip() {
|
|
14267
|
+
var _typeMap$this$type;
|
|
14268
|
+
return this.tip || ((_typeMap$this$type = typeMap[this.type]) === null || _typeMap$this$type === void 0 ? void 0 : _typeMap$this$type.tip) || typeMap.no.tip;
|
|
14269
|
+
},
|
|
14270
|
+
imgUrl: function imgUrl() {
|
|
14271
|
+
var _typeMap$this$type2;
|
|
14272
|
+
if (this.url) return this.url;
|
|
14273
|
+
return ((_typeMap$this$type2 = typeMap[this.type]) === null || _typeMap$this$type2 === void 0 ? void 0 : _typeMap$this$type2.url) || typeMap.no.url;
|
|
14274
|
+
},
|
|
14275
|
+
boxStyle: function boxStyle() {
|
|
14276
|
+
var _typeMap$this$type3, _typeMap$this$type4;
|
|
14277
|
+
return {
|
|
14278
|
+
backgroundImage: "url(".concat(this.imgUrl, ")"),
|
|
14279
|
+
width: "".concat(Math.round(this.size * (((_typeMap$this$type3 = typeMap[this.type]) === null || _typeMap$this$type3 === void 0 ? void 0 : _typeMap$this$type3.width) || 1)), "px"),
|
|
14280
|
+
height: "".concat(Math.round(this.size * (((_typeMap$this$type4 = typeMap[this.type]) === null || _typeMap$this$type4 === void 0 ? void 0 : _typeMap$this$type4.height) || 0.8)), "px")
|
|
14281
|
+
};
|
|
14282
|
+
}
|
|
14283
|
+
}
|
|
14284
|
+
});
|
|
14285
|
+
;// ./packages/BnEmptyTip/BnEmptyTip.vue?vue&type=script&lang=js
|
|
14286
|
+
/* harmony default export */ const BnEmptyTip_BnEmptyTipvue_type_script_lang_js = (BnEmptyTipvue_type_script_lang_js);
|
|
14287
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnEmptyTip/BnEmptyTip.vue?vue&type=style&index=0&id=24b4124f&prod&scoped=true&lang=scss
|
|
14288
|
+
var BnEmptyTipvue_type_style_index_0_id_24b4124f_prod_scoped_true_lang_scss = __webpack_require__(2348);
|
|
14289
|
+
;// ./packages/BnEmptyTip/BnEmptyTip.vue?vue&type=style&index=0&id=24b4124f&prod&scoped=true&lang=scss
|
|
14290
|
+
|
|
14291
|
+
;// ./packages/BnEmptyTip/BnEmptyTip.vue
|
|
14292
|
+
|
|
14293
|
+
|
|
14294
|
+
|
|
14295
|
+
;
|
|
14296
|
+
|
|
14297
|
+
|
|
14298
|
+
/* normalize component */
|
|
14299
|
+
|
|
14300
|
+
var BnEmptyTip_component = normalizeComponent(
|
|
14301
|
+
BnEmptyTip_BnEmptyTipvue_type_script_lang_js,
|
|
14302
|
+
BnEmptyTipvue_type_template_id_24b4124f_scoped_true_render,
|
|
14303
|
+
BnEmptyTipvue_type_template_id_24b4124f_scoped_true_staticRenderFns,
|
|
14304
|
+
false,
|
|
14305
|
+
null,
|
|
14306
|
+
"24b4124f",
|
|
14307
|
+
null
|
|
14308
|
+
|
|
14309
|
+
)
|
|
14310
|
+
|
|
14311
|
+
/* harmony default export */ const BnEmptyTip = (BnEmptyTip_component.exports);
|
|
14159
14312
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/BnFileView.vue?vue&type=template&id=27b6fb78&scoped=true
|
|
14160
14313
|
var BnFileViewvue_type_template_id_27b6fb78_scoped_true_render = function render() {
|
|
14161
14314
|
var _vm = this,
|
|
@@ -15810,178 +15963,7 @@ var BnInpNum_component = normalizeComponent(
|
|
|
15810
15963
|
)
|
|
15811
15964
|
|
|
15812
15965
|
/* harmony default export */ const BnInpNum = (BnInpNum_component.exports);
|
|
15813
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/
|
|
15814
|
-
var BnInputNumvue_type_template_id_2baef958_render = function render() {
|
|
15815
|
-
var _vm = this,
|
|
15816
|
-
_c = _vm._self._c;
|
|
15817
|
-
return _c('el-input', {
|
|
15818
|
-
attrs: {
|
|
15819
|
-
"placeholder": _vm.placeholder,
|
|
15820
|
-
"disabled": _vm.disabled,
|
|
15821
|
-
"size": _vm.size,
|
|
15822
|
-
"maxlength": _vm.maxlength
|
|
15823
|
-
},
|
|
15824
|
-
on: {
|
|
15825
|
-
"input": _vm.valInput,
|
|
15826
|
-
"change": _vm.valChange,
|
|
15827
|
-
"blur": _vm.inputBlur
|
|
15828
|
-
},
|
|
15829
|
-
model: {
|
|
15830
|
-
value: _vm.val,
|
|
15831
|
-
callback: function callback($$v) {
|
|
15832
|
-
_vm.val = $$v;
|
|
15833
|
-
},
|
|
15834
|
-
expression: "val"
|
|
15835
|
-
}
|
|
15836
|
-
});
|
|
15837
|
-
};
|
|
15838
|
-
var BnInputNumvue_type_template_id_2baef958_staticRenderFns = [];
|
|
15839
|
-
|
|
15840
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
15841
|
-
var es_regexp_test = __webpack_require__(906);
|
|
15842
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInputNum/BnInputNum.vue?vue&type=script&lang=js
|
|
15843
|
-
|
|
15844
|
-
|
|
15845
|
-
|
|
15846
|
-
|
|
15847
|
-
|
|
15848
|
-
|
|
15849
|
-
|
|
15850
|
-
|
|
15851
|
-
|
|
15852
|
-
|
|
15853
|
-
|
|
15854
|
-
|
|
15855
|
-
|
|
15856
|
-
|
|
15857
|
-
|
|
15858
|
-
|
|
15859
|
-
|
|
15860
|
-
|
|
15861
|
-
|
|
15862
|
-
|
|
15863
|
-
/* harmony default export */ const BnInputNumvue_type_script_lang_js = ({
|
|
15864
|
-
name: "bn-input-num",
|
|
15865
|
-
props: {
|
|
15866
|
-
value: [String, Number],
|
|
15867
|
-
placeholder: {
|
|
15868
|
-
type: String,
|
|
15869
|
-
"default": '请输入'
|
|
15870
|
-
},
|
|
15871
|
-
size: {
|
|
15872
|
-
type: String,
|
|
15873
|
-
"default": 'small'
|
|
15874
|
-
},
|
|
15875
|
-
disabled: {
|
|
15876
|
-
type: Boolean,
|
|
15877
|
-
"default": false
|
|
15878
|
-
},
|
|
15879
|
-
max: {
|
|
15880
|
-
type: [String, Number]
|
|
15881
|
-
},
|
|
15882
|
-
min: {
|
|
15883
|
-
type: [String, Number]
|
|
15884
|
-
},
|
|
15885
|
-
maxlength: {
|
|
15886
|
-
type: [String, Number]
|
|
15887
|
-
},
|
|
15888
|
-
precision: {
|
|
15889
|
-
type: [String, Number]
|
|
15890
|
-
}
|
|
15891
|
-
},
|
|
15892
|
-
computed: {
|
|
15893
|
-
val: {
|
|
15894
|
-
get: function get() {
|
|
15895
|
-
return this.value;
|
|
15896
|
-
},
|
|
15897
|
-
set: function set(val) {
|
|
15898
|
-
this.$emit("input", val);
|
|
15899
|
-
}
|
|
15900
|
-
}
|
|
15901
|
-
},
|
|
15902
|
-
methods: {
|
|
15903
|
-
// 实时变化
|
|
15904
|
-
valInput: function valInput(val) {
|
|
15905
|
-
var value = val;
|
|
15906
|
-
var regex = /^-?\d*\.?\d*$/;
|
|
15907
|
-
// 检查输入值是否符合正则表达式,并且不包含多个 '-' 符号
|
|
15908
|
-
if (!regex.test(value)) {
|
|
15909
|
-
value = value.replace(/[^0-9.-]/g, ''); // 移除无效字符
|
|
15910
|
-
}
|
|
15911
|
-
// 确保 '-' 只出现在最前面,在中间和后面出现的负数进行移除
|
|
15912
|
-
var hyphenIndex = value.indexOf('-');
|
|
15913
|
-
if (hyphenIndex == 0) {
|
|
15914
|
-
value = '-' + value.replace(/-/g, ''); // 移除所有 '-'
|
|
15915
|
-
} else if (value.indexOf('-') > 0) {
|
|
15916
|
-
value = value.replace(/-/g, ''); // 移除所有 '-'
|
|
15917
|
-
}
|
|
15918
|
-
// 确保 '.' 小数点不能出现在最前面,并且只能出现一次
|
|
15919
|
-
var sIndex = value.indexOf('.');
|
|
15920
|
-
if (sIndex == 0) {
|
|
15921
|
-
value = value.replace(/\./g, '');
|
|
15922
|
-
} else if (sIndex > 0) {
|
|
15923
|
-
value = value.replace(/\./g, '');
|
|
15924
|
-
value = "".concat(value.slice(0, sIndex), ".").concat(value.slice(sIndex));
|
|
15925
|
-
}
|
|
15926
|
-
// 核实精度
|
|
15927
|
-
if (value != '' && this.precision != null && this.precision != undefined && this.precision >= 0) {
|
|
15928
|
-
if (value != '-') {
|
|
15929
|
-
if (this.precision == 0) {
|
|
15930
|
-
value = parseInt(value);
|
|
15931
|
-
} else {
|
|
15932
|
-
var num = value.split('.');
|
|
15933
|
-
if (num[1] && num[1].length > this.precision) {
|
|
15934
|
-
value = parseFloat(value).toFixed(this.precision);
|
|
15935
|
-
}
|
|
15936
|
-
}
|
|
15937
|
-
} else {
|
|
15938
|
-
value = '-';
|
|
15939
|
-
}
|
|
15940
|
-
}
|
|
15941
|
-
this.val = value;
|
|
15942
|
-
},
|
|
15943
|
-
// chang事件上报
|
|
15944
|
-
valChange: function valChange() {
|
|
15945
|
-
if (this.val == '-') {
|
|
15946
|
-
this.val = '';
|
|
15947
|
-
}
|
|
15948
|
-
if (this.val && this.max && this.val > this.max) {
|
|
15949
|
-
this.val = this.max;
|
|
15950
|
-
}
|
|
15951
|
-
if (this.val && this.min && this.val < this.min) {
|
|
15952
|
-
this.val = this.min;
|
|
15953
|
-
}
|
|
15954
|
-
this.$emit('change', this.val);
|
|
15955
|
-
},
|
|
15956
|
-
// blur事件上报
|
|
15957
|
-
inputBlur: function inputBlur() {
|
|
15958
|
-
this.$emit('blur', this.val);
|
|
15959
|
-
}
|
|
15960
|
-
}
|
|
15961
|
-
});
|
|
15962
|
-
;// ./packages/BnInputNum/BnInputNum.vue?vue&type=script&lang=js
|
|
15963
|
-
/* harmony default export */ const BnInputNum_BnInputNumvue_type_script_lang_js = (BnInputNumvue_type_script_lang_js);
|
|
15964
|
-
;// ./packages/BnInputNum/BnInputNum.vue
|
|
15965
|
-
|
|
15966
|
-
|
|
15967
|
-
|
|
15968
|
-
|
|
15969
|
-
|
|
15970
|
-
/* normalize component */
|
|
15971
|
-
;
|
|
15972
|
-
var BnInputNum_component = normalizeComponent(
|
|
15973
|
-
BnInputNum_BnInputNumvue_type_script_lang_js,
|
|
15974
|
-
BnInputNumvue_type_template_id_2baef958_render,
|
|
15975
|
-
BnInputNumvue_type_template_id_2baef958_staticRenderFns,
|
|
15976
|
-
false,
|
|
15977
|
-
null,
|
|
15978
|
-
null,
|
|
15979
|
-
null
|
|
15980
|
-
|
|
15981
|
-
)
|
|
15982
|
-
|
|
15983
|
-
/* harmony default export */ const BnInputNum = (BnInputNum_component.exports);
|
|
15984
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=template&id=1d87e9a2&scoped=true
|
|
15966
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=template&id=75daf7c0&scoped=true
|
|
15985
15967
|
|
|
15986
15968
|
|
|
15987
15969
|
|
|
@@ -15999,7 +15981,7 @@ var BnInputNum_component = normalizeComponent(
|
|
|
15999
15981
|
|
|
16000
15982
|
|
|
16001
15983
|
|
|
16002
|
-
var
|
|
15984
|
+
var bnRuleConditionvue_type_template_id_75daf7c0_scoped_true_render = function render() {
|
|
16003
15985
|
var _vm = this,
|
|
16004
15986
|
_c = _vm._self._c;
|
|
16005
15987
|
return _c('div', {
|
|
@@ -16315,7 +16297,7 @@ var bnRuleConditionvue_type_template_id_1d87e9a2_scoped_true_render = function r
|
|
|
16315
16297
|
},
|
|
16316
16298
|
expression: "ruleVal[optionProps.value]"
|
|
16317
16299
|
}
|
|
16318
|
-
}) : ['string', 'number'].indexOf(_typeof(_vm.ruleVal[_vm.optionProps.value])) != '-1' && _vm.ruleVal[_vm.optionProps.searchType] != '8' && _vm.ruleVal.behaviorType == 2 || _vm.ruleVal.behaviorType == 7 && _vm.allowSubType && ['3', '4', '6', '7', '8', '9'].includes(_vm.ruleVal[_vm.optionProps.subType]) ? _c('
|
|
16300
|
+
}) : ['string', 'number'].indexOf(_typeof(_vm.ruleVal[_vm.optionProps.value])) != '-1' && _vm.ruleVal[_vm.optionProps.searchType] != '8' && _vm.ruleVal.behaviorType == 2 || _vm.ruleVal.behaviorType == 7 && _vm.allowSubType && ['3', '4', '6', '7', '8', '9'].includes(_vm.ruleVal[_vm.optionProps.subType]) ? _c('BnInpNum', {
|
|
16319
16301
|
staticClass: "bnRule-condition-input",
|
|
16320
16302
|
"class": {
|
|
16321
16303
|
'input-ratio': _vm.ruleVal[_vm.optionProps.searchType] == '27'
|
|
@@ -16547,9 +16529,9 @@ var bnRuleConditionvue_type_template_id_1d87e9a2_scoped_true_render = function r
|
|
|
16547
16529
|
staticClass: "bnUIcon bnUIcon-delete"
|
|
16548
16530
|
})]) : _vm._e()], 2) : _vm._e()]);
|
|
16549
16531
|
};
|
|
16550
|
-
var
|
|
16532
|
+
var bnRuleConditionvue_type_template_id_75daf7c0_scoped_true_staticRenderFns = [];
|
|
16551
16533
|
|
|
16552
|
-
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=template&id=
|
|
16534
|
+
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=template&id=75daf7c0&scoped=true
|
|
16553
16535
|
|
|
16554
16536
|
;// ./packages/BnRuleCondition/util.js
|
|
16555
16537
|
/* unused harmony import specifier */ var util_toConsumableArray;
|
|
@@ -18775,21 +18757,21 @@ var numberReg_component = normalizeComponent(
|
|
|
18775
18757
|
});
|
|
18776
18758
|
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=script&lang=js
|
|
18777
18759
|
/* harmony default export */ const BnRuleCondition_bnRuleConditionvue_type_script_lang_js = (bnRuleConditionvue_type_script_lang_js);
|
|
18778
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=0&id=
|
|
18779
|
-
var
|
|
18780
|
-
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=0&id=
|
|
18760
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=0&id=75daf7c0&prod&lang=scss
|
|
18761
|
+
var bnRuleConditionvue_type_style_index_0_id_75daf7c0_prod_lang_scss = __webpack_require__(8611);
|
|
18762
|
+
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=0&id=75daf7c0&prod&lang=scss
|
|
18781
18763
|
|
|
18782
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=1&id=
|
|
18783
|
-
var
|
|
18784
|
-
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=1&id=
|
|
18764
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=1&id=75daf7c0&prod&lang=scss&scoped=true
|
|
18765
|
+
var bnRuleConditionvue_type_style_index_1_id_75daf7c0_prod_lang_scss_scoped_true = __webpack_require__(43);
|
|
18766
|
+
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=1&id=75daf7c0&prod&lang=scss&scoped=true
|
|
18785
18767
|
|
|
18786
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=2&id=
|
|
18787
|
-
var
|
|
18788
|
-
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=2&id=
|
|
18768
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=2&id=75daf7c0&prod&lang=scss&scoped=true
|
|
18769
|
+
var bnRuleConditionvue_type_style_index_2_id_75daf7c0_prod_lang_scss_scoped_true = __webpack_require__(9454);
|
|
18770
|
+
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=2&id=75daf7c0&prod&lang=scss&scoped=true
|
|
18789
18771
|
|
|
18790
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=3&id=
|
|
18791
|
-
var
|
|
18792
|
-
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=3&id=
|
|
18772
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=3&id=75daf7c0&prod&lang=scss&scoped=true
|
|
18773
|
+
var bnRuleConditionvue_type_style_index_3_id_75daf7c0_prod_lang_scss_scoped_true = __webpack_require__(8049);
|
|
18774
|
+
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=3&id=75daf7c0&prod&lang=scss&scoped=true
|
|
18793
18775
|
|
|
18794
18776
|
;// ./packages/BnRuleCondition/bnRuleCondition.vue
|
|
18795
18777
|
|
|
@@ -18805,11 +18787,11 @@ var bnRuleConditionvue_type_style_index_3_id_1d87e9a2_prod_lang_scss_scoped_true
|
|
|
18805
18787
|
|
|
18806
18788
|
var bnRuleCondition_component = normalizeComponent(
|
|
18807
18789
|
BnRuleCondition_bnRuleConditionvue_type_script_lang_js,
|
|
18808
|
-
|
|
18809
|
-
|
|
18790
|
+
bnRuleConditionvue_type_template_id_75daf7c0_scoped_true_render,
|
|
18791
|
+
bnRuleConditionvue_type_template_id_75daf7c0_scoped_true_staticRenderFns,
|
|
18810
18792
|
false,
|
|
18811
18793
|
null,
|
|
18812
|
-
"
|
|
18794
|
+
"75daf7c0",
|
|
18813
18795
|
null
|
|
18814
18796
|
|
|
18815
18797
|
)
|
|
@@ -21136,6 +21118,8 @@ var BnVirtPopovervue_type_template_id_387cfe9e_scoped_true_render = function ren
|
|
|
21136
21118
|
};
|
|
21137
21119
|
var BnVirtPopovervue_type_template_id_387cfe9e_scoped_true_staticRenderFns = [];
|
|
21138
21120
|
|
|
21121
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
21122
|
+
var es_regexp_test = __webpack_require__(906);
|
|
21139
21123
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
21140
21124
|
var es_string_trim = __webpack_require__(2762);
|
|
21141
21125
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnVirtPopover/index.vue?vue&type=script&lang=js
|
|
@@ -21657,6 +21641,168 @@ function parseArea(list, init) {
|
|
|
21657
21641
|
});
|
|
21658
21642
|
}
|
|
21659
21643
|
|
|
21644
|
+
/**
|
|
21645
|
+
* 是否为四级地址配置(省/市/区/街道)
|
|
21646
|
+
*/
|
|
21647
|
+
function isFourAddressLevel(sourceData) {
|
|
21648
|
+
return !!(sourceData && sourceData.extraInfo && sourceData.extraInfo.isFourAddress == 1);
|
|
21649
|
+
}
|
|
21650
|
+
var CITY_SUFFIX_KEYS = ['布依族苗族自治州', '苗族侗族自治州', '自治州', '州', '市', '县', '地区'];
|
|
21651
|
+
var INVALID_AREA_NAMES = ['其他', '其它区', '其他区'];
|
|
21652
|
+
|
|
21653
|
+
/**
|
|
21654
|
+
* 去掉地址片段开头的市/州等后缀
|
|
21655
|
+
*/
|
|
21656
|
+
function stripLeadingCitySuffix(text) {
|
|
21657
|
+
var result = text;
|
|
21658
|
+
for (var i = 0; i < CITY_SUFFIX_KEYS.length; i++) {
|
|
21659
|
+
var suffix = CITY_SUFFIX_KEYS[i];
|
|
21660
|
+
if (result.indexOf(suffix) === 0) {
|
|
21661
|
+
result = result.substring(suffix.length);
|
|
21662
|
+
break;
|
|
21663
|
+
}
|
|
21664
|
+
}
|
|
21665
|
+
return result;
|
|
21666
|
+
}
|
|
21667
|
+
|
|
21668
|
+
/**
|
|
21669
|
+
* 同名区对应多个城市时,根据地址中是否出现城市名进行消歧
|
|
21670
|
+
*/
|
|
21671
|
+
function pickCityByContext(address, areaName, areaData) {
|
|
21672
|
+
if (!areaData || areaData.length === 0) {
|
|
21673
|
+
return null;
|
|
21674
|
+
}
|
|
21675
|
+
if (areaData.length === 1) {
|
|
21676
|
+
return areaData[0];
|
|
21677
|
+
}
|
|
21678
|
+
var areaIdx = address.indexOf(areaName);
|
|
21679
|
+
var best = null;
|
|
21680
|
+
var bestScore = -1;
|
|
21681
|
+
for (var i = 0; i < areaData.length; i++) {
|
|
21682
|
+
var candidate = areaData[i];
|
|
21683
|
+
var score = 0;
|
|
21684
|
+
var cityIdx = address.indexOf(candidate.c);
|
|
21685
|
+
if (cityIdx > -1 && (areaIdx === -1 || cityIdx < areaIdx)) {
|
|
21686
|
+
score = 1000 - (areaIdx === -1 ? cityIdx : areaIdx - cityIdx);
|
|
21687
|
+
}
|
|
21688
|
+
var cityShort = candidate.c.replace('市', '').replace('地区', '');
|
|
21689
|
+
if (cityShort.length >= 2 && cityShort !== candidate.c) {
|
|
21690
|
+
var shortIdx = address.indexOf(cityShort);
|
|
21691
|
+
if (shortIdx > -1 && (areaIdx === -1 || shortIdx < areaIdx)) {
|
|
21692
|
+
var shortScore = 500 - (areaIdx === -1 ? shortIdx : areaIdx - shortIdx);
|
|
21693
|
+
if (shortScore > score) {
|
|
21694
|
+
score = shortScore;
|
|
21695
|
+
}
|
|
21696
|
+
}
|
|
21697
|
+
}
|
|
21698
|
+
if (address.indexOf(candidate.p) > -1) {
|
|
21699
|
+
score += 10;
|
|
21700
|
+
}
|
|
21701
|
+
if (score > bestScore) {
|
|
21702
|
+
bestScore = score;
|
|
21703
|
+
best = candidate;
|
|
21704
|
+
}
|
|
21705
|
+
}
|
|
21706
|
+
return best || areaData[0];
|
|
21707
|
+
}
|
|
21708
|
+
|
|
21709
|
+
/**
|
|
21710
|
+
* 在文本中匹配城市,返回最早出现的城市
|
|
21711
|
+
*/
|
|
21712
|
+
function matchCityInText(text, cities) {
|
|
21713
|
+
var matchedCity = null;
|
|
21714
|
+
var matchIdx = -1;
|
|
21715
|
+
var matchedLength = 0;
|
|
21716
|
+
for (var i = 0; i < cities.length; i++) {
|
|
21717
|
+
var city = cities[i];
|
|
21718
|
+
var cityName = city.name;
|
|
21719
|
+
var idx = text.indexOf(cityName);
|
|
21720
|
+
if (idx > -1 && idx < 15) {
|
|
21721
|
+
if (matchIdx === -1 || idx < matchIdx || idx === matchIdx && cityName.length > matchedLength) {
|
|
21722
|
+
matchedCity = city;
|
|
21723
|
+
matchIdx = idx;
|
|
21724
|
+
matchedLength = cityName.length;
|
|
21725
|
+
}
|
|
21726
|
+
}
|
|
21727
|
+
var cityShort = cityName.replace('市', '').replace('地区', '');
|
|
21728
|
+
if (cityShort !== cityName && cityShort.length >= 2) {
|
|
21729
|
+
var shortIdx = text.indexOf(cityShort);
|
|
21730
|
+
if (shortIdx > -1 && shortIdx < 15) {
|
|
21731
|
+
if (matchIdx === -1 || shortIdx < matchIdx || shortIdx === matchIdx && cityShort.length > matchedLength) {
|
|
21732
|
+
matchedCity = city;
|
|
21733
|
+
matchIdx = shortIdx;
|
|
21734
|
+
matchedLength = cityShort.length;
|
|
21735
|
+
}
|
|
21736
|
+
}
|
|
21737
|
+
}
|
|
21738
|
+
}
|
|
21739
|
+
if (!matchedCity) {
|
|
21740
|
+
return null;
|
|
21741
|
+
}
|
|
21742
|
+
var afterCity = text.substring(matchIdx + matchedLength);
|
|
21743
|
+
afterCity = stripLeadingCitySuffix(afterCity);
|
|
21744
|
+
return {
|
|
21745
|
+
city: matchedCity,
|
|
21746
|
+
afterCity: afterCity
|
|
21747
|
+
};
|
|
21748
|
+
}
|
|
21749
|
+
|
|
21750
|
+
/**
|
|
21751
|
+
* 在城市范围内匹配区/街道,并写入 parse
|
|
21752
|
+
*/
|
|
21753
|
+
function matchAreaInCity(afterCity, city, sourceData, parse) {
|
|
21754
|
+
if (!city.area || city.area.length === 0) {
|
|
21755
|
+
return afterCity;
|
|
21756
|
+
}
|
|
21757
|
+
var sortedAreas = city.area.filter(function (a) {
|
|
21758
|
+
return a && INVALID_AREA_NAMES.indexOf(a) === -1 && a.length >= 2;
|
|
21759
|
+
}).sort(function (a, b) {
|
|
21760
|
+
return b.length - a.length;
|
|
21761
|
+
});
|
|
21762
|
+
for (var i = 0; i < sortedAreas.length; i++) {
|
|
21763
|
+
var areaName = sortedAreas[i];
|
|
21764
|
+
var areaIdx = afterCity.indexOf(areaName);
|
|
21765
|
+
if (areaIdx > -1 && areaIdx < 15) {
|
|
21766
|
+
parse.area = areaName;
|
|
21767
|
+
var afterArea = afterCity.substring(areaIdx + areaName.length);
|
|
21768
|
+
if (isFourAddressLevel(sourceData) && city.street && city.street[areaName]) {
|
|
21769
|
+
var streets = city.street[areaName];
|
|
21770
|
+
if (streets && streets.length > 0) {
|
|
21771
|
+
var sortedStreets = streets.filter(function (s) {
|
|
21772
|
+
return s && INVALID_AREA_NAMES.indexOf(s) === -1 && s.length >= 2;
|
|
21773
|
+
}).sort(function (a, b) {
|
|
21774
|
+
return b.length - a.length;
|
|
21775
|
+
});
|
|
21776
|
+
for (var j = 0; j < sortedStreets.length; j++) {
|
|
21777
|
+
var streetName = sortedStreets[j];
|
|
21778
|
+
var streetIdx = afterArea.indexOf(streetName);
|
|
21779
|
+
if (streetIdx > -1 && streetIdx < 8) {
|
|
21780
|
+
parse.street = streetName;
|
|
21781
|
+
afterArea = afterArea.substring(streetIdx + streetName.length);
|
|
21782
|
+
break;
|
|
21783
|
+
}
|
|
21784
|
+
var streetShort = streetName.replace('街道', '').replace('镇', '').replace('乡', '');
|
|
21785
|
+
if (streetShort !== streetName && streetShort.length >= 2) {
|
|
21786
|
+
streetIdx = afterArea.indexOf(streetShort);
|
|
21787
|
+
if (streetIdx > -1 && streetIdx < 8) {
|
|
21788
|
+
parse.street = streetName;
|
|
21789
|
+
afterArea = afterArea.substring(streetIdx + streetShort.length);
|
|
21790
|
+
if (afterArea.startsWith('区')) {
|
|
21791
|
+
afterArea = afterArea.substring(1);
|
|
21792
|
+
}
|
|
21793
|
+
break;
|
|
21794
|
+
}
|
|
21795
|
+
}
|
|
21796
|
+
}
|
|
21797
|
+
}
|
|
21798
|
+
}
|
|
21799
|
+
parse.addr = afterArea.trim();
|
|
21800
|
+
return '';
|
|
21801
|
+
}
|
|
21802
|
+
}
|
|
21803
|
+
return afterCity;
|
|
21804
|
+
}
|
|
21805
|
+
|
|
21660
21806
|
/**
|
|
21661
21807
|
* 解析地址详情(内部方法,需先调用 parseArea 初始化地址库)
|
|
21662
21808
|
* @param address 任意地址字符串
|
|
@@ -21771,6 +21917,14 @@ function parseAddressDetail(address, sourceData) {
|
|
|
21771
21917
|
parse.area = detail.area || '';
|
|
21772
21918
|
parse.street = detail.street || '';
|
|
21773
21919
|
parse.addr = detail.addr || '';
|
|
21920
|
+
|
|
21921
|
+
// 三级地址:街道合并到详细地址,不单独识别
|
|
21922
|
+
if (!isFourAddressLevel(sourceData)) {
|
|
21923
|
+
if (parse.street) {
|
|
21924
|
+
parse.addr = "".concat(parse.street).concat(parse.addr || '');
|
|
21925
|
+
parse.street = '';
|
|
21926
|
+
}
|
|
21927
|
+
}
|
|
21774
21928
|
if (presetName) {
|
|
21775
21929
|
parse.name = presetName;
|
|
21776
21930
|
if (parse.addr) {
|
|
@@ -21941,154 +22095,106 @@ function detail_parse_forward(address, sourceData) {
|
|
|
21941
22095
|
return parse;
|
|
21942
22096
|
}
|
|
21943
22097
|
|
|
21944
|
-
// ==========
|
|
22098
|
+
// ========== 第二步:优先匹配城市,再匹配区;无城市时再按区反推 ==========
|
|
21945
22099
|
if (matchedProvince.city && matchedProvince.city.length > 0) {
|
|
21946
|
-
|
|
22100
|
+
var cityMatch = matchCityInText(remaining, matchedProvince.city);
|
|
22101
|
+
if (cityMatch) {
|
|
22102
|
+
parse.city = cityMatch.city.name;
|
|
22103
|
+
console.log('匹配到城市:', parse.city);
|
|
22104
|
+
var afterArea = matchAreaInCity(cityMatch.afterCity, cityMatch.city, sourceData, parse);
|
|
22105
|
+
if (parse.area) {
|
|
22106
|
+
console.log('匹配到area:', parse.area, '城市:', parse.city);
|
|
22107
|
+
return parse;
|
|
22108
|
+
}
|
|
22109
|
+
parse.addr = afterArea.trim();
|
|
22110
|
+
return parse;
|
|
22111
|
+
}
|
|
22112
|
+
console.log('未匹配到城市,尝试通过区名反推城市');
|
|
22113
|
+
|
|
22114
|
+
// 收集所有 area,同名区优先选择地址中出现对应城市名的
|
|
21947
22115
|
var allAreas = [];
|
|
21948
|
-
var
|
|
21949
|
-
|
|
21950
|
-
|
|
21951
|
-
|
|
21952
|
-
|
|
21953
|
-
|
|
21954
|
-
|
|
21955
|
-
|
|
21956
|
-
|
|
21957
|
-
|
|
21958
|
-
|
|
21959
|
-
|
|
21960
|
-
|
|
21961
|
-
|
|
21962
|
-
cityName: city.name,
|
|
21963
|
-
cityData: city
|
|
21964
|
-
});
|
|
21965
|
-
}
|
|
22116
|
+
for (var _i2 = 0; _i2 < matchedProvince.city.length; _i2++) {
|
|
22117
|
+
var city = matchedProvince.city[_i2];
|
|
22118
|
+
if (city.area && city.area.length > 0) {
|
|
22119
|
+
for (var j = 0; j < city.area.length; j++) {
|
|
22120
|
+
var areaName = city.area[j];
|
|
22121
|
+
if (areaName && INVALID_AREA_NAMES.indexOf(areaName) === -1 && areaName.length >= 2) {
|
|
22122
|
+
var _idx = remaining.indexOf(areaName);
|
|
22123
|
+
if (_idx > -1 && _idx < 15) {
|
|
22124
|
+
allAreas.push({
|
|
22125
|
+
areaName: areaName,
|
|
22126
|
+
cityName: city.name,
|
|
22127
|
+
cityData: city,
|
|
22128
|
+
index: _idx
|
|
22129
|
+
});
|
|
21966
22130
|
}
|
|
21967
|
-
} catch (err) {
|
|
21968
|
-
_iterator4.e(err);
|
|
21969
|
-
} finally {
|
|
21970
|
-
_iterator4.f();
|
|
21971
22131
|
}
|
|
21972
22132
|
}
|
|
21973
22133
|
}
|
|
21974
|
-
|
|
21975
|
-
// 按长度降序
|
|
21976
|
-
} catch (err) {
|
|
21977
|
-
_iterator.e(err);
|
|
21978
|
-
} finally {
|
|
21979
|
-
_iterator.f();
|
|
21980
22134
|
}
|
|
21981
22135
|
allAreas.sort(function (a, b) {
|
|
22136
|
+
if (a.index !== b.index) {
|
|
22137
|
+
return a.index - b.index;
|
|
22138
|
+
}
|
|
21982
22139
|
return b.areaName.length - a.areaName.length;
|
|
21983
22140
|
});
|
|
21984
|
-
|
|
21985
|
-
|
|
21986
|
-
|
|
21987
|
-
|
|
21988
|
-
|
|
21989
|
-
|
|
21990
|
-
|
|
21991
|
-
|
|
21992
|
-
|
|
21993
|
-
|
|
21994
|
-
|
|
21995
|
-
|
|
21996
|
-
|
|
21997
|
-
|
|
21998
|
-
|
|
21999
|
-
|
|
22000
|
-
|
|
22001
|
-
|
|
22002
|
-
return b.length - a.length;
|
|
22003
|
-
});
|
|
22004
|
-
console.log('该area下的街道:', sortedStreets.slice(0, 5));
|
|
22005
|
-
var _iterator2 = _createForOfIteratorHelper(sortedStreets),
|
|
22006
|
-
_step2;
|
|
22007
|
-
try {
|
|
22008
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
22009
|
-
var streetName = _step2.value;
|
|
22010
|
-
// 完整匹配
|
|
22011
|
-
var streetIdx = afterArea.indexOf(streetName);
|
|
22012
|
-
if (streetIdx > -1 && streetIdx < 8) {
|
|
22013
|
-
parse.street = streetName;
|
|
22014
|
-
afterArea = afterArea.substring(streetIdx + streetName.length);
|
|
22015
|
-
console.log('匹配到街道(完整):', streetName);
|
|
22016
|
-
break;
|
|
22017
|
-
}
|
|
22018
|
-
|
|
22019
|
-
// 模糊匹配:去掉后缀
|
|
22020
|
-
var streetShort = streetName.replace('街道', '').replace('镇', '').replace('乡', '');
|
|
22021
|
-
if (streetShort !== streetName && streetShort.length >= 2) {
|
|
22022
|
-
streetIdx = afterArea.indexOf(streetShort);
|
|
22023
|
-
if (streetIdx > -1 && streetIdx < 8) {
|
|
22024
|
-
parse.street = streetName;
|
|
22025
|
-
afterArea = afterArea.substring(streetIdx + streetShort.length);
|
|
22026
|
-
if (afterArea.startsWith('区')) {
|
|
22027
|
-
afterArea = afterArea.substring(1);
|
|
22028
|
-
}
|
|
22029
|
-
console.log('匹配到街道(模糊):', streetShort, '->', streetName);
|
|
22030
|
-
break;
|
|
22031
|
-
}
|
|
22032
|
-
}
|
|
22033
|
-
}
|
|
22034
|
-
} catch (err) {
|
|
22035
|
-
_iterator2.e(err);
|
|
22036
|
-
} finally {
|
|
22037
|
-
_iterator2.f();
|
|
22038
|
-
}
|
|
22039
|
-
}
|
|
22141
|
+
if (allAreas.length > 0) {
|
|
22142
|
+
var firstAreaName = allAreas[0].areaName;
|
|
22143
|
+
var sameNameAreas = allAreas.filter(function (item) {
|
|
22144
|
+
return item.areaName === firstAreaName && item.index === allAreas[0].index;
|
|
22145
|
+
});
|
|
22146
|
+
var selectedArea = sameNameAreas[0];
|
|
22147
|
+
if (sameNameAreas.length > 1) {
|
|
22148
|
+
var areaData = sameNameAreas.map(function (item) {
|
|
22149
|
+
return {
|
|
22150
|
+
p: matchedProvince.name,
|
|
22151
|
+
c: item.cityName
|
|
22152
|
+
};
|
|
22153
|
+
});
|
|
22154
|
+
var picked = pickCityByContext(remaining, firstAreaName, areaData);
|
|
22155
|
+
if (picked) {
|
|
22156
|
+
selectedArea = sameNameAreas.find(function (item) {
|
|
22157
|
+
return item.cityName === picked.c;
|
|
22158
|
+
}) || selectedArea;
|
|
22040
22159
|
}
|
|
22041
|
-
parse.addr = afterArea.trim();
|
|
22042
|
-
return parse;
|
|
22043
22160
|
}
|
|
22044
|
-
|
|
22045
|
-
|
|
22046
|
-
|
|
22047
|
-
|
|
22048
|
-
|
|
22049
|
-
|
|
22050
|
-
|
|
22051
|
-
|
|
22052
|
-
|
|
22053
|
-
|
|
22054
|
-
|
|
22055
|
-
|
|
22056
|
-
|
|
22057
|
-
|
|
22058
|
-
|
|
22059
|
-
|
|
22060
|
-
|
|
22061
|
-
|
|
22062
|
-
|
|
22063
|
-
}
|
|
22064
|
-
|
|
22065
|
-
|
|
22066
|
-
|
|
22067
|
-
|
|
22068
|
-
|
|
22069
|
-
|
|
22070
|
-
|
|
22071
|
-
|
|
22072
|
-
if (areaIdx > -1 && areaIdx < 10) {
|
|
22073
|
-
parse.area = _areaName;
|
|
22074
|
-
remaining = remaining.substring(areaIdx + _areaName.length);
|
|
22075
|
-
break;
|
|
22161
|
+
parse.city = selectedArea.cityName;
|
|
22162
|
+
parse.area = selectedArea.areaName;
|
|
22163
|
+
var _afterArea = remaining.substring(selectedArea.index + selectedArea.areaName.length);
|
|
22164
|
+
console.log('通过区反推城市:', parse.city, 'area:', parse.area);
|
|
22165
|
+
if (isFourAddressLevel(sourceData) && selectedArea.cityData.street && selectedArea.cityData.street[selectedArea.areaName]) {
|
|
22166
|
+
var streets = selectedArea.cityData.street[selectedArea.areaName];
|
|
22167
|
+
if (streets && streets.length > 0) {
|
|
22168
|
+
var sortedStreets = streets.filter(function (s) {
|
|
22169
|
+
return s && INVALID_AREA_NAMES.indexOf(s) === -1 && s.length >= 2;
|
|
22170
|
+
}).sort(function (a, b) {
|
|
22171
|
+
return b.length - a.length;
|
|
22172
|
+
});
|
|
22173
|
+
for (var _i3 = 0; _i3 < sortedStreets.length; _i3++) {
|
|
22174
|
+
var streetName = sortedStreets[_i3];
|
|
22175
|
+
var streetIdx = _afterArea.indexOf(streetName);
|
|
22176
|
+
if (streetIdx > -1 && streetIdx < 8) {
|
|
22177
|
+
parse.street = streetName;
|
|
22178
|
+
_afterArea = _afterArea.substring(streetIdx + streetName.length);
|
|
22179
|
+
break;
|
|
22180
|
+
}
|
|
22181
|
+
var streetShort = streetName.replace('街道', '').replace('镇', '').replace('乡', '');
|
|
22182
|
+
if (streetShort !== streetName && streetShort.length >= 2) {
|
|
22183
|
+
streetIdx = _afterArea.indexOf(streetShort);
|
|
22184
|
+
if (streetIdx > -1 && streetIdx < 8) {
|
|
22185
|
+
parse.street = streetName;
|
|
22186
|
+
_afterArea = _afterArea.substring(streetIdx + streetShort.length);
|
|
22187
|
+
if (_afterArea.startsWith('区')) {
|
|
22188
|
+
_afterArea = _afterArea.substring(1);
|
|
22076
22189
|
}
|
|
22190
|
+
break;
|
|
22077
22191
|
}
|
|
22078
|
-
} catch (err) {
|
|
22079
|
-
_iterator5.e(err);
|
|
22080
|
-
} finally {
|
|
22081
|
-
_iterator5.f();
|
|
22082
22192
|
}
|
|
22083
22193
|
}
|
|
22084
|
-
parse.addr = remaining.trim();
|
|
22085
|
-
return parse;
|
|
22086
22194
|
}
|
|
22087
22195
|
}
|
|
22088
|
-
|
|
22089
|
-
|
|
22090
|
-
} finally {
|
|
22091
|
-
_iterator3.f();
|
|
22196
|
+
parse.addr = _afterArea.trim();
|
|
22197
|
+
return parse;
|
|
22092
22198
|
}
|
|
22093
22199
|
}
|
|
22094
22200
|
parse.addr = remaining;
|
|
@@ -22124,9 +22230,10 @@ function findProvinceByArea(address) {
|
|
|
22124
22230
|
var bestMatch = allAreas[0];
|
|
22125
22231
|
var areaData = bestMatch.data;
|
|
22126
22232
|
if (areaData && areaData.length >= 1) {
|
|
22233
|
+
var picked = pickCityByContext(address, bestMatch.name, areaData);
|
|
22127
22234
|
return {
|
|
22128
|
-
province:
|
|
22129
|
-
city:
|
|
22235
|
+
province: picked.p,
|
|
22236
|
+
city: picked.c,
|
|
22130
22237
|
area: bestMatch.name,
|
|
22131
22238
|
addr: address.substring(bestMatch.index + bestMatch.name.length)
|
|
22132
22239
|
};
|
|
@@ -22190,42 +22297,10 @@ function detail_parse(address) {
|
|
|
22190
22297
|
console.log('该area有多个城市:', areaData.map(function (d) {
|
|
22191
22298
|
return d.c;
|
|
22192
22299
|
}));
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
|
|
22197
|
-
try {
|
|
22198
|
-
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
22199
|
-
var _candidate = _step6.value;
|
|
22200
|
-
if (address.includes(_candidate.c)) {
|
|
22201
|
-
parse.province = _candidate.p;
|
|
22202
|
-
parse.city = _candidate.c;
|
|
22203
|
-
break;
|
|
22204
|
-
}
|
|
22205
|
-
}
|
|
22206
|
-
} catch (err) {
|
|
22207
|
-
_iterator6.e(err);
|
|
22208
|
-
} finally {
|
|
22209
|
-
_iterator6.f();
|
|
22210
|
-
}
|
|
22211
|
-
if (!parse.city) {
|
|
22212
|
-
var _iterator7 = _createForOfIteratorHelper(areaData),
|
|
22213
|
-
_step7;
|
|
22214
|
-
try {
|
|
22215
|
-
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
22216
|
-
var candidate = _step7.value;
|
|
22217
|
-
var cityShort = candidate.c.replace('市', '');
|
|
22218
|
-
if (cityShort.length >= 2 && address.includes(cityShort)) {
|
|
22219
|
-
parse.province = candidate.p;
|
|
22220
|
-
parse.city = candidate.c;
|
|
22221
|
-
break;
|
|
22222
|
-
}
|
|
22223
|
-
}
|
|
22224
|
-
} catch (err) {
|
|
22225
|
-
_iterator7.e(err);
|
|
22226
|
-
} finally {
|
|
22227
|
-
_iterator7.f();
|
|
22228
|
-
}
|
|
22300
|
+
var picked = pickCityByContext(address, bestMatch.name, areaData);
|
|
22301
|
+
if (picked) {
|
|
22302
|
+
parse.province = picked.p;
|
|
22303
|
+
parse.city = picked.c;
|
|
22229
22304
|
}
|
|
22230
22305
|
}
|
|
22231
22306
|
}
|
|
@@ -22497,13 +22572,10 @@ var ruleTypeMap = {
|
|
|
22497
22572
|
}, {
|
|
22498
22573
|
title: '不包含',
|
|
22499
22574
|
id: '4'
|
|
22500
|
-
},
|
|
22501
|
-
|
|
22502
|
-
|
|
22503
|
-
|
|
22504
|
-
title: '不包含任一项',
|
|
22505
|
-
id: '6'
|
|
22506
|
-
}, {
|
|
22575
|
+
},
|
|
22576
|
+
// {title: '包含任一项', id: '5'},
|
|
22577
|
+
// {title: '不包含任一项', id: '6'},
|
|
22578
|
+
{
|
|
22507
22579
|
title: '为空',
|
|
22508
22580
|
id: '9'
|
|
22509
22581
|
}, {
|
|
@@ -23421,11 +23493,11 @@ function insertText(dom, value) {
|
|
|
23421
23493
|
}
|
|
23422
23494
|
|
|
23423
23495
|
/**
|
|
23424
|
-
*
|
|
23496
|
+
* 格式化规则设置中单个组件信息
|
|
23425
23497
|
* @param Object component 组件信息
|
|
23426
23498
|
* */
|
|
23427
23499
|
function tidyRuleComponent(component) {
|
|
23428
|
-
var _ruleTypeMap$componen;
|
|
23500
|
+
var _ruleTypeMap$componen, _ruleTypeMap$componen2;
|
|
23429
23501
|
// 组件必须可见
|
|
23430
23502
|
if (component.extraInfo.listShow != 1) {
|
|
23431
23503
|
return null;
|
|
@@ -23441,6 +23513,7 @@ function tidyRuleComponent(component) {
|
|
|
23441
23513
|
insideDataSourceInfo: component.insideDataSourceInfo,
|
|
23442
23514
|
outDataSourceInfo: component.outDataSourceInfo || [],
|
|
23443
23515
|
matchType: (_ruleTypeMap$componen = ruleTypeMap[component.behaviorType][0]) === null || _ruleTypeMap$componen === void 0 ? void 0 : _ruleTypeMap$componen.id,
|
|
23516
|
+
searchType: (_ruleTypeMap$componen2 = ruleTypeMap[component.behaviorType][0]) === null || _ruleTypeMap$componen2 === void 0 ? void 0 : _ruleTypeMap$componen2.id,
|
|
23444
23517
|
parentCode: component.parent ? component.parent.columnCode : '',
|
|
23445
23518
|
parentId: component.parent ? component.parent.id : '',
|
|
23446
23519
|
parentBehaviorType: component.parent ? component.parent.behaviorType : ''
|
|
@@ -23497,7 +23570,7 @@ function tidyRuleComponent(component) {
|
|
|
23497
23570
|
{
|
|
23498
23571
|
data.value = '';
|
|
23499
23572
|
//筛选时,值是空对象
|
|
23500
|
-
if (data.matchType) {
|
|
23573
|
+
if (data.matchType == '8') {
|
|
23501
23574
|
data.value = {
|
|
23502
23575
|
start: '',
|
|
23503
23576
|
end: ''
|
|
@@ -24181,10 +24254,10 @@ const BnAppletUi = {
|
|
|
24181
24254
|
Vue.component("BnDialog", dialog);
|
|
24182
24255
|
Vue.component("BnDrop", BnDrop);
|
|
24183
24256
|
Vue.component("BnDropdown", bnDropdown);
|
|
24257
|
+
Vue.component("BnEmptyTip", BnEmptyTip);
|
|
24184
24258
|
Vue.component("BnFileView", BnFileView);
|
|
24185
24259
|
Vue.component("BnFunText", bnFunText);
|
|
24186
24260
|
Vue.component("BnInpNum", BnInpNum);
|
|
24187
|
-
Vue.component("BnInputNum", BnInputNum);
|
|
24188
24261
|
Vue.component("BnRuleCondition", bnRuleCondition);
|
|
24189
24262
|
Vue.component("BnSelect", BnSelect_select);
|
|
24190
24263
|
Vue.component("BnFiTaxAutoComplete", BnFiTaxAutoComplete);
|