@bytenew/bn-applet-ui 1.1.23 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common.scss +1408 -1408
- package/dist/bn-applet-ui.common.js +2334 -443
- package/dist/bn-applet-ui.common.js.map +1 -1
- package/dist/bn-applet-ui.umd.js +2334 -443
- package/dist/bn-applet-ui.umd.js.map +1 -1
- package/dist/bn-applet-ui.umd.min.js +2 -2
- package/dist/bn-applet-ui.umd.min.js.map +1 -1
- package/package.json +40 -40
package/dist/bn-applet-ui.umd.js
CHANGED
|
@@ -308,7 +308,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `*[data-v-c3b70e18]{box-sizing:border-b
|
|
|
308
308
|
|
|
309
309
|
/***/ },
|
|
310
310
|
|
|
311
|
-
/***/
|
|
311
|
+
/***/ 6160
|
|
312
312
|
(module, __webpack_exports__, __webpack_require__) {
|
|
313
313
|
|
|
314
314
|
"use strict";
|
|
@@ -325,7 +325,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
325
325
|
|
|
326
326
|
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()));
|
|
327
327
|
// Module
|
|
328
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.bnInput-underline[data-v-
|
|
328
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.bnInput-underline[data-v-dc8beb30] .el-input__inner{box-shadow:none;border-bottom:1px solid #dcdfe6;border-radius:0}`, ""]);
|
|
329
329
|
// Exports
|
|
330
330
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
331
331
|
|
|
@@ -960,19 +960,19 @@ var update = add("1f9ce5b4", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
960
960
|
|
|
961
961
|
/***/ },
|
|
962
962
|
|
|
963
|
-
/***/
|
|
963
|
+
/***/ 1820
|
|
964
964
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
965
965
|
|
|
966
966
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
967
967
|
|
|
968
968
|
// load the styles
|
|
969
|
-
var content = __webpack_require__(
|
|
969
|
+
var content = __webpack_require__(6160);
|
|
970
970
|
if(content.__esModule) content = content.default;
|
|
971
971
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
972
972
|
if(content.locals) module.exports = content.locals;
|
|
973
973
|
// add the styles to the DOM
|
|
974
974
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
975
|
-
var update = add("
|
|
975
|
+
var update = add("4fe5e778", content, true, {"sourceMap":false,"shadowMode":false});
|
|
976
976
|
|
|
977
977
|
/***/ },
|
|
978
978
|
|
|
@@ -6500,6 +6500,63 @@ module.exports = {
|
|
|
6500
6500
|
};
|
|
6501
6501
|
|
|
6502
6502
|
|
|
6503
|
+
/***/ },
|
|
6504
|
+
|
|
6505
|
+
/***/ 3063
|
|
6506
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
6507
|
+
|
|
6508
|
+
"use strict";
|
|
6509
|
+
|
|
6510
|
+
// https://github.com/zloirock/core-js/issues/280
|
|
6511
|
+
var userAgent = __webpack_require__(2839);
|
|
6512
|
+
|
|
6513
|
+
module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
|
|
6514
|
+
|
|
6515
|
+
|
|
6516
|
+
/***/ },
|
|
6517
|
+
|
|
6518
|
+
/***/ 533
|
|
6519
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
6520
|
+
|
|
6521
|
+
"use strict";
|
|
6522
|
+
|
|
6523
|
+
var uncurryThis = __webpack_require__(9504);
|
|
6524
|
+
var toLength = __webpack_require__(8014);
|
|
6525
|
+
var toString = __webpack_require__(655);
|
|
6526
|
+
var $repeat = __webpack_require__(2333);
|
|
6527
|
+
var requireObjectCoercible = __webpack_require__(7750);
|
|
6528
|
+
|
|
6529
|
+
var repeat = uncurryThis($repeat);
|
|
6530
|
+
var stringSlice = uncurryThis(''.slice);
|
|
6531
|
+
var ceil = Math.ceil;
|
|
6532
|
+
|
|
6533
|
+
// `String.prototype.{ padStart, padEnd }` methods implementation
|
|
6534
|
+
var createMethod = function (IS_END) {
|
|
6535
|
+
return function ($this, maxLength, fillString) {
|
|
6536
|
+
var S = toString(requireObjectCoercible($this));
|
|
6537
|
+
var intMaxLength = toLength(maxLength);
|
|
6538
|
+
var stringLength = S.length;
|
|
6539
|
+
if (intMaxLength <= stringLength) return S;
|
|
6540
|
+
var fillStr = fillString === undefined ? ' ' : toString(fillString);
|
|
6541
|
+
var fillLen, stringFiller;
|
|
6542
|
+
if (fillStr === '') return S;
|
|
6543
|
+
fillLen = intMaxLength - stringLength;
|
|
6544
|
+
stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));
|
|
6545
|
+
if (stringFiller.length > fillLen) stringFiller = stringSlice(stringFiller, 0, fillLen);
|
|
6546
|
+
return IS_END ? S + stringFiller : stringFiller + S;
|
|
6547
|
+
};
|
|
6548
|
+
};
|
|
6549
|
+
|
|
6550
|
+
module.exports = {
|
|
6551
|
+
// `String.prototype.padStart` method
|
|
6552
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padstart
|
|
6553
|
+
start: createMethod(false),
|
|
6554
|
+
// `String.prototype.padEnd` method
|
|
6555
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padend
|
|
6556
|
+
end: createMethod(true)
|
|
6557
|
+
};
|
|
6558
|
+
|
|
6559
|
+
|
|
6503
6560
|
/***/ },
|
|
6504
6561
|
|
|
6505
6562
|
/***/ 2333
|
|
@@ -9772,6 +9829,26 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
|
|
|
9772
9829
|
});
|
|
9773
9830
|
|
|
9774
9831
|
|
|
9832
|
+
/***/ },
|
|
9833
|
+
|
|
9834
|
+
/***/ 8156
|
|
9835
|
+
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
9836
|
+
|
|
9837
|
+
"use strict";
|
|
9838
|
+
|
|
9839
|
+
var $ = __webpack_require__(6518);
|
|
9840
|
+
var $padStart = (__webpack_require__(533).start);
|
|
9841
|
+
var WEBKIT_BUG = __webpack_require__(3063);
|
|
9842
|
+
|
|
9843
|
+
// `String.prototype.padStart` method
|
|
9844
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padstart
|
|
9845
|
+
$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
|
|
9846
|
+
padStart: function padStart(maxLength /* , fillString = ' ' */) {
|
|
9847
|
+
return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
|
|
9848
|
+
}
|
|
9849
|
+
});
|
|
9850
|
+
|
|
9851
|
+
|
|
9775
9852
|
/***/ },
|
|
9776
9853
|
|
|
9777
9854
|
/***/ 5440
|
|
@@ -10356,7 +10433,7 @@ if (typeof window !== 'undefined') {
|
|
|
10356
10433
|
// Indicate to webpack that this file can be concatenated
|
|
10357
10434
|
/* harmony default export */ const setPublicPath = (null);
|
|
10358
10435
|
|
|
10359
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnAddress/index.vue?vue&type=template&id=8705bc38&scoped=true
|
|
10436
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnAddress/index.vue?vue&type=template&id=8705bc38&scoped=true
|
|
10360
10437
|
var render = function render() {
|
|
10361
10438
|
var _vm = this,
|
|
10362
10439
|
_c = _vm._self._c;
|
|
@@ -10751,7 +10828,7 @@ var component = normalizeComponent(
|
|
|
10751
10828
|
)
|
|
10752
10829
|
|
|
10753
10830
|
/* harmony default export */ const BnAddress = (component.exports);
|
|
10754
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnAddressParse/index.vue?vue&type=template&id=3a0d7cb0
|
|
10831
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnAddressParse/index.vue?vue&type=template&id=3a0d7cb0
|
|
10755
10832
|
var BnAddressParsevue_type_template_id_3a0d7cb0_render = function render() {
|
|
10756
10833
|
var _vm = this,
|
|
10757
10834
|
_c = _vm._self._c;
|
|
@@ -10828,8 +10905,8 @@ var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash
|
|
|
10828
10905
|
};
|
|
10829
10906
|
},
|
|
10830
10907
|
methods: {
|
|
10831
|
-
/**
|
|
10832
|
-
* 自动识别方法(使用防抖)
|
|
10908
|
+
/**
|
|
10909
|
+
* 自动识别方法(使用防抖)
|
|
10833
10910
|
*/
|
|
10834
10911
|
autoAds: (0,external_lodash_.debounce)(function () {
|
|
10835
10912
|
var _this = this;
|
|
@@ -10888,7 +10965,7 @@ var BnAddressParse_component = normalizeComponent(
|
|
|
10888
10965
|
)
|
|
10889
10966
|
|
|
10890
10967
|
/* harmony default export */ const BnAddressParse = (BnAddressParse_component.exports);
|
|
10891
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnCheck/BnCheck.vue?vue&type=template&id=3782b7e9&scoped=true
|
|
10968
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnCheck/BnCheck.vue?vue&type=template&id=3782b7e9&scoped=true
|
|
10892
10969
|
var BnCheckvue_type_template_id_3782b7e9_scoped_true_render = function render() {
|
|
10893
10970
|
var _vm = this,
|
|
10894
10971
|
_c = _vm._self._c;
|
|
@@ -11032,8 +11109,8 @@ var es_string_includes = __webpack_require__(1699);
|
|
|
11032
11109
|
}
|
|
11033
11110
|
},
|
|
11034
11111
|
methods: {
|
|
11035
|
-
/**
|
|
11036
|
-
* 组件默认判断
|
|
11112
|
+
/**
|
|
11113
|
+
* 组件默认判断
|
|
11037
11114
|
* */
|
|
11038
11115
|
check: function check() {
|
|
11039
11116
|
var _this = this;
|
|
@@ -11058,8 +11135,8 @@ var es_string_includes = __webpack_require__(1699);
|
|
|
11058
11135
|
}
|
|
11059
11136
|
}
|
|
11060
11137
|
},
|
|
11061
|
-
/**
|
|
11062
|
-
* 点击事件
|
|
11138
|
+
/**
|
|
11139
|
+
* 点击事件
|
|
11063
11140
|
* */
|
|
11064
11141
|
handleClick: function handleClick() {
|
|
11065
11142
|
var _this2 = this;
|
|
@@ -11104,8 +11181,8 @@ var es_string_includes = __webpack_require__(1699);
|
|
|
11104
11181
|
});
|
|
11105
11182
|
this.emitClick();
|
|
11106
11183
|
},
|
|
11107
|
-
/**
|
|
11108
|
-
* 点击事件透出
|
|
11184
|
+
/**
|
|
11185
|
+
* 点击事件透出
|
|
11109
11186
|
* */
|
|
11110
11187
|
emitClick: function emitClick() {
|
|
11111
11188
|
if (this.onClick) {
|
|
@@ -11145,7 +11222,7 @@ var BnCheck_component = normalizeComponent(
|
|
|
11145
11222
|
)
|
|
11146
11223
|
|
|
11147
11224
|
/* harmony default export */ const BnCheck = (BnCheck_component.exports);
|
|
11148
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDateRange/bnDateRange.vue?vue&type=template&id=5575777a
|
|
11225
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDateRange/bnDateRange.vue?vue&type=template&id=5575777a
|
|
11149
11226
|
var bnDateRangevue_type_template_id_5575777a_render = function render() {
|
|
11150
11227
|
var _vm = this,
|
|
11151
11228
|
_c = _vm._self._c;
|
|
@@ -11324,8 +11401,8 @@ var es_object_keys = __webpack_require__(9432);
|
|
|
11324
11401
|
};
|
|
11325
11402
|
},
|
|
11326
11403
|
methods: {
|
|
11327
|
-
/**
|
|
11328
|
-
* 更新时间选择器数据
|
|
11404
|
+
/**
|
|
11405
|
+
* 更新时间选择器数据
|
|
11329
11406
|
* */
|
|
11330
11407
|
updateValue: function updateValue(value) {
|
|
11331
11408
|
// 更新v-model
|
|
@@ -11335,22 +11412,22 @@ var es_object_keys = __webpack_require__(9432);
|
|
|
11335
11412
|
// 发送change事件
|
|
11336
11413
|
this.$emit('change', value);
|
|
11337
11414
|
},
|
|
11338
|
-
/**
|
|
11339
|
-
* 失去焦点
|
|
11415
|
+
/**
|
|
11416
|
+
* 失去焦点
|
|
11340
11417
|
* */
|
|
11341
11418
|
blur: function blur(val) {
|
|
11342
11419
|
this.$emit('blur', val);
|
|
11343
11420
|
},
|
|
11344
|
-
/**
|
|
11345
|
-
* 获得焦点
|
|
11421
|
+
/**
|
|
11422
|
+
* 获得焦点
|
|
11346
11423
|
* */
|
|
11347
11424
|
focus: function focus(val) {
|
|
11348
11425
|
this.$emit('focus', val);
|
|
11349
11426
|
}
|
|
11350
11427
|
},
|
|
11351
11428
|
computed: {
|
|
11352
|
-
/**
|
|
11353
|
-
* 日期组件value
|
|
11429
|
+
/**
|
|
11430
|
+
* 日期组件value
|
|
11354
11431
|
* */
|
|
11355
11432
|
date: {
|
|
11356
11433
|
get: function get() {
|
|
@@ -11406,7 +11483,7 @@ var bnDateRange_component = normalizeComponent(
|
|
|
11406
11483
|
)
|
|
11407
11484
|
|
|
11408
11485
|
/* harmony default export */ const bnDateRange = (bnDateRange_component.exports);
|
|
11409
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDialog/dialog.vue?vue&type=template&id=f9aaf6de
|
|
11486
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDialog/dialog.vue?vue&type=template&id=f9aaf6de
|
|
11410
11487
|
var dialogvue_type_template_id_f9aaf6de_render = function render() {
|
|
11411
11488
|
var _vm = this,
|
|
11412
11489
|
_c = _vm._self._c;
|
|
@@ -11666,7 +11743,7 @@ var dialog_component = normalizeComponent(
|
|
|
11666
11743
|
var es_regexp_exec = __webpack_require__(7495);
|
|
11667
11744
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.search.js
|
|
11668
11745
|
var es_string_search = __webpack_require__(5746);
|
|
11669
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDown/bnDropdown.vue?vue&type=template&id=a5f24f64&scoped=true
|
|
11746
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDown/bnDropdown.vue?vue&type=template&id=a5f24f64&scoped=true
|
|
11670
11747
|
|
|
11671
11748
|
|
|
11672
11749
|
|
|
@@ -12391,10 +12468,10 @@ function toPinYin(chart) {
|
|
|
12391
12468
|
return getFullChars(chart.replace(/[&\|\\\*^%$#@\-]/g, "")).toLowerCase();
|
|
12392
12469
|
}
|
|
12393
12470
|
|
|
12394
|
-
/**
|
|
12395
|
-
* 匹配大小写字母拼音 返回Boolean值
|
|
12396
|
-
* @param {*} chart 需要匹配的字符
|
|
12397
|
-
* @param {*} data 需要进行匹配的字符
|
|
12471
|
+
/**
|
|
12472
|
+
* 匹配大小写字母拼音 返回Boolean值
|
|
12473
|
+
* @param {*} chart 需要匹配的字符
|
|
12474
|
+
* @param {*} data 需要进行匹配的字符
|
|
12398
12475
|
*/
|
|
12399
12476
|
function searchToBoolean(chart, data) {
|
|
12400
12477
|
return toPinYin(data).indexOf(toPinYin(chart)) !== -1;
|
|
@@ -12478,11 +12555,11 @@ function searchItemFlat(chart, data, name) {
|
|
|
12478
12555
|
name: "bnDropdown",
|
|
12479
12556
|
props: {
|
|
12480
12557
|
value: [String, Array, Number, Object],
|
|
12481
|
-
/**
|
|
12482
|
-
* 下拉弹窗模式
|
|
12483
|
-
* 单选(singleCheck) 默认
|
|
12484
|
-
* 多选(multiCheck)
|
|
12485
|
-
* 多选框(multiCheckBox)
|
|
12558
|
+
/**
|
|
12559
|
+
* 下拉弹窗模式
|
|
12560
|
+
* 单选(singleCheck) 默认
|
|
12561
|
+
* 多选(multiCheck)
|
|
12562
|
+
* 多选框(multiCheckBox)
|
|
12486
12563
|
*/
|
|
12487
12564
|
checkMode: {
|
|
12488
12565
|
type: String,
|
|
@@ -12655,8 +12732,8 @@ function searchItemFlat(chart, data, name) {
|
|
|
12655
12732
|
this.optionCheckMap = checkedMap;
|
|
12656
12733
|
}
|
|
12657
12734
|
},
|
|
12658
|
-
/**
|
|
12659
|
-
* 打开选择器时触发,初始化
|
|
12735
|
+
/**
|
|
12736
|
+
* 打开选择器时触发,初始化
|
|
12660
12737
|
* */
|
|
12661
12738
|
open: function open() {
|
|
12662
12739
|
var _this2 = this;
|
|
@@ -12688,8 +12765,8 @@ function searchItemFlat(chart, data, name) {
|
|
|
12688
12765
|
this.backshowMultiCheckBox();
|
|
12689
12766
|
}
|
|
12690
12767
|
},
|
|
12691
|
-
/**
|
|
12692
|
-
* 关闭时清除没有确定的选项
|
|
12768
|
+
/**
|
|
12769
|
+
* 关闭时清除没有确定的选项
|
|
12693
12770
|
*/
|
|
12694
12771
|
close: function close() {
|
|
12695
12772
|
// 多选框模式
|
|
@@ -12720,10 +12797,10 @@ function searchItemFlat(chart, data, name) {
|
|
|
12720
12797
|
});
|
|
12721
12798
|
}
|
|
12722
12799
|
},
|
|
12723
|
-
/**
|
|
12724
|
-
* 动态计算title
|
|
12725
|
-
* @param {Array} list 数组
|
|
12726
|
-
* @param {String} id 需要匹配的id
|
|
12800
|
+
/**
|
|
12801
|
+
* 动态计算title
|
|
12802
|
+
* @param {Array} list 数组
|
|
12803
|
+
* @param {String} id 需要匹配的id
|
|
12727
12804
|
* */
|
|
12728
12805
|
foundTitle: function foundTitle() {
|
|
12729
12806
|
var _this4 = this;
|
|
@@ -12745,8 +12822,8 @@ function searchItemFlat(chart, data, name) {
|
|
|
12745
12822
|
}
|
|
12746
12823
|
return title;
|
|
12747
12824
|
},
|
|
12748
|
-
/**
|
|
12749
|
-
* 远程加载数据
|
|
12825
|
+
/**
|
|
12826
|
+
* 远程加载数据
|
|
12750
12827
|
* */
|
|
12751
12828
|
loadMore: function loadMore() {
|
|
12752
12829
|
var _this5 = this;
|
|
@@ -12762,9 +12839,9 @@ function searchItemFlat(chart, data, name) {
|
|
|
12762
12839
|
}
|
|
12763
12840
|
});
|
|
12764
12841
|
},
|
|
12765
|
-
/**
|
|
12766
|
-
* 判断是否选中 选中返回true,未选中返回false
|
|
12767
|
-
* @param {Object} item 选项的对象数据
|
|
12842
|
+
/**
|
|
12843
|
+
* 判断是否选中 选中返回true,未选中返回false
|
|
12844
|
+
* @param {Object} item 选项的对象数据
|
|
12768
12845
|
* */
|
|
12769
12846
|
checked: function checked(item) {
|
|
12770
12847
|
var check = false;
|
|
@@ -12796,9 +12873,9 @@ function searchItemFlat(chart, data, name) {
|
|
|
12796
12873
|
}
|
|
12797
12874
|
return check;
|
|
12798
12875
|
},
|
|
12799
|
-
/**
|
|
12800
|
-
* 点击下拉菜单中的某一项,选中或取消选中
|
|
12801
|
-
* @param {Object} item 选项的对象数据
|
|
12876
|
+
/**
|
|
12877
|
+
* 点击下拉菜单中的某一项,选中或取消选中
|
|
12878
|
+
* @param {Object} item 选项的对象数据
|
|
12802
12879
|
* */
|
|
12803
12880
|
chooseItem: function chooseItem(item) {
|
|
12804
12881
|
var value = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
@@ -12868,8 +12945,8 @@ function searchItemFlat(chart, data, name) {
|
|
|
12868
12945
|
// change事件
|
|
12869
12946
|
this.$emit("change", value);
|
|
12870
12947
|
},
|
|
12871
|
-
/**
|
|
12872
|
-
* 快捷查询
|
|
12948
|
+
/**
|
|
12949
|
+
* 快捷查询
|
|
12873
12950
|
* */
|
|
12874
12951
|
search: debounce(function (val) {
|
|
12875
12952
|
// 保存当前选中状态
|
|
@@ -12983,7 +13060,7 @@ var bnDropdown_component = normalizeComponent(
|
|
|
12983
13060
|
)
|
|
12984
13061
|
|
|
12985
13062
|
/* harmony default export */ const bnDropdown = (bnDropdown_component.exports);
|
|
12986
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/BnFileView.vue?vue&type=template&id=27b6fb78&scoped=true
|
|
13063
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/BnFileView.vue?vue&type=template&id=27b6fb78&scoped=true
|
|
12987
13064
|
var BnFileViewvue_type_template_id_27b6fb78_scoped_true_render = function render() {
|
|
12988
13065
|
var _vm = this,
|
|
12989
13066
|
_c = _vm._self._c;
|
|
@@ -13090,7 +13167,7 @@ var es_error_to_string = __webpack_require__(6918);
|
|
|
13090
13167
|
var es_date_to_string = __webpack_require__(3288);
|
|
13091
13168
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.parse-int.js
|
|
13092
13169
|
var es_parse_int = __webpack_require__(8940);
|
|
13093
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/videoPreview.vue?vue&type=template&id=9a7f7bec&scoped=true
|
|
13170
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/videoPreview.vue?vue&type=template&id=9a7f7bec&scoped=true
|
|
13094
13171
|
var videoPreviewvue_type_template_id_9a7f7bec_scoped_true_render = function render() {
|
|
13095
13172
|
var _vm = this,
|
|
13096
13173
|
_c = _vm._self._c;
|
|
@@ -13136,8 +13213,8 @@ var videoPreviewvue_type_template_id_9a7f7bec_scoped_true_staticRenderFns = [];
|
|
|
13136
13213
|
}
|
|
13137
13214
|
},
|
|
13138
13215
|
methods: {
|
|
13139
|
-
/**
|
|
13140
|
-
* 打开播发视频
|
|
13216
|
+
/**
|
|
13217
|
+
* 打开播发视频
|
|
13141
13218
|
* */
|
|
13142
13219
|
open: function open(url) {
|
|
13143
13220
|
this.url = url;
|
|
@@ -13172,7 +13249,7 @@ var videoPreview_component = normalizeComponent(
|
|
|
13172
13249
|
)
|
|
13173
13250
|
|
|
13174
13251
|
/* harmony default export */ const videoPreview = (videoPreview_component.exports);
|
|
13175
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/FileDetail.vue?vue&type=template&id=7fcc19c2&scoped=true
|
|
13252
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/FileDetail.vue?vue&type=template&id=7fcc19c2&scoped=true
|
|
13176
13253
|
var FileDetailvue_type_template_id_7fcc19c2_scoped_true_render = function render() {
|
|
13177
13254
|
var _vm = this,
|
|
13178
13255
|
_c = _vm._self._c;
|
|
@@ -13276,8 +13353,8 @@ var es_parse_float = __webpack_require__(8459);
|
|
|
13276
13353
|
}
|
|
13277
13354
|
},
|
|
13278
13355
|
methods: {
|
|
13279
|
-
/**
|
|
13280
|
-
* 获取下载链接
|
|
13356
|
+
/**
|
|
13357
|
+
* 获取下载链接
|
|
13281
13358
|
* */
|
|
13282
13359
|
getDownloadUrl: function getDownloadUrl(file) {
|
|
13283
13360
|
if (this.downType === 'url') {
|
|
@@ -13285,8 +13362,8 @@ var es_parse_float = __webpack_require__(8459);
|
|
|
13285
13362
|
}
|
|
13286
13363
|
return !file.id ? file.url : '/v2/attachment/' + file.id;
|
|
13287
13364
|
},
|
|
13288
|
-
/**
|
|
13289
|
-
* 计算附件大小
|
|
13365
|
+
/**
|
|
13366
|
+
* 计算附件大小
|
|
13290
13367
|
* */
|
|
13291
13368
|
returnSizeText: function returnSizeText(size) {
|
|
13292
13369
|
if (size && parseFloat(size) / 1024 / 1024 < 1) {
|
|
@@ -13455,15 +13532,15 @@ var FileDetail_component = normalizeComponent(
|
|
|
13455
13532
|
};
|
|
13456
13533
|
},
|
|
13457
13534
|
methods: {
|
|
13458
|
-
/**
|
|
13459
|
-
* 忽略大小写判断文件类型
|
|
13535
|
+
/**
|
|
13536
|
+
* 忽略大小写判断文件类型
|
|
13460
13537
|
* */
|
|
13461
13538
|
includesType: function includesType(typeList, fileType) {
|
|
13462
13539
|
if (!fileType) return false;
|
|
13463
13540
|
return (0,external_lodash_.includes)((0,external_lodash_.map)(typeList, external_lodash_.toLower), (0,external_lodash_.toLower)(fileType));
|
|
13464
13541
|
},
|
|
13465
|
-
/**
|
|
13466
|
-
* 打开文件预览,一般是除了图片、视频、音频这些无法预览的附件类型
|
|
13542
|
+
/**
|
|
13543
|
+
* 打开文件预览,一般是除了图片、视频、音频这些无法预览的附件类型
|
|
13467
13544
|
* */
|
|
13468
13545
|
initViewer: function initViewer(view) {
|
|
13469
13546
|
this.viewer = view;
|
|
@@ -13500,8 +13577,8 @@ var FileDetail_component = normalizeComponent(
|
|
|
13500
13577
|
}
|
|
13501
13578
|
}
|
|
13502
13579
|
},
|
|
13503
|
-
/**
|
|
13504
|
-
* 根据文件类型,判端文件预览展示那种图片或icon
|
|
13580
|
+
/**
|
|
13581
|
+
* 根据文件类型,判端文件预览展示那种图片或icon
|
|
13505
13582
|
* */
|
|
13506
13583
|
getFileImg: function getFileImg(file) {
|
|
13507
13584
|
// 默认文件图片
|
|
@@ -13544,8 +13621,8 @@ var FileDetail_component = normalizeComponent(
|
|
|
13544
13621
|
}
|
|
13545
13622
|
return url;
|
|
13546
13623
|
},
|
|
13547
|
-
/**
|
|
13548
|
-
* 删除附件
|
|
13624
|
+
/**
|
|
13625
|
+
* 删除附件
|
|
13549
13626
|
* */
|
|
13550
13627
|
delFile: function delFile(index) {
|
|
13551
13628
|
this.fileList.splice(index, 1);
|
|
@@ -13585,7 +13662,7 @@ var BnFileView_component = normalizeComponent(
|
|
|
13585
13662
|
)
|
|
13586
13663
|
|
|
13587
13664
|
/* harmony default export */ const BnFileView = (BnFileView_component.exports);
|
|
13588
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFunText/bnFunText.vue?vue&type=template&id=c3b70e18&scoped=true
|
|
13665
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFunText/bnFunText.vue?vue&type=template&id=c3b70e18&scoped=true
|
|
13589
13666
|
|
|
13590
13667
|
|
|
13591
13668
|
|
|
@@ -14146,10 +14223,10 @@ var functions = [{
|
|
|
14146
14223
|
}
|
|
14147
14224
|
}
|
|
14148
14225
|
},
|
|
14149
|
-
/**
|
|
14150
|
-
* 整理组件列表为schema
|
|
14151
|
-
*@param array 组件插入到数组
|
|
14152
|
-
*@param column 组件
|
|
14226
|
+
/**
|
|
14227
|
+
* 整理组件列表为schema
|
|
14228
|
+
*@param array 组件插入到数组
|
|
14229
|
+
*@param column 组件
|
|
14153
14230
|
* */
|
|
14154
14231
|
loadColumn: function loadColumn(array, column) {
|
|
14155
14232
|
var data = {
|
|
@@ -14184,8 +14261,8 @@ var functions = [{
|
|
|
14184
14261
|
array.push(data);
|
|
14185
14262
|
}
|
|
14186
14263
|
},
|
|
14187
|
-
/**
|
|
14188
|
-
* 切换函数分类的打开挂壁
|
|
14264
|
+
/**
|
|
14265
|
+
* 切换函数分类的打开挂壁
|
|
14189
14266
|
* */
|
|
14190
14267
|
changeOpenClass: function changeOpenClass(item) {
|
|
14191
14268
|
var index = this.openFunClass.indexOf(item.name);
|
|
@@ -14195,8 +14272,8 @@ var functions = [{
|
|
|
14195
14272
|
this.openFunClass.splice(index, 1);
|
|
14196
14273
|
}
|
|
14197
14274
|
},
|
|
14198
|
-
/**
|
|
14199
|
-
* 切换字段分类的打开挂壁
|
|
14275
|
+
/**
|
|
14276
|
+
* 切换字段分类的打开挂壁
|
|
14200
14277
|
* */
|
|
14201
14278
|
changeOpenColumn: function changeOpenColumn(item) {
|
|
14202
14279
|
var index = this.openColumnClass.indexOf(item.name);
|
|
@@ -14206,8 +14283,8 @@ var functions = [{
|
|
|
14206
14283
|
this.openColumnClass.splice(index, 1);
|
|
14207
14284
|
}
|
|
14208
14285
|
},
|
|
14209
|
-
/**
|
|
14210
|
-
* 获取焦点
|
|
14286
|
+
/**
|
|
14287
|
+
* 获取焦点
|
|
14211
14288
|
* */
|
|
14212
14289
|
onCodemirrorFocus: function onCodemirrorFocus() {
|
|
14213
14290
|
var _this4 = this;
|
|
@@ -14220,8 +14297,8 @@ var functions = [{
|
|
|
14220
14297
|
// }
|
|
14221
14298
|
});
|
|
14222
14299
|
},
|
|
14223
|
-
/**
|
|
14224
|
-
* 高亮代码
|
|
14300
|
+
/**
|
|
14301
|
+
* 高亮代码
|
|
14225
14302
|
*/
|
|
14226
14303
|
specialString: function specialString(str) {
|
|
14227
14304
|
var specialRegExp = /\*|\+|\?|\||\{|\}|\[|\]|\(|\)|\^|\$|\./g;
|
|
@@ -14285,8 +14362,8 @@ var functions = [{
|
|
|
14285
14362
|
// setTimeout(()=>{
|
|
14286
14363
|
// },3000)
|
|
14287
14364
|
},
|
|
14288
|
-
/**
|
|
14289
|
-
* 选择函数
|
|
14365
|
+
/**
|
|
14366
|
+
* 选择函数
|
|
14290
14367
|
*/
|
|
14291
14368
|
onSelectFun: function onSelectFun(item) {
|
|
14292
14369
|
var _this6 = this;
|
|
@@ -14298,8 +14375,8 @@ var functions = [{
|
|
|
14298
14375
|
_this6.$refs.cm && _this6.$refs.cm.codemirror.focus(); // 确保编辑器获得焦点
|
|
14299
14376
|
});
|
|
14300
14377
|
},
|
|
14301
|
-
/**
|
|
14302
|
-
* 选择字段
|
|
14378
|
+
/**
|
|
14379
|
+
* 选择字段
|
|
14303
14380
|
*/
|
|
14304
14381
|
onSelectCol: function onSelectCol(item) {
|
|
14305
14382
|
var _this7 = this;
|
|
@@ -14328,8 +14405,8 @@ var functions = [{
|
|
|
14328
14405
|
_this7.$refs.cm && _this7.$refs.cm.codemirror.focus(); // 确保编辑器获得焦点
|
|
14329
14406
|
});
|
|
14330
14407
|
},
|
|
14331
|
-
/**
|
|
14332
|
-
* 保存
|
|
14408
|
+
/**
|
|
14409
|
+
* 保存
|
|
14333
14410
|
* */
|
|
14334
14411
|
saveRule: function saveRule() {
|
|
14335
14412
|
var _this8 = this;
|
|
@@ -14362,8 +14439,8 @@ var functions = [{
|
|
|
14362
14439
|
_this8.$emit('save', res);
|
|
14363
14440
|
});
|
|
14364
14441
|
},
|
|
14365
|
-
/**
|
|
14366
|
-
* 打开弹框
|
|
14442
|
+
/**
|
|
14443
|
+
* 打开弹框
|
|
14367
14444
|
* */
|
|
14368
14445
|
openDialog: function openDialog() {
|
|
14369
14446
|
this.postData.exprExec = this.showContent;
|
|
@@ -14409,8 +14486,8 @@ var bnFunText_component = normalizeComponent(
|
|
|
14409
14486
|
)
|
|
14410
14487
|
|
|
14411
14488
|
/* harmony default export */ const bnFunText = (bnFunText_component.exports);
|
|
14412
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=template&id=
|
|
14413
|
-
var
|
|
14489
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=template&id=dc8beb30&scoped=true
|
|
14490
|
+
var BnInpNumvue_type_template_id_dc8beb30_scoped_true_render = function render() {
|
|
14414
14491
|
var _vm = this,
|
|
14415
14492
|
_c = _vm._self._c;
|
|
14416
14493
|
return _c('el-input', {
|
|
@@ -14438,12 +14515,10 @@ var BnInpNumvue_type_template_id_a086af00_scoped_true_render = function render()
|
|
|
14438
14515
|
slot: "prefix"
|
|
14439
14516
|
}, [_vm._t("prefix")], 2), _c('template', {
|
|
14440
14517
|
slot: "suffix"
|
|
14441
|
-
}, [_vm._t("
|
|
14518
|
+
}, [_vm._t("default")], 2)], 2);
|
|
14442
14519
|
};
|
|
14443
|
-
var
|
|
14520
|
+
var BnInpNumvue_type_template_id_dc8beb30_scoped_true_staticRenderFns = [];
|
|
14444
14521
|
|
|
14445
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
14446
|
-
var es_string_ends_with = __webpack_require__(9449);
|
|
14447
14522
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js
|
|
14448
14523
|
var es_string_starts_with = __webpack_require__(1392);
|
|
14449
14524
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=script&lang=js
|
|
@@ -14464,19 +14539,17 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
14464
14539
|
|
|
14465
14540
|
|
|
14466
14541
|
|
|
14467
|
-
|
|
14468
|
-
|
|
14469
14542
|
/* harmony default export */ const BnInpNumvue_type_script_lang_js = ({
|
|
14470
14543
|
name: "BnInpNum",
|
|
14471
14544
|
model: {
|
|
14472
|
-
prop:
|
|
14473
|
-
event:
|
|
14545
|
+
prop: 'modelValue',
|
|
14546
|
+
event: 'update:modelValue'
|
|
14474
14547
|
},
|
|
14475
14548
|
props: {
|
|
14476
14549
|
modelValue: [String, Number],
|
|
14477
14550
|
placeholder: {
|
|
14478
14551
|
type: String,
|
|
14479
|
-
"default":
|
|
14552
|
+
"default": ''
|
|
14480
14553
|
},
|
|
14481
14554
|
size: String,
|
|
14482
14555
|
underline: {
|
|
@@ -14511,61 +14584,59 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
14511
14584
|
},
|
|
14512
14585
|
set: function set(val) {
|
|
14513
14586
|
this.$emit("update:modelValue", val);
|
|
14514
|
-
this.$emit("input", val);
|
|
14515
14587
|
}
|
|
14516
14588
|
}
|
|
14517
14589
|
},
|
|
14518
14590
|
methods: {
|
|
14519
|
-
/**
|
|
14520
|
-
* input事件 实时变化
|
|
14591
|
+
/**
|
|
14592
|
+
* input事件 实时变化
|
|
14521
14593
|
* */
|
|
14522
14594
|
valInput: (0,external_lodash_.debounce)(function (val) {
|
|
14523
14595
|
// 快速处理空值
|
|
14524
14596
|
if (!val) {
|
|
14525
|
-
this.val =
|
|
14597
|
+
this.val = '';
|
|
14526
14598
|
return;
|
|
14527
14599
|
}
|
|
14528
14600
|
var value = val;
|
|
14529
14601
|
|
|
14530
14602
|
// 移除无效字符(一次性处理)
|
|
14531
|
-
value = value.replace(/[^0-9.-]/g,
|
|
14603
|
+
value = value.replace(/[^0-9.-]/g, '');
|
|
14532
14604
|
|
|
14533
14605
|
// 处理负号:只保留开头的第一个负号
|
|
14534
|
-
if (value.startsWith(
|
|
14535
|
-
value =
|
|
14606
|
+
if (value.startsWith('-')) {
|
|
14607
|
+
value = '-' + value.slice(1).replace(/-/g, '');
|
|
14536
14608
|
} else {
|
|
14537
|
-
value = value.replace(/-/g,
|
|
14609
|
+
value = value.replace(/-/g, '');
|
|
14538
14610
|
}
|
|
14539
14611
|
|
|
14540
|
-
//
|
|
14541
|
-
if (value.startsWith(
|
|
14542
|
-
value = value.slice(1).replace(/\./g,
|
|
14612
|
+
// 处理小数点:移除开头的点,保留第一个点
|
|
14613
|
+
if (value.startsWith('.')) {
|
|
14614
|
+
value = value.slice(1).replace(/\./g, '');
|
|
14543
14615
|
} else {
|
|
14544
|
-
var dotIndex = value.indexOf(
|
|
14616
|
+
var dotIndex = value.indexOf('.');
|
|
14545
14617
|
if (dotIndex > 0) {
|
|
14546
|
-
var parts = value.split(
|
|
14547
|
-
value = parts[0] +
|
|
14618
|
+
var parts = value.split('.');
|
|
14619
|
+
value = parts[0] + '.' + parts.slice(1).join('');
|
|
14548
14620
|
}
|
|
14549
14621
|
}
|
|
14550
14622
|
|
|
14551
|
-
//
|
|
14552
|
-
|
|
14553
|
-
|
|
14554
|
-
|
|
14555
|
-
if (precisionNum === 0) {
|
|
14623
|
+
// 处理精度
|
|
14624
|
+
if (value && value !== '-' && this.precision != null && this.precision >= 0) {
|
|
14625
|
+
var _dotIndex = value.indexOf('.');
|
|
14626
|
+
if (this.precision === 0) {
|
|
14556
14627
|
// 精度为0时,移除小数点及之后的内容
|
|
14557
|
-
value =
|
|
14558
|
-
} else if (
|
|
14628
|
+
value = _dotIndex > 0 ? value.slice(0, _dotIndex) : value;
|
|
14629
|
+
} else if (_dotIndex > 0) {
|
|
14559
14630
|
// 限制小数位数
|
|
14560
|
-
var decimalPart = value.slice(
|
|
14561
|
-
if (decimalPart.length >
|
|
14562
|
-
value = value.slice(0,
|
|
14631
|
+
var decimalPart = value.slice(_dotIndex + 1);
|
|
14632
|
+
if (decimalPart.length > this.precision) {
|
|
14633
|
+
value = value.slice(0, _dotIndex + 1 + this.precision);
|
|
14563
14634
|
}
|
|
14564
14635
|
}
|
|
14565
14636
|
}
|
|
14566
14637
|
|
|
14567
14638
|
// 实时校验最大值和最小值
|
|
14568
|
-
if (value && value !==
|
|
14639
|
+
if (value && value !== '-') {
|
|
14569
14640
|
var numValue = parseFloat(value);
|
|
14570
14641
|
if (!isNaN(numValue)) {
|
|
14571
14642
|
// 校验最大值
|
|
@@ -14580,17 +14651,13 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
14580
14651
|
}
|
|
14581
14652
|
this.val = value;
|
|
14582
14653
|
}, 200),
|
|
14583
|
-
/**
|
|
14584
|
-
* change事件上报
|
|
14654
|
+
/**
|
|
14655
|
+
* change事件上报
|
|
14585
14656
|
* */
|
|
14586
14657
|
valChange: function valChange() {
|
|
14587
|
-
//
|
|
14588
|
-
if (this.val ===
|
|
14589
|
-
this.val =
|
|
14590
|
-
}
|
|
14591
|
-
// 移除末尾多余的小数点(如 '0.' → '0')
|
|
14592
|
-
if (this.val && this.val.endsWith(".")) {
|
|
14593
|
-
this.val = this.val.slice(0, -1);
|
|
14658
|
+
// 处理只输入负号的情况
|
|
14659
|
+
if (this.val === '-') {
|
|
14660
|
+
this.val = '';
|
|
14594
14661
|
}
|
|
14595
14662
|
// 最大值最小值校验已在valInput中实时处理,这里保留作为兜底
|
|
14596
14663
|
if (this.val) {
|
|
@@ -14604,21 +14671,20 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
14604
14671
|
}
|
|
14605
14672
|
}
|
|
14606
14673
|
}
|
|
14607
|
-
this.$emit("change", this.val);
|
|
14608
14674
|
},
|
|
14609
|
-
/**
|
|
14610
|
-
* blur事件上报
|
|
14675
|
+
/**
|
|
14676
|
+
* blur事件上报
|
|
14611
14677
|
* */
|
|
14612
14678
|
inputBlur: function inputBlur() {
|
|
14613
|
-
this.$emit(
|
|
14679
|
+
this.$emit('blur', this.val);
|
|
14614
14680
|
}
|
|
14615
14681
|
}
|
|
14616
14682
|
});
|
|
14617
14683
|
;// ./packages/BnInpNum/BnInpNum.vue?vue&type=script&lang=js
|
|
14618
14684
|
/* harmony default export */ const BnInpNum_BnInpNumvue_type_script_lang_js = (BnInpNumvue_type_script_lang_js);
|
|
14619
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=
|
|
14620
|
-
var
|
|
14621
|
-
;// ./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=
|
|
14685
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=dc8beb30&prod&lang=scss&scoped=true
|
|
14686
|
+
var BnInpNumvue_type_style_index_0_id_dc8beb30_prod_lang_scss_scoped_true = __webpack_require__(1820);
|
|
14687
|
+
;// ./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=dc8beb30&prod&lang=scss&scoped=true
|
|
14622
14688
|
|
|
14623
14689
|
;// ./packages/BnInpNum/BnInpNum.vue
|
|
14624
14690
|
|
|
@@ -14631,17 +14697,17 @@ var BnInpNumvue_type_style_index_0_id_a086af00_prod_lang_scss_scoped_true = __we
|
|
|
14631
14697
|
|
|
14632
14698
|
var BnInpNum_component = normalizeComponent(
|
|
14633
14699
|
BnInpNum_BnInpNumvue_type_script_lang_js,
|
|
14634
|
-
|
|
14635
|
-
|
|
14700
|
+
BnInpNumvue_type_template_id_dc8beb30_scoped_true_render,
|
|
14701
|
+
BnInpNumvue_type_template_id_dc8beb30_scoped_true_staticRenderFns,
|
|
14636
14702
|
false,
|
|
14637
14703
|
null,
|
|
14638
|
-
"
|
|
14704
|
+
"dc8beb30",
|
|
14639
14705
|
null
|
|
14640
14706
|
|
|
14641
14707
|
)
|
|
14642
14708
|
|
|
14643
14709
|
/* harmony default export */ const BnInpNum = (BnInpNum_component.exports);
|
|
14644
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInputNum/BnInputNum.vue?vue&type=template&id=2baef958
|
|
14710
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInputNum/BnInputNum.vue?vue&type=template&id=2baef958
|
|
14645
14711
|
var BnInputNumvue_type_template_id_2baef958_render = function render() {
|
|
14646
14712
|
var _vm = this,
|
|
14647
14713
|
_c = _vm._self._c;
|
|
@@ -14812,7 +14878,7 @@ var BnInputNum_component = normalizeComponent(
|
|
|
14812
14878
|
)
|
|
14813
14879
|
|
|
14814
14880
|
/* harmony default export */ const BnInputNum = (BnInputNum_component.exports);
|
|
14815
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=template&id=1d87e9a2&scoped=true
|
|
14881
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=template&id=1d87e9a2&scoped=true
|
|
14816
14882
|
|
|
14817
14883
|
|
|
14818
14884
|
|
|
@@ -15645,53 +15711,53 @@ var searchList = {
|
|
|
15645
15711
|
title: '不为空',
|
|
15646
15712
|
id: '10'
|
|
15647
15713
|
}],
|
|
15648
|
-
/*
|
|
15649
|
-
9: [
|
|
15650
|
-
{title: '范围', id: '8'},
|
|
15651
|
-
{title: '为空', id: '9'},
|
|
15652
|
-
{title: '不为空', id: '10'},
|
|
15653
|
-
],
|
|
15654
|
-
11: [
|
|
15655
|
-
{title: '等于', id: '1'},
|
|
15656
|
-
{title: '不等于', id: '2'},
|
|
15657
|
-
{title: '包含', id: '3'},
|
|
15658
|
-
{title: '不包含', id: '4'},
|
|
15659
|
-
{title: '包含任一项', id: '5'},
|
|
15660
|
-
{title: '不包含任一项', id: '6'},
|
|
15661
|
-
{title: '包含所有项', id: '7'},
|
|
15662
|
-
{title: '范围', id: '8'},
|
|
15663
|
-
{title: '为空', id: '9'},
|
|
15664
|
-
{title: '不为空', id: '10'},
|
|
15665
|
-
{title: '属于', id: '11'},
|
|
15666
|
-
{title: '有交集', id: '12'},
|
|
15667
|
-
{title: '无交集', id: '13'},],
|
|
15668
|
-
12: [
|
|
15669
|
-
{title: '等于', id: '1'},
|
|
15670
|
-
{title: '不等于', id: '2'},
|
|
15671
|
-
{title: '包含', id: '3'},
|
|
15672
|
-
{title: '不包含', id: '4'},
|
|
15673
|
-
{title: '包含任一项', id: '5'},
|
|
15674
|
-
{title: '不包含任一项', id: '6'},
|
|
15675
|
-
{title: '包含所有项', id: '7'},
|
|
15676
|
-
{title: '范围', id: '8'},
|
|
15677
|
-
{title: '为空', id: '9'},
|
|
15678
|
-
{title: '不为空', id: '10'},
|
|
15679
|
-
{title: '属于', id: '11'},
|
|
15680
|
-
{title: '有交集', id: '12'},
|
|
15681
|
-
{title: '无交集', id: '13'},],
|
|
15682
|
-
13: [
|
|
15683
|
-
{title: '等于', id: '1'},
|
|
15684
|
-
{title: '不等于', id: '2'},
|
|
15685
|
-
{title: '包含', id: '3'},
|
|
15686
|
-
{title: '不包含', id: '4'},
|
|
15687
|
-
{title: '包含任一项', id: '5'},
|
|
15688
|
-
{title: '不包含任一项', id: '6'},
|
|
15689
|
-
{title: '包含所有项', id: '7'},
|
|
15690
|
-
{title: '范围', id: '8'},
|
|
15691
|
-
{title: '为空', id: '9'},
|
|
15692
|
-
{title: '不为空', id: '10'},
|
|
15693
|
-
{title: '属于', id: '11'},
|
|
15694
|
-
{title: '有交集', id: '12'},
|
|
15714
|
+
/*
|
|
15715
|
+
9: [
|
|
15716
|
+
{title: '范围', id: '8'},
|
|
15717
|
+
{title: '为空', id: '9'},
|
|
15718
|
+
{title: '不为空', id: '10'},
|
|
15719
|
+
],
|
|
15720
|
+
11: [
|
|
15721
|
+
{title: '等于', id: '1'},
|
|
15722
|
+
{title: '不等于', id: '2'},
|
|
15723
|
+
{title: '包含', id: '3'},
|
|
15724
|
+
{title: '不包含', id: '4'},
|
|
15725
|
+
{title: '包含任一项', id: '5'},
|
|
15726
|
+
{title: '不包含任一项', id: '6'},
|
|
15727
|
+
{title: '包含所有项', id: '7'},
|
|
15728
|
+
{title: '范围', id: '8'},
|
|
15729
|
+
{title: '为空', id: '9'},
|
|
15730
|
+
{title: '不为空', id: '10'},
|
|
15731
|
+
{title: '属于', id: '11'},
|
|
15732
|
+
{title: '有交集', id: '12'},
|
|
15733
|
+
{title: '无交集', id: '13'},],
|
|
15734
|
+
12: [
|
|
15735
|
+
{title: '等于', id: '1'},
|
|
15736
|
+
{title: '不等于', id: '2'},
|
|
15737
|
+
{title: '包含', id: '3'},
|
|
15738
|
+
{title: '不包含', id: '4'},
|
|
15739
|
+
{title: '包含任一项', id: '5'},
|
|
15740
|
+
{title: '不包含任一项', id: '6'},
|
|
15741
|
+
{title: '包含所有项', id: '7'},
|
|
15742
|
+
{title: '范围', id: '8'},
|
|
15743
|
+
{title: '为空', id: '9'},
|
|
15744
|
+
{title: '不为空', id: '10'},
|
|
15745
|
+
{title: '属于', id: '11'},
|
|
15746
|
+
{title: '有交集', id: '12'},
|
|
15747
|
+
{title: '无交集', id: '13'},],
|
|
15748
|
+
13: [
|
|
15749
|
+
{title: '等于', id: '1'},
|
|
15750
|
+
{title: '不等于', id: '2'},
|
|
15751
|
+
{title: '包含', id: '3'},
|
|
15752
|
+
{title: '不包含', id: '4'},
|
|
15753
|
+
{title: '包含任一项', id: '5'},
|
|
15754
|
+
{title: '不包含任一项', id: '6'},
|
|
15755
|
+
{title: '包含所有项', id: '7'},
|
|
15756
|
+
{title: '范围', id: '8'},
|
|
15757
|
+
{title: '为空', id: '9'},
|
|
15758
|
+
{title: '不为空', id: '10'},
|
|
15759
|
+
{title: '属于', id: '11'},
|
|
15760
|
+
{title: '有交集', id: '12'},
|
|
15695
15761
|
{title: '无交集', id: '13'},],*/
|
|
15696
15762
|
15: [{
|
|
15697
15763
|
title: '为空',
|
|
@@ -15703,7 +15769,7 @@ var searchList = {
|
|
|
15703
15769
|
};
|
|
15704
15770
|
|
|
15705
15771
|
//每个组件类型对应的筛选类型列表
|
|
15706
|
-
var submitCheckTypeList =
|
|
15772
|
+
var submitCheckTypeList = {
|
|
15707
15773
|
1: '等于',
|
|
15708
15774
|
2: '不等于',
|
|
15709
15775
|
3: '包含',
|
|
@@ -15738,7 +15804,7 @@ var submitCheckTypeList = (/* unused pure expression or super */ null && ({
|
|
|
15738
15804
|
101: '变更为',
|
|
15739
15805
|
102: '变更为空',
|
|
15740
15806
|
103: '变更为有值'
|
|
15741
|
-
}
|
|
15807
|
+
};
|
|
15742
15808
|
var valueTypeList = {
|
|
15743
15809
|
//{id: '0', title: '自定义填写'},{id: '1', title: '其他组件'},{id: '2', title: '当前组件选项'}, {id: '3', title: '空值'},{id: '4', title: '其他步骤'},{ id: '5', title: '工作表属性' }
|
|
15744
15810
|
'-1': [{
|
|
@@ -15842,7 +15908,7 @@ var subTypeList = {
|
|
|
15842
15908
|
//部分支持 {id: '6', title: '过去x时'}, {id: '7', title: '未来x时'}, {id: '8', title: '过去x月'}, {id: '9', title: '未来x月'},
|
|
15843
15909
|
]
|
|
15844
15910
|
};
|
|
15845
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/cascadeCondition.vue?vue&type=template&id=0b10733b
|
|
15911
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/cascadeCondition.vue?vue&type=template&id=0b10733b
|
|
15846
15912
|
var cascadeConditionvue_type_template_id_0b10733b_render = function render() {
|
|
15847
15913
|
var _vm = this,
|
|
15848
15914
|
_c = _vm._self._c;
|
|
@@ -15934,7 +16000,7 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
15934
16000
|
};
|
|
15935
16001
|
}
|
|
15936
16002
|
|
|
15937
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/BnSwitch.vue?vue&type=template&id=809f2340
|
|
16003
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/BnSwitch.vue?vue&type=template&id=809f2340
|
|
15938
16004
|
var BnSwitchvue_type_template_id_809f2340_render = function render() {
|
|
15939
16005
|
var _vm = this,
|
|
15940
16006
|
_c = _vm._self._c;
|
|
@@ -16181,10 +16247,10 @@ var BnSwitch_component = normalizeComponent(
|
|
|
16181
16247
|
}
|
|
16182
16248
|
this.$emit('update:sourceTitle', this.valueTitle);
|
|
16183
16249
|
},
|
|
16184
|
-
/**
|
|
16185
|
-
* @param data 列表
|
|
16186
|
-
* @param value 编辑回显时已保存的值 []
|
|
16187
|
-
* @returns {*|Array|Array|*}
|
|
16250
|
+
/**
|
|
16251
|
+
* @param data 列表
|
|
16252
|
+
* @param value 编辑回显时已保存的值 []
|
|
16253
|
+
* @returns {*|Array|Array|*}
|
|
16188
16254
|
* */
|
|
16189
16255
|
dataFormat: function dataFormat(data, value) {
|
|
16190
16256
|
return data.map(function (item) {
|
|
@@ -16194,12 +16260,12 @@ var BnSwitch_component = normalizeComponent(
|
|
|
16194
16260
|
});
|
|
16195
16261
|
});
|
|
16196
16262
|
},
|
|
16197
|
-
/**
|
|
16198
|
-
*
|
|
16199
|
-
* @param data 列表
|
|
16200
|
-
* @param key 键
|
|
16201
|
-
* @param value 值
|
|
16202
|
-
* @returns {*|Array|String|Array|*}
|
|
16263
|
+
/**
|
|
16264
|
+
*
|
|
16265
|
+
* @param data 列表
|
|
16266
|
+
* @param key 键
|
|
16267
|
+
* @param value 值
|
|
16268
|
+
* @returns {*|Array|String|Array|*}
|
|
16203
16269
|
*/
|
|
16204
16270
|
getChild: function getChild(data, key, value) {
|
|
16205
16271
|
var _iterator = _createForOfIteratorHelper(data),
|
|
@@ -16282,7 +16348,7 @@ var cascadeCondition_component = normalizeComponent(
|
|
|
16282
16348
|
)
|
|
16283
16349
|
|
|
16284
16350
|
/* harmony default export */ const cascadeCondition = (cascadeCondition_component.exports);
|
|
16285
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/address.vue?vue&type=template&id=1199c288&scoped=true
|
|
16351
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/address.vue?vue&type=template&id=1199c288&scoped=true
|
|
16286
16352
|
var addressvue_type_template_id_1199c288_scoped_true_render = function render() {
|
|
16287
16353
|
var _vm = this,
|
|
16288
16354
|
_c = _vm._self._c;
|
|
@@ -16342,7 +16408,7 @@ var addressvue_type_template_id_1199c288_scoped_true_render = function render()
|
|
|
16342
16408
|
};
|
|
16343
16409
|
var addressvue_type_template_id_1199c288_scoped_true_staticRenderFns = [];
|
|
16344
16410
|
|
|
16345
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/addressSet.vue?vue&type=template&id=50cd72d0&scoped=true
|
|
16411
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/addressSet.vue?vue&type=template&id=50cd72d0&scoped=true
|
|
16346
16412
|
var addressSetvue_type_template_id_50cd72d0_scoped_true_render = function render() {
|
|
16347
16413
|
var _vm = this,
|
|
16348
16414
|
_c = _vm._self._c;
|
|
@@ -16645,7 +16711,7 @@ var address_component = normalizeComponent(
|
|
|
16645
16711
|
)
|
|
16646
16712
|
|
|
16647
16713
|
/* harmony default export */ const address = (address_component.exports);
|
|
16648
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/compositeSearch.vue?vue&type=template&id=09cb19ef&scoped=true
|
|
16714
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/compositeSearch.vue?vue&type=template&id=09cb19ef&scoped=true
|
|
16649
16715
|
|
|
16650
16716
|
var compositeSearchvue_type_template_id_09cb19ef_scoped_true_render = function render() {
|
|
16651
16717
|
var _vm = this,
|
|
@@ -16771,7 +16837,7 @@ var compositeSearch_component = normalizeComponent(
|
|
|
16771
16837
|
)
|
|
16772
16838
|
|
|
16773
16839
|
/* harmony default export */ const compositeSearch = (compositeSearch_component.exports);
|
|
16774
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/numberReg.vue?vue&type=template&id=04541236&scoped=true
|
|
16840
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/numberReg.vue?vue&type=template&id=04541236&scoped=true
|
|
16775
16841
|
var numberRegvue_type_template_id_04541236_scoped_true_render = function render() {
|
|
16776
16842
|
var _vm = this,
|
|
16777
16843
|
_c = _vm._self._c;
|
|
@@ -17149,8 +17215,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17149
17215
|
this.$emit("input", val);
|
|
17150
17216
|
}
|
|
17151
17217
|
},
|
|
17152
|
-
/**
|
|
17153
|
-
* 当进入规则组件,已经选好组件id时,需要将组件信息回显
|
|
17218
|
+
/**
|
|
17219
|
+
* 当进入规则组件,已经选好组件id时,需要将组件信息回显
|
|
17154
17220
|
* */
|
|
17155
17221
|
columnInfo: {
|
|
17156
17222
|
get: function get() {
|
|
@@ -17198,8 +17264,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17198
17264
|
}
|
|
17199
17265
|
},
|
|
17200
17266
|
methods: {
|
|
17201
|
-
/**
|
|
17202
|
-
* 切换第一个选择器是选择column组件还是custom自定义输入或者code功能片段
|
|
17267
|
+
/**
|
|
17268
|
+
* 切换第一个选择器是选择column组件还是custom自定义输入或者code功能片段
|
|
17203
17269
|
* */
|
|
17204
17270
|
changeCustomType: function changeCustomType(type) {
|
|
17205
17271
|
this.arrowCustomType = type ? type : 'column';
|
|
@@ -17241,9 +17307,9 @@ var numberReg_component = normalizeComponent(
|
|
|
17241
17307
|
value: value
|
|
17242
17308
|
});
|
|
17243
17309
|
},
|
|
17244
|
-
/**
|
|
17245
|
-
* 选择组件发生变化,当组件发生了变化,后续的行为都要进行初始化
|
|
17246
|
-
* @param {Any} e select发生变化返回的值
|
|
17310
|
+
/**
|
|
17311
|
+
* 选择组件发生变化,当组件发生了变化,后续的行为都要进行初始化
|
|
17312
|
+
* @param {Any} e select发生变化返回的值
|
|
17247
17313
|
* */
|
|
17248
17314
|
columnChange: function columnChange(e) {
|
|
17249
17315
|
var column = this.columnList.filter(function (i) {
|
|
@@ -17294,8 +17360,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17294
17360
|
value: value
|
|
17295
17361
|
});
|
|
17296
17362
|
},
|
|
17297
|
-
/**
|
|
17298
|
-
* 计算条件发生change
|
|
17363
|
+
/**
|
|
17364
|
+
* 计算条件发生change
|
|
17299
17365
|
* */
|
|
17300
17366
|
searchChange: function searchChange() {
|
|
17301
17367
|
// 根据组件类型、计算条件、值类型来确定规则条件的value的类型
|
|
@@ -17306,8 +17372,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17306
17372
|
value: this.ruleVal
|
|
17307
17373
|
});
|
|
17308
17374
|
},
|
|
17309
|
-
/**
|
|
17310
|
-
* 规则值类型发生变化
|
|
17375
|
+
/**
|
|
17376
|
+
* 规则值类型发生变化
|
|
17311
17377
|
* */
|
|
17312
17378
|
valueTypeChange: function valueTypeChange() {
|
|
17313
17379
|
// 根据组件类型、计算条件、值类型来确定规则条件的value的类型
|
|
@@ -17318,8 +17384,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17318
17384
|
value: this.ruleVal
|
|
17319
17385
|
});
|
|
17320
17386
|
},
|
|
17321
|
-
/**
|
|
17322
|
-
* 规则值子类型发生变化
|
|
17387
|
+
/**
|
|
17388
|
+
* 规则值子类型发生变化
|
|
17323
17389
|
* */
|
|
17324
17390
|
subTypeChange: function subTypeChange() {
|
|
17325
17391
|
// 根据组件类型、计算条件、值类型来确定规则条件的value的类型
|
|
@@ -17330,8 +17396,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17330
17396
|
value: this.ruleVal
|
|
17331
17397
|
});
|
|
17332
17398
|
},
|
|
17333
|
-
/**
|
|
17334
|
-
* 规则的value发生变化
|
|
17399
|
+
/**
|
|
17400
|
+
* 规则的value发生变化
|
|
17335
17401
|
* */
|
|
17336
17402
|
valueChange: function valueChange(target) {
|
|
17337
17403
|
if (target == 'date' && this.ruleVal[this.optionProps.value] == null) {
|
|
@@ -17346,9 +17412,9 @@ var numberReg_component = normalizeComponent(
|
|
|
17346
17412
|
value: this.ruleVal
|
|
17347
17413
|
});
|
|
17348
17414
|
},
|
|
17349
|
-
/**
|
|
17350
|
-
* 获取该类型组件支持那些计算条件
|
|
17351
|
-
* @param {Number} behaviorType 组件行为类型
|
|
17415
|
+
/**
|
|
17416
|
+
* 获取该类型组件支持那些计算条件
|
|
17417
|
+
* @param {Number} behaviorType 组件行为类型
|
|
17352
17418
|
* */
|
|
17353
17419
|
getSearchOptions: function getSearchOptions(behaviorType) {
|
|
17354
17420
|
var optionList = [];
|
|
@@ -17367,9 +17433,9 @@ var numberReg_component = normalizeComponent(
|
|
|
17367
17433
|
}
|
|
17368
17434
|
return optionList;
|
|
17369
17435
|
},
|
|
17370
|
-
/**
|
|
17371
|
-
* 获取该类型组件支持那些值类型
|
|
17372
|
-
* @param {Number} behaviorType 组件行为类型
|
|
17436
|
+
/**
|
|
17437
|
+
* 获取该类型组件支持那些值类型
|
|
17438
|
+
* @param {Number} behaviorType 组件行为类型
|
|
17373
17439
|
* */
|
|
17374
17440
|
getValueOptions: function getValueOptions(column) {
|
|
17375
17441
|
var optionList = [];
|
|
@@ -17387,9 +17453,9 @@ var numberReg_component = normalizeComponent(
|
|
|
17387
17453
|
}
|
|
17388
17454
|
return optionList;
|
|
17389
17455
|
},
|
|
17390
|
-
/**
|
|
17391
|
-
* 获取该类型组件支持那些子类型列表:目前仅只是时间日期
|
|
17392
|
-
* @param {Number} behaviorType 组件行为类型
|
|
17456
|
+
/**
|
|
17457
|
+
* 获取该类型组件支持那些子类型列表:目前仅只是时间日期
|
|
17458
|
+
* @param {Number} behaviorType 组件行为类型
|
|
17393
17459
|
* */
|
|
17394
17460
|
getSubTypeOptions: function getSubTypeOptions(behaviorType) {
|
|
17395
17461
|
var optionList = [];
|
|
@@ -17407,9 +17473,9 @@ var numberReg_component = normalizeComponent(
|
|
|
17407
17473
|
}
|
|
17408
17474
|
return optionList;
|
|
17409
17475
|
},
|
|
17410
|
-
/**
|
|
17411
|
-
* 获取该类型组件支持那些值类型
|
|
17412
|
-
* @param {Number} behaviorType 组件行为类型
|
|
17476
|
+
/**
|
|
17477
|
+
* 获取该类型组件支持那些值类型
|
|
17478
|
+
* @param {Number} behaviorType 组件行为类型
|
|
17413
17479
|
* */
|
|
17414
17480
|
getOtherColumns: function getOtherColumns(behaviorType) {
|
|
17415
17481
|
var _this = this;
|
|
@@ -17439,9 +17505,9 @@ var numberReg_component = normalizeComponent(
|
|
|
17439
17505
|
}
|
|
17440
17506
|
return optionList;
|
|
17441
17507
|
},
|
|
17442
|
-
/**
|
|
17443
|
-
* 动态禁用
|
|
17444
|
-
* @param type:禁用的操作类型,ratio:累计占比(额外输入框)value:设置值的地方禁用(包含了输入、选择、下拉、联动)、valueType:值类型选择、subType:子类型
|
|
17508
|
+
/**
|
|
17509
|
+
* 动态禁用
|
|
17510
|
+
* @param type:禁用的操作类型,ratio:累计占比(额外输入框)value:设置值的地方禁用(包含了输入、选择、下拉、联动)、valueType:值类型选择、subType:子类型
|
|
17445
17511
|
* */
|
|
17446
17512
|
isDisabled: function isDisabled(type) {
|
|
17447
17513
|
if (this.$options.propsData.hasOwnProperty('disabledFun')) {
|
|
@@ -17451,11 +17517,11 @@ var numberReg_component = normalizeComponent(
|
|
|
17451
17517
|
return false;
|
|
17452
17518
|
}
|
|
17453
17519
|
},
|
|
17454
|
-
/**
|
|
17455
|
-
* 给组件value赋予默认类型
|
|
17456
|
-
* @param {Number} behaviorType 组件行为类型
|
|
17457
|
-
* @param {String} searchType 规则的计算条件类型:等于、包含、大于、包含任一项等
|
|
17458
|
-
* @param {String} valueType 规则的值类型:当前组件值、自定义填写、选择其他组件
|
|
17520
|
+
/**
|
|
17521
|
+
* 给组件value赋予默认类型
|
|
17522
|
+
* @param {Number} behaviorType 组件行为类型
|
|
17523
|
+
* @param {String} searchType 规则的计算条件类型:等于、包含、大于、包含任一项等
|
|
17524
|
+
* @param {String} valueType 规则的值类型:当前组件值、自定义填写、选择其他组件
|
|
17459
17525
|
* */
|
|
17460
17526
|
setValType: function setValType(behaviorType, searchType, valueType) {
|
|
17461
17527
|
var data = '';
|
|
@@ -17535,14 +17601,14 @@ var numberReg_component = normalizeComponent(
|
|
|
17535
17601
|
}
|
|
17536
17602
|
return data;
|
|
17537
17603
|
},
|
|
17538
|
-
/**
|
|
17539
|
-
* 校验value的数据类型,因为有时候数据类型不对组件会报错
|
|
17604
|
+
/**
|
|
17605
|
+
* 校验value的数据类型,因为有时候数据类型不对组件会报错
|
|
17540
17606
|
* */
|
|
17541
17607
|
checkValType: function checkValType(type) {
|
|
17542
17608
|
return _typeof(this.ruleVal[this.optionProps.value]) == type;
|
|
17543
17609
|
},
|
|
17544
|
-
/**
|
|
17545
|
-
* 删除规则
|
|
17610
|
+
/**
|
|
17611
|
+
* 删除规则
|
|
17546
17612
|
* */
|
|
17547
17613
|
del: function del() {
|
|
17548
17614
|
this.$emit('del', {
|
|
@@ -17550,8 +17616,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17550
17616
|
value: this.ruleVal
|
|
17551
17617
|
});
|
|
17552
17618
|
},
|
|
17553
|
-
/**
|
|
17554
|
-
* 清空规则内容
|
|
17619
|
+
/**
|
|
17620
|
+
* 清空规则内容
|
|
17555
17621
|
* */
|
|
17556
17622
|
empty: function empty() {
|
|
17557
17623
|
// 清空计算类型的值
|
|
@@ -17559,15 +17625,15 @@ var numberReg_component = normalizeComponent(
|
|
|
17559
17625
|
// 清空value
|
|
17560
17626
|
this.ruleVal[this.optionProps.value] = this.setValType(this.ruleVal.behaviorType);
|
|
17561
17627
|
},
|
|
17562
|
-
/**
|
|
17563
|
-
* 设置触发值
|
|
17628
|
+
/**
|
|
17629
|
+
* 设置触发值
|
|
17564
17630
|
* */
|
|
17565
17631
|
setDefaultSearch: function setDefaultSearch() {
|
|
17566
17632
|
// 清空计算类型的值
|
|
17567
17633
|
this.ruleVal[this.optionProps.searchType] = this.getSearchOptions(this.ruleVal.behaviorType)[0].id;
|
|
17568
17634
|
},
|
|
17569
|
-
/**
|
|
17570
|
-
* 日期,日期区间,判断时间类型
|
|
17635
|
+
/**
|
|
17636
|
+
* 日期,日期区间,判断时间类型
|
|
17571
17637
|
* */
|
|
17572
17638
|
getDateType: function getDateType(type) {
|
|
17573
17639
|
var dateType = type == "date" ? "datetime" : "datetimerange";
|
|
@@ -17590,8 +17656,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17590
17656
|
}
|
|
17591
17657
|
return dateType;
|
|
17592
17658
|
},
|
|
17593
|
-
/**
|
|
17594
|
-
* 日期,日期区间,判断时间格式化
|
|
17659
|
+
/**
|
|
17660
|
+
* 日期,日期区间,判断时间格式化
|
|
17595
17661
|
* */
|
|
17596
17662
|
getDateFormat: function getDateFormat() {
|
|
17597
17663
|
var format = "yyyy-MM-dd HH:mm:ss";
|
|
@@ -17648,7 +17714,7 @@ var bnRuleCondition_component = normalizeComponent(
|
|
|
17648
17714
|
)
|
|
17649
17715
|
|
|
17650
17716
|
/* harmony default export */ const bnRuleCondition = (bnRuleCondition_component.exports);
|
|
17651
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnSelect/select.vue?vue&type=template&id=12683c88&scoped=true
|
|
17717
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnSelect/select.vue?vue&type=template&id=12683c88&scoped=true
|
|
17652
17718
|
|
|
17653
17719
|
|
|
17654
17720
|
|
|
@@ -18329,10 +18395,10 @@ function util_toPinYin(chart) {
|
|
|
18329
18395
|
return util_getFullChars(chart.replace(/[&\|\\\*^%$#@\-]/g, "")).toLowerCase();
|
|
18330
18396
|
}
|
|
18331
18397
|
|
|
18332
|
-
/**
|
|
18333
|
-
* 匹配大小写字母拼音 返回Boolean值
|
|
18334
|
-
* @param {*} chart 需要匹配的字符
|
|
18335
|
-
* @param {*} data 需要进行匹配的字符
|
|
18398
|
+
/**
|
|
18399
|
+
* 匹配大小写字母拼音 返回Boolean值
|
|
18400
|
+
* @param {*} chart 需要匹配的字符
|
|
18401
|
+
* @param {*} data 需要进行匹配的字符
|
|
18336
18402
|
*/
|
|
18337
18403
|
function util_searchToBoolean(chart, data) {
|
|
18338
18404
|
return util_toPinYin(data || '').indexOf(util_toPinYin(chart || '')) !== -1;
|
|
@@ -18646,18 +18712,18 @@ function util_searchToBoolean(chart, data) {
|
|
|
18646
18712
|
this.initSelectDataDebounced.cancel();
|
|
18647
18713
|
},
|
|
18648
18714
|
methods: {
|
|
18649
|
-
/**
|
|
18650
|
-
* 下拉选项显示 返回Boolean true:显示
|
|
18651
|
-
* @param {Object} item 某一选择的值、option的值
|
|
18715
|
+
/**
|
|
18716
|
+
* 下拉选项显示 返回Boolean true:显示
|
|
18717
|
+
* @param {Object} item 某一选择的值、option的值
|
|
18652
18718
|
*/
|
|
18653
18719
|
optionHideFunction: function optionHideFunction(item) {
|
|
18654
18720
|
if (this.optionHideFun) return !this.optionHideFun(item) && !item.isHide;else return !item.isHide;
|
|
18655
18721
|
},
|
|
18656
|
-
/**
|
|
18657
|
-
* Option中checkbox当绑定值变化时触发的事件 更新后的值
|
|
18658
|
-
* @change="onCheckChange(checkBoxValue(labelInValue?item:item[optionProps['value']]), labelInValue?item:item[optionProps['value']])"
|
|
18659
|
-
* @param {Boolean} val checkbox更新后的值
|
|
18660
|
-
* @param {Object} item option的值
|
|
18722
|
+
/**
|
|
18723
|
+
* Option中checkbox当绑定值变化时触发的事件 更新后的值
|
|
18724
|
+
* @change="onCheckChange(checkBoxValue(labelInValue?item:item[optionProps['value']]), labelInValue?item:item[optionProps['value']])"
|
|
18725
|
+
* @param {Boolean} val checkbox更新后的值
|
|
18726
|
+
* @param {Object} item option的值
|
|
18661
18727
|
*/
|
|
18662
18728
|
onCheckChange: function onCheckChange(val, item) {
|
|
18663
18729
|
var _this = this;
|
|
@@ -18686,9 +18752,9 @@ function util_searchToBoolean(chart, data) {
|
|
|
18686
18752
|
_this.changeValue();
|
|
18687
18753
|
});
|
|
18688
18754
|
},
|
|
18689
|
-
/**
|
|
18690
|
-
* 返回option中checkbox的value状态
|
|
18691
|
-
* @param {Object} item option的选项
|
|
18755
|
+
/**
|
|
18756
|
+
* 返回option中checkbox的value状态
|
|
18757
|
+
* @param {Object} item option的选项
|
|
18692
18758
|
*/
|
|
18693
18759
|
checkBoxValue: function checkBoxValue(item) {
|
|
18694
18760
|
var _this2 = this;
|
|
@@ -18705,22 +18771,22 @@ function util_searchToBoolean(chart, data) {
|
|
|
18705
18771
|
return false;
|
|
18706
18772
|
}
|
|
18707
18773
|
},
|
|
18708
|
-
/**
|
|
18709
|
-
* 下拉选项禁用 返回Boolean true:禁用
|
|
18710
|
-
* @param {Object} item 某一选择的值、option的值
|
|
18774
|
+
/**
|
|
18775
|
+
* 下拉选项禁用 返回Boolean true:禁用
|
|
18776
|
+
* @param {Object} item 某一选择的值、option的值
|
|
18711
18777
|
*/
|
|
18712
18778
|
optionDisabledFunction: function optionDisabledFunction(item) {
|
|
18713
18779
|
if (this.optionDisabledFun) return this.optionDisabledFun(item) || item.disabled;else return item.disabled;
|
|
18714
18780
|
},
|
|
18715
|
-
/**
|
|
18716
|
-
* 多选模式下移除tag时触发
|
|
18717
|
-
* @param {Object} tag 移除的tag值
|
|
18781
|
+
/**
|
|
18782
|
+
* 多选模式下移除tag时触发
|
|
18783
|
+
* @param {Object} tag 移除的tag值
|
|
18718
18784
|
*/
|
|
18719
18785
|
removeTag: function removeTag(tag) {
|
|
18720
18786
|
this.$emit('removeTag', tag);
|
|
18721
18787
|
},
|
|
18722
|
-
/**
|
|
18723
|
-
* select的change事件
|
|
18788
|
+
/**
|
|
18789
|
+
* select的change事件
|
|
18724
18790
|
*/
|
|
18725
18791
|
changeValue: function changeValue() {
|
|
18726
18792
|
var _this3 = this;
|
|
@@ -18750,9 +18816,9 @@ function util_searchToBoolean(chart, data) {
|
|
|
18750
18816
|
}
|
|
18751
18817
|
});
|
|
18752
18818
|
},
|
|
18753
|
-
/**
|
|
18754
|
-
* 下拉框出现/隐藏时触发
|
|
18755
|
-
* @param {Boolean} bol 出现则为 true,隐藏则为 false
|
|
18819
|
+
/**
|
|
18820
|
+
* 下拉框出现/隐藏时触发
|
|
18821
|
+
* @param {Boolean} bol 出现则为 true,隐藏则为 false
|
|
18756
18822
|
*/
|
|
18757
18823
|
visibleChange: function visibleChange(bol) {
|
|
18758
18824
|
var _this4 = this;
|
|
@@ -18819,15 +18885,15 @@ function util_searchToBoolean(chart, data) {
|
|
|
18819
18885
|
});
|
|
18820
18886
|
}
|
|
18821
18887
|
},
|
|
18822
|
-
/**
|
|
18823
|
-
* 可清空的单选模式下用户点击清空按钮时触发
|
|
18888
|
+
/**
|
|
18889
|
+
* 可清空的单选模式下用户点击清空按钮时触发
|
|
18824
18890
|
*/
|
|
18825
18891
|
clear: function clear() {
|
|
18826
18892
|
this.$emit('clear');
|
|
18827
18893
|
},
|
|
18828
|
-
/**
|
|
18829
|
-
* 返回option的label data: option数据
|
|
18830
|
-
* @param {Object} data option数据
|
|
18894
|
+
/**
|
|
18895
|
+
* 返回option的label data: option数据
|
|
18896
|
+
* @param {Object} data option数据
|
|
18831
18897
|
*/
|
|
18832
18898
|
showLabel: function showLabel(data) {
|
|
18833
18899
|
if (this.optionProps['label'] instanceof Function) {
|
|
@@ -18836,9 +18902,9 @@ function util_searchToBoolean(chart, data) {
|
|
|
18836
18902
|
return data[this.optionProps['label']];
|
|
18837
18903
|
}
|
|
18838
18904
|
},
|
|
18839
|
-
/**
|
|
18840
|
-
* 快速搜索选项
|
|
18841
|
-
* @param {String} val 搜索的值
|
|
18905
|
+
/**
|
|
18906
|
+
* 快速搜索选项
|
|
18907
|
+
* @param {String} val 搜索的值
|
|
18842
18908
|
*/
|
|
18843
18909
|
filterMethod: function filterMethod(val) {
|
|
18844
18910
|
var _this5 = this;
|
|
@@ -18860,8 +18926,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
18860
18926
|
this.loadingOptionList();
|
|
18861
18927
|
}
|
|
18862
18928
|
},
|
|
18863
|
-
/**
|
|
18864
|
-
* 判断是否是全选状态
|
|
18929
|
+
/**
|
|
18930
|
+
* 判断是否是全选状态
|
|
18865
18931
|
*/
|
|
18866
18932
|
isSelectAll: function isSelectAll() {
|
|
18867
18933
|
var _this6 = this;
|
|
@@ -18885,8 +18951,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
18885
18951
|
}
|
|
18886
18952
|
}
|
|
18887
18953
|
},
|
|
18888
|
-
/**
|
|
18889
|
-
* 全选事件
|
|
18954
|
+
/**
|
|
18955
|
+
* 全选事件
|
|
18890
18956
|
*/
|
|
18891
18957
|
onSelectAll: function onSelectAll() {
|
|
18892
18958
|
var _this7 = this;
|
|
@@ -18924,14 +18990,14 @@ function util_searchToBoolean(chart, data) {
|
|
|
18924
18990
|
this.isIndeterminate = false;
|
|
18925
18991
|
this.changeValue();
|
|
18926
18992
|
},
|
|
18927
|
-
/**
|
|
18928
|
-
* 隐藏下拉选择框事件
|
|
18993
|
+
/**
|
|
18994
|
+
* 隐藏下拉选择框事件
|
|
18929
18995
|
*/
|
|
18930
18996
|
onConfirm: function onConfirm() {
|
|
18931
18997
|
this.$refs.selectBox.blur();
|
|
18932
18998
|
},
|
|
18933
|
-
/**
|
|
18934
|
-
* 滚动加载
|
|
18999
|
+
/**
|
|
19000
|
+
* 滚动加载
|
|
18935
19001
|
*/
|
|
18936
19002
|
loadMore: function loadMore() {
|
|
18937
19003
|
// 判断是否执行远程搜索
|
|
@@ -18957,8 +19023,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
18957
19023
|
this.isSelectAll();
|
|
18958
19024
|
}
|
|
18959
19025
|
},
|
|
18960
|
-
/**
|
|
18961
|
-
* 请求内部数据源
|
|
19026
|
+
/**
|
|
19027
|
+
* 请求内部数据源
|
|
18962
19028
|
*/
|
|
18963
19029
|
loadOption: function loadOption(type) {
|
|
18964
19030
|
var _this8 = this;
|
|
@@ -19015,8 +19081,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
19015
19081
|
_this8.showMore = false;
|
|
19016
19082
|
});
|
|
19017
19083
|
},
|
|
19018
|
-
/**
|
|
19019
|
-
* 初始化远程搜索数据
|
|
19084
|
+
/**
|
|
19085
|
+
* 初始化远程搜索数据
|
|
19020
19086
|
*/
|
|
19021
19087
|
initRemoteMethod: function initRemoteMethod() {
|
|
19022
19088
|
this.moduleDefinition = [];
|
|
@@ -19037,8 +19103,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
19037
19103
|
this.loadMore();
|
|
19038
19104
|
}
|
|
19039
19105
|
},
|
|
19040
|
-
/**
|
|
19041
|
-
* 初始化组件的数据
|
|
19106
|
+
/**
|
|
19107
|
+
* 初始化组件的数据
|
|
19042
19108
|
*/
|
|
19043
19109
|
initSelectData: function initSelectData() {
|
|
19044
19110
|
var _this9 = this;
|
|
@@ -19144,8 +19210,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
19144
19210
|
}
|
|
19145
19211
|
},
|
|
19146
19212
|
computed: {
|
|
19147
|
-
/**
|
|
19148
|
-
* option 展示的列表
|
|
19213
|
+
/**
|
|
19214
|
+
* option 展示的列表
|
|
19149
19215
|
*/
|
|
19150
19216
|
optionShowList: function optionShowList() {
|
|
19151
19217
|
var _this0 = this;
|
|
@@ -19182,8 +19248,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
19182
19248
|
return this.total + (((_this$optionList = this.optionList) === null || _this$optionList === void 0 ? void 0 : _this$optionList.length) || 0);
|
|
19183
19249
|
}
|
|
19184
19250
|
},
|
|
19185
|
-
/**
|
|
19186
|
-
* option 所有数据的id数组
|
|
19251
|
+
/**
|
|
19252
|
+
* option 所有数据的id数组
|
|
19187
19253
|
*/
|
|
19188
19254
|
pageOptionListIds: function pageOptionListIds() {
|
|
19189
19255
|
return this.optionList.slice(0, 10);
|
|
@@ -19216,8 +19282,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
19216
19282
|
valueKeys: function valueKeys() {
|
|
19217
19283
|
return Array.from(new Set([].concat(_toConsumableArray(Object.values(this.optionProps)), _toConsumableArray(this.valueProps))));
|
|
19218
19284
|
},
|
|
19219
|
-
/**
|
|
19220
|
-
* select的value数据
|
|
19285
|
+
/**
|
|
19286
|
+
* select的value数据
|
|
19221
19287
|
*/
|
|
19222
19288
|
select: {
|
|
19223
19289
|
get: function get() {
|
|
@@ -19254,8 +19320,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
19254
19320
|
}
|
|
19255
19321
|
}
|
|
19256
19322
|
},
|
|
19257
|
-
/**
|
|
19258
|
-
* select 的 popperClass
|
|
19323
|
+
/**
|
|
19324
|
+
* select 的 popperClass
|
|
19259
19325
|
*/
|
|
19260
19326
|
popperClassName: function popperClassName() {
|
|
19261
19327
|
var className = "bytenew-select-popper ".concat(this.popperClass || '');
|
|
@@ -19380,7 +19446,7 @@ var select_component = normalizeComponent(
|
|
|
19380
19446
|
)
|
|
19381
19447
|
|
|
19382
19448
|
/* harmony default export */ const BnSelect_select = (select_component.exports);
|
|
19383
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFiTaxAutoComplete/BnFiTaxAutoComplete.vue?vue&type=template&id=6a5eae5b&scoped=true
|
|
19449
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFiTaxAutoComplete/BnFiTaxAutoComplete.vue?vue&type=template&id=6a5eae5b&scoped=true
|
|
19384
19450
|
|
|
19385
19451
|
|
|
19386
19452
|
var BnFiTaxAutoCompletevue_type_template_id_6a5eae5b_scoped_true_render = function render() {
|
|
@@ -19789,10 +19855,10 @@ function _asyncToGenerator(n) {
|
|
|
19789
19855
|
handleBlurs: function handleBlurs() {
|
|
19790
19856
|
this.visible = false;
|
|
19791
19857
|
},
|
|
19792
|
-
/**
|
|
19793
|
-
* @name 选择change
|
|
19794
|
-
* @description 当表单中发票类型含有专用发票类型时,手动查询公司抬头
|
|
19795
|
-
* @param {*} record
|
|
19858
|
+
/**
|
|
19859
|
+
* @name 选择change
|
|
19860
|
+
* @description 当表单中发票类型含有专用发票类型时,手动查询公司抬头
|
|
19861
|
+
* @param {*} record
|
|
19796
19862
|
*/
|
|
19797
19863
|
selectItem: function selectItem(record) {
|
|
19798
19864
|
if (this.isSpecialTax) {
|
|
@@ -19961,11 +20027,99 @@ var es_map = __webpack_require__(6033);
|
|
|
19961
20027
|
var es_map_get_or_insert = __webpack_require__(5367);
|
|
19962
20028
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.get-or-insert-computed.js
|
|
19963
20029
|
var es_map_get_or_insert_computed = __webpack_require__(2731);
|
|
20030
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.pad-start.js
|
|
20031
|
+
var es_string_pad_start = __webpack_require__(8156);
|
|
20032
|
+
;// ../../packages/bn-util/config.js
|
|
20033
|
+
|
|
20034
|
+
|
|
20035
|
+
|
|
20036
|
+
|
|
20037
|
+
|
|
20038
|
+
|
|
20039
|
+
|
|
20040
|
+
|
|
20041
|
+
|
|
20042
|
+
|
|
20043
|
+
|
|
20044
|
+
|
|
20045
|
+
/**
|
|
20046
|
+
* 组件库全局配置
|
|
20047
|
+
* 用于解决组件库打包后无法获取使用方项目环境变量的问题
|
|
20048
|
+
*/
|
|
20049
|
+
|
|
20050
|
+
// 全局配置对象
|
|
20051
|
+
var globalConfig = {
|
|
20052
|
+
// API基础URL
|
|
20053
|
+
apiBaseUrl: ''
|
|
20054
|
+
// 其他配置项可以在这里添加
|
|
20055
|
+
};
|
|
20056
|
+
|
|
20057
|
+
/**
|
|
20058
|
+
* 设置全局配置
|
|
20059
|
+
* @param {Object} config 配置对象
|
|
20060
|
+
* @param {String} config.apiBaseUrl API基础URL
|
|
20061
|
+
*/
|
|
20062
|
+
function setGlobalConfig(config) {
|
|
20063
|
+
if (config.apiBaseUrl !== undefined) {
|
|
20064
|
+
globalConfig.apiBaseUrl = config.apiBaseUrl;
|
|
20065
|
+
}
|
|
20066
|
+
// 支持其他配置项的设置
|
|
20067
|
+
Object.keys(config).forEach(function (key) {
|
|
20068
|
+
if (config[key] !== undefined) {
|
|
20069
|
+
globalConfig[key] = config[key];
|
|
20070
|
+
}
|
|
20071
|
+
});
|
|
20072
|
+
}
|
|
20073
|
+
|
|
20074
|
+
/**
|
|
20075
|
+
* 获取全局配置
|
|
20076
|
+
* @returns {Object} 配置对象
|
|
20077
|
+
*/
|
|
20078
|
+
function getGlobalConfig() {
|
|
20079
|
+
return globalConfig;
|
|
20080
|
+
}
|
|
20081
|
+
|
|
20082
|
+
/**
|
|
20083
|
+
* 获取API基础URL
|
|
20084
|
+
* @returns {String} API基础URL
|
|
20085
|
+
*/
|
|
20086
|
+
function getApiBaseUrl() {
|
|
20087
|
+
var _window$__BN_CONFIG__, _import$meta$env;
|
|
20088
|
+
// 优先使用设置的配置
|
|
20089
|
+
if (globalConfig.apiBaseUrl) {
|
|
20090
|
+
return globalConfig.apiBaseUrl;
|
|
20091
|
+
}
|
|
20092
|
+
|
|
20093
|
+
// 兼容性处理:尝试从window对象获取
|
|
20094
|
+
if (typeof window !== 'undefined' && (_window$__BN_CONFIG__ = window.__BN_CONFIG__) !== null && _window$__BN_CONFIG__ !== void 0 && _window$__BN_CONFIG__.apiBaseUrl) {
|
|
20095
|
+
return window.__BN_CONFIG__.apiBaseUrl;
|
|
20096
|
+
}
|
|
20097
|
+
|
|
20098
|
+
// 开发环境下尝试使用import.meta.env
|
|
20099
|
+
if ( true && (_import$meta$env = {"NODE_ENV":"production"}) !== null && _import$meta$env !== void 0 && _import$meta$env.VITE_API_BASE_URL) {
|
|
20100
|
+
return undefined;
|
|
20101
|
+
}
|
|
20102
|
+
|
|
20103
|
+
// 返回空字符串作为默认值
|
|
20104
|
+
console.warn('API基础URL未配置,请在使用组件库前调用 setGlobalConfig 设置 apiBaseUrl');
|
|
20105
|
+
return '';
|
|
20106
|
+
}
|
|
20107
|
+
/* harmony default export */ const config = ({
|
|
20108
|
+
setGlobalConfig: setGlobalConfig,
|
|
20109
|
+
getGlobalConfig: getGlobalConfig,
|
|
20110
|
+
getApiBaseUrl: getApiBaseUrl
|
|
20111
|
+
});
|
|
19964
20112
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
19965
20113
|
var es_array_sort = __webpack_require__(6910);
|
|
20114
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
20115
|
+
var es_string_ends_with = __webpack_require__(9449);
|
|
19966
20116
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
19967
20117
|
var es_string_trim = __webpack_require__(2762);
|
|
19968
|
-
;//
|
|
20118
|
+
;// ../../packages/bn-util/addressParse.js
|
|
20119
|
+
|
|
20120
|
+
|
|
20121
|
+
|
|
20122
|
+
|
|
19969
20123
|
|
|
19970
20124
|
|
|
19971
20125
|
|
|
@@ -20027,11 +20181,11 @@ var mArea = {}; //以区为级别的数据 里面包括 p:省 c:市
|
|
|
20027
20181
|
|
|
20028
20182
|
var mStreet = {}; //以街道为级别的数据 里面包括 c:市 a:区
|
|
20029
20183
|
|
|
20030
|
-
/**
|
|
20031
|
-
* 处理原始地址数据转换成专用数据
|
|
20032
|
-
* @param list 原始数据
|
|
20033
|
-
* @param init 是否初始化 如传空 已转换过不会再次转换
|
|
20034
|
-
* @returns {boolean}
|
|
20184
|
+
/**
|
|
20185
|
+
* 处理原始地址数据转换成专用数据
|
|
20186
|
+
* @param list 原始数据
|
|
20187
|
+
* @param init 是否初始化 如传空 已转换过不会再次转换
|
|
20188
|
+
* @returns {boolean}
|
|
20035
20189
|
*/
|
|
20036
20190
|
function parseArea(list, init) {
|
|
20037
20191
|
if (!init && defaultData.length) {
|
|
@@ -20083,11 +20237,11 @@ function parseArea(list, init) {
|
|
|
20083
20237
|
});
|
|
20084
20238
|
}
|
|
20085
20239
|
|
|
20086
|
-
/**
|
|
20087
|
-
* 解析地址详情(内部方法,需先调用 parseArea 初始化地址库)
|
|
20088
|
-
* @param address 任意地址字符串
|
|
20089
|
-
* @param sourceData 组件配置,如 extraInfo.isFourAddress
|
|
20090
|
-
* @returns {{name: string, mobile: string, detail: string, zip_code: string, phone: string}}
|
|
20240
|
+
/**
|
|
20241
|
+
* 解析地址详情(内部方法,需先调用 parseArea 初始化地址库)
|
|
20242
|
+
* @param address 任意地址字符串
|
|
20243
|
+
* @param sourceData 组件配置,如 extraInfo.isFourAddress
|
|
20244
|
+
* @returns {{name: string, mobile: string, detail: string, zip_code: string, phone: string}}
|
|
20091
20245
|
*/
|
|
20092
20246
|
function parseAddressDetail(address, sourceData) {
|
|
20093
20247
|
var parse = {
|
|
@@ -20099,7 +20253,9 @@ function parseAddressDetail(address, sourceData) {
|
|
|
20099
20253
|
extensionNumber: '' // 淘宝分机号码
|
|
20100
20254
|
};
|
|
20101
20255
|
address = joinAddressLines(address);
|
|
20102
|
-
var
|
|
20256
|
+
var presetName = address.name;
|
|
20257
|
+
address = stripAddressLabels(address.text);
|
|
20258
|
+
var search = ['详细地址', '收货地址', '联系地址', '收件地址', '邮政编码', '手机号码', '联系电话', '联系方式', '收货人', '收件人', '联系人', '姓名', '名字', '手机号', '邮编', '收货', '地址', '详细', '电话', '固话', ':', ':', ';', ';', ',', ',', '。'];
|
|
20103
20259
|
search.forEach(function (str) {
|
|
20104
20260
|
address = address.replace(new RegExp(str, 'g'), ' ');
|
|
20105
20261
|
});
|
|
@@ -20191,6 +20347,12 @@ function parseAddressDetail(address, sourceData) {
|
|
|
20191
20347
|
parse.street = detail.street;
|
|
20192
20348
|
parse.addr = detail.addr;
|
|
20193
20349
|
parse.result = detail.result;
|
|
20350
|
+
if (presetName) {
|
|
20351
|
+
parse.name = presetName;
|
|
20352
|
+
if (parse.addr) {
|
|
20353
|
+
parse.addr = parse.addr.replace(presetName, '').trim();
|
|
20354
|
+
}
|
|
20355
|
+
}
|
|
20194
20356
|
if (parse.province === "澳门" || parse.province === "香港") {
|
|
20195
20357
|
parse.province += "特别行政区";
|
|
20196
20358
|
} else if (parse.province === "新疆") {
|
|
@@ -20214,13 +20376,13 @@ function parseAddressDetail(address, sourceData) {
|
|
|
20214
20376
|
return parse;
|
|
20215
20377
|
}
|
|
20216
20378
|
|
|
20217
|
-
/**
|
|
20218
|
-
* 正向解析模式
|
|
20219
|
-
* 从前到后按 province city addr 逐级筛选
|
|
20220
|
-
* 有city的值即可说明解析成功
|
|
20221
|
-
* 此模式对地址顺序有要求
|
|
20222
|
-
* @param address
|
|
20223
|
-
* @returns {{province: string, city: string, area: string, addr: string}}
|
|
20379
|
+
/**
|
|
20380
|
+
* 正向解析模式
|
|
20381
|
+
* 从前到后按 province city addr 逐级筛选
|
|
20382
|
+
* 有city的值即可说明解析成功
|
|
20383
|
+
* 此模式对地址顺序有要求
|
|
20384
|
+
* @param address
|
|
20385
|
+
* @returns {{province: string, city: string, area: string, addr: string}}
|
|
20224
20386
|
*/
|
|
20225
20387
|
function detail_parse_forward(address, sourceData) {
|
|
20226
20388
|
var parse = {
|
|
@@ -20314,12 +20476,12 @@ function detail_parse_forward(address, sourceData) {
|
|
|
20314
20476
|
return parse;
|
|
20315
20477
|
}
|
|
20316
20478
|
|
|
20317
|
-
/**
|
|
20318
|
-
* 逆向解析 从后【县,区,旗】往前解析
|
|
20319
|
-
* 有地区就能大概返回地址了
|
|
20320
|
-
* @param address
|
|
20321
|
-
* @param ignoreArea 是否忽视区 因为地址中含有区容易导致匹配错误 例:山东省蓬莱市黄海花园东区西门宝威学堂 曲荣声收15753572456
|
|
20322
|
-
* @returns {{province: string, city: string, area: string, name: string, _area: string, addr: string}}
|
|
20479
|
+
/**
|
|
20480
|
+
* 逆向解析 从后【县,区,旗】往前解析
|
|
20481
|
+
* 有地区就能大概返回地址了
|
|
20482
|
+
* @param address
|
|
20483
|
+
* @param ignoreArea 是否忽视区 因为地址中含有区容易导致匹配错误 例:山东省蓬莱市黄海花园东区西门宝威学堂 曲荣声收15753572456
|
|
20484
|
+
* @returns {{province: string, city: string, area: string, name: string, _area: string, addr: string}}
|
|
20323
20485
|
*/
|
|
20324
20486
|
function detail_parse(address) {
|
|
20325
20487
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
@@ -20491,34 +20653,97 @@ function detail_parse(address) {
|
|
|
20491
20653
|
}
|
|
20492
20654
|
var MUNICIPALITIES = ['上海', '北京', '天津', '重庆'];
|
|
20493
20655
|
|
|
20494
|
-
/**
|
|
20495
|
-
* 统一换行符格式
|
|
20656
|
+
/**
|
|
20657
|
+
* 统一换行符格式
|
|
20496
20658
|
*/
|
|
20497
20659
|
function normalizeLineBreaks(address) {
|
|
20498
20660
|
return String(address || '').replace(/\r\n/g, '\n').replace(/\r/g, '\n').replace(/\t/g, ' ');
|
|
20499
20661
|
}
|
|
20500
20662
|
|
|
20501
|
-
/**
|
|
20502
|
-
*
|
|
20663
|
+
/**
|
|
20664
|
+
* 常见地址字段标签(姓名:、详细地址: 等),较长标签优先匹配
|
|
20665
|
+
*/
|
|
20666
|
+
var ADDRESS_LABEL_PATTERN = '(?:详细地址|收货地址|联系地址|收件地址|邮政编码|手机号码|联系电话|联系方式|收货人|收件人|联系人|姓名|名字|手机号|邮编|收货|地址|详细|固话|电话)[::]';
|
|
20667
|
+
var ADDRESS_LABEL_REG = new RegExp(ADDRESS_LABEL_PATTERN, 'g');
|
|
20668
|
+
var ADDRESS_LABEL_TEST_REG = new RegExp(ADDRESS_LABEL_PATTERN);
|
|
20669
|
+
|
|
20670
|
+
/**
|
|
20671
|
+
* 去除「姓名:」「详细地址:」等字段标签前缀
|
|
20672
|
+
*/
|
|
20673
|
+
function stripAddressLabels(text) {
|
|
20674
|
+
return String(text || '').replace(ADDRESS_LABEL_REG, ' ');
|
|
20675
|
+
}
|
|
20676
|
+
var NAME_LABELS = ['姓名', '名字', '联系人', '收货人', '收件人'];
|
|
20677
|
+
var PHONE_LABELS = ['电话', '手机号', '手机号码', '联系电话', '联系方式', '固话'];
|
|
20678
|
+
|
|
20679
|
+
/**
|
|
20680
|
+
* 解析「标签:值」格式的单行
|
|
20681
|
+
*/
|
|
20682
|
+
function matchLabeledLine(line) {
|
|
20683
|
+
var match = line.match(/^([\u4e00-\u9fa5A-Za-z0-9]+)[::]\s*(.+)$/);
|
|
20684
|
+
if (!match) {
|
|
20685
|
+
return null;
|
|
20686
|
+
}
|
|
20687
|
+
return {
|
|
20688
|
+
label: match[1],
|
|
20689
|
+
value: match[2].trim()
|
|
20690
|
+
};
|
|
20691
|
+
}
|
|
20692
|
+
|
|
20693
|
+
/**
|
|
20694
|
+
* 按换行符拆分段落,去除行内空白后用空格拼接为单行
|
|
20695
|
+
* 若每行是「标签:值」格式,则按标签分类提取姓名、电话和地址
|
|
20503
20696
|
*/
|
|
20504
20697
|
function joinAddressLines(address) {
|
|
20505
20698
|
var normalized = normalizeLineBreaks(address);
|
|
20506
|
-
var lines = normalized.split('\n')
|
|
20699
|
+
var lines = normalized.split('\n').filter(function (line) {
|
|
20700
|
+
return line.replace(/[ \t\f\v]+/g, ' ').trim();
|
|
20701
|
+
});
|
|
20702
|
+
if (lines.length === 1) {
|
|
20703
|
+
var singleLine = lines[0].replace(/[ \t\f\v]+/g, ' ').trim();
|
|
20704
|
+
if ((singleLine.match(/[::]/g) || []).length > 1 && ADDRESS_LABEL_TEST_REG.test(singleLine)) {
|
|
20705
|
+
return {
|
|
20706
|
+
text: stripAddressLabels(singleLine).replace(/ {2,}/g, ' ').trim(),
|
|
20707
|
+
name: '',
|
|
20708
|
+
phoneHint: ''
|
|
20709
|
+
};
|
|
20710
|
+
}
|
|
20711
|
+
}
|
|
20507
20712
|
var parts = [];
|
|
20713
|
+
var extracted = {
|
|
20714
|
+
name: '',
|
|
20715
|
+
phoneHint: ''
|
|
20716
|
+
};
|
|
20508
20717
|
for (var i = 0; i < lines.length; i++) {
|
|
20509
20718
|
var line = lines[i].replace(/[ \t\f\v]+/g, ' ').trim();
|
|
20510
|
-
if (line) {
|
|
20719
|
+
if (!line) {
|
|
20720
|
+
continue;
|
|
20721
|
+
}
|
|
20722
|
+
var labeled = matchLabeledLine(line);
|
|
20723
|
+
if (labeled) {
|
|
20724
|
+
if (NAME_LABELS.indexOf(labeled.label) > -1) {
|
|
20725
|
+
extracted.name = labeled.value;
|
|
20726
|
+
} else if (PHONE_LABELS.indexOf(labeled.label) > -1) {
|
|
20727
|
+
extracted.phoneHint = labeled.value;
|
|
20728
|
+
} else {
|
|
20729
|
+
parts.push(labeled.value);
|
|
20730
|
+
}
|
|
20731
|
+
} else {
|
|
20511
20732
|
parts.push(line);
|
|
20512
20733
|
}
|
|
20513
20734
|
}
|
|
20514
|
-
return
|
|
20735
|
+
return {
|
|
20736
|
+
text: parts.join(' '),
|
|
20737
|
+
name: extracted.name,
|
|
20738
|
+
phoneHint: extracted.phoneHint
|
|
20739
|
+
};
|
|
20515
20740
|
}
|
|
20516
20741
|
|
|
20517
|
-
/**
|
|
20518
|
-
* 从全局变量或 options 中获取 areaList(CDN 加载后挂载在 window.areaList)
|
|
20519
|
-
* @param {object} options
|
|
20520
|
-
* @param {array} [options.areaList] 地址库原始数据,不传则从全局 areaList 读取
|
|
20521
|
-
* @returns {array|null}
|
|
20742
|
+
/**
|
|
20743
|
+
* 从全局变量或 options 中获取 areaList(CDN 加载后挂载在 window.areaList)
|
|
20744
|
+
* @param {object} options
|
|
20745
|
+
* @param {array} [options.areaList] 地址库原始数据,不传则从全局 areaList 读取
|
|
20746
|
+
* @returns {array|null}
|
|
20522
20747
|
*/
|
|
20523
20748
|
function getGlobalAreaList() {
|
|
20524
20749
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -20541,8 +20766,8 @@ function getGlobalAreaList() {
|
|
|
20541
20766
|
return null;
|
|
20542
20767
|
}
|
|
20543
20768
|
|
|
20544
|
-
/**
|
|
20545
|
-
* 判断直辖市名称在前 8 个字符中是否只出现一次(用于补全省份前缀)
|
|
20769
|
+
/**
|
|
20770
|
+
* 判断直辖市名称在前 8 个字符中是否只出现一次(用于补全省份前缀)
|
|
20546
20771
|
*/
|
|
20547
20772
|
function checkMunicipalityChars(str, name) {
|
|
20548
20773
|
var prefix = str.substring(0, 8);
|
|
@@ -20551,8 +20776,8 @@ function checkMunicipalityChars(str, name) {
|
|
|
20551
20776
|
return firstIndex !== -1 && firstIndex === lastIndex;
|
|
20552
20777
|
}
|
|
20553
20778
|
|
|
20554
|
-
/**
|
|
20555
|
-
* 预处理地址字符串:去空格,并为缺少省份前缀的直辖市地址补全
|
|
20779
|
+
/**
|
|
20780
|
+
* 预处理地址字符串:去空格,并为缺少省份前缀的直辖市地址补全
|
|
20556
20781
|
*/
|
|
20557
20782
|
function preprocessAddress(address) {
|
|
20558
20783
|
var cleanAddress = normalizeLineBreaks(address).replace(/[ \t\f\v]+/g, '');
|
|
@@ -20573,13 +20798,13 @@ function preprocessAddress(address) {
|
|
|
20573
20798
|
return cleanAddress;
|
|
20574
20799
|
}
|
|
20575
20800
|
|
|
20576
|
-
/**
|
|
20577
|
-
* 自动识别地址信息,格式化为省市区街道和收件人等信息
|
|
20578
|
-
* @param {string} address 原始地址字符串(可含空格、姓名、手机号等)
|
|
20579
|
-
* @param {object} [sourceData] 组件 sourceData,用于四级地址等配置(extraInfo.isFourAddress)
|
|
20580
|
-
* @param {object} [options] 可选配置
|
|
20581
|
-
* @param {array} [options.areaList] 地址库原始数据,默认从全局 areaList 获取
|
|
20582
|
-
* @returns {{name: string, mobile: string, phone: string, zip_code: string, extensionNumber: string, province: string, city: string, area: string, street: string, addr: string, result: *}}
|
|
20801
|
+
/**
|
|
20802
|
+
* 自动识别地址信息,格式化为省市区街道和收件人等信息
|
|
20803
|
+
* @param {string} address 原始地址字符串(可含空格、姓名、手机号等)
|
|
20804
|
+
* @param {object} [sourceData] 组件 sourceData,用于四级地址等配置(extraInfo.isFourAddress)
|
|
20805
|
+
* @param {object} [options] 可选配置
|
|
20806
|
+
* @param {array} [options.areaList] 地址库原始数据,默认从全局 areaList 获取
|
|
20807
|
+
* @returns {{name: string, mobile: string, phone: string, zip_code: string, extensionNumber: string, province: string, city: string, area: string, street: string, addr: string, result: *}}
|
|
20583
20808
|
*/
|
|
20584
20809
|
function addressParse(address, sourceData) {
|
|
20585
20810
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
@@ -20590,7 +20815,27 @@ function addressParse(address, sourceData) {
|
|
|
20590
20815
|
var cleanAddress = preprocessAddress(address);
|
|
20591
20816
|
return parseAddressDetail(cleanAddress, sourceData || {});
|
|
20592
20817
|
}
|
|
20593
|
-
;//
|
|
20818
|
+
;// ../../packages/bn-util/index.js
|
|
20819
|
+
/* unused harmony import specifier */ var bn_util_toConsumableArray;
|
|
20820
|
+
/* unused harmony import specifier */ var _objectSpread;
|
|
20821
|
+
/* unused harmony import specifier */ var bn_util_typeof;
|
|
20822
|
+
/* unused harmony import specifier */ var cloneDeep;
|
|
20823
|
+
/* unused harmony import specifier */ var bn_util_getApiBaseUrl;
|
|
20824
|
+
|
|
20825
|
+
|
|
20826
|
+
|
|
20827
|
+
|
|
20828
|
+
|
|
20829
|
+
|
|
20830
|
+
|
|
20831
|
+
|
|
20832
|
+
|
|
20833
|
+
|
|
20834
|
+
|
|
20835
|
+
|
|
20836
|
+
|
|
20837
|
+
|
|
20838
|
+
|
|
20594
20839
|
|
|
20595
20840
|
|
|
20596
20841
|
|
|
@@ -20612,55 +20857,10 @@ function addressParse(address, sourceData) {
|
|
|
20612
20857
|
|
|
20613
20858
|
|
|
20614
20859
|
|
|
20615
|
-
/**
|
|
20616
|
-
* 通过id列表,和options将title拼接出来 ,id的key名和 title的key名可以传过来,默认是id和title
|
|
20617
|
-
* id:[1,2] options:[{id:1,title:'name'},{id:2,title:'name2'}] 或 {1:'name',2:'name2'}
|
|
20618
|
-
* 结果返回 'name,name2'
|
|
20619
|
-
* @param {Array} ids ID列表
|
|
20620
|
-
* @param {Array|Object} options 选项数组或对象映射
|
|
20621
|
-
* @param {String} idKey ID的键名,默认为'id',仅当options为数组时使用
|
|
20622
|
-
* @param {String} nameKey 名称的键名,默认为'title',仅当options为数组时使用
|
|
20623
|
-
* @param {String} separator 自定义分隔符,默认为中文逗号','
|
|
20624
|
-
* @return {String} 拼接后的字符串
|
|
20625
|
-
* */
|
|
20626
|
-
function idsToTexts(ids, options) {
|
|
20627
|
-
var idKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'id';
|
|
20628
|
-
var nameKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'title';
|
|
20629
|
-
var separator = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ',';
|
|
20630
|
-
// 快速路径:空值检查
|
|
20631
|
-
if (!(ids !== null && ids !== void 0 && ids.length)) return '';
|
|
20632
|
-
if (!options) return ids.join(separator);
|
|
20633
20860
|
|
|
20634
|
-
// 使用Map代替普通对象,在大量数据时性能更好
|
|
20635
|
-
var map = new Map();
|
|
20636
20861
|
|
|
20637
|
-
// 判断options类型并进行相应处理
|
|
20638
|
-
if (Array.isArray(options)) {
|
|
20639
|
-
// 数组类型的options: [{id:1,title:'name'},{id:2,title:'name2'}]
|
|
20640
|
-
for (var i = 0, len = options.length; i < len; i++) {
|
|
20641
|
-
var item = options[i];
|
|
20642
|
-
if (item) map.set(item[idKey], item[nameKey]);
|
|
20643
|
-
}
|
|
20644
|
-
} else if (_typeof(options) === 'object') {
|
|
20645
|
-
// 对象映射类型的options: {1:'name',2:'name2'}
|
|
20646
|
-
var keys = Object.keys(options);
|
|
20647
|
-
for (var _i = 0, _len = keys.length; _i < _len; _i++) {
|
|
20648
|
-
var key = keys[_i];
|
|
20649
|
-
map.set(key, options[key]);
|
|
20650
|
-
}
|
|
20651
|
-
}
|
|
20652
20862
|
|
|
20653
|
-
// 使用join的第二种模式,减少中间数组创建
|
|
20654
|
-
var result = '';
|
|
20655
|
-
for (var _i2 = 0, _len2 = ids.length; _i2 < _len2; _i2++) {
|
|
20656
|
-
var id = ids[_i2];
|
|
20657
|
-
result += (_i2 > 0 ? separator : '') + (map.has(String(id)) ? map.get(String(id)) : map.has(id) ? map.get(id) : id);
|
|
20658
|
-
}
|
|
20659
|
-
return result;
|
|
20660
|
-
}
|
|
20661
20863
|
|
|
20662
|
-
;// ./install.js
|
|
20663
|
-
// install.js - BnAppletUi 组件库入口
|
|
20664
20864
|
|
|
20665
20865
|
|
|
20666
20866
|
|
|
@@ -20675,36 +20875,1727 @@ function idsToTexts(ids, options) {
|
|
|
20675
20875
|
|
|
20676
20876
|
|
|
20677
20877
|
|
|
20678
|
-
const BnAppletUi = {
|
|
20679
|
-
install: (Vue) => {
|
|
20680
|
-
Vue.component("BnAddress", BnAddress);
|
|
20681
|
-
Vue.component("BnAddressParse", BnAddressParse);
|
|
20682
|
-
Vue.component("BnCheck", BnCheck);
|
|
20683
|
-
Vue.component("BnDateRange", bnDateRange);
|
|
20684
|
-
Vue.component("BnDialog", dialog);
|
|
20685
|
-
Vue.component("BnDropdown", bnDropdown);
|
|
20686
|
-
Vue.component("BnFileView", BnFileView);
|
|
20687
|
-
Vue.component("BnFunText", bnFunText);
|
|
20688
|
-
Vue.component("BnInpNum", BnInpNum);
|
|
20689
|
-
Vue.component("BnInputNum", BnInputNum);
|
|
20690
|
-
Vue.component("BnRuleCondition", bnRuleCondition);
|
|
20691
|
-
Vue.component("BnSelect", BnSelect_select);
|
|
20692
|
-
Vue.component("BnFiTaxAutoComplete", BnFiTaxAutoComplete);
|
|
20693
|
-
}
|
|
20694
|
-
};
|
|
20695
20878
|
|
|
20696
|
-
// 支持通过 CDN 方式引入时自动注册
|
|
20697
|
-
if (typeof window !== 'undefined' && window.Vue) {
|
|
20698
|
-
window.Vue.use(BnAppletUi);
|
|
20699
|
-
}
|
|
20700
20879
|
|
|
20701
|
-
// 导出插件对象(整体引入)
|
|
20702
|
-
// 使用方式:Vue.use(BnAppletUi)
|
|
20703
|
-
/* harmony default export */ const install = (BnAppletUi);
|
|
20704
20880
|
|
|
20705
|
-
// 单独导出各组件(按需引入)
|
|
20706
20881
|
|
|
20707
|
-
|
|
20882
|
+
|
|
20883
|
+
|
|
20884
|
+
|
|
20885
|
+
|
|
20886
|
+
|
|
20887
|
+
|
|
20888
|
+
|
|
20889
|
+
|
|
20890
|
+
|
|
20891
|
+
/**
|
|
20892
|
+
* 规则配置默认支持的条件
|
|
20893
|
+
* */
|
|
20894
|
+
var ruleTypeMap = {
|
|
20895
|
+
1: [{
|
|
20896
|
+
title: '等于',
|
|
20897
|
+
id: '1'
|
|
20898
|
+
}, {
|
|
20899
|
+
title: '不等于',
|
|
20900
|
+
id: '2'
|
|
20901
|
+
}, {
|
|
20902
|
+
title: '包含',
|
|
20903
|
+
id: '3'
|
|
20904
|
+
}, {
|
|
20905
|
+
title: '不包含',
|
|
20906
|
+
id: '4'
|
|
20907
|
+
}, {
|
|
20908
|
+
title: '包含任一项',
|
|
20909
|
+
id: '5'
|
|
20910
|
+
}, {
|
|
20911
|
+
title: '不包含任一项',
|
|
20912
|
+
id: '6'
|
|
20913
|
+
}, {
|
|
20914
|
+
title: '为空',
|
|
20915
|
+
id: '9'
|
|
20916
|
+
}, {
|
|
20917
|
+
title: '不为空',
|
|
20918
|
+
id: '10'
|
|
20919
|
+
}
|
|
20920
|
+
// {title: '不重复', id: '14'},
|
|
20921
|
+
// {title: '重复', id: '15'}
|
|
20922
|
+
],
|
|
20923
|
+
2: [{
|
|
20924
|
+
title: '等于',
|
|
20925
|
+
id: '1'
|
|
20926
|
+
}, {
|
|
20927
|
+
title: '不等于',
|
|
20928
|
+
id: '2'
|
|
20929
|
+
}, {
|
|
20930
|
+
title: '大于',
|
|
20931
|
+
id: '16'
|
|
20932
|
+
}, {
|
|
20933
|
+
title: '小于',
|
|
20934
|
+
id: '17'
|
|
20935
|
+
}, {
|
|
20936
|
+
title: '大于等于',
|
|
20937
|
+
id: '18'
|
|
20938
|
+
}, {
|
|
20939
|
+
title: '小于等于',
|
|
20940
|
+
id: '19'
|
|
20941
|
+
},
|
|
20942
|
+
// {title: '范围', id: '8'},
|
|
20943
|
+
{
|
|
20944
|
+
title: '为空',
|
|
20945
|
+
id: '9'
|
|
20946
|
+
}, {
|
|
20947
|
+
title: '不为空',
|
|
20948
|
+
id: '10'
|
|
20949
|
+
}],
|
|
20950
|
+
3: [{
|
|
20951
|
+
title: '等于',
|
|
20952
|
+
id: '1'
|
|
20953
|
+
}, {
|
|
20954
|
+
title: '不等于',
|
|
20955
|
+
id: '2'
|
|
20956
|
+
}, {
|
|
20957
|
+
title: '包含任一项',
|
|
20958
|
+
id: '5'
|
|
20959
|
+
}, {
|
|
20960
|
+
title: '不包含任一项',
|
|
20961
|
+
id: '6'
|
|
20962
|
+
}, {
|
|
20963
|
+
title: '为空',
|
|
20964
|
+
id: '9'
|
|
20965
|
+
}, {
|
|
20966
|
+
title: '不为空',
|
|
20967
|
+
id: '10'
|
|
20968
|
+
}],
|
|
20969
|
+
4: [{
|
|
20970
|
+
title: '等于',
|
|
20971
|
+
id: '1'
|
|
20972
|
+
}, {
|
|
20973
|
+
title: '不等于',
|
|
20974
|
+
id: '2'
|
|
20975
|
+
}, {
|
|
20976
|
+
title: '包含任一项',
|
|
20977
|
+
id: '5'
|
|
20978
|
+
}, {
|
|
20979
|
+
title: '不包含任一项',
|
|
20980
|
+
id: '6'
|
|
20981
|
+
}, {
|
|
20982
|
+
title: '为空',
|
|
20983
|
+
id: '9'
|
|
20984
|
+
}, {
|
|
20985
|
+
title: '不为空',
|
|
20986
|
+
id: '10'
|
|
20987
|
+
}],
|
|
20988
|
+
5: [{
|
|
20989
|
+
title: '等于',
|
|
20990
|
+
id: '1'
|
|
20991
|
+
}, {
|
|
20992
|
+
title: '不等于',
|
|
20993
|
+
id: '2'
|
|
20994
|
+
}, {
|
|
20995
|
+
title: '包含任一项',
|
|
20996
|
+
id: '5'
|
|
20997
|
+
}, {
|
|
20998
|
+
title: '不包含任一项',
|
|
20999
|
+
id: '6'
|
|
21000
|
+
}, {
|
|
21001
|
+
title: '包含所有项',
|
|
21002
|
+
id: '7'
|
|
21003
|
+
}, {
|
|
21004
|
+
title: '为空',
|
|
21005
|
+
id: '9'
|
|
21006
|
+
}, {
|
|
21007
|
+
title: '不为空',
|
|
21008
|
+
id: '10'
|
|
21009
|
+
}],
|
|
21010
|
+
6: [{
|
|
21011
|
+
title: '等于',
|
|
21012
|
+
id: '1'
|
|
21013
|
+
}, {
|
|
21014
|
+
title: '不等于',
|
|
21015
|
+
id: '2'
|
|
21016
|
+
}, {
|
|
21017
|
+
title: '包含任一项',
|
|
21018
|
+
id: '5'
|
|
21019
|
+
}, {
|
|
21020
|
+
title: '不包含任一项',
|
|
21021
|
+
id: '6'
|
|
21022
|
+
},
|
|
21023
|
+
// {title: '包含所有项', id: '7'},
|
|
21024
|
+
{
|
|
21025
|
+
title: '包含',
|
|
21026
|
+
id: '3'
|
|
21027
|
+
}, {
|
|
21028
|
+
title: '不包含',
|
|
21029
|
+
id: '4'
|
|
21030
|
+
}, {
|
|
21031
|
+
title: '为空',
|
|
21032
|
+
id: '9'
|
|
21033
|
+
}, {
|
|
21034
|
+
title: '不为空',
|
|
21035
|
+
id: '10'
|
|
21036
|
+
}
|
|
21037
|
+
// {title: '重复', id: '15'}
|
|
21038
|
+
],
|
|
21039
|
+
20: [{
|
|
21040
|
+
title: '等于',
|
|
21041
|
+
id: '1'
|
|
21042
|
+
}, {
|
|
21043
|
+
title: '不等于',
|
|
21044
|
+
id: '2'
|
|
21045
|
+
}, {
|
|
21046
|
+
title: '包含',
|
|
21047
|
+
id: '3'
|
|
21048
|
+
}, {
|
|
21049
|
+
title: '不包含',
|
|
21050
|
+
id: '4'
|
|
21051
|
+
}, {
|
|
21052
|
+
title: '包含任一项',
|
|
21053
|
+
id: '5'
|
|
21054
|
+
}, {
|
|
21055
|
+
title: '不包含任一项',
|
|
21056
|
+
id: '6'
|
|
21057
|
+
},
|
|
21058
|
+
// {title: '包含所有项', id: '7'},
|
|
21059
|
+
{
|
|
21060
|
+
title: '为空',
|
|
21061
|
+
id: '9'
|
|
21062
|
+
}, {
|
|
21063
|
+
title: '不为空',
|
|
21064
|
+
id: '10'
|
|
21065
|
+
}
|
|
21066
|
+
// {title: '重复', id: '15'}
|
|
21067
|
+
],
|
|
21068
|
+
7: [
|
|
21069
|
+
// {title: '范围', id: '8'},
|
|
21070
|
+
{
|
|
21071
|
+
title: '等于',
|
|
21072
|
+
id: '1'
|
|
21073
|
+
}, {
|
|
21074
|
+
title: '不等于',
|
|
21075
|
+
id: '2'
|
|
21076
|
+
}, {
|
|
21077
|
+
title: '大于',
|
|
21078
|
+
id: '16'
|
|
21079
|
+
}, {
|
|
21080
|
+
title: '小于',
|
|
21081
|
+
id: '17'
|
|
21082
|
+
}, {
|
|
21083
|
+
title: '大于等于',
|
|
21084
|
+
id: '18'
|
|
21085
|
+
}, {
|
|
21086
|
+
title: '小于等于',
|
|
21087
|
+
id: '19'
|
|
21088
|
+
}, {
|
|
21089
|
+
title: '为空',
|
|
21090
|
+
id: '9'
|
|
21091
|
+
}, {
|
|
21092
|
+
title: '不为空',
|
|
21093
|
+
id: '10'
|
|
21094
|
+
}],
|
|
21095
|
+
8: [{
|
|
21096
|
+
title: '范围',
|
|
21097
|
+
id: '8'
|
|
21098
|
+
}, {
|
|
21099
|
+
title: '包含',
|
|
21100
|
+
id: '3'
|
|
21101
|
+
}, {
|
|
21102
|
+
title: '不包含',
|
|
21103
|
+
id: '4'
|
|
21104
|
+
}, {
|
|
21105
|
+
title: '为空',
|
|
21106
|
+
id: '9'
|
|
21107
|
+
}, {
|
|
21108
|
+
title: '不为空',
|
|
21109
|
+
id: '10'
|
|
21110
|
+
}, {
|
|
21111
|
+
title: '属于',
|
|
21112
|
+
id: '11'
|
|
21113
|
+
}, {
|
|
21114
|
+
title: '有交集',
|
|
21115
|
+
id: '12'
|
|
21116
|
+
}, {
|
|
21117
|
+
title: '无交集',
|
|
21118
|
+
id: '13'
|
|
21119
|
+
}],
|
|
21120
|
+
9: [{
|
|
21121
|
+
title: '范围',
|
|
21122
|
+
id: '8'
|
|
21123
|
+
}, {
|
|
21124
|
+
title: '为空',
|
|
21125
|
+
id: '9'
|
|
21126
|
+
}, {
|
|
21127
|
+
title: '不为空',
|
|
21128
|
+
id: '10'
|
|
21129
|
+
}],
|
|
21130
|
+
10: [{
|
|
21131
|
+
title: '为空',
|
|
21132
|
+
id: '9'
|
|
21133
|
+
}, {
|
|
21134
|
+
title: '不为空',
|
|
21135
|
+
id: '10'
|
|
21136
|
+
}],
|
|
21137
|
+
11: [{
|
|
21138
|
+
title: '等于',
|
|
21139
|
+
id: '1'
|
|
21140
|
+
}, {
|
|
21141
|
+
title: '不等于',
|
|
21142
|
+
id: '2'
|
|
21143
|
+
}, {
|
|
21144
|
+
title: '包含',
|
|
21145
|
+
id: '3'
|
|
21146
|
+
}, {
|
|
21147
|
+
title: '不包含',
|
|
21148
|
+
id: '4'
|
|
21149
|
+
}, {
|
|
21150
|
+
title: '包含任一项',
|
|
21151
|
+
id: '5'
|
|
21152
|
+
}, {
|
|
21153
|
+
title: '不包含任一项',
|
|
21154
|
+
id: '6'
|
|
21155
|
+
}, {
|
|
21156
|
+
title: '包含所有项',
|
|
21157
|
+
id: '7'
|
|
21158
|
+
}, {
|
|
21159
|
+
title: '范围',
|
|
21160
|
+
id: '8'
|
|
21161
|
+
}, {
|
|
21162
|
+
title: '为空',
|
|
21163
|
+
id: '9'
|
|
21164
|
+
}, {
|
|
21165
|
+
title: '不为空',
|
|
21166
|
+
id: '10'
|
|
21167
|
+
}, {
|
|
21168
|
+
title: '属于',
|
|
21169
|
+
id: '11'
|
|
21170
|
+
}, {
|
|
21171
|
+
title: '有交集',
|
|
21172
|
+
id: '12'
|
|
21173
|
+
}, {
|
|
21174
|
+
title: '无交集',
|
|
21175
|
+
id: '13'
|
|
21176
|
+
}],
|
|
21177
|
+
12: [{
|
|
21178
|
+
title: '等于',
|
|
21179
|
+
id: '1'
|
|
21180
|
+
}, {
|
|
21181
|
+
title: '不等于',
|
|
21182
|
+
id: '2'
|
|
21183
|
+
}, {
|
|
21184
|
+
title: '包含',
|
|
21185
|
+
id: '3'
|
|
21186
|
+
}, {
|
|
21187
|
+
title: '不包含',
|
|
21188
|
+
id: '4'
|
|
21189
|
+
}, {
|
|
21190
|
+
title: '包含任一项',
|
|
21191
|
+
id: '5'
|
|
21192
|
+
}, {
|
|
21193
|
+
title: '不包含任一项',
|
|
21194
|
+
id: '6'
|
|
21195
|
+
}, {
|
|
21196
|
+
title: '包含所有项',
|
|
21197
|
+
id: '7'
|
|
21198
|
+
}, {
|
|
21199
|
+
title: '范围',
|
|
21200
|
+
id: '8'
|
|
21201
|
+
}, {
|
|
21202
|
+
title: '为空',
|
|
21203
|
+
id: '9'
|
|
21204
|
+
}, {
|
|
21205
|
+
title: '不为空',
|
|
21206
|
+
id: '10'
|
|
21207
|
+
}, {
|
|
21208
|
+
title: '属于',
|
|
21209
|
+
id: '11'
|
|
21210
|
+
}, {
|
|
21211
|
+
title: '有交集',
|
|
21212
|
+
id: '12'
|
|
21213
|
+
}, {
|
|
21214
|
+
title: '无交集',
|
|
21215
|
+
id: '13'
|
|
21216
|
+
}],
|
|
21217
|
+
13: [{
|
|
21218
|
+
title: '等于',
|
|
21219
|
+
id: '1'
|
|
21220
|
+
}, {
|
|
21221
|
+
title: '不等于',
|
|
21222
|
+
id: '2'
|
|
21223
|
+
}, {
|
|
21224
|
+
title: '包含',
|
|
21225
|
+
id: '3'
|
|
21226
|
+
}, {
|
|
21227
|
+
title: '不包含',
|
|
21228
|
+
id: '4'
|
|
21229
|
+
}, {
|
|
21230
|
+
title: '包含任一项',
|
|
21231
|
+
id: '5'
|
|
21232
|
+
}, {
|
|
21233
|
+
title: '不包含任一项',
|
|
21234
|
+
id: '6'
|
|
21235
|
+
}, {
|
|
21236
|
+
title: '包含所有项',
|
|
21237
|
+
id: '7'
|
|
21238
|
+
}, {
|
|
21239
|
+
title: '范围',
|
|
21240
|
+
id: '8'
|
|
21241
|
+
}, {
|
|
21242
|
+
title: '为空',
|
|
21243
|
+
id: '9'
|
|
21244
|
+
}, {
|
|
21245
|
+
title: '不为空',
|
|
21246
|
+
id: '10'
|
|
21247
|
+
}, {
|
|
21248
|
+
title: '属于',
|
|
21249
|
+
id: '11'
|
|
21250
|
+
}, {
|
|
21251
|
+
title: '有交集',
|
|
21252
|
+
id: '12'
|
|
21253
|
+
}, {
|
|
21254
|
+
title: '无交集',
|
|
21255
|
+
id: '13'
|
|
21256
|
+
}],
|
|
21257
|
+
14: [{
|
|
21258
|
+
title: '等于',
|
|
21259
|
+
id: '1'
|
|
21260
|
+
}, {
|
|
21261
|
+
title: '不等于',
|
|
21262
|
+
id: '2'
|
|
21263
|
+
}, {
|
|
21264
|
+
title: '包含',
|
|
21265
|
+
id: '3'
|
|
21266
|
+
}, {
|
|
21267
|
+
title: '包含任一项',
|
|
21268
|
+
id: '5'
|
|
21269
|
+
}, {
|
|
21270
|
+
title: '不包含任一项',
|
|
21271
|
+
id: '6'
|
|
21272
|
+
},
|
|
21273
|
+
// {title: '包含所有项', id: '7'},
|
|
21274
|
+
{
|
|
21275
|
+
title: '为空',
|
|
21276
|
+
id: '9'
|
|
21277
|
+
}, {
|
|
21278
|
+
title: '不为空',
|
|
21279
|
+
id: '10'
|
|
21280
|
+
}],
|
|
21281
|
+
15: [
|
|
21282
|
+
// {title: '等于', id: '1'},
|
|
21283
|
+
// {title: '不等于', id: '2'},
|
|
21284
|
+
// {title: '包含', id: '3'},
|
|
21285
|
+
// {title: '包含任一项', id: '5'},
|
|
21286
|
+
// {title: '不包含任一项', id: '6'},
|
|
21287
|
+
// {title: '包含所有项', id: '7'},
|
|
21288
|
+
{
|
|
21289
|
+
title: '为空',
|
|
21290
|
+
id: '9'
|
|
21291
|
+
}, {
|
|
21292
|
+
title: '不为空',
|
|
21293
|
+
id: '10'
|
|
21294
|
+
}]
|
|
21295
|
+
/*8: [
|
|
21296
|
+
{title: '范围', id: '8'},
|
|
21297
|
+
{title: '为空', id: '9'},
|
|
21298
|
+
{title: '不为空', id: '10'},
|
|
21299
|
+
// {title: '属于', id: '11'},
|
|
21300
|
+
// {title: '有交集', id: '12'},
|
|
21301
|
+
// {title: '无交集', id: '13'},
|
|
21302
|
+
],
|
|
21303
|
+
9: [
|
|
21304
|
+
{title: '范围', id: '8'},
|
|
21305
|
+
{title: '为空', id: '9'},
|
|
21306
|
+
{title: '不为空', id: '10'},
|
|
21307
|
+
],
|
|
21308
|
+
11: [
|
|
21309
|
+
{title: '等于', id: '1'},
|
|
21310
|
+
{title: '不等于', id: '2'},
|
|
21311
|
+
{title: '包含', id: '3'},
|
|
21312
|
+
{title: '不包含', id: '4'},
|
|
21313
|
+
{title: '包含任一项', id: '5'},
|
|
21314
|
+
{title: '不包含任一项', id: '6'},
|
|
21315
|
+
{title: '包含所有项', id: '7'},
|
|
21316
|
+
{title: '范围', id: '8'},
|
|
21317
|
+
{title: '为空', id: '9'},
|
|
21318
|
+
{title: '不为空', id: '10'},
|
|
21319
|
+
{title: '属于', id: '11'},
|
|
21320
|
+
{title: '有交集', id: '12'},
|
|
21321
|
+
{title: '无交集', id: '13'},],
|
|
21322
|
+
12: [
|
|
21323
|
+
{title: '等于', id: '1'},
|
|
21324
|
+
{title: '不等于', id: '2'},
|
|
21325
|
+
{title: '包含', id: '3'},
|
|
21326
|
+
{title: '不包含', id: '4'},
|
|
21327
|
+
{title: '包含任一项', id: '5'},
|
|
21328
|
+
{title: '不包含任一项', id: '6'},
|
|
21329
|
+
{title: '包含所有项', id: '7'},
|
|
21330
|
+
{title: '范围', id: '8'},
|
|
21331
|
+
{title: '为空', id: '9'},
|
|
21332
|
+
{title: '不为空', id: '10'},
|
|
21333
|
+
{title: '属于', id: '11'},
|
|
21334
|
+
{title: '有交集', id: '12'},
|
|
21335
|
+
{title: '无交集', id: '13'},],
|
|
21336
|
+
13: [
|
|
21337
|
+
{title: '等于', id: '1'},
|
|
21338
|
+
{title: '不等于', id: '2'},
|
|
21339
|
+
{title: '包含', id: '3'},
|
|
21340
|
+
{title: '不包含', id: '4'},
|
|
21341
|
+
{title: '包含任一项', id: '5'},
|
|
21342
|
+
{title: '不包含任一项', id: '6'},
|
|
21343
|
+
{title: '包含所有项', id: '7'},
|
|
21344
|
+
{title: '范围', id: '8'},
|
|
21345
|
+
{title: '为空', id: '9'},
|
|
21346
|
+
{title: '不为空', id: '10'},
|
|
21347
|
+
{title: '属于', id: '11'},
|
|
21348
|
+
{title: '有交集', id: '12'},
|
|
21349
|
+
{title: '无交集', id: '13'},],
|
|
21350
|
+
15: [
|
|
21351
|
+
{title: '等于', id: '1'},
|
|
21352
|
+
{title: '为空', id: '9'},
|
|
21353
|
+
{title: '不为空', id: '10'}
|
|
21354
|
+
],*/
|
|
21355
|
+
};
|
|
21356
|
+
/**
|
|
21357
|
+
* 规则配置各组件默认支持的数值条件 当前值、选择其他组件 这种
|
|
21358
|
+
* */
|
|
21359
|
+
var valueTypeMap = {
|
|
21360
|
+
1: '0',
|
|
21361
|
+
2: '0',
|
|
21362
|
+
3: '2',
|
|
21363
|
+
4: '2',
|
|
21364
|
+
5: '2',
|
|
21365
|
+
6: '2',
|
|
21366
|
+
7: '0',
|
|
21367
|
+
8: '0',
|
|
21368
|
+
9: '0',
|
|
21369
|
+
10: '2',
|
|
21370
|
+
11: '2',
|
|
21371
|
+
12: '2',
|
|
21372
|
+
13: '2',
|
|
21373
|
+
14: '2',
|
|
21374
|
+
15: '2'
|
|
21375
|
+
};
|
|
21376
|
+
/**
|
|
21377
|
+
* 字段,组件数据格式化
|
|
21378
|
+
* */
|
|
21379
|
+
var searchTypeMap = {
|
|
21380
|
+
1: [{
|
|
21381
|
+
title: '等于',
|
|
21382
|
+
id: '1'
|
|
21383
|
+
}, {
|
|
21384
|
+
title: '不等于',
|
|
21385
|
+
id: '2'
|
|
21386
|
+
}, {
|
|
21387
|
+
title: '包含',
|
|
21388
|
+
id: '3'
|
|
21389
|
+
}, {
|
|
21390
|
+
title: '不包含',
|
|
21391
|
+
id: '4'
|
|
21392
|
+
}, {
|
|
21393
|
+
title: '包含任一项',
|
|
21394
|
+
id: '5'
|
|
21395
|
+
}, {
|
|
21396
|
+
title: '为空',
|
|
21397
|
+
id: '9'
|
|
21398
|
+
}, {
|
|
21399
|
+
title: '不为空',
|
|
21400
|
+
id: '10'
|
|
21401
|
+
}, {
|
|
21402
|
+
title: '重复',
|
|
21403
|
+
id: '15'
|
|
21404
|
+
}, {
|
|
21405
|
+
title: '不重复',
|
|
21406
|
+
id: '14'
|
|
21407
|
+
}],
|
|
21408
|
+
2: [{
|
|
21409
|
+
title: '范围',
|
|
21410
|
+
id: '8'
|
|
21411
|
+
}, {
|
|
21412
|
+
title: '等于',
|
|
21413
|
+
id: '1'
|
|
21414
|
+
}, {
|
|
21415
|
+
title: '不等于',
|
|
21416
|
+
id: '2'
|
|
21417
|
+
}, {
|
|
21418
|
+
title: '包含任一项',
|
|
21419
|
+
id: '5'
|
|
21420
|
+
}, {
|
|
21421
|
+
title: '为空',
|
|
21422
|
+
id: '9'
|
|
21423
|
+
}, {
|
|
21424
|
+
title: '不为空',
|
|
21425
|
+
id: '10'
|
|
21426
|
+
}],
|
|
21427
|
+
3: [{
|
|
21428
|
+
title: '包含任一项',
|
|
21429
|
+
id: '5'
|
|
21430
|
+
}, {
|
|
21431
|
+
title: '不包含任一项',
|
|
21432
|
+
id: '6'
|
|
21433
|
+
}, {
|
|
21434
|
+
title: '为空',
|
|
21435
|
+
id: '9'
|
|
21436
|
+
}, {
|
|
21437
|
+
title: '不为空',
|
|
21438
|
+
id: '10'
|
|
21439
|
+
}],
|
|
21440
|
+
4: [{
|
|
21441
|
+
title: '包含任一项',
|
|
21442
|
+
id: '5'
|
|
21443
|
+
},
|
|
21444
|
+
// {title: '不包含任一项', id: '6'},
|
|
21445
|
+
{
|
|
21446
|
+
title: '为空',
|
|
21447
|
+
id: '9'
|
|
21448
|
+
}, {
|
|
21449
|
+
title: '不为空',
|
|
21450
|
+
id: '10'
|
|
21451
|
+
}],
|
|
21452
|
+
5: [{
|
|
21453
|
+
title: '等于',
|
|
21454
|
+
id: '1'
|
|
21455
|
+
}, {
|
|
21456
|
+
title: '不等于',
|
|
21457
|
+
id: '2'
|
|
21458
|
+
}, {
|
|
21459
|
+
title: '包含任一项',
|
|
21460
|
+
id: '5'
|
|
21461
|
+
}, {
|
|
21462
|
+
title: '不包含任一项',
|
|
21463
|
+
id: '6'
|
|
21464
|
+
}, {
|
|
21465
|
+
title: '包含所有项',
|
|
21466
|
+
id: '7'
|
|
21467
|
+
}, {
|
|
21468
|
+
title: '为空',
|
|
21469
|
+
id: '9'
|
|
21470
|
+
}, {
|
|
21471
|
+
title: '不为空',
|
|
21472
|
+
id: '10'
|
|
21473
|
+
}],
|
|
21474
|
+
6: [
|
|
21475
|
+
// {title: '等于', id: '1'},
|
|
21476
|
+
// {title: '不等于', id: '2'},
|
|
21477
|
+
{
|
|
21478
|
+
title: '包含',
|
|
21479
|
+
id: '3'
|
|
21480
|
+
}, {
|
|
21481
|
+
title: '不包含',
|
|
21482
|
+
id: '4'
|
|
21483
|
+
}, {
|
|
21484
|
+
title: '包含任一项',
|
|
21485
|
+
id: '5'
|
|
21486
|
+
}, {
|
|
21487
|
+
title: '不包含任一项',
|
|
21488
|
+
id: '6'
|
|
21489
|
+
}, {
|
|
21490
|
+
title: '包含所有项',
|
|
21491
|
+
id: '7'
|
|
21492
|
+
}, {
|
|
21493
|
+
title: '为空',
|
|
21494
|
+
id: '9'
|
|
21495
|
+
}, {
|
|
21496
|
+
title: '不为空',
|
|
21497
|
+
id: '10'
|
|
21498
|
+
}
|
|
21499
|
+
// {title: '重复', id: '15'}
|
|
21500
|
+
],
|
|
21501
|
+
20: [{
|
|
21502
|
+
title: '等于',
|
|
21503
|
+
id: '1'
|
|
21504
|
+
}, {
|
|
21505
|
+
title: '不等于',
|
|
21506
|
+
id: '2'
|
|
21507
|
+
}, {
|
|
21508
|
+
title: '包含',
|
|
21509
|
+
id: '3'
|
|
21510
|
+
}, {
|
|
21511
|
+
title: '不包含',
|
|
21512
|
+
id: '4'
|
|
21513
|
+
}, {
|
|
21514
|
+
title: '包含任一项',
|
|
21515
|
+
id: '5'
|
|
21516
|
+
}, {
|
|
21517
|
+
title: '不包含任一项',
|
|
21518
|
+
id: '6'
|
|
21519
|
+
},
|
|
21520
|
+
// {title: '包含所有项', id: '7'},
|
|
21521
|
+
{
|
|
21522
|
+
title: '为空',
|
|
21523
|
+
id: '9'
|
|
21524
|
+
}, {
|
|
21525
|
+
title: '不为空',
|
|
21526
|
+
id: '10'
|
|
21527
|
+
}
|
|
21528
|
+
// {title: '重复', id: '15'}
|
|
21529
|
+
],
|
|
21530
|
+
7: [{
|
|
21531
|
+
title: '范围',
|
|
21532
|
+
id: '8'
|
|
21533
|
+
}, {
|
|
21534
|
+
title: '为空',
|
|
21535
|
+
id: '9'
|
|
21536
|
+
}, {
|
|
21537
|
+
title: '不为空',
|
|
21538
|
+
id: '10'
|
|
21539
|
+
}],
|
|
21540
|
+
8: [{
|
|
21541
|
+
title: '范围',
|
|
21542
|
+
id: '8'
|
|
21543
|
+
}, {
|
|
21544
|
+
title: '包含',
|
|
21545
|
+
id: '3'
|
|
21546
|
+
}, {
|
|
21547
|
+
title: '不包含',
|
|
21548
|
+
id: '4'
|
|
21549
|
+
}, {
|
|
21550
|
+
title: '为空',
|
|
21551
|
+
id: '9'
|
|
21552
|
+
}, {
|
|
21553
|
+
title: '不为空',
|
|
21554
|
+
id: '10'
|
|
21555
|
+
}, {
|
|
21556
|
+
title: '属于',
|
|
21557
|
+
id: '11'
|
|
21558
|
+
}, {
|
|
21559
|
+
title: '有交集',
|
|
21560
|
+
id: '12'
|
|
21561
|
+
}, {
|
|
21562
|
+
title: '无交集',
|
|
21563
|
+
id: '13'
|
|
21564
|
+
}],
|
|
21565
|
+
9: [{
|
|
21566
|
+
title: '范围',
|
|
21567
|
+
id: '8'
|
|
21568
|
+
}, {
|
|
21569
|
+
title: '为空',
|
|
21570
|
+
id: '9'
|
|
21571
|
+
}, {
|
|
21572
|
+
title: '不为空',
|
|
21573
|
+
id: '10'
|
|
21574
|
+
}],
|
|
21575
|
+
10: [{
|
|
21576
|
+
title: '为空',
|
|
21577
|
+
id: '9'
|
|
21578
|
+
}, {
|
|
21579
|
+
title: '不为空',
|
|
21580
|
+
id: '10'
|
|
21581
|
+
}],
|
|
21582
|
+
11: [{
|
|
21583
|
+
title: '等于',
|
|
21584
|
+
id: '1'
|
|
21585
|
+
}, {
|
|
21586
|
+
title: '不等于',
|
|
21587
|
+
id: '2'
|
|
21588
|
+
}, {
|
|
21589
|
+
title: '包含',
|
|
21590
|
+
id: '3'
|
|
21591
|
+
}, {
|
|
21592
|
+
title: '不包含',
|
|
21593
|
+
id: '4'
|
|
21594
|
+
}, {
|
|
21595
|
+
title: '包含任一项',
|
|
21596
|
+
id: '5'
|
|
21597
|
+
}, {
|
|
21598
|
+
title: '不包含任一项',
|
|
21599
|
+
id: '6'
|
|
21600
|
+
}, {
|
|
21601
|
+
title: '包含所有项',
|
|
21602
|
+
id: '7'
|
|
21603
|
+
}, {
|
|
21604
|
+
title: '范围',
|
|
21605
|
+
id: '8'
|
|
21606
|
+
}, {
|
|
21607
|
+
title: '为空',
|
|
21608
|
+
id: '9'
|
|
21609
|
+
}, {
|
|
21610
|
+
title: '不为空',
|
|
21611
|
+
id: '10'
|
|
21612
|
+
}, {
|
|
21613
|
+
title: '属于',
|
|
21614
|
+
id: '11'
|
|
21615
|
+
}, {
|
|
21616
|
+
title: '有交集',
|
|
21617
|
+
id: '12'
|
|
21618
|
+
}, {
|
|
21619
|
+
title: '无交集',
|
|
21620
|
+
id: '13'
|
|
21621
|
+
}],
|
|
21622
|
+
12: [{
|
|
21623
|
+
title: '等于',
|
|
21624
|
+
id: '1'
|
|
21625
|
+
}, {
|
|
21626
|
+
title: '不等于',
|
|
21627
|
+
id: '2'
|
|
21628
|
+
}, {
|
|
21629
|
+
title: '包含',
|
|
21630
|
+
id: '3'
|
|
21631
|
+
}, {
|
|
21632
|
+
title: '不包含',
|
|
21633
|
+
id: '4'
|
|
21634
|
+
}, {
|
|
21635
|
+
title: '包含任一项',
|
|
21636
|
+
id: '5'
|
|
21637
|
+
}, {
|
|
21638
|
+
title: '不包含任一项',
|
|
21639
|
+
id: '6'
|
|
21640
|
+
}, {
|
|
21641
|
+
title: '包含所有项',
|
|
21642
|
+
id: '7'
|
|
21643
|
+
}, {
|
|
21644
|
+
title: '范围',
|
|
21645
|
+
id: '8'
|
|
21646
|
+
}, {
|
|
21647
|
+
title: '为空',
|
|
21648
|
+
id: '9'
|
|
21649
|
+
}, {
|
|
21650
|
+
title: '不为空',
|
|
21651
|
+
id: '10'
|
|
21652
|
+
}, {
|
|
21653
|
+
title: '属于',
|
|
21654
|
+
id: '11'
|
|
21655
|
+
}, {
|
|
21656
|
+
title: '有交集',
|
|
21657
|
+
id: '12'
|
|
21658
|
+
}, {
|
|
21659
|
+
title: '无交集',
|
|
21660
|
+
id: '13'
|
|
21661
|
+
}],
|
|
21662
|
+
13: [{
|
|
21663
|
+
title: '等于',
|
|
21664
|
+
id: '1'
|
|
21665
|
+
}, {
|
|
21666
|
+
title: '不等于',
|
|
21667
|
+
id: '2'
|
|
21668
|
+
}, {
|
|
21669
|
+
title: '包含',
|
|
21670
|
+
id: '3'
|
|
21671
|
+
}, {
|
|
21672
|
+
title: '不包含',
|
|
21673
|
+
id: '4'
|
|
21674
|
+
}, {
|
|
21675
|
+
title: '包含任一项',
|
|
21676
|
+
id: '5'
|
|
21677
|
+
}, {
|
|
21678
|
+
title: '不包含任一项',
|
|
21679
|
+
id: '6'
|
|
21680
|
+
}, {
|
|
21681
|
+
title: '包含所有项',
|
|
21682
|
+
id: '7'
|
|
21683
|
+
}, {
|
|
21684
|
+
title: '范围',
|
|
21685
|
+
id: '8'
|
|
21686
|
+
}, {
|
|
21687
|
+
title: '为空',
|
|
21688
|
+
id: '9'
|
|
21689
|
+
}, {
|
|
21690
|
+
title: '不为空',
|
|
21691
|
+
id: '10'
|
|
21692
|
+
}, {
|
|
21693
|
+
title: '属于',
|
|
21694
|
+
id: '11'
|
|
21695
|
+
}, {
|
|
21696
|
+
title: '有交集',
|
|
21697
|
+
id: '12'
|
|
21698
|
+
}, {
|
|
21699
|
+
title: '无交集',
|
|
21700
|
+
id: '13'
|
|
21701
|
+
}],
|
|
21702
|
+
14: [{
|
|
21703
|
+
title: '等于',
|
|
21704
|
+
id: '1'
|
|
21705
|
+
}, {
|
|
21706
|
+
title: '不等于',
|
|
21707
|
+
id: '2'
|
|
21708
|
+
}, {
|
|
21709
|
+
title: '包含',
|
|
21710
|
+
id: '3'
|
|
21711
|
+
}, {
|
|
21712
|
+
title: '不包含',
|
|
21713
|
+
id: '4'
|
|
21714
|
+
}, {
|
|
21715
|
+
title: '为空',
|
|
21716
|
+
id: '9'
|
|
21717
|
+
}, {
|
|
21718
|
+
title: '不为空',
|
|
21719
|
+
id: '10'
|
|
21720
|
+
}],
|
|
21721
|
+
15: [{
|
|
21722
|
+
title: '等于',
|
|
21723
|
+
id: '1'
|
|
21724
|
+
}, {
|
|
21725
|
+
title: '包含',
|
|
21726
|
+
id: '3'
|
|
21727
|
+
}, {
|
|
21728
|
+
title: '不包含',
|
|
21729
|
+
id: '4'
|
|
21730
|
+
}, {
|
|
21731
|
+
title: '为空',
|
|
21732
|
+
id: '9'
|
|
21733
|
+
}, {
|
|
21734
|
+
title: '不为空',
|
|
21735
|
+
id: '10'
|
|
21736
|
+
}]
|
|
21737
|
+
};
|
|
21738
|
+
/**
|
|
21739
|
+
* 全局默认成员列表
|
|
21740
|
+
* */
|
|
21741
|
+
var userConst = [{
|
|
21742
|
+
title: "班牛助手(工单)",
|
|
21743
|
+
code: "10001487",
|
|
21744
|
+
id: "10001487"
|
|
21745
|
+
}, {
|
|
21746
|
+
title: "班牛助手(服务大厅)",
|
|
21747
|
+
code: "857",
|
|
21748
|
+
id: "857"
|
|
21749
|
+
}, {
|
|
21750
|
+
title: "班牛助手(API)",
|
|
21751
|
+
code: "110430206",
|
|
21752
|
+
id: "110430206"
|
|
21753
|
+
}];
|
|
21754
|
+
|
|
21755
|
+
/**
|
|
21756
|
+
* 通过id列表,和options将title拼接出来 ,id的key名和 title的key名可以传过来,默认是id和title
|
|
21757
|
+
* id:[1,2] options:[{id:1,title:'name'},{id:2,title:'name2'}] 或 {1:'name',2:'name2'}
|
|
21758
|
+
* 结果返回 'name,name2'
|
|
21759
|
+
* @param {Array} ids ID列表
|
|
21760
|
+
* @param {Array|Object} options 选项数组或对象映射
|
|
21761
|
+
* @param {String} idKey ID的键名,默认为'id',仅当options为数组时使用
|
|
21762
|
+
* @param {String} nameKey 名称的键名,默认为'title',仅当options为数组时使用
|
|
21763
|
+
* @param {String} separator 自定义分隔符,默认为中文逗号','
|
|
21764
|
+
* @return {String} 拼接后的字符串
|
|
21765
|
+
* */
|
|
21766
|
+
function idsToTexts(ids, options) {
|
|
21767
|
+
var idKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'id';
|
|
21768
|
+
var nameKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'title';
|
|
21769
|
+
var separator = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ',';
|
|
21770
|
+
// 快速路径:空值检查
|
|
21771
|
+
if (!(ids !== null && ids !== void 0 && ids.length)) return '';
|
|
21772
|
+
if (!options) return ids.join(separator);
|
|
21773
|
+
|
|
21774
|
+
// 使用Map代替普通对象,在大量数据时性能更好
|
|
21775
|
+
var map = new Map();
|
|
21776
|
+
|
|
21777
|
+
// 判断options类型并进行相应处理
|
|
21778
|
+
if (Array.isArray(options)) {
|
|
21779
|
+
// 数组类型的options: [{id:1,title:'name'},{id:2,title:'name2'}]
|
|
21780
|
+
for (var i = 0, len = options.length; i < len; i++) {
|
|
21781
|
+
var item = options[i];
|
|
21782
|
+
if (item) map.set(item[idKey], item[nameKey]);
|
|
21783
|
+
}
|
|
21784
|
+
} else if (_typeof(options) === 'object') {
|
|
21785
|
+
// 对象映射类型的options: {1:'name',2:'name2'}
|
|
21786
|
+
var keys = Object.keys(options);
|
|
21787
|
+
for (var _i = 0, _len = keys.length; _i < _len; _i++) {
|
|
21788
|
+
var key = keys[_i];
|
|
21789
|
+
map.set(key, options[key]);
|
|
21790
|
+
}
|
|
21791
|
+
}
|
|
21792
|
+
|
|
21793
|
+
// 使用join的第二种模式,减少中间数组创建
|
|
21794
|
+
var result = '';
|
|
21795
|
+
for (var _i2 = 0, _len2 = ids.length; _i2 < _len2; _i2++) {
|
|
21796
|
+
var id = ids[_i2];
|
|
21797
|
+
result += (_i2 > 0 ? separator : '') + (map.has(String(id)) ? map.get(String(id)) : map.has(id) ? map.get(id) : id);
|
|
21798
|
+
}
|
|
21799
|
+
return result;
|
|
21800
|
+
}
|
|
21801
|
+
|
|
21802
|
+
/**
|
|
21803
|
+
* 向输入框的光标位置插入字符
|
|
21804
|
+
* */
|
|
21805
|
+
function insertText(dom, value) {
|
|
21806
|
+
var selectRange;
|
|
21807
|
+
if (document.selection) {
|
|
21808
|
+
// IE Support
|
|
21809
|
+
dom.focus();
|
|
21810
|
+
selectRange = document.selection.createRange();
|
|
21811
|
+
selectRange.text = value;
|
|
21812
|
+
dom.focus();
|
|
21813
|
+
} else if (dom.selectionStart || dom.selectionStart == '0') {
|
|
21814
|
+
// Firefox support
|
|
21815
|
+
var startPos = dom.selectionStart;
|
|
21816
|
+
var endPos = dom.selectionEnd;
|
|
21817
|
+
var scrollTop = dom.scrollTop;
|
|
21818
|
+
dom.value = dom.value.substring(0, startPos) + value + dom.value.substring(endPos, dom.value.length);
|
|
21819
|
+
dom.focus();
|
|
21820
|
+
dom.selectionStart = startPos + value.length;
|
|
21821
|
+
dom.selectionEnd = startPos + value.length;
|
|
21822
|
+
dom.scrollTop = scrollTop;
|
|
21823
|
+
} else {
|
|
21824
|
+
dom.value += value;
|
|
21825
|
+
dom.focus();
|
|
21826
|
+
}
|
|
21827
|
+
return dom.value;
|
|
21828
|
+
}
|
|
21829
|
+
|
|
21830
|
+
/**
|
|
21831
|
+
* 格式化查看、高级筛选的组件信息
|
|
21832
|
+
* @param Object component 组件信息
|
|
21833
|
+
* */
|
|
21834
|
+
function tidyRuleComponent(component) {
|
|
21835
|
+
var _ruleTypeMap$componen;
|
|
21836
|
+
// 组件必须可见
|
|
21837
|
+
if (component.extraInfo.listShow != 1) {
|
|
21838
|
+
return null;
|
|
21839
|
+
}
|
|
21840
|
+
var data = {
|
|
21841
|
+
id: component.id,
|
|
21842
|
+
behaviorType: component.behaviorType,
|
|
21843
|
+
columnCode: component.columnCode,
|
|
21844
|
+
name: component.name,
|
|
21845
|
+
valueType: valueTypeMap[component.behaviorType],
|
|
21846
|
+
extraInfo: component.extraInfo || {},
|
|
21847
|
+
moduleDefinition: component.moduleDefinition || [],
|
|
21848
|
+
insideDataSourceInfo: component.insideDataSourceInfo,
|
|
21849
|
+
outDataSourceInfo: component.outDataSourceInfo || [],
|
|
21850
|
+
matchType: (_ruleTypeMap$componen = ruleTypeMap[component.behaviorType][0]) === null || _ruleTypeMap$componen === void 0 ? void 0 : _ruleTypeMap$componen.id,
|
|
21851
|
+
parentCode: component.parent ? component.parent.columnCode : '',
|
|
21852
|
+
parentId: component.parent ? component.parent.id : '',
|
|
21853
|
+
parentBehaviorType: component.parent ? component.parent.behaviorType : ''
|
|
21854
|
+
};
|
|
21855
|
+
switch (data.behaviorType) {
|
|
21856
|
+
case 1: //文本
|
|
21857
|
+
case 9: //评分
|
|
21858
|
+
case 11:
|
|
21859
|
+
//富文本
|
|
21860
|
+
{
|
|
21861
|
+
data.value = '';
|
|
21862
|
+
break;
|
|
21863
|
+
}
|
|
21864
|
+
case 3: //单选
|
|
21865
|
+
case 4:
|
|
21866
|
+
//下拉
|
|
21867
|
+
{
|
|
21868
|
+
if (component.insideDataSourceInfo && component.insideDataSourceInfo.type) {
|
|
21869
|
+
data.postData = _objectSpread({
|
|
21870
|
+
appId: component.appId,
|
|
21871
|
+
projectId: component.tableId
|
|
21872
|
+
}, component.insideDataSourceInfo);
|
|
21873
|
+
data.pathUrl = '/v2/project/column/select';
|
|
21874
|
+
}
|
|
21875
|
+
data.value = {};
|
|
21876
|
+
//筛选时,当计算条件是等于、不等于、为空、不为空时,值是空对象,其他条件都是数组
|
|
21877
|
+
if (data.matchType && !['1', '2', '9', '10'].includes(data.matchType)) {
|
|
21878
|
+
data.value = [];
|
|
21879
|
+
}
|
|
21880
|
+
break;
|
|
21881
|
+
}
|
|
21882
|
+
case 5: //多选
|
|
21883
|
+
case 6: //联动组件
|
|
21884
|
+
case 20: //多选联动组件
|
|
21885
|
+
case 12:
|
|
21886
|
+
//标签
|
|
21887
|
+
{
|
|
21888
|
+
if (component.parent && [14, 15].includes(component.parent.behaviorType)) {
|
|
21889
|
+
data.pathUrl = '/address/getAreaDataList';
|
|
21890
|
+
}
|
|
21891
|
+
data.value = [];
|
|
21892
|
+
break;
|
|
21893
|
+
}
|
|
21894
|
+
case 10:
|
|
21895
|
+
//附件
|
|
21896
|
+
{
|
|
21897
|
+
data.pathUrl = bn_util_getApiBaseUrl() + "/v2/attachment/upload/task";
|
|
21898
|
+
data.value = [];
|
|
21899
|
+
break;
|
|
21900
|
+
}
|
|
21901
|
+
case 2: //数值
|
|
21902
|
+
case 7:
|
|
21903
|
+
//日期
|
|
21904
|
+
{
|
|
21905
|
+
data.value = '';
|
|
21906
|
+
//筛选时,值是空对象
|
|
21907
|
+
if (data.matchType) {
|
|
21908
|
+
data.value = {
|
|
21909
|
+
start: '',
|
|
21910
|
+
end: ''
|
|
21911
|
+
};
|
|
21912
|
+
}
|
|
21913
|
+
break;
|
|
21914
|
+
}
|
|
21915
|
+
case 8:
|
|
21916
|
+
//日期区间
|
|
21917
|
+
{
|
|
21918
|
+
data.value = [];
|
|
21919
|
+
//筛选时,值是空对象
|
|
21920
|
+
if (data.matchType) {
|
|
21921
|
+
data.value = {
|
|
21922
|
+
start: '',
|
|
21923
|
+
end: ''
|
|
21924
|
+
};
|
|
21925
|
+
}
|
|
21926
|
+
break;
|
|
21927
|
+
}
|
|
21928
|
+
case 13:
|
|
21929
|
+
//子表单
|
|
21930
|
+
{
|
|
21931
|
+
data.value = [];
|
|
21932
|
+
data.moduleDefinition = data.moduleDefinition ? data.moduleDefinition : [];
|
|
21933
|
+
var moduleDefinition = [];
|
|
21934
|
+
for (var i in data.moduleDefinition) {
|
|
21935
|
+
var childColumn = tidyRuleComponent(data.moduleDefinition[i]);
|
|
21936
|
+
if (childColumn) {
|
|
21937
|
+
moduleDefinition.push(childColumn);
|
|
21938
|
+
}
|
|
21939
|
+
}
|
|
21940
|
+
data.moduleDefinition = moduleDefinition;
|
|
21941
|
+
break;
|
|
21942
|
+
}
|
|
21943
|
+
}
|
|
21944
|
+
return data;
|
|
21945
|
+
}
|
|
21946
|
+
|
|
21947
|
+
/**
|
|
21948
|
+
* 格式化规则配置组件列表
|
|
21949
|
+
* */
|
|
21950
|
+
function tidyRuleComponents(components, appId, tableId) {
|
|
21951
|
+
var componentList = [];
|
|
21952
|
+
components.forEach(function (item) {
|
|
21953
|
+
if ([13, 14, 15].includes(item.behaviorType)) {
|
|
21954
|
+
item.moduleDefinition.forEach(function (ite) {
|
|
21955
|
+
var component = tidyRuleComponent(_objectSpread(_objectSpread({}, ite), {}, {
|
|
21956
|
+
name: "".concat(item.name, "-").concat(ite.name),
|
|
21957
|
+
parent: item,
|
|
21958
|
+
appId: appId,
|
|
21959
|
+
tableId: tableId
|
|
21960
|
+
}));
|
|
21961
|
+
if (component) {
|
|
21962
|
+
componentList.push(component);
|
|
21963
|
+
}
|
|
21964
|
+
});
|
|
21965
|
+
} else {
|
|
21966
|
+
var component = tidyRuleComponent(_objectSpread(_objectSpread({}, item), {}, {
|
|
21967
|
+
appId: appId,
|
|
21968
|
+
tableId: tableId
|
|
21969
|
+
}));
|
|
21970
|
+
if (component) {
|
|
21971
|
+
componentList.push(component);
|
|
21972
|
+
}
|
|
21973
|
+
}
|
|
21974
|
+
});
|
|
21975
|
+
return componentList;
|
|
21976
|
+
}
|
|
21977
|
+
|
|
21978
|
+
/**
|
|
21979
|
+
* 将高级筛选的value格式化成json
|
|
21980
|
+
* */
|
|
21981
|
+
function searchValueToJson(components) {
|
|
21982
|
+
var list = cloneDeep(components);
|
|
21983
|
+
list.forEach(function (item) {
|
|
21984
|
+
if (item.value != null) {
|
|
21985
|
+
// 排除 null 和 undefined
|
|
21986
|
+
var valueType = bn_util_typeof(item.value);
|
|
21987
|
+
// 保留 string、number 和 boolean 原始值,其他都转换为 JSON
|
|
21988
|
+
if (valueType !== 'string' && valueType !== 'number' && valueType !== 'boolean') {
|
|
21989
|
+
try {
|
|
21990
|
+
item.value = JSON.stringify(item.value);
|
|
21991
|
+
} catch (e) {
|
|
21992
|
+
console.warn('JSON stringify failed for value:', item.value);
|
|
21993
|
+
item.value = String(item.value); // 降级处理
|
|
21994
|
+
}
|
|
21995
|
+
}
|
|
21996
|
+
}
|
|
21997
|
+
});
|
|
21998
|
+
return list;
|
|
21999
|
+
}
|
|
22000
|
+
|
|
22001
|
+
/**
|
|
22002
|
+
* 格式化查看、高级筛选的组件信息
|
|
22003
|
+
* @param Object component 组件信息
|
|
22004
|
+
* @param String power 权限字段,跟简易工单admin配置对应,不穿则不校验权限
|
|
22005
|
+
* */
|
|
22006
|
+
function formatComponent(component, power) {
|
|
22007
|
+
// 先校验权限 展示的地方特殊判断下id
|
|
22008
|
+
if (power && component.extraInfo[power] != 1) {
|
|
22009
|
+
return null;
|
|
22010
|
+
}
|
|
22011
|
+
var data = {
|
|
22012
|
+
id: component.id,
|
|
22013
|
+
type: component.type,
|
|
22014
|
+
behaviorType: component.behaviorType,
|
|
22015
|
+
defaultInfo: component.defaultInfo,
|
|
22016
|
+
columnCode: component.columnCode,
|
|
22017
|
+
name: component.name,
|
|
22018
|
+
extraInfo: component.extraInfo || {},
|
|
22019
|
+
style: component.style || {},
|
|
22020
|
+
moduleDefinition: component.moduleDefinition || [],
|
|
22021
|
+
insideDataSourceInfo: component.insideDataSourceInfo,
|
|
22022
|
+
outDataSourceInfo: component.outDataSourceInfo || []
|
|
22023
|
+
};
|
|
22024
|
+
// 高级筛选条件
|
|
22025
|
+
if (power == 'queryShow') {
|
|
22026
|
+
var _searchTypeMap$compon;
|
|
22027
|
+
data.searchType = (_searchTypeMap$compon = searchTypeMap[component.behaviorType][0]) === null || _searchTypeMap$compon === void 0 ? void 0 : _searchTypeMap$compon.id;
|
|
22028
|
+
data.parentCode = component.parent ? component.parent.columnCode : null;
|
|
22029
|
+
// 过滤公共筛选条件
|
|
22030
|
+
if (['alarm_status', 'sync_status'].includes(component.columnCode)) {
|
|
22031
|
+
return null;
|
|
22032
|
+
}
|
|
22033
|
+
}
|
|
22034
|
+
switch (data.behaviorType) {
|
|
22035
|
+
case 1: //文本
|
|
22036
|
+
case 9: //评分
|
|
22037
|
+
case 11:
|
|
22038
|
+
//富文本
|
|
22039
|
+
{
|
|
22040
|
+
data.value = '';
|
|
22041
|
+
break;
|
|
22042
|
+
}
|
|
22043
|
+
case 3: //单选
|
|
22044
|
+
case 4:
|
|
22045
|
+
//下拉
|
|
22046
|
+
{
|
|
22047
|
+
if (component.insideDataSourceInfo && component.insideDataSourceInfo.type) {
|
|
22048
|
+
data.postData = _objectSpread({
|
|
22049
|
+
appId: component.appId,
|
|
22050
|
+
projectId: component.tableId,
|
|
22051
|
+
ids: JSON.stringify(component.insideDataSourceInfo)
|
|
22052
|
+
}, component.insideDataSourceInfo);
|
|
22053
|
+
if (component.insideDataSourceInfo.type == 'user') {
|
|
22054
|
+
data.postData.selectParams = "{\"userColId\":\"-1\"}";
|
|
22055
|
+
data.moduleDefinition = cloneDeep(userConst);
|
|
22056
|
+
}
|
|
22057
|
+
data.pathUrl = '/v2/project/column/select';
|
|
22058
|
+
}
|
|
22059
|
+
data.value = {};
|
|
22060
|
+
//筛选时,当计算条件是等于、不等于、为空、不为空时,值是空对象,其他条件都是数组
|
|
22061
|
+
if (data.searchType && !['1', '2', '9', '10'].includes(data.searchType)) {
|
|
22062
|
+
data.value = [];
|
|
22063
|
+
}
|
|
22064
|
+
break;
|
|
22065
|
+
}
|
|
22066
|
+
case 5: //多选
|
|
22067
|
+
case 6: //联动组件
|
|
22068
|
+
case 20: //多选联动组件
|
|
22069
|
+
case 12:
|
|
22070
|
+
//标签
|
|
22071
|
+
{
|
|
22072
|
+
if (component.parent && [14, 15].includes(component.parent.behaviorType)) {
|
|
22073
|
+
data.pathUrl = '/address/getAreaDataList';
|
|
22074
|
+
}
|
|
22075
|
+
data.value = [];
|
|
22076
|
+
break;
|
|
22077
|
+
}
|
|
22078
|
+
case 10:
|
|
22079
|
+
//附件
|
|
22080
|
+
{
|
|
22081
|
+
data.pathUrl = bn_util_getApiBaseUrl() + "/v2/attachment/upload/task";
|
|
22082
|
+
data.value = [];
|
|
22083
|
+
break;
|
|
22084
|
+
}
|
|
22085
|
+
case 2: //数值
|
|
22086
|
+
case 7:
|
|
22087
|
+
//日期
|
|
22088
|
+
{
|
|
22089
|
+
data.value = '';
|
|
22090
|
+
//筛选时,值是空对象
|
|
22091
|
+
if (data.searchType) {
|
|
22092
|
+
data.value = {
|
|
22093
|
+
start: '',
|
|
22094
|
+
end: ''
|
|
22095
|
+
};
|
|
22096
|
+
}
|
|
22097
|
+
break;
|
|
22098
|
+
}
|
|
22099
|
+
case 8:
|
|
22100
|
+
//日期区间
|
|
22101
|
+
{
|
|
22102
|
+
data.value = [];
|
|
22103
|
+
//筛选时,值是空对象
|
|
22104
|
+
if (data.searchType) {
|
|
22105
|
+
data.value = {
|
|
22106
|
+
start: '',
|
|
22107
|
+
end: ''
|
|
22108
|
+
};
|
|
22109
|
+
}
|
|
22110
|
+
break;
|
|
22111
|
+
}
|
|
22112
|
+
case 13:
|
|
22113
|
+
//子表单
|
|
22114
|
+
{
|
|
22115
|
+
data.value = [];
|
|
22116
|
+
data.moduleDefinition = data.moduleDefinition ? data.moduleDefinition : [];
|
|
22117
|
+
var moduleDefinition = [];
|
|
22118
|
+
for (var i in data.moduleDefinition) {
|
|
22119
|
+
var childColumn = formatComponent(data.moduleDefinition[i], power);
|
|
22120
|
+
if (childColumn) {
|
|
22121
|
+
moduleDefinition.push(childColumn);
|
|
22122
|
+
}
|
|
22123
|
+
}
|
|
22124
|
+
data.moduleDefinition = moduleDefinition;
|
|
22125
|
+
break;
|
|
22126
|
+
}
|
|
22127
|
+
case 14: //地址组件
|
|
22128
|
+
case 15:
|
|
22129
|
+
//收寄信息组件
|
|
22130
|
+
{
|
|
22131
|
+
var val = {};
|
|
22132
|
+
data.moduleDefinition.forEach(function (item) {
|
|
22133
|
+
val[item.columnCode] = item.behaviorType == 6 ? [] : '';
|
|
22134
|
+
});
|
|
22135
|
+
data.value = val;
|
|
22136
|
+
}
|
|
22137
|
+
}
|
|
22138
|
+
return data;
|
|
22139
|
+
}
|
|
22140
|
+
|
|
22141
|
+
/**
|
|
22142
|
+
* 格式化高级筛选组件列表
|
|
22143
|
+
* */
|
|
22144
|
+
function getSearchComponents(components, appId, tableId) {
|
|
22145
|
+
var componentList = [];
|
|
22146
|
+
components.forEach(function (item) {
|
|
22147
|
+
if ([13, 14, 15].includes(item.behaviorType) && item.extraInfo.queryShow == 1 && item.moduleDefinition.length > 0) {
|
|
22148
|
+
item.moduleDefinition.forEach(function (ite) {
|
|
22149
|
+
var component = formatComponent(_objectSpread(_objectSpread({}, ite), {}, {
|
|
22150
|
+
name: "".concat(item.name, "-").concat(ite.name),
|
|
22151
|
+
parent: item,
|
|
22152
|
+
appId: appId,
|
|
22153
|
+
tableId: tableId
|
|
22154
|
+
}), 'queryShow');
|
|
22155
|
+
if (component) {
|
|
22156
|
+
componentList.push(component);
|
|
22157
|
+
}
|
|
22158
|
+
});
|
|
22159
|
+
} else {
|
|
22160
|
+
var component = formatComponent(_objectSpread(_objectSpread({}, item), {}, {
|
|
22161
|
+
appId: appId,
|
|
22162
|
+
tableId: tableId
|
|
22163
|
+
}), 'queryShow');
|
|
22164
|
+
if (component) {
|
|
22165
|
+
componentList.push(component);
|
|
22166
|
+
}
|
|
22167
|
+
}
|
|
22168
|
+
});
|
|
22169
|
+
return componentList;
|
|
22170
|
+
}
|
|
22171
|
+
|
|
22172
|
+
/**
|
|
22173
|
+
* 格式化查看、详情组件列表
|
|
22174
|
+
* */
|
|
22175
|
+
function getWatchComponents(components, appId, tableId) {
|
|
22176
|
+
var power = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'listShow';
|
|
22177
|
+
var componentList = [];
|
|
22178
|
+
components.forEach(function (item) {
|
|
22179
|
+
var component = formatComponent(_objectSpread(_objectSpread({}, item), {}, {
|
|
22180
|
+
appId: appId,
|
|
22181
|
+
tableId: tableId
|
|
22182
|
+
}), power);
|
|
22183
|
+
if (component) {
|
|
22184
|
+
componentList.push(component);
|
|
22185
|
+
}
|
|
22186
|
+
});
|
|
22187
|
+
return componentList;
|
|
22188
|
+
}
|
|
22189
|
+
|
|
22190
|
+
/**
|
|
22191
|
+
* 格式化新建、编辑 组件的value
|
|
22192
|
+
* @param Object component 组件信息
|
|
22193
|
+
* @param Object values 编辑表单时,传入的工单数据
|
|
22194
|
+
* @param String power 权限,当不是编辑的时候,将只给有新建权限的组件进行赋值 component.extraInfo[power]
|
|
22195
|
+
* */
|
|
22196
|
+
function formatColumnVal(component, values, power) {
|
|
22197
|
+
var data = {
|
|
22198
|
+
id: component.id,
|
|
22199
|
+
type: component.type,
|
|
22200
|
+
behaviorType: component.behaviorType,
|
|
22201
|
+
columnCode: component.columnCode,
|
|
22202
|
+
defaultInfo: component.defaultInfo,
|
|
22203
|
+
name: component.name,
|
|
22204
|
+
extraInfo: component.extraInfo || {},
|
|
22205
|
+
style: component.style || {},
|
|
22206
|
+
moduleDefinition: component.moduleDefinition || [],
|
|
22207
|
+
insideDataSourceInfo: component.insideDataSourceInfo,
|
|
22208
|
+
outDataSourceInfo: component.outDataSourceInfo || []
|
|
22209
|
+
};
|
|
22210
|
+
var isSetValue = false;
|
|
22211
|
+
try {
|
|
22212
|
+
isSetValue = values && data.extraInfo[power];
|
|
22213
|
+
} catch (e) {
|
|
22214
|
+
// 缺少判断,isSetValue保持false
|
|
22215
|
+
}
|
|
22216
|
+
switch (data.behaviorType) {
|
|
22217
|
+
case 1: //文本
|
|
22218
|
+
case 2: //数值
|
|
22219
|
+
case 7: //日期
|
|
22220
|
+
case 9: //评分
|
|
22221
|
+
case 11:
|
|
22222
|
+
//富文本
|
|
22223
|
+
{
|
|
22224
|
+
if (isSetValue) {
|
|
22225
|
+
data.value = values[data.columnCode] || '';
|
|
22226
|
+
} else {
|
|
22227
|
+
data.value = data.defaultInfo || '';
|
|
22228
|
+
}
|
|
22229
|
+
break;
|
|
22230
|
+
}
|
|
22231
|
+
case 3: //单选
|
|
22232
|
+
case 4:
|
|
22233
|
+
//下拉
|
|
22234
|
+
{
|
|
22235
|
+
if (component.insideDataSourceInfo && component.insideDataSourceInfo.type) {
|
|
22236
|
+
data.postData = _objectSpread({
|
|
22237
|
+
appId: component.appId,
|
|
22238
|
+
projectId: component.tableId,
|
|
22239
|
+
ids: JSON.stringify(component.insideDataSourceInfo)
|
|
22240
|
+
}, component.insideDataSourceInfo);
|
|
22241
|
+
if (component.insideDataSourceInfo.type == 'user') {
|
|
22242
|
+
data.postData.selectParams = "{\"userColId\":\"-1\"}";
|
|
22243
|
+
}
|
|
22244
|
+
data.pathUrl = '/v2/project/column/select';
|
|
22245
|
+
}
|
|
22246
|
+
if (isSetValue) {
|
|
22247
|
+
data.value = values[data.columnCode] || {};
|
|
22248
|
+
} else {
|
|
22249
|
+
try {
|
|
22250
|
+
data.value = component.defaultInfo || {};
|
|
22251
|
+
} catch (e) {
|
|
22252
|
+
data.value = {};
|
|
22253
|
+
}
|
|
22254
|
+
}
|
|
22255
|
+
break;
|
|
22256
|
+
}
|
|
22257
|
+
case 5: //多选
|
|
22258
|
+
case 6: //联动组件
|
|
22259
|
+
case 8: //日期区间
|
|
22260
|
+
case 20: //多选联动组件
|
|
22261
|
+
case 12:
|
|
22262
|
+
//标签
|
|
22263
|
+
{
|
|
22264
|
+
if (isSetValue) {
|
|
22265
|
+
if (data.behaviorType == 6 && values[data.columnCode]) {
|
|
22266
|
+
data.value = values[data.columnCode].map(function (i) {
|
|
22267
|
+
return i.code;
|
|
22268
|
+
});
|
|
22269
|
+
} else {
|
|
22270
|
+
data.value = values[data.columnCode] || [];
|
|
22271
|
+
}
|
|
22272
|
+
} else {
|
|
22273
|
+
try {
|
|
22274
|
+
data.value = component.defaultInfo || [];
|
|
22275
|
+
if (data.behaviorType == 6 && component.defaultInfo) {
|
|
22276
|
+
data.value = component.defaultInfo.map(function (i) {
|
|
22277
|
+
return i.code;
|
|
22278
|
+
});
|
|
22279
|
+
}
|
|
22280
|
+
} catch (e) {
|
|
22281
|
+
data.value = [];
|
|
22282
|
+
}
|
|
22283
|
+
}
|
|
22284
|
+
break;
|
|
22285
|
+
}
|
|
22286
|
+
case 10:
|
|
22287
|
+
//附件
|
|
22288
|
+
{
|
|
22289
|
+
data.pathUrl = bn_util_getApiBaseUrl() + "/v2/attachment/upload/task";
|
|
22290
|
+
if (isSetValue) {
|
|
22291
|
+
data.value = values[data.columnCode] || [];
|
|
22292
|
+
} else {
|
|
22293
|
+
try {
|
|
22294
|
+
data.value = component.defaultInfo || [];
|
|
22295
|
+
} catch (e) {
|
|
22296
|
+
data.value = [];
|
|
22297
|
+
}
|
|
22298
|
+
}
|
|
22299
|
+
break;
|
|
22300
|
+
}
|
|
22301
|
+
case 13:
|
|
22302
|
+
//子表单
|
|
22303
|
+
{
|
|
22304
|
+
data.value = values ? values[data.columnCode] || [] : [];
|
|
22305
|
+
data.moduleDefinition = data.moduleDefinition ? data.moduleDefinition : [];
|
|
22306
|
+
var moduleDefinition = [];
|
|
22307
|
+
for (var i in data.moduleDefinition) {
|
|
22308
|
+
var childColumn = formatColumnVal(data.moduleDefinition[i]);
|
|
22309
|
+
if (childColumn) {
|
|
22310
|
+
moduleDefinition.push(childColumn);
|
|
22311
|
+
}
|
|
22312
|
+
}
|
|
22313
|
+
data.moduleDefinition = moduleDefinition;
|
|
22314
|
+
|
|
22315
|
+
// 性能优化:预先构建默认值映射,减少重复计算
|
|
22316
|
+
if (data.value.length > 0 && data.moduleDefinition.length > 0) {
|
|
22317
|
+
var defaultValueMap = {};
|
|
22318
|
+
data.moduleDefinition.forEach(function (definition) {
|
|
22319
|
+
defaultValueMap[definition.columnCode] = definition.value;
|
|
22320
|
+
});
|
|
22321
|
+
|
|
22322
|
+
// 修正data.value中的数据,确保每个对象都包含moduleDefinition中所有字段
|
|
22323
|
+
data.value.forEach(function (item) {
|
|
22324
|
+
// 直接在原对象上补充缺失字段,避免创建新对象
|
|
22325
|
+
for (var columnCode in defaultValueMap) {
|
|
22326
|
+
if (!(columnCode in item)) {
|
|
22327
|
+
item[columnCode] = defaultValueMap[columnCode];
|
|
22328
|
+
}
|
|
22329
|
+
}
|
|
22330
|
+
});
|
|
22331
|
+
}
|
|
22332
|
+
break;
|
|
22333
|
+
}
|
|
22334
|
+
case 14: //地址组件
|
|
22335
|
+
case 15:
|
|
22336
|
+
//收寄信息组件
|
|
22337
|
+
{
|
|
22338
|
+
var val = {};
|
|
22339
|
+
var editValue = values ? values[data.columnCode] : null;
|
|
22340
|
+
data.moduleDefinition.forEach(function (item) {
|
|
22341
|
+
if (editValue) {
|
|
22342
|
+
val[item.columnCode] = editValue[item.columnCode] || (item.behaviorType == 6 ? [] : '');
|
|
22343
|
+
} else {
|
|
22344
|
+
val[item.columnCode] = item.behaviorType == 6 ? [] : '';
|
|
22345
|
+
}
|
|
22346
|
+
});
|
|
22347
|
+
data.value = val;
|
|
22348
|
+
break;
|
|
22349
|
+
}
|
|
22350
|
+
}
|
|
22351
|
+
return data;
|
|
22352
|
+
}
|
|
22353
|
+
|
|
22354
|
+
/**
|
|
22355
|
+
* 格式化查看、编辑、组件列表
|
|
22356
|
+
* */
|
|
22357
|
+
function tidyComponents(components, appId, tableId, values) {
|
|
22358
|
+
var componentList = [];
|
|
22359
|
+
var power = values && values.id ? 'isEditable' : 'isAddable';
|
|
22360
|
+
components.forEach(function (item) {
|
|
22361
|
+
var component = formatColumnVal(_objectSpread(_objectSpread({}, item), {}, {
|
|
22362
|
+
appId: appId,
|
|
22363
|
+
tableId: tableId
|
|
22364
|
+
}), values, power);
|
|
22365
|
+
if (component) {
|
|
22366
|
+
componentList.push(component);
|
|
22367
|
+
}
|
|
22368
|
+
});
|
|
22369
|
+
return componentList;
|
|
22370
|
+
}
|
|
22371
|
+
|
|
22372
|
+
/**
|
|
22373
|
+
* 展示子表单详情,将附件的完整value进行组装,只能在展示的时候用哦,编辑可别用
|
|
22374
|
+
* component 子表单
|
|
22375
|
+
* data 整条工单数据包含子表单包含inside
|
|
22376
|
+
* */
|
|
22377
|
+
function tidyShowSubDataFile(component, data) {
|
|
22378
|
+
var fullSubData = cloneDeep(data.inside[component.columnCode]);
|
|
22379
|
+
var subData = cloneDeep(data[component.columnCode]);
|
|
22380
|
+
var files = component.moduleDefinition.filter(function (c) {
|
|
22381
|
+
return c.behaviorType == 10;
|
|
22382
|
+
});
|
|
22383
|
+
if (files.length > 0) {
|
|
22384
|
+
subData.forEach(function (item, index) {
|
|
22385
|
+
item.inside = {};
|
|
22386
|
+
files.forEach(function (i) {
|
|
22387
|
+
if (item[i.columnCode]) {
|
|
22388
|
+
item.inside[i.columnCode] = fullSubData[index][i.columnCode];
|
|
22389
|
+
}
|
|
22390
|
+
});
|
|
22391
|
+
});
|
|
22392
|
+
}
|
|
22393
|
+
return subData;
|
|
22394
|
+
}
|
|
22395
|
+
|
|
22396
|
+
/**
|
|
22397
|
+
* 整理跳转工作表的筛选条件
|
|
22398
|
+
* */
|
|
22399
|
+
function tidyJumpSearchData(searchData, components) {
|
|
22400
|
+
var searchList = [];
|
|
22401
|
+
try {
|
|
22402
|
+
searchData.forEach(function (item) {
|
|
22403
|
+
var component = components.find(function (i) {
|
|
22404
|
+
return i.columnCode == item.id;
|
|
22405
|
+
});
|
|
22406
|
+
if (component) {
|
|
22407
|
+
searchList.push({
|
|
22408
|
+
behaviorType: component.behaviorType,
|
|
22409
|
+
columnCode: component.columnCode,
|
|
22410
|
+
name: component.name,
|
|
22411
|
+
searchType: item.searchType,
|
|
22412
|
+
value: item.value
|
|
22413
|
+
});
|
|
22414
|
+
}
|
|
22415
|
+
});
|
|
22416
|
+
} catch (e) {
|
|
22417
|
+
console.log('tidyJumpSearchDataErr:' + e);
|
|
22418
|
+
}
|
|
22419
|
+
return searchList;
|
|
22420
|
+
}
|
|
22421
|
+
|
|
22422
|
+
/**
|
|
22423
|
+
* 接口日志记录器,将系统最近100条接口请求记录到localStrage缓存中去
|
|
22424
|
+
* @param {Object} res 接口返回体
|
|
22425
|
+
*/
|
|
22426
|
+
function formatLogDate() {
|
|
22427
|
+
var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
|
|
22428
|
+
var d = new Date(date);
|
|
22429
|
+
var pad = function pad(n) {
|
|
22430
|
+
return String(n).padStart(2, '0');
|
|
22431
|
+
};
|
|
22432
|
+
var year = d.getFullYear();
|
|
22433
|
+
var month = pad(d.getMonth() + 1);
|
|
22434
|
+
var day = pad(d.getDate());
|
|
22435
|
+
var hour = pad(d.getHours());
|
|
22436
|
+
var minute = pad(d.getMinutes());
|
|
22437
|
+
var second = pad(d.getSeconds());
|
|
22438
|
+
return "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hour, ":").concat(minute, ":").concat(second);
|
|
22439
|
+
}
|
|
22440
|
+
/**
|
|
22441
|
+
* 接口日志记录器,将系统最近100条接口请求记录到localStrage缓存中去
|
|
22442
|
+
* @param {Object} res 接口返回体
|
|
22443
|
+
*/
|
|
22444
|
+
var recordApiLog = function recordApiLog(res) {
|
|
22445
|
+
try {
|
|
22446
|
+
var logs = JSON.parse(localStorage.getItem('webLog') || 'false') || [];
|
|
22447
|
+
var sessionInfo = JSON.parse(localStorage.getItem('sessionInfo') || 'false') || {};
|
|
22448
|
+
// 获取用户信息
|
|
22449
|
+
try {
|
|
22450
|
+
var params = res.config.data ? JSON.parse(res.config.data) : {};
|
|
22451
|
+
var data = res.data.data;
|
|
22452
|
+
if (res.config.url.indexOf('/v2/logins/checkSession') >= 0) {
|
|
22453
|
+
var _data$userInfo, _data$userInfo2, _data$company, _data$company2;
|
|
22454
|
+
sessionInfo.userName = (_data$userInfo = data.userInfo) === null || _data$userInfo === void 0 ? void 0 : _data$userInfo.workNick;
|
|
22455
|
+
sessionInfo.userId = (_data$userInfo2 = data.userInfo) === null || _data$userInfo2 === void 0 ? void 0 : _data$userInfo2.id;
|
|
22456
|
+
sessionInfo.companyName = (_data$company = data.company) === null || _data$company === void 0 ? void 0 : _data$company.companyName;
|
|
22457
|
+
sessionInfo.companyId = (_data$company2 = data.company) === null || _data$company2 === void 0 ? void 0 : _data$company2.id;
|
|
22458
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22459
|
+
} else if (res.config.url.indexOf('/biztable/definition/table?tableCode') >= 0) {
|
|
22460
|
+
sessionInfo.appId = data.appId;
|
|
22461
|
+
sessionInfo.tableId = data.tableId;
|
|
22462
|
+
sessionInfo.tableCode = data.tableCode;
|
|
22463
|
+
sessionInfo.taskId = '';
|
|
22464
|
+
sessionInfo.url = window.location.href;
|
|
22465
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22466
|
+
} else if (res.config.url.indexOf('/biztable/content/get') >= 0) {
|
|
22467
|
+
sessionInfo.taskId = data.view.id;
|
|
22468
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22469
|
+
} else if (res.config.url.indexOf('/v2/project/task/queryV3/') >= 0) {
|
|
22470
|
+
sessionInfo.appId = params.appId;
|
|
22471
|
+
sessionInfo.tableId = params.id;
|
|
22472
|
+
sessionInfo.taskId = '';
|
|
22473
|
+
sessionInfo.tableCode = '';
|
|
22474
|
+
sessionInfo.workflowId = '';
|
|
22475
|
+
sessionInfo.workFlowNodeId = '';
|
|
22476
|
+
sessionInfo.instanceId = '';
|
|
22477
|
+
sessionInfo.processCode = '';
|
|
22478
|
+
sessionInfo.url = window.location.href;
|
|
22479
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22480
|
+
} else if (res.config.url.indexOf('/v2/project/task/queryByTaskId') >= 0) {
|
|
22481
|
+
sessionInfo.taskId = data.id;
|
|
22482
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22483
|
+
}
|
|
22484
|
+
// 流程代办取小程序id,工作表id
|
|
22485
|
+
else if (res.config.url.indexOf('/v2/unitman/list/todo/pendingTaskList') >= 0) {
|
|
22486
|
+
sessionInfo.appId = params.appId;
|
|
22487
|
+
sessionInfo.tableId = params.tableId;
|
|
22488
|
+
sessionInfo.taskId = '';
|
|
22489
|
+
sessionInfo.tableCode = '';
|
|
22490
|
+
sessionInfo.workflowId = '';
|
|
22491
|
+
sessionInfo.workFlowNodeId = '';
|
|
22492
|
+
sessionInfo.instanceId = '';
|
|
22493
|
+
sessionInfo.processCode = '';
|
|
22494
|
+
sessionInfo.url = window.location.href;
|
|
22495
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22496
|
+
}
|
|
22497
|
+
// 流程代办取流程详细信息
|
|
22498
|
+
else if (res.config.url.indexOf('v2/unitman/list/taskDetail') >= 0) {
|
|
22499
|
+
sessionInfo.taskId = params.tableTaskId;
|
|
22500
|
+
sessionInfo.workflowId = params.workflowId;
|
|
22501
|
+
sessionInfo.workFlowNodeId = params.workflowNodeId;
|
|
22502
|
+
sessionInfo.instanceId = data.workflowInstanceId;
|
|
22503
|
+
sessionInfo.processCode = data.processCode;
|
|
22504
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22505
|
+
}
|
|
22506
|
+
// 流程工单获取流程id
|
|
22507
|
+
else if (res.config.url.indexOf('/wf/config/findWfTmpVersionByInstanceId') >= 0) {
|
|
22508
|
+
sessionInfo.workflowId = data.id;
|
|
22509
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22510
|
+
} // 流程工单获取流程编号
|
|
22511
|
+
else if (res.config.url.indexOf('/wf/config/findWfTmpVersionByInstanceId') >= 0) {
|
|
22512
|
+
sessionInfo.taskId = data.id;
|
|
22513
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22514
|
+
} //获取流程其他信息
|
|
22515
|
+
else if (res.config.url.indexOf('/v2/scheduleCenter/query/queryNodeList') >= 0) {
|
|
22516
|
+
var node = data.content ? data.content[0] : {};
|
|
22517
|
+
sessionInfo.workFlowNodeId = node.templateNodeId;
|
|
22518
|
+
sessionInfo.instanceId = node.instanceId;
|
|
22519
|
+
sessionInfo.processCode = node.processCode;
|
|
22520
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22521
|
+
}
|
|
22522
|
+
} catch (e) {
|
|
22523
|
+
console.log('apiLog:' + e);
|
|
22524
|
+
}
|
|
22525
|
+
var log = {
|
|
22526
|
+
url: res.config.url,
|
|
22527
|
+
code: res.data ? res.data.code : null,
|
|
22528
|
+
time: formatLogDate(res.headers.date),
|
|
22529
|
+
traceId: res.headers['trace-id'] || '未返回'
|
|
22530
|
+
};
|
|
22531
|
+
logs = [log].concat(bn_util_toConsumableArray(logs)).slice(0, 50);
|
|
22532
|
+
localStorage.setItem('webLog', JSON.stringify(logs));
|
|
22533
|
+
} catch (err) {
|
|
22534
|
+
console.log("\u4E00\u6761\u65E5\u5FD7\u672A\u80FD\u6210\u529F\u6355\u6349\uFF1A".concat(JSON.stringify(res)));
|
|
22535
|
+
}
|
|
22536
|
+
};
|
|
22537
|
+
/**
|
|
22538
|
+
* 跳转主应用路由
|
|
22539
|
+
* 无界子应用内通过 bus 通知主应用改地址栏;独立运行时跳转到主应用入口
|
|
22540
|
+
* @param {string|{ name?: string, path?: string, params?: object, query?: object }} route
|
|
22541
|
+
*/
|
|
22542
|
+
|
|
22543
|
+
function mainAppRouterPush(route) {
|
|
22544
|
+
if (window.__POWERED_BY_WUJIE__) {
|
|
22545
|
+
var _window$$wujie;
|
|
22546
|
+
(_window$$wujie = window.$wujie) === null || _window$$wujie === void 0 || _window$$wujie.bus.$emit('router-jump', route);
|
|
22547
|
+
} else {}
|
|
22548
|
+
}
|
|
22549
|
+
/**
|
|
22550
|
+
* 地址自动识别
|
|
22551
|
+
* */
|
|
22552
|
+
|
|
22553
|
+
;// ./install.js
|
|
22554
|
+
// install.js - BnAppletUi 组件库入口
|
|
22555
|
+
|
|
22556
|
+
|
|
22557
|
+
|
|
22558
|
+
|
|
22559
|
+
|
|
22560
|
+
|
|
22561
|
+
|
|
22562
|
+
|
|
22563
|
+
|
|
22564
|
+
|
|
22565
|
+
|
|
22566
|
+
|
|
22567
|
+
|
|
22568
|
+
|
|
22569
|
+
const BnAppletUi = {
|
|
22570
|
+
install: (Vue) => {
|
|
22571
|
+
Vue.component("BnAddress", BnAddress);
|
|
22572
|
+
Vue.component("BnAddressParse", BnAddressParse);
|
|
22573
|
+
Vue.component("BnCheck", BnCheck);
|
|
22574
|
+
Vue.component("BnDateRange", bnDateRange);
|
|
22575
|
+
Vue.component("BnDialog", dialog);
|
|
22576
|
+
Vue.component("BnDropdown", bnDropdown);
|
|
22577
|
+
Vue.component("BnFileView", BnFileView);
|
|
22578
|
+
Vue.component("BnFunText", bnFunText);
|
|
22579
|
+
Vue.component("BnInpNum", BnInpNum);
|
|
22580
|
+
Vue.component("BnInputNum", BnInputNum);
|
|
22581
|
+
Vue.component("BnRuleCondition", bnRuleCondition);
|
|
22582
|
+
Vue.component("BnSelect", BnSelect_select);
|
|
22583
|
+
Vue.component("BnFiTaxAutoComplete", BnFiTaxAutoComplete);
|
|
22584
|
+
}
|
|
22585
|
+
};
|
|
22586
|
+
|
|
22587
|
+
// 支持通过 CDN 方式引入时自动注册
|
|
22588
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
22589
|
+
window.Vue.use(BnAppletUi);
|
|
22590
|
+
}
|
|
22591
|
+
|
|
22592
|
+
// 导出插件对象(整体引入)
|
|
22593
|
+
// 使用方式:Vue.use(BnAppletUi)
|
|
22594
|
+
/* harmony default export */ const install = (BnAppletUi);
|
|
22595
|
+
|
|
22596
|
+
// 单独导出各组件(按需引入)
|
|
22597
|
+
|
|
22598
|
+
// 单独导出每个工具函数和常量,方便按需引入
|
|
20708
22599
|
|
|
20709
22600
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
20710
22601
|
|