eoss-ui 0.5.69 → 0.5.70
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 +58 -58
- package/lib/date-picker.js +34 -36
- package/lib/dialog.js +49 -51
- package/lib/eoss-ui.common.js +660 -562
- 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 +4 -3
- 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 +112 -96
- 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/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 +3 -1
- 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 +2 -1
- package/packages/radio-group/src/main.vue +7 -1
- package/packages/select/src/main.vue +7 -1
- 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/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=1e0ceb1a&
|
|
5893
|
+
var mainvue_type_template_id_1e0ceb1a_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_1e0ceb1a_staticRenderFns = []
|
|
6026
|
+
mainvue_type_template_id_1e0ceb1a_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=1e0ceb1a&
|
|
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"])(300, 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_1e0ceb1a_render,
|
|
6397
|
+
mainvue_type_template_id_1e0ceb1a_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=1e1368ab&
|
|
6673
|
+
var mainvue_type_template_id_1e1368ab_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
|
-
|
|
6983
|
+
var mainvue_type_template_id_1e1368ab_staticRenderFns = []
|
|
6984
|
+
mainvue_type_template_id_1e1368ab_render._withStripped = true
|
|
6976
6985
|
|
|
6977
6986
|
|
|
6978
|
-
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=
|
|
6979
|
-
|
|
6980
|
-
// EXTERNAL MODULE: external "throttle-debounce"
|
|
6981
|
-
var external_throttle_debounce_ = __webpack_require__(6);
|
|
6987
|
+
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=1e1368ab&
|
|
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
9629
|
this.getTableData = Object(external_throttle_debounce_["debounce"])(300, 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_1e1368ab_render,
|
|
10406
|
+
mainvue_type_template_id_1e1368ab_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=73daac22&
|
|
13882
|
+
var mainvue_type_template_id_73daac22_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_73daac22_staticRenderFns = []
|
|
25339
|
+
mainvue_type_template_id_73daac22_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=73daac22&
|
|
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"])(300, function () {
|
|
29853
|
+
_this3.getContents();
|
|
29854
|
+
});
|
|
29855
|
+
this.getValue = Object(external_throttle_debounce_["debounce"])(300, 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_73daac22_render,
|
|
30667
|
+
mainvue_type_template_id_73daac22_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"])(300, 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
54878
|
this.getMaxWidth = Object(external_throttle_debounce_["debounce"])(300, 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=91fe7d0a&
|
|
57248
|
+
var mainvue_type_template_id_91fe7d0a_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_91fe7d0a_staticRenderFns = []
|
|
57378
|
+
mainvue_type_template_id_91fe7d0a_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=91fe7d0a&
|
|
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"])(300, 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_91fe7d0a_render,
|
|
57709
|
+
mainvue_type_template_id_91fe7d0a_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',
|
|
@@ -58384,6 +58423,13 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58384
58423
|
}
|
|
58385
58424
|
}
|
|
58386
58425
|
},
|
|
58426
|
+
beforeCreate: function beforeCreate() {
|
|
58427
|
+
var _this2 = this;
|
|
58428
|
+
|
|
58429
|
+
this.getData = Object(external_throttle_debounce_["debounce"])(300, function (sysCode, param, reload) {
|
|
58430
|
+
_this2.getDatas(sysCode, param, reload);
|
|
58431
|
+
});
|
|
58432
|
+
},
|
|
58387
58433
|
created: function created() {
|
|
58388
58434
|
this.bindEventBus();
|
|
58389
58435
|
},
|
|
@@ -58395,7 +58441,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58395
58441
|
|
|
58396
58442
|
methods: {
|
|
58397
58443
|
createOption: function createOption(_ref) {
|
|
58398
|
-
var
|
|
58444
|
+
var _this3 = this;
|
|
58399
58445
|
|
|
58400
58446
|
var filtrate = _ref.filtrate,
|
|
58401
58447
|
data = _ref.data,
|
|
@@ -58406,23 +58452,23 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58406
58452
|
var filte = filtrate && utils_util["a" /* default */].isObject(filtrate) ? filtrate[this.valKey] : filtrate;
|
|
58407
58453
|
var eles = [];
|
|
58408
58454
|
data.forEach(function (item) {
|
|
58409
|
-
if (
|
|
58410
|
-
|
|
58455
|
+
if (_this3.models === undefined && item.selected) {
|
|
58456
|
+
_this3.$emit('input', _this3.valueType === 'object' ? item : item[_this3.valKey]);
|
|
58411
58457
|
}
|
|
58412
58458
|
if ((Object.prototype.hasOwnProperty.call(item, 'children') || Object.prototype.hasOwnProperty.call(item, 'options')) && (item.children || item.options)) {
|
|
58413
58459
|
var children = item.children || item.options;
|
|
58414
58460
|
if (readonly) {
|
|
58415
|
-
eles.push(
|
|
58461
|
+
eles.push(_this3.createOption({ filtrate: filtrate, data: children, readonly: readonly, h: h }));
|
|
58416
58462
|
} else {
|
|
58417
|
-
eles.push(h('el-option-group', { attrs: { label: item[
|
|
58463
|
+
eles.push(h('el-option-group', { attrs: { label: item[_this3.label] || item.label } }, _this3.createOption({ filtrate: filtrate, data: children, readonly: readonly, h: h })));
|
|
58418
58464
|
}
|
|
58419
58465
|
} else {
|
|
58420
58466
|
if (readonly) {
|
|
58421
|
-
if (item[
|
|
58422
|
-
eles.push(item[
|
|
58467
|
+
if (item[_this3.valKey] === filte) {
|
|
58468
|
+
eles.push(item[_this3.label] || item.label);
|
|
58423
58469
|
}
|
|
58424
58470
|
} else {
|
|
58425
|
-
if (filte === null || filte === undefined || filte === '' || filte === item[
|
|
58471
|
+
if (filte === null || filte === undefined || filte === '' || filte === item[_this3.filtrateKey]) {
|
|
58426
58472
|
if (typeof item === 'string') {
|
|
58427
58473
|
eles.push(h('el-option', {
|
|
58428
58474
|
attrs: {
|
|
@@ -58431,7 +58477,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58431
58477
|
}
|
|
58432
58478
|
}));
|
|
58433
58479
|
} else {
|
|
58434
|
-
var content = [item[
|
|
58480
|
+
var content = [item[_this3.label] || item.label];
|
|
58435
58481
|
if (item.render) {
|
|
58436
58482
|
content = [item.render(h, item)];
|
|
58437
58483
|
}
|
|
@@ -58443,8 +58489,8 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58443
58489
|
}
|
|
58444
58490
|
eles.push(h('el-option', {
|
|
58445
58491
|
attrs: {
|
|
58446
|
-
label: item[
|
|
58447
|
-
value:
|
|
58492
|
+
label: item[_this3.label] || item.label,
|
|
58493
|
+
value: _this3.isObject ? item : item[_this3.valKey],
|
|
58448
58494
|
disabled: item.disabled
|
|
58449
58495
|
}
|
|
58450
58496
|
}, content));
|
|
@@ -58455,8 +58501,8 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58455
58501
|
});
|
|
58456
58502
|
return eles;
|
|
58457
58503
|
},
|
|
58458
|
-
|
|
58459
|
-
var
|
|
58504
|
+
getDatas: function getDatas(sysCode, param, reload) {
|
|
58505
|
+
var _this4 = this;
|
|
58460
58506
|
|
|
58461
58507
|
if (!reload && (!this.ajax || !this.isNoParamRequest && Object.keys(this.param).length == 0)) {
|
|
58462
58508
|
return false;
|
|
@@ -58477,35 +58523,35 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58477
58523
|
params: params,
|
|
58478
58524
|
data: params
|
|
58479
58525
|
}).then(function (res) {
|
|
58480
|
-
|
|
58481
|
-
|
|
58526
|
+
_this4.loading = false;
|
|
58527
|
+
_this4.canceled = false;
|
|
58482
58528
|
if (res.rCode === 0) {
|
|
58483
|
-
if (
|
|
58484
|
-
|
|
58529
|
+
if (_this4.parseData) {
|
|
58530
|
+
_this4.options = _this4.parseData(JSON.parse(JSON.stringify(res.results)));
|
|
58485
58531
|
} else {
|
|
58486
|
-
|
|
58532
|
+
_this4.options = JSON.parse(JSON.stringify(res.results));
|
|
58487
58533
|
}
|
|
58488
|
-
if (sysCode ||
|
|
58489
|
-
bus.$emit(sysCode ||
|
|
58490
|
-
utils_store.set(sysCode, JSON.parse(JSON.stringify(
|
|
58534
|
+
if (sysCode || _this4.dataKey) {
|
|
58535
|
+
bus.$emit(sysCode || _this4.dataKey, JSON.parse(JSON.stringify(_this4.options)));
|
|
58536
|
+
utils_store.set(sysCode, JSON.parse(JSON.stringify(_this4.options)));
|
|
58491
58537
|
}
|
|
58492
58538
|
} else {
|
|
58493
|
-
|
|
58539
|
+
_this4.$message.error(res.msg);
|
|
58494
58540
|
}
|
|
58495
58541
|
}).catch(function (err) {
|
|
58496
|
-
|
|
58542
|
+
_this4.loading = false;
|
|
58497
58543
|
if (err.message) {
|
|
58498
58544
|
if (err.message !== 'canceled') {
|
|
58499
|
-
|
|
58545
|
+
_this4.$message.error(err.message);
|
|
58500
58546
|
}
|
|
58501
58547
|
if (err.message === 'canceled' && sysCode) {
|
|
58502
|
-
|
|
58548
|
+
_this4.canceled = true;
|
|
58503
58549
|
}
|
|
58504
58550
|
}
|
|
58505
58551
|
});
|
|
58506
58552
|
},
|
|
58507
58553
|
search: function search(query) {
|
|
58508
|
-
var
|
|
58554
|
+
var _this5 = this;
|
|
58509
58555
|
|
|
58510
58556
|
if (query && query !== '') {
|
|
58511
58557
|
if (this.url && this.url !== '') {
|
|
@@ -58519,14 +58565,14 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58519
58565
|
params: params,
|
|
58520
58566
|
data: params
|
|
58521
58567
|
}).then(function (res) {
|
|
58522
|
-
|
|
58568
|
+
_this5.loading = false;
|
|
58523
58569
|
if (res.rCode === 0) {
|
|
58524
|
-
|
|
58570
|
+
_this5.options = JSON.parse(JSON.stringify(res.results));
|
|
58525
58571
|
}
|
|
58526
58572
|
}).catch(function (err) {
|
|
58527
|
-
|
|
58573
|
+
_this5.loading = false;
|
|
58528
58574
|
if (err.message && err.message !== 'canceled') {
|
|
58529
|
-
|
|
58575
|
+
_this5.$message.error(err.message);
|
|
58530
58576
|
}
|
|
58531
58577
|
});
|
|
58532
58578
|
} else {
|
|
@@ -58537,7 +58583,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58537
58583
|
}
|
|
58538
58584
|
},
|
|
58539
58585
|
renderd: function renderd(doms, h, type) {
|
|
58540
|
-
var
|
|
58586
|
+
var _this6 = this;
|
|
58541
58587
|
|
|
58542
58588
|
if (typeof this.$attrs[type] === 'boolean') {
|
|
58543
58589
|
if (this.$attrs.render) {
|
|
@@ -58562,8 +58608,8 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58562
58608
|
domProps: this.$attrs[type].icon ? { innerHTML: this.$attrs[type].icon } : {},
|
|
58563
58609
|
on: {
|
|
58564
58610
|
click: function click(e) {
|
|
58565
|
-
|
|
58566
|
-
|
|
58611
|
+
_this6.$attrs[type].click && _this6.$attrs[type].click(_this6, _this6.model);
|
|
58612
|
+
_this6.$attrs[type].event && _this6.$attrs[type].event(_this6, _this6.model);
|
|
58567
58613
|
}
|
|
58568
58614
|
},
|
|
58569
58615
|
ref: 'selectBtn'
|
|
@@ -58617,7 +58663,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58617
58663
|
|
|
58618
58664
|
//请求子节点数据
|
|
58619
58665
|
loadsub: function loadsub(data, node) {
|
|
58620
|
-
var
|
|
58666
|
+
var _this7 = this;
|
|
58621
58667
|
|
|
58622
58668
|
if (data.state !== '' && (!data.children || data.children.length === 0)) {
|
|
58623
58669
|
var param = {};
|
|
@@ -58634,13 +58680,13 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58634
58680
|
}
|
|
58635
58681
|
if (this.onLoadsub) {
|
|
58636
58682
|
this.onLoadsub({ data: data, params: params, node: node }).then(function (res) {
|
|
58637
|
-
|
|
58638
|
-
|
|
58639
|
-
if (
|
|
58640
|
-
|
|
58683
|
+
_this7.loading = false;
|
|
58684
|
+
_this7.$set(data, 'children', JSON.parse(JSON.stringify(res)));
|
|
58685
|
+
if (_this7.dataKey && _this7.esForm) {
|
|
58686
|
+
_this7.esForm.setSysCodes(_this7.dataKey, JSON.parse(JSON.stringify(_this7.options)));
|
|
58641
58687
|
}
|
|
58642
58688
|
}).catch(function (e) {
|
|
58643
|
-
|
|
58689
|
+
_this7.loading = false;
|
|
58644
58690
|
});
|
|
58645
58691
|
} else {
|
|
58646
58692
|
utils_util["a" /* default */].ajax({
|
|
@@ -58650,27 +58696,27 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58650
58696
|
params: params
|
|
58651
58697
|
}).then(function (res) {
|
|
58652
58698
|
if (res.rCode === 0) {
|
|
58653
|
-
|
|
58699
|
+
_this7.loading = false;
|
|
58654
58700
|
var results = JSON.parse(JSON.stringify(res.results));
|
|
58655
58701
|
if (Array.isArray(results)) {
|
|
58656
58702
|
if (data.id === results[0].id) {
|
|
58657
|
-
|
|
58703
|
+
_this7.$set(data, 'children', results[0].children);
|
|
58658
58704
|
} else {
|
|
58659
|
-
|
|
58705
|
+
_this7.$set(data, 'children', results);
|
|
58660
58706
|
}
|
|
58661
58707
|
} else if (data.id === results.id) {
|
|
58662
|
-
|
|
58708
|
+
_this7.$set(data, 'children', results.children);
|
|
58663
58709
|
} else {
|
|
58664
58710
|
console.error('tree数据格式错误');
|
|
58665
58711
|
}
|
|
58666
|
-
if (
|
|
58667
|
-
|
|
58712
|
+
if (_this7.dataKey && _this7.esForm) {
|
|
58713
|
+
_this7.esForm.setSysCodes(_this7.dataKey, JSON.parse(JSON.stringify(_this7.options)));
|
|
58668
58714
|
}
|
|
58669
58715
|
}
|
|
58670
58716
|
}).catch(function (err) {
|
|
58671
|
-
|
|
58717
|
+
_this7.loading = false;
|
|
58672
58718
|
if (err.message && err.message !== 'canceled') {
|
|
58673
|
-
|
|
58719
|
+
_this7.$message.error(err.message);
|
|
58674
58720
|
}
|
|
58675
58721
|
});
|
|
58676
58722
|
}
|
|
@@ -58693,7 +58739,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58693
58739
|
this.unbindEventBus();
|
|
58694
58740
|
},
|
|
58695
58741
|
render: function render(h) {
|
|
58696
|
-
var
|
|
58742
|
+
var _this8 = this;
|
|
58697
58743
|
|
|
58698
58744
|
if (!this.hide) {
|
|
58699
58745
|
if (this.readonly) {
|
|
@@ -58701,12 +58747,12 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58701
58747
|
if (Array.isArray(this.models)) {
|
|
58702
58748
|
dom = this.models.map(function (item) {
|
|
58703
58749
|
if (utils_util["a" /* default */].isObject(item)) {
|
|
58704
|
-
if (!item[
|
|
58705
|
-
return
|
|
58750
|
+
if (!item[_this8.label] && !item.label) {
|
|
58751
|
+
return _this8.getLabel(value[_this8.valKey], data);
|
|
58706
58752
|
}
|
|
58707
|
-
return item[
|
|
58753
|
+
return item[_this8.label] || item.label;
|
|
58708
58754
|
}
|
|
58709
|
-
return
|
|
58755
|
+
return _this8.getLabel(item, _this8.results);
|
|
58710
58756
|
});
|
|
58711
58757
|
} else if (utils_util["a" /* default */].isObject(this.models)) {
|
|
58712
58758
|
if (!this.models[this.label] && !this.models.label) {
|
|
@@ -58732,10 +58778,10 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
|
|
|
58732
58778
|
doms = this.filtrate.map(function (item) {
|
|
58733
58779
|
return h('el-option-group', {
|
|
58734
58780
|
attrs: {
|
|
58735
|
-
label: item[
|
|
58736
|
-
key: item[
|
|
58781
|
+
label: item[_this8.label] || item.label,
|
|
58782
|
+
key: item[_this8.valKey]
|
|
58737
58783
|
}
|
|
58738
|
-
},
|
|
58784
|
+
}, _this8.createOption({ filtrate: item, data: _this8.results, h: h }));
|
|
58739
58785
|
});
|
|
58740
58786
|
} else {
|
|
58741
58787
|
doms = this.createOption({
|
|
@@ -58847,6 +58893,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
58847
58893
|
|
|
58848
58894
|
|
|
58849
58895
|
|
|
58896
|
+
|
|
58850
58897
|
/* harmony default export */ var select_ganged_src_mainvue_type_script_lang_js_ = ({
|
|
58851
58898
|
name: 'EsSelectGanged',
|
|
58852
58899
|
componentName: 'EsSelectGanged',
|
|
@@ -59071,14 +59118,21 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59071
59118
|
}
|
|
59072
59119
|
}
|
|
59073
59120
|
},
|
|
59121
|
+
beforeCreate: function beforeCreate() {
|
|
59122
|
+
var _this = this;
|
|
59123
|
+
|
|
59124
|
+
this.getData = Object(external_throttle_debounce_["debounce"])(300, function () {
|
|
59125
|
+
_this.getDatas();
|
|
59126
|
+
});
|
|
59127
|
+
},
|
|
59074
59128
|
created: function created() {
|
|
59075
59129
|
this.getData();
|
|
59076
59130
|
},
|
|
59077
59131
|
mounted: function mounted() {},
|
|
59078
59132
|
|
|
59079
59133
|
methods: {
|
|
59080
|
-
|
|
59081
|
-
var
|
|
59134
|
+
getDatas: function getDatas() {
|
|
59135
|
+
var _this2 = this;
|
|
59082
59136
|
|
|
59083
59137
|
if (!this.integrality || !this.url) {
|
|
59084
59138
|
return false;
|
|
@@ -59089,28 +59143,28 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59089
59143
|
params: this.param,
|
|
59090
59144
|
data: this.param
|
|
59091
59145
|
}).then(function (res) {
|
|
59092
|
-
|
|
59146
|
+
_this2.canceled = false;
|
|
59093
59147
|
if (res.rCode === 0) {
|
|
59094
|
-
|
|
59095
|
-
|
|
59096
|
-
if (sysCode ||
|
|
59097
|
-
|
|
59098
|
-
store.set(sysCode, JSON.parse(JSON.stringify(
|
|
59148
|
+
_this2.lists = res.results;
|
|
59149
|
+
_this2.getChildren(_this2.results, _this2.values);
|
|
59150
|
+
if (sysCode || _this2.dataKey) {
|
|
59151
|
+
_this2.esForm && _this2.esForm.setSysCodes(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.lists)));
|
|
59152
|
+
store.set(sysCode, JSON.parse(JSON.stringify(_this2.lists)));
|
|
59099
59153
|
}
|
|
59100
59154
|
}
|
|
59101
59155
|
}).catch(function (err) {
|
|
59102
59156
|
if (err.message) {
|
|
59103
59157
|
if (err.message !== 'canceled') {
|
|
59104
|
-
|
|
59158
|
+
_this2.$message.error(err.message);
|
|
59105
59159
|
}
|
|
59106
59160
|
if (err.message === 'canceled' && sysCode) {
|
|
59107
|
-
|
|
59161
|
+
_this2.canceled = true;
|
|
59108
59162
|
}
|
|
59109
59163
|
}
|
|
59110
59164
|
});
|
|
59111
59165
|
},
|
|
59112
59166
|
getChildren: function getChildren(data, values) {
|
|
59113
|
-
var
|
|
59167
|
+
var _this3 = this;
|
|
59114
59168
|
|
|
59115
59169
|
if (!this.gangedNum) {
|
|
59116
59170
|
if (this.ganged && this.value.length < this.getGanged || Array.isArray(this.results[0])) {
|
|
@@ -59144,7 +59198,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59144
59198
|
if (typeof this.queryKey === 'string') {
|
|
59145
59199
|
if (Array.isArray(values[i])) {
|
|
59146
59200
|
params[this.queryKey] = values[i].map(function (item) {
|
|
59147
|
-
return item[
|
|
59201
|
+
return item[_this3.queryKey];
|
|
59148
59202
|
});
|
|
59149
59203
|
} else {
|
|
59150
59204
|
params[this.queryKey] = values[i][this.queryKey];
|
|
@@ -59153,10 +59207,10 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59153
59207
|
var _loop = function _loop(x) {
|
|
59154
59208
|
if (Array.isArray(values[i])) {
|
|
59155
59209
|
params[x] = values[i].map(function (item) {
|
|
59156
|
-
return item[
|
|
59210
|
+
return item[_this3.queryKey[x]];
|
|
59157
59211
|
});
|
|
59158
59212
|
} else {
|
|
59159
|
-
params[x] = values[i][
|
|
59213
|
+
params[x] = values[i][_this3.queryKey[x]];
|
|
59160
59214
|
}
|
|
59161
59215
|
};
|
|
59162
59216
|
|
|
@@ -59174,7 +59228,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59174
59228
|
}
|
|
59175
59229
|
},
|
|
59176
59230
|
getValue: function getValue() {
|
|
59177
|
-
var
|
|
59231
|
+
var _this4 = this;
|
|
59178
59232
|
|
|
59179
59233
|
if (!this.gangedNum) {
|
|
59180
59234
|
if (this.ganged && this.value.length <= this.getGanged || Array.isArray(this.results[0])) {
|
|
@@ -59203,7 +59257,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59203
59257
|
var _disabled = [];
|
|
59204
59258
|
if (this.multiple) {
|
|
59205
59259
|
this.values = this.value.map(function (item, index) {
|
|
59206
|
-
return
|
|
59260
|
+
return _this4.multiples[index] ? Array.isArray(item) ? item : [item] : item;
|
|
59207
59261
|
});
|
|
59208
59262
|
for (var _i2 = 0; _i2 < this.gangedNum; _i2++) {
|
|
59209
59263
|
_disabled.push(this.values[_i2] && this.values[_i2].length ? false : _i2 > 0);
|
|
@@ -59224,7 +59278,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59224
59278
|
}
|
|
59225
59279
|
},
|
|
59226
59280
|
handeChange: function handeChange(val, key) {
|
|
59227
|
-
var
|
|
59281
|
+
var _this5 = this;
|
|
59228
59282
|
|
|
59229
59283
|
if (!this.gangedNum) {
|
|
59230
59284
|
if (this.ganged && this.value.length < this.getGanged) {
|
|
@@ -59251,13 +59305,13 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59251
59305
|
if (this.queryKey !== undefined) {
|
|
59252
59306
|
if (typeof this.queryKey === 'string') {
|
|
59253
59307
|
params[this.queryKey] = Array.isArray(val) ? val.map(function (item) {
|
|
59254
|
-
return item[
|
|
59308
|
+
return item[_this5.queryKey];
|
|
59255
59309
|
}) : val[this.queryKey];
|
|
59256
59310
|
} else {
|
|
59257
59311
|
var _loop2 = function _loop2(i) {
|
|
59258
59312
|
params[i] = Array.isArray(val) ? val.map(function (item) {
|
|
59259
|
-
return item[
|
|
59260
|
-
}) : val[
|
|
59313
|
+
return item[_this5.queryKey[i]];
|
|
59314
|
+
}) : val[_this5.queryKey[i]];
|
|
59261
59315
|
};
|
|
59262
59316
|
|
|
59263
59317
|
for (var i in this.queryKey) {
|
|
@@ -59266,7 +59320,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59266
59320
|
}
|
|
59267
59321
|
} else {
|
|
59268
59322
|
params.id = Array.isArray(val) ? val.map(function (item) {
|
|
59269
|
-
return item[
|
|
59323
|
+
return item[_this5.valueKey];
|
|
59270
59324
|
}) : val[this.valueKey];
|
|
59271
59325
|
}
|
|
59272
59326
|
this.$set(this.wheres, key + 1, params);
|
|
@@ -59275,30 +59329,30 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59275
59329
|
if (key + 1 < this.gangedNum) {}
|
|
59276
59330
|
|
|
59277
59331
|
var _loop3 = function _loop3(i) {
|
|
59278
|
-
if (
|
|
59332
|
+
if (_this5.multiples[i - 1]) {
|
|
59279
59333
|
var newVal = [];
|
|
59280
|
-
|
|
59281
|
-
|
|
59282
|
-
if (element[
|
|
59334
|
+
_this5.values[i - 1].forEach(function (element) {
|
|
59335
|
+
_this5.values[i].forEach(function (itemVal) {
|
|
59336
|
+
if (element[_this5.valueKey] === itemVal[_this5.filtrateKey]) {
|
|
59283
59337
|
newVal.push(itemVal);
|
|
59284
59338
|
}
|
|
59285
59339
|
});
|
|
59286
59340
|
});
|
|
59287
|
-
|
|
59341
|
+
_this5.$set(_this5.values, i, newVal);
|
|
59288
59342
|
}
|
|
59289
|
-
if (
|
|
59290
|
-
|
|
59343
|
+
if (_this5.values[i - 1] && (utils_util["a" /* default */].isObject(_this5.values[i - 1]) || _this5.values[i - 1].length)) {
|
|
59344
|
+
_this5.$set(_this5.disabled, i, false);
|
|
59291
59345
|
} else {
|
|
59292
|
-
|
|
59346
|
+
_this5.$set(_this5.disabled, i, true);
|
|
59293
59347
|
}
|
|
59294
|
-
|
|
59295
|
-
if (!
|
|
59348
|
+
_this5.$set(_this5.filtrates, i, _this5.values[i - 1]);
|
|
59349
|
+
if (!_this5.multiple) {
|
|
59296
59350
|
if (utils_util["a" /* default */].isObject(val) && Object.prototype.hasOwnProperty.call(val, 'multiple')) {
|
|
59297
|
-
|
|
59351
|
+
_this5.$set(_this5.multiples, i, Boolean(val.multiple));
|
|
59298
59352
|
}
|
|
59299
59353
|
}
|
|
59300
|
-
if (!
|
|
59301
|
-
|
|
59354
|
+
if (!_this5.multiples[i - 1] || val.length == 0) {
|
|
59355
|
+
_this5.$set(_this5.values, i, _this5.multiples[i] ? [] : '');
|
|
59302
59356
|
}
|
|
59303
59357
|
};
|
|
59304
59358
|
|
|
@@ -59327,7 +59381,7 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59327
59381
|
}
|
|
59328
59382
|
},
|
|
59329
59383
|
render: function render(h) {
|
|
59330
|
-
var
|
|
59384
|
+
var _this6 = this;
|
|
59331
59385
|
|
|
59332
59386
|
if (!this.hide) {
|
|
59333
59387
|
if (this.readonly) {
|
|
@@ -59340,26 +59394,26 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59340
59394
|
if (Array.isArray(item)) {
|
|
59341
59395
|
item.forEach(function (ele) {
|
|
59342
59396
|
var obj = ele;
|
|
59343
|
-
if (!ele[
|
|
59344
|
-
obj =
|
|
59397
|
+
if (!ele[_this6.filtrateKey]) {
|
|
59398
|
+
obj = _this6.getLabel(ele[_this6.valueKey] || ele, index);
|
|
59345
59399
|
}
|
|
59346
|
-
if (path[obj[
|
|
59347
|
-
path[obj[
|
|
59348
|
-
values.push(path[obj[
|
|
59400
|
+
if (path[obj[_this6.filtrateKey]]) {
|
|
59401
|
+
path[obj[_this6.valueKey]] = path[obj[_this6.filtrateKey]] + _this6.separator + (obj[_this6.labelKey] || obj.label);
|
|
59402
|
+
values.push(path[obj[_this6.valueKey]]);
|
|
59349
59403
|
} else {
|
|
59350
|
-
path[obj[
|
|
59404
|
+
path[obj[_this6.valueKey]] = obj[_this6.labelKey] || obj.label;
|
|
59351
59405
|
}
|
|
59352
59406
|
});
|
|
59353
59407
|
} else {
|
|
59354
59408
|
var obj = item;
|
|
59355
|
-
if (!item[
|
|
59356
|
-
obj =
|
|
59409
|
+
if (!item[_this6.filtrateKey]) {
|
|
59410
|
+
obj = _this6.getLabel(item[_this6.valueKey] || item, index);
|
|
59357
59411
|
}
|
|
59358
|
-
if (path[obj[
|
|
59359
|
-
path[obj[
|
|
59360
|
-
values.push(path[obj[
|
|
59412
|
+
if (path[obj[_this6.filtrateKey]]) {
|
|
59413
|
+
path[obj[_this6.valueKey]] = path[obj[_this6.filtrateKey]] + _this6.separator + (obj[_this6.labelKey] || obj.label);
|
|
59414
|
+
values.push(path[obj[_this6.valueKey]]);
|
|
59361
59415
|
} else {
|
|
59362
|
-
path[obj[
|
|
59416
|
+
path[obj[_this6.valueKey]] = obj[_this6.labelKey] || obj.label;
|
|
59363
59417
|
}
|
|
59364
59418
|
}
|
|
59365
59419
|
});
|
|
@@ -59379,10 +59433,10 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59379
59433
|
value = [this.value.map(function (item, indexs) {
|
|
59380
59434
|
if (Array.isArray(item)) {
|
|
59381
59435
|
return item.map(function (ele, index) {
|
|
59382
|
-
return utils_util["a" /* default */].isObject(ele) ? ele[
|
|
59383
|
-
}).join(
|
|
59436
|
+
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;
|
|
59437
|
+
}).join(_this6.symbol);
|
|
59384
59438
|
}
|
|
59385
|
-
return utils_util["a" /* default */].isObject(item) ? item[
|
|
59439
|
+
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
59440
|
}).join(this.separator)];
|
|
59387
59441
|
}
|
|
59388
59442
|
}
|
|
@@ -59411,31 +59465,31 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
|
|
|
59411
59465
|
|
|
59412
59466
|
var _loop4 = function _loop4(i) {
|
|
59413
59467
|
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 ?
|
|
59468
|
+
attrs: select_ganged_src_mainvue_type_script_lang_js_extends({}, _this6.$attrs, {
|
|
59469
|
+
data: _this6.results[i] ? Array.isArray(_this6.results[0]) ? _this6.results[i] : _this6.results : [],
|
|
59470
|
+
sysCode: _this6.integrality ? undefined : _this6.sysCode,
|
|
59471
|
+
url: _this6.integrality ? undefined : _this6.url,
|
|
59472
|
+
wait: _this6.ganged ? i <= _this6.value.length : true,
|
|
59473
|
+
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]),
|
|
59474
|
+
disabled: _this6.disabled[i],
|
|
59475
|
+
multiple: _this6.multiples[i],
|
|
59476
|
+
height: _this6.height,
|
|
59477
|
+
value: _this6.values[i],
|
|
59478
|
+
valueType: _this6.valueType,
|
|
59479
|
+
valueKey: _this6.valueKey,
|
|
59480
|
+
labelKey: _this6.labelKey,
|
|
59481
|
+
filtrateKey: _this6.filtrateKey,
|
|
59482
|
+
filtrate: _this6.url ? _this6.integrality ? _this6.filtrates[i] : undefined : _this6.filtrates[i],
|
|
59483
|
+
placeholder: _this6.placeholder,
|
|
59484
|
+
parseData: _this6.parseData,
|
|
59485
|
+
defaultValue: i === 0 ? _this6.defaultValue : false
|
|
59432
59486
|
}),
|
|
59433
59487
|
on: {
|
|
59434
59488
|
change: function change(val) {
|
|
59435
|
-
|
|
59489
|
+
_this6.handeChange(val, i);
|
|
59436
59490
|
},
|
|
59437
59491
|
resetInputHeight: function resetInputHeight(val) {
|
|
59438
|
-
|
|
59492
|
+
_this6.height = val;
|
|
59439
59493
|
}
|
|
59440
59494
|
}
|
|
59441
59495
|
}));
|
|
@@ -60669,8 +60723,8 @@ selector_src_main.install = function (Vue) {
|
|
|
60669
60723
|
};
|
|
60670
60724
|
|
|
60671
60725
|
/* 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
|
|
60726
|
+
// 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=45642019&
|
|
60727
|
+
var mainvue_type_template_id_45642019_render = function () {
|
|
60674
60728
|
var _vm = this
|
|
60675
60729
|
var _h = _vm.$createElement
|
|
60676
60730
|
var _c = _vm._self._c || _h
|
|
@@ -60915,11 +60969,11 @@ var mainvue_type_template_id_6d73abc3_render = function () {
|
|
|
60915
60969
|
1
|
|
60916
60970
|
)
|
|
60917
60971
|
}
|
|
60918
|
-
var
|
|
60919
|
-
|
|
60972
|
+
var mainvue_type_template_id_45642019_staticRenderFns = []
|
|
60973
|
+
mainvue_type_template_id_45642019_render._withStripped = true
|
|
60920
60974
|
|
|
60921
60975
|
|
|
60922
|
-
// CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=
|
|
60976
|
+
// CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=45642019&
|
|
60923
60977
|
|
|
60924
60978
|
// 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
60979
|
var treevue_type_template_id_24ad732a_render = function () {
|
|
@@ -61649,6 +61703,7 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
61649
61703
|
|
|
61650
61704
|
|
|
61651
61705
|
|
|
61706
|
+
|
|
61652
61707
|
/* harmony default export */ var selector_panel_src_mainvue_type_script_lang_js_ = ({
|
|
61653
61708
|
name: 'EsSelectorPanel',
|
|
61654
61709
|
inheritAttrs: false,
|
|
@@ -62135,14 +62190,21 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62135
62190
|
this.trees[this.activeName].value = val;
|
|
62136
62191
|
}
|
|
62137
62192
|
},
|
|
62193
|
+
beforeCreate: function beforeCreate() {
|
|
62194
|
+
var _this2 = this;
|
|
62195
|
+
|
|
62196
|
+
this.ajaxActive = Object(external_throttle_debounce_["debounce"])(300, function (active) {
|
|
62197
|
+
_this2.getAjaxActive(active);
|
|
62198
|
+
});
|
|
62199
|
+
},
|
|
62138
62200
|
created: function created() {},
|
|
62139
62201
|
mounted: function mounted() {
|
|
62140
62202
|
this.ajaxActive(this.activeName);
|
|
62141
62203
|
},
|
|
62142
62204
|
|
|
62143
62205
|
methods: {
|
|
62144
|
-
|
|
62145
|
-
var
|
|
62206
|
+
getAjaxActive: function getAjaxActive(active) {
|
|
62207
|
+
var _this3 = this;
|
|
62146
62208
|
|
|
62147
62209
|
if (this.isShowTree) {
|
|
62148
62210
|
if ((!this.trees[active].data || this.trees[active].data && this.trees[active].data.length === 0) && this.newTabs[active].url) {
|
|
@@ -62168,12 +62230,12 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62168
62230
|
data: this.param
|
|
62169
62231
|
}).then(function (res) {
|
|
62170
62232
|
if (res.rCode === 0) {
|
|
62171
|
-
|
|
62172
|
-
|
|
62233
|
+
_this3.selections = JSON.parse(JSON.stringify(res.results));
|
|
62234
|
+
_this3.checkboxs = JSON.parse(JSON.stringify(res.results)) || [];
|
|
62173
62235
|
}
|
|
62174
62236
|
}).catch(function (err) {
|
|
62175
62237
|
if (err.message && err.message !== 'canceled') {
|
|
62176
|
-
|
|
62238
|
+
_this3.$message.error(err.message);
|
|
62177
62239
|
}
|
|
62178
62240
|
});
|
|
62179
62241
|
} else {
|
|
@@ -62183,7 +62245,7 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62183
62245
|
}
|
|
62184
62246
|
},
|
|
62185
62247
|
getTreeData: function getTreeData(url, params, id) {
|
|
62186
|
-
var
|
|
62248
|
+
var _this4 = this;
|
|
62187
62249
|
|
|
62188
62250
|
var data = utils_util["a" /* default */].extend({}, params, this.param);
|
|
62189
62251
|
if (id !== undefined) {
|
|
@@ -62191,24 +62253,24 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62191
62253
|
}
|
|
62192
62254
|
utils_util["a" /* default */].ajax({ method: this.method, url: url, params: data, data: data }).then(function (res) {
|
|
62193
62255
|
if (res.rCode === 0) {
|
|
62194
|
-
|
|
62256
|
+
_this4.loading = false;
|
|
62195
62257
|
if (!Object.prototype.hasOwnProperty.call(params, 'seachkey')) {
|
|
62196
|
-
|
|
62258
|
+
_this4.$set(_this4.defaults[_this4.activeName], 'data', JSON.parse(JSON.stringify(res.results)));
|
|
62197
62259
|
}
|
|
62198
62260
|
if (res.results.length && res.results[0].name === '无搜索数据') {
|
|
62199
|
-
|
|
62261
|
+
_this4.$set(_this4.trees[_this4.activeName], 'data', null);
|
|
62200
62262
|
} else {
|
|
62201
|
-
|
|
62263
|
+
_this4.$set(_this4.trees[_this4.activeName], 'data', JSON.parse(JSON.stringify(res.results)));
|
|
62202
62264
|
}
|
|
62203
62265
|
}
|
|
62204
62266
|
}).catch(function (err) {
|
|
62205
62267
|
if (err.message && err.message !== 'canceled') {
|
|
62206
|
-
|
|
62268
|
+
_this4.$message.error(err.message);
|
|
62207
62269
|
}
|
|
62208
62270
|
});
|
|
62209
62271
|
},
|
|
62210
62272
|
loadsub: function loadsub(data, node, flag) {
|
|
62211
|
-
var
|
|
62273
|
+
var _this5 = this;
|
|
62212
62274
|
|
|
62213
62275
|
node;
|
|
62214
62276
|
if (flag) {
|
|
@@ -62234,14 +62296,14 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62234
62296
|
}).then(function (res) {
|
|
62235
62297
|
if (res.rCode === 0) {
|
|
62236
62298
|
data.selection = JSON.parse(JSON.stringify(res.results));
|
|
62237
|
-
|
|
62238
|
-
|
|
62239
|
-
|
|
62240
|
-
|
|
62299
|
+
_this5.$set(_this5.trees[_this5.activeName], 'selection', JSON.parse(JSON.stringify(res.results)));
|
|
62300
|
+
_this5.$set(_this5.trees[_this5.activeName], 'nodeData', data);
|
|
62301
|
+
_this5.nodeData = _this5.trees[_this5.activeName].nodeData;
|
|
62302
|
+
_this5.checkboxs = _this5.trees[_this5.activeName].selection;
|
|
62241
62303
|
}
|
|
62242
62304
|
}).catch(function (err) {
|
|
62243
62305
|
if (err.message && err.message !== 'canceled') {
|
|
62244
|
-
|
|
62306
|
+
_this5.$message.error(err.message);
|
|
62245
62307
|
}
|
|
62246
62308
|
});
|
|
62247
62309
|
} else {
|
|
@@ -62264,13 +62326,13 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62264
62326
|
params: _params
|
|
62265
62327
|
}).then(function (res) {
|
|
62266
62328
|
if (res.rCode === 0) {
|
|
62267
|
-
|
|
62268
|
-
|
|
62269
|
-
|
|
62329
|
+
_this5.loading = false;
|
|
62330
|
+
_this5.$set(data, 'children', JSON.parse(JSON.stringify(res.results)));
|
|
62331
|
+
_this5.$set(_this5.defaults[_this5.activeName], 'data', JSON.parse(JSON.stringify(_this5.trees[_this5.activeName].data)));
|
|
62270
62332
|
}
|
|
62271
62333
|
}).catch(function (err) {
|
|
62272
62334
|
if (err.message && err.message !== 'canceled') {
|
|
62273
|
-
|
|
62335
|
+
_this5.$message.error(err.message);
|
|
62274
62336
|
}
|
|
62275
62337
|
});
|
|
62276
62338
|
}
|
|
@@ -62288,7 +62350,7 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62288
62350
|
}
|
|
62289
62351
|
},
|
|
62290
62352
|
handleCheckAll: function handleCheckAll(res) {
|
|
62291
|
-
var
|
|
62353
|
+
var _this6 = this;
|
|
62292
62354
|
|
|
62293
62355
|
if (this.checkboxs.length > 0) {
|
|
62294
62356
|
var isObject = utils_util["a" /* default */].isObject(this.checkboxs[0]);
|
|
@@ -62306,9 +62368,9 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62306
62368
|
if (this.isShowTree) {
|
|
62307
62369
|
this.nodeData.checkAll = false;
|
|
62308
62370
|
this.checkboxs.forEach(function (element) {
|
|
62309
|
-
for (var i in
|
|
62310
|
-
if (isObject &&
|
|
62311
|
-
|
|
62371
|
+
for (var i in _this6.checkeds) {
|
|
62372
|
+
if (isObject && _this6.checkeds[i][_this6.valueKey] === element[_this6.valueKey] || _this6.checkeds[i] === element) {
|
|
62373
|
+
_this6.checkeds.splice(i, 1);
|
|
62312
62374
|
break;
|
|
62313
62375
|
}
|
|
62314
62376
|
}
|
|
@@ -62327,7 +62389,7 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62327
62389
|
this.$emit('filtratechage', this.trees, this.activeName);
|
|
62328
62390
|
},
|
|
62329
62391
|
handleChangeSearch: function handleChangeSearch() {
|
|
62330
|
-
var
|
|
62392
|
+
var _this7 = this;
|
|
62331
62393
|
|
|
62332
62394
|
if (this.search === '') {
|
|
62333
62395
|
if (this.isShowTree) {
|
|
@@ -62341,11 +62403,11 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62341
62403
|
var arry = [];
|
|
62342
62404
|
this.nodeData.selection.forEach(function (item) {
|
|
62343
62405
|
if (utils_util["a" /* default */].isObject(item)) {
|
|
62344
|
-
if (item[
|
|
62406
|
+
if (item[_this7.labelKey].indexOf(_this7.search) > -1) {
|
|
62345
62407
|
arry.push(item);
|
|
62346
62408
|
}
|
|
62347
62409
|
} else {
|
|
62348
|
-
if (item.indexOf(
|
|
62410
|
+
if (item.indexOf(_this7.search) > -1) {
|
|
62349
62411
|
arry.push(item);
|
|
62350
62412
|
}
|
|
62351
62413
|
}
|
|
@@ -62356,11 +62418,11 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62356
62418
|
var _arry = [];
|
|
62357
62419
|
this.selections.forEach(function (item) {
|
|
62358
62420
|
if (utils_util["a" /* default */].isObject(item)) {
|
|
62359
|
-
if (item[
|
|
62421
|
+
if (item[_this7.labelKey].indexOf(_this7.search) > -1) {
|
|
62360
62422
|
_arry.push(item);
|
|
62361
62423
|
}
|
|
62362
62424
|
} else {
|
|
62363
|
-
if (item.indexOf(
|
|
62425
|
+
if (item.indexOf(_this7.search) > -1) {
|
|
62364
62426
|
_arry.push(item);
|
|
62365
62427
|
}
|
|
62366
62428
|
}
|
|
@@ -62370,7 +62432,7 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62370
62432
|
}
|
|
62371
62433
|
},
|
|
62372
62434
|
handleSearch: function handleSearch() {
|
|
62373
|
-
var
|
|
62435
|
+
var _this8 = this;
|
|
62374
62436
|
|
|
62375
62437
|
if (this.isShowTree) {
|
|
62376
62438
|
if (this.nodeData && this.nodeData.selection) {
|
|
@@ -62378,11 +62440,11 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62378
62440
|
var arry = [];
|
|
62379
62441
|
this.nodeData.selection.forEach(function (item) {
|
|
62380
62442
|
if (utils_util["a" /* default */].isObject(item)) {
|
|
62381
|
-
if (item[
|
|
62443
|
+
if (item[_this8.labelKey].indexOf(_this8.search) > -1) {
|
|
62382
62444
|
arry.push(item);
|
|
62383
62445
|
}
|
|
62384
62446
|
} else {
|
|
62385
|
-
if (item.indexOf(
|
|
62447
|
+
if (item.indexOf(_this8.search) > -1) {
|
|
62386
62448
|
arry.push(item);
|
|
62387
62449
|
}
|
|
62388
62450
|
}
|
|
@@ -62404,11 +62466,11 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62404
62466
|
}
|
|
62405
62467
|
}).then(function (res) {
|
|
62406
62468
|
if (res.rCode === 0) {
|
|
62407
|
-
|
|
62469
|
+
_this8.checkboxs = JSON.parse(JSON.stringify(res.results));
|
|
62408
62470
|
}
|
|
62409
62471
|
}).catch(function (err) {
|
|
62410
62472
|
if (err.message && err.message !== 'canceled') {
|
|
62411
|
-
|
|
62473
|
+
_this8.$message.error(err.message);
|
|
62412
62474
|
}
|
|
62413
62475
|
});
|
|
62414
62476
|
}
|
|
@@ -62417,11 +62479,11 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62417
62479
|
var _arry2 = [];
|
|
62418
62480
|
this.selections.forEach(function (item) {
|
|
62419
62481
|
if (utils_util["a" /* default */].isObject(item)) {
|
|
62420
|
-
if (item[
|
|
62482
|
+
if (item[_this8.labelKey].indexOf(_this8.search) > -1) {
|
|
62421
62483
|
_arry2.push(item);
|
|
62422
62484
|
}
|
|
62423
62485
|
} else {
|
|
62424
|
-
if (item.indexOf(
|
|
62486
|
+
if (item.indexOf(_this8.search) > -1) {
|
|
62425
62487
|
_arry2.push(item);
|
|
62426
62488
|
}
|
|
62427
62489
|
}
|
|
@@ -62473,8 +62535,8 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
|
|
|
62473
62535
|
|
|
62474
62536
|
var selector_panel_src_main_component = normalizeComponent(
|
|
62475
62537
|
packages_selector_panel_src_mainvue_type_script_lang_js_,
|
|
62476
|
-
|
|
62477
|
-
|
|
62538
|
+
mainvue_type_template_id_45642019_render,
|
|
62539
|
+
mainvue_type_template_id_45642019_staticRenderFns,
|
|
62478
62540
|
false,
|
|
62479
62541
|
null,
|
|
62480
62542
|
null,
|
|
@@ -62918,8 +62980,8 @@ sizer_src_main.install = function (Vue) {
|
|
|
62918
62980
|
};
|
|
62919
62981
|
|
|
62920
62982
|
/* 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
|
|
62983
|
+
// 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=029968af&
|
|
62984
|
+
var mainvue_type_template_id_029968af_render = function () {
|
|
62923
62985
|
var _vm = this
|
|
62924
62986
|
var _h = _vm.$createElement
|
|
62925
62987
|
var _c = _vm._self._c || _h
|
|
@@ -63019,11 +63081,11 @@ var mainvue_type_template_id_6a6ca54d_render = function () {
|
|
|
63019
63081
|
1
|
|
63020
63082
|
)
|
|
63021
63083
|
}
|
|
63022
|
-
var
|
|
63023
|
-
|
|
63084
|
+
var mainvue_type_template_id_029968af_staticRenderFns = []
|
|
63085
|
+
mainvue_type_template_id_029968af_render._withStripped = true
|
|
63024
63086
|
|
|
63025
63087
|
|
|
63026
|
-
// CONCATENATED MODULE: ./packages/steps/src/main.vue?vue&type=template&id=
|
|
63088
|
+
// CONCATENATED MODULE: ./packages/steps/src/main.vue?vue&type=template&id=029968af&
|
|
63027
63089
|
|
|
63028
63090
|
// 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
63091
|
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 +63158,7 @@ var steps_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
63096
63158
|
//
|
|
63097
63159
|
|
|
63098
63160
|
|
|
63161
|
+
|
|
63099
63162
|
/* harmony default export */ var steps_src_mainvue_type_script_lang_js_ = ({
|
|
63100
63163
|
name: 'EsSteps',
|
|
63101
63164
|
inheritAttrs: false,
|
|
@@ -63160,14 +63223,21 @@ var steps_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
63160
63223
|
}
|
|
63161
63224
|
}
|
|
63162
63225
|
},
|
|
63226
|
+
beforeCreate: function beforeCreate() {
|
|
63227
|
+
var _this = this;
|
|
63228
|
+
|
|
63229
|
+
this.getData = Object(external_throttle_debounce_["debounce"])(300, function () {
|
|
63230
|
+
_this.getDatas();
|
|
63231
|
+
});
|
|
63232
|
+
},
|
|
63163
63233
|
created: function created() {
|
|
63164
63234
|
this.getData();
|
|
63165
63235
|
},
|
|
63166
63236
|
mounted: function mounted() {},
|
|
63167
63237
|
|
|
63168
63238
|
methods: {
|
|
63169
|
-
|
|
63170
|
-
var
|
|
63239
|
+
getDatas: function getDatas() {
|
|
63240
|
+
var _this2 = this;
|
|
63171
63241
|
|
|
63172
63242
|
if (this.url) {
|
|
63173
63243
|
var param = this.param ? this.param : {};
|
|
@@ -63178,15 +63248,15 @@ var steps_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
63178
63248
|
params: param
|
|
63179
63249
|
}).then(function (res) {
|
|
63180
63250
|
if (res.rCode === 0) {
|
|
63181
|
-
if (
|
|
63182
|
-
|
|
63251
|
+
if (_this2.esForm) {
|
|
63252
|
+
_this2.esForm.stepContent = JSON.parse(JSON.stringify(res.results));
|
|
63183
63253
|
} else {
|
|
63184
|
-
|
|
63254
|
+
_this2.list = JSON.parse(JSON.stringify(res.results));
|
|
63185
63255
|
}
|
|
63186
63256
|
}
|
|
63187
63257
|
}).catch(function (err) {
|
|
63188
63258
|
if (err.message && err.message !== 'canceled') {
|
|
63189
|
-
|
|
63259
|
+
_this2.$message.error(err.message);
|
|
63190
63260
|
}
|
|
63191
63261
|
});
|
|
63192
63262
|
}
|
|
@@ -63217,8 +63287,8 @@ var steps_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
|
|
|
63217
63287
|
|
|
63218
63288
|
var steps_src_main_component = normalizeComponent(
|
|
63219
63289
|
packages_steps_src_mainvue_type_script_lang_js_,
|
|
63220
|
-
|
|
63221
|
-
|
|
63290
|
+
mainvue_type_template_id_029968af_render,
|
|
63291
|
+
mainvue_type_template_id_029968af_staticRenderFns,
|
|
63222
63292
|
false,
|
|
63223
63293
|
null,
|
|
63224
63294
|
null,
|
|
@@ -66012,8 +66082,8 @@ tabs_panel_src_main.install = function (Vue) {
|
|
|
66012
66082
|
};
|
|
66013
66083
|
|
|
66014
66084
|
/* 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
|
|
66085
|
+
// 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=dc6e71ee&
|
|
66086
|
+
var mainvue_type_template_id_dc6e71ee_render = function () {
|
|
66017
66087
|
var _vm = this
|
|
66018
66088
|
var _h = _vm.$createElement
|
|
66019
66089
|
var _c = _vm._self._c || _h
|
|
@@ -66051,11 +66121,11 @@ var mainvue_type_template_id_33945f34_render = function () {
|
|
|
66051
66121
|
2
|
|
66052
66122
|
)
|
|
66053
66123
|
}
|
|
66054
|
-
var
|
|
66055
|
-
|
|
66124
|
+
var mainvue_type_template_id_dc6e71ee_staticRenderFns = []
|
|
66125
|
+
mainvue_type_template_id_dc6e71ee_render._withStripped = true
|
|
66056
66126
|
|
|
66057
66127
|
|
|
66058
|
-
// CONCATENATED MODULE: ./packages/tips/src/main.vue?vue&type=template&id=
|
|
66128
|
+
// CONCATENATED MODULE: ./packages/tips/src/main.vue?vue&type=template&id=dc6e71ee&
|
|
66059
66129
|
|
|
66060
66130
|
// 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
66131
|
//
|
|
@@ -66078,6 +66148,7 @@ mainvue_type_template_id_33945f34_render._withStripped = true
|
|
|
66078
66148
|
|
|
66079
66149
|
|
|
66080
66150
|
|
|
66151
|
+
|
|
66081
66152
|
/* harmony default export */ var tips_src_mainvue_type_script_lang_js_ = ({
|
|
66082
66153
|
name: 'EsTips',
|
|
66083
66154
|
inheritAttrs: false,
|
|
@@ -66163,6 +66234,14 @@ mainvue_type_template_id_33945f34_render._withStripped = true
|
|
|
66163
66234
|
}
|
|
66164
66235
|
}
|
|
66165
66236
|
},
|
|
66237
|
+
beforeCreate: function beforeCreate() {
|
|
66238
|
+
var _this2 = this;
|
|
66239
|
+
|
|
66240
|
+
this.getTips = Object(external_throttle_debounce_["debounce"])(300, function () {
|
|
66241
|
+
_this2.getTipsData();
|
|
66242
|
+
});
|
|
66243
|
+
},
|
|
66244
|
+
created: function created() {},
|
|
66166
66245
|
mounted: function mounted() {
|
|
66167
66246
|
if (this.url && !this.contents && JSON.stringify(this.param) !== '{}') {
|
|
66168
66247
|
this.getTips();
|
|
@@ -66170,8 +66249,8 @@ mainvue_type_template_id_33945f34_render._withStripped = true
|
|
|
66170
66249
|
},
|
|
66171
66250
|
|
|
66172
66251
|
methods: {
|
|
66173
|
-
|
|
66174
|
-
var
|
|
66252
|
+
getTipsData: function getTipsData() {
|
|
66253
|
+
var _this3 = this;
|
|
66175
66254
|
|
|
66176
66255
|
utils_util["a" /* default */].ajax({
|
|
66177
66256
|
url: this.url,
|
|
@@ -66180,11 +66259,11 @@ mainvue_type_template_id_33945f34_render._withStripped = true
|
|
|
66180
66259
|
params: this.params
|
|
66181
66260
|
}).then(function (res) {
|
|
66182
66261
|
if (res.rCode === 0) {
|
|
66183
|
-
|
|
66262
|
+
_this3.reselutContent = res;
|
|
66184
66263
|
}
|
|
66185
66264
|
}).catch(function (err) {
|
|
66186
66265
|
if (err.message && err.message !== 'canceled') {
|
|
66187
|
-
|
|
66266
|
+
_this3.$message.error(err.message);
|
|
66188
66267
|
}
|
|
66189
66268
|
});
|
|
66190
66269
|
},
|
|
@@ -66206,8 +66285,8 @@ mainvue_type_template_id_33945f34_render._withStripped = true
|
|
|
66206
66285
|
|
|
66207
66286
|
var tips_src_main_component = normalizeComponent(
|
|
66208
66287
|
packages_tips_src_mainvue_type_script_lang_js_,
|
|
66209
|
-
|
|
66210
|
-
|
|
66288
|
+
mainvue_type_template_id_dc6e71ee_render,
|
|
66289
|
+
mainvue_type_template_id_dc6e71ee_staticRenderFns,
|
|
66211
66290
|
false,
|
|
66212
66291
|
null,
|
|
66213
66292
|
null,
|
|
@@ -66224,8 +66303,8 @@ tips_src_main.install = function (Vue) {
|
|
|
66224
66303
|
};
|
|
66225
66304
|
|
|
66226
66305
|
/* 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
|
|
66306
|
+
// 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=343ace9b&
|
|
66307
|
+
var mainvue_type_template_id_343ace9b_render = function () {
|
|
66229
66308
|
var _vm = this
|
|
66230
66309
|
var _h = _vm.$createElement
|
|
66231
66310
|
var _c = _vm._self._c || _h
|
|
@@ -66421,11 +66500,11 @@ var mainvue_type_template_id_9f4d1ddc_render = function () {
|
|
|
66421
66500
|
)
|
|
66422
66501
|
: _vm._e()
|
|
66423
66502
|
}
|
|
66424
|
-
var
|
|
66425
|
-
|
|
66503
|
+
var mainvue_type_template_id_343ace9b_staticRenderFns = []
|
|
66504
|
+
mainvue_type_template_id_343ace9b_render._withStripped = true
|
|
66426
66505
|
|
|
66427
66506
|
|
|
66428
|
-
// CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=
|
|
66507
|
+
// CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=343ace9b&
|
|
66429
66508
|
|
|
66430
66509
|
// 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
66510
|
//
|
|
@@ -66519,6 +66598,7 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66519
66598
|
|
|
66520
66599
|
|
|
66521
66600
|
|
|
66601
|
+
|
|
66522
66602
|
/* harmony default export */ var tree_src_mainvue_type_script_lang_js_ = ({
|
|
66523
66603
|
name: 'EsTree',
|
|
66524
66604
|
inheritAttrs: false,
|
|
@@ -66779,11 +66859,18 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66779
66859
|
}
|
|
66780
66860
|
}
|
|
66781
66861
|
},
|
|
66862
|
+
beforeCreate: function beforeCreate() {
|
|
66863
|
+
var _this = this;
|
|
66864
|
+
|
|
66865
|
+
this.getTreeData = Object(external_throttle_debounce_["debounce"])(300, function (param) {
|
|
66866
|
+
_this.getTreeDatas(param);
|
|
66867
|
+
});
|
|
66868
|
+
},
|
|
66782
66869
|
created: function created() {
|
|
66783
66870
|
if (Object.prototype.hasOwnProperty.call(this.search, 'value')) {
|
|
66784
66871
|
this.searchValue = this.search.value;
|
|
66785
66872
|
}
|
|
66786
|
-
this.getTreeData();
|
|
66873
|
+
this.getTreeData(param);
|
|
66787
66874
|
},
|
|
66788
66875
|
mounted: function mounted() {},
|
|
66789
66876
|
|
|
@@ -66801,8 +66888,8 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66801
66888
|
},
|
|
66802
66889
|
|
|
66803
66890
|
//获取树节点
|
|
66804
|
-
|
|
66805
|
-
var
|
|
66891
|
+
getTreeDatas: function getTreeDatas(param) {
|
|
66892
|
+
var _this2 = this;
|
|
66806
66893
|
|
|
66807
66894
|
this.loading = true;
|
|
66808
66895
|
var params = utils_util["a" /* default */].extend({}, this.param, this.where, param);
|
|
@@ -66813,44 +66900,44 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66813
66900
|
data: params,
|
|
66814
66901
|
params: params
|
|
66815
66902
|
}).then(function (res) {
|
|
66816
|
-
|
|
66903
|
+
_this2.loading = false;
|
|
66817
66904
|
if (res.rCode === 0) {
|
|
66818
|
-
var treeList =
|
|
66819
|
-
|
|
66820
|
-
if (
|
|
66905
|
+
var treeList = _this2.parseData ? _this2.parseData(JSON.parse(JSON.stringify(res.results)), 'results') : JSON.parse(JSON.stringify(res.results));
|
|
66906
|
+
_this2.$emit('results', treeList);
|
|
66907
|
+
if (_this2.currentFirst) {
|
|
66821
66908
|
var currentNode = treeList[0].id;
|
|
66822
|
-
if (!
|
|
66823
|
-
|
|
66824
|
-
|
|
66825
|
-
|
|
66909
|
+
if (!_this2.currentNodeKey && _this2.currentNodeKey != 0) {
|
|
66910
|
+
_this2.$emit('current-first', 'current', treeList[0]);
|
|
66911
|
+
_this2.$nextTick(function () {
|
|
66912
|
+
_this2.$refs.oaTree.setCurrentKey(currentNode);
|
|
66826
66913
|
});
|
|
66827
66914
|
}
|
|
66828
66915
|
}
|
|
66829
|
-
if (
|
|
66916
|
+
if (_this2.checkedFirst) {
|
|
66830
66917
|
var checkedNode = treeList[0].id;
|
|
66831
|
-
if (
|
|
66832
|
-
|
|
66833
|
-
|
|
66918
|
+
if (_this2.defaultCheckedKeys && _this2.defaultCheckedKeys.indexOf(checkedNode) == -1) {
|
|
66919
|
+
_this2.$emit('current-first', 'checked', treeList[0]);
|
|
66920
|
+
_this2.checkedKeys = [checkedNode];
|
|
66834
66921
|
}
|
|
66835
66922
|
}
|
|
66836
|
-
|
|
66923
|
+
_this2.expandedKeys = treeList.filter(function (item) {
|
|
66837
66924
|
if (item.open) {
|
|
66838
66925
|
return item.id;
|
|
66839
66926
|
}
|
|
66840
66927
|
});
|
|
66841
|
-
|
|
66928
|
+
_this2.treeList = treeList;
|
|
66842
66929
|
}
|
|
66843
66930
|
}).catch(function (err) {
|
|
66844
|
-
|
|
66931
|
+
_this2.loading = false;
|
|
66845
66932
|
if (err.message && err.message !== 'canceled') {
|
|
66846
|
-
|
|
66933
|
+
_this2.$message.error(err.message);
|
|
66847
66934
|
}
|
|
66848
66935
|
});
|
|
66849
66936
|
},
|
|
66850
66937
|
|
|
66851
66938
|
//请求子节点数据
|
|
66852
66939
|
loadsub: function loadsub(data, node) {
|
|
66853
|
-
var
|
|
66940
|
+
var _this3 = this;
|
|
66854
66941
|
|
|
66855
66942
|
if (data.state !== '' && (!data.children || data.children.length === 0)) {
|
|
66856
66943
|
var params = utils_util["a" /* default */].extend({}, this.param, this.where, {
|
|
@@ -66864,8 +66951,8 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66864
66951
|
}
|
|
66865
66952
|
if (this.onLoadsub) {
|
|
66866
66953
|
this.onLoadsub({ data: data, params: params, node: node }).then(function (res) {
|
|
66867
|
-
|
|
66868
|
-
|
|
66954
|
+
_this3.loading = false;
|
|
66955
|
+
_this3.$set(data, 'children', JSON.parse(JSON.stringify(res)));
|
|
66869
66956
|
}).catch(function (e) {});
|
|
66870
66957
|
} else {
|
|
66871
66958
|
utils_util["a" /* default */].ajax({
|
|
@@ -66875,25 +66962,25 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66875
66962
|
params: params
|
|
66876
66963
|
}).then(function (res) {
|
|
66877
66964
|
if (res.rCode === 0) {
|
|
66878
|
-
|
|
66879
|
-
var results =
|
|
66880
|
-
|
|
66965
|
+
_this3.loading = false;
|
|
66966
|
+
var results = _this3.parseData ? _this3.parseData(JSON.parse(JSON.stringify(res.results)), 'sub-results') : JSON.parse(JSON.stringify(res.results));
|
|
66967
|
+
_this3.$emit('sub-results', results);
|
|
66881
66968
|
if (Array.isArray(results)) {
|
|
66882
66969
|
if (data.id === results[0].id) {
|
|
66883
|
-
|
|
66970
|
+
_this3.$set(data, 'children', results[0].children);
|
|
66884
66971
|
} else {
|
|
66885
|
-
|
|
66972
|
+
_this3.$set(data, 'children', results);
|
|
66886
66973
|
}
|
|
66887
66974
|
} else if (data.id === results.id) {
|
|
66888
|
-
|
|
66975
|
+
_this3.$set(data, 'children', results.children);
|
|
66889
66976
|
} else {
|
|
66890
66977
|
console.error('tree数据格式错误');
|
|
66891
66978
|
}
|
|
66892
66979
|
}
|
|
66893
66980
|
}).catch(function (err) {
|
|
66894
|
-
|
|
66981
|
+
_this3.loading = false;
|
|
66895
66982
|
if (err.message && err.message !== 'canceled') {
|
|
66896
|
-
|
|
66983
|
+
_this3.$message.error(err.message);
|
|
66897
66984
|
}
|
|
66898
66985
|
});
|
|
66899
66986
|
}
|
|
@@ -66921,13 +67008,13 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66921
67008
|
this.$emit('load', node, resolve);
|
|
66922
67009
|
},
|
|
66923
67010
|
sortTree: function sortTree(arr) {
|
|
66924
|
-
var
|
|
67011
|
+
var _this4 = this;
|
|
66925
67012
|
|
|
66926
67013
|
return arr.sort(function (a, b) {
|
|
66927
|
-
if (
|
|
66928
|
-
return a[
|
|
67014
|
+
if (_this4.order === 'asc' && a[_this4.sort]) {
|
|
67015
|
+
return a[_this4.sort] - b[_this4.sort];
|
|
66929
67016
|
} else {
|
|
66930
|
-
return b[
|
|
67017
|
+
return b[_this4.sort] - a[_this4.sort];
|
|
66931
67018
|
}
|
|
66932
67019
|
});
|
|
66933
67020
|
},
|
|
@@ -66988,7 +67075,7 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66988
67075
|
}
|
|
66989
67076
|
},
|
|
66990
67077
|
handleCheckChange: function handleCheckChange(data, checked, indeterminate) {
|
|
66991
|
-
var
|
|
67078
|
+
var _this5 = this;
|
|
66992
67079
|
|
|
66993
67080
|
if (this.esPage && this.changeData) {
|
|
66994
67081
|
var checkeds = this.getCheckedNodes();
|
|
@@ -66996,7 +67083,7 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
66996
67083
|
if (utils_util["a" /* default */].isObject(this.changeData)) {
|
|
66997
67084
|
var _loop = function _loop(_i2) {
|
|
66998
67085
|
changeData[_i2] = checkeds.map(function (item) {
|
|
66999
|
-
return item[
|
|
67086
|
+
return item[_this5.changeData[_i2]];
|
|
67000
67087
|
});
|
|
67001
67088
|
};
|
|
67002
67089
|
|
|
@@ -67006,7 +67093,7 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
67006
67093
|
} else if (Array.isArray(this.changeData)) {
|
|
67007
67094
|
this.changeData.forEach(function (item) {
|
|
67008
67095
|
changeData[item] = checkeds.map(function (ele) {
|
|
67009
|
-
return ele[
|
|
67096
|
+
return ele[_this5.changeData[i]];
|
|
67010
67097
|
});
|
|
67011
67098
|
});
|
|
67012
67099
|
} else {
|
|
@@ -67083,12 +67170,12 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
67083
67170
|
return this.$refs.oaTree.insertAfter(data, refNode);
|
|
67084
67171
|
},
|
|
67085
67172
|
getKeys: function getKeys(data, result) {
|
|
67086
|
-
var
|
|
67173
|
+
var _this6 = this;
|
|
67087
67174
|
|
|
67088
67175
|
data.forEach(function (item) {
|
|
67089
67176
|
result.push(item.id);
|
|
67090
67177
|
if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
|
|
67091
|
-
|
|
67178
|
+
_this6.getKeys(item.children, result);
|
|
67092
67179
|
}
|
|
67093
67180
|
});
|
|
67094
67181
|
},
|
|
@@ -67118,8 +67205,8 @@ mainvue_type_template_id_9f4d1ddc_render._withStripped = true
|
|
|
67118
67205
|
|
|
67119
67206
|
var tree_src_main_component = normalizeComponent(
|
|
67120
67207
|
packages_tree_src_mainvue_type_script_lang_js_,
|
|
67121
|
-
|
|
67122
|
-
|
|
67208
|
+
mainvue_type_template_id_343ace9b_render,
|
|
67209
|
+
mainvue_type_template_id_343ace9b_staticRenderFns,
|
|
67123
67210
|
false,
|
|
67124
67211
|
null,
|
|
67125
67212
|
null,
|
|
@@ -72655,8 +72742,8 @@ form_src_table.install = function (Vue) {
|
|
|
72655
72742
|
};
|
|
72656
72743
|
|
|
72657
72744
|
/* 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
|
|
72745
|
+
// 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=7440cc04&
|
|
72746
|
+
var mainvue_type_template_id_7440cc04_render = function () {
|
|
72660
72747
|
var _vm = this
|
|
72661
72748
|
var _h = _vm.$createElement
|
|
72662
72749
|
var _c = _vm._self._c || _h
|
|
@@ -73036,11 +73123,11 @@ var mainvue_type_template_id_33bc9a52_render = function () {
|
|
|
73036
73123
|
)
|
|
73037
73124
|
: _vm._e()
|
|
73038
73125
|
}
|
|
73039
|
-
var
|
|
73040
|
-
|
|
73126
|
+
var mainvue_type_template_id_7440cc04_staticRenderFns = []
|
|
73127
|
+
mainvue_type_template_id_7440cc04_render._withStripped = true
|
|
73041
73128
|
|
|
73042
73129
|
|
|
73043
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
73130
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=7440cc04&
|
|
73044
73131
|
|
|
73045
73132
|
// CONCATENATED MODULE: ./packages/upload/src/picture.js
|
|
73046
73133
|
/* harmony default export */ var picture = ({
|
|
@@ -73251,6 +73338,7 @@ var mainvue_type_script_lang_js_props;
|
|
|
73251
73338
|
|
|
73252
73339
|
|
|
73253
73340
|
|
|
73341
|
+
|
|
73254
73342
|
/* harmony default export */ var upload_src_mainvue_type_script_lang_js_ = ({
|
|
73255
73343
|
name: 'EsUpload',
|
|
73256
73344
|
components: {
|
|
@@ -73684,14 +73772,24 @@ var mainvue_type_script_lang_js_props;
|
|
|
73684
73772
|
val && this.getHeight();
|
|
73685
73773
|
}
|
|
73686
73774
|
},
|
|
73775
|
+
beforeCreate: function beforeCreate() {
|
|
73776
|
+
var _this = this;
|
|
73777
|
+
|
|
73778
|
+
this.getFiles = Object(external_throttle_debounce_["debounce"])(300, function (params) {
|
|
73779
|
+
_this.getFileLists(params);
|
|
73780
|
+
});
|
|
73781
|
+
this.getAdjunctPropertie = Object(external_throttle_debounce_["debounce"])(300, function () {
|
|
73782
|
+
_this.getAdjunctProperties();
|
|
73783
|
+
});
|
|
73784
|
+
},
|
|
73687
73785
|
created: function created() {
|
|
73688
73786
|
this.getAdjunctPropertie();
|
|
73689
73787
|
},
|
|
73690
73788
|
mounted: function mounted() {
|
|
73691
|
-
var
|
|
73789
|
+
var _this2 = this;
|
|
73692
73790
|
|
|
73693
73791
|
this.$nextTick(function () {
|
|
73694
|
-
|
|
73792
|
+
_this2.getHeight();
|
|
73695
73793
|
});
|
|
73696
73794
|
},
|
|
73697
73795
|
|
|
@@ -73706,8 +73804,8 @@ var mainvue_type_script_lang_js_props;
|
|
|
73706
73804
|
},
|
|
73707
73805
|
|
|
73708
73806
|
//根据code获取附件参数配置
|
|
73709
|
-
|
|
73710
|
-
var
|
|
73807
|
+
getAdjunctProperties: function getAdjunctProperties() {
|
|
73808
|
+
var _this3 = this;
|
|
73711
73809
|
|
|
73712
73810
|
if (this.code !== undefined) {
|
|
73713
73811
|
var config = utils_store.get(this.code);
|
|
@@ -73724,35 +73822,35 @@ var mainvue_type_script_lang_js_props;
|
|
|
73724
73822
|
}).then(function (res) {
|
|
73725
73823
|
if (res.rCode === 0) {
|
|
73726
73824
|
if (res.results) {
|
|
73727
|
-
|
|
73825
|
+
_this3.excludeNames = res.results.excludeName;
|
|
73728
73826
|
if (res.results.fileTypeExtName) {
|
|
73729
73827
|
var fileTypeExtName = res.results.fileTypeExtName.split(';');
|
|
73730
|
-
|
|
73828
|
+
_this3.fileAccept = fileTypeExtName.filter(function (item) {
|
|
73731
73829
|
return item;
|
|
73732
73830
|
}).join(',');
|
|
73733
73831
|
}
|
|
73734
73832
|
if (res.results.kkViewRootPath) {
|
|
73735
|
-
|
|
73833
|
+
_this3.kkfileview = res.results.kkViewRootPath;
|
|
73736
73834
|
}
|
|
73737
|
-
|
|
73738
|
-
|
|
73739
|
-
utils_store.set(
|
|
73740
|
-
accept:
|
|
73741
|
-
size:
|
|
73742
|
-
totalSize:
|
|
73835
|
+
_this3.fileSize = res.results.limitFileSize ? res.results.limitFileSize : 0;
|
|
73836
|
+
_this3.fileTotalSize = res.results.limitTotalSize;
|
|
73837
|
+
utils_store.set(_this3.code, {
|
|
73838
|
+
accept: _this3.fileAccept,
|
|
73839
|
+
size: _this3.fileSize,
|
|
73840
|
+
totalSize: _this3.fileTotalSize
|
|
73743
73841
|
});
|
|
73744
73842
|
}
|
|
73745
73843
|
}
|
|
73746
73844
|
}).catch(function (err) {
|
|
73747
73845
|
if (err.message && err.message !== 'canceled') {
|
|
73748
|
-
|
|
73846
|
+
_this3.$message.error(err.message);
|
|
73749
73847
|
}
|
|
73750
73848
|
});
|
|
73751
73849
|
}
|
|
73752
73850
|
}
|
|
73753
73851
|
},
|
|
73754
|
-
|
|
73755
|
-
var
|
|
73852
|
+
getFileLists: function getFileLists(params) {
|
|
73853
|
+
var _this4 = this;
|
|
73756
73854
|
|
|
73757
73855
|
if (!this.show || this.fileList && Array.isArray(this.fileList) && this.fileList.length || this.requiredOwnId && !Object.prototype.hasOwnProperty.call(params, 'ownId')) {
|
|
73758
73856
|
return false;
|
|
@@ -73765,30 +73863,30 @@ var mainvue_type_script_lang_js_props;
|
|
|
73765
73863
|
format: false
|
|
73766
73864
|
}).then(function (res) {
|
|
73767
73865
|
if (res.rCode === 0) {
|
|
73768
|
-
if (
|
|
73769
|
-
|
|
73866
|
+
if (_this4.portrait === true) {
|
|
73867
|
+
_this4.image = JSON.parse(JSON.stringify(res.results))[0];
|
|
73770
73868
|
} else {
|
|
73771
|
-
|
|
73869
|
+
_this4.lists = JSON.parse(JSON.stringify(res.results));
|
|
73772
73870
|
var filesTotalSize = 0;
|
|
73773
|
-
|
|
73871
|
+
_this4.lists.forEach(function (item) {
|
|
73774
73872
|
if (Object.prototype.hasOwnProperty.call(item, 'fileSize') && item.fileSize) {
|
|
73775
73873
|
filesTotalSize += parseFloat(item.fileSize, 10);
|
|
73776
73874
|
} else {
|
|
73777
73875
|
filesTotalSize += item.size ? Math.round(item.size / 1024 * 10) / 10 : 0;
|
|
73778
73876
|
}
|
|
73779
73877
|
});
|
|
73780
|
-
|
|
73781
|
-
if (
|
|
73782
|
-
|
|
73878
|
+
_this4.filesTotalSize = filesTotalSize;
|
|
73879
|
+
if (_this4.lists.length) {
|
|
73880
|
+
_this4.$emit('input', _this4.lists);
|
|
73783
73881
|
}
|
|
73784
73882
|
}
|
|
73785
73883
|
} else {
|
|
73786
73884
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
73787
|
-
|
|
73885
|
+
_this4.$message.error(msg);
|
|
73788
73886
|
}
|
|
73789
73887
|
}).catch(function (err) {
|
|
73790
73888
|
if (err.message && err.message !== 'canceled') {
|
|
73791
|
-
|
|
73889
|
+
_this4.$message.error(err.message);
|
|
73792
73890
|
}
|
|
73793
73891
|
});
|
|
73794
73892
|
},
|
|
@@ -73808,7 +73906,7 @@ var mainvue_type_script_lang_js_props;
|
|
|
73808
73906
|
utils_util["a" /* default */].win.open(this.kkfileview + '?url=' + url);
|
|
73809
73907
|
},
|
|
73810
73908
|
handlePreview: function handlePreview(res) {
|
|
73811
|
-
var
|
|
73909
|
+
var _this5 = this;
|
|
73812
73910
|
|
|
73813
73911
|
if (this.preview) {
|
|
73814
73912
|
if (this.onPreview) {
|
|
@@ -73836,7 +73934,7 @@ var mainvue_type_script_lang_js_props;
|
|
|
73836
73934
|
this.title = file.originalName;
|
|
73837
73935
|
this.showImg = true;
|
|
73838
73936
|
this.$nextTick(function () {
|
|
73839
|
-
|
|
73937
|
+
_this5.loadImage();
|
|
73840
73938
|
});
|
|
73841
73939
|
} else if (suffix.includes('mp4')) {
|
|
73842
73940
|
this.source = {
|
|
@@ -73861,24 +73959,24 @@ var mainvue_type_script_lang_js_props;
|
|
|
73861
73959
|
this.showImg = false;
|
|
73862
73960
|
},
|
|
73863
73961
|
loadImage: function loadImage() {
|
|
73864
|
-
var
|
|
73962
|
+
var _this6 = this;
|
|
73865
73963
|
|
|
73866
73964
|
this.$refs.showImg && (this.$refs.showImg.onload = function () {
|
|
73867
|
-
|
|
73868
|
-
var w =
|
|
73869
|
-
var h =
|
|
73870
|
-
var pw =
|
|
73871
|
-
var ph =
|
|
73965
|
+
_this6.imgChange = false;
|
|
73966
|
+
var w = _this6.$refs.showImg.naturalWidth;
|
|
73967
|
+
var h = _this6.$refs.showImg.naturalHeight;
|
|
73968
|
+
var pw = _this6.$refs.showImg.parentNode.offsetWidth;
|
|
73969
|
+
var ph = _this6.$refs.showImg.parentNode.offsetHeight;
|
|
73872
73970
|
if (w / h > pw / ph) {
|
|
73873
|
-
|
|
73971
|
+
_this6.styles = { 'max-width': '100%' };
|
|
73874
73972
|
} else {
|
|
73875
|
-
|
|
73973
|
+
_this6.styles = { 'max-height': '100%' };
|
|
73876
73974
|
}
|
|
73877
73975
|
if (w < pw) {
|
|
73878
|
-
|
|
73976
|
+
_this6.styles.width = w + 'px';
|
|
73879
73977
|
}
|
|
73880
73978
|
if (h < ph) {
|
|
73881
|
-
|
|
73979
|
+
_this6.styles.height = h + 'px';
|
|
73882
73980
|
}
|
|
73883
73981
|
});
|
|
73884
73982
|
},
|
|
@@ -73940,7 +74038,7 @@ var mainvue_type_script_lang_js_props;
|
|
|
73940
74038
|
return flag;
|
|
73941
74039
|
},
|
|
73942
74040
|
handleBeforeRemove: function handleBeforeRemove(file, fileList) {
|
|
73943
|
-
var
|
|
74041
|
+
var _this7 = this;
|
|
73944
74042
|
|
|
73945
74043
|
if (file && file.status === 'success') {
|
|
73946
74044
|
return this.$confirm('确定删除文件吗?', '提示', {
|
|
@@ -73948,15 +74046,15 @@ var mainvue_type_script_lang_js_props;
|
|
|
73948
74046
|
cancelButtonText: '取消',
|
|
73949
74047
|
type: 'warning'
|
|
73950
74048
|
}).then(function () {
|
|
73951
|
-
if (
|
|
73952
|
-
return
|
|
74049
|
+
if (_this7.beforeRemove) {
|
|
74050
|
+
return _this7.beforeRemove(file, fileList);
|
|
73953
74051
|
} else if (file.status === 'success') {
|
|
73954
74052
|
var userName = file.userName || file.response && file.response.userName || utils_util["a" /* default */].getStorage('userName');
|
|
73955
74053
|
// eslint-disable-next-line no-undef
|
|
73956
74054
|
return new Promise(function (resolve, reject) {
|
|
73957
|
-
var url = typeof
|
|
74055
|
+
var url = typeof _this7.deleted === 'string' ? _this7.deleted : _this7.remove === 'string' ? _this7.remove : api["g" /* delAdjunct */];
|
|
73958
74056
|
utils_util["a" /* default */].ajax({
|
|
73959
|
-
method:
|
|
74057
|
+
method: _this7.method,
|
|
73960
74058
|
url: url,
|
|
73961
74059
|
data: {
|
|
73962
74060
|
userName: userName,
|
|
@@ -73968,18 +74066,18 @@ var mainvue_type_script_lang_js_props;
|
|
|
73968
74066
|
}
|
|
73969
74067
|
}).then(function (res) {
|
|
73970
74068
|
if (res.rCode === 0) {
|
|
73971
|
-
var se =
|
|
73972
|
-
|
|
73973
|
-
|
|
74069
|
+
var se = _this7.filesTotalSize - Math.round(file.size / 1024 * 10) / 10;
|
|
74070
|
+
_this7.filesTotalSize = se;
|
|
74071
|
+
_this7.$message.success(res.msg);
|
|
73974
74072
|
resolve();
|
|
73975
74073
|
} else {
|
|
73976
74074
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
73977
|
-
|
|
74075
|
+
_this7.$message.error(msg);
|
|
73978
74076
|
reject();
|
|
73979
74077
|
}
|
|
73980
74078
|
}).catch(function (err) {
|
|
73981
74079
|
if (err.message && err.message !== 'canceled') {
|
|
73982
|
-
|
|
74080
|
+
_this7.$message.error(err.message);
|
|
73983
74081
|
}
|
|
73984
74082
|
});
|
|
73985
74083
|
});
|
|
@@ -74017,7 +74115,7 @@ var mainvue_type_script_lang_js_props;
|
|
|
74017
74115
|
a.dispatchEvent(event);
|
|
74018
74116
|
},
|
|
74019
74117
|
handleSort: function handleSort(files) {
|
|
74020
|
-
var
|
|
74118
|
+
var _this8 = this;
|
|
74021
74119
|
|
|
74022
74120
|
if (this.isSort) {
|
|
74023
74121
|
if (this.onSort) {
|
|
@@ -74040,14 +74138,14 @@ var mainvue_type_script_lang_js_props;
|
|
|
74040
74138
|
}
|
|
74041
74139
|
}).then(function (res) {
|
|
74042
74140
|
if (res.rCode === 0) {
|
|
74043
|
-
|
|
74141
|
+
_this8.$message.success(res.msg);
|
|
74044
74142
|
} else {
|
|
74045
74143
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
74046
|
-
|
|
74144
|
+
_this8.$message.error(msg);
|
|
74047
74145
|
}
|
|
74048
74146
|
}).catch(function (err) {
|
|
74049
74147
|
if (err.message && err.message !== 'canceled') {
|
|
74050
|
-
|
|
74148
|
+
_this8.$message.error(err.message);
|
|
74051
74149
|
}
|
|
74052
74150
|
});
|
|
74053
74151
|
}
|
|
@@ -74130,8 +74228,8 @@ var mainvue_type_script_lang_js_props;
|
|
|
74130
74228
|
|
|
74131
74229
|
var upload_src_main_component = normalizeComponent(
|
|
74132
74230
|
packages_upload_src_mainvue_type_script_lang_js_,
|
|
74133
|
-
|
|
74134
|
-
|
|
74231
|
+
mainvue_type_template_id_7440cc04_render,
|
|
74232
|
+
mainvue_type_template_id_7440cc04_staticRenderFns,
|
|
74135
74233
|
false,
|
|
74136
74234
|
null,
|
|
74137
74235
|
null,
|
|
@@ -74608,7 +74706,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
74608
74706
|
}
|
|
74609
74707
|
|
|
74610
74708
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
74611
|
-
version: '0.5.
|
|
74709
|
+
version: '0.5.70',
|
|
74612
74710
|
install: install,
|
|
74613
74711
|
Button: packages_button,
|
|
74614
74712
|
ButtonGroup: button_group,
|