@bytenew/bn-applet-ui 1.1.39 → 1.1.41
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.
|
@@ -245,6 +245,30 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.bnDrop-select[data-v-0984e2b5]{displa
|
|
|
245
245
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
246
246
|
|
|
247
247
|
|
|
248
|
+
/***/ },
|
|
249
|
+
|
|
250
|
+
/***/ 704
|
|
251
|
+
(module, __webpack_exports__, __webpack_require__) {
|
|
252
|
+
|
|
253
|
+
"use strict";
|
|
254
|
+
__webpack_require__.r(__webpack_exports__);
|
|
255
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
256
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
257
|
+
/* harmony export */ });
|
|
258
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
259
|
+
/* 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__);
|
|
260
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
261
|
+
/* 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__);
|
|
262
|
+
// Imports
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
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()));
|
|
266
|
+
// Module
|
|
267
|
+
___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}`, ""]);
|
|
268
|
+
// Exports
|
|
269
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
270
|
+
|
|
271
|
+
|
|
248
272
|
/***/ },
|
|
249
273
|
|
|
250
274
|
/***/ 3304
|
|
@@ -421,7 +445,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.addressSet[data-v-50cd72d0]{display:f
|
|
|
421
445
|
|
|
422
446
|
/***/ },
|
|
423
447
|
|
|
424
|
-
/***/
|
|
448
|
+
/***/ 2127
|
|
425
449
|
(module, __webpack_exports__, __webpack_require__) {
|
|
426
450
|
|
|
427
451
|
"use strict";
|
|
@@ -445,7 +469,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.addPadding .el-input__inner{padding-r
|
|
|
445
469
|
|
|
446
470
|
/***/ },
|
|
447
471
|
|
|
448
|
-
/***/
|
|
472
|
+
/***/ 5639
|
|
449
473
|
(module, __webpack_exports__, __webpack_require__) {
|
|
450
474
|
|
|
451
475
|
"use strict";
|
|
@@ -465,14 +489,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
465
489
|
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()));
|
|
466
490
|
___CSS_LOADER_EXPORT___.i(_node_modules_css_loader_dist_cjs_js_clonedRuleSet_22_use_1_node_modules_vue_vue_loader_v15_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_22_use_2_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_22_use_3_font_iconfont_css__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A);
|
|
467
491
|
// Module
|
|
468
|
-
___CSS_LOADER_EXPORT___.push([module.id, `*[data-v-
|
|
492
|
+
___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}`, ""]);
|
|
469
493
|
// Exports
|
|
470
494
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
471
495
|
|
|
472
496
|
|
|
473
497
|
/***/ },
|
|
474
498
|
|
|
475
|
-
/***/
|
|
499
|
+
/***/ 9754
|
|
476
500
|
(module, __webpack_exports__, __webpack_require__) {
|
|
477
501
|
|
|
478
502
|
"use strict";
|
|
@@ -489,14 +513,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
489
513
|
|
|
490
514
|
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()));
|
|
491
515
|
// Module
|
|
492
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.bnRule-down[data-v-
|
|
516
|
+
___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}`, ""]);
|
|
493
517
|
// Exports
|
|
494
518
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
495
519
|
|
|
496
520
|
|
|
497
521
|
/***/ },
|
|
498
522
|
|
|
499
|
-
/***/
|
|
523
|
+
/***/ 1645
|
|
500
524
|
(module, __webpack_exports__, __webpack_require__) {
|
|
501
525
|
|
|
502
526
|
"use strict";
|
|
@@ -513,7 +537,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
513
537
|
|
|
514
538
|
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()));
|
|
515
539
|
// Module
|
|
516
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.bnRule-simple[data-v-
|
|
540
|
+
___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}`, ""]);
|
|
517
541
|
// Exports
|
|
518
542
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
519
543
|
|
|
@@ -993,6 +1017,22 @@ var update = add("1dfdf04f", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
993
1017
|
|
|
994
1018
|
/***/ },
|
|
995
1019
|
|
|
1020
|
+
/***/ 2518
|
|
1021
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1022
|
+
|
|
1023
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1024
|
+
|
|
1025
|
+
// load the styles
|
|
1026
|
+
var content = __webpack_require__(704);
|
|
1027
|
+
if(content.__esModule) content = content.default;
|
|
1028
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1029
|
+
if(content.locals) module.exports = content.locals;
|
|
1030
|
+
// add the styles to the DOM
|
|
1031
|
+
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1032
|
+
var update = add("6e6e9f5e", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1033
|
+
|
|
1034
|
+
/***/ },
|
|
1035
|
+
|
|
996
1036
|
/***/ 7362
|
|
997
1037
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
998
1038
|
|
|
@@ -1105,67 +1145,67 @@ var update = add("62fe43f0", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1105
1145
|
|
|
1106
1146
|
/***/ },
|
|
1107
1147
|
|
|
1108
|
-
/***/
|
|
1148
|
+
/***/ 8089
|
|
1109
1149
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1110
1150
|
|
|
1111
1151
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1112
1152
|
|
|
1113
1153
|
// load the styles
|
|
1114
|
-
var content = __webpack_require__(
|
|
1154
|
+
var content = __webpack_require__(2127);
|
|
1115
1155
|
if(content.__esModule) content = content.default;
|
|
1116
1156
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1117
1157
|
if(content.locals) module.exports = content.locals;
|
|
1118
1158
|
// add the styles to the DOM
|
|
1119
1159
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1120
|
-
var update = add("
|
|
1160
|
+
var update = add("e6909112", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1121
1161
|
|
|
1122
1162
|
/***/ },
|
|
1123
1163
|
|
|
1124
|
-
/***/
|
|
1164
|
+
/***/ 4461
|
|
1125
1165
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1126
1166
|
|
|
1127
1167
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1128
1168
|
|
|
1129
1169
|
// load the styles
|
|
1130
|
-
var content = __webpack_require__(
|
|
1170
|
+
var content = __webpack_require__(5639);
|
|
1131
1171
|
if(content.__esModule) content = content.default;
|
|
1132
1172
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1133
1173
|
if(content.locals) module.exports = content.locals;
|
|
1134
1174
|
// add the styles to the DOM
|
|
1135
1175
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1136
|
-
var update = add("
|
|
1176
|
+
var update = add("00f01d43", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1137
1177
|
|
|
1138
1178
|
/***/ },
|
|
1139
1179
|
|
|
1140
|
-
/***/
|
|
1180
|
+
/***/ 4612
|
|
1141
1181
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1142
1182
|
|
|
1143
1183
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1144
1184
|
|
|
1145
1185
|
// load the styles
|
|
1146
|
-
var content = __webpack_require__(
|
|
1186
|
+
var content = __webpack_require__(9754);
|
|
1147
1187
|
if(content.__esModule) content = content.default;
|
|
1148
1188
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1149
1189
|
if(content.locals) module.exports = content.locals;
|
|
1150
1190
|
// add the styles to the DOM
|
|
1151
1191
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1152
|
-
var update = add("
|
|
1192
|
+
var update = add("71cab3f8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1153
1193
|
|
|
1154
1194
|
/***/ },
|
|
1155
1195
|
|
|
1156
|
-
/***/
|
|
1196
|
+
/***/ 5348
|
|
1157
1197
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1158
1198
|
|
|
1159
1199
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1160
1200
|
|
|
1161
1201
|
// load the styles
|
|
1162
|
-
var content = __webpack_require__(
|
|
1202
|
+
var content = __webpack_require__(1645);
|
|
1163
1203
|
if(content.__esModule) content = content.default;
|
|
1164
1204
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1165
1205
|
if(content.locals) module.exports = content.locals;
|
|
1166
1206
|
// add the styles to the DOM
|
|
1167
1207
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1168
|
-
var update = add("
|
|
1208
|
+
var update = add("e575a276", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1169
1209
|
|
|
1170
1210
|
/***/ },
|
|
1171
1211
|
|
|
@@ -10509,11 +10549,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10509
10549
|
BnDialog: () => (/* reexport */ dialog),
|
|
10510
10550
|
BnDrop: () => (/* reexport */ BnDrop),
|
|
10511
10551
|
BnDropdown: () => (/* reexport */ bnDropdown),
|
|
10552
|
+
BnEmptyTip: () => (/* reexport */ BnEmptyTip),
|
|
10512
10553
|
BnFiTaxAutoComplete: () => (/* reexport */ BnFiTaxAutoComplete),
|
|
10513
10554
|
BnFileView: () => (/* reexport */ BnFileView),
|
|
10514
10555
|
BnFunText: () => (/* reexport */ bnFunText),
|
|
10515
10556
|
BnInpNum: () => (/* reexport */ BnInpNum),
|
|
10516
|
-
BnInputNum: () => (/* reexport */ BnInputNum),
|
|
10517
10557
|
BnRuleCondition: () => (/* reexport */ bnRuleCondition),
|
|
10518
10558
|
BnSelect: () => (/* reexport */ BnSelect_select),
|
|
10519
10559
|
BnVirtPopover: () => (/* reexport */ BnVirtPopover),
|
|
@@ -14138,6 +14178,119 @@ var bnDropdown_component = normalizeComponent(
|
|
|
14138
14178
|
)
|
|
14139
14179
|
|
|
14140
14180
|
/* harmony default export */ const bnDropdown = (bnDropdown_component.exports);
|
|
14181
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
14182
|
+
var BnEmptyTipvue_type_template_id_24b4124f_scoped_true_render = function render() {
|
|
14183
|
+
var _vm = this,
|
|
14184
|
+
_c = _vm._self._c;
|
|
14185
|
+
return _c('div', {
|
|
14186
|
+
staticClass: "BnEmptyTip"
|
|
14187
|
+
}, [_c('div', {
|
|
14188
|
+
staticClass: "BnEmptyTip-box"
|
|
14189
|
+
}, [_c('div', {
|
|
14190
|
+
staticClass: "BnEmptyTip-img",
|
|
14191
|
+
style: _vm.boxStyle
|
|
14192
|
+
}), _c('div', {
|
|
14193
|
+
staticClass: "BnEmptyTip-text"
|
|
14194
|
+
}, [_vm._v(_vm._s(_vm.displayTip))])])]);
|
|
14195
|
+
};
|
|
14196
|
+
var BnEmptyTipvue_type_template_id_24b4124f_scoped_true_staticRenderFns = [];
|
|
14197
|
+
|
|
14198
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
14199
|
+
|
|
14200
|
+
|
|
14201
|
+
var typeMap = {
|
|
14202
|
+
no: {
|
|
14203
|
+
url: 'https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_110527787_41d59fbd8671cfd9a5d2449ccdbfa03f.png',
|
|
14204
|
+
tip: '呀~没有内容呢~',
|
|
14205
|
+
width: 1,
|
|
14206
|
+
height: 0.8
|
|
14207
|
+
},
|
|
14208
|
+
search: {
|
|
14209
|
+
url: 'https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_457fba620e4e4c5ced6aab5691f3b933.png',
|
|
14210
|
+
tip: '呀~没有搜索到呢~',
|
|
14211
|
+
width: 0.8,
|
|
14212
|
+
height: 0.8
|
|
14213
|
+
},
|
|
14214
|
+
folder: {
|
|
14215
|
+
url: 'https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_3d1230b752dd77eded103a5161dd4fd7.png',
|
|
14216
|
+
tip: '呀~文件夹为空呢~',
|
|
14217
|
+
width: 0.8,
|
|
14218
|
+
height: 0.8
|
|
14219
|
+
},
|
|
14220
|
+
"default": {
|
|
14221
|
+
url: 'https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_24c3b65ec3eaedbf32ef990df0bff0f2.png',
|
|
14222
|
+
tip: '呀~没有内容呢~',
|
|
14223
|
+
width: 0.8,
|
|
14224
|
+
height: 0.8
|
|
14225
|
+
}
|
|
14226
|
+
};
|
|
14227
|
+
/* harmony default export */ const BnEmptyTipvue_type_script_lang_js = ({
|
|
14228
|
+
name: "BnEmptyTip",
|
|
14229
|
+
props: {
|
|
14230
|
+
url: {
|
|
14231
|
+
type: String,
|
|
14232
|
+
"default": ''
|
|
14233
|
+
},
|
|
14234
|
+
tip: {
|
|
14235
|
+
type: String,
|
|
14236
|
+
"default": ''
|
|
14237
|
+
},
|
|
14238
|
+
type: {
|
|
14239
|
+
type: String,
|
|
14240
|
+
"default": 'no'
|
|
14241
|
+
},
|
|
14242
|
+
size: {
|
|
14243
|
+
type: Number,
|
|
14244
|
+
"default": 200
|
|
14245
|
+
}
|
|
14246
|
+
},
|
|
14247
|
+
computed: {
|
|
14248
|
+
displayTip: function displayTip() {
|
|
14249
|
+
var _typeMap$this$type;
|
|
14250
|
+
return this.tip || ((_typeMap$this$type = typeMap[this.type]) === null || _typeMap$this$type === void 0 ? void 0 : _typeMap$this$type.tip) || typeMap.no.tip;
|
|
14251
|
+
},
|
|
14252
|
+
imgUrl: function imgUrl() {
|
|
14253
|
+
var _typeMap$this$type2;
|
|
14254
|
+
if (this.url) return this.url;
|
|
14255
|
+
return ((_typeMap$this$type2 = typeMap[this.type]) === null || _typeMap$this$type2 === void 0 ? void 0 : _typeMap$this$type2.url) || typeMap.no.url;
|
|
14256
|
+
},
|
|
14257
|
+
boxStyle: function boxStyle() {
|
|
14258
|
+
var _typeMap$this$type3, _typeMap$this$type4;
|
|
14259
|
+
return {
|
|
14260
|
+
backgroundImage: "url(".concat(this.imgUrl, ")"),
|
|
14261
|
+
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"),
|
|
14262
|
+
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")
|
|
14263
|
+
};
|
|
14264
|
+
}
|
|
14265
|
+
}
|
|
14266
|
+
});
|
|
14267
|
+
;// ./packages/BnEmptyTip/BnEmptyTip.vue?vue&type=script&lang=js
|
|
14268
|
+
/* harmony default export */ const BnEmptyTip_BnEmptyTipvue_type_script_lang_js = (BnEmptyTipvue_type_script_lang_js);
|
|
14269
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
|
|
14270
|
+
var BnEmptyTipvue_type_style_index_0_id_24b4124f_prod_scoped_true_lang_scss = __webpack_require__(2518);
|
|
14271
|
+
;// ./packages/BnEmptyTip/BnEmptyTip.vue?vue&type=style&index=0&id=24b4124f&prod&scoped=true&lang=scss
|
|
14272
|
+
|
|
14273
|
+
;// ./packages/BnEmptyTip/BnEmptyTip.vue
|
|
14274
|
+
|
|
14275
|
+
|
|
14276
|
+
|
|
14277
|
+
;
|
|
14278
|
+
|
|
14279
|
+
|
|
14280
|
+
/* normalize component */
|
|
14281
|
+
|
|
14282
|
+
var BnEmptyTip_component = normalizeComponent(
|
|
14283
|
+
BnEmptyTip_BnEmptyTipvue_type_script_lang_js,
|
|
14284
|
+
BnEmptyTipvue_type_template_id_24b4124f_scoped_true_render,
|
|
14285
|
+
BnEmptyTipvue_type_template_id_24b4124f_scoped_true_staticRenderFns,
|
|
14286
|
+
false,
|
|
14287
|
+
null,
|
|
14288
|
+
"24b4124f",
|
|
14289
|
+
null
|
|
14290
|
+
|
|
14291
|
+
)
|
|
14292
|
+
|
|
14293
|
+
/* harmony default export */ const BnEmptyTip = (BnEmptyTip_component.exports);
|
|
14141
14294
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
14142
14295
|
var BnFileViewvue_type_template_id_27b6fb78_scoped_true_render = function render() {
|
|
14143
14296
|
var _vm = this,
|
|
@@ -15792,178 +15945,8 @@ var BnInpNum_component = normalizeComponent(
|
|
|
15792
15945
|
)
|
|
15793
15946
|
|
|
15794
15947
|
/* harmony default export */ const BnInpNum = (BnInpNum_component.exports);
|
|
15795
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/
|
|
15796
|
-
var BnInputNumvue_type_template_id_2baef958_render = function render() {
|
|
15797
|
-
var _vm = this,
|
|
15798
|
-
_c = _vm._self._c;
|
|
15799
|
-
return _c('el-input', {
|
|
15800
|
-
attrs: {
|
|
15801
|
-
"placeholder": _vm.placeholder,
|
|
15802
|
-
"disabled": _vm.disabled,
|
|
15803
|
-
"size": _vm.size,
|
|
15804
|
-
"maxlength": _vm.maxlength
|
|
15805
|
-
},
|
|
15806
|
-
on: {
|
|
15807
|
-
"input": _vm.valInput,
|
|
15808
|
-
"change": _vm.valChange,
|
|
15809
|
-
"blur": _vm.inputBlur
|
|
15810
|
-
},
|
|
15811
|
-
model: {
|
|
15812
|
-
value: _vm.val,
|
|
15813
|
-
callback: function callback($$v) {
|
|
15814
|
-
_vm.val = $$v;
|
|
15815
|
-
},
|
|
15816
|
-
expression: "val"
|
|
15817
|
-
}
|
|
15818
|
-
});
|
|
15819
|
-
};
|
|
15820
|
-
var BnInputNumvue_type_template_id_2baef958_staticRenderFns = [];
|
|
15821
|
-
|
|
15822
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
15823
|
-
var es_regexp_test = __webpack_require__(906);
|
|
15824
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
15825
|
-
|
|
15826
|
-
|
|
15827
|
-
|
|
15828
|
-
|
|
15829
|
-
|
|
15830
|
-
|
|
15831
|
-
|
|
15832
|
-
|
|
15833
|
-
|
|
15834
|
-
|
|
15835
|
-
|
|
15836
|
-
|
|
15837
|
-
|
|
15838
|
-
|
|
15839
|
-
|
|
15840
|
-
|
|
15841
|
-
|
|
15842
|
-
|
|
15843
|
-
|
|
15844
|
-
|
|
15845
|
-
/* harmony default export */ const BnInputNumvue_type_script_lang_js = ({
|
|
15846
|
-
name: "bn-input-num",
|
|
15847
|
-
props: {
|
|
15848
|
-
value: [String, Number],
|
|
15849
|
-
placeholder: {
|
|
15850
|
-
type: String,
|
|
15851
|
-
"default": '请输入'
|
|
15852
|
-
},
|
|
15853
|
-
size: {
|
|
15854
|
-
type: String,
|
|
15855
|
-
"default": 'small'
|
|
15856
|
-
},
|
|
15857
|
-
disabled: {
|
|
15858
|
-
type: Boolean,
|
|
15859
|
-
"default": false
|
|
15860
|
-
},
|
|
15861
|
-
max: {
|
|
15862
|
-
type: [String, Number]
|
|
15863
|
-
},
|
|
15864
|
-
min: {
|
|
15865
|
-
type: [String, Number]
|
|
15866
|
-
},
|
|
15867
|
-
maxlength: {
|
|
15868
|
-
type: [String, Number]
|
|
15869
|
-
},
|
|
15870
|
-
precision: {
|
|
15871
|
-
type: [String, Number]
|
|
15872
|
-
}
|
|
15873
|
-
},
|
|
15874
|
-
computed: {
|
|
15875
|
-
val: {
|
|
15876
|
-
get: function get() {
|
|
15877
|
-
return this.value;
|
|
15878
|
-
},
|
|
15879
|
-
set: function set(val) {
|
|
15880
|
-
this.$emit("input", val);
|
|
15881
|
-
}
|
|
15882
|
-
}
|
|
15883
|
-
},
|
|
15884
|
-
methods: {
|
|
15885
|
-
// 实时变化
|
|
15886
|
-
valInput: function valInput(val) {
|
|
15887
|
-
var value = val;
|
|
15888
|
-
var regex = /^-?\d*\.?\d*$/;
|
|
15889
|
-
// 检查输入值是否符合正则表达式,并且不包含多个 '-' 符号
|
|
15890
|
-
if (!regex.test(value)) {
|
|
15891
|
-
value = value.replace(/[^0-9.-]/g, ''); // 移除无效字符
|
|
15892
|
-
}
|
|
15893
|
-
// 确保 '-' 只出现在最前面,在中间和后面出现的负数进行移除
|
|
15894
|
-
var hyphenIndex = value.indexOf('-');
|
|
15895
|
-
if (hyphenIndex == 0) {
|
|
15896
|
-
value = '-' + value.replace(/-/g, ''); // 移除所有 '-'
|
|
15897
|
-
} else if (value.indexOf('-') > 0) {
|
|
15898
|
-
value = value.replace(/-/g, ''); // 移除所有 '-'
|
|
15899
|
-
}
|
|
15900
|
-
// 确保 '.' 小数点不能出现在最前面,并且只能出现一次
|
|
15901
|
-
var sIndex = value.indexOf('.');
|
|
15902
|
-
if (sIndex == 0) {
|
|
15903
|
-
value = value.replace(/\./g, '');
|
|
15904
|
-
} else if (sIndex > 0) {
|
|
15905
|
-
value = value.replace(/\./g, '');
|
|
15906
|
-
value = "".concat(value.slice(0, sIndex), ".").concat(value.slice(sIndex));
|
|
15907
|
-
}
|
|
15908
|
-
// 核实精度
|
|
15909
|
-
if (value != '' && this.precision != null && this.precision != undefined && this.precision >= 0) {
|
|
15910
|
-
if (value != '-') {
|
|
15911
|
-
if (this.precision == 0) {
|
|
15912
|
-
value = parseInt(value);
|
|
15913
|
-
} else {
|
|
15914
|
-
var num = value.split('.');
|
|
15915
|
-
if (num[1] && num[1].length > this.precision) {
|
|
15916
|
-
value = parseFloat(value).toFixed(this.precision);
|
|
15917
|
-
}
|
|
15918
|
-
}
|
|
15919
|
-
} else {
|
|
15920
|
-
value = '-';
|
|
15921
|
-
}
|
|
15922
|
-
}
|
|
15923
|
-
this.val = value;
|
|
15924
|
-
},
|
|
15925
|
-
// chang事件上报
|
|
15926
|
-
valChange: function valChange() {
|
|
15927
|
-
if (this.val == '-') {
|
|
15928
|
-
this.val = '';
|
|
15929
|
-
}
|
|
15930
|
-
if (this.val && this.max && this.val > this.max) {
|
|
15931
|
-
this.val = this.max;
|
|
15932
|
-
}
|
|
15933
|
-
if (this.val && this.min && this.val < this.min) {
|
|
15934
|
-
this.val = this.min;
|
|
15935
|
-
}
|
|
15936
|
-
this.$emit('change', this.val);
|
|
15937
|
-
},
|
|
15938
|
-
// blur事件上报
|
|
15939
|
-
inputBlur: function inputBlur() {
|
|
15940
|
-
this.$emit('blur', this.val);
|
|
15941
|
-
}
|
|
15942
|
-
}
|
|
15943
|
-
});
|
|
15944
|
-
;// ./packages/BnInputNum/BnInputNum.vue?vue&type=script&lang=js
|
|
15945
|
-
/* harmony default export */ const BnInputNum_BnInputNumvue_type_script_lang_js = (BnInputNumvue_type_script_lang_js);
|
|
15946
|
-
;// ./packages/BnInputNum/BnInputNum.vue
|
|
15947
|
-
|
|
15948
|
-
|
|
15949
|
-
|
|
15950
|
-
|
|
15951
|
-
|
|
15952
|
-
/* normalize component */
|
|
15953
|
-
;
|
|
15954
|
-
var BnInputNum_component = normalizeComponent(
|
|
15955
|
-
BnInputNum_BnInputNumvue_type_script_lang_js,
|
|
15956
|
-
BnInputNumvue_type_template_id_2baef958_render,
|
|
15957
|
-
BnInputNumvue_type_template_id_2baef958_staticRenderFns,
|
|
15958
|
-
false,
|
|
15959
|
-
null,
|
|
15960
|
-
null,
|
|
15961
|
-
null
|
|
15962
|
-
|
|
15963
|
-
)
|
|
15948
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
15964
15949
|
|
|
15965
|
-
/* harmony default export */ const BnInputNum = (BnInputNum_component.exports);
|
|
15966
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
15967
15950
|
|
|
15968
15951
|
|
|
15969
15952
|
|
|
@@ -15980,8 +15963,7 @@ var BnInputNum_component = normalizeComponent(
|
|
|
15980
15963
|
|
|
15981
15964
|
|
|
15982
15965
|
|
|
15983
|
-
|
|
15984
|
-
var bnRuleConditionvue_type_template_id_1d87e9a2_scoped_true_render = function render() {
|
|
15966
|
+
var bnRuleConditionvue_type_template_id_75daf7c0_scoped_true_render = function render() {
|
|
15985
15967
|
var _vm = this,
|
|
15986
15968
|
_c = _vm._self._c;
|
|
15987
15969
|
return _c('div', {
|
|
@@ -16297,7 +16279,7 @@ var bnRuleConditionvue_type_template_id_1d87e9a2_scoped_true_render = function r
|
|
|
16297
16279
|
},
|
|
16298
16280
|
expression: "ruleVal[optionProps.value]"
|
|
16299
16281
|
}
|
|
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('
|
|
16282
|
+
}) : ['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', {
|
|
16301
16283
|
staticClass: "bnRule-condition-input",
|
|
16302
16284
|
"class": {
|
|
16303
16285
|
'input-ratio': _vm.ruleVal[_vm.optionProps.searchType] == '27'
|
|
@@ -16529,9 +16511,9 @@ var bnRuleConditionvue_type_template_id_1d87e9a2_scoped_true_render = function r
|
|
|
16529
16511
|
staticClass: "bnUIcon bnUIcon-delete"
|
|
16530
16512
|
})]) : _vm._e()], 2) : _vm._e()]);
|
|
16531
16513
|
};
|
|
16532
|
-
var
|
|
16514
|
+
var bnRuleConditionvue_type_template_id_75daf7c0_scoped_true_staticRenderFns = [];
|
|
16533
16515
|
|
|
16534
|
-
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=template&id=
|
|
16516
|
+
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=template&id=75daf7c0&scoped=true
|
|
16535
16517
|
|
|
16536
16518
|
;// ./packages/BnRuleCondition/util.js
|
|
16537
16519
|
/* unused harmony import specifier */ var util_toConsumableArray;
|
|
@@ -18757,21 +18739,21 @@ var numberReg_component = normalizeComponent(
|
|
|
18757
18739
|
});
|
|
18758
18740
|
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=script&lang=js
|
|
18759
18741
|
/* harmony default export */ const BnRuleCondition_bnRuleConditionvue_type_script_lang_js = (bnRuleConditionvue_type_script_lang_js);
|
|
18760
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=0&id=
|
|
18761
|
-
var
|
|
18762
|
-
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=0&id=
|
|
18742
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
|
|
18743
|
+
var bnRuleConditionvue_type_style_index_0_id_75daf7c0_prod_lang_scss = __webpack_require__(8089);
|
|
18744
|
+
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=0&id=75daf7c0&prod&lang=scss
|
|
18763
18745
|
|
|
18764
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=1&id=
|
|
18765
|
-
var
|
|
18766
|
-
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=1&id=
|
|
18746
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
|
|
18747
|
+
var bnRuleConditionvue_type_style_index_1_id_75daf7c0_prod_lang_scss_scoped_true = __webpack_require__(4461);
|
|
18748
|
+
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=1&id=75daf7c0&prod&lang=scss&scoped=true
|
|
18767
18749
|
|
|
18768
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=2&id=
|
|
18769
|
-
var
|
|
18770
|
-
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=2&id=
|
|
18750
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
|
|
18751
|
+
var bnRuleConditionvue_type_style_index_2_id_75daf7c0_prod_lang_scss_scoped_true = __webpack_require__(4612);
|
|
18752
|
+
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=2&id=75daf7c0&prod&lang=scss&scoped=true
|
|
18771
18753
|
|
|
18772
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=3&id=
|
|
18773
|
-
var
|
|
18774
|
-
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=3&id=
|
|
18754
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
|
|
18755
|
+
var bnRuleConditionvue_type_style_index_3_id_75daf7c0_prod_lang_scss_scoped_true = __webpack_require__(5348);
|
|
18756
|
+
;// ./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=style&index=3&id=75daf7c0&prod&lang=scss&scoped=true
|
|
18775
18757
|
|
|
18776
18758
|
;// ./packages/BnRuleCondition/bnRuleCondition.vue
|
|
18777
18759
|
|
|
@@ -18787,11 +18769,11 @@ var bnRuleConditionvue_type_style_index_3_id_1d87e9a2_prod_lang_scss_scoped_true
|
|
|
18787
18769
|
|
|
18788
18770
|
var bnRuleCondition_component = normalizeComponent(
|
|
18789
18771
|
BnRuleCondition_bnRuleConditionvue_type_script_lang_js,
|
|
18790
|
-
|
|
18791
|
-
|
|
18772
|
+
bnRuleConditionvue_type_template_id_75daf7c0_scoped_true_render,
|
|
18773
|
+
bnRuleConditionvue_type_template_id_75daf7c0_scoped_true_staticRenderFns,
|
|
18792
18774
|
false,
|
|
18793
18775
|
null,
|
|
18794
|
-
"
|
|
18776
|
+
"75daf7c0",
|
|
18795
18777
|
null
|
|
18796
18778
|
|
|
18797
18779
|
)
|
|
@@ -21118,6 +21100,8 @@ var BnVirtPopovervue_type_template_id_387cfe9e_scoped_true_render = function ren
|
|
|
21118
21100
|
};
|
|
21119
21101
|
var BnVirtPopovervue_type_template_id_387cfe9e_scoped_true_staticRenderFns = [];
|
|
21120
21102
|
|
|
21103
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
21104
|
+
var es_regexp_test = __webpack_require__(906);
|
|
21121
21105
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
21122
21106
|
var es_string_trim = __webpack_require__(2762);
|
|
21123
21107
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
@@ -21572,8 +21556,6 @@ var es_array_sort = __webpack_require__(6910);
|
|
|
21572
21556
|
|
|
21573
21557
|
|
|
21574
21558
|
|
|
21575
|
-
|
|
21576
|
-
|
|
21577
21559
|
|
|
21578
21560
|
|
|
21579
21561
|
|
|
@@ -21647,6 +21629,192 @@ function parseArea(list, init) {
|
|
|
21647
21629
|
function isFourAddressLevel(sourceData) {
|
|
21648
21630
|
return !!(sourceData && sourceData.extraInfo && sourceData.extraInfo.isFourAddress == 1);
|
|
21649
21631
|
}
|
|
21632
|
+
var CITY_SUFFIX_KEYS = ['布依族苗族自治州', '苗族侗族自治州', '自治州', '州', '市', '县', '地区'];
|
|
21633
|
+
var INVALID_AREA_NAMES = ['其他', '其它区', '其他区'];
|
|
21634
|
+
|
|
21635
|
+
/**
|
|
21636
|
+
* 去掉地址片段开头的市/州等后缀(仅用于城市简称匹配后的剩余文本)
|
|
21637
|
+
*/
|
|
21638
|
+
function stripLeadingCitySuffix(text) {
|
|
21639
|
+
var result = text;
|
|
21640
|
+
for (var i = 0; i < CITY_SUFFIX_KEYS.length; i++) {
|
|
21641
|
+
var suffix = CITY_SUFFIX_KEYS[i];
|
|
21642
|
+
if (result.indexOf(suffix) === 0) {
|
|
21643
|
+
result = result.substring(suffix.length);
|
|
21644
|
+
break;
|
|
21645
|
+
}
|
|
21646
|
+
}
|
|
21647
|
+
return result;
|
|
21648
|
+
}
|
|
21649
|
+
|
|
21650
|
+
/**
|
|
21651
|
+
* 城市简称匹配后去掉后缀;「市中区」「市南区」等区名开头的「市」不能误删
|
|
21652
|
+
*/
|
|
21653
|
+
function stripLeadingCitySuffixAfterShortMatch(text) {
|
|
21654
|
+
if (!text || text.indexOf('市') !== 0) {
|
|
21655
|
+
return text;
|
|
21656
|
+
}
|
|
21657
|
+
if (/^市[中南东西]/.test(text)) {
|
|
21658
|
+
return text;
|
|
21659
|
+
}
|
|
21660
|
+
return stripLeadingCitySuffix(text);
|
|
21661
|
+
}
|
|
21662
|
+
|
|
21663
|
+
/**
|
|
21664
|
+
* 同名区对应多个城市时,根据地址中是否出现城市名进行消歧
|
|
21665
|
+
*/
|
|
21666
|
+
function pickCityByContext(address, areaName, areaData) {
|
|
21667
|
+
if (!areaData || areaData.length === 0) {
|
|
21668
|
+
return null;
|
|
21669
|
+
}
|
|
21670
|
+
if (areaData.length === 1) {
|
|
21671
|
+
return areaData[0];
|
|
21672
|
+
}
|
|
21673
|
+
var areaIdx = address.indexOf(areaName);
|
|
21674
|
+
var best = null;
|
|
21675
|
+
var bestScore = -1;
|
|
21676
|
+
for (var i = 0; i < areaData.length; i++) {
|
|
21677
|
+
var candidate = areaData[i];
|
|
21678
|
+
var score = 0;
|
|
21679
|
+
var cityIdx = address.indexOf(candidate.c);
|
|
21680
|
+
if (cityIdx > -1 && (areaIdx === -1 || cityIdx < areaIdx)) {
|
|
21681
|
+
score = 1000 - (areaIdx === -1 ? cityIdx : areaIdx - cityIdx);
|
|
21682
|
+
}
|
|
21683
|
+
var cityShort = candidate.c.replace('市', '').replace('地区', '');
|
|
21684
|
+
if (cityShort.length >= 2 && cityShort !== candidate.c) {
|
|
21685
|
+
var shortIdx = address.indexOf(cityShort);
|
|
21686
|
+
if (shortIdx > -1 && (areaIdx === -1 || shortIdx < areaIdx)) {
|
|
21687
|
+
var shortScore = 500 - (areaIdx === -1 ? shortIdx : areaIdx - shortIdx);
|
|
21688
|
+
if (shortScore > score) {
|
|
21689
|
+
score = shortScore;
|
|
21690
|
+
}
|
|
21691
|
+
}
|
|
21692
|
+
}
|
|
21693
|
+
if (address.indexOf(candidate.p) > -1) {
|
|
21694
|
+
score += 10;
|
|
21695
|
+
}
|
|
21696
|
+
if (score > bestScore) {
|
|
21697
|
+
bestScore = score;
|
|
21698
|
+
best = candidate;
|
|
21699
|
+
}
|
|
21700
|
+
}
|
|
21701
|
+
return best || areaData[0];
|
|
21702
|
+
}
|
|
21703
|
+
|
|
21704
|
+
/**
|
|
21705
|
+
* 在文本中匹配城市,返回最早出现的城市
|
|
21706
|
+
* 优先匹配完整城市名(如「乐山市」),避免误删「市中区」等区名前缀
|
|
21707
|
+
*/
|
|
21708
|
+
function matchCityInText(text, cities) {
|
|
21709
|
+
var best = null;
|
|
21710
|
+
for (var i = 0; i < cities.length; i++) {
|
|
21711
|
+
var city = cities[i];
|
|
21712
|
+
var cityName = city.name;
|
|
21713
|
+
var idx = text.indexOf(cityName);
|
|
21714
|
+
if (idx > -1 && idx < 15) {
|
|
21715
|
+
if (!best || idx < best.idx || idx === best.idx && cityName.length > best.token.length) {
|
|
21716
|
+
best = {
|
|
21717
|
+
city: city,
|
|
21718
|
+
idx: idx,
|
|
21719
|
+
token: cityName,
|
|
21720
|
+
type: 'full'
|
|
21721
|
+
};
|
|
21722
|
+
}
|
|
21723
|
+
}
|
|
21724
|
+
}
|
|
21725
|
+
if (best && best.type === 'full') {
|
|
21726
|
+
return {
|
|
21727
|
+
city: best.city,
|
|
21728
|
+
afterCity: text.substring(best.idx + best.token.length)
|
|
21729
|
+
};
|
|
21730
|
+
}
|
|
21731
|
+
for (var _i = 0; _i < cities.length; _i++) {
|
|
21732
|
+
var _city = cities[_i];
|
|
21733
|
+
var _cityName = _city.name;
|
|
21734
|
+
var cityShort = _cityName.replace('市', '').replace('地区', '');
|
|
21735
|
+
if (cityShort === _cityName || cityShort.length < 2) {
|
|
21736
|
+
continue;
|
|
21737
|
+
}
|
|
21738
|
+
var _idx = text.indexOf(cityShort);
|
|
21739
|
+
if (_idx > -1 && _idx < 15) {
|
|
21740
|
+
if (!best || _idx < best.idx || _idx === best.idx && cityShort.length > best.token.length) {
|
|
21741
|
+
best = {
|
|
21742
|
+
city: _city,
|
|
21743
|
+
idx: _idx,
|
|
21744
|
+
token: cityShort,
|
|
21745
|
+
type: 'short'
|
|
21746
|
+
};
|
|
21747
|
+
}
|
|
21748
|
+
}
|
|
21749
|
+
}
|
|
21750
|
+
if (!best) {
|
|
21751
|
+
return null;
|
|
21752
|
+
}
|
|
21753
|
+
var afterCity = text.substring(best.idx + best.token.length);
|
|
21754
|
+
if (best.type === 'short') {
|
|
21755
|
+
afterCity = stripLeadingCitySuffixAfterShortMatch(afterCity);
|
|
21756
|
+
}
|
|
21757
|
+
return {
|
|
21758
|
+
city: best.city,
|
|
21759
|
+
afterCity: afterCity
|
|
21760
|
+
};
|
|
21761
|
+
}
|
|
21762
|
+
|
|
21763
|
+
/**
|
|
21764
|
+
* 在城市范围内匹配区/街道,并写入 parse
|
|
21765
|
+
*/
|
|
21766
|
+
function matchAreaInCity(afterCity, city, sourceData, parse) {
|
|
21767
|
+
if (!city.area || city.area.length === 0) {
|
|
21768
|
+
return afterCity;
|
|
21769
|
+
}
|
|
21770
|
+
var sortedAreas = city.area.filter(function (a) {
|
|
21771
|
+
return a && INVALID_AREA_NAMES.indexOf(a) === -1 && a.length >= 2;
|
|
21772
|
+
}).sort(function (a, b) {
|
|
21773
|
+
return b.length - a.length;
|
|
21774
|
+
});
|
|
21775
|
+
for (var i = 0; i < sortedAreas.length; i++) {
|
|
21776
|
+
var areaName = sortedAreas[i];
|
|
21777
|
+
var areaIdx = afterCity.indexOf(areaName);
|
|
21778
|
+
if (areaIdx > -1 && areaIdx < 15) {
|
|
21779
|
+
parse.area = areaName;
|
|
21780
|
+
var afterArea = afterCity.substring(areaIdx + areaName.length);
|
|
21781
|
+
if (isFourAddressLevel(sourceData) && city.street && city.street[areaName]) {
|
|
21782
|
+
var streets = city.street[areaName];
|
|
21783
|
+
if (streets && streets.length > 0) {
|
|
21784
|
+
var sortedStreets = streets.filter(function (s) {
|
|
21785
|
+
return s && INVALID_AREA_NAMES.indexOf(s) === -1 && s.length >= 2;
|
|
21786
|
+
}).sort(function (a, b) {
|
|
21787
|
+
return b.length - a.length;
|
|
21788
|
+
});
|
|
21789
|
+
for (var j = 0; j < sortedStreets.length; j++) {
|
|
21790
|
+
var streetName = sortedStreets[j];
|
|
21791
|
+
var streetIdx = afterArea.indexOf(streetName);
|
|
21792
|
+
if (streetIdx > -1 && streetIdx < 8) {
|
|
21793
|
+
parse.street = streetName;
|
|
21794
|
+
afterArea = afterArea.substring(streetIdx + streetName.length);
|
|
21795
|
+
break;
|
|
21796
|
+
}
|
|
21797
|
+
var streetShort = streetName.replace('街道', '').replace('镇', '').replace('乡', '');
|
|
21798
|
+
if (streetShort !== streetName && streetShort.length >= 2) {
|
|
21799
|
+
streetIdx = afterArea.indexOf(streetShort);
|
|
21800
|
+
if (streetIdx > -1 && streetIdx < 8) {
|
|
21801
|
+
parse.street = streetName;
|
|
21802
|
+
afterArea = afterArea.substring(streetIdx + streetShort.length);
|
|
21803
|
+
if (afterArea.startsWith('区')) {
|
|
21804
|
+
afterArea = afterArea.substring(1);
|
|
21805
|
+
}
|
|
21806
|
+
break;
|
|
21807
|
+
}
|
|
21808
|
+
}
|
|
21809
|
+
}
|
|
21810
|
+
}
|
|
21811
|
+
}
|
|
21812
|
+
parse.addr = afterArea.trim();
|
|
21813
|
+
return '';
|
|
21814
|
+
}
|
|
21815
|
+
}
|
|
21816
|
+
return afterCity;
|
|
21817
|
+
}
|
|
21650
21818
|
|
|
21651
21819
|
/**
|
|
21652
21820
|
* 解析地址详情(内部方法,需先调用 parseArea 初始化地址库)
|
|
@@ -21863,7 +22031,7 @@ function detail_parse_forward(address, sourceData) {
|
|
|
21863
22031
|
|
|
21864
22032
|
// 先尝试快速匹配
|
|
21865
22033
|
var _loop = function _loop() {
|
|
21866
|
-
var pattern = _provPatterns[
|
|
22034
|
+
var pattern = _provPatterns[_i2];
|
|
21867
22035
|
if (remaining.startsWith(pattern.pattern)) {
|
|
21868
22036
|
// 在 defaultData 中找到对应的省份数据
|
|
21869
22037
|
var found = defaultData.find(function (p) {
|
|
@@ -21881,7 +22049,7 @@ function detail_parse_forward(address, sourceData) {
|
|
|
21881
22049
|
}
|
|
21882
22050
|
}
|
|
21883
22051
|
};
|
|
21884
|
-
for (var
|
|
22052
|
+
for (var _i2 = 0, _provPatterns = provPatterns; _i2 < _provPatterns.length; _i2++) {
|
|
21885
22053
|
if (_loop()) break;
|
|
21886
22054
|
}
|
|
21887
22055
|
|
|
@@ -21940,154 +22108,106 @@ function detail_parse_forward(address, sourceData) {
|
|
|
21940
22108
|
return parse;
|
|
21941
22109
|
}
|
|
21942
22110
|
|
|
21943
|
-
// ==========
|
|
22111
|
+
// ========== 第二步:优先匹配城市,再匹配区;无城市时再按区反推 ==========
|
|
21944
22112
|
if (matchedProvince.city && matchedProvince.city.length > 0) {
|
|
21945
|
-
|
|
22113
|
+
var cityMatch = matchCityInText(remaining, matchedProvince.city);
|
|
22114
|
+
if (cityMatch) {
|
|
22115
|
+
parse.city = cityMatch.city.name;
|
|
22116
|
+
console.log('匹配到城市:', parse.city);
|
|
22117
|
+
var afterArea = matchAreaInCity(cityMatch.afterCity, cityMatch.city, sourceData, parse);
|
|
22118
|
+
if (parse.area) {
|
|
22119
|
+
console.log('匹配到area:', parse.area, '城市:', parse.city);
|
|
22120
|
+
return parse;
|
|
22121
|
+
}
|
|
22122
|
+
parse.addr = afterArea.trim();
|
|
22123
|
+
return parse;
|
|
22124
|
+
}
|
|
22125
|
+
console.log('未匹配到城市,尝试通过区名反推城市');
|
|
22126
|
+
|
|
22127
|
+
// 收集所有 area,同名区优先选择地址中出现对应城市名的
|
|
21946
22128
|
var allAreas = [];
|
|
21947
|
-
var
|
|
21948
|
-
|
|
21949
|
-
|
|
21950
|
-
|
|
21951
|
-
|
|
21952
|
-
|
|
21953
|
-
|
|
21954
|
-
|
|
21955
|
-
|
|
21956
|
-
|
|
21957
|
-
|
|
21958
|
-
|
|
21959
|
-
|
|
21960
|
-
|
|
21961
|
-
cityName: city.name,
|
|
21962
|
-
cityData: city
|
|
21963
|
-
});
|
|
21964
|
-
}
|
|
22129
|
+
for (var _i3 = 0; _i3 < matchedProvince.city.length; _i3++) {
|
|
22130
|
+
var city = matchedProvince.city[_i3];
|
|
22131
|
+
if (city.area && city.area.length > 0) {
|
|
22132
|
+
for (var j = 0; j < city.area.length; j++) {
|
|
22133
|
+
var areaName = city.area[j];
|
|
22134
|
+
if (areaName && INVALID_AREA_NAMES.indexOf(areaName) === -1 && areaName.length >= 2) {
|
|
22135
|
+
var _idx2 = remaining.indexOf(areaName);
|
|
22136
|
+
if (_idx2 > -1 && _idx2 < 15) {
|
|
22137
|
+
allAreas.push({
|
|
22138
|
+
areaName: areaName,
|
|
22139
|
+
cityName: city.name,
|
|
22140
|
+
cityData: city,
|
|
22141
|
+
index: _idx2
|
|
22142
|
+
});
|
|
21965
22143
|
}
|
|
21966
|
-
} catch (err) {
|
|
21967
|
-
_iterator4.e(err);
|
|
21968
|
-
} finally {
|
|
21969
|
-
_iterator4.f();
|
|
21970
22144
|
}
|
|
21971
22145
|
}
|
|
21972
22146
|
}
|
|
21973
|
-
|
|
21974
|
-
// 按长度降序
|
|
21975
|
-
} catch (err) {
|
|
21976
|
-
_iterator.e(err);
|
|
21977
|
-
} finally {
|
|
21978
|
-
_iterator.f();
|
|
21979
22147
|
}
|
|
21980
22148
|
allAreas.sort(function (a, b) {
|
|
22149
|
+
if (a.index !== b.index) {
|
|
22150
|
+
return a.index - b.index;
|
|
22151
|
+
}
|
|
21981
22152
|
return b.areaName.length - a.areaName.length;
|
|
21982
22153
|
});
|
|
21983
|
-
|
|
21984
|
-
|
|
21985
|
-
|
|
21986
|
-
|
|
21987
|
-
|
|
21988
|
-
|
|
21989
|
-
|
|
21990
|
-
|
|
21991
|
-
|
|
21992
|
-
|
|
21993
|
-
|
|
21994
|
-
|
|
21995
|
-
|
|
21996
|
-
|
|
21997
|
-
|
|
21998
|
-
|
|
21999
|
-
|
|
22000
|
-
|
|
22001
|
-
return b.length - a.length;
|
|
22002
|
-
});
|
|
22003
|
-
console.log('该area下的街道:', sortedStreets.slice(0, 5));
|
|
22004
|
-
var _iterator2 = _createForOfIteratorHelper(sortedStreets),
|
|
22005
|
-
_step2;
|
|
22006
|
-
try {
|
|
22007
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
22008
|
-
var streetName = _step2.value;
|
|
22009
|
-
// 完整匹配
|
|
22010
|
-
var streetIdx = afterArea.indexOf(streetName);
|
|
22011
|
-
if (streetIdx > -1 && streetIdx < 8) {
|
|
22012
|
-
parse.street = streetName;
|
|
22013
|
-
afterArea = afterArea.substring(streetIdx + streetName.length);
|
|
22014
|
-
console.log('匹配到街道(完整):', streetName);
|
|
22015
|
-
break;
|
|
22016
|
-
}
|
|
22017
|
-
|
|
22018
|
-
// 模糊匹配:去掉后缀
|
|
22019
|
-
var streetShort = streetName.replace('街道', '').replace('镇', '').replace('乡', '');
|
|
22020
|
-
if (streetShort !== streetName && streetShort.length >= 2) {
|
|
22021
|
-
streetIdx = afterArea.indexOf(streetShort);
|
|
22022
|
-
if (streetIdx > -1 && streetIdx < 8) {
|
|
22023
|
-
parse.street = streetName;
|
|
22024
|
-
afterArea = afterArea.substring(streetIdx + streetShort.length);
|
|
22025
|
-
if (afterArea.startsWith('区')) {
|
|
22026
|
-
afterArea = afterArea.substring(1);
|
|
22027
|
-
}
|
|
22028
|
-
console.log('匹配到街道(模糊):', streetShort, '->', streetName);
|
|
22029
|
-
break;
|
|
22030
|
-
}
|
|
22031
|
-
}
|
|
22032
|
-
}
|
|
22033
|
-
} catch (err) {
|
|
22034
|
-
_iterator2.e(err);
|
|
22035
|
-
} finally {
|
|
22036
|
-
_iterator2.f();
|
|
22037
|
-
}
|
|
22038
|
-
}
|
|
22154
|
+
if (allAreas.length > 0) {
|
|
22155
|
+
var firstAreaName = allAreas[0].areaName;
|
|
22156
|
+
var sameNameAreas = allAreas.filter(function (item) {
|
|
22157
|
+
return item.areaName === firstAreaName && item.index === allAreas[0].index;
|
|
22158
|
+
});
|
|
22159
|
+
var selectedArea = sameNameAreas[0];
|
|
22160
|
+
if (sameNameAreas.length > 1) {
|
|
22161
|
+
var areaData = sameNameAreas.map(function (item) {
|
|
22162
|
+
return {
|
|
22163
|
+
p: matchedProvince.name,
|
|
22164
|
+
c: item.cityName
|
|
22165
|
+
};
|
|
22166
|
+
});
|
|
22167
|
+
var picked = pickCityByContext(remaining, firstAreaName, areaData);
|
|
22168
|
+
if (picked) {
|
|
22169
|
+
selectedArea = sameNameAreas.find(function (item) {
|
|
22170
|
+
return item.cityName === picked.c;
|
|
22171
|
+
}) || selectedArea;
|
|
22039
22172
|
}
|
|
22040
|
-
parse.addr = afterArea.trim();
|
|
22041
|
-
return parse;
|
|
22042
22173
|
}
|
|
22043
|
-
|
|
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
|
-
if (areaIdx > -1 && areaIdx < 10) {
|
|
22072
|
-
parse.area = _areaName;
|
|
22073
|
-
remaining = remaining.substring(areaIdx + _areaName.length);
|
|
22074
|
-
break;
|
|
22174
|
+
parse.city = selectedArea.cityName;
|
|
22175
|
+
parse.area = selectedArea.areaName;
|
|
22176
|
+
var _afterArea = remaining.substring(selectedArea.index + selectedArea.areaName.length);
|
|
22177
|
+
console.log('通过区反推城市:', parse.city, 'area:', parse.area);
|
|
22178
|
+
if (isFourAddressLevel(sourceData) && selectedArea.cityData.street && selectedArea.cityData.street[selectedArea.areaName]) {
|
|
22179
|
+
var streets = selectedArea.cityData.street[selectedArea.areaName];
|
|
22180
|
+
if (streets && streets.length > 0) {
|
|
22181
|
+
var sortedStreets = streets.filter(function (s) {
|
|
22182
|
+
return s && INVALID_AREA_NAMES.indexOf(s) === -1 && s.length >= 2;
|
|
22183
|
+
}).sort(function (a, b) {
|
|
22184
|
+
return b.length - a.length;
|
|
22185
|
+
});
|
|
22186
|
+
for (var _i4 = 0; _i4 < sortedStreets.length; _i4++) {
|
|
22187
|
+
var streetName = sortedStreets[_i4];
|
|
22188
|
+
var streetIdx = _afterArea.indexOf(streetName);
|
|
22189
|
+
if (streetIdx > -1 && streetIdx < 8) {
|
|
22190
|
+
parse.street = streetName;
|
|
22191
|
+
_afterArea = _afterArea.substring(streetIdx + streetName.length);
|
|
22192
|
+
break;
|
|
22193
|
+
}
|
|
22194
|
+
var streetShort = streetName.replace('街道', '').replace('镇', '').replace('乡', '');
|
|
22195
|
+
if (streetShort !== streetName && streetShort.length >= 2) {
|
|
22196
|
+
streetIdx = _afterArea.indexOf(streetShort);
|
|
22197
|
+
if (streetIdx > -1 && streetIdx < 8) {
|
|
22198
|
+
parse.street = streetName;
|
|
22199
|
+
_afterArea = _afterArea.substring(streetIdx + streetShort.length);
|
|
22200
|
+
if (_afterArea.startsWith('区')) {
|
|
22201
|
+
_afterArea = _afterArea.substring(1);
|
|
22075
22202
|
}
|
|
22203
|
+
break;
|
|
22076
22204
|
}
|
|
22077
|
-
} catch (err) {
|
|
22078
|
-
_iterator5.e(err);
|
|
22079
|
-
} finally {
|
|
22080
|
-
_iterator5.f();
|
|
22081
22205
|
}
|
|
22082
22206
|
}
|
|
22083
|
-
parse.addr = remaining.trim();
|
|
22084
|
-
return parse;
|
|
22085
22207
|
}
|
|
22086
22208
|
}
|
|
22087
|
-
|
|
22088
|
-
|
|
22089
|
-
} finally {
|
|
22090
|
-
_iterator3.f();
|
|
22209
|
+
parse.addr = _afterArea.trim();
|
|
22210
|
+
return parse;
|
|
22091
22211
|
}
|
|
22092
22212
|
}
|
|
22093
22213
|
parse.addr = remaining;
|
|
@@ -22123,9 +22243,10 @@ function findProvinceByArea(address) {
|
|
|
22123
22243
|
var bestMatch = allAreas[0];
|
|
22124
22244
|
var areaData = bestMatch.data;
|
|
22125
22245
|
if (areaData && areaData.length >= 1) {
|
|
22246
|
+
var picked = pickCityByContext(address, bestMatch.name, areaData);
|
|
22126
22247
|
return {
|
|
22127
|
-
province:
|
|
22128
|
-
city:
|
|
22248
|
+
province: picked.p,
|
|
22249
|
+
city: picked.c,
|
|
22129
22250
|
area: bestMatch.name,
|
|
22130
22251
|
addr: address.substring(bestMatch.index + bestMatch.name.length)
|
|
22131
22252
|
};
|
|
@@ -22189,42 +22310,10 @@ function detail_parse(address) {
|
|
|
22189
22310
|
console.log('该area有多个城市:', areaData.map(function (d) {
|
|
22190
22311
|
return d.c;
|
|
22191
22312
|
}));
|
|
22192
|
-
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
try {
|
|
22197
|
-
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
22198
|
-
var _candidate = _step6.value;
|
|
22199
|
-
if (address.includes(_candidate.c)) {
|
|
22200
|
-
parse.province = _candidate.p;
|
|
22201
|
-
parse.city = _candidate.c;
|
|
22202
|
-
break;
|
|
22203
|
-
}
|
|
22204
|
-
}
|
|
22205
|
-
} catch (err) {
|
|
22206
|
-
_iterator6.e(err);
|
|
22207
|
-
} finally {
|
|
22208
|
-
_iterator6.f();
|
|
22209
|
-
}
|
|
22210
|
-
if (!parse.city) {
|
|
22211
|
-
var _iterator7 = _createForOfIteratorHelper(areaData),
|
|
22212
|
-
_step7;
|
|
22213
|
-
try {
|
|
22214
|
-
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
22215
|
-
var candidate = _step7.value;
|
|
22216
|
-
var cityShort = candidate.c.replace('市', '');
|
|
22217
|
-
if (cityShort.length >= 2 && address.includes(cityShort)) {
|
|
22218
|
-
parse.province = candidate.p;
|
|
22219
|
-
parse.city = candidate.c;
|
|
22220
|
-
break;
|
|
22221
|
-
}
|
|
22222
|
-
}
|
|
22223
|
-
} catch (err) {
|
|
22224
|
-
_iterator7.e(err);
|
|
22225
|
-
} finally {
|
|
22226
|
-
_iterator7.f();
|
|
22227
|
-
}
|
|
22313
|
+
var picked = pickCityByContext(address, bestMatch.name, areaData);
|
|
22314
|
+
if (picked) {
|
|
22315
|
+
parse.province = picked.p;
|
|
22316
|
+
parse.city = picked.c;
|
|
22228
22317
|
}
|
|
22229
22318
|
}
|
|
22230
22319
|
}
|
|
@@ -24178,10 +24267,10 @@ const BnAppletUi = {
|
|
|
24178
24267
|
Vue.component("BnDialog", dialog);
|
|
24179
24268
|
Vue.component("BnDrop", BnDrop);
|
|
24180
24269
|
Vue.component("BnDropdown", bnDropdown);
|
|
24270
|
+
Vue.component("BnEmptyTip", BnEmptyTip);
|
|
24181
24271
|
Vue.component("BnFileView", BnFileView);
|
|
24182
24272
|
Vue.component("BnFunText", bnFunText);
|
|
24183
24273
|
Vue.component("BnInpNum", BnInpNum);
|
|
24184
|
-
Vue.component("BnInputNum", BnInputNum);
|
|
24185
24274
|
Vue.component("BnRuleCondition", bnRuleCondition);
|
|
24186
24275
|
Vue.component("BnSelect", BnSelect_select);
|
|
24187
24276
|
Vue.component("BnFiTaxAutoComplete", BnFiTaxAutoComplete);
|