eoss-ui 0.5.69 → 0.5.71
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/lib/button-group.js +34 -36
- package/lib/button.js +34 -36
- package/lib/checkbox-group.js +70 -56
- package/lib/data-table-form.js +37 -39
- package/lib/data-table.js +59 -59
- package/lib/date-picker.js +34 -36
- package/lib/dialog.js +49 -51
- package/lib/eoss-ui.common.js +665 -573
- package/lib/flow-group.js +34 -36
- package/lib/flow-list.js +36 -38
- package/lib/flow.js +40 -42
- package/lib/form.js +410 -376
- package/lib/handle-user.js +36 -38
- package/lib/handler.js +34 -36
- package/lib/index.js +1 -1
- package/lib/input-number.js +34 -36
- package/lib/input.js +65 -48
- package/lib/layout.js +2 -2
- package/lib/login.js +54 -55
- package/lib/main.js +39 -41
- package/lib/menu.js +5 -4
- package/lib/nav.js +34 -36
- package/lib/page.js +34 -36
- package/lib/player.js +34 -36
- package/lib/qr-code.js +34 -36
- package/lib/radio-group.js +69 -53
- package/lib/retrial-auth.js +34 -36
- package/lib/select-ganged.js +122 -106
- package/lib/select.js +115 -105
- package/lib/selector-panel.js +90 -76
- package/lib/selector.js +34 -36
- package/lib/sizer.js +36 -38
- package/lib/steps.js +60 -44
- package/lib/switch.js +34 -36
- package/lib/table-form.js +36 -38
- package/lib/tabs.js +34 -36
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/tips.js +59 -42
- package/lib/tree-group.js +34 -36
- package/lib/tree.js +93 -77
- package/lib/upload.js +111 -94
- package/lib/utils/util.js +34 -36
- package/lib/wujie.js +34 -36
- package/lib/wxlogin.js +34 -36
- package/package.json +2 -2
- package/packages/checkbox-group/src/main.vue +7 -1
- package/packages/data-table/src/main.vue +4 -2
- package/packages/dialog/src/main.vue +2 -3
- package/packages/form/src/main.vue +11 -2
- package/packages/input/src/main.vue +8 -1
- package/packages/login/src/main.vue +15 -11
- package/packages/menu/src/main.vue +3 -2
- package/packages/radio-group/src/main.vue +7 -1
- package/packages/select/src/main.vue +10 -10
- package/packages/select-ganged/src/main.vue +7 -1
- package/packages/selector-panel/src/main.vue +7 -1
- package/packages/steps/src/main.vue +9 -3
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/src/login.scss +1 -1
- package/packages/tips/src/main.vue +8 -1
- package/packages/tree/src/main.vue +8 -2
- package/packages/upload/src/main.vue +11 -2
- package/src/index.js +1 -1
- package/src/utils/util.js +34 -34
package/lib/eoss-ui.common.js
CHANGED
|
@@ -91,14 +91,14 @@ module.exports =
|
|
|
91
91
|
|
|
92
92
|
"use strict";
|
|
93
93
|
/* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
94
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
94
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8);
|
|
95
95
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
96
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
96
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
|
|
97
97
|
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
|
|
98
98
|
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
|
|
99
99
|
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
|
|
100
100
|
/* harmony import */ var _webSocket__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10);
|
|
101
|
-
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
101
|
+
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6);
|
|
102
102
|
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_5__);
|
|
103
103
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
104
104
|
|
|
@@ -153,21 +153,17 @@ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ store
|
|
|
153
153
|
* @param {Array} [encodes] - 需要对参数值进行encodeURIComponent编码的参数值名称
|
|
154
154
|
**/
|
|
155
155
|
// 请求
|
|
156
|
-
|
|
157
|
-
function getRequestKey(config) {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
if (pendingRequest.has(requestKey)) {
|
|
168
|
-
pendingRequest.delete(requestKey);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
156
|
+
// const pendingRequest = new Map();
|
|
157
|
+
// function getRequestKey(config) {
|
|
158
|
+
// const { method, url, params, data } = config;
|
|
159
|
+
// return [method, url, qs.stringify(params), qs.stringify(data)].join('&');
|
|
160
|
+
// };
|
|
161
|
+
// function delPendingRequest(config) {
|
|
162
|
+
// let requestKey = getRequestKey(config);
|
|
163
|
+
// if (pendingRequest.has(requestKey)) {
|
|
164
|
+
// pendingRequest.delete(requestKey);
|
|
165
|
+
// }
|
|
166
|
+
// }
|
|
171
167
|
var ajax = function ajax(_ref) {
|
|
172
168
|
var headers = _ref.headers,
|
|
173
169
|
method = _ref.method,
|
|
@@ -216,30 +212,32 @@ var ajax = function ajax(_ref) {
|
|
|
216
212
|
http.interceptors.request.use(function (config) {
|
|
217
213
|
config.headers.common = getStorage();
|
|
218
214
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
219
|
-
|
|
220
|
-
// 判断请求是否重复
|
|
221
|
-
if (pendingRequest.has(requestKey)) {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
// 把请求信息,添加请求到map当中
|
|
229
|
-
// 生成取消方法
|
|
230
|
-
config.cancelToken =
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
215
|
+
// let requestKey = getRequestKey(config);
|
|
216
|
+
// // 判断请求是否重复
|
|
217
|
+
// if (pendingRequest.has(requestKey)) {
|
|
218
|
+
// // 取消上次请求
|
|
219
|
+
// let cancel = pendingRequest.get(requestKey);
|
|
220
|
+
// cancel();
|
|
221
|
+
// // 删除请求信息
|
|
222
|
+
// pendingRequest.delete(requestKey);
|
|
223
|
+
// }
|
|
224
|
+
// // 把请求信息,添加请求到map当中
|
|
225
|
+
// // 生成取消方法
|
|
226
|
+
// config.cancelToken =
|
|
227
|
+
// config.cancelToken ||
|
|
228
|
+
// new axios.CancelToken(cancel => {
|
|
229
|
+
// // 把取消方法添加到map
|
|
230
|
+
// if (!pendingRequest.has(requestKey)) {
|
|
231
|
+
// pendingRequest.set(requestKey, cancel);
|
|
232
|
+
// }
|
|
233
|
+
// });
|
|
236
234
|
return config;
|
|
237
235
|
}, function (err) {
|
|
238
236
|
return err;
|
|
239
237
|
});
|
|
240
238
|
// 响应拦截
|
|
241
239
|
http.interceptors.response.use(function (response) {
|
|
242
|
-
delPendingRequest(response.config);
|
|
240
|
+
// delPendingRequest(response.config);
|
|
243
241
|
loading && loading.close();
|
|
244
242
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
245
243
|
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
@@ -356,9 +354,9 @@ var ajax = function ajax(_ref) {
|
|
|
356
354
|
}
|
|
357
355
|
}, function (error) {
|
|
358
356
|
loading && loading.close();
|
|
359
|
-
if (!
|
|
360
|
-
|
|
361
|
-
}
|
|
357
|
+
// if (!axios.isCancel(error)) {
|
|
358
|
+
// delPendingRequest(error.config || {});
|
|
359
|
+
// }
|
|
362
360
|
if (error && error.response) {
|
|
363
361
|
if (error.response.status) {
|
|
364
362
|
switch (error.response.status) {
|
|
@@ -3490,13 +3488,13 @@ var formContents = '/config/admin/online/onlineForm/render';
|
|
|
3490
3488
|
/* 2 */
|
|
3491
3489
|
/***/ (function(module, exports) {
|
|
3492
3490
|
|
|
3493
|
-
module.exports = require("
|
|
3491
|
+
module.exports = require("throttle-debounce");
|
|
3494
3492
|
|
|
3495
3493
|
/***/ }),
|
|
3496
3494
|
/* 3 */
|
|
3497
3495
|
/***/ (function(module, exports) {
|
|
3498
3496
|
|
|
3499
|
-
module.exports = require("
|
|
3497
|
+
module.exports = require("babel-runtime/regenerator");
|
|
3500
3498
|
|
|
3501
3499
|
/***/ }),
|
|
3502
3500
|
/* 4 */
|
|
@@ -3508,25 +3506,25 @@ module.exports = require("interactjs");
|
|
|
3508
3506
|
/* 5 */
|
|
3509
3507
|
/***/ (function(module, exports) {
|
|
3510
3508
|
|
|
3511
|
-
module.exports = require("
|
|
3509
|
+
module.exports = require("qs");
|
|
3512
3510
|
|
|
3513
3511
|
/***/ }),
|
|
3514
3512
|
/* 6 */
|
|
3515
3513
|
/***/ (function(module, exports) {
|
|
3516
3514
|
|
|
3517
|
-
module.exports = require("
|
|
3515
|
+
module.exports = require("eoss-element");
|
|
3518
3516
|
|
|
3519
3517
|
/***/ }),
|
|
3520
3518
|
/* 7 */
|
|
3521
3519
|
/***/ (function(module, exports) {
|
|
3522
3520
|
|
|
3523
|
-
module.exports = require("
|
|
3521
|
+
module.exports = require("video.js");
|
|
3524
3522
|
|
|
3525
3523
|
/***/ }),
|
|
3526
3524
|
/* 8 */
|
|
3527
3525
|
/***/ (function(module, exports) {
|
|
3528
3526
|
|
|
3529
|
-
module.exports = require("
|
|
3527
|
+
module.exports = require("axios");
|
|
3530
3528
|
|
|
3531
3529
|
/***/ }),
|
|
3532
3530
|
/* 9 */
|
|
@@ -5891,8 +5889,8 @@ cascader_src_main.install = function (Vue) {
|
|
|
5891
5889
|
};
|
|
5892
5890
|
|
|
5893
5891
|
/* harmony default export */ var cascader = (cascader_src_main);
|
|
5894
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=template&id=
|
|
5895
|
-
var
|
|
5892
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=template&id=6858c5b1&
|
|
5893
|
+
var mainvue_type_template_id_6858c5b1_render = function () {
|
|
5896
5894
|
var _vm = this
|
|
5897
5895
|
var _h = _vm.$createElement
|
|
5898
5896
|
var _c = _vm._self._c || _h
|
|
@@ -6024,15 +6022,18 @@ var mainvue_type_template_id_63001e87_render = function () {
|
|
|
6024
6022
|
)
|
|
6025
6023
|
: _vm._e()
|
|
6026
6024
|
}
|
|
6027
|
-
var
|
|
6028
|
-
|
|
6025
|
+
var mainvue_type_template_id_6858c5b1_staticRenderFns = []
|
|
6026
|
+
mainvue_type_template_id_6858c5b1_render._withStripped = true
|
|
6029
6027
|
|
|
6030
6028
|
|
|
6031
|
-
// CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=
|
|
6029
|
+
// CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=6858c5b1&
|
|
6032
6030
|
|
|
6033
6031
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
6034
6032
|
var api = __webpack_require__(1);
|
|
6035
6033
|
|
|
6034
|
+
// EXTERNAL MODULE: external "throttle-debounce"
|
|
6035
|
+
var external_throttle_debounce_ = __webpack_require__(2);
|
|
6036
|
+
|
|
6036
6037
|
// CONCATENATED MODULE: ./src/utils/store.js
|
|
6037
6038
|
var store_store = {
|
|
6038
6039
|
state: {},
|
|
@@ -6126,6 +6127,7 @@ var checkbox_group_src_mainvue_type_script_lang_js_extends = Object.assign || fu
|
|
|
6126
6127
|
|
|
6127
6128
|
|
|
6128
6129
|
|
|
6130
|
+
|
|
6129
6131
|
/* harmony default export */ var checkbox_group_src_mainvue_type_script_lang_js_ = ({
|
|
6130
6132
|
name: 'EsCheckboxGroup',
|
|
6131
6133
|
inheritAttrs: false,
|
|
@@ -6303,14 +6305,21 @@ var checkbox_group_src_mainvue_type_script_lang_js_extends = Object.assign || fu
|
|
|
6303
6305
|
}
|
|
6304
6306
|
}
|
|
6305
6307
|
},
|
|
6308
|
+
beforeCreate: function beforeCreate() {
|
|
6309
|
+
var _this2 = this;
|
|
6310
|
+
|
|
6311
|
+
this.getData = Object(external_throttle_debounce_["debounce"])(500, function (url, sysCode) {
|
|
6312
|
+
_this2.getDatas(url, sysCode);
|
|
6313
|
+
});
|
|
6314
|
+
},
|
|
6306
6315
|
created: function created() {
|
|
6307
6316
|
this.bindEventBus();
|
|
6308
6317
|
},
|
|
6309
6318
|
mounted: function mounted() {},
|
|
6310
6319
|
|
|
6311
6320
|
methods: {
|
|
6312
|
-
|
|
6313
|
-
var
|
|
6321
|
+
getDatas: function getDatas(url, sysCode) {
|
|
6322
|
+
var _this3 = this;
|
|
6314
6323
|
|
|
6315
6324
|
var params = {};
|
|
6316
6325
|
if (this.results.length === 0) {
|
|
@@ -6328,26 +6337,26 @@ var checkbox_group_src_mainvue_type_script_lang_js_extends = Object.assign || fu
|
|
|
6328
6337
|
params: params,
|
|
6329
6338
|
data: params
|
|
6330
6339
|
}).then(function (res) {
|
|
6331
|
-
|
|
6332
|
-
|
|
6340
|
+
_this3.loading = false;
|
|
6341
|
+
_this3.canceled = false;
|
|
6333
6342
|
if (res.rCode === 0) {
|
|
6334
|
-
|
|
6335
|
-
if (sysCode ||
|
|
6336
|
-
bus.$emit(sysCode ||
|
|
6343
|
+
_this3.options = JSON.parse(JSON.stringify(res.results));
|
|
6344
|
+
if (sysCode || _this3.dataKey) {
|
|
6345
|
+
bus.$emit(sysCode || _this3.dataKey, JSON.parse(JSON.stringify(_this3.options)));
|
|
6337
6346
|
utils_store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
|
|
6338
6347
|
}
|
|
6339
6348
|
} else {
|
|
6340
6349
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
6341
|
-
|
|
6350
|
+
_this3.$message.error(msg);
|
|
6342
6351
|
}
|
|
6343
6352
|
}).catch(function (err) {
|
|
6344
|
-
|
|
6353
|
+
_this3.loading = false;
|
|
6345
6354
|
if (err.message) {
|
|
6346
6355
|
if (err.message !== 'canceled') {
|
|
6347
|
-
|
|
6356
|
+
_this3.$message.error(err.message);
|
|
6348
6357
|
}
|
|
6349
6358
|
if (err.message === 'canceled' && sysCode) {
|
|
6350
|
-
|
|
6359
|
+
_this3.canceled = true;
|
|
6351
6360
|
}
|
|
6352
6361
|
}
|
|
6353
6362
|
});
|
|
@@ -6384,8 +6393,8 @@ var checkbox_group_src_mainvue_type_script_lang_js_extends = Object.assign || fu
|
|
|
6384
6393
|
|
|
6385
6394
|
var checkbox_group_src_main_component = normalizeComponent(
|
|
6386
6395
|
packages_checkbox_group_src_mainvue_type_script_lang_js_,
|
|
6387
|
-
|
|
6388
|
-
|
|
6396
|
+
mainvue_type_template_id_6858c5b1_render,
|
|
6397
|
+
mainvue_type_template_id_6858c5b1_staticRenderFns,
|
|
6389
6398
|
false,
|
|
6390
6399
|
null,
|
|
6391
6400
|
null,
|
|
@@ -6660,8 +6669,8 @@ clients_src_main.install = function (Vue) {
|
|
|
6660
6669
|
};
|
|
6661
6670
|
|
|
6662
6671
|
/* harmony default export */ var clients = (clients_src_main);
|
|
6663
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=
|
|
6664
|
-
var
|
|
6672
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=79cb5b69&
|
|
6673
|
+
var mainvue_type_template_id_79cb5b69_render = function () {
|
|
6665
6674
|
var _vm = this
|
|
6666
6675
|
var _h = _vm.$createElement
|
|
6667
6676
|
var _c = _vm._self._c || _h
|
|
@@ -6971,14 +6980,11 @@ var mainvue_type_template_id_d4c5d1ea_render = function () {
|
|
|
6971
6980
|
1
|
|
6972
6981
|
)
|
|
6973
6982
|
}
|
|
6974
|
-
var
|
|
6975
|
-
|
|
6976
|
-
|
|
6983
|
+
var mainvue_type_template_id_79cb5b69_staticRenderFns = []
|
|
6984
|
+
mainvue_type_template_id_79cb5b69_render._withStripped = true
|
|
6977
6985
|
|
|
6978
|
-
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=d4c5d1ea&
|
|
6979
6986
|
|
|
6980
|
-
//
|
|
6981
|
-
var external_throttle_debounce_ = __webpack_require__(6);
|
|
6987
|
+
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=79cb5b69&
|
|
6982
6988
|
|
|
6983
6989
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=template&id=44b7ff61&
|
|
6984
6990
|
var childrenvue_type_template_id_44b7ff61_render = function () {
|
|
@@ -7755,7 +7761,7 @@ columnvue_type_template_id_2dabb50c_render._withStripped = true
|
|
|
7755
7761
|
// CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=2dabb50c&
|
|
7756
7762
|
|
|
7757
7763
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
7758
|
-
var regenerator_ = __webpack_require__(
|
|
7764
|
+
var regenerator_ = __webpack_require__(3);
|
|
7759
7765
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
|
|
7760
7766
|
|
|
7761
7767
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=script&lang=js&
|
|
@@ -8923,7 +8929,7 @@ var sizer_component = normalizeComponent(
|
|
|
8923
8929
|
|
|
8924
8930
|
/* harmony default export */ var sizer = (sizer_component.exports);
|
|
8925
8931
|
// EXTERNAL MODULE: external "qs"
|
|
8926
|
-
var external_qs_ = __webpack_require__(
|
|
8932
|
+
var external_qs_ = __webpack_require__(5);
|
|
8927
8933
|
var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
|
|
8928
8934
|
|
|
8929
8935
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=script&lang=js&
|
|
@@ -9617,12 +9623,14 @@ var mainvue_type_script_lang_js_components, _watch;
|
|
|
9617
9623
|
this.doLayout();
|
|
9618
9624
|
}
|
|
9619
9625
|
}, _watch),
|
|
9620
|
-
|
|
9626
|
+
beforeCreate: function beforeCreate() {
|
|
9621
9627
|
var _this2 = this;
|
|
9622
9628
|
|
|
9623
|
-
this.getTableData = Object(external_throttle_debounce_["debounce"])(
|
|
9629
|
+
this.getTableData = Object(external_throttle_debounce_["debounce"])(500, function (res) {
|
|
9624
9630
|
_this2.getTableDatas(res);
|
|
9625
9631
|
});
|
|
9632
|
+
},
|
|
9633
|
+
created: function created() {
|
|
9626
9634
|
if (Array.isArray(this.thead) && this.thead.length) {
|
|
9627
9635
|
this.getOptions(this.thead);
|
|
9628
9636
|
}
|
|
@@ -10394,8 +10402,8 @@ var mainvue_type_script_lang_js_components, _watch;
|
|
|
10394
10402
|
|
|
10395
10403
|
var data_table_src_main_component = normalizeComponent(
|
|
10396
10404
|
packages_data_table_src_mainvue_type_script_lang_js_,
|
|
10397
|
-
|
|
10398
|
-
|
|
10405
|
+
mainvue_type_template_id_79cb5b69_render,
|
|
10406
|
+
mainvue_type_template_id_79cb5b69_staticRenderFns,
|
|
10399
10407
|
false,
|
|
10400
10408
|
null,
|
|
10401
10409
|
null,
|
|
@@ -12530,8 +12538,8 @@ date_picker_src_main.install = function (Vue) {
|
|
|
12530
12538
|
};
|
|
12531
12539
|
|
|
12532
12540
|
/* harmony default export */ var date_picker = (date_picker_src_main);
|
|
12533
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=template&id=
|
|
12534
|
-
var
|
|
12541
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=template&id=55a176e4&
|
|
12542
|
+
var mainvue_type_template_id_55a176e4_render = function () {
|
|
12535
12543
|
var _vm = this
|
|
12536
12544
|
var _h = _vm.$createElement
|
|
12537
12545
|
var _c = _vm._self._c || _h
|
|
@@ -12559,15 +12567,16 @@ var mainvue_type_template_id_39199bdc_render = function () {
|
|
|
12559
12567
|
"update:visible": function ($event) {
|
|
12560
12568
|
_vm.show = $event
|
|
12561
12569
|
},
|
|
12562
|
-
close: _vm.handleClosed,
|
|
12563
|
-
scale: _vm.handleScale,
|
|
12564
12570
|
},
|
|
12565
12571
|
},
|
|
12566
12572
|
"el-dialog",
|
|
12567
12573
|
_vm.$attrs,
|
|
12568
12574
|
false
|
|
12569
12575
|
),
|
|
12570
|
-
_vm.$listeners
|
|
12576
|
+
Object.assign({}, _vm.$listeners, {
|
|
12577
|
+
close: _vm.handleClosed,
|
|
12578
|
+
scale: _vm.handleScale,
|
|
12579
|
+
})
|
|
12571
12580
|
),
|
|
12572
12581
|
[
|
|
12573
12582
|
_vm._t("default"),
|
|
@@ -13040,11 +13049,11 @@ var mainvue_type_template_id_39199bdc_render = function () {
|
|
|
13040
13049
|
2
|
|
13041
13050
|
)
|
|
13042
13051
|
}
|
|
13043
|
-
var
|
|
13044
|
-
|
|
13052
|
+
var mainvue_type_template_id_55a176e4_staticRenderFns = []
|
|
13053
|
+
mainvue_type_template_id_55a176e4_render._withStripped = true
|
|
13045
13054
|
|
|
13046
13055
|
|
|
13047
|
-
// CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=
|
|
13056
|
+
// CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=55a176e4&
|
|
13048
13057
|
|
|
13049
13058
|
// EXTERNAL MODULE: external "wujie-vue2"
|
|
13050
13059
|
var external_wujie_vue2_ = __webpack_require__(14);
|
|
@@ -13318,8 +13327,6 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
13318
13327
|
//
|
|
13319
13328
|
//
|
|
13320
13329
|
//
|
|
13321
|
-
//
|
|
13322
|
-
//
|
|
13323
13330
|
|
|
13324
13331
|
|
|
13325
13332
|
|
|
@@ -13564,6 +13571,7 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
|
|
|
13564
13571
|
this.show = false;
|
|
13565
13572
|
this.$emit('close', res, this);
|
|
13566
13573
|
if (this.closeParent && this.esDialog) {
|
|
13574
|
+
console.log(12121);
|
|
13567
13575
|
this.esDialog.handleClosed(res);
|
|
13568
13576
|
}
|
|
13569
13577
|
},
|
|
@@ -13603,8 +13611,8 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
|
|
|
13603
13611
|
|
|
13604
13612
|
var dialog_src_main_component = normalizeComponent(
|
|
13605
13613
|
packages_dialog_src_mainvue_type_script_lang_js_,
|
|
13606
|
-
|
|
13607
|
-
|
|
13614
|
+
mainvue_type_template_id_55a176e4_render,
|
|
13615
|
+
mainvue_type_template_id_55a176e4_staticRenderFns,
|
|
13608
13616
|
false,
|
|
13609
13617
|
null,
|
|
13610
13618
|
null,
|
|
@@ -13870,8 +13878,8 @@ error_page_src_main.install = function (Vue) {
|
|
|
13870
13878
|
};
|
|
13871
13879
|
|
|
13872
13880
|
/* harmony default export */ var error_page = (error_page_src_main);
|
|
13873
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=
|
|
13874
|
-
var
|
|
13881
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=06e3fac4&
|
|
13882
|
+
var mainvue_type_template_id_06e3fac4_render = function () {
|
|
13875
13883
|
var _vm = this
|
|
13876
13884
|
var _h = _vm.$createElement
|
|
13877
13885
|
var _c = _vm._self._c || _h
|
|
@@ -25327,11 +25335,11 @@ var mainvue_type_template_id_5a2c9b21_render = function () {
|
|
|
25327
25335
|
)
|
|
25328
25336
|
: _vm._e()
|
|
25329
25337
|
}
|
|
25330
|
-
var
|
|
25331
|
-
|
|
25338
|
+
var mainvue_type_template_id_06e3fac4_staticRenderFns = []
|
|
25339
|
+
mainvue_type_template_id_06e3fac4_render._withStripped = true
|
|
25332
25340
|
|
|
25333
25341
|
|
|
25334
|
-
// CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=
|
|
25342
|
+
// CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=06e3fac4&
|
|
25335
25343
|
|
|
25336
25344
|
// CONCATENATED MODULE: ./src/utils/rules.js
|
|
25337
25345
|
// 手机号
|
|
@@ -29367,6 +29375,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
29367
29375
|
|
|
29368
29376
|
|
|
29369
29377
|
|
|
29378
|
+
|
|
29370
29379
|
/* harmony default export */ var form_src_mainvue_type_script_lang_js_ = ({
|
|
29371
29380
|
name: 'EsForm',
|
|
29372
29381
|
inheritAttrs: false,
|
|
@@ -29837,15 +29846,25 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
29837
29846
|
}
|
|
29838
29847
|
}
|
|
29839
29848
|
},
|
|
29849
|
+
beforeCreate: function beforeCreate() {
|
|
29850
|
+
var _this3 = this;
|
|
29851
|
+
|
|
29852
|
+
this.getContent = Object(external_throttle_debounce_["debounce"])(500, function () {
|
|
29853
|
+
_this3.getContents();
|
|
29854
|
+
});
|
|
29855
|
+
this.getValue = Object(external_throttle_debounce_["debounce"])(500, function () {
|
|
29856
|
+
_this3.getValues();
|
|
29857
|
+
});
|
|
29858
|
+
},
|
|
29840
29859
|
created: function created() {
|
|
29841
29860
|
this.dialog = window.$wujie && window.$wujie.props ? window.$wujie.props._dialog : false;
|
|
29842
29861
|
},
|
|
29843
29862
|
mounted: function mounted() {
|
|
29844
|
-
var
|
|
29863
|
+
var _this4 = this;
|
|
29845
29864
|
|
|
29846
29865
|
this.$nextTick(function () {
|
|
29847
|
-
!
|
|
29848
|
-
|
|
29866
|
+
!_this4.height && _this4.getHeight();
|
|
29867
|
+
_this4.$refs.esForm.$el.addEventListener('keyup', _this4.handleEnter);
|
|
29849
29868
|
});
|
|
29850
29869
|
},
|
|
29851
29870
|
|
|
@@ -29868,8 +29887,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
29868
29887
|
}
|
|
29869
29888
|
return this.getParentHeight(dom.parentNode);
|
|
29870
29889
|
},
|
|
29871
|
-
|
|
29872
|
-
var
|
|
29890
|
+
getContents: function getContents() {
|
|
29891
|
+
var _this5 = this;
|
|
29873
29892
|
|
|
29874
29893
|
if (typeof this.contents === 'string' || utils_util["a" /* default */].isObject(this.contents) && Object.prototype.hasOwnProperty.call(this.contents, 'formId')) {
|
|
29875
29894
|
this.loading = true;
|
|
@@ -29879,36 +29898,36 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
29879
29898
|
data: params,
|
|
29880
29899
|
params: params
|
|
29881
29900
|
}).then(function (res) {
|
|
29882
|
-
|
|
29901
|
+
_this5.loading = false;
|
|
29883
29902
|
if (res.rCode === 0) {
|
|
29884
29903
|
var results = JSON.parse(JSON.stringify(res.results));
|
|
29885
29904
|
if (Array.isArray(results)) {
|
|
29886
|
-
|
|
29905
|
+
_this5.resolution(results);
|
|
29887
29906
|
} else {
|
|
29888
|
-
|
|
29907
|
+
_this5.resolution(results.contents || results.content || []);
|
|
29889
29908
|
var data = {};
|
|
29890
|
-
if (
|
|
29891
|
-
data = { id:
|
|
29892
|
-
} else if (
|
|
29893
|
-
if (typeof
|
|
29894
|
-
data = { id:
|
|
29909
|
+
if (_this5.businessId !== undefined) {
|
|
29910
|
+
data = { id: _this5.businessId };
|
|
29911
|
+
} else if (_this5.autoId) {
|
|
29912
|
+
if (typeof _this5.autoId === 'boolean') {
|
|
29913
|
+
data = { id: _this5.uuid };
|
|
29895
29914
|
} else {
|
|
29896
|
-
data[
|
|
29915
|
+
data[_this5.autoId] = _this5.uuid;
|
|
29897
29916
|
}
|
|
29898
29917
|
}
|
|
29899
|
-
|
|
29918
|
+
_this5.values = utils_util["a" /* default */].extend({}, data, results.value || results.data || {});
|
|
29900
29919
|
}
|
|
29901
29920
|
}
|
|
29902
29921
|
}).catch(function (err) {
|
|
29903
|
-
|
|
29922
|
+
_this5.loading = false;
|
|
29904
29923
|
if (err.message && err.message !== 'canceled') {
|
|
29905
|
-
|
|
29924
|
+
_this5.$message.error(err.message);
|
|
29906
29925
|
}
|
|
29907
29926
|
});
|
|
29908
29927
|
}
|
|
29909
29928
|
},
|
|
29910
29929
|
resolution: function resolution(res) {
|
|
29911
|
-
var
|
|
29930
|
+
var _this6 = this;
|
|
29912
29931
|
|
|
29913
29932
|
this.forbid = false;
|
|
29914
29933
|
if (res.length > 0) {
|
|
@@ -29916,11 +29935,11 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
29916
29935
|
var names = [];
|
|
29917
29936
|
res.forEach(function (item, index) {
|
|
29918
29937
|
if (item.type === 'submit' || item.type === 'button') {
|
|
29919
|
-
|
|
29938
|
+
_this6.$set(_this6, 'button', item.contents);
|
|
29920
29939
|
} else {
|
|
29921
29940
|
if (Object.prototype.hasOwnProperty.call(item, 'title') && Object.prototype.hasOwnProperty.call(item, 'contents')) {
|
|
29922
|
-
|
|
29923
|
-
if (
|
|
29941
|
+
_this6.isCollapse = true;
|
|
29942
|
+
if (_this6.accordion) {
|
|
29924
29943
|
if (index === 0) {
|
|
29925
29944
|
names = item.name || String(index);
|
|
29926
29945
|
}
|
|
@@ -29928,7 +29947,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
29928
29947
|
names.push(item.name || String(index));
|
|
29929
29948
|
}
|
|
29930
29949
|
} else {
|
|
29931
|
-
|
|
29950
|
+
_this6.isCollapse = false;
|
|
29932
29951
|
}
|
|
29933
29952
|
contents.push(utils_util["a" /* default */].extend({}, item));
|
|
29934
29953
|
}
|
|
@@ -29942,8 +29961,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
29942
29961
|
}
|
|
29943
29962
|
}
|
|
29944
29963
|
},
|
|
29945
|
-
|
|
29946
|
-
var
|
|
29964
|
+
getValues: function getValues() {
|
|
29965
|
+
var _this7 = this;
|
|
29947
29966
|
|
|
29948
29967
|
if (typeof this.model === 'string') {
|
|
29949
29968
|
this.loading = true;
|
|
@@ -29954,45 +29973,45 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
29954
29973
|
data: param,
|
|
29955
29974
|
params: param
|
|
29956
29975
|
}).then(function (res) {
|
|
29957
|
-
|
|
29976
|
+
_this7.loading = false;
|
|
29958
29977
|
if (res.rCode === 0) {
|
|
29959
|
-
var value = res.results ?
|
|
29978
|
+
var value = res.results ? _this7.parseData ? _this7.parseData(JSON.parse(JSON.stringify(res.results))) : JSON.parse(JSON.stringify(res.results)) : {};
|
|
29960
29979
|
|
|
29961
29980
|
var data = {};
|
|
29962
|
-
if (
|
|
29963
|
-
if (typeof
|
|
29981
|
+
if (_this7.autoId) {
|
|
29982
|
+
if (typeof _this7.autoId === 'boolean') {
|
|
29964
29983
|
if (value.id) {
|
|
29965
|
-
|
|
29984
|
+
_this7.$emit('update:businessId', value.id);
|
|
29966
29985
|
} else {
|
|
29967
|
-
if (
|
|
29968
|
-
data = { id:
|
|
29986
|
+
if (_this7.businessId !== undefined) {
|
|
29987
|
+
data = { id: _this7.businessId };
|
|
29969
29988
|
} else {
|
|
29970
|
-
data = { id:
|
|
29989
|
+
data = { id: _this7.uuid };
|
|
29971
29990
|
}
|
|
29972
|
-
|
|
29991
|
+
_this7.$emit('update:businessId', data.id);
|
|
29973
29992
|
}
|
|
29974
29993
|
} else {
|
|
29975
|
-
if (value[
|
|
29976
|
-
|
|
29994
|
+
if (value[_this7.autoId]) {
|
|
29995
|
+
_this7.$emit('update:businessId', value[_this7.autoId]);
|
|
29977
29996
|
} else {
|
|
29978
|
-
if (
|
|
29979
|
-
data[
|
|
29997
|
+
if (_this7.businessId !== undefined) {
|
|
29998
|
+
data[_this7.autoId] = _this7.businessId;
|
|
29980
29999
|
} else {
|
|
29981
|
-
data[
|
|
30000
|
+
data[_this7.autoId] = _this7.uuid;
|
|
29982
30001
|
}
|
|
29983
|
-
|
|
30002
|
+
_this7.$emit('update:businessId', data[_this7.autoId]);
|
|
29984
30003
|
}
|
|
29985
30004
|
}
|
|
29986
30005
|
}
|
|
29987
|
-
|
|
29988
|
-
|
|
29989
|
-
|
|
29990
|
-
|
|
30006
|
+
_this7.values = utils_util["a" /* default */].extend({}, data, value);
|
|
30007
|
+
_this7.$emit('valueSuccess', _this7.values);
|
|
30008
|
+
_this7.$emit('value-success', _this7.values);
|
|
30009
|
+
_this7.$emit('result', _this7.values);
|
|
29991
30010
|
}
|
|
29992
30011
|
}).catch(function (err) {
|
|
29993
|
-
|
|
30012
|
+
_this7.loading = false;
|
|
29994
30013
|
if (err.message && err.message !== 'canceled') {
|
|
29995
|
-
|
|
30014
|
+
_this7.$message.error(err.message);
|
|
29996
30015
|
}
|
|
29997
30016
|
});
|
|
29998
30017
|
}
|
|
@@ -30031,7 +30050,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30031
30050
|
}
|
|
30032
30051
|
},
|
|
30033
30052
|
handleClick: function handleClick(res, index) {
|
|
30034
|
-
var
|
|
30053
|
+
var _this8 = this;
|
|
30035
30054
|
|
|
30036
30055
|
if (res.event && typeof res.event === 'function') {
|
|
30037
30056
|
if (res.validate) {
|
|
@@ -30042,9 +30061,9 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30042
30061
|
switch (_context.prev = _context.next) {
|
|
30043
30062
|
case 0:
|
|
30044
30063
|
if (valid) {
|
|
30045
|
-
res.event(res,
|
|
30064
|
+
res.event(res, _this8.models, index);
|
|
30046
30065
|
} else {
|
|
30047
|
-
|
|
30066
|
+
_this8.setScroll(valid, triggers, _this8.$refs.scrollbar);
|
|
30048
30067
|
}
|
|
30049
30068
|
|
|
30050
30069
|
case 1:
|
|
@@ -30052,7 +30071,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30052
30071
|
return _context.stop();
|
|
30053
30072
|
}
|
|
30054
30073
|
}
|
|
30055
|
-
}, _callee,
|
|
30074
|
+
}, _callee, _this8);
|
|
30056
30075
|
}));
|
|
30057
30076
|
|
|
30058
30077
|
return function (_x, _x2, _x3) {
|
|
@@ -30066,11 +30085,11 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30066
30085
|
if (this.stepActive < index) {
|
|
30067
30086
|
this.$refs.esForm.validate(function (valid, fields, triggers) {
|
|
30068
30087
|
if (valid) {
|
|
30069
|
-
|
|
30070
|
-
|
|
30071
|
-
|
|
30088
|
+
_this8.stepActive = index;
|
|
30089
|
+
_this8.$emit('stepChange', _this8.stepActive);
|
|
30090
|
+
_this8.$emit('step-change', _this8.stepActive);
|
|
30072
30091
|
} else {
|
|
30073
|
-
|
|
30092
|
+
_this8.setScroll(valid, triggers, _this8.$refs.scrollbar);
|
|
30074
30093
|
}
|
|
30075
30094
|
});
|
|
30076
30095
|
} else {
|
|
@@ -30089,9 +30108,9 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30089
30108
|
switch (_context2.prev = _context2.next) {
|
|
30090
30109
|
case 0:
|
|
30091
30110
|
if (valid) {
|
|
30092
|
-
|
|
30111
|
+
_this8.$emit('submit', _this8.getNewValue(utils_util["a" /* default */].extend({}, _this8._value, _this8.models), res), res);
|
|
30093
30112
|
} else {
|
|
30094
|
-
|
|
30113
|
+
_this8.setScroll(valid, triggers, _this8.$refs.scrollbar);
|
|
30095
30114
|
}
|
|
30096
30115
|
|
|
30097
30116
|
case 1:
|
|
@@ -30099,7 +30118,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30099
30118
|
return _context2.stop();
|
|
30100
30119
|
}
|
|
30101
30120
|
}
|
|
30102
|
-
}, _callee2,
|
|
30121
|
+
}, _callee2, _this8);
|
|
30103
30122
|
}));
|
|
30104
30123
|
|
|
30105
30124
|
return function (_x4, _x5, _x6) {
|
|
@@ -30121,13 +30140,13 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30121
30140
|
} else if (res.event === 'stepNext') {
|
|
30122
30141
|
this.$refs.esForm.validate(function (valid, fields, triggers) {
|
|
30123
30142
|
if (valid) {
|
|
30124
|
-
|
|
30125
|
-
|
|
30126
|
-
|
|
30127
|
-
|
|
30128
|
-
|
|
30143
|
+
_this8.stepActive += 1;
|
|
30144
|
+
_this8.$emit('stepChange', _this8.stepActive);
|
|
30145
|
+
_this8.$emit('step-change', _this8.stepActive);
|
|
30146
|
+
_this8.$emit('stepNext', res, _this8.models, _this8.getNewValue(utils_util["a" /* default */].extend({}, _this8._value, _this8.models), res));
|
|
30147
|
+
_this8.$emit('step-next', res, _this8.models, _this8.getNewValue(utils_util["a" /* default */].extend({}, _this8._value, _this8.models), res));
|
|
30129
30148
|
} else {
|
|
30130
|
-
|
|
30149
|
+
_this8.setScroll(valid, triggers, _this8.$refs.scrollbar);
|
|
30131
30150
|
}
|
|
30132
30151
|
});
|
|
30133
30152
|
} else if (res.verify === false) {
|
|
@@ -30177,7 +30196,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30177
30196
|
},
|
|
30178
30197
|
handleCollapse: function handleCollapse() {},
|
|
30179
30198
|
handleChange: function handleChange(a, b, c) {
|
|
30180
|
-
var
|
|
30199
|
+
var _this9 = this;
|
|
30181
30200
|
|
|
30182
30201
|
if (Object.prototype.hasOwnProperty.call(a, 'idCard')) {
|
|
30183
30202
|
var obj = this.IdCardToInfo(b, a);
|
|
@@ -30187,13 +30206,13 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30187
30206
|
if ((typeof item === 'undefined' ? 'undefined' : src_mainvue_type_script_lang_js_typeof(item)) === 'object') {
|
|
30188
30207
|
for (var i in item) {
|
|
30189
30208
|
if (typeof item[i] === 'string') {
|
|
30190
|
-
|
|
30209
|
+
_this9.$set(_this9.models, i, obj[item[i]]);
|
|
30191
30210
|
} else {
|
|
30192
|
-
|
|
30211
|
+
_this9.$set(_this9.models, i, item[i][obj.sex]);
|
|
30193
30212
|
}
|
|
30194
30213
|
}
|
|
30195
30214
|
} else {
|
|
30196
|
-
|
|
30215
|
+
_this9.$set(_this9.models, item, obj[item]);
|
|
30197
30216
|
}
|
|
30198
30217
|
});
|
|
30199
30218
|
} else {
|
|
@@ -30209,7 +30228,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30209
30228
|
if (Object.prototype.hasOwnProperty.call(a, 'setValues') && (typeof b === 'undefined' ? 'undefined' : src_mainvue_type_script_lang_js_typeof(b)) === 'object') {
|
|
30210
30229
|
if (Array.isArray(a.setValues)) {
|
|
30211
30230
|
a.setValues.forEach(function (item) {
|
|
30212
|
-
|
|
30231
|
+
_this9.$set(_this9.models, item, b[item]);
|
|
30213
30232
|
});
|
|
30214
30233
|
} else {
|
|
30215
30234
|
for (var i in a.setValues) {
|
|
@@ -30249,7 +30268,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30249
30268
|
}
|
|
30250
30269
|
},
|
|
30251
30270
|
validate: function validate(callback) {
|
|
30252
|
-
var
|
|
30271
|
+
var _this10 = this;
|
|
30253
30272
|
|
|
30254
30273
|
var promise = void 0;
|
|
30255
30274
|
if (typeof callback !== 'function' && window.Promise) {
|
|
@@ -30260,7 +30279,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30260
30279
|
});
|
|
30261
30280
|
}
|
|
30262
30281
|
this.$refs.esForm.validate(function (val, fields, triggers) {
|
|
30263
|
-
|
|
30282
|
+
_this10.setScroll(val, triggers, _this10.$refs.scrollbar);
|
|
30264
30283
|
callback(val, fields, triggers);
|
|
30265
30284
|
});
|
|
30266
30285
|
if (promise) {
|
|
@@ -30280,13 +30299,13 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30280
30299
|
return this.$refs.esForm.validateField(props, callback);
|
|
30281
30300
|
},
|
|
30282
30301
|
resetFields: function resetFields() {
|
|
30283
|
-
var
|
|
30302
|
+
var _this11 = this;
|
|
30284
30303
|
|
|
30285
30304
|
for (var i in this.models) {
|
|
30286
30305
|
this.$set(this.models, i, '');
|
|
30287
30306
|
}
|
|
30288
30307
|
this.$nextTick(function () {
|
|
30289
|
-
|
|
30308
|
+
_this11.clearValidate();
|
|
30290
30309
|
});
|
|
30291
30310
|
//this.$refs.esForm.resetFields();
|
|
30292
30311
|
},
|
|
@@ -30296,7 +30315,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30296
30315
|
submitData: function submitData(handle) {
|
|
30297
30316
|
var close = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
30298
30317
|
|
|
30299
|
-
var
|
|
30318
|
+
var _this12 = this;
|
|
30300
30319
|
|
|
30301
30320
|
var type = arguments[2];
|
|
30302
30321
|
var validate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
@@ -30308,7 +30327,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30308
30327
|
handle = this.handles || {};
|
|
30309
30328
|
}
|
|
30310
30329
|
return new Promise(function (resolve, reject) {
|
|
30311
|
-
validate ?
|
|
30330
|
+
validate ? _this12.$refs.esForm.validate(function () {
|
|
30312
30331
|
var _ref3 = src_mainvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee3(valid, fields, triggers) {
|
|
30313
30332
|
var models, param, loading;
|
|
30314
30333
|
return regenerator_default.a.wrap(function _callee3$(_context3) {
|
|
@@ -30320,9 +30339,9 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30320
30339
|
break;
|
|
30321
30340
|
}
|
|
30322
30341
|
|
|
30323
|
-
models =
|
|
30342
|
+
models = _this12.getNewValue(utils_util["a" /* default */].extend({}, _this12._value, _this12.models), handle, type);
|
|
30324
30343
|
|
|
30325
|
-
if (!(
|
|
30344
|
+
if (!(_this12.validated && !_this12.validated(models, validate))) {
|
|
30326
30345
|
_context3.next = 4;
|
|
30327
30346
|
break;
|
|
30328
30347
|
}
|
|
@@ -30330,48 +30349,48 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30330
30349
|
return _context3.abrupt('return', reject(err));
|
|
30331
30350
|
|
|
30332
30351
|
case 4:
|
|
30333
|
-
param =
|
|
30352
|
+
param = _this12.param;
|
|
30334
30353
|
|
|
30335
30354
|
if (handle.param) {
|
|
30336
|
-
param = utils_util["a" /* default */].extend({},
|
|
30355
|
+
param = utils_util["a" /* default */].extend({}, _this12.param, handle.param);
|
|
30337
30356
|
}
|
|
30338
30357
|
loading = void 0;
|
|
30339
30358
|
|
|
30340
|
-
if (
|
|
30341
|
-
loading = utils_util["a" /* default */].loading(
|
|
30359
|
+
if (_this12.submitLoading) {
|
|
30360
|
+
loading = utils_util["a" /* default */].loading(_this12.$loading, handle.loadingText ? handle.loadingText + '...' : '提交中...');
|
|
30342
30361
|
}
|
|
30343
30362
|
_context3.next = 10;
|
|
30344
|
-
return utils_util["a" /* default */].ajax(form_src_mainvue_type_script_lang_js_extends({},
|
|
30345
|
-
url: src_mainvue_type_script_lang_js_typeof(
|
|
30346
|
-
format: handle.format ||
|
|
30363
|
+
return utils_util["a" /* default */].ajax(form_src_mainvue_type_script_lang_js_extends({}, _this12.ajaxConfig, {
|
|
30364
|
+
url: src_mainvue_type_script_lang_js_typeof(_this12.action) === 'object' ? _this12.action[_this12.actionType] : _this12.action,
|
|
30365
|
+
format: handle.format || _this12.format,
|
|
30347
30366
|
data: form_src_mainvue_type_script_lang_js_extends({}, models, param),
|
|
30348
|
-
method:
|
|
30367
|
+
method: _this12.method,
|
|
30349
30368
|
loading: loading
|
|
30350
30369
|
})).then(function (res) {
|
|
30351
30370
|
loading && loading.close();
|
|
30352
30371
|
if (res.rCode === 0) {
|
|
30353
|
-
|
|
30354
|
-
|
|
30355
|
-
|
|
30356
|
-
if (
|
|
30357
|
-
|
|
30372
|
+
_this12.showMsg && _this12.$message.success(res.msg || res.message || '成功!');
|
|
30373
|
+
_this12.$emit('success', res, models);
|
|
30374
|
+
_this12.models = {};
|
|
30375
|
+
if (_this12.esTabs) {
|
|
30376
|
+
_this12.esTabs.handleTabState(true);
|
|
30358
30377
|
}
|
|
30359
|
-
if (
|
|
30378
|
+
if (_this12.closeDialog) {
|
|
30360
30379
|
if (window.$wujie && window.$wujie.props && window.$wujie.props._dialog) {
|
|
30361
30380
|
window.$wujie.bus.$emit('dialogClose', handle.reload, window.$wujie.props);
|
|
30362
30381
|
}
|
|
30363
|
-
if (
|
|
30364
|
-
|
|
30382
|
+
if (_this12.esDialog && close) {
|
|
30383
|
+
_this12.esDialog.handleClose(handle.reload);
|
|
30365
30384
|
}
|
|
30366
30385
|
}
|
|
30367
30386
|
resolve();
|
|
30368
30387
|
} else {
|
|
30369
|
-
|
|
30370
|
-
|
|
30388
|
+
_this12.$message.error(res.msg || res.message || '系统错误,请联系管理员!');
|
|
30389
|
+
_this12.$emit('error', res);
|
|
30371
30390
|
}
|
|
30372
30391
|
}).catch(function (err) {
|
|
30373
30392
|
if (err.message && err.message !== 'canceled') {
|
|
30374
|
-
|
|
30393
|
+
_this12.$message.error(err.message);
|
|
30375
30394
|
}
|
|
30376
30395
|
reject(err);
|
|
30377
30396
|
});
|
|
@@ -30381,7 +30400,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30381
30400
|
break;
|
|
30382
30401
|
|
|
30383
30402
|
case 12:
|
|
30384
|
-
|
|
30403
|
+
_this12.setScroll(valid, triggers, _this12.$refs.scrollbar);
|
|
30385
30404
|
console.error(valid);
|
|
30386
30405
|
return _context3.abrupt('return', false);
|
|
30387
30406
|
|
|
@@ -30390,7 +30409,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30390
30409
|
return _context3.stop();
|
|
30391
30410
|
}
|
|
30392
30411
|
}
|
|
30393
|
-
}, _callee3,
|
|
30412
|
+
}, _callee3, _this12);
|
|
30394
30413
|
}));
|
|
30395
30414
|
|
|
30396
30415
|
return function (_x9, _x10, _x11) {
|
|
@@ -30402,9 +30421,9 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30402
30421
|
while (1) {
|
|
30403
30422
|
switch (_context4.prev = _context4.next) {
|
|
30404
30423
|
case 0:
|
|
30405
|
-
models =
|
|
30424
|
+
models = _this12.getNewValue(utils_util["a" /* default */].extend({}, _this12._value, _this12.models), handle, type);
|
|
30406
30425
|
|
|
30407
|
-
if (!(
|
|
30426
|
+
if (!(_this12.validated && !_this12.validated(models, validate))) {
|
|
30408
30427
|
_context4.next = 3;
|
|
30409
30428
|
break;
|
|
30410
30429
|
}
|
|
@@ -30412,48 +30431,48 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30412
30431
|
return _context4.abrupt('return', reject(err));
|
|
30413
30432
|
|
|
30414
30433
|
case 3:
|
|
30415
|
-
param =
|
|
30434
|
+
param = _this12.param;
|
|
30416
30435
|
|
|
30417
30436
|
if (handle.param) {
|
|
30418
|
-
param = utils_util["a" /* default */].extend({},
|
|
30437
|
+
param = utils_util["a" /* default */].extend({}, _this12.param, handle.param);
|
|
30419
30438
|
}
|
|
30420
30439
|
loading = void 0;
|
|
30421
30440
|
|
|
30422
|
-
if (
|
|
30423
|
-
loading = utils_util["a" /* default */].loading(
|
|
30441
|
+
if (_this12.submitLoading) {
|
|
30442
|
+
loading = utils_util["a" /* default */].loading(_this12.$loading, handle.loadingText ? handle.loadingText + '...' : '提交中...');
|
|
30424
30443
|
}
|
|
30425
30444
|
_context4.next = 9;
|
|
30426
|
-
return utils_util["a" /* default */].ajax(form_src_mainvue_type_script_lang_js_extends({},
|
|
30427
|
-
url: src_mainvue_type_script_lang_js_typeof(
|
|
30428
|
-
format: handle.format ||
|
|
30445
|
+
return utils_util["a" /* default */].ajax(form_src_mainvue_type_script_lang_js_extends({}, _this12.ajaxConfig, {
|
|
30446
|
+
url: src_mainvue_type_script_lang_js_typeof(_this12.action) === 'object' ? _this12.action[_this12.actionType] : _this12.action,
|
|
30447
|
+
format: handle.format || _this12.format,
|
|
30429
30448
|
data: form_src_mainvue_type_script_lang_js_extends({}, models, param),
|
|
30430
|
-
method:
|
|
30449
|
+
method: _this12.method,
|
|
30431
30450
|
loading: loading
|
|
30432
30451
|
})).then(function (res) {
|
|
30433
30452
|
loading && loading.close();
|
|
30434
30453
|
if (res.rCode === 0) {
|
|
30435
|
-
|
|
30436
|
-
|
|
30437
|
-
|
|
30438
|
-
if (
|
|
30439
|
-
|
|
30454
|
+
_this12.showMsg && _this12.$message.success(res.msg || res.message || '成功!');
|
|
30455
|
+
_this12.$emit('success', res, models);
|
|
30456
|
+
_this12.models = {};
|
|
30457
|
+
if (_this12.esTabs) {
|
|
30458
|
+
_this12.esTabs.handleTabState(true);
|
|
30440
30459
|
}
|
|
30441
|
-
if (
|
|
30460
|
+
if (_this12.closeDialog) {
|
|
30442
30461
|
if (window.$wujie && window.$wujie.props && window.$wujie.props._dialog) {
|
|
30443
30462
|
window.$wujie.bus.$emit('dialogClose', handle.reload, window.$wujie.props);
|
|
30444
30463
|
}
|
|
30445
|
-
if (
|
|
30446
|
-
|
|
30464
|
+
if (_this12.esDialog && close) {
|
|
30465
|
+
_this12.esDialog.handleClose(handle.reload);
|
|
30447
30466
|
}
|
|
30448
30467
|
}
|
|
30449
30468
|
resolve();
|
|
30450
30469
|
} else {
|
|
30451
|
-
|
|
30452
|
-
|
|
30470
|
+
_this12.$message.error(res.msg || res.message || '系统错误,请联系管理员!');
|
|
30471
|
+
_this12.$emit('error', res);
|
|
30453
30472
|
}
|
|
30454
30473
|
}).catch(function (err) {
|
|
30455
30474
|
if (err.message && err.message !== 'canceled') {
|
|
30456
|
-
|
|
30475
|
+
_this12.$message.error(err.message);
|
|
30457
30476
|
}
|
|
30458
30477
|
reject(err);
|
|
30459
30478
|
});
|
|
@@ -30463,12 +30482,12 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30463
30482
|
return _context4.stop();
|
|
30464
30483
|
}
|
|
30465
30484
|
}
|
|
30466
|
-
}, _callee4,
|
|
30485
|
+
}, _callee4, _this12);
|
|
30467
30486
|
}))();
|
|
30468
30487
|
});
|
|
30469
30488
|
},
|
|
30470
30489
|
getVal: function getVal(value, keys) {
|
|
30471
|
-
var
|
|
30490
|
+
var _this13 = this;
|
|
30472
30491
|
|
|
30473
30492
|
if (typeof keys === 'string') {
|
|
30474
30493
|
if (Array.isArray(value)) {
|
|
@@ -30486,15 +30505,15 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30486
30505
|
return item[keys[i]];
|
|
30487
30506
|
});
|
|
30488
30507
|
return {
|
|
30489
|
-
v:
|
|
30508
|
+
v: _this13.format ? _val.join(',') : _val
|
|
30490
30509
|
};
|
|
30491
30510
|
}
|
|
30492
30511
|
return {
|
|
30493
|
-
v:
|
|
30512
|
+
v: _this13.format && Array.isArray(value[i][keys[i]]) ? value[i][keys[i]].join(',') : value[i][keys[i]]
|
|
30494
30513
|
};
|
|
30495
30514
|
} else {
|
|
30496
30515
|
return {
|
|
30497
|
-
v:
|
|
30516
|
+
v: _this13.getVal(value[i], keys[i])
|
|
30498
30517
|
};
|
|
30499
30518
|
}
|
|
30500
30519
|
};
|
|
@@ -30644,8 +30663,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
30644
30663
|
|
|
30645
30664
|
var form_src_main_component = normalizeComponent(
|
|
30646
30665
|
packages_form_src_mainvue_type_script_lang_js_,
|
|
30647
|
-
|
|
30648
|
-
|
|
30666
|
+
mainvue_type_template_id_06e3fac4_render,
|
|
30667
|
+
mainvue_type_template_id_06e3fac4_staticRenderFns,
|
|
30649
30668
|
false,
|
|
30650
30669
|
null,
|
|
30651
30670
|
null,
|
|
@@ -46270,6 +46289,7 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
46270
46289
|
|
|
46271
46290
|
|
|
46272
46291
|
|
|
46292
|
+
|
|
46273
46293
|
/* harmony default export */ var input_src_mainvue_type_script_lang_js_ = ({
|
|
46274
46294
|
name: 'EsInput',
|
|
46275
46295
|
componentName: 'EsInput',
|
|
@@ -46388,11 +46408,19 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
46388
46408
|
return undefined;
|
|
46389
46409
|
}
|
|
46390
46410
|
},
|
|
46411
|
+
beforeCreate: function beforeCreate() {
|
|
46412
|
+
var _this2 = this;
|
|
46413
|
+
|
|
46414
|
+
this.getData = Object(external_throttle_debounce_["debounce"])(500, function (query, callback, isChange) {
|
|
46415
|
+
_this2.getDatas(query, callback, isChange);
|
|
46416
|
+
});
|
|
46417
|
+
},
|
|
46418
|
+
created: function created() {},
|
|
46391
46419
|
mounted: function mounted() {},
|
|
46392
46420
|
|
|
46393
46421
|
methods: {
|
|
46394
|
-
|
|
46395
|
-
var
|
|
46422
|
+
getDatas: function getDatas(query, callback, isChange) {
|
|
46423
|
+
var _this3 = this;
|
|
46396
46424
|
|
|
46397
46425
|
if (input_src_mainvue_type_script_lang_js_typeof(this.url) && this.results.length === 0) {
|
|
46398
46426
|
utils_util["a" /* default */].ajax({
|
|
@@ -46402,13 +46430,13 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
46402
46430
|
params: this.param
|
|
46403
46431
|
}).then(function (res) {
|
|
46404
46432
|
if (res.rCode === 0) {
|
|
46405
|
-
|
|
46406
|
-
var results = query ?
|
|
46433
|
+
_this3.results = JSON.parse(JSON.stringify(res.results));
|
|
46434
|
+
var results = query ? _this3.results.filter(_this3.searchFilter(query)) : _this3.results;
|
|
46407
46435
|
callback(results);
|
|
46408
46436
|
}
|
|
46409
46437
|
}).catch(function (err) {
|
|
46410
46438
|
if (err.message && err.message !== 'canceled') {
|
|
46411
|
-
|
|
46439
|
+
_this3.$message.error(err.message);
|
|
46412
46440
|
}
|
|
46413
46441
|
});
|
|
46414
46442
|
} else {
|
|
@@ -46417,13 +46445,13 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
46417
46445
|
}
|
|
46418
46446
|
},
|
|
46419
46447
|
searchFilter: function searchFilter(query, isChange) {
|
|
46420
|
-
var
|
|
46448
|
+
var _this4 = this;
|
|
46421
46449
|
|
|
46422
46450
|
return function (state) {
|
|
46423
46451
|
if (isChange) {
|
|
46424
46452
|
return state.value.indexOf(query) > -1;
|
|
46425
46453
|
} else {
|
|
46426
|
-
if (
|
|
46454
|
+
if (_this4.exclude) {
|
|
46427
46455
|
return state.value !== query;
|
|
46428
46456
|
} else {
|
|
46429
46457
|
return state.value === query;
|
|
@@ -46432,7 +46460,7 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
46432
46460
|
};
|
|
46433
46461
|
},
|
|
46434
46462
|
renderd: function renderd(doms, h, type) {
|
|
46435
|
-
var
|
|
46463
|
+
var _this5 = this;
|
|
46436
46464
|
|
|
46437
46465
|
if (typeof this.$attrs[type] === 'boolean') {
|
|
46438
46466
|
if (this.$attrs.render) {
|
|
@@ -46458,8 +46486,8 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
46458
46486
|
domProps: this.$attrs[type].icon ? { innerHTML: this.$attrs[type].icon } : {},
|
|
46459
46487
|
on: {
|
|
46460
46488
|
click: function click() {
|
|
46461
|
-
|
|
46462
|
-
|
|
46489
|
+
_this5.$attrs[type].click && _this5.$attrs[type].click(_this5, _this5.model, _this5.scope);
|
|
46490
|
+
_this5.$attrs[type].event && _this5.$attrs[type].event(_this5, _this5.model, _this5.scope);
|
|
46463
46491
|
}
|
|
46464
46492
|
}
|
|
46465
46493
|
}, [this.$attrs[type].text]));
|
|
@@ -47398,8 +47426,8 @@ layout_src_main.install = function (Vue) {
|
|
|
47398
47426
|
};
|
|
47399
47427
|
|
|
47400
47428
|
/* harmony default export */ var layout = (layout_src_main);
|
|
47401
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=
|
|
47402
|
-
var
|
|
47429
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=5bc62799&
|
|
47430
|
+
var mainvue_type_template_id_5bc62799_render = function () {
|
|
47403
47431
|
var _vm = this
|
|
47404
47432
|
var _h = _vm.$createElement
|
|
47405
47433
|
var _c = _vm._self._c || _h
|
|
@@ -47491,7 +47519,7 @@ var mainvue_type_template_id_6be50449_render = function () {
|
|
|
47491
47519
|
attrs: { title: _vm.switchs > 2 ? item.name : "" },
|
|
47492
47520
|
on: {
|
|
47493
47521
|
click: function ($event) {
|
|
47494
|
-
_vm.switchLogin(item
|
|
47522
|
+
_vm.switchLogin(item)
|
|
47495
47523
|
},
|
|
47496
47524
|
},
|
|
47497
47525
|
})
|
|
@@ -48324,11 +48352,11 @@ var mainvue_type_template_id_6be50449_render = function () {
|
|
|
48324
48352
|
)
|
|
48325
48353
|
: _vm._e()
|
|
48326
48354
|
}
|
|
48327
|
-
var
|
|
48328
|
-
|
|
48355
|
+
var mainvue_type_template_id_5bc62799_staticRenderFns = []
|
|
48356
|
+
mainvue_type_template_id_5bc62799_render._withStripped = true
|
|
48329
48357
|
|
|
48330
48358
|
|
|
48331
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
48359
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=5bc62799&
|
|
48332
48360
|
|
|
48333
48361
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=28f463b9&
|
|
48334
48362
|
var resetPasswordvue_type_template_id_28f463b9_render = function () {
|
|
@@ -49258,10 +49286,6 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
49258
49286
|
type: String,
|
|
49259
49287
|
default: 'default'
|
|
49260
49288
|
},
|
|
49261
|
-
title: {
|
|
49262
|
-
type: String,
|
|
49263
|
-
default: '账号登录'
|
|
49264
|
-
},
|
|
49265
49289
|
param: {
|
|
49266
49290
|
type: Object,
|
|
49267
49291
|
default: function _default() {
|
|
@@ -49496,11 +49520,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
49496
49520
|
6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
|
|
49497
49521
|
7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
|
|
49498
49522
|
9: { type: '9', icon: 'es-icon-weixin', name: '微信扫码登录' },
|
|
49499
|
-
11: {
|
|
49500
|
-
type: '11',
|
|
49501
|
-
icon: 'es-icon-wodeyouxiang',
|
|
49502
|
-
name: '邮箱登录'
|
|
49503
|
-
},
|
|
49523
|
+
11: { type: '11', icon: 'es-icon-wodeyouxiang', name: '邮箱登录' },
|
|
49504
49524
|
12: { type: '12', icon: 'es-icon-jianpan', name: '账号登录' //双因素
|
|
49505
49525
|
} };
|
|
49506
49526
|
},
|
|
@@ -49529,6 +49549,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
49529
49549
|
immediate: true,
|
|
49530
49550
|
handler: function handler(val) {
|
|
49531
49551
|
this.active = val.split(',')[0];
|
|
49552
|
+
this.title = this.iconfonts[this.active].name;
|
|
49532
49553
|
}
|
|
49533
49554
|
},
|
|
49534
49555
|
active: {
|
|
@@ -49579,6 +49600,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
49579
49600
|
},
|
|
49580
49601
|
data: function data() {
|
|
49581
49602
|
return {
|
|
49603
|
+
title: '',
|
|
49582
49604
|
align: this.position,
|
|
49583
49605
|
loginBackgroundImg: this.loginBackground,
|
|
49584
49606
|
loginMainImg: this.loginImage,
|
|
@@ -49640,6 +49662,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
49640
49662
|
document.addEventListener('keyup', this.doLogin);
|
|
49641
49663
|
document.addEventListener('keydown', this.forbiddenTab);
|
|
49642
49664
|
}
|
|
49665
|
+
this.init();
|
|
49643
49666
|
},
|
|
49644
49667
|
mounted: function mounted() {
|
|
49645
49668
|
this.getRemember();
|
|
@@ -49647,6 +49670,10 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
49647
49670
|
},
|
|
49648
49671
|
|
|
49649
49672
|
methods: {
|
|
49673
|
+
init: function init() {
|
|
49674
|
+
var loginBoxAlign = localStorage.getItem('loginBoxAlign');
|
|
49675
|
+
loginBoxAlign && (this.align = loginBoxAlign);
|
|
49676
|
+
},
|
|
49650
49677
|
doWechatLogin: function doWechatLogin(code) {
|
|
49651
49678
|
var _this2 = this;
|
|
49652
49679
|
|
|
@@ -49799,7 +49826,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
49799
49826
|
//this.$refs.login && this.$refs.login.resetFields();
|
|
49800
49827
|
this.$refs.login && this.$refs.login.clearValidate();
|
|
49801
49828
|
if (res != 1) {
|
|
49802
|
-
this.active = res;
|
|
49829
|
+
this.active = res.type;
|
|
49830
|
+
this.title = res.name;
|
|
49803
49831
|
Object.keys(this.defaultModel).length && (this.formData = JSON.parse(JSON.stringify(this.defaultModel)));
|
|
49804
49832
|
}
|
|
49805
49833
|
this.countdown = 0;
|
|
@@ -49898,6 +49926,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
49898
49926
|
this.loginNameImg = res.subsystemExtend.loginBoxName;
|
|
49899
49927
|
}
|
|
49900
49928
|
if (res.subsystemExtend.loginBoxAlign && this.useResults) {
|
|
49929
|
+
localStorage.setItem('loginBoxAlign', res.subsystemExtend.loginBoxAlign);
|
|
49901
49930
|
this.align = res.subsystemExtend.loginBoxAlign;
|
|
49902
49931
|
}
|
|
49903
49932
|
if (res.subsystemExtend.copyrightColor) {
|
|
@@ -50359,8 +50388,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
50359
50388
|
|
|
50360
50389
|
var login_src_main_component = normalizeComponent(
|
|
50361
50390
|
packages_login_src_mainvue_type_script_lang_js_,
|
|
50362
|
-
|
|
50363
|
-
|
|
50391
|
+
mainvue_type_template_id_5bc62799_render,
|
|
50392
|
+
mainvue_type_template_id_5bc62799_staticRenderFns,
|
|
50364
50393
|
false,
|
|
50365
50394
|
null,
|
|
50366
50395
|
null,
|
|
@@ -54843,13 +54872,14 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
|
|
|
54843
54872
|
isChange: false
|
|
54844
54873
|
};
|
|
54845
54874
|
},
|
|
54846
|
-
|
|
54875
|
+
beforeCreate: function beforeCreate() {
|
|
54847
54876
|
var _this = this;
|
|
54848
54877
|
|
|
54849
|
-
this.getMaxWidth = Object(external_throttle_debounce_["debounce"])(
|
|
54878
|
+
this.getMaxWidth = Object(external_throttle_debounce_["debounce"])(500, function () {
|
|
54850
54879
|
_this.getWidth();
|
|
54851
54880
|
});
|
|
54852
54881
|
},
|
|
54882
|
+
created: function created() {},
|
|
54853
54883
|
mounted: function mounted() {
|
|
54854
54884
|
this.getMaxWidth();
|
|
54855
54885
|
},
|
|
@@ -56753,7 +56783,7 @@ mainvue_type_template_id_29c1659e_render._withStripped = true
|
|
|
56753
56783
|
// CONCATENATED MODULE: ./packages/player/src/main.vue?vue&type=template&id=29c1659e&
|
|
56754
56784
|
|
|
56755
56785
|
// EXTERNAL MODULE: external "video.js"
|
|
56756
|
-
var external_video_js_ = __webpack_require__(
|
|
56786
|
+
var external_video_js_ = __webpack_require__(7);
|
|
56757
56787
|
var external_video_js_default = /*#__PURE__*/__webpack_require__.n(external_video_js_);
|
|
56758
56788
|
|
|
56759
56789
|
// EXTERNAL MODULE: external "video.js/dist/lang/zh-CN.json"
|
|
@@ -57214,8 +57244,8 @@ qr_code_src_main.install = function (Vue) {
|
|
|
57214
57244
|
};
|
|
57215
57245
|
|
|
57216
57246
|
/* harmony default export */ var qr_code = (qr_code_src_main);
|
|
57217
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=template&id=
|
|
57218
|
-
var
|
|
57247
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=template&id=d774d48e&
|
|
57248
|
+
var mainvue_type_template_id_d774d48e_render = function () {
|
|
57219
57249
|
var _vm = this
|
|
57220
57250
|
var _h = _vm.$createElement
|
|
57221
57251
|
var _c = _vm._self._c || _h
|
|
@@ -57344,11 +57374,11 @@ var mainvue_type_template_id_5c6d41f9_render = function () {
|
|
|
57344
57374
|
)
|
|
57345
57375
|
: _vm._e()
|
|
57346
57376
|
}
|
|
57347
|
-
var
|
|
57348
|
-
|
|
57377
|
+
var mainvue_type_template_id_d774d48e_staticRenderFns = []
|
|
57378
|
+
mainvue_type_template_id_d774d48e_render._withStripped = true
|
|
57349
57379
|
|
|
57350
57380
|
|
|
57351
|
-
// CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=template&id=
|
|
57381
|
+
// CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=template&id=d774d48e&
|
|
57352
57382
|
|
|
57353
57383
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=script&lang=js&
|
|
57354
57384
|
var radio_group_src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
@@ -57416,6 +57446,7 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
|
|
|
57416
57446
|
|
|
57417
57447
|
|
|
57418
57448
|
|
|
57449
|
+
|
|
57419
57450
|
/* harmony default export */ var radio_group_src_mainvue_type_script_lang_js_ = ({
|
|
57420
57451
|
name: 'EsRadioGroup',
|
|
57421
57452
|
inheritAttrs: false,
|
|
@@ -57589,14 +57620,21 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
|
|
|
57589
57620
|
}
|
|
57590
57621
|
}
|
|
57591
57622
|
},
|
|
57623
|
+
beforeCreate: function beforeCreate() {
|
|
57624
|
+
var _this2 = this;
|
|
57625
|
+
|
|
57626
|
+
this.getData = Object(external_throttle_debounce_["debounce"])(500, function (url, sysCode) {
|
|
57627
|
+
_this2.getDatas(url, sysCode);
|
|
57628
|
+
});
|
|
57629
|
+
},
|
|
57592
57630
|
created: function created() {
|
|
57593
57631
|
this.bindEventBus();
|
|
57594
57632
|
},
|
|
57595
57633
|
mounted: function mounted() {},
|
|
57596
57634
|
|
|
57597
57635
|
methods: {
|
|
57598
|
-
|
|
57599
|
-
var
|
|
57636
|
+
getDatas: function getDatas(url, sysCode) {
|
|
57637
|
+
var _this3 = this;
|
|
57600
57638
|
|
|
57601
57639
|
var params = {};
|
|
57602
57640
|
if (this.results.length === 0) {
|
|
@@ -57614,23 +57652,23 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
|
|
|
57614
57652
|
params: params,
|
|
57615
57653
|
data: params
|
|
57616
57654
|
}).then(function (res) {
|
|
57617
|
-
|
|
57618
|
-
|
|
57655
|
+
_this3.loading = false;
|
|
57656
|
+
_this3.canceled = false;
|
|
57619
57657
|
if (res.rCode === 0) {
|
|
57620
|
-
|
|
57621
|
-
if (sysCode ||
|
|
57622
|
-
bus.$emit(sysCode ||
|
|
57658
|
+
_this3.options = JSON.parse(JSON.stringify(res.results));
|
|
57659
|
+
if (sysCode || _this3.dataKey) {
|
|
57660
|
+
bus.$emit(sysCode || _this3.dataKey, JSON.parse(JSON.stringify(_this3.options)));
|
|
57623
57661
|
utils_store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
|
|
57624
57662
|
}
|
|
57625
57663
|
}
|
|
57626
57664
|
}).catch(function (err) {
|
|
57627
|
-
|
|
57665
|
+
_this3.loading = false;
|
|
57628
57666
|
if (err.message) {
|
|
57629
57667
|
if (err.message !== 'canceled') {
|
|
57630
|
-
|
|
57668
|
+
_this3.$message.error(err.message);
|
|
57631
57669
|
}
|
|
57632
57670
|
if (err.message === 'canceled' && sysCode) {
|
|
57633
|
-
|
|
57671
|
+
_this3.canceled = true;
|
|
57634
57672
|
}
|
|
57635
57673
|
}
|
|
57636
57674
|
});
|
|
@@ -57667,8 +57705,8 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
|
|
|
57667
57705
|
|
|
57668
57706
|
var radio_group_src_main_component = normalizeComponent(
|
|
57669
57707
|
packages_radio_group_src_mainvue_type_script_lang_js_,
|
|
57670
|
-
|
|
57671
|
-
|
|
57708
|
+
mainvue_type_template_id_d774d48e_render,
|
|
57709
|
+
mainvue_type_template_id_d774d48e_staticRenderFns,
|
|
57672
57710
|
false,
|
|
57673
57711
|
null,
|
|
57674
57712
|
null,
|
|
@@ -58159,6 +58197,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58159
58197
|
|
|
58160
58198
|
|
|
58161
58199
|
|
|
58200
|
+
|
|
58162
58201
|
/* harmony default export */ var select_src_mainvue_type_script_lang_js_ = ({
|
|
58163
58202
|
name: 'EsSelect',
|
|
58164
58203
|
componentName: 'EsSelect',
|
|
@@ -58229,10 +58268,6 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58229
58268
|
remoteMethod: Function,
|
|
58230
58269
|
// 选择项远程地址
|
|
58231
58270
|
url: String,
|
|
58232
|
-
wait: {
|
|
58233
|
-
type: Boolean,
|
|
58234
|
-
default: true
|
|
58235
|
-
},
|
|
58236
58271
|
// 选择项获取代码表数据(优先级大于url)
|
|
58237
58272
|
sysCode: String,
|
|
58238
58273
|
filtrate: [String, Object, Array],
|
|
@@ -58356,6 +58391,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58356
58391
|
immediate: true,
|
|
58357
58392
|
handler: function handler(val, old) {
|
|
58358
58393
|
if (val && val !== old) {
|
|
58394
|
+
console.log(1);
|
|
58359
58395
|
this.label = this.service ? 'label' : 'shortName';
|
|
58360
58396
|
this.valKey = this.service ? 'value' : 'cciValue';
|
|
58361
58397
|
var options = utils_store.get(val);
|
|
@@ -58377,6 +58413,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58377
58413
|
param: {
|
|
58378
58414
|
deep: true,
|
|
58379
58415
|
handler: function handler(val, old) {
|
|
58416
|
+
console.log(3);
|
|
58380
58417
|
if (this.url && JSON.stringify(val) !== JSON.stringify(old)) {
|
|
58381
58418
|
this.options = [];
|
|
58382
58419
|
this.getData(this.sysCode);
|
|
@@ -58384,18 +58421,21 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58384
58421
|
}
|
|
58385
58422
|
}
|
|
58386
58423
|
},
|
|
58424
|
+
beforeCreate: function beforeCreate() {
|
|
58425
|
+
var _this2 = this;
|
|
58426
|
+
|
|
58427
|
+
this.getData = Object(external_throttle_debounce_["debounce"])(500, function (sysCode, param, reload) {
|
|
58428
|
+
_this2.getDatas(sysCode, param, reload);
|
|
58429
|
+
});
|
|
58430
|
+
},
|
|
58387
58431
|
created: function created() {
|
|
58388
58432
|
this.bindEventBus();
|
|
58389
58433
|
},
|
|
58390
|
-
mounted: function mounted() {
|
|
58391
|
-
if (this.wait) {
|
|
58392
|
-
this.getData();
|
|
58393
|
-
}
|
|
58394
|
-
},
|
|
58434
|
+
mounted: function mounted() {},
|
|
58395
58435
|
|
|
58396
58436
|
methods: {
|
|
58397
58437
|
createOption: function createOption(_ref) {
|
|
58398
|
-
var
|
|
58438
|
+
var _this3 = this;
|
|
58399
58439
|
|
|
58400
58440
|
var filtrate = _ref.filtrate,
|
|
58401
58441
|
data = _ref.data,
|
|
@@ -58406,23 +58446,23 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58406
58446
|
var filte = filtrate && utils_util["a" /* default */].isObject(filtrate) ? filtrate[this.valKey] : filtrate;
|
|
58407
58447
|
var eles = [];
|
|
58408
58448
|
data.forEach(function (item) {
|
|
58409
|
-
if (
|
|
58410
|
-
|
|
58449
|
+
if (_this3.models === undefined && item.selected) {
|
|
58450
|
+
_this3.$emit('input', _this3.valueType === 'object' ? item : item[_this3.valKey]);
|
|
58411
58451
|
}
|
|
58412
58452
|
if ((Object.prototype.hasOwnProperty.call(item, 'children') || Object.prototype.hasOwnProperty.call(item, 'options')) && (item.children || item.options)) {
|
|
58413
58453
|
var children = item.children || item.options;
|
|
58414
58454
|
if (readonly) {
|
|
58415
|
-
eles.push(
|
|
58455
|
+
eles.push(_this3.createOption({ filtrate: filtrate, data: children, readonly: readonly, h: h }));
|
|
58416
58456
|
} else {
|
|
58417
|
-
eles.push(h('el-option-group', { attrs: { label: item[
|
|
58457
|
+
eles.push(h('el-option-group', { attrs: { label: item[_this3.label] || item.label } }, _this3.createOption({ filtrate: filtrate, data: children, readonly: readonly, h: h })));
|
|
58418
58458
|
}
|
|
58419
58459
|
} else {
|
|
58420
58460
|
if (readonly) {
|
|
58421
|
-
if (item[
|
|
58422
|
-
eles.push(item[
|
|
58461
|
+
if (item[_this3.valKey] === filte) {
|
|
58462
|
+
eles.push(item[_this3.label] || item.label);
|
|
58423
58463
|
}
|
|
58424
58464
|
} else {
|
|
58425
|
-
if (filte === null || filte === undefined || filte === '' || filte === item[
|
|
58465
|
+
if (filte === null || filte === undefined || filte === '' || filte === item[_this3.filtrateKey]) {
|
|
58426
58466
|
if (typeof item === 'string') {
|
|
58427
58467
|
eles.push(h('el-option', {
|
|
58428
58468
|
attrs: {
|
|
@@ -58431,7 +58471,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58431
58471
|
}
|
|
58432
58472
|
}));
|
|
58433
58473
|
} else {
|
|
58434
|
-
var content = [item[
|
|
58474
|
+
var content = [item[_this3.label] || item.label];
|
|
58435
58475
|
if (item.render) {
|
|
58436
58476
|
content = [item.render(h, item)];
|
|
58437
58477
|
}
|
|
@@ -58443,8 +58483,8 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58443
58483
|
}
|
|
58444
58484
|
eles.push(h('el-option', {
|
|
58445
58485
|
attrs: {
|
|
58446
|
-
label: item[
|
|
58447
|
-
value:
|
|
58486
|
+
label: item[_this3.label] || item.label,
|
|
58487
|
+
value: _this3.isObject ? item : item[_this3.valKey],
|
|
58448
58488
|
disabled: item.disabled
|
|
58449
58489
|
}
|
|
58450
58490
|
}, content));
|
|
@@ -58455,8 +58495,8 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58455
58495
|
});
|
|
58456
58496
|
return eles;
|
|
58457
58497
|
},
|
|
58458
|
-
|
|
58459
|
-
var
|
|
58498
|
+
getDatas: function getDatas(sysCode, param, reload) {
|
|
58499
|
+
var _this4 = this;
|
|
58460
58500
|
|
|
58461
58501
|
if (!reload && (!this.ajax || !this.isNoParamRequest && Object.keys(this.param).length == 0)) {
|
|
58462
58502
|
return false;
|
|
@@ -58477,35 +58517,35 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58477
58517
|
params: params,
|
|
58478
58518
|
data: params
|
|
58479
58519
|
}).then(function (res) {
|
|
58480
|
-
|
|
58481
|
-
|
|
58520
|
+
_this4.loading = false;
|
|
58521
|
+
_this4.canceled = false;
|
|
58482
58522
|
if (res.rCode === 0) {
|
|
58483
|
-
if (
|
|
58484
|
-
|
|
58523
|
+
if (_this4.parseData) {
|
|
58524
|
+
_this4.options = _this4.parseData(JSON.parse(JSON.stringify(res.results)));
|
|
58485
58525
|
} else {
|
|
58486
|
-
|
|
58526
|
+
_this4.options = JSON.parse(JSON.stringify(res.results));
|
|
58487
58527
|
}
|
|
58488
|
-
if (sysCode ||
|
|
58489
|
-
bus.$emit(sysCode ||
|
|
58490
|
-
utils_store.set(sysCode, JSON.parse(JSON.stringify(
|
|
58528
|
+
if (sysCode || _this4.dataKey) {
|
|
58529
|
+
bus.$emit(sysCode || _this4.dataKey, JSON.parse(JSON.stringify(_this4.options)));
|
|
58530
|
+
utils_store.set(sysCode, JSON.parse(JSON.stringify(_this4.options)));
|
|
58491
58531
|
}
|
|
58492
58532
|
} else {
|
|
58493
|
-
|
|
58533
|
+
_this4.$message.error(res.msg);
|
|
58494
58534
|
}
|
|
58495
58535
|
}).catch(function (err) {
|
|
58496
|
-
|
|
58536
|
+
_this4.loading = false;
|
|
58497
58537
|
if (err.message) {
|
|
58498
58538
|
if (err.message !== 'canceled') {
|
|
58499
|
-
|
|
58539
|
+
_this4.$message.error(err.message);
|
|
58500
58540
|
}
|
|
58501
58541
|
if (err.message === 'canceled' && sysCode) {
|
|
58502
|
-
|
|
58542
|
+
_this4.canceled = true;
|
|
58503
58543
|
}
|
|
58504
58544
|
}
|
|
58505
58545
|
});
|
|
58506
58546
|
},
|
|
58507
58547
|
search: function search(query) {
|
|
58508
|
-
var
|
|
58548
|
+
var _this5 = this;
|
|
58509
58549
|
|
|
58510
58550
|
if (query && query !== '') {
|
|
58511
58551
|
if (this.url && this.url !== '') {
|
|
@@ -58519,14 +58559,14 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58519
58559
|
params: params,
|
|
58520
58560
|
data: params
|
|
58521
58561
|
}).then(function (res) {
|
|
58522
|
-
|
|
58562
|
+
_this5.loading = false;
|
|
58523
58563
|
if (res.rCode === 0) {
|
|
58524
|
-
|
|
58564
|
+
_this5.options = JSON.parse(JSON.stringify(res.results));
|
|
58525
58565
|
}
|
|
58526
58566
|
}).catch(function (err) {
|
|
58527
|
-
|
|
58567
|
+
_this5.loading = false;
|
|
58528
58568
|
if (err.message && err.message !== 'canceled') {
|
|
58529
|
-
|
|
58569
|
+
_this5.$message.error(err.message);
|
|
58530
58570
|
}
|
|
58531
58571
|
});
|
|
58532
58572
|
} else {
|
|
@@ -58537,7 +58577,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58537
58577
|
}
|
|
58538
58578
|
},
|
|
58539
58579
|
renderd: function renderd(doms, h, type) {
|
|
58540
|
-
var
|
|
58580
|
+
var _this6 = this;
|
|
58541
58581
|
|
|
58542
58582
|
if (typeof this.$attrs[type] === 'boolean') {
|
|
58543
58583
|
if (this.$attrs.render) {
|
|
@@ -58562,8 +58602,8 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58562
58602
|
domProps: this.$attrs[type].icon ? { innerHTML: this.$attrs[type].icon } : {},
|
|
58563
58603
|
on: {
|
|
58564
58604
|
click: function click(e) {
|
|
58565
|
-
|
|
58566
|
-
|
|
58605
|
+
_this6.$attrs[type].click && _this6.$attrs[type].click(_this6, _this6.model);
|
|
58606
|
+
_this6.$attrs[type].event && _this6.$attrs[type].event(_this6, _this6.model);
|
|
58567
58607
|
}
|
|
58568
58608
|
},
|
|
58569
58609
|
ref: 'selectBtn'
|
|
@@ -58617,7 +58657,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58617
58657
|
|
|
58618
58658
|
//请求子节点数据
|
|
58619
58659
|
loadsub: function loadsub(data, node) {
|
|
58620
|
-
var
|
|
58660
|
+
var _this7 = this;
|
|
58621
58661
|
|
|
58622
58662
|
if (data.state !== '' && (!data.children || data.children.length === 0)) {
|
|
58623
58663
|
var param = {};
|
|
@@ -58634,13 +58674,13 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58634
58674
|
}
|
|
58635
58675
|
if (this.onLoadsub) {
|
|
58636
58676
|
this.onLoadsub({ data: data, params: params, node: node }).then(function (res) {
|
|
58637
|
-
|
|
58638
|
-
|
|
58639
|
-
if (
|
|
58640
|
-
|
|
58677
|
+
_this7.loading = false;
|
|
58678
|
+
_this7.$set(data, 'children', JSON.parse(JSON.stringify(res)));
|
|
58679
|
+
if (_this7.dataKey && _this7.esForm) {
|
|
58680
|
+
_this7.esForm.setSysCodes(_this7.dataKey, JSON.parse(JSON.stringify(_this7.options)));
|
|
58641
58681
|
}
|
|
58642
58682
|
}).catch(function (e) {
|
|
58643
|
-
|
|
58683
|
+
_this7.loading = false;
|
|
58644
58684
|
});
|
|
58645
58685
|
} else {
|
|
58646
58686
|
utils_util["a" /* default */].ajax({
|
|
@@ -58650,27 +58690,27 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58650
58690
|
params: params
|
|
58651
58691
|
}).then(function (res) {
|
|
58652
58692
|
if (res.rCode === 0) {
|
|
58653
|
-
|
|
58693
|
+
_this7.loading = false;
|
|
58654
58694
|
var results = JSON.parse(JSON.stringify(res.results));
|
|
58655
58695
|
if (Array.isArray(results)) {
|
|
58656
58696
|
if (data.id === results[0].id) {
|
|
58657
|
-
|
|
58697
|
+
_this7.$set(data, 'children', results[0].children);
|
|
58658
58698
|
} else {
|
|
58659
|
-
|
|
58699
|
+
_this7.$set(data, 'children', results);
|
|
58660
58700
|
}
|
|
58661
58701
|
} else if (data.id === results.id) {
|
|
58662
|
-
|
|
58702
|
+
_this7.$set(data, 'children', results.children);
|
|
58663
58703
|
} else {
|
|
58664
58704
|
console.error('tree数据格式错误');
|
|
58665
58705
|
}
|
|
58666
|
-
if (
|
|
58667
|
-
|
|
58706
|
+
if (_this7.dataKey && _this7.esForm) {
|
|
58707
|
+
_this7.esForm.setSysCodes(_this7.dataKey, JSON.parse(JSON.stringify(_this7.options)));
|
|
58668
58708
|
}
|
|
58669
58709
|
}
|
|
58670
58710
|
}).catch(function (err) {
|
|
58671
|
-
|
|
58711
|
+
_this7.loading = false;
|
|
58672
58712
|
if (err.message && err.message !== 'canceled') {
|
|
58673
|
-
|
|
58713
|
+
_this7.$message.error(err.message);
|
|
58674
58714
|
}
|
|
58675
58715
|
});
|
|
58676
58716
|
}
|
|
@@ -58693,7 +58733,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58693
58733
|
this.unbindEventBus();
|
|
58694
58734
|
},
|
|
58695
58735
|
render: function render(h) {
|
|
58696
|
-
var
|
|
58736
|
+
var _this8 = this;
|
|
58697
58737
|
|
|
58698
58738
|
if (!this.hide) {
|
|
58699
58739
|
if (this.readonly) {
|
|
@@ -58701,12 +58741,12 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58701
58741
|
if (Array.isArray(this.models)) {
|
|
58702
58742
|
dom = this.models.map(function (item) {
|
|
58703
58743
|
if (utils_util["a" /* default */].isObject(item)) {
|
|
58704
|
-
if (!item[
|
|
58705
|
-
return
|
|
58744
|
+
if (!item[_this8.label] && !item.label) {
|
|
58745
|
+
return _this8.getLabel(value[_this8.valKey], data);
|
|
58706
58746
|
}
|
|
58707
|
-
return item[
|
|
58747
|
+
return item[_this8.label] || item.label;
|
|
58708
58748
|
}
|
|
58709
|
-
return
|
|
58749
|
+
return _this8.getLabel(item, _this8.results);
|
|
58710
58750
|
});
|
|
58711
58751
|
} else if (utils_util["a" /* default */].isObject(this.models)) {
|
|
58712
58752
|
if (!this.models[this.label] && !this.models.label) {
|
|
@@ -58732,10 +58772,10 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58732
58772
|
doms = this.filtrate.map(function (item) {
|
|
58733
58773
|
return h('el-option-group', {
|
|
58734
58774
|
attrs: {
|
|
58735
|
-
label: item[
|
|
58736
|
-
key: item[
|
|
58775
|
+
label: item[_this8.label] || item.label,
|
|
58776
|
+
key: item[_this8.valKey]
|
|
58737
58777
|
}
|
|
58738
|
-
},
|
|
58778
|
+
}, _this8.createOption({ filtrate: item, data: _this8.results, h: h }));
|
|
58739
58779
|
});
|
|
58740
58780
|
} else {
|
|
58741
58781
|
doms = this.createOption({
|
|
@@ -58847,6 +58887,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
58847
58887
|
|
|
58848
58888
|
|
|
58849
58889
|
|
|
58890
|
+
|
|
58850
58891
|
/* harmony default export */ var select_ganged_src_mainvue_type_script_lang_js_ = ({
|
|
58851
58892
|
name: 'EsSelectGanged',
|
|
58852
58893
|
componentName: 'EsSelectGanged',
|
|
@@ -59071,14 +59112,21 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59071
59112
|
}
|
|
59072
59113
|
}
|
|
59073
59114
|
},
|
|
59115
|
+
beforeCreate: function beforeCreate() {
|
|
59116
|
+
var _this = this;
|
|
59117
|
+
|
|
59118
|
+
this.getData = Object(external_throttle_debounce_["debounce"])(500, function () {
|
|
59119
|
+
_this.getDatas();
|
|
59120
|
+
});
|
|
59121
|
+
},
|
|
59074
59122
|
created: function created() {
|
|
59075
59123
|
this.getData();
|
|
59076
59124
|
},
|
|
59077
59125
|
mounted: function mounted() {},
|
|
59078
59126
|
|
|
59079
59127
|
methods: {
|
|
59080
|
-
|
|
59081
|
-
var
|
|
59128
|
+
getDatas: function getDatas() {
|
|
59129
|
+
var _this2 = this;
|
|
59082
59130
|
|
|
59083
59131
|
if (!this.integrality || !this.url) {
|
|
59084
59132
|
return false;
|
|
@@ -59089,28 +59137,28 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59089
59137
|
params: this.param,
|
|
59090
59138
|
data: this.param
|
|
59091
59139
|
}).then(function (res) {
|
|
59092
|
-
|
|
59140
|
+
_this2.canceled = false;
|
|
59093
59141
|
if (res.rCode === 0) {
|
|
59094
|
-
|
|
59095
|
-
|
|
59096
|
-
if (sysCode ||
|
|
59097
|
-
|
|
59098
|
-
store.set(sysCode, JSON.parse(JSON.stringify(
|
|
59142
|
+
_this2.lists = res.results;
|
|
59143
|
+
_this2.getChildren(_this2.results, _this2.values);
|
|
59144
|
+
if (sysCode || _this2.dataKey) {
|
|
59145
|
+
_this2.esForm && _this2.esForm.setSysCodes(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.lists)));
|
|
59146
|
+
store.set(sysCode, JSON.parse(JSON.stringify(_this2.lists)));
|
|
59099
59147
|
}
|
|
59100
59148
|
}
|
|
59101
59149
|
}).catch(function (err) {
|
|
59102
59150
|
if (err.message) {
|
|
59103
59151
|
if (err.message !== 'canceled') {
|
|
59104
|
-
|
|
59152
|
+
_this2.$message.error(err.message);
|
|
59105
59153
|
}
|
|
59106
59154
|
if (err.message === 'canceled' && sysCode) {
|
|
59107
|
-
|
|
59155
|
+
_this2.canceled = true;
|
|
59108
59156
|
}
|
|
59109
59157
|
}
|
|
59110
59158
|
});
|
|
59111
59159
|
},
|
|
59112
59160
|
getChildren: function getChildren(data, values) {
|
|
59113
|
-
var
|
|
59161
|
+
var _this3 = this;
|
|
59114
59162
|
|
|
59115
59163
|
if (!this.gangedNum) {
|
|
59116
59164
|
if (this.ganged && this.value.length < this.getGanged || Array.isArray(this.results[0])) {
|
|
@@ -59144,7 +59192,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59144
59192
|
if (typeof this.queryKey === 'string') {
|
|
59145
59193
|
if (Array.isArray(values[i])) {
|
|
59146
59194
|
params[this.queryKey] = values[i].map(function (item) {
|
|
59147
|
-
return item[
|
|
59195
|
+
return item[_this3.queryKey];
|
|
59148
59196
|
});
|
|
59149
59197
|
} else {
|
|
59150
59198
|
params[this.queryKey] = values[i][this.queryKey];
|
|
@@ -59153,10 +59201,10 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59153
59201
|
var _loop = function _loop(x) {
|
|
59154
59202
|
if (Array.isArray(values[i])) {
|
|
59155
59203
|
params[x] = values[i].map(function (item) {
|
|
59156
|
-
return item[
|
|
59204
|
+
return item[_this3.queryKey[x]];
|
|
59157
59205
|
});
|
|
59158
59206
|
} else {
|
|
59159
|
-
params[x] = values[i][
|
|
59207
|
+
params[x] = values[i][_this3.queryKey[x]];
|
|
59160
59208
|
}
|
|
59161
59209
|
};
|
|
59162
59210
|
|
|
@@ -59174,7 +59222,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59174
59222
|
}
|
|
59175
59223
|
},
|
|
59176
59224
|
getValue: function getValue() {
|
|
59177
|
-
var
|
|
59225
|
+
var _this4 = this;
|
|
59178
59226
|
|
|
59179
59227
|
if (!this.gangedNum) {
|
|
59180
59228
|
if (this.ganged && this.value.length <= this.getGanged || Array.isArray(this.results[0])) {
|
|
@@ -59203,7 +59251,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59203
59251
|
var _disabled = [];
|
|
59204
59252
|
if (this.multiple) {
|
|
59205
59253
|
this.values = this.value.map(function (item, index) {
|
|
59206
|
-
return
|
|
59254
|
+
return _this4.multiples[index] ? Array.isArray(item) ? item : [item] : item;
|
|
59207
59255
|
});
|
|
59208
59256
|
for (var _i2 = 0; _i2 < this.gangedNum; _i2++) {
|
|
59209
59257
|
_disabled.push(this.values[_i2] && this.values[_i2].length ? false : _i2 > 0);
|
|
@@ -59224,7 +59272,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59224
59272
|
}
|
|
59225
59273
|
},
|
|
59226
59274
|
handeChange: function handeChange(val, key) {
|
|
59227
|
-
var
|
|
59275
|
+
var _this5 = this;
|
|
59228
59276
|
|
|
59229
59277
|
if (!this.gangedNum) {
|
|
59230
59278
|
if (this.ganged && this.value.length < this.getGanged) {
|
|
@@ -59251,13 +59299,13 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59251
59299
|
if (this.queryKey !== undefined) {
|
|
59252
59300
|
if (typeof this.queryKey === 'string') {
|
|
59253
59301
|
params[this.queryKey] = Array.isArray(val) ? val.map(function (item) {
|
|
59254
|
-
return item[
|
|
59302
|
+
return item[_this5.queryKey];
|
|
59255
59303
|
}) : val[this.queryKey];
|
|
59256
59304
|
} else {
|
|
59257
59305
|
var _loop2 = function _loop2(i) {
|
|
59258
59306
|
params[i] = Array.isArray(val) ? val.map(function (item) {
|
|
59259
|
-
return item[
|
|
59260
|
-
}) : val[
|
|
59307
|
+
return item[_this5.queryKey[i]];
|
|
59308
|
+
}) : val[_this5.queryKey[i]];
|
|
59261
59309
|
};
|
|
59262
59310
|
|
|
59263
59311
|
for (var i in this.queryKey) {
|
|
@@ -59266,7 +59314,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59266
59314
|
}
|
|
59267
59315
|
} else {
|
|
59268
59316
|
params.id = Array.isArray(val) ? val.map(function (item) {
|
|
59269
|
-
return item[
|
|
59317
|
+
return item[_this5.valueKey];
|
|
59270
59318
|
}) : val[this.valueKey];
|
|
59271
59319
|
}
|
|
59272
59320
|
this.$set(this.wheres, key + 1, params);
|
|
@@ -59275,30 +59323,30 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59275
59323
|
if (key + 1 < this.gangedNum) {}
|
|
59276
59324
|
|
|
59277
59325
|
var _loop3 = function _loop3(i) {
|
|
59278
|
-
if (
|
|
59326
|
+
if (_this5.multiples[i - 1]) {
|
|
59279
59327
|
var newVal = [];
|
|
59280
|
-
|
|
59281
|
-
|
|
59282
|
-
if (element[
|
|
59328
|
+
_this5.values[i - 1].forEach(function (element) {
|
|
59329
|
+
_this5.values[i].forEach(function (itemVal) {
|
|
59330
|
+
if (element[_this5.valueKey] === itemVal[_this5.filtrateKey]) {
|
|
59283
59331
|
newVal.push(itemVal);
|
|
59284
59332
|
}
|
|
59285
59333
|
});
|
|
59286
59334
|
});
|
|
59287
|
-
|
|
59335
|
+
_this5.$set(_this5.values, i, newVal);
|
|
59288
59336
|
}
|
|
59289
|
-
if (
|
|
59290
|
-
|
|
59337
|
+
if (_this5.values[i - 1] && (utils_util["a" /* default */].isObject(_this5.values[i - 1]) || _this5.values[i - 1].length)) {
|
|
59338
|
+
_this5.$set(_this5.disabled, i, false);
|
|
59291
59339
|
} else {
|
|
59292
|
-
|
|
59340
|
+
_this5.$set(_this5.disabled, i, true);
|
|
59293
59341
|
}
|
|
59294
|
-
|
|
59295
|
-
if (!
|
|
59342
|
+
_this5.$set(_this5.filtrates, i, _this5.values[i - 1]);
|
|
59343
|
+
if (!_this5.multiple) {
|
|
59296
59344
|
if (utils_util["a" /* default */].isObject(val) && Object.prototype.hasOwnProperty.call(val, 'multiple')) {
|
|
59297
|
-
|
|
59345
|
+
_this5.$set(_this5.multiples, i, Boolean(val.multiple));
|
|
59298
59346
|
}
|
|
59299
59347
|
}
|
|
59300
|
-
if (!
|
|
59301
|
-
|
|
59348
|
+
if (!_this5.multiples[i - 1] || val.length == 0) {
|
|
59349
|
+
_this5.$set(_this5.values, i, _this5.multiples[i] ? [] : '');
|
|
59302
59350
|
}
|
|
59303
59351
|
};
|
|
59304
59352
|
|
|
@@ -59327,7 +59375,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59327
59375
|
}
|
|
59328
59376
|
},
|
|
59329
59377
|
render: function render(h) {
|
|
59330
|
-
var
|
|
59378
|
+
var _this6 = this;
|
|
59331
59379
|
|
|
59332
59380
|
if (!this.hide) {
|
|
59333
59381
|
if (this.readonly) {
|
|
@@ -59340,26 +59388,26 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59340
59388
|
if (Array.isArray(item)) {
|
|
59341
59389
|
item.forEach(function (ele) {
|
|
59342
59390
|
var obj = ele;
|
|
59343
|
-
if (!ele[
|
|
59344
|
-
obj =
|
|
59391
|
+
if (!ele[_this6.filtrateKey]) {
|
|
59392
|
+
obj = _this6.getLabel(ele[_this6.valueKey] || ele, index);
|
|
59345
59393
|
}
|
|
59346
|
-
if (path[obj[
|
|
59347
|
-
path[obj[
|
|
59348
|
-
values.push(path[obj[
|
|
59394
|
+
if (path[obj[_this6.filtrateKey]]) {
|
|
59395
|
+
path[obj[_this6.valueKey]] = path[obj[_this6.filtrateKey]] + _this6.separator + (obj[_this6.labelKey] || obj.label);
|
|
59396
|
+
values.push(path[obj[_this6.valueKey]]);
|
|
59349
59397
|
} else {
|
|
59350
|
-
path[obj[
|
|
59398
|
+
path[obj[_this6.valueKey]] = obj[_this6.labelKey] || obj.label;
|
|
59351
59399
|
}
|
|
59352
59400
|
});
|
|
59353
59401
|
} else {
|
|
59354
59402
|
var obj = item;
|
|
59355
|
-
if (!item[
|
|
59356
|
-
obj =
|
|
59403
|
+
if (!item[_this6.filtrateKey]) {
|
|
59404
|
+
obj = _this6.getLabel(item[_this6.valueKey] || item, index);
|
|
59357
59405
|
}
|
|
59358
|
-
if (path[obj[
|
|
59359
|
-
path[obj[
|
|
59360
|
-
values.push(path[obj[
|
|
59406
|
+
if (path[obj[_this6.filtrateKey]]) {
|
|
59407
|
+
path[obj[_this6.valueKey]] = path[obj[_this6.filtrateKey]] + _this6.separator + (obj[_this6.labelKey] || obj.label);
|
|
59408
|
+
values.push(path[obj[_this6.valueKey]]);
|
|
59361
59409
|
} else {
|
|
59362
|
-
path[obj[
|
|
59410
|
+
path[obj[_this6.valueKey]] = obj[_this6.labelKey] || obj.label;
|
|
59363
59411
|
}
|
|
59364
59412
|
}
|
|
59365
59413
|
});
|
|
@@ -59379,10 +59427,10 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59379
59427
|
value = [this.value.map(function (item, indexs) {
|
|
59380
59428
|
if (Array.isArray(item)) {
|
|
59381
59429
|
return item.map(function (ele, index) {
|
|
59382
|
-
return utils_util["a" /* default */].isObject(ele) ? ele[
|
|
59383
|
-
}).join(
|
|
59430
|
+
return utils_util["a" /* default */].isObject(ele) ? ele[_this6.labelKey] || ele.label || _this6.getLabel(ele[_this6.valueKey] || ele.label, index) : _this6.getLabel(ele, index) || ele;
|
|
59431
|
+
}).join(_this6.symbol);
|
|
59384
59432
|
}
|
|
59385
|
-
return utils_util["a" /* default */].isObject(item) ? item[
|
|
59433
|
+
return utils_util["a" /* default */].isObject(item) ? item[_this6.labelKey] || item.label || _this6.getLabel(item[_this6.valueKey] || item.label, indexs) : _this6.getLabel(item, indexs) || item;
|
|
59386
59434
|
}).join(this.separator)];
|
|
59387
59435
|
}
|
|
59388
59436
|
}
|
|
@@ -59411,31 +59459,31 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59411
59459
|
|
|
59412
59460
|
var _loop4 = function _loop4(i) {
|
|
59413
59461
|
doms.push(h('es-select', {
|
|
59414
|
-
attrs: select_ganged_src_mainvue_type_script_lang_js_extends({},
|
|
59415
|
-
data:
|
|
59416
|
-
sysCode:
|
|
59417
|
-
url:
|
|
59418
|
-
wait:
|
|
59419
|
-
param: Array.isArray(
|
|
59420
|
-
disabled:
|
|
59421
|
-
multiple:
|
|
59422
|
-
height:
|
|
59423
|
-
value:
|
|
59424
|
-
valueType:
|
|
59425
|
-
valueKey:
|
|
59426
|
-
labelKey:
|
|
59427
|
-
filtrateKey:
|
|
59428
|
-
filtrate:
|
|
59429
|
-
placeholder:
|
|
59430
|
-
parseData:
|
|
59431
|
-
defaultValue: i === 0 ?
|
|
59462
|
+
attrs: select_ganged_src_mainvue_type_script_lang_js_extends({}, _this6.$attrs, {
|
|
59463
|
+
data: _this6.results[i] ? Array.isArray(_this6.results[0]) ? _this6.results[i] : _this6.results : [],
|
|
59464
|
+
sysCode: _this6.integrality ? undefined : _this6.sysCode,
|
|
59465
|
+
url: _this6.integrality ? undefined : _this6.url,
|
|
59466
|
+
wait: _this6.ganged ? i <= _this6.value.length : true,
|
|
59467
|
+
param: Array.isArray(_this6.param) ? select_ganged_src_mainvue_type_script_lang_js_extends({}, _this6.param[i], _this6.wheres[i]) : select_ganged_src_mainvue_type_script_lang_js_extends({}, _this6.param, _this6.wheres[i]),
|
|
59468
|
+
disabled: _this6.disabled[i],
|
|
59469
|
+
multiple: _this6.multiples[i],
|
|
59470
|
+
height: _this6.height,
|
|
59471
|
+
value: _this6.values[i],
|
|
59472
|
+
valueType: _this6.valueType,
|
|
59473
|
+
valueKey: _this6.valueKey,
|
|
59474
|
+
labelKey: _this6.labelKey,
|
|
59475
|
+
filtrateKey: _this6.filtrateKey,
|
|
59476
|
+
filtrate: _this6.url ? _this6.integrality ? _this6.filtrates[i] : undefined : _this6.filtrates[i],
|
|
59477
|
+
placeholder: _this6.placeholder,
|
|
59478
|
+
parseData: _this6.parseData,
|
|
59479
|
+
defaultValue: i === 0 ? _this6.defaultValue : false
|
|
59432
59480
|
}),
|
|
59433
59481
|
on: {
|
|
59434
59482
|
change: function change(val) {
|
|
59435
|
-
|
|
59483
|
+
_this6.handeChange(val, i);
|
|
59436
59484
|
},
|
|
59437
59485
|
resetInputHeight: function resetInputHeight(val) {
|
|
59438
|
-
|
|
59486
|
+
_this6.height = val;
|
|
59439
59487
|
}
|
|
59440
59488
|
}
|
|
59441
59489
|
}));
|
|
@@ -60669,8 +60717,8 @@ selector_src_main.install = function (Vue) {
|
|
|
60669
60717
|
};
|
|
60670
60718
|
|
|
60671
60719
|
/* harmony default export */ var selector = (selector_src_main);
|
|
60672
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/main.vue?vue&type=template&id=
|
|
60673
|
-
var
|
|
60720
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/main.vue?vue&type=template&id=2c4cf752&
|
|
60721
|
+
var mainvue_type_template_id_2c4cf752_render = function () {
|
|
60674
60722
|
var _vm = this
|
|
60675
60723
|
var _h = _vm.$createElement
|
|
60676
60724
|
var _c = _vm._self._c || _h
|
|
@@ -60915,11 +60963,11 @@ var mainvue_type_template_id_6d73abc3_render = function () {
|
|
|
60915
60963
|
1
|
|
60916
60964
|
)
|
|
60917
60965
|
}
|
|
60918
|
-
var
|
|
60919
|
-
|
|
60966
|
+
var mainvue_type_template_id_2c4cf752_staticRenderFns = []
|
|
60967
|
+
mainvue_type_template_id_2c4cf752_render._withStripped = true
|
|
60920
60968
|
|
|
60921
60969
|
|
|
60922
|
-
// CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=
|
|
60970
|
+
// CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=2c4cf752&
|
|
60923
60971
|
|
|
60924
60972
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/tree.vue?vue&type=template&id=24ad732a&
|
|
60925
60973
|
var treevue_type_template_id_24ad732a_render = function () {
|
|
@@ -61649,6 +61697,7 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
61649
61697
|
|
|
61650
61698
|
|
|
61651
61699
|
|
|
61700
|
+
|
|
61652
61701
|
/* harmony default export */ var selector_panel_src_mainvue_type_script_lang_js_ = ({
|
|
61653
61702
|
name: 'EsSelectorPanel',
|
|
61654
61703
|
inheritAttrs: false,
|
|
@@ -62135,14 +62184,21 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62135
62184
|
this.trees[this.activeName].value = val;
|
|
62136
62185
|
}
|
|
62137
62186
|
},
|
|
62187
|
+
beforeCreate: function beforeCreate() {
|
|
62188
|
+
var _this2 = this;
|
|
62189
|
+
|
|
62190
|
+
this.ajaxActive = Object(external_throttle_debounce_["debounce"])(500, function (active) {
|
|
62191
|
+
_this2.getAjaxActive(active);
|
|
62192
|
+
});
|
|
62193
|
+
},
|
|
62138
62194
|
created: function created() {},
|
|
62139
62195
|
mounted: function mounted() {
|
|
62140
62196
|
this.ajaxActive(this.activeName);
|
|
62141
62197
|
},
|
|
62142
62198
|
|
|
62143
62199
|
methods: {
|
|
62144
|
-
|
|
62145
|
-
var
|
|
62200
|
+
getAjaxActive: function getAjaxActive(active) {
|
|
62201
|
+
var _this3 = this;
|
|
62146
62202
|
|
|
62147
62203
|
if (this.isShowTree) {
|
|
62148
62204
|
if ((!this.trees[active].data || this.trees[active].data && this.trees[active].data.length === 0) && this.newTabs[active].url) {
|
|
@@ -62168,12 +62224,12 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62168
62224
|
data: this.param
|
|
62169
62225
|
}).then(function (res) {
|
|
62170
62226
|
if (res.rCode === 0) {
|
|
62171
|
-
|
|
62172
|
-
|
|
62227
|
+
_this3.selections = JSON.parse(JSON.stringify(res.results));
|
|
62228
|
+
_this3.checkboxs = JSON.parse(JSON.stringify(res.results)) || [];
|
|
62173
62229
|
}
|
|
62174
62230
|
}).catch(function (err) {
|
|
62175
62231
|
if (err.message && err.message !== 'canceled') {
|
|
62176
|
-
|
|
62232
|
+
_this3.$message.error(err.message);
|
|
62177
62233
|
}
|
|
62178
62234
|
});
|
|
62179
62235
|
} else {
|
|
@@ -62183,7 +62239,7 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62183
62239
|
}
|
|
62184
62240
|
},
|
|
62185
62241
|
getTreeData: function getTreeData(url, params, id) {
|
|
62186
|
-
var
|
|
62242
|
+
var _this4 = this;
|
|
62187
62243
|
|
|
62188
62244
|
var data = utils_util["a" /* default */].extend({}, params, this.param);
|
|
62189
62245
|
if (id !== undefined) {
|
|
@@ -62191,24 +62247,24 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62191
62247
|
}
|
|
62192
62248
|
utils_util["a" /* default */].ajax({ method: this.method, url: url, params: data, data: data }).then(function (res) {
|
|
62193
62249
|
if (res.rCode === 0) {
|
|
62194
|
-
|
|
62250
|
+
_this4.loading = false;
|
|
62195
62251
|
if (!Object.prototype.hasOwnProperty.call(params, 'seachkey')) {
|
|
62196
|
-
|
|
62252
|
+
_this4.$set(_this4.defaults[_this4.activeName], 'data', JSON.parse(JSON.stringify(res.results)));
|
|
62197
62253
|
}
|
|
62198
62254
|
if (res.results.length && res.results[0].name === '无搜索数据') {
|
|
62199
|
-
|
|
62255
|
+
_this4.$set(_this4.trees[_this4.activeName], 'data', null);
|
|
62200
62256
|
} else {
|
|
62201
|
-
|
|
62257
|
+
_this4.$set(_this4.trees[_this4.activeName], 'data', JSON.parse(JSON.stringify(res.results)));
|
|
62202
62258
|
}
|
|
62203
62259
|
}
|
|
62204
62260
|
}).catch(function (err) {
|
|
62205
62261
|
if (err.message && err.message !== 'canceled') {
|
|
62206
|
-
|
|
62262
|
+
_this4.$message.error(err.message);
|
|
62207
62263
|
}
|
|
62208
62264
|
});
|
|
62209
62265
|
},
|
|
62210
62266
|
loadsub: function loadsub(data, node, flag) {
|
|
62211
|
-
var
|
|
62267
|
+
var _this5 = this;
|
|
62212
62268
|
|
|
62213
62269
|
node;
|
|
62214
62270
|
if (flag) {
|
|
@@ -62234,14 +62290,14 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62234
62290
|
}).then(function (res) {
|
|
62235
62291
|
if (res.rCode === 0) {
|
|
62236
62292
|
data.selection = JSON.parse(JSON.stringify(res.results));
|
|
62237
|
-
|
|
62238
|
-
|
|
62239
|
-
|
|
62240
|
-
|
|
62293
|
+
_this5.$set(_this5.trees[_this5.activeName], 'selection', JSON.parse(JSON.stringify(res.results)));
|
|
62294
|
+
_this5.$set(_this5.trees[_this5.activeName], 'nodeData', data);
|
|
62295
|
+
_this5.nodeData = _this5.trees[_this5.activeName].nodeData;
|
|
62296
|
+
_this5.checkboxs = _this5.trees[_this5.activeName].selection;
|
|
62241
62297
|
}
|
|
62242
62298
|
}).catch(function (err) {
|
|
62243
62299
|
if (err.message && err.message !== 'canceled') {
|
|
62244
|
-
|
|
62300
|
+
_this5.$message.error(err.message);
|
|
62245
62301
|
}
|
|
62246
62302
|
});
|
|
62247
62303
|
} else {
|
|
@@ -62264,13 +62320,13 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62264
62320
|
params: _params
|
|
62265
62321
|
}).then(function (res) {
|
|
62266
62322
|
if (res.rCode === 0) {
|
|
62267
|
-
|
|
62268
|
-
|
|
62269
|
-
|
|
62323
|
+
_this5.loading = false;
|
|
62324
|
+
_this5.$set(data, 'children', JSON.parse(JSON.stringify(res.results)));
|
|
62325
|
+
_this5.$set(_this5.defaults[_this5.activeName], 'data', JSON.parse(JSON.stringify(_this5.trees[_this5.activeName].data)));
|
|
62270
62326
|
}
|
|
62271
62327
|
}).catch(function (err) {
|
|
62272
62328
|
if (err.message && err.message !== 'canceled') {
|
|
62273
|
-
|
|
62329
|
+
_this5.$message.error(err.message);
|
|
62274
62330
|
}
|
|
62275
62331
|
});
|
|
62276
62332
|
}
|
|
@@ -62288,7 +62344,7 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62288
62344
|
}
|
|
62289
62345
|
},
|
|
62290
62346
|
handleCheckAll: function handleCheckAll(res) {
|
|
62291
|
-
var
|
|
62347
|
+
var _this6 = this;
|
|
62292
62348
|
|
|
62293
62349
|
if (this.checkboxs.length > 0) {
|
|
62294
62350
|
var isObject = utils_util["a" /* default */].isObject(this.checkboxs[0]);
|
|
@@ -62306,9 +62362,9 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62306
62362
|
if (this.isShowTree) {
|
|
62307
62363
|
this.nodeData.checkAll = false;
|
|
62308
62364
|
this.checkboxs.forEach(function (element) {
|
|
62309
|
-
for (var i in
|
|
62310
|
-
if (isObject &&
|
|
62311
|
-
|
|
62365
|
+
for (var i in _this6.checkeds) {
|
|
62366
|
+
if (isObject && _this6.checkeds[i][_this6.valueKey] === element[_this6.valueKey] || _this6.checkeds[i] === element) {
|
|
62367
|
+
_this6.checkeds.splice(i, 1);
|
|
62312
62368
|
break;
|
|
62313
62369
|
}
|
|
62314
62370
|
}
|
|
@@ -62327,7 +62383,7 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62327
62383
|
this.$emit('filtratechage', this.trees, this.activeName);
|
|
62328
62384
|
},
|
|
62329
62385
|
handleChangeSearch: function handleChangeSearch() {
|
|
62330
|
-
var
|
|
62386
|
+
var _this7 = this;
|
|
62331
62387
|
|
|
62332
62388
|
if (this.search === '') {
|
|
62333
62389
|
if (this.isShowTree) {
|
|
@@ -62341,11 +62397,11 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62341
62397
|
var arry = [];
|
|
62342
62398
|
this.nodeData.selection.forEach(function (item) {
|
|
62343
62399
|
if (utils_util["a" /* default */].isObject(item)) {
|
|
62344
|
-
if (item[
|
|
62400
|
+
if (item[_this7.labelKey].indexOf(_this7.search) > -1) {
|
|
62345
62401
|
arry.push(item);
|
|
62346
62402
|
}
|
|
62347
62403
|
} else {
|
|
62348
|
-
if (item.indexOf(
|
|
62404
|
+
if (item.indexOf(_this7.search) > -1) {
|
|
62349
62405
|
arry.push(item);
|
|
62350
62406
|
}
|
|
62351
62407
|
}
|
|
@@ -62356,11 +62412,11 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62356
62412
|
var _arry = [];
|
|
62357
62413
|
this.selections.forEach(function (item) {
|
|
62358
62414
|
if (utils_util["a" /* default */].isObject(item)) {
|
|
62359
|
-
if (item[
|
|
62415
|
+
if (item[_this7.labelKey].indexOf(_this7.search) > -1) {
|
|
62360
62416
|
_arry.push(item);
|
|
62361
62417
|
}
|
|
62362
62418
|
} else {
|
|
62363
|
-
if (item.indexOf(
|
|
62419
|
+
if (item.indexOf(_this7.search) > -1) {
|
|
62364
62420
|
_arry.push(item);
|
|
62365
62421
|
}
|
|
62366
62422
|
}
|
|
@@ -62370,7 +62426,7 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62370
62426
|
}
|
|
62371
62427
|
},
|
|
62372
62428
|
handleSearch: function handleSearch() {
|
|
62373
|
-
var
|
|
62429
|
+
var _this8 = this;
|
|
62374
62430
|
|
|
62375
62431
|
if (this.isShowTree) {
|
|
62376
62432
|
if (this.nodeData && this.nodeData.selection) {
|
|
@@ -62378,11 +62434,11 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62378
62434
|
var arry = [];
|
|
62379
62435
|
this.nodeData.selection.forEach(function (item) {
|
|
62380
62436
|
if (utils_util["a" /* default */].isObject(item)) {
|
|
62381
|
-
if (item[
|
|
62437
|
+
if (item[_this8.labelKey].indexOf(_this8.search) > -1) {
|
|
62382
62438
|
arry.push(item);
|
|
62383
62439
|
}
|
|
62384
62440
|
} else {
|
|
62385
|
-
if (item.indexOf(
|
|
62441
|
+
if (item.indexOf(_this8.search) > -1) {
|
|
62386
62442
|
arry.push(item);
|
|
62387
62443
|
}
|
|
62388
62444
|
}
|
|
@@ -62404,11 +62460,11 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62404
62460
|
}
|
|
62405
62461
|
}).then(function (res) {
|
|
62406
62462
|
if (res.rCode === 0) {
|
|
62407
|
-
|
|
62463
|
+
_this8.checkboxs = JSON.parse(JSON.stringify(res.results));
|
|
62408
62464
|
}
|
|
62409
62465
|
}).catch(function (err) {
|
|
62410
62466
|
if (err.message && err.message !== 'canceled') {
|
|
62411
|
-
|
|
62467
|
+
_this8.$message.error(err.message);
|
|
62412
62468
|
}
|
|
62413
62469
|
});
|
|
62414
62470
|
}
|
|
@@ -62417,11 +62473,11 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62417
62473
|
var _arry2 = [];
|
|
62418
62474
|
this.selections.forEach(function (item) {
|
|
62419
62475
|
if (utils_util["a" /* default */].isObject(item)) {
|
|
62420
|
-
if (item[
|
|
62476
|
+
if (item[_this8.labelKey].indexOf(_this8.search) > -1) {
|
|
62421
62477
|
_arry2.push(item);
|
|
62422
62478
|
}
|
|
62423
62479
|
} else {
|
|
62424
|
-
if (item.indexOf(
|
|
62480
|
+
if (item.indexOf(_this8.search) > -1) {
|
|
62425
62481
|
_arry2.push(item);
|
|
62426
62482
|
}
|
|
62427
62483
|
}
|
|
@@ -62473,8 +62529,8 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62473
62529
|
|
|
62474
62530
|
var selector_panel_src_main_component = normalizeComponent(
|
|
62475
62531
|
packages_selector_panel_src_mainvue_type_script_lang_js_,
|
|
62476
|
-
|
|
62477
|
-
|
|
62532
|
+
mainvue_type_template_id_2c4cf752_render,
|
|
62533
|
+
mainvue_type_template_id_2c4cf752_staticRenderFns,
|
|
62478
62534
|
false,
|
|
62479
62535
|
null,
|
|
62480
62536
|
null,
|
|
@@ -62918,8 +62974,8 @@ sizer_src_main.install = function (Vue) {
|
|
|
62918
62974
|
};
|
|
62919
62975
|
|
|
62920
62976
|
/* harmony default export */ var packages_sizer = (sizer_src_main);
|
|
62921
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/steps/src/main.vue?vue&type=template&id=
|
|
62922
|
-
var
|
|
62977
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/steps/src/main.vue?vue&type=template&id=9b12a526&
|
|
62978
|
+
var mainvue_type_template_id_9b12a526_render = function () {
|
|
62923
62979
|
var _vm = this
|
|
62924
62980
|
var _h = _vm.$createElement
|
|
62925
62981
|
var _c = _vm._self._c || _h
|
|
@@ -63019,11 +63075,11 @@ var mainvue_type_template_id_6a6ca54d_render = function () {
|
|
|
63019
63075
|
1
|
|
63020
63076
|
)
|
|
63021
63077
|
}
|
|
63022
|
-
var
|
|
63023
|
-
|
|
63078
|
+
var mainvue_type_template_id_9b12a526_staticRenderFns = []
|
|
63079
|
+
mainvue_type_template_id_9b12a526_render._withStripped = true
|
|
63024
63080
|
|
|
63025
63081
|
|
|
63026
|
-
// CONCATENATED MODULE: ./packages/steps/src/main.vue?vue&type=template&id=
|
|
63082
|
+
// CONCATENATED MODULE: ./packages/steps/src/main.vue?vue&type=template&id=9b12a526&
|
|
63027
63083
|
|
|
63028
63084
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/steps/src/main.vue?vue&type=script&lang=js&
|
|
63029
63085
|
var steps_src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
@@ -63096,6 +63152,7 @@ var steps_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
63096
63152
|
//
|
|
63097
63153
|
|
|
63098
63154
|
|
|
63155
|
+
|
|
63099
63156
|
/* harmony default export */ var steps_src_mainvue_type_script_lang_js_ = ({
|
|
63100
63157
|
name: 'EsSteps',
|
|
63101
63158
|
inheritAttrs: false,
|
|
@@ -63160,14 +63217,21 @@ var steps_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
63160
63217
|
}
|
|
63161
63218
|
}
|
|
63162
63219
|
},
|
|
63220
|
+
beforeCreate: function beforeCreate() {
|
|
63221
|
+
var _this = this;
|
|
63222
|
+
|
|
63223
|
+
this.getData = Object(external_throttle_debounce_["debounce"])(500, function () {
|
|
63224
|
+
_this.getDatas();
|
|
63225
|
+
});
|
|
63226
|
+
},
|
|
63163
63227
|
created: function created() {
|
|
63164
63228
|
this.getData();
|
|
63165
63229
|
},
|
|
63166
63230
|
mounted: function mounted() {},
|
|
63167
63231
|
|
|
63168
63232
|
methods: {
|
|
63169
|
-
|
|
63170
|
-
var
|
|
63233
|
+
getDatas: function getDatas() {
|
|
63234
|
+
var _this2 = this;
|
|
63171
63235
|
|
|
63172
63236
|
if (this.url) {
|
|
63173
63237
|
var param = this.param ? this.param : {};
|
|
@@ -63178,15 +63242,15 @@ var steps_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
63178
63242
|
params: param
|
|
63179
63243
|
}).then(function (res) {
|
|
63180
63244
|
if (res.rCode === 0) {
|
|
63181
|
-
if (
|
|
63182
|
-
|
|
63245
|
+
if (_this2.esForm) {
|
|
63246
|
+
_this2.esForm.stepContent = JSON.parse(JSON.stringify(res.results));
|
|
63183
63247
|
} else {
|
|
63184
|
-
|
|
63248
|
+
_this2.list = JSON.parse(JSON.stringify(res.results));
|
|
63185
63249
|
}
|
|
63186
63250
|
}
|
|
63187
63251
|
}).catch(function (err) {
|
|
63188
63252
|
if (err.message && err.message !== 'canceled') {
|
|
63189
|
-
|
|
63253
|
+
_this2.$message.error(err.message);
|
|
63190
63254
|
}
|
|
63191
63255
|
});
|
|
63192
63256
|
}
|
|
@@ -63217,8 +63281,8 @@ var steps_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
63217
63281
|
|
|
63218
63282
|
var steps_src_main_component = normalizeComponent(
|
|
63219
63283
|
packages_steps_src_mainvue_type_script_lang_js_,
|
|
63220
|
-
|
|
63221
|
-
|
|
63284
|
+
mainvue_type_template_id_9b12a526_render,
|
|
63285
|
+
mainvue_type_template_id_9b12a526_staticRenderFns,
|
|
63222
63286
|
false,
|
|
63223
63287
|
null,
|
|
63224
63288
|
null,
|
|
@@ -66012,8 +66076,8 @@ tabs_panel_src_main.install = function (Vue) {
|
|
|
66012
66076
|
};
|
|
66013
66077
|
|
|
66014
66078
|
/* harmony default export */ var tabs_panel = (tabs_panel_src_main);
|
|
66015
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tips/src/main.vue?vue&type=template&id=
|
|
66016
|
-
var
|
|
66079
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tips/src/main.vue?vue&type=template&id=6baa7a0b&
|
|
66080
|
+
var mainvue_type_template_id_6baa7a0b_render = function () {
|
|
66017
66081
|
var _vm = this
|
|
66018
66082
|
var _h = _vm.$createElement
|
|
66019
66083
|
var _c = _vm._self._c || _h
|
|
@@ -66051,11 +66115,11 @@ var mainvue_type_template_id_33945f34_render = function () {
|
|
|
66051
66115
|
2
|
|
66052
66116
|
)
|
|
66053
66117
|
}
|
|
66054
|
-
var
|
|
66055
|
-
|
|
66118
|
+
var mainvue_type_template_id_6baa7a0b_staticRenderFns = []
|
|
66119
|
+
mainvue_type_template_id_6baa7a0b_render._withStripped = true
|
|
66056
66120
|
|
|
66057
66121
|
|
|
66058
|
-
// CONCATENATED MODULE: ./packages/tips/src/main.vue?vue&type=template&id=
|
|
66122
|
+
// CONCATENATED MODULE: ./packages/tips/src/main.vue?vue&type=template&id=6baa7a0b&
|
|
66059
66123
|
|
|
66060
66124
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tips/src/main.vue?vue&type=script&lang=js&
|
|
66061
66125
|
//
|
|
@@ -66078,6 +66142,7 @@ mainvue_type_template_id_33945f34_render._withStripped = true
|
|
|
66078
66142
|
|
|
66079
66143
|
|
|
66080
66144
|
|
|
66145
|
+
|
|
66081
66146
|
/* harmony default export */ var tips_src_mainvue_type_script_lang_js_ = ({
|
|
66082
66147
|
name: 'EsTips',
|
|
66083
66148
|
inheritAttrs: false,
|
|
@@ -66163,6 +66228,14 @@ mainvue_type_template_id_33945f34_render._withStripped = true
|
|
|
66163
66228
|
}
|
|
66164
66229
|
}
|
|
66165
66230
|
},
|
|
66231
|
+
beforeCreate: function beforeCreate() {
|
|
66232
|
+
var _this2 = this;
|
|
66233
|
+
|
|
66234
|
+
this.getTips = Object(external_throttle_debounce_["debounce"])(500, function () {
|
|
66235
|
+
_this2.getTipsData();
|
|
66236
|
+
});
|
|
66237
|
+
},
|
|
66238
|
+
created: function created() {},
|
|
66166
66239
|
mounted: function mounted() {
|
|
66167
66240
|
if (this.url && !this.contents && JSON.stringify(this.param) !== '{}') {
|
|
66168
66241
|
this.getTips();
|
|
@@ -66170,8 +66243,8 @@ mainvue_type_template_id_33945f34_render._withStripped = true
|
|
|
66170
66243
|
},
|
|
66171
66244
|
|
|
66172
66245
|
methods: {
|
|
66173
|
-
|
|
66174
|
-
var
|
|
66246
|
+
getTipsData: function getTipsData() {
|
|
66247
|
+
var _this3 = this;
|
|
66175
66248
|
|
|
66176
66249
|
utils_util["a" /* default */].ajax({
|
|
66177
66250
|
url: this.url,
|
|
@@ -66180,11 +66253,11 @@ mainvue_type_template_id_33945f34_render._withStripped = true
|
|
|
66180
66253
|
params: this.params
|
|
66181
66254
|
}).then(function (res) {
|
|
66182
66255
|
if (res.rCode === 0) {
|
|
66183
|
-
|
|
66256
|
+
_this3.reselutContent = res;
|
|
66184
66257
|
}
|
|
66185
66258
|
}).catch(function (err) {
|
|
66186
66259
|
if (err.message && err.message !== 'canceled') {
|
|
66187
|
-
|
|
66260
|
+
_this3.$message.error(err.message);
|
|
66188
66261
|
}
|
|
66189
66262
|
});
|
|
66190
66263
|
},
|
|
@@ -66206,8 +66279,8 @@ mainvue_type_template_id_33945f34_render._withStripped = true
|
|
|
66206
66279
|
|
|
66207
66280
|
var tips_src_main_component = normalizeComponent(
|
|
66208
66281
|
packages_tips_src_mainvue_type_script_lang_js_,
|
|
66209
|
-
|
|
66210
|
-
|
|
66282
|
+
mainvue_type_template_id_6baa7a0b_render,
|
|
66283
|
+
mainvue_type_template_id_6baa7a0b_staticRenderFns,
|
|
66211
66284
|
false,
|
|
66212
66285
|
null,
|
|
66213
66286
|
null,
|
|
@@ -66224,8 +66297,8 @@ tips_src_main.install = function (Vue) {
|
|
|
66224
66297
|
};
|
|
66225
66298
|
|
|
66226
66299
|
/* harmony default export */ var tips = (tips_src_main);
|
|
66227
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=template&id=
|
|
66228
|
-
var
|
|
66300
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=template&id=2902064e&
|
|
66301
|
+
var mainvue_type_template_id_2902064e_render = function () {
|
|
66229
66302
|
var _vm = this
|
|
66230
66303
|
var _h = _vm.$createElement
|
|
66231
66304
|
var _c = _vm._self._c || _h
|
|
@@ -66421,11 +66494,11 @@ var mainvue_type_template_id_9f4d1ddc_render = function () {
|
|
|
66421
66494
|
)
|
|
66422
66495
|
: _vm._e()
|
|
66423
66496
|
}
|
|
66424
|
-
var
|
|
66425
|
-
|
|
66497
|
+
var mainvue_type_template_id_2902064e_staticRenderFns = []
|
|
66498
|
+
mainvue_type_template_id_2902064e_render._withStripped = true
|
|
66426
66499
|
|
|
66427
66500
|
|
|
66428
|
-
// CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=
|
|
66501
|
+
// CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=2902064e&
|
|
66429
66502
|
|
|
66430
66503
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=script&lang=js&
|
|
66431
66504
|
//
|
|
@@ -66519,6 +66592,7 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66519
66592
|
|
|
66520
66593
|
|
|
66521
66594
|
|
|
66595
|
+
|
|
66522
66596
|
/* harmony default export */ var tree_src_mainvue_type_script_lang_js_ = ({
|
|
66523
66597
|
name: 'EsTree',
|
|
66524
66598
|
inheritAttrs: false,
|
|
@@ -66779,11 +66853,18 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66779
66853
|
}
|
|
66780
66854
|
}
|
|
66781
66855
|
},
|
|
66856
|
+
beforeCreate: function beforeCreate() {
|
|
66857
|
+
var _this = this;
|
|
66858
|
+
|
|
66859
|
+
this.getTreeData = Object(external_throttle_debounce_["debounce"])(500, function (param) {
|
|
66860
|
+
_this.getTreeDatas(param);
|
|
66861
|
+
});
|
|
66862
|
+
},
|
|
66782
66863
|
created: function created() {
|
|
66783
66864
|
if (Object.prototype.hasOwnProperty.call(this.search, 'value')) {
|
|
66784
66865
|
this.searchValue = this.search.value;
|
|
66785
66866
|
}
|
|
66786
|
-
this.getTreeData();
|
|
66867
|
+
this.getTreeData(param);
|
|
66787
66868
|
},
|
|
66788
66869
|
mounted: function mounted() {},
|
|
66789
66870
|
|
|
@@ -66801,8 +66882,8 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66801
66882
|
},
|
|
66802
66883
|
|
|
66803
66884
|
//获取树节点
|
|
66804
|
-
|
|
66805
|
-
var
|
|
66885
|
+
getTreeDatas: function getTreeDatas(param) {
|
|
66886
|
+
var _this2 = this;
|
|
66806
66887
|
|
|
66807
66888
|
this.loading = true;
|
|
66808
66889
|
var params = utils_util["a" /* default */].extend({}, this.param, this.where, param);
|
|
@@ -66813,44 +66894,44 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66813
66894
|
data: params,
|
|
66814
66895
|
params: params
|
|
66815
66896
|
}).then(function (res) {
|
|
66816
|
-
|
|
66897
|
+
_this2.loading = false;
|
|
66817
66898
|
if (res.rCode === 0) {
|
|
66818
|
-
var treeList =
|
|
66819
|
-
|
|
66820
|
-
if (
|
|
66899
|
+
var treeList = _this2.parseData ? _this2.parseData(JSON.parse(JSON.stringify(res.results)), 'results') : JSON.parse(JSON.stringify(res.results));
|
|
66900
|
+
_this2.$emit('results', treeList);
|
|
66901
|
+
if (_this2.currentFirst) {
|
|
66821
66902
|
var currentNode = treeList[0].id;
|
|
66822
|
-
if (!
|
|
66823
|
-
|
|
66824
|
-
|
|
66825
|
-
|
|
66903
|
+
if (!_this2.currentNodeKey && _this2.currentNodeKey != 0) {
|
|
66904
|
+
_this2.$emit('current-first', 'current', treeList[0]);
|
|
66905
|
+
_this2.$nextTick(function () {
|
|
66906
|
+
_this2.$refs.oaTree.setCurrentKey(currentNode);
|
|
66826
66907
|
});
|
|
66827
66908
|
}
|
|
66828
66909
|
}
|
|
66829
|
-
if (
|
|
66910
|
+
if (_this2.checkedFirst) {
|
|
66830
66911
|
var checkedNode = treeList[0].id;
|
|
66831
|
-
if (
|
|
66832
|
-
|
|
66833
|
-
|
|
66912
|
+
if (_this2.defaultCheckedKeys && _this2.defaultCheckedKeys.indexOf(checkedNode) == -1) {
|
|
66913
|
+
_this2.$emit('current-first', 'checked', treeList[0]);
|
|
66914
|
+
_this2.checkedKeys = [checkedNode];
|
|
66834
66915
|
}
|
|
66835
66916
|
}
|
|
66836
|
-
|
|
66917
|
+
_this2.expandedKeys = treeList.filter(function (item) {
|
|
66837
66918
|
if (item.open) {
|
|
66838
66919
|
return item.id;
|
|
66839
66920
|
}
|
|
66840
66921
|
});
|
|
66841
|
-
|
|
66922
|
+
_this2.treeList = treeList;
|
|
66842
66923
|
}
|
|
66843
66924
|
}).catch(function (err) {
|
|
66844
|
-
|
|
66925
|
+
_this2.loading = false;
|
|
66845
66926
|
if (err.message && err.message !== 'canceled') {
|
|
66846
|
-
|
|
66927
|
+
_this2.$message.error(err.message);
|
|
66847
66928
|
}
|
|
66848
66929
|
});
|
|
66849
66930
|
},
|
|
66850
66931
|
|
|
66851
66932
|
//请求子节点数据
|
|
66852
66933
|
loadsub: function loadsub(data, node) {
|
|
66853
|
-
var
|
|
66934
|
+
var _this3 = this;
|
|
66854
66935
|
|
|
66855
66936
|
if (data.state !== '' && (!data.children || data.children.length === 0)) {
|
|
66856
66937
|
var params = utils_util["a" /* default */].extend({}, this.param, this.where, {
|
|
@@ -66864,8 +66945,8 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66864
66945
|
}
|
|
66865
66946
|
if (this.onLoadsub) {
|
|
66866
66947
|
this.onLoadsub({ data: data, params: params, node: node }).then(function (res) {
|
|
66867
|
-
|
|
66868
|
-
|
|
66948
|
+
_this3.loading = false;
|
|
66949
|
+
_this3.$set(data, 'children', JSON.parse(JSON.stringify(res)));
|
|
66869
66950
|
}).catch(function (e) {});
|
|
66870
66951
|
} else {
|
|
66871
66952
|
utils_util["a" /* default */].ajax({
|
|
@@ -66875,25 +66956,25 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66875
66956
|
params: params
|
|
66876
66957
|
}).then(function (res) {
|
|
66877
66958
|
if (res.rCode === 0) {
|
|
66878
|
-
|
|
66879
|
-
var results =
|
|
66880
|
-
|
|
66959
|
+
_this3.loading = false;
|
|
66960
|
+
var results = _this3.parseData ? _this3.parseData(JSON.parse(JSON.stringify(res.results)), 'sub-results') : JSON.parse(JSON.stringify(res.results));
|
|
66961
|
+
_this3.$emit('sub-results', results);
|
|
66881
66962
|
if (Array.isArray(results)) {
|
|
66882
66963
|
if (data.id === results[0].id) {
|
|
66883
|
-
|
|
66964
|
+
_this3.$set(data, 'children', results[0].children);
|
|
66884
66965
|
} else {
|
|
66885
|
-
|
|
66966
|
+
_this3.$set(data, 'children', results);
|
|
66886
66967
|
}
|
|
66887
66968
|
} else if (data.id === results.id) {
|
|
66888
|
-
|
|
66969
|
+
_this3.$set(data, 'children', results.children);
|
|
66889
66970
|
} else {
|
|
66890
66971
|
console.error('tree数据格式错误');
|
|
66891
66972
|
}
|
|
66892
66973
|
}
|
|
66893
66974
|
}).catch(function (err) {
|
|
66894
|
-
|
|
66975
|
+
_this3.loading = false;
|
|
66895
66976
|
if (err.message && err.message !== 'canceled') {
|
|
66896
|
-
|
|
66977
|
+
_this3.$message.error(err.message);
|
|
66897
66978
|
}
|
|
66898
66979
|
});
|
|
66899
66980
|
}
|
|
@@ -66921,13 +67002,13 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66921
67002
|
this.$emit('load', node, resolve);
|
|
66922
67003
|
},
|
|
66923
67004
|
sortTree: function sortTree(arr) {
|
|
66924
|
-
var
|
|
67005
|
+
var _this4 = this;
|
|
66925
67006
|
|
|
66926
67007
|
return arr.sort(function (a, b) {
|
|
66927
|
-
if (
|
|
66928
|
-
return a[
|
|
67008
|
+
if (_this4.order === 'asc' && a[_this4.sort]) {
|
|
67009
|
+
return a[_this4.sort] - b[_this4.sort];
|
|
66929
67010
|
} else {
|
|
66930
|
-
return b[
|
|
67011
|
+
return b[_this4.sort] - a[_this4.sort];
|
|
66931
67012
|
}
|
|
66932
67013
|
});
|
|
66933
67014
|
},
|
|
@@ -66988,7 +67069,7 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66988
67069
|
}
|
|
66989
67070
|
},
|
|
66990
67071
|
handleCheckChange: function handleCheckChange(data, checked, indeterminate) {
|
|
66991
|
-
var
|
|
67072
|
+
var _this5 = this;
|
|
66992
67073
|
|
|
66993
67074
|
if (this.esPage && this.changeData) {
|
|
66994
67075
|
var checkeds = this.getCheckedNodes();
|
|
@@ -66996,7 +67077,7 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66996
67077
|
if (utils_util["a" /* default */].isObject(this.changeData)) {
|
|
66997
67078
|
var _loop = function _loop(_i2) {
|
|
66998
67079
|
changeData[_i2] = checkeds.map(function (item) {
|
|
66999
|
-
return item[
|
|
67080
|
+
return item[_this5.changeData[_i2]];
|
|
67000
67081
|
});
|
|
67001
67082
|
};
|
|
67002
67083
|
|
|
@@ -67006,7 +67087,7 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
67006
67087
|
} else if (Array.isArray(this.changeData)) {
|
|
67007
67088
|
this.changeData.forEach(function (item) {
|
|
67008
67089
|
changeData[item] = checkeds.map(function (ele) {
|
|
67009
|
-
return ele[
|
|
67090
|
+
return ele[_this5.changeData[i]];
|
|
67010
67091
|
});
|
|
67011
67092
|
});
|
|
67012
67093
|
} else {
|
|
@@ -67083,12 +67164,12 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
67083
67164
|
return this.$refs.oaTree.insertAfter(data, refNode);
|
|
67084
67165
|
},
|
|
67085
67166
|
getKeys: function getKeys(data, result) {
|
|
67086
|
-
var
|
|
67167
|
+
var _this6 = this;
|
|
67087
67168
|
|
|
67088
67169
|
data.forEach(function (item) {
|
|
67089
67170
|
result.push(item.id);
|
|
67090
67171
|
if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
|
|
67091
|
-
|
|
67172
|
+
_this6.getKeys(item.children, result);
|
|
67092
67173
|
}
|
|
67093
67174
|
});
|
|
67094
67175
|
},
|
|
@@ -67118,8 +67199,8 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
67118
67199
|
|
|
67119
67200
|
var tree_src_main_component = normalizeComponent(
|
|
67120
67201
|
packages_tree_src_mainvue_type_script_lang_js_,
|
|
67121
|
-
|
|
67122
|
-
|
|
67202
|
+
mainvue_type_template_id_2902064e_render,
|
|
67203
|
+
mainvue_type_template_id_2902064e_staticRenderFns,
|
|
67123
67204
|
false,
|
|
67124
67205
|
null,
|
|
67125
67206
|
null,
|
|
@@ -72655,8 +72736,8 @@ form_src_table.install = function (Vue) {
|
|
|
72655
72736
|
};
|
|
72656
72737
|
|
|
72657
72738
|
/* harmony default export */ var table_form = (form_src_table);
|
|
72658
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=
|
|
72659
|
-
var
|
|
72739
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=5a391a7a&
|
|
72740
|
+
var mainvue_type_template_id_5a391a7a_render = function () {
|
|
72660
72741
|
var _vm = this
|
|
72661
72742
|
var _h = _vm.$createElement
|
|
72662
72743
|
var _c = _vm._self._c || _h
|
|
@@ -73036,11 +73117,11 @@ var mainvue_type_template_id_33bc9a52_render = function () {
|
|
|
73036
73117
|
)
|
|
73037
73118
|
: _vm._e()
|
|
73038
73119
|
}
|
|
73039
|
-
var
|
|
73040
|
-
|
|
73120
|
+
var mainvue_type_template_id_5a391a7a_staticRenderFns = []
|
|
73121
|
+
mainvue_type_template_id_5a391a7a_render._withStripped = true
|
|
73041
73122
|
|
|
73042
73123
|
|
|
73043
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
73124
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=5a391a7a&
|
|
73044
73125
|
|
|
73045
73126
|
// CONCATENATED MODULE: ./packages/upload/src/picture.js
|
|
73046
73127
|
/* harmony default export */ var picture = ({
|
|
@@ -73251,6 +73332,7 @@ var mainvue_type_script_lang_js_props;
|
|
|
73251
73332
|
|
|
73252
73333
|
|
|
73253
73334
|
|
|
73335
|
+
|
|
73254
73336
|
/* harmony default export */ var upload_src_mainvue_type_script_lang_js_ = ({
|
|
73255
73337
|
name: 'EsUpload',
|
|
73256
73338
|
components: {
|
|
@@ -73684,14 +73766,24 @@ var mainvue_type_script_lang_js_props;
|
|
|
73684
73766
|
val && this.getHeight();
|
|
73685
73767
|
}
|
|
73686
73768
|
},
|
|
73769
|
+
beforeCreate: function beforeCreate() {
|
|
73770
|
+
var _this = this;
|
|
73771
|
+
|
|
73772
|
+
this.getFiles = Object(external_throttle_debounce_["debounce"])(500, function (params) {
|
|
73773
|
+
_this.getFileLists(params);
|
|
73774
|
+
});
|
|
73775
|
+
this.getAdjunctPropertie = Object(external_throttle_debounce_["debounce"])(500, function () {
|
|
73776
|
+
_this.getAdjunctProperties();
|
|
73777
|
+
});
|
|
73778
|
+
},
|
|
73687
73779
|
created: function created() {
|
|
73688
73780
|
this.getAdjunctPropertie();
|
|
73689
73781
|
},
|
|
73690
73782
|
mounted: function mounted() {
|
|
73691
|
-
var
|
|
73783
|
+
var _this2 = this;
|
|
73692
73784
|
|
|
73693
73785
|
this.$nextTick(function () {
|
|
73694
|
-
|
|
73786
|
+
_this2.getHeight();
|
|
73695
73787
|
});
|
|
73696
73788
|
},
|
|
73697
73789
|
|
|
@@ -73706,8 +73798,8 @@ var mainvue_type_script_lang_js_props;
|
|
|
73706
73798
|
},
|
|
73707
73799
|
|
|
73708
73800
|
//根据code获取附件参数配置
|
|
73709
|
-
|
|
73710
|
-
var
|
|
73801
|
+
getAdjunctProperties: function getAdjunctProperties() {
|
|
73802
|
+
var _this3 = this;
|
|
73711
73803
|
|
|
73712
73804
|
if (this.code !== undefined) {
|
|
73713
73805
|
var config = utils_store.get(this.code);
|
|
@@ -73724,35 +73816,35 @@ var mainvue_type_script_lang_js_props;
|
|
|
73724
73816
|
}).then(function (res) {
|
|
73725
73817
|
if (res.rCode === 0) {
|
|
73726
73818
|
if (res.results) {
|
|
73727
|
-
|
|
73819
|
+
_this3.excludeNames = res.results.excludeName;
|
|
73728
73820
|
if (res.results.fileTypeExtName) {
|
|
73729
73821
|
var fileTypeExtName = res.results.fileTypeExtName.split(';');
|
|
73730
|
-
|
|
73822
|
+
_this3.fileAccept = fileTypeExtName.filter(function (item) {
|
|
73731
73823
|
return item;
|
|
73732
73824
|
}).join(',');
|
|
73733
73825
|
}
|
|
73734
73826
|
if (res.results.kkViewRootPath) {
|
|
73735
|
-
|
|
73827
|
+
_this3.kkfileview = res.results.kkViewRootPath;
|
|
73736
73828
|
}
|
|
73737
|
-
|
|
73738
|
-
|
|
73739
|
-
utils_store.set(
|
|
73740
|
-
accept:
|
|
73741
|
-
size:
|
|
73742
|
-
totalSize:
|
|
73829
|
+
_this3.fileSize = res.results.limitFileSize ? res.results.limitFileSize : 0;
|
|
73830
|
+
_this3.fileTotalSize = res.results.limitTotalSize;
|
|
73831
|
+
utils_store.set(_this3.code, {
|
|
73832
|
+
accept: _this3.fileAccept,
|
|
73833
|
+
size: _this3.fileSize,
|
|
73834
|
+
totalSize: _this3.fileTotalSize
|
|
73743
73835
|
});
|
|
73744
73836
|
}
|
|
73745
73837
|
}
|
|
73746
73838
|
}).catch(function (err) {
|
|
73747
73839
|
if (err.message && err.message !== 'canceled') {
|
|
73748
|
-
|
|
73840
|
+
_this3.$message.error(err.message);
|
|
73749
73841
|
}
|
|
73750
73842
|
});
|
|
73751
73843
|
}
|
|
73752
73844
|
}
|
|
73753
73845
|
},
|
|
73754
|
-
|
|
73755
|
-
var
|
|
73846
|
+
getFileLists: function getFileLists(params) {
|
|
73847
|
+
var _this4 = this;
|
|
73756
73848
|
|
|
73757
73849
|
if (!this.show || this.fileList && Array.isArray(this.fileList) && this.fileList.length || this.requiredOwnId && !Object.prototype.hasOwnProperty.call(params, 'ownId')) {
|
|
73758
73850
|
return false;
|
|
@@ -73765,30 +73857,30 @@ var mainvue_type_script_lang_js_props;
|
|
|
73765
73857
|
format: false
|
|
73766
73858
|
}).then(function (res) {
|
|
73767
73859
|
if (res.rCode === 0) {
|
|
73768
|
-
if (
|
|
73769
|
-
|
|
73860
|
+
if (_this4.portrait === true) {
|
|
73861
|
+
_this4.image = JSON.parse(JSON.stringify(res.results))[0];
|
|
73770
73862
|
} else {
|
|
73771
|
-
|
|
73863
|
+
_this4.lists = JSON.parse(JSON.stringify(res.results));
|
|
73772
73864
|
var filesTotalSize = 0;
|
|
73773
|
-
|
|
73865
|
+
_this4.lists.forEach(function (item) {
|
|
73774
73866
|
if (Object.prototype.hasOwnProperty.call(item, 'fileSize') && item.fileSize) {
|
|
73775
73867
|
filesTotalSize += parseFloat(item.fileSize, 10);
|
|
73776
73868
|
} else {
|
|
73777
73869
|
filesTotalSize += item.size ? Math.round(item.size / 1024 * 10) / 10 : 0;
|
|
73778
73870
|
}
|
|
73779
73871
|
});
|
|
73780
|
-
|
|
73781
|
-
if (
|
|
73782
|
-
|
|
73872
|
+
_this4.filesTotalSize = filesTotalSize;
|
|
73873
|
+
if (_this4.lists.length) {
|
|
73874
|
+
_this4.$emit('input', _this4.lists);
|
|
73783
73875
|
}
|
|
73784
73876
|
}
|
|
73785
73877
|
} else {
|
|
73786
73878
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
73787
|
-
|
|
73879
|
+
_this4.$message.error(msg);
|
|
73788
73880
|
}
|
|
73789
73881
|
}).catch(function (err) {
|
|
73790
73882
|
if (err.message && err.message !== 'canceled') {
|
|
73791
|
-
|
|
73883
|
+
_this4.$message.error(err.message);
|
|
73792
73884
|
}
|
|
73793
73885
|
});
|
|
73794
73886
|
},
|
|
@@ -73808,7 +73900,7 @@ var mainvue_type_script_lang_js_props;
|
|
|
73808
73900
|
utils_util["a" /* default */].win.open(this.kkfileview + '?url=' + url);
|
|
73809
73901
|
},
|
|
73810
73902
|
handlePreview: function handlePreview(res) {
|
|
73811
|
-
var
|
|
73903
|
+
var _this5 = this;
|
|
73812
73904
|
|
|
73813
73905
|
if (this.preview) {
|
|
73814
73906
|
if (this.onPreview) {
|
|
@@ -73836,7 +73928,7 @@ var mainvue_type_script_lang_js_props;
|
|
|
73836
73928
|
this.title = file.originalName;
|
|
73837
73929
|
this.showImg = true;
|
|
73838
73930
|
this.$nextTick(function () {
|
|
73839
|
-
|
|
73931
|
+
_this5.loadImage();
|
|
73840
73932
|
});
|
|
73841
73933
|
} else if (suffix.includes('mp4')) {
|
|
73842
73934
|
this.source = {
|
|
@@ -73861,24 +73953,24 @@ var mainvue_type_script_lang_js_props;
|
|
|
73861
73953
|
this.showImg = false;
|
|
73862
73954
|
},
|
|
73863
73955
|
loadImage: function loadImage() {
|
|
73864
|
-
var
|
|
73956
|
+
var _this6 = this;
|
|
73865
73957
|
|
|
73866
73958
|
this.$refs.showImg && (this.$refs.showImg.onload = function () {
|
|
73867
|
-
|
|
73868
|
-
var w =
|
|
73869
|
-
var h =
|
|
73870
|
-
var pw =
|
|
73871
|
-
var ph =
|
|
73959
|
+
_this6.imgChange = false;
|
|
73960
|
+
var w = _this6.$refs.showImg.naturalWidth;
|
|
73961
|
+
var h = _this6.$refs.showImg.naturalHeight;
|
|
73962
|
+
var pw = _this6.$refs.showImg.parentNode.offsetWidth;
|
|
73963
|
+
var ph = _this6.$refs.showImg.parentNode.offsetHeight;
|
|
73872
73964
|
if (w / h > pw / ph) {
|
|
73873
|
-
|
|
73965
|
+
_this6.styles = { 'max-width': '100%' };
|
|
73874
73966
|
} else {
|
|
73875
|
-
|
|
73967
|
+
_this6.styles = { 'max-height': '100%' };
|
|
73876
73968
|
}
|
|
73877
73969
|
if (w < pw) {
|
|
73878
|
-
|
|
73970
|
+
_this6.styles.width = w + 'px';
|
|
73879
73971
|
}
|
|
73880
73972
|
if (h < ph) {
|
|
73881
|
-
|
|
73973
|
+
_this6.styles.height = h + 'px';
|
|
73882
73974
|
}
|
|
73883
73975
|
});
|
|
73884
73976
|
},
|
|
@@ -73940,7 +74032,7 @@ var mainvue_type_script_lang_js_props;
|
|
|
73940
74032
|
return flag;
|
|
73941
74033
|
},
|
|
73942
74034
|
handleBeforeRemove: function handleBeforeRemove(file, fileList) {
|
|
73943
|
-
var
|
|
74035
|
+
var _this7 = this;
|
|
73944
74036
|
|
|
73945
74037
|
if (file && file.status === 'success') {
|
|
73946
74038
|
return this.$confirm('确定删除文件吗?', '提示', {
|
|
@@ -73948,15 +74040,15 @@ var mainvue_type_script_lang_js_props;
|
|
|
73948
74040
|
cancelButtonText: '取消',
|
|
73949
74041
|
type: 'warning'
|
|
73950
74042
|
}).then(function () {
|
|
73951
|
-
if (
|
|
73952
|
-
return
|
|
74043
|
+
if (_this7.beforeRemove) {
|
|
74044
|
+
return _this7.beforeRemove(file, fileList);
|
|
73953
74045
|
} else if (file.status === 'success') {
|
|
73954
74046
|
var userName = file.userName || file.response && file.response.userName || utils_util["a" /* default */].getStorage('userName');
|
|
73955
74047
|
// eslint-disable-next-line no-undef
|
|
73956
74048
|
return new Promise(function (resolve, reject) {
|
|
73957
|
-
var url = typeof
|
|
74049
|
+
var url = typeof _this7.deleted === 'string' ? _this7.deleted : _this7.remove === 'string' ? _this7.remove : api["g" /* delAdjunct */];
|
|
73958
74050
|
utils_util["a" /* default */].ajax({
|
|
73959
|
-
method:
|
|
74051
|
+
method: _this7.method,
|
|
73960
74052
|
url: url,
|
|
73961
74053
|
data: {
|
|
73962
74054
|
userName: userName,
|
|
@@ -73968,18 +74060,18 @@ var mainvue_type_script_lang_js_props;
|
|
|
73968
74060
|
}
|
|
73969
74061
|
}).then(function (res) {
|
|
73970
74062
|
if (res.rCode === 0) {
|
|
73971
|
-
var se =
|
|
73972
|
-
|
|
73973
|
-
|
|
74063
|
+
var se = _this7.filesTotalSize - Math.round(file.size / 1024 * 10) / 10;
|
|
74064
|
+
_this7.filesTotalSize = se;
|
|
74065
|
+
_this7.$message.success(res.msg);
|
|
73974
74066
|
resolve();
|
|
73975
74067
|
} else {
|
|
73976
74068
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
73977
|
-
|
|
74069
|
+
_this7.$message.error(msg);
|
|
73978
74070
|
reject();
|
|
73979
74071
|
}
|
|
73980
74072
|
}).catch(function (err) {
|
|
73981
74073
|
if (err.message && err.message !== 'canceled') {
|
|
73982
|
-
|
|
74074
|
+
_this7.$message.error(err.message);
|
|
73983
74075
|
}
|
|
73984
74076
|
});
|
|
73985
74077
|
});
|
|
@@ -74017,7 +74109,7 @@ var mainvue_type_script_lang_js_props;
|
|
|
74017
74109
|
a.dispatchEvent(event);
|
|
74018
74110
|
},
|
|
74019
74111
|
handleSort: function handleSort(files) {
|
|
74020
|
-
var
|
|
74112
|
+
var _this8 = this;
|
|
74021
74113
|
|
|
74022
74114
|
if (this.isSort) {
|
|
74023
74115
|
if (this.onSort) {
|
|
@@ -74040,14 +74132,14 @@ var mainvue_type_script_lang_js_props;
|
|
|
74040
74132
|
}
|
|
74041
74133
|
}).then(function (res) {
|
|
74042
74134
|
if (res.rCode === 0) {
|
|
74043
|
-
|
|
74135
|
+
_this8.$message.success(res.msg);
|
|
74044
74136
|
} else {
|
|
74045
74137
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
74046
|
-
|
|
74138
|
+
_this8.$message.error(msg);
|
|
74047
74139
|
}
|
|
74048
74140
|
}).catch(function (err) {
|
|
74049
74141
|
if (err.message && err.message !== 'canceled') {
|
|
74050
|
-
|
|
74142
|
+
_this8.$message.error(err.message);
|
|
74051
74143
|
}
|
|
74052
74144
|
});
|
|
74053
74145
|
}
|
|
@@ -74130,8 +74222,8 @@ var mainvue_type_script_lang_js_props;
|
|
|
74130
74222
|
|
|
74131
74223
|
var upload_src_main_component = normalizeComponent(
|
|
74132
74224
|
packages_upload_src_mainvue_type_script_lang_js_,
|
|
74133
|
-
|
|
74134
|
-
|
|
74225
|
+
mainvue_type_template_id_5a391a7a_render,
|
|
74226
|
+
mainvue_type_template_id_5a391a7a_staticRenderFns,
|
|
74135
74227
|
false,
|
|
74136
74228
|
null,
|
|
74137
74229
|
null,
|
|
@@ -74608,7 +74700,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
74608
74700
|
}
|
|
74609
74701
|
|
|
74610
74702
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
74611
|
-
version: '0.5.
|
|
74703
|
+
version: '0.5.71',
|
|
74612
74704
|
install: install,
|
|
74613
74705
|
Button: packages_button,
|
|
74614
74706
|
ButtonGroup: button_group,
|