@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
|
@@ -298,7 +298,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `*[data-v-c3b70e18]{box-sizing:border-b
|
|
|
298
298
|
|
|
299
299
|
/***/ },
|
|
300
300
|
|
|
301
|
-
/***/
|
|
301
|
+
/***/ 80
|
|
302
302
|
(module, __webpack_exports__, __webpack_require__) {
|
|
303
303
|
|
|
304
304
|
"use strict";
|
|
@@ -315,7 +315,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
315
315
|
|
|
316
316
|
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()));
|
|
317
317
|
// Module
|
|
318
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.bnInput-underline[data-v-
|
|
318
|
+
___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}`, ""]);
|
|
319
319
|
// Exports
|
|
320
320
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
321
321
|
|
|
@@ -950,19 +950,19 @@ var update = add("2c657678", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
950
950
|
|
|
951
951
|
/***/ },
|
|
952
952
|
|
|
953
|
-
/***/
|
|
953
|
+
/***/ 1494
|
|
954
954
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
955
955
|
|
|
956
956
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
957
957
|
|
|
958
958
|
// load the styles
|
|
959
|
-
var content = __webpack_require__(
|
|
959
|
+
var content = __webpack_require__(80);
|
|
960
960
|
if(content.__esModule) content = content.default;
|
|
961
961
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
962
962
|
if(content.locals) module.exports = content.locals;
|
|
963
963
|
// add the styles to the DOM
|
|
964
964
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
965
|
-
var update = add("
|
|
965
|
+
var update = add("7ee7d200", content, true, {"sourceMap":false,"shadowMode":false});
|
|
966
966
|
|
|
967
967
|
/***/ },
|
|
968
968
|
|
|
@@ -6482,6 +6482,63 @@ module.exports = {
|
|
|
6482
6482
|
};
|
|
6483
6483
|
|
|
6484
6484
|
|
|
6485
|
+
/***/ },
|
|
6486
|
+
|
|
6487
|
+
/***/ 3063
|
|
6488
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
6489
|
+
|
|
6490
|
+
"use strict";
|
|
6491
|
+
|
|
6492
|
+
// https://github.com/zloirock/core-js/issues/280
|
|
6493
|
+
var userAgent = __webpack_require__(2839);
|
|
6494
|
+
|
|
6495
|
+
module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
|
|
6496
|
+
|
|
6497
|
+
|
|
6498
|
+
/***/ },
|
|
6499
|
+
|
|
6500
|
+
/***/ 533
|
|
6501
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
6502
|
+
|
|
6503
|
+
"use strict";
|
|
6504
|
+
|
|
6505
|
+
var uncurryThis = __webpack_require__(9504);
|
|
6506
|
+
var toLength = __webpack_require__(8014);
|
|
6507
|
+
var toString = __webpack_require__(655);
|
|
6508
|
+
var $repeat = __webpack_require__(2333);
|
|
6509
|
+
var requireObjectCoercible = __webpack_require__(7750);
|
|
6510
|
+
|
|
6511
|
+
var repeat = uncurryThis($repeat);
|
|
6512
|
+
var stringSlice = uncurryThis(''.slice);
|
|
6513
|
+
var ceil = Math.ceil;
|
|
6514
|
+
|
|
6515
|
+
// `String.prototype.{ padStart, padEnd }` methods implementation
|
|
6516
|
+
var createMethod = function (IS_END) {
|
|
6517
|
+
return function ($this, maxLength, fillString) {
|
|
6518
|
+
var S = toString(requireObjectCoercible($this));
|
|
6519
|
+
var intMaxLength = toLength(maxLength);
|
|
6520
|
+
var stringLength = S.length;
|
|
6521
|
+
if (intMaxLength <= stringLength) return S;
|
|
6522
|
+
var fillStr = fillString === undefined ? ' ' : toString(fillString);
|
|
6523
|
+
var fillLen, stringFiller;
|
|
6524
|
+
if (fillStr === '') return S;
|
|
6525
|
+
fillLen = intMaxLength - stringLength;
|
|
6526
|
+
stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));
|
|
6527
|
+
if (stringFiller.length > fillLen) stringFiller = stringSlice(stringFiller, 0, fillLen);
|
|
6528
|
+
return IS_END ? S + stringFiller : stringFiller + S;
|
|
6529
|
+
};
|
|
6530
|
+
};
|
|
6531
|
+
|
|
6532
|
+
module.exports = {
|
|
6533
|
+
// `String.prototype.padStart` method
|
|
6534
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padstart
|
|
6535
|
+
start: createMethod(false),
|
|
6536
|
+
// `String.prototype.padEnd` method
|
|
6537
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padend
|
|
6538
|
+
end: createMethod(true)
|
|
6539
|
+
};
|
|
6540
|
+
|
|
6541
|
+
|
|
6485
6542
|
/***/ },
|
|
6486
6543
|
|
|
6487
6544
|
/***/ 2333
|
|
@@ -9754,6 +9811,26 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
|
|
|
9754
9811
|
});
|
|
9755
9812
|
|
|
9756
9813
|
|
|
9814
|
+
/***/ },
|
|
9815
|
+
|
|
9816
|
+
/***/ 8156
|
|
9817
|
+
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
9818
|
+
|
|
9819
|
+
"use strict";
|
|
9820
|
+
|
|
9821
|
+
var $ = __webpack_require__(6518);
|
|
9822
|
+
var $padStart = (__webpack_require__(533).start);
|
|
9823
|
+
var WEBKIT_BUG = __webpack_require__(3063);
|
|
9824
|
+
|
|
9825
|
+
// `String.prototype.padStart` method
|
|
9826
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padstart
|
|
9827
|
+
$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
|
|
9828
|
+
padStart: function padStart(maxLength /* , fillString = ' ' */) {
|
|
9829
|
+
return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
|
|
9830
|
+
}
|
|
9831
|
+
});
|
|
9832
|
+
|
|
9833
|
+
|
|
9757
9834
|
/***/ },
|
|
9758
9835
|
|
|
9759
9836
|
/***/ 5440
|
|
@@ -10338,7 +10415,7 @@ if (typeof window !== 'undefined') {
|
|
|
10338
10415
|
// Indicate to webpack that this file can be concatenated
|
|
10339
10416
|
/* harmony default export */ const setPublicPath = (null);
|
|
10340
10417
|
|
|
10341
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnAddress/index.vue?vue&type=template&id=8705bc38&scoped=true
|
|
10418
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnAddress/index.vue?vue&type=template&id=8705bc38&scoped=true
|
|
10342
10419
|
var render = function render() {
|
|
10343
10420
|
var _vm = this,
|
|
10344
10421
|
_c = _vm._self._c;
|
|
@@ -10733,7 +10810,7 @@ var component = normalizeComponent(
|
|
|
10733
10810
|
)
|
|
10734
10811
|
|
|
10735
10812
|
/* harmony default export */ const BnAddress = (component.exports);
|
|
10736
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnAddressParse/index.vue?vue&type=template&id=3a0d7cb0
|
|
10813
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnAddressParse/index.vue?vue&type=template&id=3a0d7cb0
|
|
10737
10814
|
var BnAddressParsevue_type_template_id_3a0d7cb0_render = function render() {
|
|
10738
10815
|
var _vm = this,
|
|
10739
10816
|
_c = _vm._self._c;
|
|
@@ -10810,8 +10887,8 @@ var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash
|
|
|
10810
10887
|
};
|
|
10811
10888
|
},
|
|
10812
10889
|
methods: {
|
|
10813
|
-
/**
|
|
10814
|
-
* 自动识别方法(使用防抖)
|
|
10890
|
+
/**
|
|
10891
|
+
* 自动识别方法(使用防抖)
|
|
10815
10892
|
*/
|
|
10816
10893
|
autoAds: (0,external_lodash_namespaceObject.debounce)(function () {
|
|
10817
10894
|
var _this = this;
|
|
@@ -10870,7 +10947,7 @@ var BnAddressParse_component = normalizeComponent(
|
|
|
10870
10947
|
)
|
|
10871
10948
|
|
|
10872
10949
|
/* harmony default export */ const BnAddressParse = (BnAddressParse_component.exports);
|
|
10873
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnCheck/BnCheck.vue?vue&type=template&id=3782b7e9&scoped=true
|
|
10950
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnCheck/BnCheck.vue?vue&type=template&id=3782b7e9&scoped=true
|
|
10874
10951
|
var BnCheckvue_type_template_id_3782b7e9_scoped_true_render = function render() {
|
|
10875
10952
|
var _vm = this,
|
|
10876
10953
|
_c = _vm._self._c;
|
|
@@ -11014,8 +11091,8 @@ var es_string_includes = __webpack_require__(1699);
|
|
|
11014
11091
|
}
|
|
11015
11092
|
},
|
|
11016
11093
|
methods: {
|
|
11017
|
-
/**
|
|
11018
|
-
* 组件默认判断
|
|
11094
|
+
/**
|
|
11095
|
+
* 组件默认判断
|
|
11019
11096
|
* */
|
|
11020
11097
|
check: function check() {
|
|
11021
11098
|
var _this = this;
|
|
@@ -11040,8 +11117,8 @@ var es_string_includes = __webpack_require__(1699);
|
|
|
11040
11117
|
}
|
|
11041
11118
|
}
|
|
11042
11119
|
},
|
|
11043
|
-
/**
|
|
11044
|
-
* 点击事件
|
|
11120
|
+
/**
|
|
11121
|
+
* 点击事件
|
|
11045
11122
|
* */
|
|
11046
11123
|
handleClick: function handleClick() {
|
|
11047
11124
|
var _this2 = this;
|
|
@@ -11086,8 +11163,8 @@ var es_string_includes = __webpack_require__(1699);
|
|
|
11086
11163
|
});
|
|
11087
11164
|
this.emitClick();
|
|
11088
11165
|
},
|
|
11089
|
-
/**
|
|
11090
|
-
* 点击事件透出
|
|
11166
|
+
/**
|
|
11167
|
+
* 点击事件透出
|
|
11091
11168
|
* */
|
|
11092
11169
|
emitClick: function emitClick() {
|
|
11093
11170
|
if (this.onClick) {
|
|
@@ -11127,7 +11204,7 @@ var BnCheck_component = normalizeComponent(
|
|
|
11127
11204
|
)
|
|
11128
11205
|
|
|
11129
11206
|
/* harmony default export */ const BnCheck = (BnCheck_component.exports);
|
|
11130
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDateRange/bnDateRange.vue?vue&type=template&id=5575777a
|
|
11207
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDateRange/bnDateRange.vue?vue&type=template&id=5575777a
|
|
11131
11208
|
var bnDateRangevue_type_template_id_5575777a_render = function render() {
|
|
11132
11209
|
var _vm = this,
|
|
11133
11210
|
_c = _vm._self._c;
|
|
@@ -11306,8 +11383,8 @@ var es_object_keys = __webpack_require__(9432);
|
|
|
11306
11383
|
};
|
|
11307
11384
|
},
|
|
11308
11385
|
methods: {
|
|
11309
|
-
/**
|
|
11310
|
-
* 更新时间选择器数据
|
|
11386
|
+
/**
|
|
11387
|
+
* 更新时间选择器数据
|
|
11311
11388
|
* */
|
|
11312
11389
|
updateValue: function updateValue(value) {
|
|
11313
11390
|
// 更新v-model
|
|
@@ -11317,22 +11394,22 @@ var es_object_keys = __webpack_require__(9432);
|
|
|
11317
11394
|
// 发送change事件
|
|
11318
11395
|
this.$emit('change', value);
|
|
11319
11396
|
},
|
|
11320
|
-
/**
|
|
11321
|
-
* 失去焦点
|
|
11397
|
+
/**
|
|
11398
|
+
* 失去焦点
|
|
11322
11399
|
* */
|
|
11323
11400
|
blur: function blur(val) {
|
|
11324
11401
|
this.$emit('blur', val);
|
|
11325
11402
|
},
|
|
11326
|
-
/**
|
|
11327
|
-
* 获得焦点
|
|
11403
|
+
/**
|
|
11404
|
+
* 获得焦点
|
|
11328
11405
|
* */
|
|
11329
11406
|
focus: function focus(val) {
|
|
11330
11407
|
this.$emit('focus', val);
|
|
11331
11408
|
}
|
|
11332
11409
|
},
|
|
11333
11410
|
computed: {
|
|
11334
|
-
/**
|
|
11335
|
-
* 日期组件value
|
|
11411
|
+
/**
|
|
11412
|
+
* 日期组件value
|
|
11336
11413
|
* */
|
|
11337
11414
|
date: {
|
|
11338
11415
|
get: function get() {
|
|
@@ -11388,7 +11465,7 @@ var bnDateRange_component = normalizeComponent(
|
|
|
11388
11465
|
)
|
|
11389
11466
|
|
|
11390
11467
|
/* harmony default export */ const bnDateRange = (bnDateRange_component.exports);
|
|
11391
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDialog/dialog.vue?vue&type=template&id=f9aaf6de
|
|
11468
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDialog/dialog.vue?vue&type=template&id=f9aaf6de
|
|
11392
11469
|
var dialogvue_type_template_id_f9aaf6de_render = function render() {
|
|
11393
11470
|
var _vm = this,
|
|
11394
11471
|
_c = _vm._self._c;
|
|
@@ -11648,7 +11725,7 @@ var dialog_component = normalizeComponent(
|
|
|
11648
11725
|
var es_regexp_exec = __webpack_require__(7495);
|
|
11649
11726
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.search.js
|
|
11650
11727
|
var es_string_search = __webpack_require__(5746);
|
|
11651
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDown/bnDropdown.vue?vue&type=template&id=a5f24f64&scoped=true
|
|
11728
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDown/bnDropdown.vue?vue&type=template&id=a5f24f64&scoped=true
|
|
11652
11729
|
|
|
11653
11730
|
|
|
11654
11731
|
|
|
@@ -12373,10 +12450,10 @@ function toPinYin(chart) {
|
|
|
12373
12450
|
return getFullChars(chart.replace(/[&\|\\\*^%$#@\-]/g, "")).toLowerCase();
|
|
12374
12451
|
}
|
|
12375
12452
|
|
|
12376
|
-
/**
|
|
12377
|
-
* 匹配大小写字母拼音 返回Boolean值
|
|
12378
|
-
* @param {*} chart 需要匹配的字符
|
|
12379
|
-
* @param {*} data 需要进行匹配的字符
|
|
12453
|
+
/**
|
|
12454
|
+
* 匹配大小写字母拼音 返回Boolean值
|
|
12455
|
+
* @param {*} chart 需要匹配的字符
|
|
12456
|
+
* @param {*} data 需要进行匹配的字符
|
|
12380
12457
|
*/
|
|
12381
12458
|
function searchToBoolean(chart, data) {
|
|
12382
12459
|
return toPinYin(data).indexOf(toPinYin(chart)) !== -1;
|
|
@@ -12460,11 +12537,11 @@ function searchItemFlat(chart, data, name) {
|
|
|
12460
12537
|
name: "bnDropdown",
|
|
12461
12538
|
props: {
|
|
12462
12539
|
value: [String, Array, Number, Object],
|
|
12463
|
-
/**
|
|
12464
|
-
* 下拉弹窗模式
|
|
12465
|
-
* 单选(singleCheck) 默认
|
|
12466
|
-
* 多选(multiCheck)
|
|
12467
|
-
* 多选框(multiCheckBox)
|
|
12540
|
+
/**
|
|
12541
|
+
* 下拉弹窗模式
|
|
12542
|
+
* 单选(singleCheck) 默认
|
|
12543
|
+
* 多选(multiCheck)
|
|
12544
|
+
* 多选框(multiCheckBox)
|
|
12468
12545
|
*/
|
|
12469
12546
|
checkMode: {
|
|
12470
12547
|
type: String,
|
|
@@ -12637,8 +12714,8 @@ function searchItemFlat(chart, data, name) {
|
|
|
12637
12714
|
this.optionCheckMap = checkedMap;
|
|
12638
12715
|
}
|
|
12639
12716
|
},
|
|
12640
|
-
/**
|
|
12641
|
-
* 打开选择器时触发,初始化
|
|
12717
|
+
/**
|
|
12718
|
+
* 打开选择器时触发,初始化
|
|
12642
12719
|
* */
|
|
12643
12720
|
open: function open() {
|
|
12644
12721
|
var _this2 = this;
|
|
@@ -12670,8 +12747,8 @@ function searchItemFlat(chart, data, name) {
|
|
|
12670
12747
|
this.backshowMultiCheckBox();
|
|
12671
12748
|
}
|
|
12672
12749
|
},
|
|
12673
|
-
/**
|
|
12674
|
-
* 关闭时清除没有确定的选项
|
|
12750
|
+
/**
|
|
12751
|
+
* 关闭时清除没有确定的选项
|
|
12675
12752
|
*/
|
|
12676
12753
|
close: function close() {
|
|
12677
12754
|
// 多选框模式
|
|
@@ -12702,10 +12779,10 @@ function searchItemFlat(chart, data, name) {
|
|
|
12702
12779
|
});
|
|
12703
12780
|
}
|
|
12704
12781
|
},
|
|
12705
|
-
/**
|
|
12706
|
-
* 动态计算title
|
|
12707
|
-
* @param {Array} list 数组
|
|
12708
|
-
* @param {String} id 需要匹配的id
|
|
12782
|
+
/**
|
|
12783
|
+
* 动态计算title
|
|
12784
|
+
* @param {Array} list 数组
|
|
12785
|
+
* @param {String} id 需要匹配的id
|
|
12709
12786
|
* */
|
|
12710
12787
|
foundTitle: function foundTitle() {
|
|
12711
12788
|
var _this4 = this;
|
|
@@ -12727,8 +12804,8 @@ function searchItemFlat(chart, data, name) {
|
|
|
12727
12804
|
}
|
|
12728
12805
|
return title;
|
|
12729
12806
|
},
|
|
12730
|
-
/**
|
|
12731
|
-
* 远程加载数据
|
|
12807
|
+
/**
|
|
12808
|
+
* 远程加载数据
|
|
12732
12809
|
* */
|
|
12733
12810
|
loadMore: function loadMore() {
|
|
12734
12811
|
var _this5 = this;
|
|
@@ -12744,9 +12821,9 @@ function searchItemFlat(chart, data, name) {
|
|
|
12744
12821
|
}
|
|
12745
12822
|
});
|
|
12746
12823
|
},
|
|
12747
|
-
/**
|
|
12748
|
-
* 判断是否选中 选中返回true,未选中返回false
|
|
12749
|
-
* @param {Object} item 选项的对象数据
|
|
12824
|
+
/**
|
|
12825
|
+
* 判断是否选中 选中返回true,未选中返回false
|
|
12826
|
+
* @param {Object} item 选项的对象数据
|
|
12750
12827
|
* */
|
|
12751
12828
|
checked: function checked(item) {
|
|
12752
12829
|
var check = false;
|
|
@@ -12778,9 +12855,9 @@ function searchItemFlat(chart, data, name) {
|
|
|
12778
12855
|
}
|
|
12779
12856
|
return check;
|
|
12780
12857
|
},
|
|
12781
|
-
/**
|
|
12782
|
-
* 点击下拉菜单中的某一项,选中或取消选中
|
|
12783
|
-
* @param {Object} item 选项的对象数据
|
|
12858
|
+
/**
|
|
12859
|
+
* 点击下拉菜单中的某一项,选中或取消选中
|
|
12860
|
+
* @param {Object} item 选项的对象数据
|
|
12784
12861
|
* */
|
|
12785
12862
|
chooseItem: function chooseItem(item) {
|
|
12786
12863
|
var value = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
@@ -12850,8 +12927,8 @@ function searchItemFlat(chart, data, name) {
|
|
|
12850
12927
|
// change事件
|
|
12851
12928
|
this.$emit("change", value);
|
|
12852
12929
|
},
|
|
12853
|
-
/**
|
|
12854
|
-
* 快捷查询
|
|
12930
|
+
/**
|
|
12931
|
+
* 快捷查询
|
|
12855
12932
|
* */
|
|
12856
12933
|
search: debounce(function (val) {
|
|
12857
12934
|
// 保存当前选中状态
|
|
@@ -12965,7 +13042,7 @@ var bnDropdown_component = normalizeComponent(
|
|
|
12965
13042
|
)
|
|
12966
13043
|
|
|
12967
13044
|
/* harmony default export */ const bnDropdown = (bnDropdown_component.exports);
|
|
12968
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/BnFileView.vue?vue&type=template&id=27b6fb78&scoped=true
|
|
13045
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/BnFileView.vue?vue&type=template&id=27b6fb78&scoped=true
|
|
12969
13046
|
var BnFileViewvue_type_template_id_27b6fb78_scoped_true_render = function render() {
|
|
12970
13047
|
var _vm = this,
|
|
12971
13048
|
_c = _vm._self._c;
|
|
@@ -13072,7 +13149,7 @@ var es_error_to_string = __webpack_require__(6918);
|
|
|
13072
13149
|
var es_date_to_string = __webpack_require__(3288);
|
|
13073
13150
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.parse-int.js
|
|
13074
13151
|
var es_parse_int = __webpack_require__(8940);
|
|
13075
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/videoPreview.vue?vue&type=template&id=9a7f7bec&scoped=true
|
|
13152
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/videoPreview.vue?vue&type=template&id=9a7f7bec&scoped=true
|
|
13076
13153
|
var videoPreviewvue_type_template_id_9a7f7bec_scoped_true_render = function render() {
|
|
13077
13154
|
var _vm = this,
|
|
13078
13155
|
_c = _vm._self._c;
|
|
@@ -13118,8 +13195,8 @@ var videoPreviewvue_type_template_id_9a7f7bec_scoped_true_staticRenderFns = [];
|
|
|
13118
13195
|
}
|
|
13119
13196
|
},
|
|
13120
13197
|
methods: {
|
|
13121
|
-
/**
|
|
13122
|
-
* 打开播发视频
|
|
13198
|
+
/**
|
|
13199
|
+
* 打开播发视频
|
|
13123
13200
|
* */
|
|
13124
13201
|
open: function open(url) {
|
|
13125
13202
|
this.url = url;
|
|
@@ -13154,7 +13231,7 @@ var videoPreview_component = normalizeComponent(
|
|
|
13154
13231
|
)
|
|
13155
13232
|
|
|
13156
13233
|
/* harmony default export */ const videoPreview = (videoPreview_component.exports);
|
|
13157
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/FileDetail.vue?vue&type=template&id=7fcc19c2&scoped=true
|
|
13234
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFileView/FileDetail.vue?vue&type=template&id=7fcc19c2&scoped=true
|
|
13158
13235
|
var FileDetailvue_type_template_id_7fcc19c2_scoped_true_render = function render() {
|
|
13159
13236
|
var _vm = this,
|
|
13160
13237
|
_c = _vm._self._c;
|
|
@@ -13258,8 +13335,8 @@ var es_parse_float = __webpack_require__(8459);
|
|
|
13258
13335
|
}
|
|
13259
13336
|
},
|
|
13260
13337
|
methods: {
|
|
13261
|
-
/**
|
|
13262
|
-
* 获取下载链接
|
|
13338
|
+
/**
|
|
13339
|
+
* 获取下载链接
|
|
13263
13340
|
* */
|
|
13264
13341
|
getDownloadUrl: function getDownloadUrl(file) {
|
|
13265
13342
|
if (this.downType === 'url') {
|
|
@@ -13267,8 +13344,8 @@ var es_parse_float = __webpack_require__(8459);
|
|
|
13267
13344
|
}
|
|
13268
13345
|
return !file.id ? file.url : '/v2/attachment/' + file.id;
|
|
13269
13346
|
},
|
|
13270
|
-
/**
|
|
13271
|
-
* 计算附件大小
|
|
13347
|
+
/**
|
|
13348
|
+
* 计算附件大小
|
|
13272
13349
|
* */
|
|
13273
13350
|
returnSizeText: function returnSizeText(size) {
|
|
13274
13351
|
if (size && parseFloat(size) / 1024 / 1024 < 1) {
|
|
@@ -13437,15 +13514,15 @@ var FileDetail_component = normalizeComponent(
|
|
|
13437
13514
|
};
|
|
13438
13515
|
},
|
|
13439
13516
|
methods: {
|
|
13440
|
-
/**
|
|
13441
|
-
* 忽略大小写判断文件类型
|
|
13517
|
+
/**
|
|
13518
|
+
* 忽略大小写判断文件类型
|
|
13442
13519
|
* */
|
|
13443
13520
|
includesType: function includesType(typeList, fileType) {
|
|
13444
13521
|
if (!fileType) return false;
|
|
13445
13522
|
return (0,external_lodash_namespaceObject.includes)((0,external_lodash_namespaceObject.map)(typeList, external_lodash_namespaceObject.toLower), (0,external_lodash_namespaceObject.toLower)(fileType));
|
|
13446
13523
|
},
|
|
13447
|
-
/**
|
|
13448
|
-
* 打开文件预览,一般是除了图片、视频、音频这些无法预览的附件类型
|
|
13524
|
+
/**
|
|
13525
|
+
* 打开文件预览,一般是除了图片、视频、音频这些无法预览的附件类型
|
|
13449
13526
|
* */
|
|
13450
13527
|
initViewer: function initViewer(view) {
|
|
13451
13528
|
this.viewer = view;
|
|
@@ -13482,8 +13559,8 @@ var FileDetail_component = normalizeComponent(
|
|
|
13482
13559
|
}
|
|
13483
13560
|
}
|
|
13484
13561
|
},
|
|
13485
|
-
/**
|
|
13486
|
-
* 根据文件类型,判端文件预览展示那种图片或icon
|
|
13562
|
+
/**
|
|
13563
|
+
* 根据文件类型,判端文件预览展示那种图片或icon
|
|
13487
13564
|
* */
|
|
13488
13565
|
getFileImg: function getFileImg(file) {
|
|
13489
13566
|
// 默认文件图片
|
|
@@ -13526,8 +13603,8 @@ var FileDetail_component = normalizeComponent(
|
|
|
13526
13603
|
}
|
|
13527
13604
|
return url;
|
|
13528
13605
|
},
|
|
13529
|
-
/**
|
|
13530
|
-
* 删除附件
|
|
13606
|
+
/**
|
|
13607
|
+
* 删除附件
|
|
13531
13608
|
* */
|
|
13532
13609
|
delFile: function delFile(index) {
|
|
13533
13610
|
this.fileList.splice(index, 1);
|
|
@@ -13567,7 +13644,7 @@ var BnFileView_component = normalizeComponent(
|
|
|
13567
13644
|
)
|
|
13568
13645
|
|
|
13569
13646
|
/* harmony default export */ const BnFileView = (BnFileView_component.exports);
|
|
13570
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFunText/bnFunText.vue?vue&type=template&id=c3b70e18&scoped=true
|
|
13647
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFunText/bnFunText.vue?vue&type=template&id=c3b70e18&scoped=true
|
|
13571
13648
|
|
|
13572
13649
|
|
|
13573
13650
|
|
|
@@ -14128,10 +14205,10 @@ var functions = [{
|
|
|
14128
14205
|
}
|
|
14129
14206
|
}
|
|
14130
14207
|
},
|
|
14131
|
-
/**
|
|
14132
|
-
* 整理组件列表为schema
|
|
14133
|
-
*@param array 组件插入到数组
|
|
14134
|
-
*@param column 组件
|
|
14208
|
+
/**
|
|
14209
|
+
* 整理组件列表为schema
|
|
14210
|
+
*@param array 组件插入到数组
|
|
14211
|
+
*@param column 组件
|
|
14135
14212
|
* */
|
|
14136
14213
|
loadColumn: function loadColumn(array, column) {
|
|
14137
14214
|
var data = {
|
|
@@ -14166,8 +14243,8 @@ var functions = [{
|
|
|
14166
14243
|
array.push(data);
|
|
14167
14244
|
}
|
|
14168
14245
|
},
|
|
14169
|
-
/**
|
|
14170
|
-
* 切换函数分类的打开挂壁
|
|
14246
|
+
/**
|
|
14247
|
+
* 切换函数分类的打开挂壁
|
|
14171
14248
|
* */
|
|
14172
14249
|
changeOpenClass: function changeOpenClass(item) {
|
|
14173
14250
|
var index = this.openFunClass.indexOf(item.name);
|
|
@@ -14177,8 +14254,8 @@ var functions = [{
|
|
|
14177
14254
|
this.openFunClass.splice(index, 1);
|
|
14178
14255
|
}
|
|
14179
14256
|
},
|
|
14180
|
-
/**
|
|
14181
|
-
* 切换字段分类的打开挂壁
|
|
14257
|
+
/**
|
|
14258
|
+
* 切换字段分类的打开挂壁
|
|
14182
14259
|
* */
|
|
14183
14260
|
changeOpenColumn: function changeOpenColumn(item) {
|
|
14184
14261
|
var index = this.openColumnClass.indexOf(item.name);
|
|
@@ -14188,8 +14265,8 @@ var functions = [{
|
|
|
14188
14265
|
this.openColumnClass.splice(index, 1);
|
|
14189
14266
|
}
|
|
14190
14267
|
},
|
|
14191
|
-
/**
|
|
14192
|
-
* 获取焦点
|
|
14268
|
+
/**
|
|
14269
|
+
* 获取焦点
|
|
14193
14270
|
* */
|
|
14194
14271
|
onCodemirrorFocus: function onCodemirrorFocus() {
|
|
14195
14272
|
var _this4 = this;
|
|
@@ -14202,8 +14279,8 @@ var functions = [{
|
|
|
14202
14279
|
// }
|
|
14203
14280
|
});
|
|
14204
14281
|
},
|
|
14205
|
-
/**
|
|
14206
|
-
* 高亮代码
|
|
14282
|
+
/**
|
|
14283
|
+
* 高亮代码
|
|
14207
14284
|
*/
|
|
14208
14285
|
specialString: function specialString(str) {
|
|
14209
14286
|
var specialRegExp = /\*|\+|\?|\||\{|\}|\[|\]|\(|\)|\^|\$|\./g;
|
|
@@ -14267,8 +14344,8 @@ var functions = [{
|
|
|
14267
14344
|
// setTimeout(()=>{
|
|
14268
14345
|
// },3000)
|
|
14269
14346
|
},
|
|
14270
|
-
/**
|
|
14271
|
-
* 选择函数
|
|
14347
|
+
/**
|
|
14348
|
+
* 选择函数
|
|
14272
14349
|
*/
|
|
14273
14350
|
onSelectFun: function onSelectFun(item) {
|
|
14274
14351
|
var _this6 = this;
|
|
@@ -14280,8 +14357,8 @@ var functions = [{
|
|
|
14280
14357
|
_this6.$refs.cm && _this6.$refs.cm.codemirror.focus(); // 确保编辑器获得焦点
|
|
14281
14358
|
});
|
|
14282
14359
|
},
|
|
14283
|
-
/**
|
|
14284
|
-
* 选择字段
|
|
14360
|
+
/**
|
|
14361
|
+
* 选择字段
|
|
14285
14362
|
*/
|
|
14286
14363
|
onSelectCol: function onSelectCol(item) {
|
|
14287
14364
|
var _this7 = this;
|
|
@@ -14310,8 +14387,8 @@ var functions = [{
|
|
|
14310
14387
|
_this7.$refs.cm && _this7.$refs.cm.codemirror.focus(); // 确保编辑器获得焦点
|
|
14311
14388
|
});
|
|
14312
14389
|
},
|
|
14313
|
-
/**
|
|
14314
|
-
* 保存
|
|
14390
|
+
/**
|
|
14391
|
+
* 保存
|
|
14315
14392
|
* */
|
|
14316
14393
|
saveRule: function saveRule() {
|
|
14317
14394
|
var _this8 = this;
|
|
@@ -14344,8 +14421,8 @@ var functions = [{
|
|
|
14344
14421
|
_this8.$emit('save', res);
|
|
14345
14422
|
});
|
|
14346
14423
|
},
|
|
14347
|
-
/**
|
|
14348
|
-
* 打开弹框
|
|
14424
|
+
/**
|
|
14425
|
+
* 打开弹框
|
|
14349
14426
|
* */
|
|
14350
14427
|
openDialog: function openDialog() {
|
|
14351
14428
|
this.postData.exprExec = this.showContent;
|
|
@@ -14391,8 +14468,8 @@ var bnFunText_component = normalizeComponent(
|
|
|
14391
14468
|
)
|
|
14392
14469
|
|
|
14393
14470
|
/* harmony default export */ const bnFunText = (bnFunText_component.exports);
|
|
14394
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=template&id=
|
|
14395
|
-
var
|
|
14471
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=template&id=dc8beb30&scoped=true
|
|
14472
|
+
var BnInpNumvue_type_template_id_dc8beb30_scoped_true_render = function render() {
|
|
14396
14473
|
var _vm = this,
|
|
14397
14474
|
_c = _vm._self._c;
|
|
14398
14475
|
return _c('el-input', {
|
|
@@ -14420,12 +14497,10 @@ var BnInpNumvue_type_template_id_a086af00_scoped_true_render = function render()
|
|
|
14420
14497
|
slot: "prefix"
|
|
14421
14498
|
}, [_vm._t("prefix")], 2), _c('template', {
|
|
14422
14499
|
slot: "suffix"
|
|
14423
|
-
}, [_vm._t("
|
|
14500
|
+
}, [_vm._t("default")], 2)], 2);
|
|
14424
14501
|
};
|
|
14425
|
-
var
|
|
14502
|
+
var BnInpNumvue_type_template_id_dc8beb30_scoped_true_staticRenderFns = [];
|
|
14426
14503
|
|
|
14427
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
14428
|
-
var es_string_ends_with = __webpack_require__(9449);
|
|
14429
14504
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js
|
|
14430
14505
|
var es_string_starts_with = __webpack_require__(1392);
|
|
14431
14506
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=script&lang=js
|
|
@@ -14446,19 +14521,17 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
14446
14521
|
|
|
14447
14522
|
|
|
14448
14523
|
|
|
14449
|
-
|
|
14450
|
-
|
|
14451
14524
|
/* harmony default export */ const BnInpNumvue_type_script_lang_js = ({
|
|
14452
14525
|
name: "BnInpNum",
|
|
14453
14526
|
model: {
|
|
14454
|
-
prop:
|
|
14455
|
-
event:
|
|
14527
|
+
prop: 'modelValue',
|
|
14528
|
+
event: 'update:modelValue'
|
|
14456
14529
|
},
|
|
14457
14530
|
props: {
|
|
14458
14531
|
modelValue: [String, Number],
|
|
14459
14532
|
placeholder: {
|
|
14460
14533
|
type: String,
|
|
14461
|
-
"default":
|
|
14534
|
+
"default": ''
|
|
14462
14535
|
},
|
|
14463
14536
|
size: String,
|
|
14464
14537
|
underline: {
|
|
@@ -14493,61 +14566,59 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
14493
14566
|
},
|
|
14494
14567
|
set: function set(val) {
|
|
14495
14568
|
this.$emit("update:modelValue", val);
|
|
14496
|
-
this.$emit("input", val);
|
|
14497
14569
|
}
|
|
14498
14570
|
}
|
|
14499
14571
|
},
|
|
14500
14572
|
methods: {
|
|
14501
|
-
/**
|
|
14502
|
-
* input事件 实时变化
|
|
14573
|
+
/**
|
|
14574
|
+
* input事件 实时变化
|
|
14503
14575
|
* */
|
|
14504
14576
|
valInput: (0,external_lodash_namespaceObject.debounce)(function (val) {
|
|
14505
14577
|
// 快速处理空值
|
|
14506
14578
|
if (!val) {
|
|
14507
|
-
this.val =
|
|
14579
|
+
this.val = '';
|
|
14508
14580
|
return;
|
|
14509
14581
|
}
|
|
14510
14582
|
var value = val;
|
|
14511
14583
|
|
|
14512
14584
|
// 移除无效字符(一次性处理)
|
|
14513
|
-
value = value.replace(/[^0-9.-]/g,
|
|
14585
|
+
value = value.replace(/[^0-9.-]/g, '');
|
|
14514
14586
|
|
|
14515
14587
|
// 处理负号:只保留开头的第一个负号
|
|
14516
|
-
if (value.startsWith(
|
|
14517
|
-
value =
|
|
14588
|
+
if (value.startsWith('-')) {
|
|
14589
|
+
value = '-' + value.slice(1).replace(/-/g, '');
|
|
14518
14590
|
} else {
|
|
14519
|
-
value = value.replace(/-/g,
|
|
14591
|
+
value = value.replace(/-/g, '');
|
|
14520
14592
|
}
|
|
14521
14593
|
|
|
14522
|
-
//
|
|
14523
|
-
if (value.startsWith(
|
|
14524
|
-
value = value.slice(1).replace(/\./g,
|
|
14594
|
+
// 处理小数点:移除开头的点,保留第一个点
|
|
14595
|
+
if (value.startsWith('.')) {
|
|
14596
|
+
value = value.slice(1).replace(/\./g, '');
|
|
14525
14597
|
} else {
|
|
14526
|
-
var dotIndex = value.indexOf(
|
|
14598
|
+
var dotIndex = value.indexOf('.');
|
|
14527
14599
|
if (dotIndex > 0) {
|
|
14528
|
-
var parts = value.split(
|
|
14529
|
-
value = parts[0] +
|
|
14600
|
+
var parts = value.split('.');
|
|
14601
|
+
value = parts[0] + '.' + parts.slice(1).join('');
|
|
14530
14602
|
}
|
|
14531
14603
|
}
|
|
14532
14604
|
|
|
14533
|
-
//
|
|
14534
|
-
|
|
14535
|
-
|
|
14536
|
-
|
|
14537
|
-
if (precisionNum === 0) {
|
|
14605
|
+
// 处理精度
|
|
14606
|
+
if (value && value !== '-' && this.precision != null && this.precision >= 0) {
|
|
14607
|
+
var _dotIndex = value.indexOf('.');
|
|
14608
|
+
if (this.precision === 0) {
|
|
14538
14609
|
// 精度为0时,移除小数点及之后的内容
|
|
14539
|
-
value =
|
|
14540
|
-
} else if (
|
|
14610
|
+
value = _dotIndex > 0 ? value.slice(0, _dotIndex) : value;
|
|
14611
|
+
} else if (_dotIndex > 0) {
|
|
14541
14612
|
// 限制小数位数
|
|
14542
|
-
var decimalPart = value.slice(
|
|
14543
|
-
if (decimalPart.length >
|
|
14544
|
-
value = value.slice(0,
|
|
14613
|
+
var decimalPart = value.slice(_dotIndex + 1);
|
|
14614
|
+
if (decimalPart.length > this.precision) {
|
|
14615
|
+
value = value.slice(0, _dotIndex + 1 + this.precision);
|
|
14545
14616
|
}
|
|
14546
14617
|
}
|
|
14547
14618
|
}
|
|
14548
14619
|
|
|
14549
14620
|
// 实时校验最大值和最小值
|
|
14550
|
-
if (value && value !==
|
|
14621
|
+
if (value && value !== '-') {
|
|
14551
14622
|
var numValue = parseFloat(value);
|
|
14552
14623
|
if (!isNaN(numValue)) {
|
|
14553
14624
|
// 校验最大值
|
|
@@ -14562,17 +14633,13 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
14562
14633
|
}
|
|
14563
14634
|
this.val = value;
|
|
14564
14635
|
}, 200),
|
|
14565
|
-
/**
|
|
14566
|
-
* change事件上报
|
|
14636
|
+
/**
|
|
14637
|
+
* change事件上报
|
|
14567
14638
|
* */
|
|
14568
14639
|
valChange: function valChange() {
|
|
14569
|
-
//
|
|
14570
|
-
if (this.val ===
|
|
14571
|
-
this.val =
|
|
14572
|
-
}
|
|
14573
|
-
// 移除末尾多余的小数点(如 '0.' → '0')
|
|
14574
|
-
if (this.val && this.val.endsWith(".")) {
|
|
14575
|
-
this.val = this.val.slice(0, -1);
|
|
14640
|
+
// 处理只输入负号的情况
|
|
14641
|
+
if (this.val === '-') {
|
|
14642
|
+
this.val = '';
|
|
14576
14643
|
}
|
|
14577
14644
|
// 最大值最小值校验已在valInput中实时处理,这里保留作为兜底
|
|
14578
14645
|
if (this.val) {
|
|
@@ -14586,21 +14653,20 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
14586
14653
|
}
|
|
14587
14654
|
}
|
|
14588
14655
|
}
|
|
14589
|
-
this.$emit("change", this.val);
|
|
14590
14656
|
},
|
|
14591
|
-
/**
|
|
14592
|
-
* blur事件上报
|
|
14657
|
+
/**
|
|
14658
|
+
* blur事件上报
|
|
14593
14659
|
* */
|
|
14594
14660
|
inputBlur: function inputBlur() {
|
|
14595
|
-
this.$emit(
|
|
14661
|
+
this.$emit('blur', this.val);
|
|
14596
14662
|
}
|
|
14597
14663
|
}
|
|
14598
14664
|
});
|
|
14599
14665
|
;// ./packages/BnInpNum/BnInpNum.vue?vue&type=script&lang=js
|
|
14600
14666
|
/* harmony default export */ const BnInpNum_BnInpNumvue_type_script_lang_js = (BnInpNumvue_type_script_lang_js);
|
|
14601
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=
|
|
14602
|
-
var
|
|
14603
|
-
;// ./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=
|
|
14667
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=dc8beb30&prod&lang=scss&scoped=true
|
|
14668
|
+
var BnInpNumvue_type_style_index_0_id_dc8beb30_prod_lang_scss_scoped_true = __webpack_require__(1494);
|
|
14669
|
+
;// ./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=dc8beb30&prod&lang=scss&scoped=true
|
|
14604
14670
|
|
|
14605
14671
|
;// ./packages/BnInpNum/BnInpNum.vue
|
|
14606
14672
|
|
|
@@ -14613,17 +14679,17 @@ var BnInpNumvue_type_style_index_0_id_a086af00_prod_lang_scss_scoped_true = __we
|
|
|
14613
14679
|
|
|
14614
14680
|
var BnInpNum_component = normalizeComponent(
|
|
14615
14681
|
BnInpNum_BnInpNumvue_type_script_lang_js,
|
|
14616
|
-
|
|
14617
|
-
|
|
14682
|
+
BnInpNumvue_type_template_id_dc8beb30_scoped_true_render,
|
|
14683
|
+
BnInpNumvue_type_template_id_dc8beb30_scoped_true_staticRenderFns,
|
|
14618
14684
|
false,
|
|
14619
14685
|
null,
|
|
14620
|
-
"
|
|
14686
|
+
"dc8beb30",
|
|
14621
14687
|
null
|
|
14622
14688
|
|
|
14623
14689
|
)
|
|
14624
14690
|
|
|
14625
14691
|
/* harmony default export */ const BnInpNum = (BnInpNum_component.exports);
|
|
14626
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInputNum/BnInputNum.vue?vue&type=template&id=2baef958
|
|
14692
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInputNum/BnInputNum.vue?vue&type=template&id=2baef958
|
|
14627
14693
|
var BnInputNumvue_type_template_id_2baef958_render = function render() {
|
|
14628
14694
|
var _vm = this,
|
|
14629
14695
|
_c = _vm._self._c;
|
|
@@ -14794,7 +14860,7 @@ var BnInputNum_component = normalizeComponent(
|
|
|
14794
14860
|
)
|
|
14795
14861
|
|
|
14796
14862
|
/* harmony default export */ const BnInputNum = (BnInputNum_component.exports);
|
|
14797
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=template&id=1d87e9a2&scoped=true
|
|
14863
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/bnRuleCondition.vue?vue&type=template&id=1d87e9a2&scoped=true
|
|
14798
14864
|
|
|
14799
14865
|
|
|
14800
14866
|
|
|
@@ -15627,53 +15693,53 @@ var searchList = {
|
|
|
15627
15693
|
title: '不为空',
|
|
15628
15694
|
id: '10'
|
|
15629
15695
|
}],
|
|
15630
|
-
/*
|
|
15631
|
-
9: [
|
|
15632
|
-
{title: '范围', id: '8'},
|
|
15633
|
-
{title: '为空', id: '9'},
|
|
15634
|
-
{title: '不为空', id: '10'},
|
|
15635
|
-
],
|
|
15636
|
-
11: [
|
|
15637
|
-
{title: '等于', id: '1'},
|
|
15638
|
-
{title: '不等于', id: '2'},
|
|
15639
|
-
{title: '包含', id: '3'},
|
|
15640
|
-
{title: '不包含', id: '4'},
|
|
15641
|
-
{title: '包含任一项', id: '5'},
|
|
15642
|
-
{title: '不包含任一项', id: '6'},
|
|
15643
|
-
{title: '包含所有项', id: '7'},
|
|
15644
|
-
{title: '范围', id: '8'},
|
|
15645
|
-
{title: '为空', id: '9'},
|
|
15646
|
-
{title: '不为空', id: '10'},
|
|
15647
|
-
{title: '属于', id: '11'},
|
|
15648
|
-
{title: '有交集', id: '12'},
|
|
15649
|
-
{title: '无交集', id: '13'},],
|
|
15650
|
-
12: [
|
|
15651
|
-
{title: '等于', id: '1'},
|
|
15652
|
-
{title: '不等于', id: '2'},
|
|
15653
|
-
{title: '包含', id: '3'},
|
|
15654
|
-
{title: '不包含', id: '4'},
|
|
15655
|
-
{title: '包含任一项', id: '5'},
|
|
15656
|
-
{title: '不包含任一项', id: '6'},
|
|
15657
|
-
{title: '包含所有项', id: '7'},
|
|
15658
|
-
{title: '范围', id: '8'},
|
|
15659
|
-
{title: '为空', id: '9'},
|
|
15660
|
-
{title: '不为空', id: '10'},
|
|
15661
|
-
{title: '属于', id: '11'},
|
|
15662
|
-
{title: '有交集', id: '12'},
|
|
15663
|
-
{title: '无交集', id: '13'},],
|
|
15664
|
-
13: [
|
|
15665
|
-
{title: '等于', id: '1'},
|
|
15666
|
-
{title: '不等于', id: '2'},
|
|
15667
|
-
{title: '包含', id: '3'},
|
|
15668
|
-
{title: '不包含', id: '4'},
|
|
15669
|
-
{title: '包含任一项', id: '5'},
|
|
15670
|
-
{title: '不包含任一项', id: '6'},
|
|
15671
|
-
{title: '包含所有项', id: '7'},
|
|
15672
|
-
{title: '范围', id: '8'},
|
|
15673
|
-
{title: '为空', id: '9'},
|
|
15674
|
-
{title: '不为空', id: '10'},
|
|
15675
|
-
{title: '属于', id: '11'},
|
|
15676
|
-
{title: '有交集', id: '12'},
|
|
15696
|
+
/*
|
|
15697
|
+
9: [
|
|
15698
|
+
{title: '范围', id: '8'},
|
|
15699
|
+
{title: '为空', id: '9'},
|
|
15700
|
+
{title: '不为空', id: '10'},
|
|
15701
|
+
],
|
|
15702
|
+
11: [
|
|
15703
|
+
{title: '等于', id: '1'},
|
|
15704
|
+
{title: '不等于', id: '2'},
|
|
15705
|
+
{title: '包含', id: '3'},
|
|
15706
|
+
{title: '不包含', id: '4'},
|
|
15707
|
+
{title: '包含任一项', id: '5'},
|
|
15708
|
+
{title: '不包含任一项', id: '6'},
|
|
15709
|
+
{title: '包含所有项', id: '7'},
|
|
15710
|
+
{title: '范围', id: '8'},
|
|
15711
|
+
{title: '为空', id: '9'},
|
|
15712
|
+
{title: '不为空', id: '10'},
|
|
15713
|
+
{title: '属于', id: '11'},
|
|
15714
|
+
{title: '有交集', id: '12'},
|
|
15715
|
+
{title: '无交集', id: '13'},],
|
|
15716
|
+
12: [
|
|
15717
|
+
{title: '等于', id: '1'},
|
|
15718
|
+
{title: '不等于', id: '2'},
|
|
15719
|
+
{title: '包含', id: '3'},
|
|
15720
|
+
{title: '不包含', id: '4'},
|
|
15721
|
+
{title: '包含任一项', id: '5'},
|
|
15722
|
+
{title: '不包含任一项', id: '6'},
|
|
15723
|
+
{title: '包含所有项', id: '7'},
|
|
15724
|
+
{title: '范围', id: '8'},
|
|
15725
|
+
{title: '为空', id: '9'},
|
|
15726
|
+
{title: '不为空', id: '10'},
|
|
15727
|
+
{title: '属于', id: '11'},
|
|
15728
|
+
{title: '有交集', id: '12'},
|
|
15729
|
+
{title: '无交集', id: '13'},],
|
|
15730
|
+
13: [
|
|
15731
|
+
{title: '等于', id: '1'},
|
|
15732
|
+
{title: '不等于', id: '2'},
|
|
15733
|
+
{title: '包含', id: '3'},
|
|
15734
|
+
{title: '不包含', id: '4'},
|
|
15735
|
+
{title: '包含任一项', id: '5'},
|
|
15736
|
+
{title: '不包含任一项', id: '6'},
|
|
15737
|
+
{title: '包含所有项', id: '7'},
|
|
15738
|
+
{title: '范围', id: '8'},
|
|
15739
|
+
{title: '为空', id: '9'},
|
|
15740
|
+
{title: '不为空', id: '10'},
|
|
15741
|
+
{title: '属于', id: '11'},
|
|
15742
|
+
{title: '有交集', id: '12'},
|
|
15677
15743
|
{title: '无交集', id: '13'},],*/
|
|
15678
15744
|
15: [{
|
|
15679
15745
|
title: '为空',
|
|
@@ -15685,7 +15751,7 @@ var searchList = {
|
|
|
15685
15751
|
};
|
|
15686
15752
|
|
|
15687
15753
|
//每个组件类型对应的筛选类型列表
|
|
15688
|
-
var submitCheckTypeList =
|
|
15754
|
+
var submitCheckTypeList = {
|
|
15689
15755
|
1: '等于',
|
|
15690
15756
|
2: '不等于',
|
|
15691
15757
|
3: '包含',
|
|
@@ -15720,7 +15786,7 @@ var submitCheckTypeList = (/* unused pure expression or super */ null && ({
|
|
|
15720
15786
|
101: '变更为',
|
|
15721
15787
|
102: '变更为空',
|
|
15722
15788
|
103: '变更为有值'
|
|
15723
|
-
}
|
|
15789
|
+
};
|
|
15724
15790
|
var valueTypeList = {
|
|
15725
15791
|
//{id: '0', title: '自定义填写'},{id: '1', title: '其他组件'},{id: '2', title: '当前组件选项'}, {id: '3', title: '空值'},{id: '4', title: '其他步骤'},{ id: '5', title: '工作表属性' }
|
|
15726
15792
|
'-1': [{
|
|
@@ -15824,7 +15890,7 @@ var subTypeList = {
|
|
|
15824
15890
|
//部分支持 {id: '6', title: '过去x时'}, {id: '7', title: '未来x时'}, {id: '8', title: '过去x月'}, {id: '9', title: '未来x月'},
|
|
15825
15891
|
]
|
|
15826
15892
|
};
|
|
15827
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/cascadeCondition.vue?vue&type=template&id=0b10733b
|
|
15893
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/cascadeCondition.vue?vue&type=template&id=0b10733b
|
|
15828
15894
|
var cascadeConditionvue_type_template_id_0b10733b_render = function render() {
|
|
15829
15895
|
var _vm = this,
|
|
15830
15896
|
_c = _vm._self._c;
|
|
@@ -15916,7 +15982,7 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
15916
15982
|
};
|
|
15917
15983
|
}
|
|
15918
15984
|
|
|
15919
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/BnSwitch.vue?vue&type=template&id=809f2340
|
|
15985
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/BnSwitch.vue?vue&type=template&id=809f2340
|
|
15920
15986
|
var BnSwitchvue_type_template_id_809f2340_render = function render() {
|
|
15921
15987
|
var _vm = this,
|
|
15922
15988
|
_c = _vm._self._c;
|
|
@@ -16163,10 +16229,10 @@ var BnSwitch_component = normalizeComponent(
|
|
|
16163
16229
|
}
|
|
16164
16230
|
this.$emit('update:sourceTitle', this.valueTitle);
|
|
16165
16231
|
},
|
|
16166
|
-
/**
|
|
16167
|
-
* @param data 列表
|
|
16168
|
-
* @param value 编辑回显时已保存的值 []
|
|
16169
|
-
* @returns {*|Array|Array|*}
|
|
16232
|
+
/**
|
|
16233
|
+
* @param data 列表
|
|
16234
|
+
* @param value 编辑回显时已保存的值 []
|
|
16235
|
+
* @returns {*|Array|Array|*}
|
|
16170
16236
|
* */
|
|
16171
16237
|
dataFormat: function dataFormat(data, value) {
|
|
16172
16238
|
return data.map(function (item) {
|
|
@@ -16176,12 +16242,12 @@ var BnSwitch_component = normalizeComponent(
|
|
|
16176
16242
|
});
|
|
16177
16243
|
});
|
|
16178
16244
|
},
|
|
16179
|
-
/**
|
|
16180
|
-
*
|
|
16181
|
-
* @param data 列表
|
|
16182
|
-
* @param key 键
|
|
16183
|
-
* @param value 值
|
|
16184
|
-
* @returns {*|Array|String|Array|*}
|
|
16245
|
+
/**
|
|
16246
|
+
*
|
|
16247
|
+
* @param data 列表
|
|
16248
|
+
* @param key 键
|
|
16249
|
+
* @param value 值
|
|
16250
|
+
* @returns {*|Array|String|Array|*}
|
|
16185
16251
|
*/
|
|
16186
16252
|
getChild: function getChild(data, key, value) {
|
|
16187
16253
|
var _iterator = _createForOfIteratorHelper(data),
|
|
@@ -16264,7 +16330,7 @@ var cascadeCondition_component = normalizeComponent(
|
|
|
16264
16330
|
)
|
|
16265
16331
|
|
|
16266
16332
|
/* harmony default export */ const cascadeCondition = (cascadeCondition_component.exports);
|
|
16267
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/address.vue?vue&type=template&id=1199c288&scoped=true
|
|
16333
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/address.vue?vue&type=template&id=1199c288&scoped=true
|
|
16268
16334
|
var addressvue_type_template_id_1199c288_scoped_true_render = function render() {
|
|
16269
16335
|
var _vm = this,
|
|
16270
16336
|
_c = _vm._self._c;
|
|
@@ -16324,7 +16390,7 @@ var addressvue_type_template_id_1199c288_scoped_true_render = function render()
|
|
|
16324
16390
|
};
|
|
16325
16391
|
var addressvue_type_template_id_1199c288_scoped_true_staticRenderFns = [];
|
|
16326
16392
|
|
|
16327
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/addressSet.vue?vue&type=template&id=50cd72d0&scoped=true
|
|
16393
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/addressSet.vue?vue&type=template&id=50cd72d0&scoped=true
|
|
16328
16394
|
var addressSetvue_type_template_id_50cd72d0_scoped_true_render = function render() {
|
|
16329
16395
|
var _vm = this,
|
|
16330
16396
|
_c = _vm._self._c;
|
|
@@ -16627,7 +16693,7 @@ var address_component = normalizeComponent(
|
|
|
16627
16693
|
)
|
|
16628
16694
|
|
|
16629
16695
|
/* harmony default export */ const address = (address_component.exports);
|
|
16630
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/compositeSearch.vue?vue&type=template&id=09cb19ef&scoped=true
|
|
16696
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/compositeSearch.vue?vue&type=template&id=09cb19ef&scoped=true
|
|
16631
16697
|
|
|
16632
16698
|
var compositeSearchvue_type_template_id_09cb19ef_scoped_true_render = function render() {
|
|
16633
16699
|
var _vm = this,
|
|
@@ -16753,7 +16819,7 @@ var compositeSearch_component = normalizeComponent(
|
|
|
16753
16819
|
)
|
|
16754
16820
|
|
|
16755
16821
|
/* harmony default export */ const compositeSearch = (compositeSearch_component.exports);
|
|
16756
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/numberReg.vue?vue&type=template&id=04541236&scoped=true
|
|
16822
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnRuleCondition/numberReg.vue?vue&type=template&id=04541236&scoped=true
|
|
16757
16823
|
var numberRegvue_type_template_id_04541236_scoped_true_render = function render() {
|
|
16758
16824
|
var _vm = this,
|
|
16759
16825
|
_c = _vm._self._c;
|
|
@@ -17131,8 +17197,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17131
17197
|
this.$emit("input", val);
|
|
17132
17198
|
}
|
|
17133
17199
|
},
|
|
17134
|
-
/**
|
|
17135
|
-
* 当进入规则组件,已经选好组件id时,需要将组件信息回显
|
|
17200
|
+
/**
|
|
17201
|
+
* 当进入规则组件,已经选好组件id时,需要将组件信息回显
|
|
17136
17202
|
* */
|
|
17137
17203
|
columnInfo: {
|
|
17138
17204
|
get: function get() {
|
|
@@ -17180,8 +17246,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17180
17246
|
}
|
|
17181
17247
|
},
|
|
17182
17248
|
methods: {
|
|
17183
|
-
/**
|
|
17184
|
-
* 切换第一个选择器是选择column组件还是custom自定义输入或者code功能片段
|
|
17249
|
+
/**
|
|
17250
|
+
* 切换第一个选择器是选择column组件还是custom自定义输入或者code功能片段
|
|
17185
17251
|
* */
|
|
17186
17252
|
changeCustomType: function changeCustomType(type) {
|
|
17187
17253
|
this.arrowCustomType = type ? type : 'column';
|
|
@@ -17223,9 +17289,9 @@ var numberReg_component = normalizeComponent(
|
|
|
17223
17289
|
value: value
|
|
17224
17290
|
});
|
|
17225
17291
|
},
|
|
17226
|
-
/**
|
|
17227
|
-
* 选择组件发生变化,当组件发生了变化,后续的行为都要进行初始化
|
|
17228
|
-
* @param {Any} e select发生变化返回的值
|
|
17292
|
+
/**
|
|
17293
|
+
* 选择组件发生变化,当组件发生了变化,后续的行为都要进行初始化
|
|
17294
|
+
* @param {Any} e select发生变化返回的值
|
|
17229
17295
|
* */
|
|
17230
17296
|
columnChange: function columnChange(e) {
|
|
17231
17297
|
var column = this.columnList.filter(function (i) {
|
|
@@ -17276,8 +17342,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17276
17342
|
value: value
|
|
17277
17343
|
});
|
|
17278
17344
|
},
|
|
17279
|
-
/**
|
|
17280
|
-
* 计算条件发生change
|
|
17345
|
+
/**
|
|
17346
|
+
* 计算条件发生change
|
|
17281
17347
|
* */
|
|
17282
17348
|
searchChange: function searchChange() {
|
|
17283
17349
|
// 根据组件类型、计算条件、值类型来确定规则条件的value的类型
|
|
@@ -17288,8 +17354,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17288
17354
|
value: this.ruleVal
|
|
17289
17355
|
});
|
|
17290
17356
|
},
|
|
17291
|
-
/**
|
|
17292
|
-
* 规则值类型发生变化
|
|
17357
|
+
/**
|
|
17358
|
+
* 规则值类型发生变化
|
|
17293
17359
|
* */
|
|
17294
17360
|
valueTypeChange: function valueTypeChange() {
|
|
17295
17361
|
// 根据组件类型、计算条件、值类型来确定规则条件的value的类型
|
|
@@ -17300,8 +17366,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17300
17366
|
value: this.ruleVal
|
|
17301
17367
|
});
|
|
17302
17368
|
},
|
|
17303
|
-
/**
|
|
17304
|
-
* 规则值子类型发生变化
|
|
17369
|
+
/**
|
|
17370
|
+
* 规则值子类型发生变化
|
|
17305
17371
|
* */
|
|
17306
17372
|
subTypeChange: function subTypeChange() {
|
|
17307
17373
|
// 根据组件类型、计算条件、值类型来确定规则条件的value的类型
|
|
@@ -17312,8 +17378,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17312
17378
|
value: this.ruleVal
|
|
17313
17379
|
});
|
|
17314
17380
|
},
|
|
17315
|
-
/**
|
|
17316
|
-
* 规则的value发生变化
|
|
17381
|
+
/**
|
|
17382
|
+
* 规则的value发生变化
|
|
17317
17383
|
* */
|
|
17318
17384
|
valueChange: function valueChange(target) {
|
|
17319
17385
|
if (target == 'date' && this.ruleVal[this.optionProps.value] == null) {
|
|
@@ -17328,9 +17394,9 @@ var numberReg_component = normalizeComponent(
|
|
|
17328
17394
|
value: this.ruleVal
|
|
17329
17395
|
});
|
|
17330
17396
|
},
|
|
17331
|
-
/**
|
|
17332
|
-
* 获取该类型组件支持那些计算条件
|
|
17333
|
-
* @param {Number} behaviorType 组件行为类型
|
|
17397
|
+
/**
|
|
17398
|
+
* 获取该类型组件支持那些计算条件
|
|
17399
|
+
* @param {Number} behaviorType 组件行为类型
|
|
17334
17400
|
* */
|
|
17335
17401
|
getSearchOptions: function getSearchOptions(behaviorType) {
|
|
17336
17402
|
var optionList = [];
|
|
@@ -17349,9 +17415,9 @@ var numberReg_component = normalizeComponent(
|
|
|
17349
17415
|
}
|
|
17350
17416
|
return optionList;
|
|
17351
17417
|
},
|
|
17352
|
-
/**
|
|
17353
|
-
* 获取该类型组件支持那些值类型
|
|
17354
|
-
* @param {Number} behaviorType 组件行为类型
|
|
17418
|
+
/**
|
|
17419
|
+
* 获取该类型组件支持那些值类型
|
|
17420
|
+
* @param {Number} behaviorType 组件行为类型
|
|
17355
17421
|
* */
|
|
17356
17422
|
getValueOptions: function getValueOptions(column) {
|
|
17357
17423
|
var optionList = [];
|
|
@@ -17369,9 +17435,9 @@ var numberReg_component = normalizeComponent(
|
|
|
17369
17435
|
}
|
|
17370
17436
|
return optionList;
|
|
17371
17437
|
},
|
|
17372
|
-
/**
|
|
17373
|
-
* 获取该类型组件支持那些子类型列表:目前仅只是时间日期
|
|
17374
|
-
* @param {Number} behaviorType 组件行为类型
|
|
17438
|
+
/**
|
|
17439
|
+
* 获取该类型组件支持那些子类型列表:目前仅只是时间日期
|
|
17440
|
+
* @param {Number} behaviorType 组件行为类型
|
|
17375
17441
|
* */
|
|
17376
17442
|
getSubTypeOptions: function getSubTypeOptions(behaviorType) {
|
|
17377
17443
|
var optionList = [];
|
|
@@ -17389,9 +17455,9 @@ var numberReg_component = normalizeComponent(
|
|
|
17389
17455
|
}
|
|
17390
17456
|
return optionList;
|
|
17391
17457
|
},
|
|
17392
|
-
/**
|
|
17393
|
-
* 获取该类型组件支持那些值类型
|
|
17394
|
-
* @param {Number} behaviorType 组件行为类型
|
|
17458
|
+
/**
|
|
17459
|
+
* 获取该类型组件支持那些值类型
|
|
17460
|
+
* @param {Number} behaviorType 组件行为类型
|
|
17395
17461
|
* */
|
|
17396
17462
|
getOtherColumns: function getOtherColumns(behaviorType) {
|
|
17397
17463
|
var _this = this;
|
|
@@ -17421,9 +17487,9 @@ var numberReg_component = normalizeComponent(
|
|
|
17421
17487
|
}
|
|
17422
17488
|
return optionList;
|
|
17423
17489
|
},
|
|
17424
|
-
/**
|
|
17425
|
-
* 动态禁用
|
|
17426
|
-
* @param type:禁用的操作类型,ratio:累计占比(额外输入框)value:设置值的地方禁用(包含了输入、选择、下拉、联动)、valueType:值类型选择、subType:子类型
|
|
17490
|
+
/**
|
|
17491
|
+
* 动态禁用
|
|
17492
|
+
* @param type:禁用的操作类型,ratio:累计占比(额外输入框)value:设置值的地方禁用(包含了输入、选择、下拉、联动)、valueType:值类型选择、subType:子类型
|
|
17427
17493
|
* */
|
|
17428
17494
|
isDisabled: function isDisabled(type) {
|
|
17429
17495
|
if (this.$options.propsData.hasOwnProperty('disabledFun')) {
|
|
@@ -17433,11 +17499,11 @@ var numberReg_component = normalizeComponent(
|
|
|
17433
17499
|
return false;
|
|
17434
17500
|
}
|
|
17435
17501
|
},
|
|
17436
|
-
/**
|
|
17437
|
-
* 给组件value赋予默认类型
|
|
17438
|
-
* @param {Number} behaviorType 组件行为类型
|
|
17439
|
-
* @param {String} searchType 规则的计算条件类型:等于、包含、大于、包含任一项等
|
|
17440
|
-
* @param {String} valueType 规则的值类型:当前组件值、自定义填写、选择其他组件
|
|
17502
|
+
/**
|
|
17503
|
+
* 给组件value赋予默认类型
|
|
17504
|
+
* @param {Number} behaviorType 组件行为类型
|
|
17505
|
+
* @param {String} searchType 规则的计算条件类型:等于、包含、大于、包含任一项等
|
|
17506
|
+
* @param {String} valueType 规则的值类型:当前组件值、自定义填写、选择其他组件
|
|
17441
17507
|
* */
|
|
17442
17508
|
setValType: function setValType(behaviorType, searchType, valueType) {
|
|
17443
17509
|
var data = '';
|
|
@@ -17517,14 +17583,14 @@ var numberReg_component = normalizeComponent(
|
|
|
17517
17583
|
}
|
|
17518
17584
|
return data;
|
|
17519
17585
|
},
|
|
17520
|
-
/**
|
|
17521
|
-
* 校验value的数据类型,因为有时候数据类型不对组件会报错
|
|
17586
|
+
/**
|
|
17587
|
+
* 校验value的数据类型,因为有时候数据类型不对组件会报错
|
|
17522
17588
|
* */
|
|
17523
17589
|
checkValType: function checkValType(type) {
|
|
17524
17590
|
return _typeof(this.ruleVal[this.optionProps.value]) == type;
|
|
17525
17591
|
},
|
|
17526
|
-
/**
|
|
17527
|
-
* 删除规则
|
|
17592
|
+
/**
|
|
17593
|
+
* 删除规则
|
|
17528
17594
|
* */
|
|
17529
17595
|
del: function del() {
|
|
17530
17596
|
this.$emit('del', {
|
|
@@ -17532,8 +17598,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17532
17598
|
value: this.ruleVal
|
|
17533
17599
|
});
|
|
17534
17600
|
},
|
|
17535
|
-
/**
|
|
17536
|
-
* 清空规则内容
|
|
17601
|
+
/**
|
|
17602
|
+
* 清空规则内容
|
|
17537
17603
|
* */
|
|
17538
17604
|
empty: function empty() {
|
|
17539
17605
|
// 清空计算类型的值
|
|
@@ -17541,15 +17607,15 @@ var numberReg_component = normalizeComponent(
|
|
|
17541
17607
|
// 清空value
|
|
17542
17608
|
this.ruleVal[this.optionProps.value] = this.setValType(this.ruleVal.behaviorType);
|
|
17543
17609
|
},
|
|
17544
|
-
/**
|
|
17545
|
-
* 设置触发值
|
|
17610
|
+
/**
|
|
17611
|
+
* 设置触发值
|
|
17546
17612
|
* */
|
|
17547
17613
|
setDefaultSearch: function setDefaultSearch() {
|
|
17548
17614
|
// 清空计算类型的值
|
|
17549
17615
|
this.ruleVal[this.optionProps.searchType] = this.getSearchOptions(this.ruleVal.behaviorType)[0].id;
|
|
17550
17616
|
},
|
|
17551
|
-
/**
|
|
17552
|
-
* 日期,日期区间,判断时间类型
|
|
17617
|
+
/**
|
|
17618
|
+
* 日期,日期区间,判断时间类型
|
|
17553
17619
|
* */
|
|
17554
17620
|
getDateType: function getDateType(type) {
|
|
17555
17621
|
var dateType = type == "date" ? "datetime" : "datetimerange";
|
|
@@ -17572,8 +17638,8 @@ var numberReg_component = normalizeComponent(
|
|
|
17572
17638
|
}
|
|
17573
17639
|
return dateType;
|
|
17574
17640
|
},
|
|
17575
|
-
/**
|
|
17576
|
-
* 日期,日期区间,判断时间格式化
|
|
17641
|
+
/**
|
|
17642
|
+
* 日期,日期区间,判断时间格式化
|
|
17577
17643
|
* */
|
|
17578
17644
|
getDateFormat: function getDateFormat() {
|
|
17579
17645
|
var format = "yyyy-MM-dd HH:mm:ss";
|
|
@@ -17630,7 +17696,7 @@ var bnRuleCondition_component = normalizeComponent(
|
|
|
17630
17696
|
)
|
|
17631
17697
|
|
|
17632
17698
|
/* harmony default export */ const bnRuleCondition = (bnRuleCondition_component.exports);
|
|
17633
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnSelect/select.vue?vue&type=template&id=12683c88&scoped=true
|
|
17699
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnSelect/select.vue?vue&type=template&id=12683c88&scoped=true
|
|
17634
17700
|
|
|
17635
17701
|
|
|
17636
17702
|
|
|
@@ -18311,10 +18377,10 @@ function util_toPinYin(chart) {
|
|
|
18311
18377
|
return util_getFullChars(chart.replace(/[&\|\\\*^%$#@\-]/g, "")).toLowerCase();
|
|
18312
18378
|
}
|
|
18313
18379
|
|
|
18314
|
-
/**
|
|
18315
|
-
* 匹配大小写字母拼音 返回Boolean值
|
|
18316
|
-
* @param {*} chart 需要匹配的字符
|
|
18317
|
-
* @param {*} data 需要进行匹配的字符
|
|
18380
|
+
/**
|
|
18381
|
+
* 匹配大小写字母拼音 返回Boolean值
|
|
18382
|
+
* @param {*} chart 需要匹配的字符
|
|
18383
|
+
* @param {*} data 需要进行匹配的字符
|
|
18318
18384
|
*/
|
|
18319
18385
|
function util_searchToBoolean(chart, data) {
|
|
18320
18386
|
return util_toPinYin(data || '').indexOf(util_toPinYin(chart || '')) !== -1;
|
|
@@ -18628,18 +18694,18 @@ function util_searchToBoolean(chart, data) {
|
|
|
18628
18694
|
this.initSelectDataDebounced.cancel();
|
|
18629
18695
|
},
|
|
18630
18696
|
methods: {
|
|
18631
|
-
/**
|
|
18632
|
-
* 下拉选项显示 返回Boolean true:显示
|
|
18633
|
-
* @param {Object} item 某一选择的值、option的值
|
|
18697
|
+
/**
|
|
18698
|
+
* 下拉选项显示 返回Boolean true:显示
|
|
18699
|
+
* @param {Object} item 某一选择的值、option的值
|
|
18634
18700
|
*/
|
|
18635
18701
|
optionHideFunction: function optionHideFunction(item) {
|
|
18636
18702
|
if (this.optionHideFun) return !this.optionHideFun(item) && !item.isHide;else return !item.isHide;
|
|
18637
18703
|
},
|
|
18638
|
-
/**
|
|
18639
|
-
* Option中checkbox当绑定值变化时触发的事件 更新后的值
|
|
18640
|
-
* @change="onCheckChange(checkBoxValue(labelInValue?item:item[optionProps['value']]), labelInValue?item:item[optionProps['value']])"
|
|
18641
|
-
* @param {Boolean} val checkbox更新后的值
|
|
18642
|
-
* @param {Object} item option的值
|
|
18704
|
+
/**
|
|
18705
|
+
* Option中checkbox当绑定值变化时触发的事件 更新后的值
|
|
18706
|
+
* @change="onCheckChange(checkBoxValue(labelInValue?item:item[optionProps['value']]), labelInValue?item:item[optionProps['value']])"
|
|
18707
|
+
* @param {Boolean} val checkbox更新后的值
|
|
18708
|
+
* @param {Object} item option的值
|
|
18643
18709
|
*/
|
|
18644
18710
|
onCheckChange: function onCheckChange(val, item) {
|
|
18645
18711
|
var _this = this;
|
|
@@ -18668,9 +18734,9 @@ function util_searchToBoolean(chart, data) {
|
|
|
18668
18734
|
_this.changeValue();
|
|
18669
18735
|
});
|
|
18670
18736
|
},
|
|
18671
|
-
/**
|
|
18672
|
-
* 返回option中checkbox的value状态
|
|
18673
|
-
* @param {Object} item option的选项
|
|
18737
|
+
/**
|
|
18738
|
+
* 返回option中checkbox的value状态
|
|
18739
|
+
* @param {Object} item option的选项
|
|
18674
18740
|
*/
|
|
18675
18741
|
checkBoxValue: function checkBoxValue(item) {
|
|
18676
18742
|
var _this2 = this;
|
|
@@ -18687,22 +18753,22 @@ function util_searchToBoolean(chart, data) {
|
|
|
18687
18753
|
return false;
|
|
18688
18754
|
}
|
|
18689
18755
|
},
|
|
18690
|
-
/**
|
|
18691
|
-
* 下拉选项禁用 返回Boolean true:禁用
|
|
18692
|
-
* @param {Object} item 某一选择的值、option的值
|
|
18756
|
+
/**
|
|
18757
|
+
* 下拉选项禁用 返回Boolean true:禁用
|
|
18758
|
+
* @param {Object} item 某一选择的值、option的值
|
|
18693
18759
|
*/
|
|
18694
18760
|
optionDisabledFunction: function optionDisabledFunction(item) {
|
|
18695
18761
|
if (this.optionDisabledFun) return this.optionDisabledFun(item) || item.disabled;else return item.disabled;
|
|
18696
18762
|
},
|
|
18697
|
-
/**
|
|
18698
|
-
* 多选模式下移除tag时触发
|
|
18699
|
-
* @param {Object} tag 移除的tag值
|
|
18763
|
+
/**
|
|
18764
|
+
* 多选模式下移除tag时触发
|
|
18765
|
+
* @param {Object} tag 移除的tag值
|
|
18700
18766
|
*/
|
|
18701
18767
|
removeTag: function removeTag(tag) {
|
|
18702
18768
|
this.$emit('removeTag', tag);
|
|
18703
18769
|
},
|
|
18704
|
-
/**
|
|
18705
|
-
* select的change事件
|
|
18770
|
+
/**
|
|
18771
|
+
* select的change事件
|
|
18706
18772
|
*/
|
|
18707
18773
|
changeValue: function changeValue() {
|
|
18708
18774
|
var _this3 = this;
|
|
@@ -18732,9 +18798,9 @@ function util_searchToBoolean(chart, data) {
|
|
|
18732
18798
|
}
|
|
18733
18799
|
});
|
|
18734
18800
|
},
|
|
18735
|
-
/**
|
|
18736
|
-
* 下拉框出现/隐藏时触发
|
|
18737
|
-
* @param {Boolean} bol 出现则为 true,隐藏则为 false
|
|
18801
|
+
/**
|
|
18802
|
+
* 下拉框出现/隐藏时触发
|
|
18803
|
+
* @param {Boolean} bol 出现则为 true,隐藏则为 false
|
|
18738
18804
|
*/
|
|
18739
18805
|
visibleChange: function visibleChange(bol) {
|
|
18740
18806
|
var _this4 = this;
|
|
@@ -18801,15 +18867,15 @@ function util_searchToBoolean(chart, data) {
|
|
|
18801
18867
|
});
|
|
18802
18868
|
}
|
|
18803
18869
|
},
|
|
18804
|
-
/**
|
|
18805
|
-
* 可清空的单选模式下用户点击清空按钮时触发
|
|
18870
|
+
/**
|
|
18871
|
+
* 可清空的单选模式下用户点击清空按钮时触发
|
|
18806
18872
|
*/
|
|
18807
18873
|
clear: function clear() {
|
|
18808
18874
|
this.$emit('clear');
|
|
18809
18875
|
},
|
|
18810
|
-
/**
|
|
18811
|
-
* 返回option的label data: option数据
|
|
18812
|
-
* @param {Object} data option数据
|
|
18876
|
+
/**
|
|
18877
|
+
* 返回option的label data: option数据
|
|
18878
|
+
* @param {Object} data option数据
|
|
18813
18879
|
*/
|
|
18814
18880
|
showLabel: function showLabel(data) {
|
|
18815
18881
|
if (this.optionProps['label'] instanceof Function) {
|
|
@@ -18818,9 +18884,9 @@ function util_searchToBoolean(chart, data) {
|
|
|
18818
18884
|
return data[this.optionProps['label']];
|
|
18819
18885
|
}
|
|
18820
18886
|
},
|
|
18821
|
-
/**
|
|
18822
|
-
* 快速搜索选项
|
|
18823
|
-
* @param {String} val 搜索的值
|
|
18887
|
+
/**
|
|
18888
|
+
* 快速搜索选项
|
|
18889
|
+
* @param {String} val 搜索的值
|
|
18824
18890
|
*/
|
|
18825
18891
|
filterMethod: function filterMethod(val) {
|
|
18826
18892
|
var _this5 = this;
|
|
@@ -18842,8 +18908,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
18842
18908
|
this.loadingOptionList();
|
|
18843
18909
|
}
|
|
18844
18910
|
},
|
|
18845
|
-
/**
|
|
18846
|
-
* 判断是否是全选状态
|
|
18911
|
+
/**
|
|
18912
|
+
* 判断是否是全选状态
|
|
18847
18913
|
*/
|
|
18848
18914
|
isSelectAll: function isSelectAll() {
|
|
18849
18915
|
var _this6 = this;
|
|
@@ -18867,8 +18933,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
18867
18933
|
}
|
|
18868
18934
|
}
|
|
18869
18935
|
},
|
|
18870
|
-
/**
|
|
18871
|
-
* 全选事件
|
|
18936
|
+
/**
|
|
18937
|
+
* 全选事件
|
|
18872
18938
|
*/
|
|
18873
18939
|
onSelectAll: function onSelectAll() {
|
|
18874
18940
|
var _this7 = this;
|
|
@@ -18906,14 +18972,14 @@ function util_searchToBoolean(chart, data) {
|
|
|
18906
18972
|
this.isIndeterminate = false;
|
|
18907
18973
|
this.changeValue();
|
|
18908
18974
|
},
|
|
18909
|
-
/**
|
|
18910
|
-
* 隐藏下拉选择框事件
|
|
18975
|
+
/**
|
|
18976
|
+
* 隐藏下拉选择框事件
|
|
18911
18977
|
*/
|
|
18912
18978
|
onConfirm: function onConfirm() {
|
|
18913
18979
|
this.$refs.selectBox.blur();
|
|
18914
18980
|
},
|
|
18915
|
-
/**
|
|
18916
|
-
* 滚动加载
|
|
18981
|
+
/**
|
|
18982
|
+
* 滚动加载
|
|
18917
18983
|
*/
|
|
18918
18984
|
loadMore: function loadMore() {
|
|
18919
18985
|
// 判断是否执行远程搜索
|
|
@@ -18939,8 +19005,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
18939
19005
|
this.isSelectAll();
|
|
18940
19006
|
}
|
|
18941
19007
|
},
|
|
18942
|
-
/**
|
|
18943
|
-
* 请求内部数据源
|
|
19008
|
+
/**
|
|
19009
|
+
* 请求内部数据源
|
|
18944
19010
|
*/
|
|
18945
19011
|
loadOption: function loadOption(type) {
|
|
18946
19012
|
var _this8 = this;
|
|
@@ -18997,8 +19063,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
18997
19063
|
_this8.showMore = false;
|
|
18998
19064
|
});
|
|
18999
19065
|
},
|
|
19000
|
-
/**
|
|
19001
|
-
* 初始化远程搜索数据
|
|
19066
|
+
/**
|
|
19067
|
+
* 初始化远程搜索数据
|
|
19002
19068
|
*/
|
|
19003
19069
|
initRemoteMethod: function initRemoteMethod() {
|
|
19004
19070
|
this.moduleDefinition = [];
|
|
@@ -19019,8 +19085,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
19019
19085
|
this.loadMore();
|
|
19020
19086
|
}
|
|
19021
19087
|
},
|
|
19022
|
-
/**
|
|
19023
|
-
* 初始化组件的数据
|
|
19088
|
+
/**
|
|
19089
|
+
* 初始化组件的数据
|
|
19024
19090
|
*/
|
|
19025
19091
|
initSelectData: function initSelectData() {
|
|
19026
19092
|
var _this9 = this;
|
|
@@ -19126,8 +19192,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
19126
19192
|
}
|
|
19127
19193
|
},
|
|
19128
19194
|
computed: {
|
|
19129
|
-
/**
|
|
19130
|
-
* option 展示的列表
|
|
19195
|
+
/**
|
|
19196
|
+
* option 展示的列表
|
|
19131
19197
|
*/
|
|
19132
19198
|
optionShowList: function optionShowList() {
|
|
19133
19199
|
var _this0 = this;
|
|
@@ -19164,8 +19230,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
19164
19230
|
return this.total + (((_this$optionList = this.optionList) === null || _this$optionList === void 0 ? void 0 : _this$optionList.length) || 0);
|
|
19165
19231
|
}
|
|
19166
19232
|
},
|
|
19167
|
-
/**
|
|
19168
|
-
* option 所有数据的id数组
|
|
19233
|
+
/**
|
|
19234
|
+
* option 所有数据的id数组
|
|
19169
19235
|
*/
|
|
19170
19236
|
pageOptionListIds: function pageOptionListIds() {
|
|
19171
19237
|
return this.optionList.slice(0, 10);
|
|
@@ -19198,8 +19264,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
19198
19264
|
valueKeys: function valueKeys() {
|
|
19199
19265
|
return Array.from(new Set([].concat(_toConsumableArray(Object.values(this.optionProps)), _toConsumableArray(this.valueProps))));
|
|
19200
19266
|
},
|
|
19201
|
-
/**
|
|
19202
|
-
* select的value数据
|
|
19267
|
+
/**
|
|
19268
|
+
* select的value数据
|
|
19203
19269
|
*/
|
|
19204
19270
|
select: {
|
|
19205
19271
|
get: function get() {
|
|
@@ -19236,8 +19302,8 @@ function util_searchToBoolean(chart, data) {
|
|
|
19236
19302
|
}
|
|
19237
19303
|
}
|
|
19238
19304
|
},
|
|
19239
|
-
/**
|
|
19240
|
-
* select 的 popperClass
|
|
19305
|
+
/**
|
|
19306
|
+
* select 的 popperClass
|
|
19241
19307
|
*/
|
|
19242
19308
|
popperClassName: function popperClassName() {
|
|
19243
19309
|
var className = "bytenew-select-popper ".concat(this.popperClass || '');
|
|
@@ -19362,7 +19428,7 @@ var select_component = normalizeComponent(
|
|
|
19362
19428
|
)
|
|
19363
19429
|
|
|
19364
19430
|
/* harmony default export */ const BnSelect_select = (select_component.exports);
|
|
19365
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFiTaxAutoComplete/BnFiTaxAutoComplete.vue?vue&type=template&id=6a5eae5b&scoped=true
|
|
19431
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnFiTaxAutoComplete/BnFiTaxAutoComplete.vue?vue&type=template&id=6a5eae5b&scoped=true
|
|
19366
19432
|
|
|
19367
19433
|
|
|
19368
19434
|
var BnFiTaxAutoCompletevue_type_template_id_6a5eae5b_scoped_true_render = function render() {
|
|
@@ -19771,10 +19837,10 @@ function _asyncToGenerator(n) {
|
|
|
19771
19837
|
handleBlurs: function handleBlurs() {
|
|
19772
19838
|
this.visible = false;
|
|
19773
19839
|
},
|
|
19774
|
-
/**
|
|
19775
|
-
* @name 选择change
|
|
19776
|
-
* @description 当表单中发票类型含有专用发票类型时,手动查询公司抬头
|
|
19777
|
-
* @param {*} record
|
|
19840
|
+
/**
|
|
19841
|
+
* @name 选择change
|
|
19842
|
+
* @description 当表单中发票类型含有专用发票类型时,手动查询公司抬头
|
|
19843
|
+
* @param {*} record
|
|
19778
19844
|
*/
|
|
19779
19845
|
selectItem: function selectItem(record) {
|
|
19780
19846
|
if (this.isSpecialTax) {
|
|
@@ -19943,11 +20009,99 @@ var es_map = __webpack_require__(6033);
|
|
|
19943
20009
|
var es_map_get_or_insert = __webpack_require__(5367);
|
|
19944
20010
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.get-or-insert-computed.js
|
|
19945
20011
|
var es_map_get_or_insert_computed = __webpack_require__(2731);
|
|
20012
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.pad-start.js
|
|
20013
|
+
var es_string_pad_start = __webpack_require__(8156);
|
|
20014
|
+
;// ../../packages/bn-util/config.js
|
|
20015
|
+
|
|
20016
|
+
|
|
20017
|
+
|
|
20018
|
+
|
|
20019
|
+
|
|
20020
|
+
|
|
20021
|
+
|
|
20022
|
+
|
|
20023
|
+
|
|
20024
|
+
|
|
20025
|
+
|
|
20026
|
+
|
|
20027
|
+
/**
|
|
20028
|
+
* 组件库全局配置
|
|
20029
|
+
* 用于解决组件库打包后无法获取使用方项目环境变量的问题
|
|
20030
|
+
*/
|
|
20031
|
+
|
|
20032
|
+
// 全局配置对象
|
|
20033
|
+
var globalConfig = {
|
|
20034
|
+
// API基础URL
|
|
20035
|
+
apiBaseUrl: ''
|
|
20036
|
+
// 其他配置项可以在这里添加
|
|
20037
|
+
};
|
|
20038
|
+
|
|
20039
|
+
/**
|
|
20040
|
+
* 设置全局配置
|
|
20041
|
+
* @param {Object} config 配置对象
|
|
20042
|
+
* @param {String} config.apiBaseUrl API基础URL
|
|
20043
|
+
*/
|
|
20044
|
+
function setGlobalConfig(config) {
|
|
20045
|
+
if (config.apiBaseUrl !== undefined) {
|
|
20046
|
+
globalConfig.apiBaseUrl = config.apiBaseUrl;
|
|
20047
|
+
}
|
|
20048
|
+
// 支持其他配置项的设置
|
|
20049
|
+
Object.keys(config).forEach(function (key) {
|
|
20050
|
+
if (config[key] !== undefined) {
|
|
20051
|
+
globalConfig[key] = config[key];
|
|
20052
|
+
}
|
|
20053
|
+
});
|
|
20054
|
+
}
|
|
20055
|
+
|
|
20056
|
+
/**
|
|
20057
|
+
* 获取全局配置
|
|
20058
|
+
* @returns {Object} 配置对象
|
|
20059
|
+
*/
|
|
20060
|
+
function getGlobalConfig() {
|
|
20061
|
+
return globalConfig;
|
|
20062
|
+
}
|
|
20063
|
+
|
|
20064
|
+
/**
|
|
20065
|
+
* 获取API基础URL
|
|
20066
|
+
* @returns {String} API基础URL
|
|
20067
|
+
*/
|
|
20068
|
+
function getApiBaseUrl() {
|
|
20069
|
+
var _window$__BN_CONFIG__, _import$meta$env;
|
|
20070
|
+
// 优先使用设置的配置
|
|
20071
|
+
if (globalConfig.apiBaseUrl) {
|
|
20072
|
+
return globalConfig.apiBaseUrl;
|
|
20073
|
+
}
|
|
20074
|
+
|
|
20075
|
+
// 兼容性处理:尝试从window对象获取
|
|
20076
|
+
if (typeof window !== 'undefined' && (_window$__BN_CONFIG__ = window.__BN_CONFIG__) !== null && _window$__BN_CONFIG__ !== void 0 && _window$__BN_CONFIG__.apiBaseUrl) {
|
|
20077
|
+
return window.__BN_CONFIG__.apiBaseUrl;
|
|
20078
|
+
}
|
|
20079
|
+
|
|
20080
|
+
// 开发环境下尝试使用import.meta.env
|
|
20081
|
+
if ( true && (_import$meta$env = {"NODE_ENV":"production"}) !== null && _import$meta$env !== void 0 && _import$meta$env.VITE_API_BASE_URL) {
|
|
20082
|
+
return undefined;
|
|
20083
|
+
}
|
|
20084
|
+
|
|
20085
|
+
// 返回空字符串作为默认值
|
|
20086
|
+
console.warn('API基础URL未配置,请在使用组件库前调用 setGlobalConfig 设置 apiBaseUrl');
|
|
20087
|
+
return '';
|
|
20088
|
+
}
|
|
20089
|
+
/* harmony default export */ const config = ({
|
|
20090
|
+
setGlobalConfig: setGlobalConfig,
|
|
20091
|
+
getGlobalConfig: getGlobalConfig,
|
|
20092
|
+
getApiBaseUrl: getApiBaseUrl
|
|
20093
|
+
});
|
|
19946
20094
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
19947
20095
|
var es_array_sort = __webpack_require__(6910);
|
|
20096
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
20097
|
+
var es_string_ends_with = __webpack_require__(9449);
|
|
19948
20098
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
19949
20099
|
var es_string_trim = __webpack_require__(2762);
|
|
19950
|
-
;//
|
|
20100
|
+
;// ../../packages/bn-util/addressParse.js
|
|
20101
|
+
|
|
20102
|
+
|
|
20103
|
+
|
|
20104
|
+
|
|
19951
20105
|
|
|
19952
20106
|
|
|
19953
20107
|
|
|
@@ -20009,11 +20163,11 @@ var mArea = {}; //以区为级别的数据 里面包括 p:省 c:市
|
|
|
20009
20163
|
|
|
20010
20164
|
var mStreet = {}; //以街道为级别的数据 里面包括 c:市 a:区
|
|
20011
20165
|
|
|
20012
|
-
/**
|
|
20013
|
-
* 处理原始地址数据转换成专用数据
|
|
20014
|
-
* @param list 原始数据
|
|
20015
|
-
* @param init 是否初始化 如传空 已转换过不会再次转换
|
|
20016
|
-
* @returns {boolean}
|
|
20166
|
+
/**
|
|
20167
|
+
* 处理原始地址数据转换成专用数据
|
|
20168
|
+
* @param list 原始数据
|
|
20169
|
+
* @param init 是否初始化 如传空 已转换过不会再次转换
|
|
20170
|
+
* @returns {boolean}
|
|
20017
20171
|
*/
|
|
20018
20172
|
function parseArea(list, init) {
|
|
20019
20173
|
if (!init && defaultData.length) {
|
|
@@ -20065,11 +20219,11 @@ function parseArea(list, init) {
|
|
|
20065
20219
|
});
|
|
20066
20220
|
}
|
|
20067
20221
|
|
|
20068
|
-
/**
|
|
20069
|
-
* 解析地址详情(内部方法,需先调用 parseArea 初始化地址库)
|
|
20070
|
-
* @param address 任意地址字符串
|
|
20071
|
-
* @param sourceData 组件配置,如 extraInfo.isFourAddress
|
|
20072
|
-
* @returns {{name: string, mobile: string, detail: string, zip_code: string, phone: string}}
|
|
20222
|
+
/**
|
|
20223
|
+
* 解析地址详情(内部方法,需先调用 parseArea 初始化地址库)
|
|
20224
|
+
* @param address 任意地址字符串
|
|
20225
|
+
* @param sourceData 组件配置,如 extraInfo.isFourAddress
|
|
20226
|
+
* @returns {{name: string, mobile: string, detail: string, zip_code: string, phone: string}}
|
|
20073
20227
|
*/
|
|
20074
20228
|
function parseAddressDetail(address, sourceData) {
|
|
20075
20229
|
var parse = {
|
|
@@ -20081,7 +20235,9 @@ function parseAddressDetail(address, sourceData) {
|
|
|
20081
20235
|
extensionNumber: '' // 淘宝分机号码
|
|
20082
20236
|
};
|
|
20083
20237
|
address = joinAddressLines(address);
|
|
20084
|
-
var
|
|
20238
|
+
var presetName = address.name;
|
|
20239
|
+
address = stripAddressLabels(address.text);
|
|
20240
|
+
var search = ['详细地址', '收货地址', '联系地址', '收件地址', '邮政编码', '手机号码', '联系电话', '联系方式', '收货人', '收件人', '联系人', '姓名', '名字', '手机号', '邮编', '收货', '地址', '详细', '电话', '固话', ':', ':', ';', ';', ',', ',', '。'];
|
|
20085
20241
|
search.forEach(function (str) {
|
|
20086
20242
|
address = address.replace(new RegExp(str, 'g'), ' ');
|
|
20087
20243
|
});
|
|
@@ -20173,6 +20329,12 @@ function parseAddressDetail(address, sourceData) {
|
|
|
20173
20329
|
parse.street = detail.street;
|
|
20174
20330
|
parse.addr = detail.addr;
|
|
20175
20331
|
parse.result = detail.result;
|
|
20332
|
+
if (presetName) {
|
|
20333
|
+
parse.name = presetName;
|
|
20334
|
+
if (parse.addr) {
|
|
20335
|
+
parse.addr = parse.addr.replace(presetName, '').trim();
|
|
20336
|
+
}
|
|
20337
|
+
}
|
|
20176
20338
|
if (parse.province === "澳门" || parse.province === "香港") {
|
|
20177
20339
|
parse.province += "特别行政区";
|
|
20178
20340
|
} else if (parse.province === "新疆") {
|
|
@@ -20196,13 +20358,13 @@ function parseAddressDetail(address, sourceData) {
|
|
|
20196
20358
|
return parse;
|
|
20197
20359
|
}
|
|
20198
20360
|
|
|
20199
|
-
/**
|
|
20200
|
-
* 正向解析模式
|
|
20201
|
-
* 从前到后按 province city addr 逐级筛选
|
|
20202
|
-
* 有city的值即可说明解析成功
|
|
20203
|
-
* 此模式对地址顺序有要求
|
|
20204
|
-
* @param address
|
|
20205
|
-
* @returns {{province: string, city: string, area: string, addr: string}}
|
|
20361
|
+
/**
|
|
20362
|
+
* 正向解析模式
|
|
20363
|
+
* 从前到后按 province city addr 逐级筛选
|
|
20364
|
+
* 有city的值即可说明解析成功
|
|
20365
|
+
* 此模式对地址顺序有要求
|
|
20366
|
+
* @param address
|
|
20367
|
+
* @returns {{province: string, city: string, area: string, addr: string}}
|
|
20206
20368
|
*/
|
|
20207
20369
|
function detail_parse_forward(address, sourceData) {
|
|
20208
20370
|
var parse = {
|
|
@@ -20296,12 +20458,12 @@ function detail_parse_forward(address, sourceData) {
|
|
|
20296
20458
|
return parse;
|
|
20297
20459
|
}
|
|
20298
20460
|
|
|
20299
|
-
/**
|
|
20300
|
-
* 逆向解析 从后【县,区,旗】往前解析
|
|
20301
|
-
* 有地区就能大概返回地址了
|
|
20302
|
-
* @param address
|
|
20303
|
-
* @param ignoreArea 是否忽视区 因为地址中含有区容易导致匹配错误 例:山东省蓬莱市黄海花园东区西门宝威学堂 曲荣声收15753572456
|
|
20304
|
-
* @returns {{province: string, city: string, area: string, name: string, _area: string, addr: string}}
|
|
20461
|
+
/**
|
|
20462
|
+
* 逆向解析 从后【县,区,旗】往前解析
|
|
20463
|
+
* 有地区就能大概返回地址了
|
|
20464
|
+
* @param address
|
|
20465
|
+
* @param ignoreArea 是否忽视区 因为地址中含有区容易导致匹配错误 例:山东省蓬莱市黄海花园东区西门宝威学堂 曲荣声收15753572456
|
|
20466
|
+
* @returns {{province: string, city: string, area: string, name: string, _area: string, addr: string}}
|
|
20305
20467
|
*/
|
|
20306
20468
|
function detail_parse(address) {
|
|
20307
20469
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
@@ -20473,34 +20635,97 @@ function detail_parse(address) {
|
|
|
20473
20635
|
}
|
|
20474
20636
|
var MUNICIPALITIES = ['上海', '北京', '天津', '重庆'];
|
|
20475
20637
|
|
|
20476
|
-
/**
|
|
20477
|
-
* 统一换行符格式
|
|
20638
|
+
/**
|
|
20639
|
+
* 统一换行符格式
|
|
20478
20640
|
*/
|
|
20479
20641
|
function normalizeLineBreaks(address) {
|
|
20480
20642
|
return String(address || '').replace(/\r\n/g, '\n').replace(/\r/g, '\n').replace(/\t/g, ' ');
|
|
20481
20643
|
}
|
|
20482
20644
|
|
|
20483
|
-
/**
|
|
20484
|
-
*
|
|
20645
|
+
/**
|
|
20646
|
+
* 常见地址字段标签(姓名:、详细地址: 等),较长标签优先匹配
|
|
20647
|
+
*/
|
|
20648
|
+
var ADDRESS_LABEL_PATTERN = '(?:详细地址|收货地址|联系地址|收件地址|邮政编码|手机号码|联系电话|联系方式|收货人|收件人|联系人|姓名|名字|手机号|邮编|收货|地址|详细|固话|电话)[::]';
|
|
20649
|
+
var ADDRESS_LABEL_REG = new RegExp(ADDRESS_LABEL_PATTERN, 'g');
|
|
20650
|
+
var ADDRESS_LABEL_TEST_REG = new RegExp(ADDRESS_LABEL_PATTERN);
|
|
20651
|
+
|
|
20652
|
+
/**
|
|
20653
|
+
* 去除「姓名:」「详细地址:」等字段标签前缀
|
|
20654
|
+
*/
|
|
20655
|
+
function stripAddressLabels(text) {
|
|
20656
|
+
return String(text || '').replace(ADDRESS_LABEL_REG, ' ');
|
|
20657
|
+
}
|
|
20658
|
+
var NAME_LABELS = ['姓名', '名字', '联系人', '收货人', '收件人'];
|
|
20659
|
+
var PHONE_LABELS = ['电话', '手机号', '手机号码', '联系电话', '联系方式', '固话'];
|
|
20660
|
+
|
|
20661
|
+
/**
|
|
20662
|
+
* 解析「标签:值」格式的单行
|
|
20663
|
+
*/
|
|
20664
|
+
function matchLabeledLine(line) {
|
|
20665
|
+
var match = line.match(/^([\u4e00-\u9fa5A-Za-z0-9]+)[::]\s*(.+)$/);
|
|
20666
|
+
if (!match) {
|
|
20667
|
+
return null;
|
|
20668
|
+
}
|
|
20669
|
+
return {
|
|
20670
|
+
label: match[1],
|
|
20671
|
+
value: match[2].trim()
|
|
20672
|
+
};
|
|
20673
|
+
}
|
|
20674
|
+
|
|
20675
|
+
/**
|
|
20676
|
+
* 按换行符拆分段落,去除行内空白后用空格拼接为单行
|
|
20677
|
+
* 若每行是「标签:值」格式,则按标签分类提取姓名、电话和地址
|
|
20485
20678
|
*/
|
|
20486
20679
|
function joinAddressLines(address) {
|
|
20487
20680
|
var normalized = normalizeLineBreaks(address);
|
|
20488
|
-
var lines = normalized.split('\n')
|
|
20681
|
+
var lines = normalized.split('\n').filter(function (line) {
|
|
20682
|
+
return line.replace(/[ \t\f\v]+/g, ' ').trim();
|
|
20683
|
+
});
|
|
20684
|
+
if (lines.length === 1) {
|
|
20685
|
+
var singleLine = lines[0].replace(/[ \t\f\v]+/g, ' ').trim();
|
|
20686
|
+
if ((singleLine.match(/[::]/g) || []).length > 1 && ADDRESS_LABEL_TEST_REG.test(singleLine)) {
|
|
20687
|
+
return {
|
|
20688
|
+
text: stripAddressLabels(singleLine).replace(/ {2,}/g, ' ').trim(),
|
|
20689
|
+
name: '',
|
|
20690
|
+
phoneHint: ''
|
|
20691
|
+
};
|
|
20692
|
+
}
|
|
20693
|
+
}
|
|
20489
20694
|
var parts = [];
|
|
20695
|
+
var extracted = {
|
|
20696
|
+
name: '',
|
|
20697
|
+
phoneHint: ''
|
|
20698
|
+
};
|
|
20490
20699
|
for (var i = 0; i < lines.length; i++) {
|
|
20491
20700
|
var line = lines[i].replace(/[ \t\f\v]+/g, ' ').trim();
|
|
20492
|
-
if (line) {
|
|
20701
|
+
if (!line) {
|
|
20702
|
+
continue;
|
|
20703
|
+
}
|
|
20704
|
+
var labeled = matchLabeledLine(line);
|
|
20705
|
+
if (labeled) {
|
|
20706
|
+
if (NAME_LABELS.indexOf(labeled.label) > -1) {
|
|
20707
|
+
extracted.name = labeled.value;
|
|
20708
|
+
} else if (PHONE_LABELS.indexOf(labeled.label) > -1) {
|
|
20709
|
+
extracted.phoneHint = labeled.value;
|
|
20710
|
+
} else {
|
|
20711
|
+
parts.push(labeled.value);
|
|
20712
|
+
}
|
|
20713
|
+
} else {
|
|
20493
20714
|
parts.push(line);
|
|
20494
20715
|
}
|
|
20495
20716
|
}
|
|
20496
|
-
return
|
|
20717
|
+
return {
|
|
20718
|
+
text: parts.join(' '),
|
|
20719
|
+
name: extracted.name,
|
|
20720
|
+
phoneHint: extracted.phoneHint
|
|
20721
|
+
};
|
|
20497
20722
|
}
|
|
20498
20723
|
|
|
20499
|
-
/**
|
|
20500
|
-
* 从全局变量或 options 中获取 areaList(CDN 加载后挂载在 window.areaList)
|
|
20501
|
-
* @param {object} options
|
|
20502
|
-
* @param {array} [options.areaList] 地址库原始数据,不传则从全局 areaList 读取
|
|
20503
|
-
* @returns {array|null}
|
|
20724
|
+
/**
|
|
20725
|
+
* 从全局变量或 options 中获取 areaList(CDN 加载后挂载在 window.areaList)
|
|
20726
|
+
* @param {object} options
|
|
20727
|
+
* @param {array} [options.areaList] 地址库原始数据,不传则从全局 areaList 读取
|
|
20728
|
+
* @returns {array|null}
|
|
20504
20729
|
*/
|
|
20505
20730
|
function getGlobalAreaList() {
|
|
20506
20731
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -20523,8 +20748,8 @@ function getGlobalAreaList() {
|
|
|
20523
20748
|
return null;
|
|
20524
20749
|
}
|
|
20525
20750
|
|
|
20526
|
-
/**
|
|
20527
|
-
* 判断直辖市名称在前 8 个字符中是否只出现一次(用于补全省份前缀)
|
|
20751
|
+
/**
|
|
20752
|
+
* 判断直辖市名称在前 8 个字符中是否只出现一次(用于补全省份前缀)
|
|
20528
20753
|
*/
|
|
20529
20754
|
function checkMunicipalityChars(str, name) {
|
|
20530
20755
|
var prefix = str.substring(0, 8);
|
|
@@ -20533,8 +20758,8 @@ function checkMunicipalityChars(str, name) {
|
|
|
20533
20758
|
return firstIndex !== -1 && firstIndex === lastIndex;
|
|
20534
20759
|
}
|
|
20535
20760
|
|
|
20536
|
-
/**
|
|
20537
|
-
* 预处理地址字符串:去空格,并为缺少省份前缀的直辖市地址补全
|
|
20761
|
+
/**
|
|
20762
|
+
* 预处理地址字符串:去空格,并为缺少省份前缀的直辖市地址补全
|
|
20538
20763
|
*/
|
|
20539
20764
|
function preprocessAddress(address) {
|
|
20540
20765
|
var cleanAddress = normalizeLineBreaks(address).replace(/[ \t\f\v]+/g, '');
|
|
@@ -20555,13 +20780,13 @@ function preprocessAddress(address) {
|
|
|
20555
20780
|
return cleanAddress;
|
|
20556
20781
|
}
|
|
20557
20782
|
|
|
20558
|
-
/**
|
|
20559
|
-
* 自动识别地址信息,格式化为省市区街道和收件人等信息
|
|
20560
|
-
* @param {string} address 原始地址字符串(可含空格、姓名、手机号等)
|
|
20561
|
-
* @param {object} [sourceData] 组件 sourceData,用于四级地址等配置(extraInfo.isFourAddress)
|
|
20562
|
-
* @param {object} [options] 可选配置
|
|
20563
|
-
* @param {array} [options.areaList] 地址库原始数据,默认从全局 areaList 获取
|
|
20564
|
-
* @returns {{name: string, mobile: string, phone: string, zip_code: string, extensionNumber: string, province: string, city: string, area: string, street: string, addr: string, result: *}}
|
|
20783
|
+
/**
|
|
20784
|
+
* 自动识别地址信息,格式化为省市区街道和收件人等信息
|
|
20785
|
+
* @param {string} address 原始地址字符串(可含空格、姓名、手机号等)
|
|
20786
|
+
* @param {object} [sourceData] 组件 sourceData,用于四级地址等配置(extraInfo.isFourAddress)
|
|
20787
|
+
* @param {object} [options] 可选配置
|
|
20788
|
+
* @param {array} [options.areaList] 地址库原始数据,默认从全局 areaList 获取
|
|
20789
|
+
* @returns {{name: string, mobile: string, phone: string, zip_code: string, extensionNumber: string, province: string, city: string, area: string, street: string, addr: string, result: *}}
|
|
20565
20790
|
*/
|
|
20566
20791
|
function addressParse(address, sourceData) {
|
|
20567
20792
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
@@ -20572,7 +20797,27 @@ function addressParse(address, sourceData) {
|
|
|
20572
20797
|
var cleanAddress = preprocessAddress(address);
|
|
20573
20798
|
return parseAddressDetail(cleanAddress, sourceData || {});
|
|
20574
20799
|
}
|
|
20575
|
-
;//
|
|
20800
|
+
;// ../../packages/bn-util/index.js
|
|
20801
|
+
/* unused harmony import specifier */ var bn_util_toConsumableArray;
|
|
20802
|
+
/* unused harmony import specifier */ var _objectSpread;
|
|
20803
|
+
/* unused harmony import specifier */ var bn_util_typeof;
|
|
20804
|
+
/* unused harmony import specifier */ var cloneDeep;
|
|
20805
|
+
/* unused harmony import specifier */ var bn_util_getApiBaseUrl;
|
|
20806
|
+
|
|
20807
|
+
|
|
20808
|
+
|
|
20809
|
+
|
|
20810
|
+
|
|
20811
|
+
|
|
20812
|
+
|
|
20813
|
+
|
|
20814
|
+
|
|
20815
|
+
|
|
20816
|
+
|
|
20817
|
+
|
|
20818
|
+
|
|
20819
|
+
|
|
20820
|
+
|
|
20576
20821
|
|
|
20577
20822
|
|
|
20578
20823
|
|
|
@@ -20594,55 +20839,10 @@ function addressParse(address, sourceData) {
|
|
|
20594
20839
|
|
|
20595
20840
|
|
|
20596
20841
|
|
|
20597
|
-
/**
|
|
20598
|
-
* 通过id列表,和options将title拼接出来 ,id的key名和 title的key名可以传过来,默认是id和title
|
|
20599
|
-
* id:[1,2] options:[{id:1,title:'name'},{id:2,title:'name2'}] 或 {1:'name',2:'name2'}
|
|
20600
|
-
* 结果返回 'name,name2'
|
|
20601
|
-
* @param {Array} ids ID列表
|
|
20602
|
-
* @param {Array|Object} options 选项数组或对象映射
|
|
20603
|
-
* @param {String} idKey ID的键名,默认为'id',仅当options为数组时使用
|
|
20604
|
-
* @param {String} nameKey 名称的键名,默认为'title',仅当options为数组时使用
|
|
20605
|
-
* @param {String} separator 自定义分隔符,默认为中文逗号','
|
|
20606
|
-
* @return {String} 拼接后的字符串
|
|
20607
|
-
* */
|
|
20608
|
-
function idsToTexts(ids, options) {
|
|
20609
|
-
var idKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'id';
|
|
20610
|
-
var nameKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'title';
|
|
20611
|
-
var separator = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ',';
|
|
20612
|
-
// 快速路径:空值检查
|
|
20613
|
-
if (!(ids !== null && ids !== void 0 && ids.length)) return '';
|
|
20614
|
-
if (!options) return ids.join(separator);
|
|
20615
20842
|
|
|
20616
|
-
// 使用Map代替普通对象,在大量数据时性能更好
|
|
20617
|
-
var map = new Map();
|
|
20618
20843
|
|
|
20619
|
-
// 判断options类型并进行相应处理
|
|
20620
|
-
if (Array.isArray(options)) {
|
|
20621
|
-
// 数组类型的options: [{id:1,title:'name'},{id:2,title:'name2'}]
|
|
20622
|
-
for (var i = 0, len = options.length; i < len; i++) {
|
|
20623
|
-
var item = options[i];
|
|
20624
|
-
if (item) map.set(item[idKey], item[nameKey]);
|
|
20625
|
-
}
|
|
20626
|
-
} else if (_typeof(options) === 'object') {
|
|
20627
|
-
// 对象映射类型的options: {1:'name',2:'name2'}
|
|
20628
|
-
var keys = Object.keys(options);
|
|
20629
|
-
for (var _i = 0, _len = keys.length; _i < _len; _i++) {
|
|
20630
|
-
var key = keys[_i];
|
|
20631
|
-
map.set(key, options[key]);
|
|
20632
|
-
}
|
|
20633
|
-
}
|
|
20634
20844
|
|
|
20635
|
-
// 使用join的第二种模式,减少中间数组创建
|
|
20636
|
-
var result = '';
|
|
20637
|
-
for (var _i2 = 0, _len2 = ids.length; _i2 < _len2; _i2++) {
|
|
20638
|
-
var id = ids[_i2];
|
|
20639
|
-
result += (_i2 > 0 ? separator : '') + (map.has(String(id)) ? map.get(String(id)) : map.has(id) ? map.get(id) : id);
|
|
20640
|
-
}
|
|
20641
|
-
return result;
|
|
20642
|
-
}
|
|
20643
20845
|
|
|
20644
|
-
;// ./install.js
|
|
20645
|
-
// install.js - BnAppletUi 组件库入口
|
|
20646
20846
|
|
|
20647
20847
|
|
|
20648
20848
|
|
|
@@ -20657,36 +20857,1727 @@ function idsToTexts(ids, options) {
|
|
|
20657
20857
|
|
|
20658
20858
|
|
|
20659
20859
|
|
|
20660
|
-
const BnAppletUi = {
|
|
20661
|
-
install: (Vue) => {
|
|
20662
|
-
Vue.component("BnAddress", BnAddress);
|
|
20663
|
-
Vue.component("BnAddressParse", BnAddressParse);
|
|
20664
|
-
Vue.component("BnCheck", BnCheck);
|
|
20665
|
-
Vue.component("BnDateRange", bnDateRange);
|
|
20666
|
-
Vue.component("BnDialog", dialog);
|
|
20667
|
-
Vue.component("BnDropdown", bnDropdown);
|
|
20668
|
-
Vue.component("BnFileView", BnFileView);
|
|
20669
|
-
Vue.component("BnFunText", bnFunText);
|
|
20670
|
-
Vue.component("BnInpNum", BnInpNum);
|
|
20671
|
-
Vue.component("BnInputNum", BnInputNum);
|
|
20672
|
-
Vue.component("BnRuleCondition", bnRuleCondition);
|
|
20673
|
-
Vue.component("BnSelect", BnSelect_select);
|
|
20674
|
-
Vue.component("BnFiTaxAutoComplete", BnFiTaxAutoComplete);
|
|
20675
|
-
}
|
|
20676
|
-
};
|
|
20677
20860
|
|
|
20678
|
-
// 支持通过 CDN 方式引入时自动注册
|
|
20679
|
-
if (typeof window !== 'undefined' && window.Vue) {
|
|
20680
|
-
window.Vue.use(BnAppletUi);
|
|
20681
|
-
}
|
|
20682
20861
|
|
|
20683
|
-
// 导出插件对象(整体引入)
|
|
20684
|
-
// 使用方式:Vue.use(BnAppletUi)
|
|
20685
|
-
/* harmony default export */ const install = (BnAppletUi);
|
|
20686
20862
|
|
|
20687
|
-
// 单独导出各组件(按需引入)
|
|
20688
20863
|
|
|
20689
|
-
|
|
20864
|
+
|
|
20865
|
+
|
|
20866
|
+
|
|
20867
|
+
|
|
20868
|
+
|
|
20869
|
+
|
|
20870
|
+
|
|
20871
|
+
|
|
20872
|
+
|
|
20873
|
+
/**
|
|
20874
|
+
* 规则配置默认支持的条件
|
|
20875
|
+
* */
|
|
20876
|
+
var ruleTypeMap = {
|
|
20877
|
+
1: [{
|
|
20878
|
+
title: '等于',
|
|
20879
|
+
id: '1'
|
|
20880
|
+
}, {
|
|
20881
|
+
title: '不等于',
|
|
20882
|
+
id: '2'
|
|
20883
|
+
}, {
|
|
20884
|
+
title: '包含',
|
|
20885
|
+
id: '3'
|
|
20886
|
+
}, {
|
|
20887
|
+
title: '不包含',
|
|
20888
|
+
id: '4'
|
|
20889
|
+
}, {
|
|
20890
|
+
title: '包含任一项',
|
|
20891
|
+
id: '5'
|
|
20892
|
+
}, {
|
|
20893
|
+
title: '不包含任一项',
|
|
20894
|
+
id: '6'
|
|
20895
|
+
}, {
|
|
20896
|
+
title: '为空',
|
|
20897
|
+
id: '9'
|
|
20898
|
+
}, {
|
|
20899
|
+
title: '不为空',
|
|
20900
|
+
id: '10'
|
|
20901
|
+
}
|
|
20902
|
+
// {title: '不重复', id: '14'},
|
|
20903
|
+
// {title: '重复', id: '15'}
|
|
20904
|
+
],
|
|
20905
|
+
2: [{
|
|
20906
|
+
title: '等于',
|
|
20907
|
+
id: '1'
|
|
20908
|
+
}, {
|
|
20909
|
+
title: '不等于',
|
|
20910
|
+
id: '2'
|
|
20911
|
+
}, {
|
|
20912
|
+
title: '大于',
|
|
20913
|
+
id: '16'
|
|
20914
|
+
}, {
|
|
20915
|
+
title: '小于',
|
|
20916
|
+
id: '17'
|
|
20917
|
+
}, {
|
|
20918
|
+
title: '大于等于',
|
|
20919
|
+
id: '18'
|
|
20920
|
+
}, {
|
|
20921
|
+
title: '小于等于',
|
|
20922
|
+
id: '19'
|
|
20923
|
+
},
|
|
20924
|
+
// {title: '范围', id: '8'},
|
|
20925
|
+
{
|
|
20926
|
+
title: '为空',
|
|
20927
|
+
id: '9'
|
|
20928
|
+
}, {
|
|
20929
|
+
title: '不为空',
|
|
20930
|
+
id: '10'
|
|
20931
|
+
}],
|
|
20932
|
+
3: [{
|
|
20933
|
+
title: '等于',
|
|
20934
|
+
id: '1'
|
|
20935
|
+
}, {
|
|
20936
|
+
title: '不等于',
|
|
20937
|
+
id: '2'
|
|
20938
|
+
}, {
|
|
20939
|
+
title: '包含任一项',
|
|
20940
|
+
id: '5'
|
|
20941
|
+
}, {
|
|
20942
|
+
title: '不包含任一项',
|
|
20943
|
+
id: '6'
|
|
20944
|
+
}, {
|
|
20945
|
+
title: '为空',
|
|
20946
|
+
id: '9'
|
|
20947
|
+
}, {
|
|
20948
|
+
title: '不为空',
|
|
20949
|
+
id: '10'
|
|
20950
|
+
}],
|
|
20951
|
+
4: [{
|
|
20952
|
+
title: '等于',
|
|
20953
|
+
id: '1'
|
|
20954
|
+
}, {
|
|
20955
|
+
title: '不等于',
|
|
20956
|
+
id: '2'
|
|
20957
|
+
}, {
|
|
20958
|
+
title: '包含任一项',
|
|
20959
|
+
id: '5'
|
|
20960
|
+
}, {
|
|
20961
|
+
title: '不包含任一项',
|
|
20962
|
+
id: '6'
|
|
20963
|
+
}, {
|
|
20964
|
+
title: '为空',
|
|
20965
|
+
id: '9'
|
|
20966
|
+
}, {
|
|
20967
|
+
title: '不为空',
|
|
20968
|
+
id: '10'
|
|
20969
|
+
}],
|
|
20970
|
+
5: [{
|
|
20971
|
+
title: '等于',
|
|
20972
|
+
id: '1'
|
|
20973
|
+
}, {
|
|
20974
|
+
title: '不等于',
|
|
20975
|
+
id: '2'
|
|
20976
|
+
}, {
|
|
20977
|
+
title: '包含任一项',
|
|
20978
|
+
id: '5'
|
|
20979
|
+
}, {
|
|
20980
|
+
title: '不包含任一项',
|
|
20981
|
+
id: '6'
|
|
20982
|
+
}, {
|
|
20983
|
+
title: '包含所有项',
|
|
20984
|
+
id: '7'
|
|
20985
|
+
}, {
|
|
20986
|
+
title: '为空',
|
|
20987
|
+
id: '9'
|
|
20988
|
+
}, {
|
|
20989
|
+
title: '不为空',
|
|
20990
|
+
id: '10'
|
|
20991
|
+
}],
|
|
20992
|
+
6: [{
|
|
20993
|
+
title: '等于',
|
|
20994
|
+
id: '1'
|
|
20995
|
+
}, {
|
|
20996
|
+
title: '不等于',
|
|
20997
|
+
id: '2'
|
|
20998
|
+
}, {
|
|
20999
|
+
title: '包含任一项',
|
|
21000
|
+
id: '5'
|
|
21001
|
+
}, {
|
|
21002
|
+
title: '不包含任一项',
|
|
21003
|
+
id: '6'
|
|
21004
|
+
},
|
|
21005
|
+
// {title: '包含所有项', id: '7'},
|
|
21006
|
+
{
|
|
21007
|
+
title: '包含',
|
|
21008
|
+
id: '3'
|
|
21009
|
+
}, {
|
|
21010
|
+
title: '不包含',
|
|
21011
|
+
id: '4'
|
|
21012
|
+
}, {
|
|
21013
|
+
title: '为空',
|
|
21014
|
+
id: '9'
|
|
21015
|
+
}, {
|
|
21016
|
+
title: '不为空',
|
|
21017
|
+
id: '10'
|
|
21018
|
+
}
|
|
21019
|
+
// {title: '重复', id: '15'}
|
|
21020
|
+
],
|
|
21021
|
+
20: [{
|
|
21022
|
+
title: '等于',
|
|
21023
|
+
id: '1'
|
|
21024
|
+
}, {
|
|
21025
|
+
title: '不等于',
|
|
21026
|
+
id: '2'
|
|
21027
|
+
}, {
|
|
21028
|
+
title: '包含',
|
|
21029
|
+
id: '3'
|
|
21030
|
+
}, {
|
|
21031
|
+
title: '不包含',
|
|
21032
|
+
id: '4'
|
|
21033
|
+
}, {
|
|
21034
|
+
title: '包含任一项',
|
|
21035
|
+
id: '5'
|
|
21036
|
+
}, {
|
|
21037
|
+
title: '不包含任一项',
|
|
21038
|
+
id: '6'
|
|
21039
|
+
},
|
|
21040
|
+
// {title: '包含所有项', id: '7'},
|
|
21041
|
+
{
|
|
21042
|
+
title: '为空',
|
|
21043
|
+
id: '9'
|
|
21044
|
+
}, {
|
|
21045
|
+
title: '不为空',
|
|
21046
|
+
id: '10'
|
|
21047
|
+
}
|
|
21048
|
+
// {title: '重复', id: '15'}
|
|
21049
|
+
],
|
|
21050
|
+
7: [
|
|
21051
|
+
// {title: '范围', id: '8'},
|
|
21052
|
+
{
|
|
21053
|
+
title: '等于',
|
|
21054
|
+
id: '1'
|
|
21055
|
+
}, {
|
|
21056
|
+
title: '不等于',
|
|
21057
|
+
id: '2'
|
|
21058
|
+
}, {
|
|
21059
|
+
title: '大于',
|
|
21060
|
+
id: '16'
|
|
21061
|
+
}, {
|
|
21062
|
+
title: '小于',
|
|
21063
|
+
id: '17'
|
|
21064
|
+
}, {
|
|
21065
|
+
title: '大于等于',
|
|
21066
|
+
id: '18'
|
|
21067
|
+
}, {
|
|
21068
|
+
title: '小于等于',
|
|
21069
|
+
id: '19'
|
|
21070
|
+
}, {
|
|
21071
|
+
title: '为空',
|
|
21072
|
+
id: '9'
|
|
21073
|
+
}, {
|
|
21074
|
+
title: '不为空',
|
|
21075
|
+
id: '10'
|
|
21076
|
+
}],
|
|
21077
|
+
8: [{
|
|
21078
|
+
title: '范围',
|
|
21079
|
+
id: '8'
|
|
21080
|
+
}, {
|
|
21081
|
+
title: '包含',
|
|
21082
|
+
id: '3'
|
|
21083
|
+
}, {
|
|
21084
|
+
title: '不包含',
|
|
21085
|
+
id: '4'
|
|
21086
|
+
}, {
|
|
21087
|
+
title: '为空',
|
|
21088
|
+
id: '9'
|
|
21089
|
+
}, {
|
|
21090
|
+
title: '不为空',
|
|
21091
|
+
id: '10'
|
|
21092
|
+
}, {
|
|
21093
|
+
title: '属于',
|
|
21094
|
+
id: '11'
|
|
21095
|
+
}, {
|
|
21096
|
+
title: '有交集',
|
|
21097
|
+
id: '12'
|
|
21098
|
+
}, {
|
|
21099
|
+
title: '无交集',
|
|
21100
|
+
id: '13'
|
|
21101
|
+
}],
|
|
21102
|
+
9: [{
|
|
21103
|
+
title: '范围',
|
|
21104
|
+
id: '8'
|
|
21105
|
+
}, {
|
|
21106
|
+
title: '为空',
|
|
21107
|
+
id: '9'
|
|
21108
|
+
}, {
|
|
21109
|
+
title: '不为空',
|
|
21110
|
+
id: '10'
|
|
21111
|
+
}],
|
|
21112
|
+
10: [{
|
|
21113
|
+
title: '为空',
|
|
21114
|
+
id: '9'
|
|
21115
|
+
}, {
|
|
21116
|
+
title: '不为空',
|
|
21117
|
+
id: '10'
|
|
21118
|
+
}],
|
|
21119
|
+
11: [{
|
|
21120
|
+
title: '等于',
|
|
21121
|
+
id: '1'
|
|
21122
|
+
}, {
|
|
21123
|
+
title: '不等于',
|
|
21124
|
+
id: '2'
|
|
21125
|
+
}, {
|
|
21126
|
+
title: '包含',
|
|
21127
|
+
id: '3'
|
|
21128
|
+
}, {
|
|
21129
|
+
title: '不包含',
|
|
21130
|
+
id: '4'
|
|
21131
|
+
}, {
|
|
21132
|
+
title: '包含任一项',
|
|
21133
|
+
id: '5'
|
|
21134
|
+
}, {
|
|
21135
|
+
title: '不包含任一项',
|
|
21136
|
+
id: '6'
|
|
21137
|
+
}, {
|
|
21138
|
+
title: '包含所有项',
|
|
21139
|
+
id: '7'
|
|
21140
|
+
}, {
|
|
21141
|
+
title: '范围',
|
|
21142
|
+
id: '8'
|
|
21143
|
+
}, {
|
|
21144
|
+
title: '为空',
|
|
21145
|
+
id: '9'
|
|
21146
|
+
}, {
|
|
21147
|
+
title: '不为空',
|
|
21148
|
+
id: '10'
|
|
21149
|
+
}, {
|
|
21150
|
+
title: '属于',
|
|
21151
|
+
id: '11'
|
|
21152
|
+
}, {
|
|
21153
|
+
title: '有交集',
|
|
21154
|
+
id: '12'
|
|
21155
|
+
}, {
|
|
21156
|
+
title: '无交集',
|
|
21157
|
+
id: '13'
|
|
21158
|
+
}],
|
|
21159
|
+
12: [{
|
|
21160
|
+
title: '等于',
|
|
21161
|
+
id: '1'
|
|
21162
|
+
}, {
|
|
21163
|
+
title: '不等于',
|
|
21164
|
+
id: '2'
|
|
21165
|
+
}, {
|
|
21166
|
+
title: '包含',
|
|
21167
|
+
id: '3'
|
|
21168
|
+
}, {
|
|
21169
|
+
title: '不包含',
|
|
21170
|
+
id: '4'
|
|
21171
|
+
}, {
|
|
21172
|
+
title: '包含任一项',
|
|
21173
|
+
id: '5'
|
|
21174
|
+
}, {
|
|
21175
|
+
title: '不包含任一项',
|
|
21176
|
+
id: '6'
|
|
21177
|
+
}, {
|
|
21178
|
+
title: '包含所有项',
|
|
21179
|
+
id: '7'
|
|
21180
|
+
}, {
|
|
21181
|
+
title: '范围',
|
|
21182
|
+
id: '8'
|
|
21183
|
+
}, {
|
|
21184
|
+
title: '为空',
|
|
21185
|
+
id: '9'
|
|
21186
|
+
}, {
|
|
21187
|
+
title: '不为空',
|
|
21188
|
+
id: '10'
|
|
21189
|
+
}, {
|
|
21190
|
+
title: '属于',
|
|
21191
|
+
id: '11'
|
|
21192
|
+
}, {
|
|
21193
|
+
title: '有交集',
|
|
21194
|
+
id: '12'
|
|
21195
|
+
}, {
|
|
21196
|
+
title: '无交集',
|
|
21197
|
+
id: '13'
|
|
21198
|
+
}],
|
|
21199
|
+
13: [{
|
|
21200
|
+
title: '等于',
|
|
21201
|
+
id: '1'
|
|
21202
|
+
}, {
|
|
21203
|
+
title: '不等于',
|
|
21204
|
+
id: '2'
|
|
21205
|
+
}, {
|
|
21206
|
+
title: '包含',
|
|
21207
|
+
id: '3'
|
|
21208
|
+
}, {
|
|
21209
|
+
title: '不包含',
|
|
21210
|
+
id: '4'
|
|
21211
|
+
}, {
|
|
21212
|
+
title: '包含任一项',
|
|
21213
|
+
id: '5'
|
|
21214
|
+
}, {
|
|
21215
|
+
title: '不包含任一项',
|
|
21216
|
+
id: '6'
|
|
21217
|
+
}, {
|
|
21218
|
+
title: '包含所有项',
|
|
21219
|
+
id: '7'
|
|
21220
|
+
}, {
|
|
21221
|
+
title: '范围',
|
|
21222
|
+
id: '8'
|
|
21223
|
+
}, {
|
|
21224
|
+
title: '为空',
|
|
21225
|
+
id: '9'
|
|
21226
|
+
}, {
|
|
21227
|
+
title: '不为空',
|
|
21228
|
+
id: '10'
|
|
21229
|
+
}, {
|
|
21230
|
+
title: '属于',
|
|
21231
|
+
id: '11'
|
|
21232
|
+
}, {
|
|
21233
|
+
title: '有交集',
|
|
21234
|
+
id: '12'
|
|
21235
|
+
}, {
|
|
21236
|
+
title: '无交集',
|
|
21237
|
+
id: '13'
|
|
21238
|
+
}],
|
|
21239
|
+
14: [{
|
|
21240
|
+
title: '等于',
|
|
21241
|
+
id: '1'
|
|
21242
|
+
}, {
|
|
21243
|
+
title: '不等于',
|
|
21244
|
+
id: '2'
|
|
21245
|
+
}, {
|
|
21246
|
+
title: '包含',
|
|
21247
|
+
id: '3'
|
|
21248
|
+
}, {
|
|
21249
|
+
title: '包含任一项',
|
|
21250
|
+
id: '5'
|
|
21251
|
+
}, {
|
|
21252
|
+
title: '不包含任一项',
|
|
21253
|
+
id: '6'
|
|
21254
|
+
},
|
|
21255
|
+
// {title: '包含所有项', id: '7'},
|
|
21256
|
+
{
|
|
21257
|
+
title: '为空',
|
|
21258
|
+
id: '9'
|
|
21259
|
+
}, {
|
|
21260
|
+
title: '不为空',
|
|
21261
|
+
id: '10'
|
|
21262
|
+
}],
|
|
21263
|
+
15: [
|
|
21264
|
+
// {title: '等于', id: '1'},
|
|
21265
|
+
// {title: '不等于', id: '2'},
|
|
21266
|
+
// {title: '包含', id: '3'},
|
|
21267
|
+
// {title: '包含任一项', id: '5'},
|
|
21268
|
+
// {title: '不包含任一项', id: '6'},
|
|
21269
|
+
// {title: '包含所有项', id: '7'},
|
|
21270
|
+
{
|
|
21271
|
+
title: '为空',
|
|
21272
|
+
id: '9'
|
|
21273
|
+
}, {
|
|
21274
|
+
title: '不为空',
|
|
21275
|
+
id: '10'
|
|
21276
|
+
}]
|
|
21277
|
+
/*8: [
|
|
21278
|
+
{title: '范围', id: '8'},
|
|
21279
|
+
{title: '为空', id: '9'},
|
|
21280
|
+
{title: '不为空', id: '10'},
|
|
21281
|
+
// {title: '属于', id: '11'},
|
|
21282
|
+
// {title: '有交集', id: '12'},
|
|
21283
|
+
// {title: '无交集', id: '13'},
|
|
21284
|
+
],
|
|
21285
|
+
9: [
|
|
21286
|
+
{title: '范围', id: '8'},
|
|
21287
|
+
{title: '为空', id: '9'},
|
|
21288
|
+
{title: '不为空', id: '10'},
|
|
21289
|
+
],
|
|
21290
|
+
11: [
|
|
21291
|
+
{title: '等于', id: '1'},
|
|
21292
|
+
{title: '不等于', id: '2'},
|
|
21293
|
+
{title: '包含', id: '3'},
|
|
21294
|
+
{title: '不包含', id: '4'},
|
|
21295
|
+
{title: '包含任一项', id: '5'},
|
|
21296
|
+
{title: '不包含任一项', id: '6'},
|
|
21297
|
+
{title: '包含所有项', id: '7'},
|
|
21298
|
+
{title: '范围', id: '8'},
|
|
21299
|
+
{title: '为空', id: '9'},
|
|
21300
|
+
{title: '不为空', id: '10'},
|
|
21301
|
+
{title: '属于', id: '11'},
|
|
21302
|
+
{title: '有交集', id: '12'},
|
|
21303
|
+
{title: '无交集', id: '13'},],
|
|
21304
|
+
12: [
|
|
21305
|
+
{title: '等于', id: '1'},
|
|
21306
|
+
{title: '不等于', id: '2'},
|
|
21307
|
+
{title: '包含', id: '3'},
|
|
21308
|
+
{title: '不包含', id: '4'},
|
|
21309
|
+
{title: '包含任一项', id: '5'},
|
|
21310
|
+
{title: '不包含任一项', id: '6'},
|
|
21311
|
+
{title: '包含所有项', id: '7'},
|
|
21312
|
+
{title: '范围', id: '8'},
|
|
21313
|
+
{title: '为空', id: '9'},
|
|
21314
|
+
{title: '不为空', id: '10'},
|
|
21315
|
+
{title: '属于', id: '11'},
|
|
21316
|
+
{title: '有交集', id: '12'},
|
|
21317
|
+
{title: '无交集', id: '13'},],
|
|
21318
|
+
13: [
|
|
21319
|
+
{title: '等于', id: '1'},
|
|
21320
|
+
{title: '不等于', id: '2'},
|
|
21321
|
+
{title: '包含', id: '3'},
|
|
21322
|
+
{title: '不包含', id: '4'},
|
|
21323
|
+
{title: '包含任一项', id: '5'},
|
|
21324
|
+
{title: '不包含任一项', id: '6'},
|
|
21325
|
+
{title: '包含所有项', id: '7'},
|
|
21326
|
+
{title: '范围', id: '8'},
|
|
21327
|
+
{title: '为空', id: '9'},
|
|
21328
|
+
{title: '不为空', id: '10'},
|
|
21329
|
+
{title: '属于', id: '11'},
|
|
21330
|
+
{title: '有交集', id: '12'},
|
|
21331
|
+
{title: '无交集', id: '13'},],
|
|
21332
|
+
15: [
|
|
21333
|
+
{title: '等于', id: '1'},
|
|
21334
|
+
{title: '为空', id: '9'},
|
|
21335
|
+
{title: '不为空', id: '10'}
|
|
21336
|
+
],*/
|
|
21337
|
+
};
|
|
21338
|
+
/**
|
|
21339
|
+
* 规则配置各组件默认支持的数值条件 当前值、选择其他组件 这种
|
|
21340
|
+
* */
|
|
21341
|
+
var valueTypeMap = {
|
|
21342
|
+
1: '0',
|
|
21343
|
+
2: '0',
|
|
21344
|
+
3: '2',
|
|
21345
|
+
4: '2',
|
|
21346
|
+
5: '2',
|
|
21347
|
+
6: '2',
|
|
21348
|
+
7: '0',
|
|
21349
|
+
8: '0',
|
|
21350
|
+
9: '0',
|
|
21351
|
+
10: '2',
|
|
21352
|
+
11: '2',
|
|
21353
|
+
12: '2',
|
|
21354
|
+
13: '2',
|
|
21355
|
+
14: '2',
|
|
21356
|
+
15: '2'
|
|
21357
|
+
};
|
|
21358
|
+
/**
|
|
21359
|
+
* 字段,组件数据格式化
|
|
21360
|
+
* */
|
|
21361
|
+
var searchTypeMap = {
|
|
21362
|
+
1: [{
|
|
21363
|
+
title: '等于',
|
|
21364
|
+
id: '1'
|
|
21365
|
+
}, {
|
|
21366
|
+
title: '不等于',
|
|
21367
|
+
id: '2'
|
|
21368
|
+
}, {
|
|
21369
|
+
title: '包含',
|
|
21370
|
+
id: '3'
|
|
21371
|
+
}, {
|
|
21372
|
+
title: '不包含',
|
|
21373
|
+
id: '4'
|
|
21374
|
+
}, {
|
|
21375
|
+
title: '包含任一项',
|
|
21376
|
+
id: '5'
|
|
21377
|
+
}, {
|
|
21378
|
+
title: '为空',
|
|
21379
|
+
id: '9'
|
|
21380
|
+
}, {
|
|
21381
|
+
title: '不为空',
|
|
21382
|
+
id: '10'
|
|
21383
|
+
}, {
|
|
21384
|
+
title: '重复',
|
|
21385
|
+
id: '15'
|
|
21386
|
+
}, {
|
|
21387
|
+
title: '不重复',
|
|
21388
|
+
id: '14'
|
|
21389
|
+
}],
|
|
21390
|
+
2: [{
|
|
21391
|
+
title: '范围',
|
|
21392
|
+
id: '8'
|
|
21393
|
+
}, {
|
|
21394
|
+
title: '等于',
|
|
21395
|
+
id: '1'
|
|
21396
|
+
}, {
|
|
21397
|
+
title: '不等于',
|
|
21398
|
+
id: '2'
|
|
21399
|
+
}, {
|
|
21400
|
+
title: '包含任一项',
|
|
21401
|
+
id: '5'
|
|
21402
|
+
}, {
|
|
21403
|
+
title: '为空',
|
|
21404
|
+
id: '9'
|
|
21405
|
+
}, {
|
|
21406
|
+
title: '不为空',
|
|
21407
|
+
id: '10'
|
|
21408
|
+
}],
|
|
21409
|
+
3: [{
|
|
21410
|
+
title: '包含任一项',
|
|
21411
|
+
id: '5'
|
|
21412
|
+
}, {
|
|
21413
|
+
title: '不包含任一项',
|
|
21414
|
+
id: '6'
|
|
21415
|
+
}, {
|
|
21416
|
+
title: '为空',
|
|
21417
|
+
id: '9'
|
|
21418
|
+
}, {
|
|
21419
|
+
title: '不为空',
|
|
21420
|
+
id: '10'
|
|
21421
|
+
}],
|
|
21422
|
+
4: [{
|
|
21423
|
+
title: '包含任一项',
|
|
21424
|
+
id: '5'
|
|
21425
|
+
},
|
|
21426
|
+
// {title: '不包含任一项', id: '6'},
|
|
21427
|
+
{
|
|
21428
|
+
title: '为空',
|
|
21429
|
+
id: '9'
|
|
21430
|
+
}, {
|
|
21431
|
+
title: '不为空',
|
|
21432
|
+
id: '10'
|
|
21433
|
+
}],
|
|
21434
|
+
5: [{
|
|
21435
|
+
title: '等于',
|
|
21436
|
+
id: '1'
|
|
21437
|
+
}, {
|
|
21438
|
+
title: '不等于',
|
|
21439
|
+
id: '2'
|
|
21440
|
+
}, {
|
|
21441
|
+
title: '包含任一项',
|
|
21442
|
+
id: '5'
|
|
21443
|
+
}, {
|
|
21444
|
+
title: '不包含任一项',
|
|
21445
|
+
id: '6'
|
|
21446
|
+
}, {
|
|
21447
|
+
title: '包含所有项',
|
|
21448
|
+
id: '7'
|
|
21449
|
+
}, {
|
|
21450
|
+
title: '为空',
|
|
21451
|
+
id: '9'
|
|
21452
|
+
}, {
|
|
21453
|
+
title: '不为空',
|
|
21454
|
+
id: '10'
|
|
21455
|
+
}],
|
|
21456
|
+
6: [
|
|
21457
|
+
// {title: '等于', id: '1'},
|
|
21458
|
+
// {title: '不等于', id: '2'},
|
|
21459
|
+
{
|
|
21460
|
+
title: '包含',
|
|
21461
|
+
id: '3'
|
|
21462
|
+
}, {
|
|
21463
|
+
title: '不包含',
|
|
21464
|
+
id: '4'
|
|
21465
|
+
}, {
|
|
21466
|
+
title: '包含任一项',
|
|
21467
|
+
id: '5'
|
|
21468
|
+
}, {
|
|
21469
|
+
title: '不包含任一项',
|
|
21470
|
+
id: '6'
|
|
21471
|
+
}, {
|
|
21472
|
+
title: '包含所有项',
|
|
21473
|
+
id: '7'
|
|
21474
|
+
}, {
|
|
21475
|
+
title: '为空',
|
|
21476
|
+
id: '9'
|
|
21477
|
+
}, {
|
|
21478
|
+
title: '不为空',
|
|
21479
|
+
id: '10'
|
|
21480
|
+
}
|
|
21481
|
+
// {title: '重复', id: '15'}
|
|
21482
|
+
],
|
|
21483
|
+
20: [{
|
|
21484
|
+
title: '等于',
|
|
21485
|
+
id: '1'
|
|
21486
|
+
}, {
|
|
21487
|
+
title: '不等于',
|
|
21488
|
+
id: '2'
|
|
21489
|
+
}, {
|
|
21490
|
+
title: '包含',
|
|
21491
|
+
id: '3'
|
|
21492
|
+
}, {
|
|
21493
|
+
title: '不包含',
|
|
21494
|
+
id: '4'
|
|
21495
|
+
}, {
|
|
21496
|
+
title: '包含任一项',
|
|
21497
|
+
id: '5'
|
|
21498
|
+
}, {
|
|
21499
|
+
title: '不包含任一项',
|
|
21500
|
+
id: '6'
|
|
21501
|
+
},
|
|
21502
|
+
// {title: '包含所有项', id: '7'},
|
|
21503
|
+
{
|
|
21504
|
+
title: '为空',
|
|
21505
|
+
id: '9'
|
|
21506
|
+
}, {
|
|
21507
|
+
title: '不为空',
|
|
21508
|
+
id: '10'
|
|
21509
|
+
}
|
|
21510
|
+
// {title: '重复', id: '15'}
|
|
21511
|
+
],
|
|
21512
|
+
7: [{
|
|
21513
|
+
title: '范围',
|
|
21514
|
+
id: '8'
|
|
21515
|
+
}, {
|
|
21516
|
+
title: '为空',
|
|
21517
|
+
id: '9'
|
|
21518
|
+
}, {
|
|
21519
|
+
title: '不为空',
|
|
21520
|
+
id: '10'
|
|
21521
|
+
}],
|
|
21522
|
+
8: [{
|
|
21523
|
+
title: '范围',
|
|
21524
|
+
id: '8'
|
|
21525
|
+
}, {
|
|
21526
|
+
title: '包含',
|
|
21527
|
+
id: '3'
|
|
21528
|
+
}, {
|
|
21529
|
+
title: '不包含',
|
|
21530
|
+
id: '4'
|
|
21531
|
+
}, {
|
|
21532
|
+
title: '为空',
|
|
21533
|
+
id: '9'
|
|
21534
|
+
}, {
|
|
21535
|
+
title: '不为空',
|
|
21536
|
+
id: '10'
|
|
21537
|
+
}, {
|
|
21538
|
+
title: '属于',
|
|
21539
|
+
id: '11'
|
|
21540
|
+
}, {
|
|
21541
|
+
title: '有交集',
|
|
21542
|
+
id: '12'
|
|
21543
|
+
}, {
|
|
21544
|
+
title: '无交集',
|
|
21545
|
+
id: '13'
|
|
21546
|
+
}],
|
|
21547
|
+
9: [{
|
|
21548
|
+
title: '范围',
|
|
21549
|
+
id: '8'
|
|
21550
|
+
}, {
|
|
21551
|
+
title: '为空',
|
|
21552
|
+
id: '9'
|
|
21553
|
+
}, {
|
|
21554
|
+
title: '不为空',
|
|
21555
|
+
id: '10'
|
|
21556
|
+
}],
|
|
21557
|
+
10: [{
|
|
21558
|
+
title: '为空',
|
|
21559
|
+
id: '9'
|
|
21560
|
+
}, {
|
|
21561
|
+
title: '不为空',
|
|
21562
|
+
id: '10'
|
|
21563
|
+
}],
|
|
21564
|
+
11: [{
|
|
21565
|
+
title: '等于',
|
|
21566
|
+
id: '1'
|
|
21567
|
+
}, {
|
|
21568
|
+
title: '不等于',
|
|
21569
|
+
id: '2'
|
|
21570
|
+
}, {
|
|
21571
|
+
title: '包含',
|
|
21572
|
+
id: '3'
|
|
21573
|
+
}, {
|
|
21574
|
+
title: '不包含',
|
|
21575
|
+
id: '4'
|
|
21576
|
+
}, {
|
|
21577
|
+
title: '包含任一项',
|
|
21578
|
+
id: '5'
|
|
21579
|
+
}, {
|
|
21580
|
+
title: '不包含任一项',
|
|
21581
|
+
id: '6'
|
|
21582
|
+
}, {
|
|
21583
|
+
title: '包含所有项',
|
|
21584
|
+
id: '7'
|
|
21585
|
+
}, {
|
|
21586
|
+
title: '范围',
|
|
21587
|
+
id: '8'
|
|
21588
|
+
}, {
|
|
21589
|
+
title: '为空',
|
|
21590
|
+
id: '9'
|
|
21591
|
+
}, {
|
|
21592
|
+
title: '不为空',
|
|
21593
|
+
id: '10'
|
|
21594
|
+
}, {
|
|
21595
|
+
title: '属于',
|
|
21596
|
+
id: '11'
|
|
21597
|
+
}, {
|
|
21598
|
+
title: '有交集',
|
|
21599
|
+
id: '12'
|
|
21600
|
+
}, {
|
|
21601
|
+
title: '无交集',
|
|
21602
|
+
id: '13'
|
|
21603
|
+
}],
|
|
21604
|
+
12: [{
|
|
21605
|
+
title: '等于',
|
|
21606
|
+
id: '1'
|
|
21607
|
+
}, {
|
|
21608
|
+
title: '不等于',
|
|
21609
|
+
id: '2'
|
|
21610
|
+
}, {
|
|
21611
|
+
title: '包含',
|
|
21612
|
+
id: '3'
|
|
21613
|
+
}, {
|
|
21614
|
+
title: '不包含',
|
|
21615
|
+
id: '4'
|
|
21616
|
+
}, {
|
|
21617
|
+
title: '包含任一项',
|
|
21618
|
+
id: '5'
|
|
21619
|
+
}, {
|
|
21620
|
+
title: '不包含任一项',
|
|
21621
|
+
id: '6'
|
|
21622
|
+
}, {
|
|
21623
|
+
title: '包含所有项',
|
|
21624
|
+
id: '7'
|
|
21625
|
+
}, {
|
|
21626
|
+
title: '范围',
|
|
21627
|
+
id: '8'
|
|
21628
|
+
}, {
|
|
21629
|
+
title: '为空',
|
|
21630
|
+
id: '9'
|
|
21631
|
+
}, {
|
|
21632
|
+
title: '不为空',
|
|
21633
|
+
id: '10'
|
|
21634
|
+
}, {
|
|
21635
|
+
title: '属于',
|
|
21636
|
+
id: '11'
|
|
21637
|
+
}, {
|
|
21638
|
+
title: '有交集',
|
|
21639
|
+
id: '12'
|
|
21640
|
+
}, {
|
|
21641
|
+
title: '无交集',
|
|
21642
|
+
id: '13'
|
|
21643
|
+
}],
|
|
21644
|
+
13: [{
|
|
21645
|
+
title: '等于',
|
|
21646
|
+
id: '1'
|
|
21647
|
+
}, {
|
|
21648
|
+
title: '不等于',
|
|
21649
|
+
id: '2'
|
|
21650
|
+
}, {
|
|
21651
|
+
title: '包含',
|
|
21652
|
+
id: '3'
|
|
21653
|
+
}, {
|
|
21654
|
+
title: '不包含',
|
|
21655
|
+
id: '4'
|
|
21656
|
+
}, {
|
|
21657
|
+
title: '包含任一项',
|
|
21658
|
+
id: '5'
|
|
21659
|
+
}, {
|
|
21660
|
+
title: '不包含任一项',
|
|
21661
|
+
id: '6'
|
|
21662
|
+
}, {
|
|
21663
|
+
title: '包含所有项',
|
|
21664
|
+
id: '7'
|
|
21665
|
+
}, {
|
|
21666
|
+
title: '范围',
|
|
21667
|
+
id: '8'
|
|
21668
|
+
}, {
|
|
21669
|
+
title: '为空',
|
|
21670
|
+
id: '9'
|
|
21671
|
+
}, {
|
|
21672
|
+
title: '不为空',
|
|
21673
|
+
id: '10'
|
|
21674
|
+
}, {
|
|
21675
|
+
title: '属于',
|
|
21676
|
+
id: '11'
|
|
21677
|
+
}, {
|
|
21678
|
+
title: '有交集',
|
|
21679
|
+
id: '12'
|
|
21680
|
+
}, {
|
|
21681
|
+
title: '无交集',
|
|
21682
|
+
id: '13'
|
|
21683
|
+
}],
|
|
21684
|
+
14: [{
|
|
21685
|
+
title: '等于',
|
|
21686
|
+
id: '1'
|
|
21687
|
+
}, {
|
|
21688
|
+
title: '不等于',
|
|
21689
|
+
id: '2'
|
|
21690
|
+
}, {
|
|
21691
|
+
title: '包含',
|
|
21692
|
+
id: '3'
|
|
21693
|
+
}, {
|
|
21694
|
+
title: '不包含',
|
|
21695
|
+
id: '4'
|
|
21696
|
+
}, {
|
|
21697
|
+
title: '为空',
|
|
21698
|
+
id: '9'
|
|
21699
|
+
}, {
|
|
21700
|
+
title: '不为空',
|
|
21701
|
+
id: '10'
|
|
21702
|
+
}],
|
|
21703
|
+
15: [{
|
|
21704
|
+
title: '等于',
|
|
21705
|
+
id: '1'
|
|
21706
|
+
}, {
|
|
21707
|
+
title: '包含',
|
|
21708
|
+
id: '3'
|
|
21709
|
+
}, {
|
|
21710
|
+
title: '不包含',
|
|
21711
|
+
id: '4'
|
|
21712
|
+
}, {
|
|
21713
|
+
title: '为空',
|
|
21714
|
+
id: '9'
|
|
21715
|
+
}, {
|
|
21716
|
+
title: '不为空',
|
|
21717
|
+
id: '10'
|
|
21718
|
+
}]
|
|
21719
|
+
};
|
|
21720
|
+
/**
|
|
21721
|
+
* 全局默认成员列表
|
|
21722
|
+
* */
|
|
21723
|
+
var userConst = [{
|
|
21724
|
+
title: "班牛助手(工单)",
|
|
21725
|
+
code: "10001487",
|
|
21726
|
+
id: "10001487"
|
|
21727
|
+
}, {
|
|
21728
|
+
title: "班牛助手(服务大厅)",
|
|
21729
|
+
code: "857",
|
|
21730
|
+
id: "857"
|
|
21731
|
+
}, {
|
|
21732
|
+
title: "班牛助手(API)",
|
|
21733
|
+
code: "110430206",
|
|
21734
|
+
id: "110430206"
|
|
21735
|
+
}];
|
|
21736
|
+
|
|
21737
|
+
/**
|
|
21738
|
+
* 通过id列表,和options将title拼接出来 ,id的key名和 title的key名可以传过来,默认是id和title
|
|
21739
|
+
* id:[1,2] options:[{id:1,title:'name'},{id:2,title:'name2'}] 或 {1:'name',2:'name2'}
|
|
21740
|
+
* 结果返回 'name,name2'
|
|
21741
|
+
* @param {Array} ids ID列表
|
|
21742
|
+
* @param {Array|Object} options 选项数组或对象映射
|
|
21743
|
+
* @param {String} idKey ID的键名,默认为'id',仅当options为数组时使用
|
|
21744
|
+
* @param {String} nameKey 名称的键名,默认为'title',仅当options为数组时使用
|
|
21745
|
+
* @param {String} separator 自定义分隔符,默认为中文逗号','
|
|
21746
|
+
* @return {String} 拼接后的字符串
|
|
21747
|
+
* */
|
|
21748
|
+
function idsToTexts(ids, options) {
|
|
21749
|
+
var idKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'id';
|
|
21750
|
+
var nameKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'title';
|
|
21751
|
+
var separator = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ',';
|
|
21752
|
+
// 快速路径:空值检查
|
|
21753
|
+
if (!(ids !== null && ids !== void 0 && ids.length)) return '';
|
|
21754
|
+
if (!options) return ids.join(separator);
|
|
21755
|
+
|
|
21756
|
+
// 使用Map代替普通对象,在大量数据时性能更好
|
|
21757
|
+
var map = new Map();
|
|
21758
|
+
|
|
21759
|
+
// 判断options类型并进行相应处理
|
|
21760
|
+
if (Array.isArray(options)) {
|
|
21761
|
+
// 数组类型的options: [{id:1,title:'name'},{id:2,title:'name2'}]
|
|
21762
|
+
for (var i = 0, len = options.length; i < len; i++) {
|
|
21763
|
+
var item = options[i];
|
|
21764
|
+
if (item) map.set(item[idKey], item[nameKey]);
|
|
21765
|
+
}
|
|
21766
|
+
} else if (_typeof(options) === 'object') {
|
|
21767
|
+
// 对象映射类型的options: {1:'name',2:'name2'}
|
|
21768
|
+
var keys = Object.keys(options);
|
|
21769
|
+
for (var _i = 0, _len = keys.length; _i < _len; _i++) {
|
|
21770
|
+
var key = keys[_i];
|
|
21771
|
+
map.set(key, options[key]);
|
|
21772
|
+
}
|
|
21773
|
+
}
|
|
21774
|
+
|
|
21775
|
+
// 使用join的第二种模式,减少中间数组创建
|
|
21776
|
+
var result = '';
|
|
21777
|
+
for (var _i2 = 0, _len2 = ids.length; _i2 < _len2; _i2++) {
|
|
21778
|
+
var id = ids[_i2];
|
|
21779
|
+
result += (_i2 > 0 ? separator : '') + (map.has(String(id)) ? map.get(String(id)) : map.has(id) ? map.get(id) : id);
|
|
21780
|
+
}
|
|
21781
|
+
return result;
|
|
21782
|
+
}
|
|
21783
|
+
|
|
21784
|
+
/**
|
|
21785
|
+
* 向输入框的光标位置插入字符
|
|
21786
|
+
* */
|
|
21787
|
+
function insertText(dom, value) {
|
|
21788
|
+
var selectRange;
|
|
21789
|
+
if (document.selection) {
|
|
21790
|
+
// IE Support
|
|
21791
|
+
dom.focus();
|
|
21792
|
+
selectRange = document.selection.createRange();
|
|
21793
|
+
selectRange.text = value;
|
|
21794
|
+
dom.focus();
|
|
21795
|
+
} else if (dom.selectionStart || dom.selectionStart == '0') {
|
|
21796
|
+
// Firefox support
|
|
21797
|
+
var startPos = dom.selectionStart;
|
|
21798
|
+
var endPos = dom.selectionEnd;
|
|
21799
|
+
var scrollTop = dom.scrollTop;
|
|
21800
|
+
dom.value = dom.value.substring(0, startPos) + value + dom.value.substring(endPos, dom.value.length);
|
|
21801
|
+
dom.focus();
|
|
21802
|
+
dom.selectionStart = startPos + value.length;
|
|
21803
|
+
dom.selectionEnd = startPos + value.length;
|
|
21804
|
+
dom.scrollTop = scrollTop;
|
|
21805
|
+
} else {
|
|
21806
|
+
dom.value += value;
|
|
21807
|
+
dom.focus();
|
|
21808
|
+
}
|
|
21809
|
+
return dom.value;
|
|
21810
|
+
}
|
|
21811
|
+
|
|
21812
|
+
/**
|
|
21813
|
+
* 格式化查看、高级筛选的组件信息
|
|
21814
|
+
* @param Object component 组件信息
|
|
21815
|
+
* */
|
|
21816
|
+
function tidyRuleComponent(component) {
|
|
21817
|
+
var _ruleTypeMap$componen;
|
|
21818
|
+
// 组件必须可见
|
|
21819
|
+
if (component.extraInfo.listShow != 1) {
|
|
21820
|
+
return null;
|
|
21821
|
+
}
|
|
21822
|
+
var data = {
|
|
21823
|
+
id: component.id,
|
|
21824
|
+
behaviorType: component.behaviorType,
|
|
21825
|
+
columnCode: component.columnCode,
|
|
21826
|
+
name: component.name,
|
|
21827
|
+
valueType: valueTypeMap[component.behaviorType],
|
|
21828
|
+
extraInfo: component.extraInfo || {},
|
|
21829
|
+
moduleDefinition: component.moduleDefinition || [],
|
|
21830
|
+
insideDataSourceInfo: component.insideDataSourceInfo,
|
|
21831
|
+
outDataSourceInfo: component.outDataSourceInfo || [],
|
|
21832
|
+
matchType: (_ruleTypeMap$componen = ruleTypeMap[component.behaviorType][0]) === null || _ruleTypeMap$componen === void 0 ? void 0 : _ruleTypeMap$componen.id,
|
|
21833
|
+
parentCode: component.parent ? component.parent.columnCode : '',
|
|
21834
|
+
parentId: component.parent ? component.parent.id : '',
|
|
21835
|
+
parentBehaviorType: component.parent ? component.parent.behaviorType : ''
|
|
21836
|
+
};
|
|
21837
|
+
switch (data.behaviorType) {
|
|
21838
|
+
case 1: //文本
|
|
21839
|
+
case 9: //评分
|
|
21840
|
+
case 11:
|
|
21841
|
+
//富文本
|
|
21842
|
+
{
|
|
21843
|
+
data.value = '';
|
|
21844
|
+
break;
|
|
21845
|
+
}
|
|
21846
|
+
case 3: //单选
|
|
21847
|
+
case 4:
|
|
21848
|
+
//下拉
|
|
21849
|
+
{
|
|
21850
|
+
if (component.insideDataSourceInfo && component.insideDataSourceInfo.type) {
|
|
21851
|
+
data.postData = _objectSpread({
|
|
21852
|
+
appId: component.appId,
|
|
21853
|
+
projectId: component.tableId
|
|
21854
|
+
}, component.insideDataSourceInfo);
|
|
21855
|
+
data.pathUrl = '/v2/project/column/select';
|
|
21856
|
+
}
|
|
21857
|
+
data.value = {};
|
|
21858
|
+
//筛选时,当计算条件是等于、不等于、为空、不为空时,值是空对象,其他条件都是数组
|
|
21859
|
+
if (data.matchType && !['1', '2', '9', '10'].includes(data.matchType)) {
|
|
21860
|
+
data.value = [];
|
|
21861
|
+
}
|
|
21862
|
+
break;
|
|
21863
|
+
}
|
|
21864
|
+
case 5: //多选
|
|
21865
|
+
case 6: //联动组件
|
|
21866
|
+
case 20: //多选联动组件
|
|
21867
|
+
case 12:
|
|
21868
|
+
//标签
|
|
21869
|
+
{
|
|
21870
|
+
if (component.parent && [14, 15].includes(component.parent.behaviorType)) {
|
|
21871
|
+
data.pathUrl = '/address/getAreaDataList';
|
|
21872
|
+
}
|
|
21873
|
+
data.value = [];
|
|
21874
|
+
break;
|
|
21875
|
+
}
|
|
21876
|
+
case 10:
|
|
21877
|
+
//附件
|
|
21878
|
+
{
|
|
21879
|
+
data.pathUrl = bn_util_getApiBaseUrl() + "/v2/attachment/upload/task";
|
|
21880
|
+
data.value = [];
|
|
21881
|
+
break;
|
|
21882
|
+
}
|
|
21883
|
+
case 2: //数值
|
|
21884
|
+
case 7:
|
|
21885
|
+
//日期
|
|
21886
|
+
{
|
|
21887
|
+
data.value = '';
|
|
21888
|
+
//筛选时,值是空对象
|
|
21889
|
+
if (data.matchType) {
|
|
21890
|
+
data.value = {
|
|
21891
|
+
start: '',
|
|
21892
|
+
end: ''
|
|
21893
|
+
};
|
|
21894
|
+
}
|
|
21895
|
+
break;
|
|
21896
|
+
}
|
|
21897
|
+
case 8:
|
|
21898
|
+
//日期区间
|
|
21899
|
+
{
|
|
21900
|
+
data.value = [];
|
|
21901
|
+
//筛选时,值是空对象
|
|
21902
|
+
if (data.matchType) {
|
|
21903
|
+
data.value = {
|
|
21904
|
+
start: '',
|
|
21905
|
+
end: ''
|
|
21906
|
+
};
|
|
21907
|
+
}
|
|
21908
|
+
break;
|
|
21909
|
+
}
|
|
21910
|
+
case 13:
|
|
21911
|
+
//子表单
|
|
21912
|
+
{
|
|
21913
|
+
data.value = [];
|
|
21914
|
+
data.moduleDefinition = data.moduleDefinition ? data.moduleDefinition : [];
|
|
21915
|
+
var moduleDefinition = [];
|
|
21916
|
+
for (var i in data.moduleDefinition) {
|
|
21917
|
+
var childColumn = tidyRuleComponent(data.moduleDefinition[i]);
|
|
21918
|
+
if (childColumn) {
|
|
21919
|
+
moduleDefinition.push(childColumn);
|
|
21920
|
+
}
|
|
21921
|
+
}
|
|
21922
|
+
data.moduleDefinition = moduleDefinition;
|
|
21923
|
+
break;
|
|
21924
|
+
}
|
|
21925
|
+
}
|
|
21926
|
+
return data;
|
|
21927
|
+
}
|
|
21928
|
+
|
|
21929
|
+
/**
|
|
21930
|
+
* 格式化规则配置组件列表
|
|
21931
|
+
* */
|
|
21932
|
+
function tidyRuleComponents(components, appId, tableId) {
|
|
21933
|
+
var componentList = [];
|
|
21934
|
+
components.forEach(function (item) {
|
|
21935
|
+
if ([13, 14, 15].includes(item.behaviorType)) {
|
|
21936
|
+
item.moduleDefinition.forEach(function (ite) {
|
|
21937
|
+
var component = tidyRuleComponent(_objectSpread(_objectSpread({}, ite), {}, {
|
|
21938
|
+
name: "".concat(item.name, "-").concat(ite.name),
|
|
21939
|
+
parent: item,
|
|
21940
|
+
appId: appId,
|
|
21941
|
+
tableId: tableId
|
|
21942
|
+
}));
|
|
21943
|
+
if (component) {
|
|
21944
|
+
componentList.push(component);
|
|
21945
|
+
}
|
|
21946
|
+
});
|
|
21947
|
+
} else {
|
|
21948
|
+
var component = tidyRuleComponent(_objectSpread(_objectSpread({}, item), {}, {
|
|
21949
|
+
appId: appId,
|
|
21950
|
+
tableId: tableId
|
|
21951
|
+
}));
|
|
21952
|
+
if (component) {
|
|
21953
|
+
componentList.push(component);
|
|
21954
|
+
}
|
|
21955
|
+
}
|
|
21956
|
+
});
|
|
21957
|
+
return componentList;
|
|
21958
|
+
}
|
|
21959
|
+
|
|
21960
|
+
/**
|
|
21961
|
+
* 将高级筛选的value格式化成json
|
|
21962
|
+
* */
|
|
21963
|
+
function searchValueToJson(components) {
|
|
21964
|
+
var list = cloneDeep(components);
|
|
21965
|
+
list.forEach(function (item) {
|
|
21966
|
+
if (item.value != null) {
|
|
21967
|
+
// 排除 null 和 undefined
|
|
21968
|
+
var valueType = bn_util_typeof(item.value);
|
|
21969
|
+
// 保留 string、number 和 boolean 原始值,其他都转换为 JSON
|
|
21970
|
+
if (valueType !== 'string' && valueType !== 'number' && valueType !== 'boolean') {
|
|
21971
|
+
try {
|
|
21972
|
+
item.value = JSON.stringify(item.value);
|
|
21973
|
+
} catch (e) {
|
|
21974
|
+
console.warn('JSON stringify failed for value:', item.value);
|
|
21975
|
+
item.value = String(item.value); // 降级处理
|
|
21976
|
+
}
|
|
21977
|
+
}
|
|
21978
|
+
}
|
|
21979
|
+
});
|
|
21980
|
+
return list;
|
|
21981
|
+
}
|
|
21982
|
+
|
|
21983
|
+
/**
|
|
21984
|
+
* 格式化查看、高级筛选的组件信息
|
|
21985
|
+
* @param Object component 组件信息
|
|
21986
|
+
* @param String power 权限字段,跟简易工单admin配置对应,不穿则不校验权限
|
|
21987
|
+
* */
|
|
21988
|
+
function formatComponent(component, power) {
|
|
21989
|
+
// 先校验权限 展示的地方特殊判断下id
|
|
21990
|
+
if (power && component.extraInfo[power] != 1) {
|
|
21991
|
+
return null;
|
|
21992
|
+
}
|
|
21993
|
+
var data = {
|
|
21994
|
+
id: component.id,
|
|
21995
|
+
type: component.type,
|
|
21996
|
+
behaviorType: component.behaviorType,
|
|
21997
|
+
defaultInfo: component.defaultInfo,
|
|
21998
|
+
columnCode: component.columnCode,
|
|
21999
|
+
name: component.name,
|
|
22000
|
+
extraInfo: component.extraInfo || {},
|
|
22001
|
+
style: component.style || {},
|
|
22002
|
+
moduleDefinition: component.moduleDefinition || [],
|
|
22003
|
+
insideDataSourceInfo: component.insideDataSourceInfo,
|
|
22004
|
+
outDataSourceInfo: component.outDataSourceInfo || []
|
|
22005
|
+
};
|
|
22006
|
+
// 高级筛选条件
|
|
22007
|
+
if (power == 'queryShow') {
|
|
22008
|
+
var _searchTypeMap$compon;
|
|
22009
|
+
data.searchType = (_searchTypeMap$compon = searchTypeMap[component.behaviorType][0]) === null || _searchTypeMap$compon === void 0 ? void 0 : _searchTypeMap$compon.id;
|
|
22010
|
+
data.parentCode = component.parent ? component.parent.columnCode : null;
|
|
22011
|
+
// 过滤公共筛选条件
|
|
22012
|
+
if (['alarm_status', 'sync_status'].includes(component.columnCode)) {
|
|
22013
|
+
return null;
|
|
22014
|
+
}
|
|
22015
|
+
}
|
|
22016
|
+
switch (data.behaviorType) {
|
|
22017
|
+
case 1: //文本
|
|
22018
|
+
case 9: //评分
|
|
22019
|
+
case 11:
|
|
22020
|
+
//富文本
|
|
22021
|
+
{
|
|
22022
|
+
data.value = '';
|
|
22023
|
+
break;
|
|
22024
|
+
}
|
|
22025
|
+
case 3: //单选
|
|
22026
|
+
case 4:
|
|
22027
|
+
//下拉
|
|
22028
|
+
{
|
|
22029
|
+
if (component.insideDataSourceInfo && component.insideDataSourceInfo.type) {
|
|
22030
|
+
data.postData = _objectSpread({
|
|
22031
|
+
appId: component.appId,
|
|
22032
|
+
projectId: component.tableId,
|
|
22033
|
+
ids: JSON.stringify(component.insideDataSourceInfo)
|
|
22034
|
+
}, component.insideDataSourceInfo);
|
|
22035
|
+
if (component.insideDataSourceInfo.type == 'user') {
|
|
22036
|
+
data.postData.selectParams = "{\"userColId\":\"-1\"}";
|
|
22037
|
+
data.moduleDefinition = cloneDeep(userConst);
|
|
22038
|
+
}
|
|
22039
|
+
data.pathUrl = '/v2/project/column/select';
|
|
22040
|
+
}
|
|
22041
|
+
data.value = {};
|
|
22042
|
+
//筛选时,当计算条件是等于、不等于、为空、不为空时,值是空对象,其他条件都是数组
|
|
22043
|
+
if (data.searchType && !['1', '2', '9', '10'].includes(data.searchType)) {
|
|
22044
|
+
data.value = [];
|
|
22045
|
+
}
|
|
22046
|
+
break;
|
|
22047
|
+
}
|
|
22048
|
+
case 5: //多选
|
|
22049
|
+
case 6: //联动组件
|
|
22050
|
+
case 20: //多选联动组件
|
|
22051
|
+
case 12:
|
|
22052
|
+
//标签
|
|
22053
|
+
{
|
|
22054
|
+
if (component.parent && [14, 15].includes(component.parent.behaviorType)) {
|
|
22055
|
+
data.pathUrl = '/address/getAreaDataList';
|
|
22056
|
+
}
|
|
22057
|
+
data.value = [];
|
|
22058
|
+
break;
|
|
22059
|
+
}
|
|
22060
|
+
case 10:
|
|
22061
|
+
//附件
|
|
22062
|
+
{
|
|
22063
|
+
data.pathUrl = bn_util_getApiBaseUrl() + "/v2/attachment/upload/task";
|
|
22064
|
+
data.value = [];
|
|
22065
|
+
break;
|
|
22066
|
+
}
|
|
22067
|
+
case 2: //数值
|
|
22068
|
+
case 7:
|
|
22069
|
+
//日期
|
|
22070
|
+
{
|
|
22071
|
+
data.value = '';
|
|
22072
|
+
//筛选时,值是空对象
|
|
22073
|
+
if (data.searchType) {
|
|
22074
|
+
data.value = {
|
|
22075
|
+
start: '',
|
|
22076
|
+
end: ''
|
|
22077
|
+
};
|
|
22078
|
+
}
|
|
22079
|
+
break;
|
|
22080
|
+
}
|
|
22081
|
+
case 8:
|
|
22082
|
+
//日期区间
|
|
22083
|
+
{
|
|
22084
|
+
data.value = [];
|
|
22085
|
+
//筛选时,值是空对象
|
|
22086
|
+
if (data.searchType) {
|
|
22087
|
+
data.value = {
|
|
22088
|
+
start: '',
|
|
22089
|
+
end: ''
|
|
22090
|
+
};
|
|
22091
|
+
}
|
|
22092
|
+
break;
|
|
22093
|
+
}
|
|
22094
|
+
case 13:
|
|
22095
|
+
//子表单
|
|
22096
|
+
{
|
|
22097
|
+
data.value = [];
|
|
22098
|
+
data.moduleDefinition = data.moduleDefinition ? data.moduleDefinition : [];
|
|
22099
|
+
var moduleDefinition = [];
|
|
22100
|
+
for (var i in data.moduleDefinition) {
|
|
22101
|
+
var childColumn = formatComponent(data.moduleDefinition[i], power);
|
|
22102
|
+
if (childColumn) {
|
|
22103
|
+
moduleDefinition.push(childColumn);
|
|
22104
|
+
}
|
|
22105
|
+
}
|
|
22106
|
+
data.moduleDefinition = moduleDefinition;
|
|
22107
|
+
break;
|
|
22108
|
+
}
|
|
22109
|
+
case 14: //地址组件
|
|
22110
|
+
case 15:
|
|
22111
|
+
//收寄信息组件
|
|
22112
|
+
{
|
|
22113
|
+
var val = {};
|
|
22114
|
+
data.moduleDefinition.forEach(function (item) {
|
|
22115
|
+
val[item.columnCode] = item.behaviorType == 6 ? [] : '';
|
|
22116
|
+
});
|
|
22117
|
+
data.value = val;
|
|
22118
|
+
}
|
|
22119
|
+
}
|
|
22120
|
+
return data;
|
|
22121
|
+
}
|
|
22122
|
+
|
|
22123
|
+
/**
|
|
22124
|
+
* 格式化高级筛选组件列表
|
|
22125
|
+
* */
|
|
22126
|
+
function getSearchComponents(components, appId, tableId) {
|
|
22127
|
+
var componentList = [];
|
|
22128
|
+
components.forEach(function (item) {
|
|
22129
|
+
if ([13, 14, 15].includes(item.behaviorType) && item.extraInfo.queryShow == 1 && item.moduleDefinition.length > 0) {
|
|
22130
|
+
item.moduleDefinition.forEach(function (ite) {
|
|
22131
|
+
var component = formatComponent(_objectSpread(_objectSpread({}, ite), {}, {
|
|
22132
|
+
name: "".concat(item.name, "-").concat(ite.name),
|
|
22133
|
+
parent: item,
|
|
22134
|
+
appId: appId,
|
|
22135
|
+
tableId: tableId
|
|
22136
|
+
}), 'queryShow');
|
|
22137
|
+
if (component) {
|
|
22138
|
+
componentList.push(component);
|
|
22139
|
+
}
|
|
22140
|
+
});
|
|
22141
|
+
} else {
|
|
22142
|
+
var component = formatComponent(_objectSpread(_objectSpread({}, item), {}, {
|
|
22143
|
+
appId: appId,
|
|
22144
|
+
tableId: tableId
|
|
22145
|
+
}), 'queryShow');
|
|
22146
|
+
if (component) {
|
|
22147
|
+
componentList.push(component);
|
|
22148
|
+
}
|
|
22149
|
+
}
|
|
22150
|
+
});
|
|
22151
|
+
return componentList;
|
|
22152
|
+
}
|
|
22153
|
+
|
|
22154
|
+
/**
|
|
22155
|
+
* 格式化查看、详情组件列表
|
|
22156
|
+
* */
|
|
22157
|
+
function getWatchComponents(components, appId, tableId) {
|
|
22158
|
+
var power = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'listShow';
|
|
22159
|
+
var componentList = [];
|
|
22160
|
+
components.forEach(function (item) {
|
|
22161
|
+
var component = formatComponent(_objectSpread(_objectSpread({}, item), {}, {
|
|
22162
|
+
appId: appId,
|
|
22163
|
+
tableId: tableId
|
|
22164
|
+
}), power);
|
|
22165
|
+
if (component) {
|
|
22166
|
+
componentList.push(component);
|
|
22167
|
+
}
|
|
22168
|
+
});
|
|
22169
|
+
return componentList;
|
|
22170
|
+
}
|
|
22171
|
+
|
|
22172
|
+
/**
|
|
22173
|
+
* 格式化新建、编辑 组件的value
|
|
22174
|
+
* @param Object component 组件信息
|
|
22175
|
+
* @param Object values 编辑表单时,传入的工单数据
|
|
22176
|
+
* @param String power 权限,当不是编辑的时候,将只给有新建权限的组件进行赋值 component.extraInfo[power]
|
|
22177
|
+
* */
|
|
22178
|
+
function formatColumnVal(component, values, power) {
|
|
22179
|
+
var data = {
|
|
22180
|
+
id: component.id,
|
|
22181
|
+
type: component.type,
|
|
22182
|
+
behaviorType: component.behaviorType,
|
|
22183
|
+
columnCode: component.columnCode,
|
|
22184
|
+
defaultInfo: component.defaultInfo,
|
|
22185
|
+
name: component.name,
|
|
22186
|
+
extraInfo: component.extraInfo || {},
|
|
22187
|
+
style: component.style || {},
|
|
22188
|
+
moduleDefinition: component.moduleDefinition || [],
|
|
22189
|
+
insideDataSourceInfo: component.insideDataSourceInfo,
|
|
22190
|
+
outDataSourceInfo: component.outDataSourceInfo || []
|
|
22191
|
+
};
|
|
22192
|
+
var isSetValue = false;
|
|
22193
|
+
try {
|
|
22194
|
+
isSetValue = values && data.extraInfo[power];
|
|
22195
|
+
} catch (e) {
|
|
22196
|
+
// 缺少判断,isSetValue保持false
|
|
22197
|
+
}
|
|
22198
|
+
switch (data.behaviorType) {
|
|
22199
|
+
case 1: //文本
|
|
22200
|
+
case 2: //数值
|
|
22201
|
+
case 7: //日期
|
|
22202
|
+
case 9: //评分
|
|
22203
|
+
case 11:
|
|
22204
|
+
//富文本
|
|
22205
|
+
{
|
|
22206
|
+
if (isSetValue) {
|
|
22207
|
+
data.value = values[data.columnCode] || '';
|
|
22208
|
+
} else {
|
|
22209
|
+
data.value = data.defaultInfo || '';
|
|
22210
|
+
}
|
|
22211
|
+
break;
|
|
22212
|
+
}
|
|
22213
|
+
case 3: //单选
|
|
22214
|
+
case 4:
|
|
22215
|
+
//下拉
|
|
22216
|
+
{
|
|
22217
|
+
if (component.insideDataSourceInfo && component.insideDataSourceInfo.type) {
|
|
22218
|
+
data.postData = _objectSpread({
|
|
22219
|
+
appId: component.appId,
|
|
22220
|
+
projectId: component.tableId,
|
|
22221
|
+
ids: JSON.stringify(component.insideDataSourceInfo)
|
|
22222
|
+
}, component.insideDataSourceInfo);
|
|
22223
|
+
if (component.insideDataSourceInfo.type == 'user') {
|
|
22224
|
+
data.postData.selectParams = "{\"userColId\":\"-1\"}";
|
|
22225
|
+
}
|
|
22226
|
+
data.pathUrl = '/v2/project/column/select';
|
|
22227
|
+
}
|
|
22228
|
+
if (isSetValue) {
|
|
22229
|
+
data.value = values[data.columnCode] || {};
|
|
22230
|
+
} else {
|
|
22231
|
+
try {
|
|
22232
|
+
data.value = component.defaultInfo || {};
|
|
22233
|
+
} catch (e) {
|
|
22234
|
+
data.value = {};
|
|
22235
|
+
}
|
|
22236
|
+
}
|
|
22237
|
+
break;
|
|
22238
|
+
}
|
|
22239
|
+
case 5: //多选
|
|
22240
|
+
case 6: //联动组件
|
|
22241
|
+
case 8: //日期区间
|
|
22242
|
+
case 20: //多选联动组件
|
|
22243
|
+
case 12:
|
|
22244
|
+
//标签
|
|
22245
|
+
{
|
|
22246
|
+
if (isSetValue) {
|
|
22247
|
+
if (data.behaviorType == 6 && values[data.columnCode]) {
|
|
22248
|
+
data.value = values[data.columnCode].map(function (i) {
|
|
22249
|
+
return i.code;
|
|
22250
|
+
});
|
|
22251
|
+
} else {
|
|
22252
|
+
data.value = values[data.columnCode] || [];
|
|
22253
|
+
}
|
|
22254
|
+
} else {
|
|
22255
|
+
try {
|
|
22256
|
+
data.value = component.defaultInfo || [];
|
|
22257
|
+
if (data.behaviorType == 6 && component.defaultInfo) {
|
|
22258
|
+
data.value = component.defaultInfo.map(function (i) {
|
|
22259
|
+
return i.code;
|
|
22260
|
+
});
|
|
22261
|
+
}
|
|
22262
|
+
} catch (e) {
|
|
22263
|
+
data.value = [];
|
|
22264
|
+
}
|
|
22265
|
+
}
|
|
22266
|
+
break;
|
|
22267
|
+
}
|
|
22268
|
+
case 10:
|
|
22269
|
+
//附件
|
|
22270
|
+
{
|
|
22271
|
+
data.pathUrl = bn_util_getApiBaseUrl() + "/v2/attachment/upload/task";
|
|
22272
|
+
if (isSetValue) {
|
|
22273
|
+
data.value = values[data.columnCode] || [];
|
|
22274
|
+
} else {
|
|
22275
|
+
try {
|
|
22276
|
+
data.value = component.defaultInfo || [];
|
|
22277
|
+
} catch (e) {
|
|
22278
|
+
data.value = [];
|
|
22279
|
+
}
|
|
22280
|
+
}
|
|
22281
|
+
break;
|
|
22282
|
+
}
|
|
22283
|
+
case 13:
|
|
22284
|
+
//子表单
|
|
22285
|
+
{
|
|
22286
|
+
data.value = values ? values[data.columnCode] || [] : [];
|
|
22287
|
+
data.moduleDefinition = data.moduleDefinition ? data.moduleDefinition : [];
|
|
22288
|
+
var moduleDefinition = [];
|
|
22289
|
+
for (var i in data.moduleDefinition) {
|
|
22290
|
+
var childColumn = formatColumnVal(data.moduleDefinition[i]);
|
|
22291
|
+
if (childColumn) {
|
|
22292
|
+
moduleDefinition.push(childColumn);
|
|
22293
|
+
}
|
|
22294
|
+
}
|
|
22295
|
+
data.moduleDefinition = moduleDefinition;
|
|
22296
|
+
|
|
22297
|
+
// 性能优化:预先构建默认值映射,减少重复计算
|
|
22298
|
+
if (data.value.length > 0 && data.moduleDefinition.length > 0) {
|
|
22299
|
+
var defaultValueMap = {};
|
|
22300
|
+
data.moduleDefinition.forEach(function (definition) {
|
|
22301
|
+
defaultValueMap[definition.columnCode] = definition.value;
|
|
22302
|
+
});
|
|
22303
|
+
|
|
22304
|
+
// 修正data.value中的数据,确保每个对象都包含moduleDefinition中所有字段
|
|
22305
|
+
data.value.forEach(function (item) {
|
|
22306
|
+
// 直接在原对象上补充缺失字段,避免创建新对象
|
|
22307
|
+
for (var columnCode in defaultValueMap) {
|
|
22308
|
+
if (!(columnCode in item)) {
|
|
22309
|
+
item[columnCode] = defaultValueMap[columnCode];
|
|
22310
|
+
}
|
|
22311
|
+
}
|
|
22312
|
+
});
|
|
22313
|
+
}
|
|
22314
|
+
break;
|
|
22315
|
+
}
|
|
22316
|
+
case 14: //地址组件
|
|
22317
|
+
case 15:
|
|
22318
|
+
//收寄信息组件
|
|
22319
|
+
{
|
|
22320
|
+
var val = {};
|
|
22321
|
+
var editValue = values ? values[data.columnCode] : null;
|
|
22322
|
+
data.moduleDefinition.forEach(function (item) {
|
|
22323
|
+
if (editValue) {
|
|
22324
|
+
val[item.columnCode] = editValue[item.columnCode] || (item.behaviorType == 6 ? [] : '');
|
|
22325
|
+
} else {
|
|
22326
|
+
val[item.columnCode] = item.behaviorType == 6 ? [] : '';
|
|
22327
|
+
}
|
|
22328
|
+
});
|
|
22329
|
+
data.value = val;
|
|
22330
|
+
break;
|
|
22331
|
+
}
|
|
22332
|
+
}
|
|
22333
|
+
return data;
|
|
22334
|
+
}
|
|
22335
|
+
|
|
22336
|
+
/**
|
|
22337
|
+
* 格式化查看、编辑、组件列表
|
|
22338
|
+
* */
|
|
22339
|
+
function tidyComponents(components, appId, tableId, values) {
|
|
22340
|
+
var componentList = [];
|
|
22341
|
+
var power = values && values.id ? 'isEditable' : 'isAddable';
|
|
22342
|
+
components.forEach(function (item) {
|
|
22343
|
+
var component = formatColumnVal(_objectSpread(_objectSpread({}, item), {}, {
|
|
22344
|
+
appId: appId,
|
|
22345
|
+
tableId: tableId
|
|
22346
|
+
}), values, power);
|
|
22347
|
+
if (component) {
|
|
22348
|
+
componentList.push(component);
|
|
22349
|
+
}
|
|
22350
|
+
});
|
|
22351
|
+
return componentList;
|
|
22352
|
+
}
|
|
22353
|
+
|
|
22354
|
+
/**
|
|
22355
|
+
* 展示子表单详情,将附件的完整value进行组装,只能在展示的时候用哦,编辑可别用
|
|
22356
|
+
* component 子表单
|
|
22357
|
+
* data 整条工单数据包含子表单包含inside
|
|
22358
|
+
* */
|
|
22359
|
+
function tidyShowSubDataFile(component, data) {
|
|
22360
|
+
var fullSubData = cloneDeep(data.inside[component.columnCode]);
|
|
22361
|
+
var subData = cloneDeep(data[component.columnCode]);
|
|
22362
|
+
var files = component.moduleDefinition.filter(function (c) {
|
|
22363
|
+
return c.behaviorType == 10;
|
|
22364
|
+
});
|
|
22365
|
+
if (files.length > 0) {
|
|
22366
|
+
subData.forEach(function (item, index) {
|
|
22367
|
+
item.inside = {};
|
|
22368
|
+
files.forEach(function (i) {
|
|
22369
|
+
if (item[i.columnCode]) {
|
|
22370
|
+
item.inside[i.columnCode] = fullSubData[index][i.columnCode];
|
|
22371
|
+
}
|
|
22372
|
+
});
|
|
22373
|
+
});
|
|
22374
|
+
}
|
|
22375
|
+
return subData;
|
|
22376
|
+
}
|
|
22377
|
+
|
|
22378
|
+
/**
|
|
22379
|
+
* 整理跳转工作表的筛选条件
|
|
22380
|
+
* */
|
|
22381
|
+
function tidyJumpSearchData(searchData, components) {
|
|
22382
|
+
var searchList = [];
|
|
22383
|
+
try {
|
|
22384
|
+
searchData.forEach(function (item) {
|
|
22385
|
+
var component = components.find(function (i) {
|
|
22386
|
+
return i.columnCode == item.id;
|
|
22387
|
+
});
|
|
22388
|
+
if (component) {
|
|
22389
|
+
searchList.push({
|
|
22390
|
+
behaviorType: component.behaviorType,
|
|
22391
|
+
columnCode: component.columnCode,
|
|
22392
|
+
name: component.name,
|
|
22393
|
+
searchType: item.searchType,
|
|
22394
|
+
value: item.value
|
|
22395
|
+
});
|
|
22396
|
+
}
|
|
22397
|
+
});
|
|
22398
|
+
} catch (e) {
|
|
22399
|
+
console.log('tidyJumpSearchDataErr:' + e);
|
|
22400
|
+
}
|
|
22401
|
+
return searchList;
|
|
22402
|
+
}
|
|
22403
|
+
|
|
22404
|
+
/**
|
|
22405
|
+
* 接口日志记录器,将系统最近100条接口请求记录到localStrage缓存中去
|
|
22406
|
+
* @param {Object} res 接口返回体
|
|
22407
|
+
*/
|
|
22408
|
+
function formatLogDate() {
|
|
22409
|
+
var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
|
|
22410
|
+
var d = new Date(date);
|
|
22411
|
+
var pad = function pad(n) {
|
|
22412
|
+
return String(n).padStart(2, '0');
|
|
22413
|
+
};
|
|
22414
|
+
var year = d.getFullYear();
|
|
22415
|
+
var month = pad(d.getMonth() + 1);
|
|
22416
|
+
var day = pad(d.getDate());
|
|
22417
|
+
var hour = pad(d.getHours());
|
|
22418
|
+
var minute = pad(d.getMinutes());
|
|
22419
|
+
var second = pad(d.getSeconds());
|
|
22420
|
+
return "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hour, ":").concat(minute, ":").concat(second);
|
|
22421
|
+
}
|
|
22422
|
+
/**
|
|
22423
|
+
* 接口日志记录器,将系统最近100条接口请求记录到localStrage缓存中去
|
|
22424
|
+
* @param {Object} res 接口返回体
|
|
22425
|
+
*/
|
|
22426
|
+
var recordApiLog = function recordApiLog(res) {
|
|
22427
|
+
try {
|
|
22428
|
+
var logs = JSON.parse(localStorage.getItem('webLog') || 'false') || [];
|
|
22429
|
+
var sessionInfo = JSON.parse(localStorage.getItem('sessionInfo') || 'false') || {};
|
|
22430
|
+
// 获取用户信息
|
|
22431
|
+
try {
|
|
22432
|
+
var params = res.config.data ? JSON.parse(res.config.data) : {};
|
|
22433
|
+
var data = res.data.data;
|
|
22434
|
+
if (res.config.url.indexOf('/v2/logins/checkSession') >= 0) {
|
|
22435
|
+
var _data$userInfo, _data$userInfo2, _data$company, _data$company2;
|
|
22436
|
+
sessionInfo.userName = (_data$userInfo = data.userInfo) === null || _data$userInfo === void 0 ? void 0 : _data$userInfo.workNick;
|
|
22437
|
+
sessionInfo.userId = (_data$userInfo2 = data.userInfo) === null || _data$userInfo2 === void 0 ? void 0 : _data$userInfo2.id;
|
|
22438
|
+
sessionInfo.companyName = (_data$company = data.company) === null || _data$company === void 0 ? void 0 : _data$company.companyName;
|
|
22439
|
+
sessionInfo.companyId = (_data$company2 = data.company) === null || _data$company2 === void 0 ? void 0 : _data$company2.id;
|
|
22440
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22441
|
+
} else if (res.config.url.indexOf('/biztable/definition/table?tableCode') >= 0) {
|
|
22442
|
+
sessionInfo.appId = data.appId;
|
|
22443
|
+
sessionInfo.tableId = data.tableId;
|
|
22444
|
+
sessionInfo.tableCode = data.tableCode;
|
|
22445
|
+
sessionInfo.taskId = '';
|
|
22446
|
+
sessionInfo.url = window.location.href;
|
|
22447
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22448
|
+
} else if (res.config.url.indexOf('/biztable/content/get') >= 0) {
|
|
22449
|
+
sessionInfo.taskId = data.view.id;
|
|
22450
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22451
|
+
} else if (res.config.url.indexOf('/v2/project/task/queryV3/') >= 0) {
|
|
22452
|
+
sessionInfo.appId = params.appId;
|
|
22453
|
+
sessionInfo.tableId = params.id;
|
|
22454
|
+
sessionInfo.taskId = '';
|
|
22455
|
+
sessionInfo.tableCode = '';
|
|
22456
|
+
sessionInfo.workflowId = '';
|
|
22457
|
+
sessionInfo.workFlowNodeId = '';
|
|
22458
|
+
sessionInfo.instanceId = '';
|
|
22459
|
+
sessionInfo.processCode = '';
|
|
22460
|
+
sessionInfo.url = window.location.href;
|
|
22461
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22462
|
+
} else if (res.config.url.indexOf('/v2/project/task/queryByTaskId') >= 0) {
|
|
22463
|
+
sessionInfo.taskId = data.id;
|
|
22464
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22465
|
+
}
|
|
22466
|
+
// 流程代办取小程序id,工作表id
|
|
22467
|
+
else if (res.config.url.indexOf('/v2/unitman/list/todo/pendingTaskList') >= 0) {
|
|
22468
|
+
sessionInfo.appId = params.appId;
|
|
22469
|
+
sessionInfo.tableId = params.tableId;
|
|
22470
|
+
sessionInfo.taskId = '';
|
|
22471
|
+
sessionInfo.tableCode = '';
|
|
22472
|
+
sessionInfo.workflowId = '';
|
|
22473
|
+
sessionInfo.workFlowNodeId = '';
|
|
22474
|
+
sessionInfo.instanceId = '';
|
|
22475
|
+
sessionInfo.processCode = '';
|
|
22476
|
+
sessionInfo.url = window.location.href;
|
|
22477
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22478
|
+
}
|
|
22479
|
+
// 流程代办取流程详细信息
|
|
22480
|
+
else if (res.config.url.indexOf('v2/unitman/list/taskDetail') >= 0) {
|
|
22481
|
+
sessionInfo.taskId = params.tableTaskId;
|
|
22482
|
+
sessionInfo.workflowId = params.workflowId;
|
|
22483
|
+
sessionInfo.workFlowNodeId = params.workflowNodeId;
|
|
22484
|
+
sessionInfo.instanceId = data.workflowInstanceId;
|
|
22485
|
+
sessionInfo.processCode = data.processCode;
|
|
22486
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22487
|
+
}
|
|
22488
|
+
// 流程工单获取流程id
|
|
22489
|
+
else if (res.config.url.indexOf('/wf/config/findWfTmpVersionByInstanceId') >= 0) {
|
|
22490
|
+
sessionInfo.workflowId = data.id;
|
|
22491
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22492
|
+
} // 流程工单获取流程编号
|
|
22493
|
+
else if (res.config.url.indexOf('/wf/config/findWfTmpVersionByInstanceId') >= 0) {
|
|
22494
|
+
sessionInfo.taskId = data.id;
|
|
22495
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22496
|
+
} //获取流程其他信息
|
|
22497
|
+
else if (res.config.url.indexOf('/v2/scheduleCenter/query/queryNodeList') >= 0) {
|
|
22498
|
+
var node = data.content ? data.content[0] : {};
|
|
22499
|
+
sessionInfo.workFlowNodeId = node.templateNodeId;
|
|
22500
|
+
sessionInfo.instanceId = node.instanceId;
|
|
22501
|
+
sessionInfo.processCode = node.processCode;
|
|
22502
|
+
localStorage.setItem('sessionInfo', JSON.stringify(sessionInfo));
|
|
22503
|
+
}
|
|
22504
|
+
} catch (e) {
|
|
22505
|
+
console.log('apiLog:' + e);
|
|
22506
|
+
}
|
|
22507
|
+
var log = {
|
|
22508
|
+
url: res.config.url,
|
|
22509
|
+
code: res.data ? res.data.code : null,
|
|
22510
|
+
time: formatLogDate(res.headers.date),
|
|
22511
|
+
traceId: res.headers['trace-id'] || '未返回'
|
|
22512
|
+
};
|
|
22513
|
+
logs = [log].concat(bn_util_toConsumableArray(logs)).slice(0, 50);
|
|
22514
|
+
localStorage.setItem('webLog', JSON.stringify(logs));
|
|
22515
|
+
} catch (err) {
|
|
22516
|
+
console.log("\u4E00\u6761\u65E5\u5FD7\u672A\u80FD\u6210\u529F\u6355\u6349\uFF1A".concat(JSON.stringify(res)));
|
|
22517
|
+
}
|
|
22518
|
+
};
|
|
22519
|
+
/**
|
|
22520
|
+
* 跳转主应用路由
|
|
22521
|
+
* 无界子应用内通过 bus 通知主应用改地址栏;独立运行时跳转到主应用入口
|
|
22522
|
+
* @param {string|{ name?: string, path?: string, params?: object, query?: object }} route
|
|
22523
|
+
*/
|
|
22524
|
+
|
|
22525
|
+
function mainAppRouterPush(route) {
|
|
22526
|
+
if (window.__POWERED_BY_WUJIE__) {
|
|
22527
|
+
var _window$$wujie;
|
|
22528
|
+
(_window$$wujie = window.$wujie) === null || _window$$wujie === void 0 || _window$$wujie.bus.$emit('router-jump', route);
|
|
22529
|
+
} else {}
|
|
22530
|
+
}
|
|
22531
|
+
/**
|
|
22532
|
+
* 地址自动识别
|
|
22533
|
+
* */
|
|
22534
|
+
|
|
22535
|
+
;// ./install.js
|
|
22536
|
+
// install.js - BnAppletUi 组件库入口
|
|
22537
|
+
|
|
22538
|
+
|
|
22539
|
+
|
|
22540
|
+
|
|
22541
|
+
|
|
22542
|
+
|
|
22543
|
+
|
|
22544
|
+
|
|
22545
|
+
|
|
22546
|
+
|
|
22547
|
+
|
|
22548
|
+
|
|
22549
|
+
|
|
22550
|
+
|
|
22551
|
+
const BnAppletUi = {
|
|
22552
|
+
install: (Vue) => {
|
|
22553
|
+
Vue.component("BnAddress", BnAddress);
|
|
22554
|
+
Vue.component("BnAddressParse", BnAddressParse);
|
|
22555
|
+
Vue.component("BnCheck", BnCheck);
|
|
22556
|
+
Vue.component("BnDateRange", bnDateRange);
|
|
22557
|
+
Vue.component("BnDialog", dialog);
|
|
22558
|
+
Vue.component("BnDropdown", bnDropdown);
|
|
22559
|
+
Vue.component("BnFileView", BnFileView);
|
|
22560
|
+
Vue.component("BnFunText", bnFunText);
|
|
22561
|
+
Vue.component("BnInpNum", BnInpNum);
|
|
22562
|
+
Vue.component("BnInputNum", BnInputNum);
|
|
22563
|
+
Vue.component("BnRuleCondition", bnRuleCondition);
|
|
22564
|
+
Vue.component("BnSelect", BnSelect_select);
|
|
22565
|
+
Vue.component("BnFiTaxAutoComplete", BnFiTaxAutoComplete);
|
|
22566
|
+
}
|
|
22567
|
+
};
|
|
22568
|
+
|
|
22569
|
+
// 支持通过 CDN 方式引入时自动注册
|
|
22570
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
22571
|
+
window.Vue.use(BnAppletUi);
|
|
22572
|
+
}
|
|
22573
|
+
|
|
22574
|
+
// 导出插件对象(整体引入)
|
|
22575
|
+
// 使用方式:Vue.use(BnAppletUi)
|
|
22576
|
+
/* harmony default export */ const install = (BnAppletUi);
|
|
22577
|
+
|
|
22578
|
+
// 单独导出各组件(按需引入)
|
|
22579
|
+
|
|
22580
|
+
// 单独导出每个工具函数和常量,方便按需引入
|
|
20690
22581
|
|
|
20691
22582
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
20692
22583
|
|