@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.
|
@@ -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,7 @@ 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
|
-
)
|
|
15964
|
-
|
|
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
|
|
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
|
|
15967
15949
|
|
|
15968
15950
|
|
|
15969
15951
|
|
|
@@ -15981,7 +15963,7 @@ var BnInputNum_component = normalizeComponent(
|
|
|
15981
15963
|
|
|
15982
15964
|
|
|
15983
15965
|
|
|
15984
|
-
var
|
|
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
|
|
@@ -21639,6 +21623,168 @@ function parseArea(list, init) {
|
|
|
21639
21623
|
});
|
|
21640
21624
|
}
|
|
21641
21625
|
|
|
21626
|
+
/**
|
|
21627
|
+
* 是否为四级地址配置(省/市/区/街道)
|
|
21628
|
+
*/
|
|
21629
|
+
function isFourAddressLevel(sourceData) {
|
|
21630
|
+
return !!(sourceData && sourceData.extraInfo && sourceData.extraInfo.isFourAddress == 1);
|
|
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 pickCityByContext(address, areaName, areaData) {
|
|
21654
|
+
if (!areaData || areaData.length === 0) {
|
|
21655
|
+
return null;
|
|
21656
|
+
}
|
|
21657
|
+
if (areaData.length === 1) {
|
|
21658
|
+
return areaData[0];
|
|
21659
|
+
}
|
|
21660
|
+
var areaIdx = address.indexOf(areaName);
|
|
21661
|
+
var best = null;
|
|
21662
|
+
var bestScore = -1;
|
|
21663
|
+
for (var i = 0; i < areaData.length; i++) {
|
|
21664
|
+
var candidate = areaData[i];
|
|
21665
|
+
var score = 0;
|
|
21666
|
+
var cityIdx = address.indexOf(candidate.c);
|
|
21667
|
+
if (cityIdx > -1 && (areaIdx === -1 || cityIdx < areaIdx)) {
|
|
21668
|
+
score = 1000 - (areaIdx === -1 ? cityIdx : areaIdx - cityIdx);
|
|
21669
|
+
}
|
|
21670
|
+
var cityShort = candidate.c.replace('市', '').replace('地区', '');
|
|
21671
|
+
if (cityShort.length >= 2 && cityShort !== candidate.c) {
|
|
21672
|
+
var shortIdx = address.indexOf(cityShort);
|
|
21673
|
+
if (shortIdx > -1 && (areaIdx === -1 || shortIdx < areaIdx)) {
|
|
21674
|
+
var shortScore = 500 - (areaIdx === -1 ? shortIdx : areaIdx - shortIdx);
|
|
21675
|
+
if (shortScore > score) {
|
|
21676
|
+
score = shortScore;
|
|
21677
|
+
}
|
|
21678
|
+
}
|
|
21679
|
+
}
|
|
21680
|
+
if (address.indexOf(candidate.p) > -1) {
|
|
21681
|
+
score += 10;
|
|
21682
|
+
}
|
|
21683
|
+
if (score > bestScore) {
|
|
21684
|
+
bestScore = score;
|
|
21685
|
+
best = candidate;
|
|
21686
|
+
}
|
|
21687
|
+
}
|
|
21688
|
+
return best || areaData[0];
|
|
21689
|
+
}
|
|
21690
|
+
|
|
21691
|
+
/**
|
|
21692
|
+
* 在文本中匹配城市,返回最早出现的城市
|
|
21693
|
+
*/
|
|
21694
|
+
function matchCityInText(text, cities) {
|
|
21695
|
+
var matchedCity = null;
|
|
21696
|
+
var matchIdx = -1;
|
|
21697
|
+
var matchedLength = 0;
|
|
21698
|
+
for (var i = 0; i < cities.length; i++) {
|
|
21699
|
+
var city = cities[i];
|
|
21700
|
+
var cityName = city.name;
|
|
21701
|
+
var idx = text.indexOf(cityName);
|
|
21702
|
+
if (idx > -1 && idx < 15) {
|
|
21703
|
+
if (matchIdx === -1 || idx < matchIdx || idx === matchIdx && cityName.length > matchedLength) {
|
|
21704
|
+
matchedCity = city;
|
|
21705
|
+
matchIdx = idx;
|
|
21706
|
+
matchedLength = cityName.length;
|
|
21707
|
+
}
|
|
21708
|
+
}
|
|
21709
|
+
var cityShort = cityName.replace('市', '').replace('地区', '');
|
|
21710
|
+
if (cityShort !== cityName && cityShort.length >= 2) {
|
|
21711
|
+
var shortIdx = text.indexOf(cityShort);
|
|
21712
|
+
if (shortIdx > -1 && shortIdx < 15) {
|
|
21713
|
+
if (matchIdx === -1 || shortIdx < matchIdx || shortIdx === matchIdx && cityShort.length > matchedLength) {
|
|
21714
|
+
matchedCity = city;
|
|
21715
|
+
matchIdx = shortIdx;
|
|
21716
|
+
matchedLength = cityShort.length;
|
|
21717
|
+
}
|
|
21718
|
+
}
|
|
21719
|
+
}
|
|
21720
|
+
}
|
|
21721
|
+
if (!matchedCity) {
|
|
21722
|
+
return null;
|
|
21723
|
+
}
|
|
21724
|
+
var afterCity = text.substring(matchIdx + matchedLength);
|
|
21725
|
+
afterCity = stripLeadingCitySuffix(afterCity);
|
|
21726
|
+
return {
|
|
21727
|
+
city: matchedCity,
|
|
21728
|
+
afterCity: afterCity
|
|
21729
|
+
};
|
|
21730
|
+
}
|
|
21731
|
+
|
|
21732
|
+
/**
|
|
21733
|
+
* 在城市范围内匹配区/街道,并写入 parse
|
|
21734
|
+
*/
|
|
21735
|
+
function matchAreaInCity(afterCity, city, sourceData, parse) {
|
|
21736
|
+
if (!city.area || city.area.length === 0) {
|
|
21737
|
+
return afterCity;
|
|
21738
|
+
}
|
|
21739
|
+
var sortedAreas = city.area.filter(function (a) {
|
|
21740
|
+
return a && INVALID_AREA_NAMES.indexOf(a) === -1 && a.length >= 2;
|
|
21741
|
+
}).sort(function (a, b) {
|
|
21742
|
+
return b.length - a.length;
|
|
21743
|
+
});
|
|
21744
|
+
for (var i = 0; i < sortedAreas.length; i++) {
|
|
21745
|
+
var areaName = sortedAreas[i];
|
|
21746
|
+
var areaIdx = afterCity.indexOf(areaName);
|
|
21747
|
+
if (areaIdx > -1 && areaIdx < 15) {
|
|
21748
|
+
parse.area = areaName;
|
|
21749
|
+
var afterArea = afterCity.substring(areaIdx + areaName.length);
|
|
21750
|
+
if (isFourAddressLevel(sourceData) && city.street && city.street[areaName]) {
|
|
21751
|
+
var streets = city.street[areaName];
|
|
21752
|
+
if (streets && streets.length > 0) {
|
|
21753
|
+
var sortedStreets = streets.filter(function (s) {
|
|
21754
|
+
return s && INVALID_AREA_NAMES.indexOf(s) === -1 && s.length >= 2;
|
|
21755
|
+
}).sort(function (a, b) {
|
|
21756
|
+
return b.length - a.length;
|
|
21757
|
+
});
|
|
21758
|
+
for (var j = 0; j < sortedStreets.length; j++) {
|
|
21759
|
+
var streetName = sortedStreets[j];
|
|
21760
|
+
var streetIdx = afterArea.indexOf(streetName);
|
|
21761
|
+
if (streetIdx > -1 && streetIdx < 8) {
|
|
21762
|
+
parse.street = streetName;
|
|
21763
|
+
afterArea = afterArea.substring(streetIdx + streetName.length);
|
|
21764
|
+
break;
|
|
21765
|
+
}
|
|
21766
|
+
var streetShort = streetName.replace('街道', '').replace('镇', '').replace('乡', '');
|
|
21767
|
+
if (streetShort !== streetName && streetShort.length >= 2) {
|
|
21768
|
+
streetIdx = afterArea.indexOf(streetShort);
|
|
21769
|
+
if (streetIdx > -1 && streetIdx < 8) {
|
|
21770
|
+
parse.street = streetName;
|
|
21771
|
+
afterArea = afterArea.substring(streetIdx + streetShort.length);
|
|
21772
|
+
if (afterArea.startsWith('区')) {
|
|
21773
|
+
afterArea = afterArea.substring(1);
|
|
21774
|
+
}
|
|
21775
|
+
break;
|
|
21776
|
+
}
|
|
21777
|
+
}
|
|
21778
|
+
}
|
|
21779
|
+
}
|
|
21780
|
+
}
|
|
21781
|
+
parse.addr = afterArea.trim();
|
|
21782
|
+
return '';
|
|
21783
|
+
}
|
|
21784
|
+
}
|
|
21785
|
+
return afterCity;
|
|
21786
|
+
}
|
|
21787
|
+
|
|
21642
21788
|
/**
|
|
21643
21789
|
* 解析地址详情(内部方法,需先调用 parseArea 初始化地址库)
|
|
21644
21790
|
* @param address 任意地址字符串
|
|
@@ -21753,6 +21899,14 @@ function parseAddressDetail(address, sourceData) {
|
|
|
21753
21899
|
parse.area = detail.area || '';
|
|
21754
21900
|
parse.street = detail.street || '';
|
|
21755
21901
|
parse.addr = detail.addr || '';
|
|
21902
|
+
|
|
21903
|
+
// 三级地址:街道合并到详细地址,不单独识别
|
|
21904
|
+
if (!isFourAddressLevel(sourceData)) {
|
|
21905
|
+
if (parse.street) {
|
|
21906
|
+
parse.addr = "".concat(parse.street).concat(parse.addr || '');
|
|
21907
|
+
parse.street = '';
|
|
21908
|
+
}
|
|
21909
|
+
}
|
|
21756
21910
|
if (presetName) {
|
|
21757
21911
|
parse.name = presetName;
|
|
21758
21912
|
if (parse.addr) {
|
|
@@ -21923,154 +22077,106 @@ function detail_parse_forward(address, sourceData) {
|
|
|
21923
22077
|
return parse;
|
|
21924
22078
|
}
|
|
21925
22079
|
|
|
21926
|
-
// ==========
|
|
22080
|
+
// ========== 第二步:优先匹配城市,再匹配区;无城市时再按区反推 ==========
|
|
21927
22081
|
if (matchedProvince.city && matchedProvince.city.length > 0) {
|
|
21928
|
-
|
|
22082
|
+
var cityMatch = matchCityInText(remaining, matchedProvince.city);
|
|
22083
|
+
if (cityMatch) {
|
|
22084
|
+
parse.city = cityMatch.city.name;
|
|
22085
|
+
console.log('匹配到城市:', parse.city);
|
|
22086
|
+
var afterArea = matchAreaInCity(cityMatch.afterCity, cityMatch.city, sourceData, parse);
|
|
22087
|
+
if (parse.area) {
|
|
22088
|
+
console.log('匹配到area:', parse.area, '城市:', parse.city);
|
|
22089
|
+
return parse;
|
|
22090
|
+
}
|
|
22091
|
+
parse.addr = afterArea.trim();
|
|
22092
|
+
return parse;
|
|
22093
|
+
}
|
|
22094
|
+
console.log('未匹配到城市,尝试通过区名反推城市');
|
|
22095
|
+
|
|
22096
|
+
// 收集所有 area,同名区优先选择地址中出现对应城市名的
|
|
21929
22097
|
var allAreas = [];
|
|
21930
|
-
var
|
|
21931
|
-
|
|
21932
|
-
|
|
21933
|
-
|
|
21934
|
-
|
|
21935
|
-
|
|
21936
|
-
|
|
21937
|
-
|
|
21938
|
-
|
|
21939
|
-
|
|
21940
|
-
|
|
21941
|
-
|
|
21942
|
-
|
|
21943
|
-
|
|
21944
|
-
cityName: city.name,
|
|
21945
|
-
cityData: city
|
|
21946
|
-
});
|
|
21947
|
-
}
|
|
22098
|
+
for (var _i2 = 0; _i2 < matchedProvince.city.length; _i2++) {
|
|
22099
|
+
var city = matchedProvince.city[_i2];
|
|
22100
|
+
if (city.area && city.area.length > 0) {
|
|
22101
|
+
for (var j = 0; j < city.area.length; j++) {
|
|
22102
|
+
var areaName = city.area[j];
|
|
22103
|
+
if (areaName && INVALID_AREA_NAMES.indexOf(areaName) === -1 && areaName.length >= 2) {
|
|
22104
|
+
var _idx = remaining.indexOf(areaName);
|
|
22105
|
+
if (_idx > -1 && _idx < 15) {
|
|
22106
|
+
allAreas.push({
|
|
22107
|
+
areaName: areaName,
|
|
22108
|
+
cityName: city.name,
|
|
22109
|
+
cityData: city,
|
|
22110
|
+
index: _idx
|
|
22111
|
+
});
|
|
21948
22112
|
}
|
|
21949
|
-
} catch (err) {
|
|
21950
|
-
_iterator4.e(err);
|
|
21951
|
-
} finally {
|
|
21952
|
-
_iterator4.f();
|
|
21953
22113
|
}
|
|
21954
22114
|
}
|
|
21955
22115
|
}
|
|
21956
|
-
|
|
21957
|
-
// 按长度降序
|
|
21958
|
-
} catch (err) {
|
|
21959
|
-
_iterator.e(err);
|
|
21960
|
-
} finally {
|
|
21961
|
-
_iterator.f();
|
|
21962
22116
|
}
|
|
21963
22117
|
allAreas.sort(function (a, b) {
|
|
22118
|
+
if (a.index !== b.index) {
|
|
22119
|
+
return a.index - b.index;
|
|
22120
|
+
}
|
|
21964
22121
|
return b.areaName.length - a.areaName.length;
|
|
21965
22122
|
});
|
|
21966
|
-
|
|
21967
|
-
|
|
21968
|
-
|
|
21969
|
-
|
|
21970
|
-
|
|
21971
|
-
|
|
21972
|
-
|
|
21973
|
-
|
|
21974
|
-
|
|
21975
|
-
|
|
21976
|
-
|
|
21977
|
-
|
|
21978
|
-
|
|
21979
|
-
|
|
21980
|
-
|
|
21981
|
-
|
|
21982
|
-
|
|
21983
|
-
|
|
21984
|
-
return b.length - a.length;
|
|
21985
|
-
});
|
|
21986
|
-
console.log('该area下的街道:', sortedStreets.slice(0, 5));
|
|
21987
|
-
var _iterator2 = _createForOfIteratorHelper(sortedStreets),
|
|
21988
|
-
_step2;
|
|
21989
|
-
try {
|
|
21990
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
21991
|
-
var streetName = _step2.value;
|
|
21992
|
-
// 完整匹配
|
|
21993
|
-
var streetIdx = afterArea.indexOf(streetName);
|
|
21994
|
-
if (streetIdx > -1 && streetIdx < 8) {
|
|
21995
|
-
parse.street = streetName;
|
|
21996
|
-
afterArea = afterArea.substring(streetIdx + streetName.length);
|
|
21997
|
-
console.log('匹配到街道(完整):', streetName);
|
|
21998
|
-
break;
|
|
21999
|
-
}
|
|
22000
|
-
|
|
22001
|
-
// 模糊匹配:去掉后缀
|
|
22002
|
-
var streetShort = streetName.replace('街道', '').replace('镇', '').replace('乡', '');
|
|
22003
|
-
if (streetShort !== streetName && streetShort.length >= 2) {
|
|
22004
|
-
streetIdx = afterArea.indexOf(streetShort);
|
|
22005
|
-
if (streetIdx > -1 && streetIdx < 8) {
|
|
22006
|
-
parse.street = streetName;
|
|
22007
|
-
afterArea = afterArea.substring(streetIdx + streetShort.length);
|
|
22008
|
-
if (afterArea.startsWith('区')) {
|
|
22009
|
-
afterArea = afterArea.substring(1);
|
|
22010
|
-
}
|
|
22011
|
-
console.log('匹配到街道(模糊):', streetShort, '->', streetName);
|
|
22012
|
-
break;
|
|
22013
|
-
}
|
|
22014
|
-
}
|
|
22015
|
-
}
|
|
22016
|
-
} catch (err) {
|
|
22017
|
-
_iterator2.e(err);
|
|
22018
|
-
} finally {
|
|
22019
|
-
_iterator2.f();
|
|
22020
|
-
}
|
|
22021
|
-
}
|
|
22123
|
+
if (allAreas.length > 0) {
|
|
22124
|
+
var firstAreaName = allAreas[0].areaName;
|
|
22125
|
+
var sameNameAreas = allAreas.filter(function (item) {
|
|
22126
|
+
return item.areaName === firstAreaName && item.index === allAreas[0].index;
|
|
22127
|
+
});
|
|
22128
|
+
var selectedArea = sameNameAreas[0];
|
|
22129
|
+
if (sameNameAreas.length > 1) {
|
|
22130
|
+
var areaData = sameNameAreas.map(function (item) {
|
|
22131
|
+
return {
|
|
22132
|
+
p: matchedProvince.name,
|
|
22133
|
+
c: item.cityName
|
|
22134
|
+
};
|
|
22135
|
+
});
|
|
22136
|
+
var picked = pickCityByContext(remaining, firstAreaName, areaData);
|
|
22137
|
+
if (picked) {
|
|
22138
|
+
selectedArea = sameNameAreas.find(function (item) {
|
|
22139
|
+
return item.cityName === picked.c;
|
|
22140
|
+
}) || selectedArea;
|
|
22022
22141
|
}
|
|
22023
|
-
parse.addr = afterArea.trim();
|
|
22024
|
-
return parse;
|
|
22025
22142
|
}
|
|
22026
|
-
|
|
22027
|
-
|
|
22028
|
-
|
|
22029
|
-
|
|
22030
|
-
|
|
22031
|
-
|
|
22032
|
-
|
|
22033
|
-
|
|
22034
|
-
|
|
22035
|
-
|
|
22036
|
-
|
|
22037
|
-
|
|
22038
|
-
|
|
22039
|
-
|
|
22040
|
-
|
|
22041
|
-
|
|
22042
|
-
|
|
22043
|
-
|
|
22044
|
-
|
|
22045
|
-
}
|
|
22046
|
-
|
|
22047
|
-
|
|
22048
|
-
|
|
22049
|
-
|
|
22050
|
-
|
|
22051
|
-
|
|
22052
|
-
|
|
22053
|
-
|
|
22054
|
-
if (areaIdx > -1 && areaIdx < 10) {
|
|
22055
|
-
parse.area = _areaName;
|
|
22056
|
-
remaining = remaining.substring(areaIdx + _areaName.length);
|
|
22057
|
-
break;
|
|
22143
|
+
parse.city = selectedArea.cityName;
|
|
22144
|
+
parse.area = selectedArea.areaName;
|
|
22145
|
+
var _afterArea = remaining.substring(selectedArea.index + selectedArea.areaName.length);
|
|
22146
|
+
console.log('通过区反推城市:', parse.city, 'area:', parse.area);
|
|
22147
|
+
if (isFourAddressLevel(sourceData) && selectedArea.cityData.street && selectedArea.cityData.street[selectedArea.areaName]) {
|
|
22148
|
+
var streets = selectedArea.cityData.street[selectedArea.areaName];
|
|
22149
|
+
if (streets && streets.length > 0) {
|
|
22150
|
+
var sortedStreets = streets.filter(function (s) {
|
|
22151
|
+
return s && INVALID_AREA_NAMES.indexOf(s) === -1 && s.length >= 2;
|
|
22152
|
+
}).sort(function (a, b) {
|
|
22153
|
+
return b.length - a.length;
|
|
22154
|
+
});
|
|
22155
|
+
for (var _i3 = 0; _i3 < sortedStreets.length; _i3++) {
|
|
22156
|
+
var streetName = sortedStreets[_i3];
|
|
22157
|
+
var streetIdx = _afterArea.indexOf(streetName);
|
|
22158
|
+
if (streetIdx > -1 && streetIdx < 8) {
|
|
22159
|
+
parse.street = streetName;
|
|
22160
|
+
_afterArea = _afterArea.substring(streetIdx + streetName.length);
|
|
22161
|
+
break;
|
|
22162
|
+
}
|
|
22163
|
+
var streetShort = streetName.replace('街道', '').replace('镇', '').replace('乡', '');
|
|
22164
|
+
if (streetShort !== streetName && streetShort.length >= 2) {
|
|
22165
|
+
streetIdx = _afterArea.indexOf(streetShort);
|
|
22166
|
+
if (streetIdx > -1 && streetIdx < 8) {
|
|
22167
|
+
parse.street = streetName;
|
|
22168
|
+
_afterArea = _afterArea.substring(streetIdx + streetShort.length);
|
|
22169
|
+
if (_afterArea.startsWith('区')) {
|
|
22170
|
+
_afterArea = _afterArea.substring(1);
|
|
22058
22171
|
}
|
|
22172
|
+
break;
|
|
22059
22173
|
}
|
|
22060
|
-
} catch (err) {
|
|
22061
|
-
_iterator5.e(err);
|
|
22062
|
-
} finally {
|
|
22063
|
-
_iterator5.f();
|
|
22064
22174
|
}
|
|
22065
22175
|
}
|
|
22066
|
-
parse.addr = remaining.trim();
|
|
22067
|
-
return parse;
|
|
22068
22176
|
}
|
|
22069
22177
|
}
|
|
22070
|
-
|
|
22071
|
-
|
|
22072
|
-
} finally {
|
|
22073
|
-
_iterator3.f();
|
|
22178
|
+
parse.addr = _afterArea.trim();
|
|
22179
|
+
return parse;
|
|
22074
22180
|
}
|
|
22075
22181
|
}
|
|
22076
22182
|
parse.addr = remaining;
|
|
@@ -22106,9 +22212,10 @@ function findProvinceByArea(address) {
|
|
|
22106
22212
|
var bestMatch = allAreas[0];
|
|
22107
22213
|
var areaData = bestMatch.data;
|
|
22108
22214
|
if (areaData && areaData.length >= 1) {
|
|
22215
|
+
var picked = pickCityByContext(address, bestMatch.name, areaData);
|
|
22109
22216
|
return {
|
|
22110
|
-
province:
|
|
22111
|
-
city:
|
|
22217
|
+
province: picked.p,
|
|
22218
|
+
city: picked.c,
|
|
22112
22219
|
area: bestMatch.name,
|
|
22113
22220
|
addr: address.substring(bestMatch.index + bestMatch.name.length)
|
|
22114
22221
|
};
|
|
@@ -22172,42 +22279,10 @@ function detail_parse(address) {
|
|
|
22172
22279
|
console.log('该area有多个城市:', areaData.map(function (d) {
|
|
22173
22280
|
return d.c;
|
|
22174
22281
|
}));
|
|
22175
|
-
|
|
22176
|
-
|
|
22177
|
-
|
|
22178
|
-
|
|
22179
|
-
try {
|
|
22180
|
-
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
22181
|
-
var _candidate = _step6.value;
|
|
22182
|
-
if (address.includes(_candidate.c)) {
|
|
22183
|
-
parse.province = _candidate.p;
|
|
22184
|
-
parse.city = _candidate.c;
|
|
22185
|
-
break;
|
|
22186
|
-
}
|
|
22187
|
-
}
|
|
22188
|
-
} catch (err) {
|
|
22189
|
-
_iterator6.e(err);
|
|
22190
|
-
} finally {
|
|
22191
|
-
_iterator6.f();
|
|
22192
|
-
}
|
|
22193
|
-
if (!parse.city) {
|
|
22194
|
-
var _iterator7 = _createForOfIteratorHelper(areaData),
|
|
22195
|
-
_step7;
|
|
22196
|
-
try {
|
|
22197
|
-
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
22198
|
-
var candidate = _step7.value;
|
|
22199
|
-
var cityShort = candidate.c.replace('市', '');
|
|
22200
|
-
if (cityShort.length >= 2 && address.includes(cityShort)) {
|
|
22201
|
-
parse.province = candidate.p;
|
|
22202
|
-
parse.city = candidate.c;
|
|
22203
|
-
break;
|
|
22204
|
-
}
|
|
22205
|
-
}
|
|
22206
|
-
} catch (err) {
|
|
22207
|
-
_iterator7.e(err);
|
|
22208
|
-
} finally {
|
|
22209
|
-
_iterator7.f();
|
|
22210
|
-
}
|
|
22282
|
+
var picked = pickCityByContext(address, bestMatch.name, areaData);
|
|
22283
|
+
if (picked) {
|
|
22284
|
+
parse.province = picked.p;
|
|
22285
|
+
parse.city = picked.c;
|
|
22211
22286
|
}
|
|
22212
22287
|
}
|
|
22213
22288
|
}
|
|
@@ -22479,13 +22554,10 @@ var ruleTypeMap = {
|
|
|
22479
22554
|
}, {
|
|
22480
22555
|
title: '不包含',
|
|
22481
22556
|
id: '4'
|
|
22482
|
-
},
|
|
22483
|
-
|
|
22484
|
-
|
|
22485
|
-
|
|
22486
|
-
title: '不包含任一项',
|
|
22487
|
-
id: '6'
|
|
22488
|
-
}, {
|
|
22557
|
+
},
|
|
22558
|
+
// {title: '包含任一项', id: '5'},
|
|
22559
|
+
// {title: '不包含任一项', id: '6'},
|
|
22560
|
+
{
|
|
22489
22561
|
title: '为空',
|
|
22490
22562
|
id: '9'
|
|
22491
22563
|
}, {
|
|
@@ -23403,11 +23475,11 @@ function insertText(dom, value) {
|
|
|
23403
23475
|
}
|
|
23404
23476
|
|
|
23405
23477
|
/**
|
|
23406
|
-
*
|
|
23478
|
+
* 格式化规则设置中单个组件信息
|
|
23407
23479
|
* @param Object component 组件信息
|
|
23408
23480
|
* */
|
|
23409
23481
|
function tidyRuleComponent(component) {
|
|
23410
|
-
var _ruleTypeMap$componen;
|
|
23482
|
+
var _ruleTypeMap$componen, _ruleTypeMap$componen2;
|
|
23411
23483
|
// 组件必须可见
|
|
23412
23484
|
if (component.extraInfo.listShow != 1) {
|
|
23413
23485
|
return null;
|
|
@@ -23423,6 +23495,7 @@ function tidyRuleComponent(component) {
|
|
|
23423
23495
|
insideDataSourceInfo: component.insideDataSourceInfo,
|
|
23424
23496
|
outDataSourceInfo: component.outDataSourceInfo || [],
|
|
23425
23497
|
matchType: (_ruleTypeMap$componen = ruleTypeMap[component.behaviorType][0]) === null || _ruleTypeMap$componen === void 0 ? void 0 : _ruleTypeMap$componen.id,
|
|
23498
|
+
searchType: (_ruleTypeMap$componen2 = ruleTypeMap[component.behaviorType][0]) === null || _ruleTypeMap$componen2 === void 0 ? void 0 : _ruleTypeMap$componen2.id,
|
|
23426
23499
|
parentCode: component.parent ? component.parent.columnCode : '',
|
|
23427
23500
|
parentId: component.parent ? component.parent.id : '',
|
|
23428
23501
|
parentBehaviorType: component.parent ? component.parent.behaviorType : ''
|
|
@@ -23479,7 +23552,7 @@ function tidyRuleComponent(component) {
|
|
|
23479
23552
|
{
|
|
23480
23553
|
data.value = '';
|
|
23481
23554
|
//筛选时,值是空对象
|
|
23482
|
-
if (data.matchType) {
|
|
23555
|
+
if (data.matchType == '8') {
|
|
23483
23556
|
data.value = {
|
|
23484
23557
|
start: '',
|
|
23485
23558
|
end: ''
|
|
@@ -24163,10 +24236,10 @@ const BnAppletUi = {
|
|
|
24163
24236
|
Vue.component("BnDialog", dialog);
|
|
24164
24237
|
Vue.component("BnDrop", BnDrop);
|
|
24165
24238
|
Vue.component("BnDropdown", bnDropdown);
|
|
24239
|
+
Vue.component("BnEmptyTip", BnEmptyTip);
|
|
24166
24240
|
Vue.component("BnFileView", BnFileView);
|
|
24167
24241
|
Vue.component("BnFunText", bnFunText);
|
|
24168
24242
|
Vue.component("BnInpNum", BnInpNum);
|
|
24169
|
-
Vue.component("BnInputNum", BnInputNum);
|
|
24170
24243
|
Vue.component("BnRuleCondition", bnRuleCondition);
|
|
24171
24244
|
Vue.component("BnSelect", BnSelect_select);
|
|
24172
24245
|
Vue.component("BnFiTaxAutoComplete", BnFiTaxAutoComplete);
|