1 | (function webpackUniversalModuleDefinition(root, factory) {
|
2 | if(typeof exports === 'object' && typeof module === 'object')
|
3 | module.exports = factory();
|
4 | else if(typeof define === 'function' && define.amd)
|
5 | define([], factory);
|
6 | else if(typeof exports === 'object')
|
7 | exports["index"] = factory();
|
8 | else
|
9 | root["index"] = factory();
|
10 | })((typeof self !== 'undefined' ? self : this), function() {
|
11 | return (function(modules) {
|
12 |
|
13 | var installedModules = {};
|
14 |
|
15 |
|
16 | function __webpack_require__(moduleId) {
|
17 |
|
18 |
|
19 | if(installedModules[moduleId]) {
|
20 | return installedModules[moduleId].exports;
|
21 | }
|
22 |
|
23 | var module = installedModules[moduleId] = {
|
24 | i: moduleId,
|
25 | l: false,
|
26 | exports: {}
|
27 | };
|
28 |
|
29 |
|
30 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
31 |
|
32 |
|
33 | module.l = true;
|
34 |
|
35 |
|
36 | return module.exports;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 | __webpack_require__.m = modules;
|
42 |
|
43 |
|
44 | __webpack_require__.c = installedModules;
|
45 |
|
46 |
|
47 | __webpack_require__.d = function(exports, name, getter) {
|
48 | if(!__webpack_require__.o(exports, name)) {
|
49 | Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
50 | }
|
51 | };
|
52 |
|
53 |
|
54 | __webpack_require__.r = function(exports) {
|
55 | if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
56 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
57 | }
|
58 | Object.defineProperty(exports, '__esModule', { value: true });
|
59 | };
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | __webpack_require__.t = function(value, mode) {
|
67 | if(mode & 1) value = __webpack_require__(value);
|
68 | if(mode & 8) return value;
|
69 | if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
70 | var ns = Object.create(null);
|
71 | __webpack_require__.r(ns);
|
72 | Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
73 | if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
74 | return ns;
|
75 | };
|
76 |
|
77 |
|
78 | __webpack_require__.n = function(module) {
|
79 | var getter = module && module.__esModule ?
|
80 | function getDefault() { return module['default']; } :
|
81 | function getModuleExports() { return module; };
|
82 | __webpack_require__.d(getter, 'a', getter);
|
83 | return getter;
|
84 | };
|
85 |
|
86 |
|
87 | __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
88 |
|
89 |
|
90 | __webpack_require__.p = "";
|
91 |
|
92 |
|
93 |
|
94 | return __webpack_require__(__webpack_require__.s = "89c3");
|
95 | })
|
96 |
|
97 | ({
|
98 |
|
99 | "00af":
|
100 | (function(module, __webpack_exports__, __webpack_require__) {
|
101 |
|
102 | "use strict";
|
103 | var _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("566f");
|
104 |
|
105 | __webpack_exports__["a"] = ({
|
106 | |
107 |
|
108 |
|
109 |
|
110 | loadDesignList: function loadDesignList(params) {
|
111 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/queryDesigner/loadDesignList", {
|
112 | params: params
|
113 | });
|
114 | },
|
115 |
|
116 | |
117 |
|
118 |
|
119 | loadDesignMine: function loadDesignMine(params) {
|
120 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/queryDesigner/loadDesignMine");
|
121 | },
|
122 |
|
123 | |
124 |
|
125 |
|
126 | loadAllTable: function loadAllTable() {
|
127 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/queryDesigner/loadAllTable");
|
128 | },
|
129 |
|
130 | |
131 |
|
132 |
|
133 |
|
134 | loadTableInfo: function loadTableInfo(tableName) {
|
135 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/queryDesigner/loadTableInfo", {
|
136 | params: {
|
137 | tableName: tableName
|
138 | }
|
139 | });
|
140 | },
|
141 |
|
142 | |
143 |
|
144 |
|
145 |
|
146 | saveDesign: function saveDesign(data) {
|
147 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/queryDesigner/saveDesign", data);
|
148 | },
|
149 |
|
150 | |
151 |
|
152 |
|
153 |
|
154 | debugDesign: function debugDesign(data) {
|
155 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/queryDesigner/debugDesign", data);
|
156 | },
|
157 |
|
158 | |
159 |
|
160 |
|
161 |
|
162 | deleteDesign: function deleteDesign(uuid) {
|
163 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].delete("/queryDesigner/deleteDesign", {
|
164 | params: {
|
165 | uuid: uuid
|
166 | }
|
167 | });
|
168 | },
|
169 |
|
170 | |
171 |
|
172 |
|
173 |
|
174 | loadDesign: function loadDesign(uuid) {
|
175 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/queryDesigner/loadDesign", {
|
176 | params: {
|
177 | uuid: uuid
|
178 | }
|
179 | });
|
180 | }
|
181 | });
|
182 |
|
183 | }),
|
184 |
|
185 | "00dd":
|
186 | (function(module, exports) {
|
187 |
|
188 | module.exports = require("core-js/modules/es6.regexp.replace");
|
189 |
|
190 | }),
|
191 |
|
192 | "065b":
|
193 | (function(module, exports, __webpack_require__) {
|
194 |
|
195 |
|
196 |
|
197 | }),
|
198 |
|
199 | "067b":
|
200 | (function(module, exports) {
|
201 |
|
202 | module.exports = require("core-js/modules/es6.object.assign");
|
203 |
|
204 | }),
|
205 |
|
206 | "0736":
|
207 | (function(module, exports) {
|
208 |
|
209 | module.exports = require("core-js/modules/es6.array.find-index");
|
210 |
|
211 | }),
|
212 |
|
213 | "0af1":
|
214 | (function(module, exports) {
|
215 |
|
216 | module.exports = require("element-ui/lib/mixins/emitter");
|
217 |
|
218 | }),
|
219 |
|
220 | "0de2":
|
221 | (function(module, exports) {
|
222 |
|
223 | module.exports = require("element-ui/lib/select");
|
224 |
|
225 | }),
|
226 |
|
227 | "12d2":
|
228 | (function(module, exports) {
|
229 |
|
230 | module.exports = require("core-js/modules/es7.object.get-own-property-descriptors");
|
231 |
|
232 | }),
|
233 |
|
234 | "17a8":
|
235 | (function(module, __webpack_exports__, __webpack_require__) {
|
236 |
|
237 | "use strict";
|
238 | var _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("566f");
|
239 |
|
240 |
|
241 | var NAME_SPACE = "/usrm/usr/org";
|
242 |
|
243 |
|
244 |
|
245 |
|
246 | __webpack_exports__["a"] = ({
|
247 |
|
248 | getChildren: function getChildren(puuid) {
|
249 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("".concat(NAME_SPACE, "/getChildren"), {
|
250 | params: {
|
251 | puuid: puuid
|
252 | }
|
253 | }).then(function (data) {
|
254 | return data || [];
|
255 | });
|
256 | },
|
257 |
|
258 | editNode: function editNode(resm) {
|
259 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("".concat(NAME_SPACE, "/editNode"), resm);
|
260 | },
|
261 |
|
262 | delNode: function delNode(uuid) {
|
263 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].delete("".concat(NAME_SPACE, "/delNode"), {
|
264 | params: {
|
265 | uuid: uuid
|
266 | }
|
267 | });
|
268 | },
|
269 |
|
270 | checkNode: function checkNode(uuid) {
|
271 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].put("".concat(NAME_SPACE, "/checkNode"), {
|
272 | params: {
|
273 | uuid: uuid
|
274 | }
|
275 | });
|
276 | },
|
277 |
|
278 | repairNode: function repairNode(uuid) {
|
279 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].put("".concat(NAME_SPACE, "/repairLRNode"), {
|
280 | params: {
|
281 | uuid: uuid
|
282 | }
|
283 | });
|
284 | }
|
285 | });
|
286 |
|
287 | }),
|
288 |
|
289 | "1a2e":
|
290 | (function(module, exports) {
|
291 |
|
292 | module.exports = require("core-js/modules/es6.regexp.constructor");
|
293 |
|
294 | }),
|
295 |
|
296 | "1dc4":
|
297 | (function(module, __webpack_exports__, __webpack_require__) {
|
298 |
|
299 | "use strict";
|
300 | __webpack_require__.r(__webpack_exports__);
|
301 |
|
302 |
|
303 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}]},[_c('template',{slot:"header"},[_c('span',[_vm._v("参数管理")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-plus","title":"添加"},on:{"click":_vm.handleAdd}})],1)]),_c('el-form',{ref:"queryForm",attrs:{"model":_vm.searchForm}},[_c('el-row',[_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"prop":"paraname","label":"参数名称"}},[_c('el-input',{model:{value:(_vm.searchForm.paraname),callback:function ($$v) {_vm.$set(_vm.searchForm, "paraname", $$v)},expression:"searchForm.paraname"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"prop":"paravalue","label":"参数值"}},[_c('el-input',{model:{value:(_vm.searchForm.paravalue),callback:function ($$v) {_vm.$set(_vm.searchForm, "paravalue", $$v)},expression:"searchForm.paravalue"}})],1)],1)],1)],1)],2),_c('el-card',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"margin-top-2"},[_c('template',{slot:"header"},[_c('span',[_vm._v("参数列表")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search","title":"查询"},on:{"click":_vm.queryData}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-reply-all","title":"重置"},on:{"click":_vm.resetQuery}})],1)]),_c('PageTable',{ref:"dataTable",attrs:{"hideTitle":"","auto-load":true,"data":_vm.data,"highlight-current-row":"","stripe":"","border":""},on:{"load-data":_vm.dataTableLoad}},[_c('el-table-column',{attrs:{"prop":"paraname","label":"参数名称"}}),_c('el-table-column',{attrs:{"prop":"paravalue","label":"参数值"}}),_c('el-table-column',{attrs:{"prop":"paradesc","label":"参数描述"}}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"70"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-edit","title":"编辑"},on:{"click":function($event){return _vm.handleEdit(scope.row)}}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-trash","title":"删除"},on:{"click":function($event){return _vm.handleDelete(scope.row)}}})]}}])})],1)],2),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","width":"600px","title":"客户端数据编辑","visible":_vm.editor.visible,"close-on-click-modal":false},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "visible", $event)}}},[_c('div',{staticClass:"dialog-button"},[_c('el-button',{attrs:{"type":"primary","plain":"","loading":_vm.editor.saving,"icon":"el-icon-fa-save","title":"提交"},on:{"click":_vm.handleSubmit}})],1),(_vm.editor.visible)?_c('ParaEditor',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.editor.saving),expression:"editor.saving"}],ref:"editor",attrs:{"error":_vm.editor.error,"uuid":_vm.editor.uuid}}):_vm._e()],1)],1)}
|
304 | var staticRenderFns = []
|
305 |
|
306 |
|
307 |
|
308 |
|
309 |
|
310 | var Ajax = __webpack_require__("566f");
|
311 |
|
312 |
|
313 |
|
314 | var ParaAPI = ({
|
315 |
|
316 | queryPara: function queryPara(params) {
|
317 | return Ajax["a" ].get("/sys/para/queryPara", {
|
318 | params: params
|
319 | });
|
320 | },
|
321 |
|
322 | savePara: function savePara(data) {
|
323 | return Ajax["a" ].post("/sys/para/savePara", data);
|
324 | },
|
325 |
|
326 | getPara: function getPara(uuid) {
|
327 | return Ajax["a" ].get("/sys/para/getPara", {
|
328 | params: {
|
329 | uuid: uuid
|
330 | }
|
331 | });
|
332 | },
|
333 |
|
334 | delPara: function delPara(uuid) {
|
335 | return Ajax["a" ].delete("/sys/para/delPara", {
|
336 | params: {
|
337 | uuid: uuid
|
338 | }
|
339 | });
|
340 | }
|
341 | });
|
342 |
|
343 | var ParaEditorvue_type_template_id_77631cf7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-form',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:"form",attrs:{"label-position":"top","model":_vm.data,"rules":_vm.rules}},[_c('el-form-item',{attrs:{"label":"参数名称","prop":"paraname","error":_vm.error.paraname}},[_c('el-input',{model:{value:(_vm.data.paraname),callback:function ($$v) {_vm.$set(_vm.data, "paraname", $$v)},expression:"data.paraname"}})],1),_c('el-form-item',{attrs:{"label":"参数值","prop":"paravalue","error":_vm.error.paravalue}},[_c('el-input',{model:{value:(_vm.data.paravalue),callback:function ($$v) {_vm.$set(_vm.data, "paravalue", $$v)},expression:"data.paravalue"}})],1),_c('el-form-item',{attrs:{"label":"参数描述","prop":"paradesc","error":_vm.error.paradesc}},[_c('el-input',{attrs:{"type":"textarea"},model:{value:(_vm.data.paradesc),callback:function ($$v) {_vm.$set(_vm.data, "paradesc", $$v)},expression:"data.paradesc"}})],1)],1),(_vm.data.uuid)?_c('HandleHistory',{staticClass:"margin-top-1 margin-bottom-1",attrs:{"uuid":_vm.data.uuid,"cr-user-uuid":_vm.data.crUserUuid,"op-user-uuid":_vm.data.opUserUuid,"cr-time":_vm.data.crTime,"op-time":_vm.data.opTime,"mode":"plan"}}):_vm._e()],1)}
|
344 | var ParaEditorvue_type_template_id_77631cf7_staticRenderFns = []
|
345 |
|
346 |
|
347 |
|
348 |
|
349 |
|
350 | var es6_object_assign_ = __webpack_require__("067b");
|
351 |
|
352 |
|
353 | var HandleHistory = __webpack_require__("e66d");
|
354 |
|
355 |
|
356 |
|
357 |
|
358 |
|
359 |
|
360 |
|
361 |
|
362 |
|
363 |
|
364 |
|
365 |
|
366 |
|
367 |
|
368 |
|
369 |
|
370 |
|
371 |
|
372 |
|
373 |
|
374 |
|
375 | var dafaultData = {
|
376 | paraname: "",
|
377 | paravalue: "",
|
378 | paradesc: ""
|
379 | };
|
380 | var ParaEditorvue_type_script_lang_js_ = ({
|
381 | components: {
|
382 | HandleHistory: HandleHistory["a" ]
|
383 | },
|
384 | props: {
|
385 |
|
386 | uuid: String,
|
387 |
|
388 | error: Object
|
389 | },
|
390 | data: function data() {
|
391 | return {
|
392 | loading: false,
|
393 | data: Object.assign({}, dafaultData),
|
394 | rules: {
|
395 | paraname: [{
|
396 | required: true,
|
397 | message: "请输入参数名称!"
|
398 | }],
|
399 | paravalue: [{
|
400 | required: true,
|
401 | message: "请输入参数值!"
|
402 | }]
|
403 | }
|
404 | };
|
405 | },
|
406 | watch: {
|
407 | uuid: function uuid(val) {
|
408 | this.loadData();
|
409 | }
|
410 | },
|
411 | mounted: function mounted() {
|
412 |
|
413 | this.loadData();
|
414 | },
|
415 | methods: {
|
416 |
|
417 |
|
418 | validate: function validate() {
|
419 | var _this = this;
|
420 |
|
421 | return this.$refs.form.validate().then(function () {
|
422 | return _this.data;
|
423 | });
|
424 | },
|
425 |
|
426 | loadData: function loadData() {
|
427 | var _this2 = this;
|
428 |
|
429 | if (!this.uuid) {
|
430 | this.$refs.form.resetFields();
|
431 | } else {
|
432 | this.loading = true;
|
433 | ParaAPI.getPara(this.uuid).then(function (respData) {
|
434 | _this2.data = respData;
|
435 | _this2.loading = false;
|
436 | });
|
437 | }
|
438 | }
|
439 | }
|
440 | });
|
441 |
|
442 | var sysm_ParaEditorvue_type_script_lang_js_ = (ParaEditorvue_type_script_lang_js_);
|
443 |
|
444 | var componentNormalizer = __webpack_require__("6691");
|
445 |
|
446 |
|
447 |
|
448 |
|
449 |
|
450 |
|
451 |
|
452 |
|
453 |
|
454 | var component = Object(componentNormalizer["a" ])(
|
455 | sysm_ParaEditorvue_type_script_lang_js_,
|
456 | ParaEditorvue_type_template_id_77631cf7_render,
|
457 | ParaEditorvue_type_template_id_77631cf7_staticRenderFns,
|
458 | false,
|
459 | null,
|
460 | null,
|
461 | null
|
462 |
|
463 | )
|
464 |
|
465 | var ParaEditor = (component.exports);
|
466 |
|
467 |
|
468 |
|
469 |
|
470 |
|
471 |
|
472 |
|
473 |
|
474 |
|
475 |
|
476 |
|
477 |
|
478 |
|
479 |
|
480 |
|
481 |
|
482 |
|
483 |
|
484 |
|
485 |
|
486 |
|
487 |
|
488 |
|
489 |
|
490 |
|
491 |
|
492 |
|
493 |
|
494 |
|
495 |
|
496 |
|
497 |
|
498 |
|
499 |
|
500 |
|
501 |
|
502 |
|
503 |
|
504 |
|
505 |
|
506 |
|
507 |
|
508 |
|
509 |
|
510 |
|
511 |
|
512 |
|
513 |
|
514 |
|
515 |
|
516 |
|
517 |
|
518 |
|
519 |
|
520 |
|
521 |
|
522 |
|
523 | var ParaMgrvue_type_script_lang_js_ = ({
|
524 | name: "ParaMgr",
|
525 | components: {
|
526 | ParaEditor: ParaEditor
|
527 | },
|
528 | data: function data() {
|
529 | return {
|
530 | loading: false,
|
531 |
|
532 | editor: {
|
533 | saving: false,
|
534 | visible: false,
|
535 | error: {},
|
536 | uuid: ""
|
537 | },
|
538 |
|
539 | searchForm: {
|
540 | paraname: "",
|
541 | paravalue: ""
|
542 | },
|
543 | data: []
|
544 | };
|
545 | },
|
546 | methods: {
|
547 |
|
548 |
|
549 | dataTableLoad: function dataTableLoad(params, resolve) {
|
550 | var _this = this;
|
551 |
|
552 | ParaAPI.queryPara(params).then(resolve)
|
553 | .then(function (respData) {
|
554 | return _this.data = respData.datarows;
|
555 | });
|
556 | },
|
557 |
|
558 | queryData: function queryData() {
|
559 | this.$refs.dataTable.load(this.searchForm);
|
560 | },
|
561 |
|
562 | resetQuery: function resetQuery() {
|
563 | this.$refs.queryForm.resetFields();
|
564 | },
|
565 |
|
566 | deleteParam: function deleteParam(data) {
|
567 | var _this2 = this;
|
568 |
|
569 | this.loading = true;
|
570 | ParaAPI.delPara(data.uuid).then(function () {
|
571 | _this2.queryData();
|
572 |
|
573 | _this2.loading = false;
|
574 | }).catch(function () {
|
575 | _this2.loading = false;
|
576 | });
|
577 | },
|
578 |
|
579 | submitParam: function submitParam(data) {
|
580 | var _this3 = this;
|
581 |
|
582 | this.editor.saving = true;
|
583 | this.editor.error = {};
|
584 | ParaAPI.savePara(data).then(function () {
|
585 | _this3.queryData();
|
586 |
|
587 | _this3.editor.saving = false;
|
588 | _this3.editor.visible = false;
|
589 | }).catch(function (error) {
|
590 | _this3.editor.saving = false;
|
591 | _this3.editor.error = error.validError;
|
592 | });
|
593 | },
|
594 |
|
595 |
|
596 | handleEdit: function handleEdit(data) {
|
597 | this.editor.visible = true;
|
598 | this.editor.uuid = data.uuid;
|
599 | },
|
600 |
|
601 | handleSubmit: function handleSubmit() {
|
602 | this.$refs.editor.validate().then(this.submitParam);
|
603 | },
|
604 |
|
605 | handleDelete: function handleDelete(data) {
|
606 | this.confirm(data).then(this.deleteParam);
|
607 | },
|
608 |
|
609 | handleAdd: function handleAdd() {
|
610 | this.editor.visible = true;
|
611 | this.editor.uuid = "";
|
612 | }
|
613 | }
|
614 | });
|
615 |
|
616 | var sysm_ParaMgrvue_type_script_lang_js_ = (ParaMgrvue_type_script_lang_js_);
|
617 |
|
618 |
|
619 |
|
620 |
|
621 |
|
622 |
|
623 |
|
624 |
|
625 | var ParaMgr_component = Object(componentNormalizer["a" ])(
|
626 | sysm_ParaMgrvue_type_script_lang_js_,
|
627 | render,
|
628 | staticRenderFns,
|
629 | false,
|
630 | null,
|
631 | null,
|
632 | null
|
633 |
|
634 | )
|
635 |
|
636 | var ParaMgr = __webpack_exports__["default"] = (ParaMgr_component.exports);
|
637 |
|
638 | }),
|
639 |
|
640 | "2579":
|
641 | (function(module, exports) {
|
642 |
|
643 | module.exports = require("core-js/modules/es6.string.iterator");
|
644 |
|
645 | }),
|
646 |
|
647 | "25fc":
|
648 | (function(module, exports) {
|
649 |
|
650 | module.exports = require("core-js/modules/es6.function.name");
|
651 |
|
652 | }),
|
653 |
|
654 | "2691":
|
655 | (function(module, exports) {
|
656 |
|
657 | module.exports = require("element-ui/lib/theme-chalk/index.css");
|
658 |
|
659 | }),
|
660 |
|
661 | "28b0":
|
662 | (function(module, __webpack_exports__, __webpack_require__) {
|
663 |
|
664 | "use strict";
|
665 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_CodeMgr_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("32ae");
|
666 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_CodeMgr_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_CodeMgr_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
667 |
|
668 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_CodeMgr_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
669 |
|
670 | }),
|
671 |
|
672 | "2c92":
|
673 | (function(module, exports) {
|
674 |
|
675 | module.exports = require("core-js/modules/es6.array.iterator");
|
676 |
|
677 | }),
|
678 |
|
679 | "2fef":
|
680 | (function(module, exports) {
|
681 |
|
682 | module.exports = require("core-js/modules/es6.regexp.match");
|
683 |
|
684 | }),
|
685 |
|
686 | "32ae":
|
687 | (function(module, exports, __webpack_require__) {
|
688 |
|
689 |
|
690 |
|
691 | }),
|
692 |
|
693 | "3393":
|
694 | (function(module, __webpack_exports__, __webpack_require__) {
|
695 |
|
696 | "use strict";
|
697 |
|
698 |
|
699 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}]},[_c('el-form',{ref:"queryForm",attrs:{"inline":"","model":_vm.table.params}},[_c('el-form-item',{attrs:{"prop":"keyword"}},[_c('el-input',{attrs:{"placeholder":"搜索..."},model:{value:(_vm.table.params.keyword),callback:function ($$v) {_vm.$set(_vm.table.params, "keyword", $$v)},expression:"table.params.keyword"}})],1),_c('el-button-group',{staticClass:"pull-right",staticStyle:{"margin":"4px"}},[_c('el-button',{attrs:{"icon":"el-icon-fa-refresh"},on:{"click":_vm.resetQuery}}),_c('el-button',{attrs:{"icon":"el-icon-fa-search"},on:{"click":_vm.queryData}}),_c('el-button',{attrs:{"icon":"el-icon-fa-expand"},on:{"click":_vm.expandAll}})],1)],1),_c('div',{staticStyle:{"max-height":"400px","overflow-y":"auto"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.noData),expression:"noData"}],staticStyle:{"text-align":"center","margin-bottom":"10px"}},[_vm._v("没有数据...")]),_c('el-tree',{directives:[{name:"show",rawName:"v-show",value:(!_vm.noData),expression:"!noData"}],ref:"orgTree",attrs:{"lazy":"","load":_vm.loadTree,"node-key":"uuid","expand-on-click-node":false,"highlight-current":"","render-content":_vm.renderContent}})],1)],1)}
|
700 | var staticRenderFns = []
|
701 |
|
702 |
|
703 |
|
704 |
|
705 |
|
706 | var web_dom_iterable_ = __webpack_require__("80a8");
|
707 |
|
708 |
|
709 | var emitter_ = __webpack_require__("0af1");
|
710 | var emitter_default = __webpack_require__.n(emitter_);
|
711 |
|
712 |
|
713 |
|
714 |
|
715 |
|
716 |
|
717 |
|
718 | var BaseSelector = ({
|
719 | mixins: [emitter_default.a],
|
720 | data: function data() {
|
721 | return {};
|
722 | },
|
723 | methods: {
|
724 | |
725 |
|
726 |
|
727 |
|
728 | selectTableRow: function selectTableRow(row) {
|
729 |
|
730 | this.dispatch("EtSelector", "selectTableRow", row);
|
731 | this.$emit("select", row);
|
732 | },
|
733 |
|
734 | |
735 |
|
736 |
|
737 |
|
738 | selectTable: function selectTable(selection) {
|
739 |
|
740 | this.dispatch("EtSelector", "selectTable", [selection]);
|
741 | this.$emit("select", [selection]);
|
742 | }
|
743 | }
|
744 | });
|
745 |
|
746 | var SysAPI = __webpack_require__("5fab");
|
747 |
|
748 |
|
749 |
|
750 |
|
751 |
|
752 |
|
753 |
|
754 |
|
755 |
|
756 |
|
757 |
|
758 |
|
759 |
|
760 |
|
761 |
|
762 |
|
763 |
|
764 |
|
765 |
|
766 |
|
767 |
|
768 |
|
769 |
|
770 | var SelectorTreevue_type_script_lang_js_ = ({
|
771 | extends: BaseSelector,
|
772 | props: {
|
773 |
|
774 | treeKey: {
|
775 | type: String,
|
776 | required: true
|
777 | },
|
778 |
|
779 | searchField: {
|
780 | type: String,
|
781 | required: false
|
782 | },
|
783 |
|
784 | rootLabel: {
|
785 | type: String,
|
786 | default: "请选择数据"
|
787 | }
|
788 | },
|
789 | data: function data() {
|
790 | return {
|
791 | loading: false,
|
792 | noData: false,
|
793 | table: {
|
794 | data: [],
|
795 | params: {
|
796 | keyword: ""
|
797 | }
|
798 | }
|
799 | };
|
800 | },
|
801 | mounted: function mounted() {},
|
802 | methods: {
|
803 |
|
804 | queryData: function queryData() {
|
805 | this.$refs.orgTree.root.childNodes.forEach(function (element) {
|
806 | element.loaded = false;
|
807 | element.expand();
|
808 | }, this);
|
809 | },
|
810 |
|
811 | resetQuery: function resetQuery() {
|
812 | this.noData = false;
|
813 | this.$refs.queryForm.resetFields();
|
814 | this.queryData();
|
815 | },
|
816 |
|
817 | loadTree: function loadTree(node, resolve) {
|
818 | var _this = this;
|
819 |
|
820 | var pid;
|
821 |
|
822 | if (node.data) {
|
823 | pid = node.data.id;
|
824 | }
|
825 |
|
826 | var keyWord = this.table.params.keyword;
|
827 | SysAPI["a" ].getTree(this.treeKey, pid, keyWord, this.searchField, true).then(function (data) {
|
828 | resolve(data);
|
829 |
|
830 | if (keyWord && data.length === 0) {
|
831 | _this.noData = true;
|
832 | } else {
|
833 | node.childNodes.forEach(function (element) {
|
834 | var isLeaf = _this.table.params.keyword ? true : element.data.isLeaf;
|
835 | element.isLeaf = isLeaf;
|
836 | element.loaded = isLeaf;
|
837 | }, _this);
|
838 | _this.noData = false;
|
839 | }
|
840 | }).catch(resolve);
|
841 | },
|
842 |
|
843 | expandAll: function expandAll() {
|
844 | var _this2 = this;
|
845 |
|
846 | var expandFn = function expandFn(element, expand) {
|
847 | element.childNodes.forEach(function (element) {
|
848 | element.expand(function () {
|
849 | expandFn(element);
|
850 | });
|
851 | }, _this2);
|
852 | };
|
853 |
|
854 | expandFn(this.$refs.orgTree.root);
|
855 | },
|
856 |
|
857 | renderContent: function renderContent(h, _ref) {
|
858 | var _this3 = this;
|
859 |
|
860 | var node = _ref.node,
|
861 | data = _ref.data,
|
862 | store = _ref.store;
|
863 | return h("span", [data.pid !== "none" ? h("span", [h("a", {
|
864 | "on": {
|
865 | "click": function click() {
|
866 | _this3.selectTableRow(data);
|
867 | }
|
868 | },
|
869 | "class": "href"
|
870 | }, [data.label])]) : h("span", [data.label])]);
|
871 | }
|
872 | }
|
873 | });
|
874 |
|
875 | var common_SelectorTreevue_type_script_lang_js_ = (SelectorTreevue_type_script_lang_js_);
|
876 |
|
877 | var componentNormalizer = __webpack_require__("6691");
|
878 |
|
879 |
|
880 |
|
881 |
|
882 |
|
883 |
|
884 |
|
885 |
|
886 |
|
887 | var component = Object(componentNormalizer["a" ])(
|
888 | common_SelectorTreevue_type_script_lang_js_,
|
889 | render,
|
890 | staticRenderFns,
|
891 | false,
|
892 | null,
|
893 | null,
|
894 | null
|
895 |
|
896 | )
|
897 |
|
898 | var SelectorTree = __webpack_exports__["a"] = (component.exports);
|
899 |
|
900 | }),
|
901 |
|
902 | "344d":
|
903 | (function(module, exports, __webpack_require__) {
|
904 |
|
905 |
|
906 |
|
907 | }),
|
908 |
|
909 | "34e4":
|
910 | (function(module, __webpack_exports__, __webpack_require__) {
|
911 |
|
912 | "use strict";
|
913 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Crontab_Main_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d903");
|
914 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Crontab_Main_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Crontab_Main_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
915 |
|
916 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Crontab_Main_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
917 |
|
918 | }),
|
919 |
|
920 | "35ae":
|
921 | (function(module, exports) {
|
922 |
|
923 | module.exports = require("md5");
|
924 |
|
925 | }),
|
926 |
|
927 | "3b67":
|
928 | (function(module, __webpack_exports__, __webpack_require__) {
|
929 |
|
930 | "use strict";
|
931 | __webpack_require__.r(__webpack_exports__);
|
932 |
|
933 |
|
934 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"card-height-full flex-h"},[(_vm.rightBlock)?_c('el-card',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.doLoading),expression:"doLoading"}],staticClass:"flex-1 full"},[_c('template',{slot:"header"},[_c('span',[_vm._v("系统角色管理")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-expand"},on:{"click":_vm.expandAll}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-refresh"},on:{"click":_vm.refresh}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-copy","title":"角色复制"},on:{"click":_vm.doAdd}}),_c('el-button',{attrs:{"type":"primary","icon":!_vm.leftBlock?'el-icon-caret-left':'el-icon-caret-right'},on:{"click":function($event){_vm.leftBlock=!_vm.leftBlock}}})],1)]),(_vm.showRoleTree)?_c('el-tree',{ref:"roleTree",attrs:{"default-expand-all":_vm.expandedAll,"lazy":"","current-node-key":_vm.current.roleUuid,"load":_vm.loadTree,"node-key":"uuid","expand-on-click-node":false,"highlight-current":""},on:{"current-change":_vm.currentChange},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
935 | var node = ref.node;
|
936 | var data = ref.data;
|
937 | return _c('span',{staticClass:"custom-tree-node"},[(data.orgName)?_c('span',[_c('i',{staticClass:"el-icon-fa el-icon-fa-sitemap margin-right-2 "}),_c('span',[_vm._v(_vm._s(data.orgName))])]):_vm._e(),(data.roleName&&data.parRoleUuid==='none'&&data.roleType==='1')?_c('span',[_c('i',{staticClass:"el-icon-fa el-icon-fa-user-o margin-right-2 "}),_c('span',[_vm._v(_vm._s(data.roleName))])]):_vm._e(),(data.roleName&&data.parRoleUuid==='none'&&data.roleType==='2')?_c('span',[_c('i',{staticClass:"el-icon-fa el-icon-fa-folder-open margin-right-2 "}),_c('span',[_vm._v(_vm._s(data.roleName))])]):_vm._e(),(data.roleName&&data.parRoleUuid!=='none')?_c('span',[_c('i',{staticClass:"el-icon-fa el-icon-fa-user-o margin-right-2 "}),_c('span',[_vm._v(_vm._s(data.roleName))])]):_vm._e(),_c('el-button-group',[_c('el-button',{attrs:{"icon":"el-icon-fa-refresh"},on:{"click":function($event){return _vm.refreshNode(node)}}}),_c('el-button',{attrs:{"disabled":!!!data.orgName||_vm.$store.state.base.sysUser.graUser==='0',"icon":"el-icon-fa-plus"},on:{"click":function($event){return _vm.addNode(node)}}}),_c('el-button',{attrs:{"icon":"el-icon-fa-minus","disabled":!!data.orgName||_vm.$store.state.base.sysUser.graUser==='0'},on:{"click":function($event){return _vm.removeNode(node)}}})],1)],1)}}],null,false,1325818454)}):_vm._e()],2):_vm._e(),(_vm.leftBlock)?_c('div',{staticClass:"flex-2 flex-h margin-left-2"},[_c('el-card',{staticClass:"flex-1 full"},[_c('template',{slot:"header"},[_c('span',[_vm._v("角色信息编辑")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{directives:[{name:"show",rawName:"v-show",value:(_vm.current.roleUuid),expression:"current.roleUuid"}],attrs:{"disabled":_vm.$store.state.base.sysUser.graUser==="0","type":"primary","icon":"el-icon-fa-save","title":"保存"},on:{"click":_vm.submit}}),_c('el-button',{attrs:{"type":"primary","icon":_vm.rightBlock?'el-icon-caret-left':'el-icon-caret-right'},on:{"click":function($event){_vm.rightBlock=!_vm.rightBlock}}})],1)]),_c('RoleEditor',{directives:[{name:"show",rawName:"v-show",value:(_vm.current.roleUuid),expression:"current.roleUuid"}],ref:"roleEditor",staticClass:"full-height",attrs:{"uuid":_vm.current.roleUuid,"org-uuid":_vm.current.orgUuid},on:{"onsave":_vm.onsave}})],2),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","width":"800px","visible":_vm.editor.show,"title":"角色复制"},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "show", $event)}}},[_c('div',{staticClass:"dialog-button"},[_c('el-button-group',[_c('el-button',{attrs:{"type":"primary","plain":"","icon":"el-icon-fa-save","title":"复制"},on:{"click":function($event){return _vm.doSubmit()}}})],1)],1),(_vm.editor.show)?_c('CopyEditor',{ref:"userEditor",attrs:{"uuid":_vm.editor.uuid}}):_vm._e()],1)],1):_vm._e()],1)}
|
938 | var staticRenderFns = []
|
939 |
|
940 |
|
941 |
|
942 |
|
943 |
|
944 | var web_dom_iterable_ = __webpack_require__("80a8");
|
945 |
|
946 |
|
947 | var es6_object_assign_ = __webpack_require__("067b");
|
948 |
|
949 |
|
950 | var RoleAPI = __webpack_require__("9026");
|
951 |
|
952 |
|
953 | var RoleEditorvue_type_template_id_29fa0e74_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-tabs',{attrs:{"type":"border-card"}},[_c('el-tab-pane',{attrs:{"label":"角色编辑"}},[_c('el-form',{ref:"form",staticClass:"etong",attrs:{"model":_vm.data,"label-position":"top","rules":_vm.rules}},[_c('div',{staticClass:"flex-h "},[_c('el-form-item',{staticClass:"flex-1",attrs:{"label":"角色名称","prop":"roleName","error":_vm.error.roleName}},[_c('el-input',{model:{value:(_vm.data.roleName),callback:function ($$v) {_vm.$set(_vm.data, "roleName", $$v)},expression:"data.roleName"}})],1),_c('el-form-item',{staticClass:"flex-1",attrs:{"label":"角色类型","prop":"roleType","error":_vm.error.roleType}},[_c('el-select',{attrs:{"placeholder":"请选择类型"},model:{value:(_vm.data.roleType),callback:function ($$v) {_vm.$set(_vm.data, "roleType", $$v)},expression:"data.roleType"}},_vm._l((_vm.roleTypes),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.label,"value":item.value}})}),1)],1),_c('el-form-item',{staticClass:"flex-1 ",attrs:{"label":"数据权限","prop":"dataAuth","error":_vm.error.dataAuth}},[_c('el-select',{attrs:{"placeholder":"请选择"},model:{value:(_vm.data.dataAuth),callback:function ($$v) {_vm.$set(_vm.data, "dataAuth", $$v)},expression:"data.dataAuth"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.label,"value":item.value}})}),1)],1)],1),_c('el-form-item',{attrs:{"label":"角色描述","prop":"roleDesc","error":_vm.error.roleDesc}},[_c('el-input',{attrs:{"type":"textarea"},model:{value:(_vm.data.roleDesc),callback:function ($$v) {_vm.$set(_vm.data, "roleDesc", $$v)},expression:"data.roleDesc"}})],1)],1),_c('HandleHistory',{attrs:{"uuid":_vm.data.uuid,"cr-user-uuid":_vm.data.crUserUuid,"op-user-uuid":_vm.data.opUserUuid,"cr-time":_vm.data.crTime,"op-time":_vm.data.opTime,"mode":"plan"}})],1),_c('el-tab-pane',{attrs:{"label":"分配用户"}},[_c('el-form',{ref:"queryform",attrs:{"inline":true,"model":_vm.queryform}},[_c('el-form-item',{attrs:{"label":"登录账号","prop":"userid"}},[_c('el-input',{attrs:{"placeholder":"登录账号"},model:{value:(_vm.queryform.userid),callback:function ($$v) {_vm.$set(_vm.queryform, "userid", $$v)},expression:"queryform.userid"}})],1),_c('el-form-item',{attrs:{"label":"用户名称","prop":"username"}},[_c('el-input',{attrs:{"placeholder":"用户名称"},model:{value:(_vm.queryform.username),callback:function ($$v) {_vm.$set(_vm.queryform, "username", $$v)},expression:"queryform.username"}})],1)],1),_c('PageTable',{ref:"multipleTable",attrs:{"row-key":"uuid","border":"","auto-load":false,"data":_vm.table.data},on:{"load-data":_vm.dataTableLoad,"selection-change":_vm.handleSelectionChange}},[_c('template',{slot:"buttons"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search","title":"查询"},on:{"click":_vm.queryUserData}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-reply-all","title":"重置"},on:{"click":_vm.resetquery}})],1),_c('el-table-column',{attrs:{"type":"selection","align":"center","width":"50","fixed":"left","reserve-selection":true}}),_c('el-table-column',{attrs:{"prop":"userid","label":"登录账号"}}),_c('el-table-column',{attrs:{"prop":"username","label":"用户名称"}}),_c('el-table-column',{attrs:{"prop":"usercode","label":"用户工号"}}),_c('el-table-column',{attrs:{"prop":"orgname","label":"隶属机构","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"crtime","formatter":_vm.formatterDateTime,"label":"创建时间","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"optime","formatter":_vm.formatterDateTime,"label":"最后修改时间","show-overflow-tooltip":"","width":"100"}})],2)],1),_c('el-tab-pane',{attrs:{"label":"功能分配"}},[_c('el-tree',{ref:"permTree",attrs:{"node-key":"uuid","data":_vm.permTreeData,"props":_vm.permTreeProp,"default-expand-all":true,"highlight-current":"","show-checkbox":""}})],1)],1)],1)}
|
954 | var RoleEditorvue_type_template_id_29fa0e74_staticRenderFns = []
|
955 |
|
956 |
|
957 |
|
958 |
|
959 |
|
960 | var PermAPI = __webpack_require__("6b38");
|
961 |
|
962 |
|
963 | var UserAPI = __webpack_require__("c030");
|
964 |
|
965 |
|
966 | var HandleHistory = __webpack_require__("e66d");
|
967 |
|
968 |
|
969 |
|
970 |
|
971 |
|
972 |
|
973 |
|
974 |
|
975 |
|
976 |
|
977 |
|
978 |
|
979 |
|
980 |
|
981 |
|
982 |
|
983 |
|
984 |
|
985 |
|
986 |
|
987 |
|
988 |
|
989 |
|
990 |
|
991 |
|
992 |
|
993 |
|
994 |
|
995 |
|
996 |
|
997 |
|
998 |
|
999 |
|
1000 |
|
1001 |
|
1002 |
|
1003 |
|
1004 |
|
1005 |
|
1006 |
|
1007 |
|
1008 |
|
1009 |
|
1010 |
|
1011 |
|
1012 |
|
1013 |
|
1014 |
|
1015 |
|
1016 |
|
1017 |
|
1018 |
|
1019 |
|
1020 |
|
1021 |
|
1022 |
|
1023 |
|
1024 |
|
1025 |
|
1026 |
|
1027 |
|
1028 |
|
1029 |
|
1030 |
|
1031 |
|
1032 | var dafaultData = {
|
1033 | uuid: "",
|
1034 | orgUuid: "",
|
1035 | roleName: "",
|
1036 | roleDesc: "",
|
1037 | roleType: "",
|
1038 | parRoleUuid: "",
|
1039 | dataAuth: null
|
1040 | };
|
1041 | var RoleEditorvue_type_script_lang_js_ = ({
|
1042 | components: {
|
1043 | HandleHistory: HandleHistory["a" ]
|
1044 | },
|
1045 | props: {
|
1046 | uuid: {
|
1047 | type: String,
|
1048 | default: null
|
1049 | },
|
1050 | orgUuid: {
|
1051 | type: String,
|
1052 | default: null
|
1053 | }
|
1054 | },
|
1055 | watch: {
|
1056 | uuid: function uuid(_uuid) {
|
1057 | if (_uuid) {
|
1058 | this.loadInfo();
|
1059 | } else {
|
1060 | this.data = Object.assign({}, dafaultData);
|
1061 | }
|
1062 | }
|
1063 | },
|
1064 | data: function data() {
|
1065 | return {
|
1066 | dirty: false,
|
1067 | multipleSelection: [],
|
1068 | data: Object.assign({}, dafaultData),
|
1069 | roleTypes: [{
|
1070 | value: "1",
|
1071 | label: "角色"
|
1072 | }, {
|
1073 | value: "2",
|
1074 | label: "目录"
|
1075 | }],
|
1076 | permTreeData: [],
|
1077 | view: {
|
1078 | loading: false
|
1079 | },
|
1080 | queryform: {
|
1081 | username: "",
|
1082 | userid: "",
|
1083 | uuid: this.uuid
|
1084 | },
|
1085 | table: {
|
1086 | data: []
|
1087 | },
|
1088 | error: {},
|
1089 | rules: {
|
1090 | roleName: [{
|
1091 | required: true,
|
1092 | message: "角色名称不能为空!"
|
1093 | }]
|
1094 | },
|
1095 | permTreeProp: {
|
1096 | label: "permName",
|
1097 | children: "children"
|
1098 | },
|
1099 | options: [{
|
1100 | value: 0,
|
1101 | label: "本人"
|
1102 | }, {
|
1103 | value: 1,
|
1104 | label: "本组织"
|
1105 | }, {
|
1106 | value: 2,
|
1107 | label: "本组织及下属组织"
|
1108 | }, {
|
1109 | value: 3,
|
1110 | label: "所有组织"
|
1111 | }]
|
1112 | };
|
1113 | },
|
1114 | mounted: function mounted() {
|
1115 | var _this = this;
|
1116 |
|
1117 |
|
1118 | PermAPI["a" ].loadPermTree().then(function (data) {
|
1119 | _this.permTreeData = data;
|
1120 | });
|
1121 | },
|
1122 | methods: {
|
1123 | resetquery: function resetquery() {
|
1124 | this.$refs.queryform.resetFields();
|
1125 | },
|
1126 | queryUserData: function queryUserData() {
|
1127 | this.$refs.multipleTable.load(this.queryform);
|
1128 | },
|
1129 | dataTableLoad: function dataTableLoad(params, resolve) {
|
1130 | var _this2 = this;
|
1131 |
|
1132 | params.orgUuid = this.data.orgUuid;
|
1133 | UserAPI["a" ].getRoleUserByOrgId(params).then(resolve)
|
1134 | .then(function (respData) {
|
1135 | return _this2.table.data = respData.datarows;
|
1136 | });
|
1137 | },
|
1138 |
|
1139 | handleSelectionChange: function handleSelectionChange(val) {
|
1140 | var _this3 = this;
|
1141 |
|
1142 | this.data.userIds = [];
|
1143 | val.forEach(function (element) {
|
1144 | _this3.data.userIds.push(element.uuid);
|
1145 | }, this);
|
1146 | },
|
1147 |
|
1148 | loadInfo: function loadInfo() {
|
1149 | var _this4 = this;
|
1150 |
|
1151 | this.view.loading = true;
|
1152 | this.$refs.multipleTable.clearSelection();
|
1153 | this.data.userIds = [];
|
1154 | this.queryform.uuid = this.uuid;
|
1155 | RoleAPI["a" ].loadRoleEditInfo(this.uuid).then(function (data) {
|
1156 | _this4.data = data;
|
1157 | _this4.view.loading = false;
|
1158 |
|
1159 | _this4.$refs.permTree.setCheckedKeys([]);
|
1160 |
|
1161 | data.permIds.forEach(function (uuid) {
|
1162 | _this4.$refs.permTree.setChecked(uuid, true, false);
|
1163 | });
|
1164 | data.userIds.forEach(function (uuid) {
|
1165 | _this4.$refs.multipleTable.toggleRowSelection({
|
1166 | uuid: uuid
|
1167 | }, true);
|
1168 | });
|
1169 |
|
1170 | _this4.queryUserData();
|
1171 | });
|
1172 | },
|
1173 |
|
1174 | submit: function submit() {
|
1175 | var _this5 = this;
|
1176 |
|
1177 | this.$refs.form.validate(function (valid) {
|
1178 | if (valid) {
|
1179 | _this5.view.loading = true;
|
1180 | _this5.error = {};
|
1181 | var data = Object.assign({}, _this5.data);
|
1182 |
|
1183 | if (_this5.orgUuid) {
|
1184 | data.orgUuid = _this5.orgUuid;
|
1185 | }
|
1186 |
|
1187 | var permTree = _this5.$refs.permTree;
|
1188 | data.permIds = permTree.getCheckedKeys().concat(permTree.getHalfCheckedKeys()).filter(function (uuid) {
|
1189 | return uuid !== "none";
|
1190 | });
|
1191 |
|
1192 | return RoleAPI["a" ].editRoleNode(data).then(function (data) {
|
1193 | _this5.view.loading = false;
|
1194 |
|
1195 | _this5.$emit("onsave", _this5.data);
|
1196 |
|
1197 | return data;
|
1198 | }).catch(function (error) {
|
1199 | _this5.error = error.validError;
|
1200 | _this5.view.loading = false;
|
1201 | });
|
1202 | }
|
1203 | });
|
1204 | }
|
1205 | }
|
1206 | });
|
1207 |
|
1208 | var usrm_RoleEditorvue_type_script_lang_js_ = (RoleEditorvue_type_script_lang_js_);
|
1209 |
|
1210 | var componentNormalizer = __webpack_require__("6691");
|
1211 |
|
1212 |
|
1213 |
|
1214 |
|
1215 |
|
1216 |
|
1217 |
|
1218 |
|
1219 |
|
1220 | var component = Object(componentNormalizer["a" ])(
|
1221 | usrm_RoleEditorvue_type_script_lang_js_,
|
1222 | RoleEditorvue_type_template_id_29fa0e74_render,
|
1223 | RoleEditorvue_type_template_id_29fa0e74_staticRenderFns,
|
1224 | false,
|
1225 | null,
|
1226 | null,
|
1227 | null
|
1228 |
|
1229 | )
|
1230 |
|
1231 | var RoleEditor = (component.exports);
|
1232 |
|
1233 | var RoleCopyvue_type_template_id_6e7f5720_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"height":"600px"}},[_c('el-alert',{attrs:{"type":"warning","close-text":"知道了","title":"您可以选择指定海关下的指定角色,批量复制到目标海关中."}}),_c('div',{staticClass:"flex-h",staticStyle:{"height":"563px"}},[_c('el-card',{staticClass:"flex-1 full margin-1"},[_c('template',{slot:"header"},[_c('span',[_vm._v("选择海关")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-expand"},on:{"click":_vm.expandRoleAll}})],1)]),_c('el-tree',{ref:"roleTree",staticStyle:{"min-height":"400px"},attrs:{"default-expand-all":_vm.expandedAll,"node-key":"uuid","lazy":"","current-node-key":_vm.currNode.uuid,"load":_vm.loadRoleTree,"expand-on-click-node":false,"highlight-current":"","render-content":_vm.renderContentRole},on:{"node-click":_vm.handleCheckChange}})],2),_c('el-card',{staticClass:"flex-1 full margin-1"},[_c('template',{slot:"header"},[_c('span',[_vm._v("选择角色")])]),_c('el-tree',{ref:"roleOrgTree",attrs:{"node-key":"uuid","default-expand-all":true,"lazy":"","load":_vm.loadOrgRoleTree,"current-node-key":"currNode.uuid","expand-on-click-node":false,"highlight-current":"","show-checkbox":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
1234 | var node = ref.node;
|
1235 | var data = ref.data;
|
1236 | return _c('span',{staticClass:"custom-tree-node"},[(data.roleName&&data.parRoleUuid==='none')?_c('span',[_c('i',{staticClass:"el-icon-fa el-icon-fa-user-circle margin-right-2 font-blue"}),_c('span',[_vm._v(_vm._s(data.roleName))])]):_vm._e(),(data.roleName&&data.parRoleUuid!=='none')?_c('span',[_c('i',{staticClass:"el-icon-fa el-icon-fa-user-o margin-right-2 font-yellow-casablanca"}),_c('span',[_vm._v(_vm._s(data.roleName))])]):_vm._e()])}}])})],2),_c('el-card',{staticClass:"flex-1 full margin-1"},[_c('template',{slot:"header"},[_c('span',[_vm._v("目标复制海关")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-expand"},on:{"click":_vm.expandAll}})],1)]),_c('el-tree',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.saving),expression:"saving"}],ref:"orgTree",attrs:{"default-expand-all":_vm.expandedAll,"lazy":"","load":_vm.loadTree,"node-key":"uuid","current-node-key":_vm.currNode.uuid,"expand-on-click-node":false,"highlight-current":"","render-content":_vm.renderContent,"show-checkbox":"","check-strictly":true},on:{"current-change":_vm.currentChange}})],2)],1)],1)}
|
1237 | var RoleCopyvue_type_template_id_6e7f5720_staticRenderFns = []
|
1238 |
|
1239 |
|
1240 |
|
1241 |
|
1242 |
|
1243 | var OrgAPI = __webpack_require__("17a8");
|
1244 |
|
1245 |
|
1246 |
|
1247 |
|
1248 |
|
1249 |
|
1250 |
|
1251 |
|
1252 |
|
1253 |
|
1254 |
|
1255 |
|
1256 |
|
1257 |
|
1258 |
|
1259 |
|
1260 |
|
1261 |
|
1262 |
|
1263 |
|
1264 |
|
1265 |
|
1266 |
|
1267 |
|
1268 |
|
1269 |
|
1270 |
|
1271 |
|
1272 |
|
1273 |
|
1274 |
|
1275 |
|
1276 |
|
1277 |
|
1278 |
|
1279 |
|
1280 |
|
1281 |
|
1282 |
|
1283 |
|
1284 |
|
1285 |
|
1286 |
|
1287 |
|
1288 |
|
1289 |
|
1290 |
|
1291 | var RoleCopyvue_type_script_lang_js_ = ({
|
1292 | data: function data() {
|
1293 | return {
|
1294 | currParentNode: {},
|
1295 | currNode: {
|
1296 | data: null,
|
1297 | orgUuid: null,
|
1298 | roleUuid: null
|
1299 | },
|
1300 | saving: false,
|
1301 | expandedAll: false,
|
1302 | editor: {
|
1303 | error: {}
|
1304 | },
|
1305 | rules: {
|
1306 | name: [{
|
1307 | required: true,
|
1308 | message: "角色名称不能为空!"
|
1309 | }]
|
1310 | }
|
1311 | };
|
1312 | },
|
1313 | mounted: function mounted() {
|
1314 | var _this = this;
|
1315 |
|
1316 |
|
1317 | OrgAPI["a" ].getChildren().then(function (resp) {
|
1318 | _this.$refs.orgTree.root.setData(resp.data);
|
1319 | });
|
1320 | RoleAPI["a" ].getRoleChildren().then(function (resp) {
|
1321 |
|
1322 |
|
1323 |
|
1324 | _this.$refs.roleTree.root.setData(resp.data);
|
1325 | });
|
1326 | },
|
1327 | submitForm: function submitForm(data) {
|
1328 | var _this2 = this;
|
1329 |
|
1330 | this.$refs.form.validate(function (valid) {
|
1331 | if (valid) {
|
1332 |
|
1333 | _this2.$emit("submit", _this2.data);
|
1334 | } else {
|
1335 | console.log("error submit!!");
|
1336 | return false;
|
1337 | }
|
1338 | });
|
1339 | },
|
1340 | methods: {
|
1341 | selectAll: function selectAll() {
|
1342 |
|
1343 | this.$refs.roleOrgTree.setCheckedKeys();
|
1344 | },
|
1345 |
|
1346 | onSubmit: function onSubmit(roleuuid) {
|
1347 | var newNode = {
|
1348 | uuid: roleuuid,
|
1349 | orgUuids: this.$refs.orgTree.getCheckedKeys(),
|
1350 | roleUuids: this.$refs.roleOrgTree.getCheckedKeys()
|
1351 | };
|
1352 | return RoleAPI["a" ].copyRoleNode(newNode);
|
1353 | },
|
1354 | handleCheckChange: function handleCheckChange(data, checked, indeterminate) {
|
1355 | var _this3 = this;
|
1356 |
|
1357 | RoleAPI["a" ].getCopyRoleTree(data.uuid).then(function (resp) {
|
1358 | _this3.$refs.roleOrgTree.root.setData(resp.data);
|
1359 | });
|
1360 | },
|
1361 |
|
1362 | currentChange: function currentChange(data, node) {
|
1363 | this.currParentNode = node.parent.data || {};
|
1364 | this.currNode = data || {};
|
1365 | },
|
1366 | loadOrgRoleTree: function loadOrgRoleTree(node, resolve) {
|
1367 | if (node.data) {
|
1368 | RoleAPI["a" ].getOrgRoleTree(node.data.uuid).then(function (resp) {
|
1369 | return resp.data;
|
1370 | }).then(resolve);
|
1371 | } else {
|
1372 | resolve([]);
|
1373 | }
|
1374 | },
|
1375 | loadRoleTree: function loadRoleTree(node, resolve) {
|
1376 | if (node.data) {
|
1377 | OrgAPI["a" ].getChildren(node.data.uuid).then(function (resp) {
|
1378 | return resp.data;
|
1379 | }).then(resolve);
|
1380 | } else {
|
1381 | resolve([]);
|
1382 | }
|
1383 | },
|
1384 |
|
1385 | loadTree: function loadTree(node, resolve) {
|
1386 | if (node.data) {
|
1387 | OrgAPI["a" ].getChildren(node.data.uuid).then(function (resp) {
|
1388 | return resp.data;
|
1389 | }).then(resolve);
|
1390 | } else {
|
1391 | resolve([]);
|
1392 | }
|
1393 | },
|
1394 |
|
1395 | refreshNode: function refreshNode(node) {
|
1396 | var _this4 = this;
|
1397 |
|
1398 | node.loaded = false;
|
1399 | node.expand(function () {
|
1400 | node.childNodes.forEach(function (element) {
|
1401 | element.isLeaf = element.data.roleType === "1";
|
1402 | element.loaded = element.data.roleType === "1";
|
1403 | }, _this4);
|
1404 | });
|
1405 | },
|
1406 |
|
1407 | expandAll: function expandAll() {
|
1408 | var _this5 = this;
|
1409 |
|
1410 | var expandFn = function expandFn(element, expand) {
|
1411 | element.childNodes.forEach(function (element) {
|
1412 | element.expand(function () {
|
1413 | expandFn(element);
|
1414 | });
|
1415 | }, _this5);
|
1416 | };
|
1417 |
|
1418 | expandFn(this.$refs.orgTree.root);
|
1419 | },
|
1420 | expandRoleAll: function expandRoleAll() {
|
1421 | var _this6 = this;
|
1422 |
|
1423 | var expandFn = function expandFn(element, expand) {
|
1424 | element.childNodes.forEach(function (element) {
|
1425 | element.expand(function () {
|
1426 | expandFn(element);
|
1427 | });
|
1428 | }, _this6);
|
1429 | };
|
1430 |
|
1431 | expandFn(this.$refs.roleTree.root);
|
1432 | },
|
1433 |
|
1434 | renderContent: function renderContent(h, _ref) {
|
1435 | var _this7 = this;
|
1436 |
|
1437 | var node = _ref.node,
|
1438 | data = _ref.data,
|
1439 | store = _ref.store;
|
1440 | var refreshBtn = h("el-button", {
|
1441 | "attrs": {
|
1442 | "icon": "el-icon-fa-refresh"
|
1443 | },
|
1444 | "on": {
|
1445 | "click": function click() {
|
1446 | _this7.refreshNode(node);
|
1447 | }
|
1448 | }
|
1449 | });
|
1450 | return h("span", [h("span", {
|
1451 | "attrs": {
|
1452 | "clasS": data.orgStat === "0" ? "removed-line-through" : ""
|
1453 | }
|
1454 | }, [data.orgName]), h("span", {
|
1455 | "style": "position:absolute;right: 20px"
|
1456 | }, [h("el-button-group", [refreshBtn])])]);
|
1457 | },
|
1458 | renderContentRole: function renderContentRole(h, _ref2) {
|
1459 | var _this8 = this;
|
1460 |
|
1461 | var node = _ref2.node,
|
1462 | data = _ref2.data,
|
1463 | store = _ref2.store;
|
1464 | var refreshBtn = h("el-button", {
|
1465 | "attrs": {
|
1466 | "icon": "el-icon-fa-refresh"
|
1467 | },
|
1468 | "on": {
|
1469 | "click": function click() {
|
1470 | _this8.refreshNode(node);
|
1471 | }
|
1472 | }
|
1473 | });
|
1474 | return h("span", [h("span", {
|
1475 | "attrs": {
|
1476 | "clasS": data.orgStat === "0" ? "removed-line-through" : ""
|
1477 | }
|
1478 | }, [data.orgName]), h("span", {
|
1479 | "style": "position:absolute;right: 20px"
|
1480 | }, [h("el-button-group", [refreshBtn])])]);
|
1481 | }
|
1482 | }
|
1483 | });
|
1484 |
|
1485 | var usrm_RoleCopyvue_type_script_lang_js_ = (RoleCopyvue_type_script_lang_js_);
|
1486 |
|
1487 |
|
1488 |
|
1489 |
|
1490 |
|
1491 |
|
1492 |
|
1493 |
|
1494 | var RoleCopy_component = Object(componentNormalizer["a" ])(
|
1495 | usrm_RoleCopyvue_type_script_lang_js_,
|
1496 | RoleCopyvue_type_template_id_6e7f5720_render,
|
1497 | RoleCopyvue_type_template_id_6e7f5720_staticRenderFns,
|
1498 | false,
|
1499 | null,
|
1500 | null,
|
1501 | null
|
1502 |
|
1503 | )
|
1504 |
|
1505 | var RoleCopy = (RoleCopy_component.exports);
|
1506 |
|
1507 |
|
1508 |
|
1509 |
|
1510 |
|
1511 |
|
1512 |
|
1513 |
|
1514 |
|
1515 |
|
1516 |
|
1517 |
|
1518 |
|
1519 |
|
1520 |
|
1521 |
|
1522 |
|
1523 |
|
1524 |
|
1525 |
|
1526 |
|
1527 |
|
1528 |
|
1529 |
|
1530 |
|
1531 |
|
1532 |
|
1533 |
|
1534 |
|
1535 |
|
1536 |
|
1537 |
|
1538 |
|
1539 |
|
1540 |
|
1541 |
|
1542 |
|
1543 |
|
1544 |
|
1545 |
|
1546 |
|
1547 |
|
1548 |
|
1549 |
|
1550 |
|
1551 |
|
1552 |
|
1553 |
|
1554 |
|
1555 |
|
1556 |
|
1557 |
|
1558 |
|
1559 |
|
1560 |
|
1561 |
|
1562 |
|
1563 |
|
1564 |
|
1565 |
|
1566 |
|
1567 |
|
1568 |
|
1569 |
|
1570 |
|
1571 |
|
1572 | var RoleMgrvue_type_script_lang_js_ = ({
|
1573 | name: "RoleMgr",
|
1574 | components: {
|
1575 | RoleEditor: RoleEditor,
|
1576 | CopyEditor: RoleCopy
|
1577 | },
|
1578 | data: function data() {
|
1579 | return {
|
1580 | leftBlock: true,
|
1581 | rightBlock: true,
|
1582 |
|
1583 | showRoleTree: true,
|
1584 |
|
1585 | doLoading: false,
|
1586 | view: {
|
1587 | loading: false
|
1588 | },
|
1589 | current: {
|
1590 | data: null,
|
1591 | orgUuid: null,
|
1592 | roleUuid: null
|
1593 | },
|
1594 | editor: {
|
1595 | error: {},
|
1596 | show: false,
|
1597 | uuid: null,
|
1598 | visible: false,
|
1599 | loading: false
|
1600 | },
|
1601 | expandedAll: false
|
1602 | };
|
1603 | },
|
1604 | mounted: function mounted() {
|
1605 | this.refresh();
|
1606 | },
|
1607 | methods: {
|
1608 |
|
1609 | doSubmit: function doSubmit() {
|
1610 | var _this = this;
|
1611 |
|
1612 | this.$refs.userEditor.onSubmit(this.current.roleUuid).then(function (resp) {
|
1613 | _this.doLoading = true;
|
1614 | _this.showRoleTree = false;
|
1615 | setTimeout(function () {
|
1616 | _this.showRoleTree = true;
|
1617 | _this.doLoading = false;
|
1618 | });
|
1619 | });
|
1620 | this.cancelEditorLoading();
|
1621 | },
|
1622 |
|
1623 | doAdd: function doAdd() {
|
1624 | this.editor.show = true;
|
1625 | },
|
1626 |
|
1627 | cancelEditorLoading: function cancelEditorLoading() {
|
1628 | this.editor.show = false;
|
1629 | this.editor.loading = false;
|
1630 | },
|
1631 |
|
1632 | refresh: function refresh() {
|
1633 | var _this2 = this;
|
1634 |
|
1635 | this.view.loading = true;
|
1636 | this.current.roleUuid = null;
|
1637 | RoleAPI["a" ].getRoleChildren().then(function (resp) {
|
1638 | return resp.data;
|
1639 | }).then(function (data) {
|
1640 | _this2.$refs.roleTree.root.children = data;
|
1641 | _this2.view.loading = false;
|
1642 | });
|
1643 | },
|
1644 |
|
1645 | submit: function submit() {
|
1646 | this.$refs.roleEditor.submit();
|
1647 | },
|
1648 |
|
1649 | onsave: function onsave() {
|
1650 | if (this.current.data) {
|
1651 | Object.assign(this.current.data, this.$refs.roleEditor.data);
|
1652 | }
|
1653 | },
|
1654 |
|
1655 | expandAll: function expandAll() {
|
1656 | var _this3 = this;
|
1657 |
|
1658 | if (this.expandedAll) {
|
1659 | this.saving = true;
|
1660 | this.showRoleTree = false;
|
1661 | this.expandedAll = false;
|
1662 | setTimeout(function () {
|
1663 | _this3.showRoleTree = true;
|
1664 | _this3.saving = false;
|
1665 | }, 200);
|
1666 | return;
|
1667 | }
|
1668 |
|
1669 | this.expandedAll = true;
|
1670 |
|
1671 | var expandFn = function expandFn(element, expand) {
|
1672 | element.childNodes.forEach(function (element) {
|
1673 | element.expand(function () {
|
1674 | expandFn(element);
|
1675 | });
|
1676 | }, _this3);
|
1677 | };
|
1678 |
|
1679 | expandFn(this.$refs.roleTree.root);
|
1680 | },
|
1681 |
|
1682 | currentChange: function currentChange(data, node) {
|
1683 | this.current.roleUuid = null;
|
1684 |
|
1685 | if (data.roleName) {
|
1686 | this.current.roleUuid = data.uuid;
|
1687 | this.current.orgUuid = node.parent.data.uuid;
|
1688 | this.current.data = data;
|
1689 | }
|
1690 | },
|
1691 |
|
1692 | loadTree: function loadTree(node, resolve) {
|
1693 | var puuid;
|
1694 |
|
1695 | if (node.data) {
|
1696 | puuid = node.data.uuid;
|
1697 | }
|
1698 |
|
1699 | RoleAPI["a" ].getRoleChildren(puuid).then(function (resp) {
|
1700 | resp.data && resolve(resp.data);
|
1701 | });
|
1702 | },
|
1703 |
|
1704 | addNode: function addNode(node) {
|
1705 | var _this4 = this;
|
1706 |
|
1707 | this.view.loading = true;
|
1708 | var data = node.data;
|
1709 | var newNode = {
|
1710 | roleType: "1",
|
1711 | roleName: "新建角色"
|
1712 | };
|
1713 |
|
1714 | if (data.roleName) {
|
1715 |
|
1716 | newNode.parRoleUuid = data.uuid;
|
1717 | } else {
|
1718 |
|
1719 | newNode.orgUuid = data.uuid;
|
1720 | }
|
1721 |
|
1722 | node.expand(function () {
|
1723 | RoleAPI["a" ].editRoleNode(newNode).then(function (data) {
|
1724 | newNode.uuid = data.uuid;
|
1725 | node.insertChild({
|
1726 | data: newNode
|
1727 | });
|
1728 |
|
1729 | _this4.current.roleUuid = data.uuid;
|
1730 | _this4.current.orgUuid = newNode.orgUuid;
|
1731 | _this4.current.data = newNode;
|
1732 | _this4.view.loading = false;
|
1733 | });
|
1734 | }, this);
|
1735 | },
|
1736 |
|
1737 | removeNode: function removeNode(node) {
|
1738 | var _this5 = this;
|
1739 |
|
1740 |
|
1741 | var action = function action(data) {
|
1742 | _this5.view.loading = true;
|
1743 | RoleAPI["a" ].delRoleNode(data.uuid).then(function (data) {
|
1744 | node.parent.removeChild(node);
|
1745 | _this5.view.loading = false;
|
1746 | }).catch(function () {
|
1747 | _this5.view.loading = false;
|
1748 | });
|
1749 | };
|
1750 |
|
1751 |
|
1752 | this.confirm(node.data).then(action);
|
1753 | },
|
1754 |
|
1755 | refreshNode: function refreshNode(node) {
|
1756 | node.loaded = false;
|
1757 | node.expand();
|
1758 | }
|
1759 | }
|
1760 | });
|
1761 |
|
1762 | var usrm_RoleMgrvue_type_script_lang_js_ = (RoleMgrvue_type_script_lang_js_);
|
1763 |
|
1764 |
|
1765 |
|
1766 |
|
1767 |
|
1768 |
|
1769 |
|
1770 |
|
1771 | var RoleMgr_component = Object(componentNormalizer["a" ])(
|
1772 | usrm_RoleMgrvue_type_script_lang_js_,
|
1773 | render,
|
1774 | staticRenderFns,
|
1775 | false,
|
1776 | null,
|
1777 | null,
|
1778 | null
|
1779 |
|
1780 | )
|
1781 |
|
1782 | var RoleMgr = __webpack_exports__["default"] = (RoleMgr_component.exports);
|
1783 |
|
1784 | }),
|
1785 |
|
1786 | "41b2":
|
1787 | (function(module, exports) {
|
1788 |
|
1789 | module.exports = require("element-ui/lib/utils/util");
|
1790 |
|
1791 | }),
|
1792 |
|
1793 | "41c7":
|
1794 | (function(module, __webpack_exports__, __webpack_require__) {
|
1795 |
|
1796 | "use strict";
|
1797 | __webpack_require__.r(__webpack_exports__);
|
1798 |
|
1799 |
|
1800 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',{staticClass:"flex-1"},[_c('template',{slot:"header"},[_c('span',[_vm._v("服务日志管理")])]),_c('el-form',{ref:"queryform",attrs:{"model":_vm.queryform}},[_c('el-row',[_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"开始时间","prop":"servSta"}},[_c('el-date-picker',{attrs:{"type":"datetime","placeholder":"选择开始时间"},model:{value:(_vm.queryform.servSta),callback:function ($$v) {_vm.$set(_vm.queryform, "servSta", $$v)},expression:"queryform.servSta"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"结束时间","prop":"servEnd"}},[_c('el-date-picker',{attrs:{"type":"datetime","placeholder":"选择结束时间"},model:{value:(_vm.queryform.servEnd),callback:function ($$v) {_vm.$set(_vm.queryform, "servEnd", $$v)},expression:"queryform.servEnd"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"交互标识","prop":"operuuid"}},[_c('el-input',{model:{value:(_vm.queryform.operuuid),callback:function ($$v) {_vm.$set(_vm.queryform, "operuuid", $$v)},expression:"queryform.operuuid"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"服务器地址","prop":"svrIp"}},[_c('el-input',{model:{value:(_vm.queryform.svrIp),callback:function ($$v) {_vm.$set(_vm.queryform, "svrIp", $$v)},expression:"queryform.svrIp"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"服务描述","prop":"servDesc"}},[_c('el-input',{model:{value:(_vm.queryform.servDesc),callback:function ($$v) {_vm.$set(_vm.queryform, "servDesc", $$v)},expression:"queryform.servDesc"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"会话标识","prop":"sesId"}},[_c('el-input',{model:{value:(_vm.queryform.sesId),callback:function ($$v) {_vm.$set(_vm.queryform, "sesId", $$v)},expression:"queryform.sesId"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"处理结果","prop":"sesId"}},[_c('el-select',{directives:[{name:"sys-code",rawName:"v-sys-code",value:('questionType'),expression:"'questionType'"}],attrs:{"placeholder":"请选择","clearable":""},model:{value:(_vm.queryform.respcode),callback:function ($$v) {_vm.$set(_vm.queryform, "respcode", $$v)},expression:"queryform.respcode"}},_vm._l((_vm.resp),function(item){return _c('el-option',{key:item.key,attrs:{"label":item.label,"value":item.key}})}),1)],1)],1)],1)],1)],2),_c('el-card',{staticClass:"flex-1 margin-top-2"},[_c('template',{slot:"header"},[_c('span',[_vm._v("服务日志列表")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search","title":"查询"},on:{"click":_vm.queryData}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-reply-all","title":"重置"},on:{"click":_vm.resetquery}})],1)]),_c('PageTable',{ref:"dataTable",attrs:{"hideTitle":"","page-size":10,"data":_vm.table.data,"highlight-current-row":"","stripe":"","border":""},on:{"load-data":_vm.dataTableLoad}},[_c('el-table-column',{attrs:{"prop":"opuuid","label":"交互标识","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"svrip","label":"服务器地址","width":"100px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"svrname","label":"服务器名称","width":"100px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"servdesc","label":"服务描述","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n "+_vm._s(scope.row.servdesc||"系统服务")+"\n ")]}}])}),_c('el-table-column',{attrs:{"prop":"sesid","label":"会话标识","width":"250px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"servsta","label":"操作时间","width":"140px","formatter":_vm.formatterDateTime,"show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"optime","label":"操作耗时","placement":"top","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"respcode","label":"处理结果","formatter":_vm.respcodeFormatter,"show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"80","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-eye","title":"查看详情"},on:{"click":function($event){return _vm.showInfo(scope.row)}}})]}}])})],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看详情","visible":_vm.currentInfo.show,"width":"800px"},on:{"update:visible":function($event){return _vm.$set(_vm.currentInfo, "show", $event)}}},[(_vm.currentInfo.show)?_c('LogsServInfo',{attrs:{"uuid":_vm.currentInfo.uuid,"error":_vm.currentInfo.error}}):_vm._e()],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看数据","visible":_vm.editor.datashow,"width":"800px"},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "datashow", $event)}}},[_c('LogsOperData',{attrs:{"uuid":_vm.editor.uuid,"flag":2}})],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看SQL","width":"800px","visible":_vm.editor.sqlshow},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "sqlshow", $event)}}},[_c('LogsSqlData',{attrs:{"seuuid":_vm.editor.seuuid}})],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看堆栈信息","visible":_vm.editor.stakshow,"width":"800px"},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "stakshow", $event)}}},[[(_vm.stakinfo)?_c('el-input',{attrs:{"type":"textarea","rows":25,"readonly":""},model:{value:(_vm.stakinfo),callback:function ($$v) {_vm.stakinfo=$$v},expression:"stakinfo"}}):_vm._e(),(!_vm.stakinfo)?_c('h1',{staticStyle:{"text-align":"center","font-size":"6px","height":"300px","line-height":"300px"}},[_vm._v("暂无数据")]):_vm._e()]],2)],2)],1)}
|
1801 | var staticRenderFns = []
|
1802 |
|
1803 |
|
1804 |
|
1805 |
|
1806 |
|
1807 | var LogsServInfovue_type_template_id_1e762eb9_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-form',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:"form ",attrs:{"label-position":"top","model":_vm.data}},[_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"服务器地址 ","prop":"svrIp "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.svrIp ),callback:function ($$v) {_vm.$set(_vm.data, "svrIp", $$v)},expression:"data.svrIp "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"服务器名称 ","prop":"svrName "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.svrName ),callback:function ($$v) {_vm.$set(_vm.data, "svrName", $$v)},expression:"data.svrName "}})],1)],1)],1),_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"处理代码 ","prop":"respCode "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.respCode ),callback:function ($$v) {_vm.$set(_vm.data, "respCode", $$v)},expression:"data.respCode "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"处理描述 ","prop":"respDesc "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.respDesc ),callback:function ($$v) {_vm.$set(_vm.data, "respDesc", $$v)},expression:"data.respDesc "}})],1)],1)],1),_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"服务定义 ","prop":"reqIp "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.servDefn ),callback:function ($$v) {_vm.$set(_vm.data, "servDefn", $$v)},expression:"data.servDefn "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"服务描述 ","prop":"acttype "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.servDesc ),callback:function ($$v) {_vm.$set(_vm.data, "servDesc", $$v)},expression:"data.servDesc "}})],1)],1)],1),_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"操作开始时间 ","prop":"actSta "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.servSta ),callback:function ($$v) {_vm.servSta =$$v},expression:"servSta "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"操作结束时间 ","prop":"actEnd "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.servEnd ),callback:function ($$v) {_vm.servEnd =$$v},expression:"servEnd "}})],1)],1)],1),_c('el-form-item',{attrs:{"label":"会话标识 ","prop":"sesId "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.sesId ),callback:function ($$v) {_vm.$set(_vm.data, "sesId", $$v)},expression:"data.sesId "}})],1)],1)],1)}
|
1808 | var LogsServInfovue_type_template_id_1e762eb9_scoped_true_staticRenderFns = []
|
1809 |
|
1810 |
|
1811 | // CONCATENATED MODULE: ./base/module/logs/LogsServInfo.vue?vue&type=template&id=1e762eb9&scoped=true&
|
1812 |
|
1813 | // EXTERNAL MODULE: external "core-js/modules/es6.object.assign"
|
1814 | var es6_object_assign_ = __webpack_require__("067b");
|
1815 |
|
1816 | // EXTERNAL MODULE: ./base/api/base/logs/LogsServ.js
|
1817 | var LogsServ = __webpack_require__("f29a");
|
1818 |
|
1819 | // CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options!./base/module/logs/LogsServInfo.vue?vue&type=script&lang=js&
|
1820 |
|
1821 | //
|
1822 | //
|
1823 | //
|
1824 | //
|
1825 | //
|
1826 | //
|
1827 | //
|
1828 | //
|
1829 | //
|
1830 | //
|
1831 | //
|
1832 | //
|
1833 | //
|
1834 | //
|
1835 | //
|
1836 | //
|
1837 | //
|
1838 | //
|
1839 | //
|
1840 | //
|
1841 | //
|
1842 | //
|
1843 | //
|
1844 | //
|
1845 | //
|
1846 | //
|
1847 | //
|
1848 | //
|
1849 | //
|
1850 | //
|
1851 | //
|
1852 | //
|
1853 | //
|
1854 | //
|
1855 | //
|
1856 | //
|
1857 | //
|
1858 | //
|
1859 | //
|
1860 | //
|
1861 | //
|
1862 | //
|
1863 | //
|
1864 | //
|
1865 | //
|
1866 | //
|
1867 | //
|
1868 | //
|
1869 | //
|
1870 | //
|
1871 | //
|
1872 | //
|
1873 | //
|
1874 | //
|
1875 | //
|
1876 | //
|
1877 | //
|
1878 |
|
1879 | /* harmony default export */ var LogsServInfovue_type_script_lang_js_ = ({
|
1880 | components: {
|
1881 | ServAPI: LogsServ["a" ]
|
1882 | },
|
1883 | props: {
|
1884 |
|
1885 | uuid: String,
|
1886 |
|
1887 | error: Object
|
1888 | },
|
1889 | data: function data() {
|
1890 | return {
|
1891 | loading: false,
|
1892 | data: Object.assign({}),
|
1893 | servSta: "",
|
1894 | servEnd: ""
|
1895 | };
|
1896 | },
|
1897 | watch: {
|
1898 | uuid: function uuid(val) {
|
1899 | this.loadData();
|
1900 | }
|
1901 | },
|
1902 | mounted: function mounted() {
|
1903 |
|
1904 | this.loadData();
|
1905 | },
|
1906 | methods: {
|
1907 |
|
1908 |
|
1909 | validate: function validate() {
|
1910 | var _this = this;
|
1911 |
|
1912 | return this.$refs.form.validate().then(function () {
|
1913 | return _this.data;
|
1914 | });
|
1915 | },
|
1916 |
|
1917 | loadData: function loadData() {
|
1918 | var _this2 = this;
|
1919 |
|
1920 | if (!this.uuid) {
|
1921 | this.$refs.form.resetFields();
|
1922 | } else {
|
1923 | this.loading = true;
|
1924 | LogsServ["a" ].getLogsServByUuid(this.uuid).then(function (respData) {
|
1925 | _this2.data = respData.data;
|
1926 | _this2.loading = false;
|
1927 | _this2.servSta = _this2.formatterDateTime(null, null, respData.data.servSta);
|
1928 | _this2.servEnd = _this2.formatterDateTime(null, null, respData.data.servEnd);
|
1929 | }).catch(function (resp) {});
|
1930 | }
|
1931 | }
|
1932 | }
|
1933 | });
|
1934 |
|
1935 | var logs_LogsServInfovue_type_script_lang_js_ = (LogsServInfovue_type_script_lang_js_);
|
1936 |
|
1937 | var componentNormalizer = __webpack_require__("6691");
|
1938 |
|
1939 |
|
1940 |
|
1941 |
|
1942 |
|
1943 |
|
1944 |
|
1945 |
|
1946 |
|
1947 | var component = Object(componentNormalizer["a" ])(
|
1948 | logs_LogsServInfovue_type_script_lang_js_,
|
1949 | LogsServInfovue_type_template_id_1e762eb9_scoped_true_render,
|
1950 | LogsServInfovue_type_template_id_1e762eb9_scoped_true_staticRenderFns,
|
1951 | false,
|
1952 | null,
|
1953 | "1e762eb9",
|
1954 | null
|
1955 |
|
1956 | )
|
1957 |
|
1958 | var LogsServInfo = (component.exports);
|
1959 |
|
1960 | var LogsOperData = __webpack_require__("aa21");
|
1961 |
|
1962 |
|
1963 | var LogsSqlData = __webpack_require__("de68");
|
1964 |
|
1965 |
|
1966 | var external_util_ = __webpack_require__("8cad");
|
1967 |
|
1968 |
|
1969 |
|
1970 |
|
1971 |
|
1972 |
|
1973 |
|
1974 |
|
1975 |
|
1976 |
|
1977 |
|
1978 |
|
1979 |
|
1980 |
|
1981 |
|
1982 |
|
1983 |
|
1984 |
|
1985 |
|
1986 |
|
1987 |
|
1988 |
|
1989 |
|
1990 |
|
1991 |
|
1992 |
|
1993 |
|
1994 |
|
1995 |
|
1996 |
|
1997 |
|
1998 |
|
1999 |
|
2000 |
|
2001 |
|
2002 |
|
2003 |
|
2004 |
|
2005 |
|
2006 |
|
2007 |
|
2008 |
|
2009 |
|
2010 |
|
2011 |
|
2012 |
|
2013 |
|
2014 |
|
2015 |
|
2016 |
|
2017 |
|
2018 |
|
2019 |
|
2020 |
|
2021 |
|
2022 |
|
2023 |
|
2024 |
|
2025 |
|
2026 |
|
2027 |
|
2028 |
|
2029 |
|
2030 |
|
2031 |
|
2032 |
|
2033 |
|
2034 |
|
2035 |
|
2036 |
|
2037 |
|
2038 |
|
2039 |
|
2040 |
|
2041 |
|
2042 |
|
2043 |
|
2044 |
|
2045 |
|
2046 |
|
2047 |
|
2048 |
|
2049 |
|
2050 |
|
2051 |
|
2052 |
|
2053 |
|
2054 |
|
2055 |
|
2056 |
|
2057 |
|
2058 |
|
2059 |
|
2060 |
|
2061 |
|
2062 |
|
2063 |
|
2064 |
|
2065 |
|
2066 |
|
2067 |
|
2068 |
|
2069 |
|
2070 |
|
2071 |
|
2072 |
|
2073 |
|
2074 | var LogsServvue_type_script_lang_js_ = ({
|
2075 | components: {
|
2076 | LogsOperData: LogsOperData["a" ],
|
2077 | LogsSqlData: LogsSqlData["a" ],
|
2078 | LogsServInfo: LogsServInfo
|
2079 | },
|
2080 | props: {
|
2081 | uuid: {
|
2082 | type: String
|
2083 | },
|
2084 | sesId: {
|
2085 | type: String
|
2086 | }
|
2087 | },
|
2088 | data: function data() {
|
2089 | return {
|
2090 | stakinfo: "",
|
2091 | queryform: {
|
2092 | svrIp: "",
|
2093 | respCode: "",
|
2094 | servSta: "",
|
2095 | sesId: "",
|
2096 | operuuid: "",
|
2097 | respcode: ""
|
2098 | },
|
2099 | sql: "",
|
2100 | table: {
|
2101 | data: []
|
2102 | },
|
2103 |
|
2104 | currentInfo: {
|
2105 | loading: false,
|
2106 | show: false,
|
2107 | uuid: "",
|
2108 | error: {}
|
2109 | },
|
2110 | editor: {
|
2111 | uuid: null,
|
2112 | seuuid: null,
|
2113 | datashow: false,
|
2114 | sqlshow: false,
|
2115 | stakshow: false,
|
2116 | visible: false,
|
2117 |
|
2118 | loading: true
|
2119 | },
|
2120 | resp: [{
|
2121 | key: "1",
|
2122 | label: "成功"
|
2123 | }, {
|
2124 | key: "2",
|
2125 | label: "失败"
|
2126 | }],
|
2127 | respcode: [{
|
2128 | code: "000000",
|
2129 | label: "请求处理成功"
|
2130 | }, {
|
2131 | code: "000100",
|
2132 | label: "用户会话超时"
|
2133 | }, {
|
2134 | code: "000200",
|
2135 | label: "安全服务错误"
|
2136 | }, {
|
2137 | code: "000300",
|
2138 | label: "校验服务错误"
|
2139 | }, {
|
2140 | code: "000400",
|
2141 | label: "系统后台错误"
|
2142 | }, {
|
2143 | code: "000500",
|
2144 | label: "网络服务错误"
|
2145 | }]
|
2146 | };
|
2147 | },
|
2148 | mounted: function mounted() {
|
2149 | var _this = this;
|
2150 |
|
2151 | this.$nextTick(function () {
|
2152 |
|
2153 | _this.getOpUuid();
|
2154 |
|
2155 | _this.queryData();
|
2156 | });
|
2157 | },
|
2158 | methods: {
|
2159 | respcodeFormatter: function respcodeFormatter(row, column, cellValue) {
|
2160 | return cellValue ? this.respcode.filter(function (v) {
|
2161 | return v.code === cellValue;
|
2162 | })[0].label : "未知错误";
|
2163 | },
|
2164 |
|
2165 | showInfo: function showInfo(row) {
|
2166 | this.currentInfo.uuid = row.uuid;
|
2167 | this.currentInfo.show = true;
|
2168 | },
|
2169 | showStak: function showStak(stakinfo) {
|
2170 | this.editor.stakshow = true;
|
2171 | this.stakinfo = stakinfo;
|
2172 | },
|
2173 | showSQL: function showSQL(seuuid) {
|
2174 | this.editor.seuuid = seuuid;
|
2175 | this.editor.sqlshow = true;
|
2176 | },
|
2177 | showData: function showData(opUuid) {
|
2178 | this.editor.uuid = opUuid;
|
2179 | this.editor.datashow = true;
|
2180 | },
|
2181 | queryData: function queryData() {
|
2182 | if (this.queryform.servEnd < this.queryform.servSta) {
|
2183 | this.$message.error("开始时间不能大于结束时间");
|
2184 | return;
|
2185 | }
|
2186 |
|
2187 | this.$refs.dataTable.load(this.queryform);
|
2188 | },
|
2189 | resetquery: function resetquery() {
|
2190 | this.$refs.queryform.resetFields();
|
2191 | this.queryform.respcode = "";
|
2192 | },
|
2193 | dataTableLoad: function dataTableLoad(params, resolve) {
|
2194 | var _this2 = this;
|
2195 |
|
2196 | LogsServ["a" ].queryLogsServ(params).then(resolve)
|
2197 | .then(function (respData) {
|
2198 | _this2.table.data = respData.datarows;
|
2199 | });
|
2200 | },
|
2201 |
|
2202 | getOpUuid: function getOpUuid() {
|
2203 | this.queryform.operuuid = this.uuid;
|
2204 | this.queryform.sesId = this.sesId;
|
2205 | }
|
2206 | }
|
2207 | });
|
2208 |
|
2209 | var logs_LogsServvue_type_script_lang_js_ = (LogsServvue_type_script_lang_js_);
|
2210 |
|
2211 |
|
2212 |
|
2213 |
|
2214 |
|
2215 |
|
2216 |
|
2217 |
|
2218 | var LogsServ_component = Object(componentNormalizer["a" ])(
|
2219 | logs_LogsServvue_type_script_lang_js_,
|
2220 | render,
|
2221 | staticRenderFns,
|
2222 | false,
|
2223 | null,
|
2224 | null,
|
2225 | null
|
2226 |
|
2227 | )
|
2228 |
|
2229 | var logs_LogsServ = __webpack_exports__["default"] = (LogsServ_component.exports);
|
2230 |
|
2231 | }),
|
2232 |
|
2233 | "486f":
|
2234 | (function(module, __webpack_exports__, __webpack_require__) {
|
2235 |
|
2236 | "use strict";
|
2237 | __webpack_require__.r(__webpack_exports__);
|
2238 |
|
2239 |
|
2240 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',{staticClass:"flex-1"},[_c('template',{slot:"header"},[_c('span',[_vm._v("任务日志管理")])]),_c('el-form',{ref:"queryform",attrs:{"model":_vm.queryform}},[_c('el-row',[_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"执行者IP","prop":"pcip"}},[_c('el-input',{model:{value:(_vm.queryform.pcip),callback:function ($$v) {_vm.$set(_vm.queryform, "pcip", $$v)},expression:"queryform.pcip"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"Job名称","prop":"jobName"}},[_c('el-input',{model:{value:(_vm.queryform.jobName),callback:function ($$v) {_vm.$set(_vm.queryform, "jobName", $$v)},expression:"queryform.jobName"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"执行者名称","prop":"pcname"}},[_c('el-input',{model:{value:(_vm.queryform.pcname),callback:function ($$v) {_vm.$set(_vm.queryform, "pcname", $$v)},expression:"queryform.pcname"}})],1)],1),_c('el-col',{attrs:{"lg":12,"sm":12}},[_c('el-form-item',{attrs:{"label":"执行区间","prop":"dateRange"}},[_c('el-date-picker',{attrs:{"type":"datetimerange","placeholder":"选择时间范围"},model:{value:(_vm.dateRange),callback:function ($$v) {_vm.dateRange=$$v},expression:"dateRange"}})],1)],1)],1),_c('el-row',[_c('el-col',{attrs:{"lg":8,"sm":12}},[_c('el-form-item',{attrs:{"label":"日志级别","prop":"logLevel"}},[_c('el-radio-group',{model:{value:(_vm.queryform.logLevel),callback:function ($$v) {_vm.$set(_vm.queryform, "logLevel", $$v)},expression:"queryform.logLevel"}},[_c('el-radio',{attrs:{"label":"1"}},[_vm._v("系统级别")]),_c('el-radio',{attrs:{"label":"2"}},[_vm._v("自定义级别")])],1)],1)],1)],1)],1)],2),_c('el-card',{staticClass:"flex-1 margin-top-2"},[_c('template',{slot:"header"},[_c('span',[_vm._v("任务日志列表")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search","title":"查询"},on:{"click":_vm.queryData}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-reply-all","title":"重置"},on:{"click":_vm.resetquery}})],1)]),_c('PageTable',{ref:"dataTable",attrs:{"hideTitle":"","auto-load":true,"page-size":10,"data":_vm.table.data,"highlight-current-row":"","stripe":"","border":""},on:{"load-data":_vm.dataTableLoad}},[_c('el-table-column',{attrs:{"prop":"pcip","label":"执行者IP","width":"100","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"pcname","label":"执行者名称","width":"140","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"jobname","label":"Job名称","width":"200","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"timecon","label":"Job执行耗时","width":"100","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v(_vm._s(scope.row.timecon/1000+"s"))]}}])}),_c('el-table-column',{attrs:{"prop":"recotime","label":"记录/完成时间","width":"140","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v(_vm._s(_vm._f("date")(scope.row.recotime,'%Y-%m-%d %T')))]}}])}),_c('el-table-column',{attrs:{"prop":"exceinfo","label":"执行信息","show-overflow-tooltip":""}})],1)],2)],1)}
|
2241 | var staticRenderFns = []
|
2242 |
|
2243 |
|
2244 |
|
2245 |
|
2246 |
|
2247 | var Ajax = __webpack_require__("566f");
|
2248 |
|
2249 |
|
2250 |
|
2251 |
|
2252 |
|
2253 |
|
2254 |
|
2255 | var LogsQuartz = ({
|
2256 |
|
2257 | queryLogsQuartz: function queryLogsQuartz(params) {
|
2258 | return Ajax["a" ].get("/sys/quartz/getLoadJobHis", {
|
2259 | params: params
|
2260 | });
|
2261 | }
|
2262 | });
|
2263 |
|
2264 |
|
2265 |
|
2266 |
|
2267 |
|
2268 |
|
2269 |
|
2270 |
|
2271 |
|
2272 |
|
2273 |
|
2274 |
|
2275 |
|
2276 |
|
2277 |
|
2278 |
|
2279 |
|
2280 |
|
2281 |
|
2282 |
|
2283 |
|
2284 |
|
2285 |
|
2286 |
|
2287 |
|
2288 |
|
2289 |
|
2290 |
|
2291 |
|
2292 |
|
2293 |
|
2294 |
|
2295 |
|
2296 |
|
2297 |
|
2298 |
|
2299 |
|
2300 |
|
2301 |
|
2302 |
|
2303 |
|
2304 |
|
2305 |
|
2306 |
|
2307 |
|
2308 |
|
2309 |
|
2310 |
|
2311 |
|
2312 |
|
2313 |
|
2314 |
|
2315 |
|
2316 |
|
2317 |
|
2318 |
|
2319 |
|
2320 |
|
2321 |
|
2322 |
|
2323 |
|
2324 |
|
2325 |
|
2326 |
|
2327 |
|
2328 |
|
2329 |
|
2330 | var LogsQuartzvue_type_script_lang_js_ = ({
|
2331 | data: function data() {
|
2332 | return {
|
2333 | queryform: {
|
2334 | pcip: "",
|
2335 | pcname: "",
|
2336 | jobName: "",
|
2337 | startTime: null,
|
2338 | endTime: null,
|
2339 | logLevel: "1"
|
2340 | },
|
2341 | dateRange: [],
|
2342 | table: {
|
2343 | data: []
|
2344 | }
|
2345 | };
|
2346 | },
|
2347 | watch: {
|
2348 | dateRange: {
|
2349 | handler: function handler(val) {
|
2350 | if (val && val.length === 2) {
|
2351 | this.queryform.startTime = val[0];
|
2352 | this.queryform.endTime = val[1];
|
2353 | } else {
|
2354 | this.queryform.startTime = null;
|
2355 | this.queryform.endTime = null;
|
2356 | }
|
2357 | }
|
2358 | }
|
2359 | },
|
2360 | methods: {
|
2361 | queryData: function queryData() {
|
2362 | this.$refs.dataTable.load(this.queryform);
|
2363 | },
|
2364 | resetquery: function resetquery() {
|
2365 | this.$refs.queryform.resetFields();
|
2366 | this.queryform.logLevel = "1";
|
2367 | this.dateRange = [];
|
2368 | },
|
2369 | dataTableLoad: function dataTableLoad(params, resolve) {
|
2370 | var _this = this;
|
2371 |
|
2372 | LogsQuartz.queryLogsQuartz(params).then(resolve)
|
2373 | .then(function (respData) {
|
2374 | return _this.table.data = respData.datarows;
|
2375 | });
|
2376 | }
|
2377 | }
|
2378 | });
|
2379 |
|
2380 | var logs_LogsQuartzvue_type_script_lang_js_ = (LogsQuartzvue_type_script_lang_js_);
|
2381 |
|
2382 | var componentNormalizer = __webpack_require__("6691");
|
2383 |
|
2384 |
|
2385 |
|
2386 |
|
2387 |
|
2388 |
|
2389 |
|
2390 |
|
2391 |
|
2392 | var component = Object(componentNormalizer["a" ])(
|
2393 | logs_LogsQuartzvue_type_script_lang_js_,
|
2394 | render,
|
2395 | staticRenderFns,
|
2396 | false,
|
2397 | null,
|
2398 | null,
|
2399 | null
|
2400 |
|
2401 | )
|
2402 |
|
2403 | var logs_LogsQuartz = __webpack_exports__["default"] = (component.exports);
|
2404 |
|
2405 | }),
|
2406 |
|
2407 | "4919":
|
2408 | (function(module, exports) {
|
2409 |
|
2410 | module.exports = require("core-js/modules/es6.array.find");
|
2411 |
|
2412 | }),
|
2413 |
|
2414 | "49c6":
|
2415 | (function(module, __webpack_exports__, __webpack_require__) {
|
2416 |
|
2417 | "use strict";
|
2418 | __webpack_require__.r(__webpack_exports__);
|
2419 |
|
2420 |
|
2421 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"flex-h card-height-full"},[(_vm.rightBlock)?_c('el-card',{staticClass:"flex-2 full"},[_c('template',{slot:"header"},[_c('span',[_vm._v("系统组织机构一览")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-expand"},on:{"click":_vm.expandAll}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-check-square-o","title":"检查节点"},on:{"click":_vm.checkNode}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-wrench","title":"修复节点"},on:{"click":_vm.repairNode}}),_c('el-button',{attrs:{"type":"primary","icon":!_vm.leftBlock?'el-icon-caret-left':'el-icon-caret-right'},on:{"click":function($event){_vm.leftBlock=!_vm.leftBlock}}})],1)]),(_vm.showOrgTree)?_c('el-tree',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.saving),expression:"saving"}],ref:"orgTree",attrs:{"render-content":_vm.renderContent,"default-expand-all":_vm.expandedAll,"lazy":"","load":_vm.loadTree,"node-key":"uuid","current-node-key":_vm.currNode.uuid,"expand-on-click-node":false,"highlight-current":"","props":_vm.treeProps},on:{"current-change":_vm.currentChange}}):_vm._e()],2):_vm._e(),(_vm.leftBlock)?_c('el-card',{staticClass:"flex-2 margin-left-2 full",attrs:{"header":"组织机构编辑"}},[_c('template',{slot:"header"},[_c('span',[_vm._v("组织机构编辑")]),_c('div',{staticClass:"pull-right"},[(_vm.currNode.puuid!=="none"&&_vm.currNode.uuid)?_c('el-button',{attrs:{"type":"primary","title":"高级","icon":"el-icon-more"},on:{"click":function($event){_vm.showMore=!_vm.showMore}}}):_vm._e(),(_vm.currNode.puuid!=="none"&&_vm.currNode.uuid)?_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-save"},on:{"click":_vm.onSubmit}}):_vm._e(),_c('el-button',{attrs:{"type":"primary","icon":_vm.rightBlock?'el-icon-caret-left':'el-icon-caret-right'},on:{"click":function($event){_vm.rightBlock=!_vm.rightBlock}}})],1)]),(_vm.currNode.puuid!=="none"&&_vm.currNode.uuid)?_c('el-form',{ref:"form",attrs:{"rules":_vm.rules,"model":_vm.currNode,"label-position":"top"}},[_c('el-form-item',{attrs:{"label":"组织机构编码","prop":"orgCode","error":_vm.editor.error.orgCode}},[_c('el-input',{model:{value:(_vm.currNode.orgCode),callback:function ($$v) {_vm.$set(_vm.currNode, "orgCode", $$v)},expression:"currNode.orgCode"}})],1),_c('el-form-item',{attrs:{"prop":"puuid","label":"上级组织机构"}},[_c('Selector',{attrs:{"init-label":_vm.currParentNode.orgName,"clearable":true,"label-key":"label","value-key":"id","placeholder":"隶属组织机构"},model:{value:(_vm.currNode.puuid),callback:function ($$v) {_vm.$set(_vm.currNode, "puuid", $$v)},expression:"currNode.puuid"}},[_c('SelectorTree',{attrs:{"tree-key":"orgTree","rootLabel":"系统组织机构"}})],1)],1),_c('el-form-item',{attrs:{"label":"组织机构名称","prop":"orgName","error":_vm.editor.error.orgName}},[_c('el-input',{model:{value:(_vm.currNode.orgName),callback:function ($$v) {_vm.$set(_vm.currNode, "orgName", $$v)},expression:"currNode.orgName"}})],1),_c('el-form-item',{attrs:{"label":"组织机构描述","prop":"orgDesc","error":_vm.editor.error.orgDesc}},[_c('el-input',{attrs:{"type":"textarea"},model:{value:(_vm.currNode.orgDesc),callback:function ($$v) {_vm.$set(_vm.currNode, "orgDesc", $$v)},expression:"currNode.orgDesc"}})],1),(_vm.showMore)?[_c('el-form-item',{attrs:{"label":"负责人","prop":"orgMast","error":_vm.editor.error.orgMast}},[_c('el-input',{model:{value:(_vm.currNode.orgMast),callback:function ($$v) {_vm.$set(_vm.currNode, "orgMast", $$v)},expression:"currNode.orgMast"}})],1),_c('el-form-item',{attrs:{"label":"组织机构状态","prop":"orgStat","error":_vm.editor.error.orgStat}},[_c('el-radio-group',{model:{value:(_vm.currNode.orgStat),callback:function ($$v) {_vm.$set(_vm.currNode, "orgStat", $$v)},expression:"currNode.orgStat"}},[_c('el-radio',{attrs:{"label":"1"}},[_vm._v("可用")]),_c('el-radio',{attrs:{"label":"0"}},[_vm._v("禁用")])],1)],1),_c('el-form-item',{attrs:{"label":"组织机构简称","prop":"orgBrfName","error":_vm.editor.error.orgBrfName}},[_c('el-input',{attrs:{"type":"textarea"},model:{value:(_vm.currNode.orgBrfName),callback:function ($$v) {_vm.$set(_vm.currNode, "orgBrfName", $$v)},expression:"currNode.orgBrfName"}})],1),_c('el-form-item',{attrs:{"label":"邮政编码","prop":"orgPost","error":_vm.editor.error.orgPost}},[_c('el-input',{model:{value:(_vm.currNode.orgPost),callback:function ($$v) {_vm.$set(_vm.currNode, "orgPost", $$v)},expression:"currNode.orgPost"}})],1),_c('el-form-item',{attrs:{"label":"地址","prop":"orgAddr","error":_vm.editor.error.orgAddr}},[_c('el-input',{attrs:{"type":"textarea"},model:{value:(_vm.currNode.orgAddr),callback:function ($$v) {_vm.$set(_vm.currNode, "orgAddr", $$v)},expression:"currNode.orgAddr"}})],1)]:_vm._e()],2):_vm._e(),(_vm.currNode.puuid!=="none"&&_vm.currNode.uuid)?_c('HandleHistory',{staticClass:"margin-top-2",attrs:{"uuid":_vm.currNode.uuid,"cr-user-uuid":_vm.currNode.crUserUuid,"op-user-uuid":_vm.currNode.opUserUuid,"cr-time":_vm.currNode.crTime,"op-time":_vm.currNode.opTime,"mode":"plan"}}):_vm._e()],2):_vm._e()],1)}
|
2422 | var staticRenderFns = []
|
2423 |
|
2424 |
|
2425 |
|
2426 |
|
2427 |
|
2428 | var es6_object_assign_ = __webpack_require__("067b");
|
2429 |
|
2430 |
|
2431 | var web_dom_iterable_ = __webpack_require__("80a8");
|
2432 |
|
2433 |
|
2434 | var OrgAPI = __webpack_require__("17a8");
|
2435 |
|
2436 |
|
2437 | var HandleHistory = __webpack_require__("e66d");
|
2438 |
|
2439 |
|
2440 | var SelectorTree = __webpack_require__("3393");
|
2441 |
|
2442 |
|
2443 |
|
2444 |
|
2445 |
|
2446 |
|
2447 |
|
2448 |
|
2449 |
|
2450 |
|
2451 |
|
2452 |
|
2453 |
|
2454 |
|
2455 |
|
2456 |
|
2457 |
|
2458 |
|
2459 |
|
2460 |
|
2461 |
|
2462 |
|
2463 |
|
2464 |
|
2465 |
|
2466 |
|
2467 |
|
2468 |
|
2469 |
|
2470 |
|
2471 |
|
2472 |
|
2473 |
|
2474 |
|
2475 |
|
2476 |
|
2477 |
|
2478 |
|
2479 |
|
2480 |
|
2481 |
|
2482 |
|
2483 |
|
2484 |
|
2485 |
|
2486 |
|
2487 |
|
2488 |
|
2489 |
|
2490 |
|
2491 |
|
2492 |
|
2493 |
|
2494 |
|
2495 |
|
2496 |
|
2497 |
|
2498 |
|
2499 |
|
2500 |
|
2501 |
|
2502 |
|
2503 |
|
2504 |
|
2505 |
|
2506 |
|
2507 |
|
2508 |
|
2509 |
|
2510 |
|
2511 |
|
2512 |
|
2513 | var OrgMgrvue_type_script_lang_js_ = ({
|
2514 | name: "OrgMgr",
|
2515 | components: {
|
2516 | HandleHistory: HandleHistory["a" ],
|
2517 | SelectorTree: SelectorTree["a" ]
|
2518 | },
|
2519 | data: function data() {
|
2520 | return {
|
2521 | showMore: false,
|
2522 | leftBlock: true,
|
2523 | rightBlock: true,
|
2524 |
|
2525 | showOrgTree: true,
|
2526 | currParentNode: {},
|
2527 | currNode: {},
|
2528 | saving: false,
|
2529 | expandedAll: false,
|
2530 | editor: {
|
2531 | error: {}
|
2532 | },
|
2533 | rules: {
|
2534 | orgCode: [{
|
2535 | required: true,
|
2536 | message: "组织机构编码不能为空!"
|
2537 | }],
|
2538 | puuid: [{
|
2539 | required: true,
|
2540 | message: "上级组织机构不能为空!"
|
2541 | }],
|
2542 | orgName: [{
|
2543 | required: true,
|
2544 | message: "组织机构名称不能为空!"
|
2545 | }]
|
2546 | },
|
2547 | treeProps: {
|
2548 | isLeaf: "isLeaf"
|
2549 | }
|
2550 | };
|
2551 | },
|
2552 | mounted: function mounted() {},
|
2553 | methods: {
|
2554 | getTreeListen: function getTreeListen(orgId) {
|
2555 | var _this = this;
|
2556 |
|
2557 | OrgAPI["a" ].getCopyRoleTree(orgId).then(function (resp) {
|
2558 | if (_this.$refs.roleTree) {
|
2559 | _this.$refs.roleTree.root.setData({
|
2560 | children: resp.data
|
2561 | });
|
2562 |
|
2563 | if (_this.data.arrRoles) {
|
2564 | _this.$refs.roleTree.setCheckedKeys(_this.data.arrRoles, false);
|
2565 | }
|
2566 | }
|
2567 | });
|
2568 | },
|
2569 |
|
2570 | |
2571 |
|
2572 |
|
2573 | repairNode: function repairNode() {
|
2574 | OrgAPI["a" ].repairNode(this.currNode.uuid);
|
2575 | },
|
2576 |
|
2577 | |
2578 |
|
2579 |
|
2580 | checkNode: function checkNode() {
|
2581 | OrgAPI["a" ].checkNode(this.currNode.uuid);
|
2582 | },
|
2583 |
|
2584 | onSubmit: function onSubmit() {
|
2585 | var _this2 = this;
|
2586 |
|
2587 | this.$refs.form.validate(function (valid) {
|
2588 | if (valid) {
|
2589 | _this2.saving = true;
|
2590 | _this2.editor.error = {};
|
2591 | OrgAPI["a" ].editNode(_this2.currNode).then(function (data) {
|
2592 | _this2.saving = false;
|
2593 |
|
2594 | _this2.expandAll();
|
2595 |
|
2596 | _this2.expandedAll = true;
|
2597 | }).catch(function (error) {
|
2598 | _this2.editor.error = error.validError;
|
2599 | _this2.saving = false;
|
2600 | });
|
2601 | }
|
2602 | });
|
2603 | },
|
2604 |
|
2605 | expandAll: function expandAll() {
|
2606 | var _this3 = this;
|
2607 |
|
2608 | if (this.expandedAll) {
|
2609 | this.saving = true;
|
2610 | this.showOrgTree = false;
|
2611 | this.expandedAll = false;
|
2612 | setTimeout(function () {
|
2613 | _this3.showOrgTree = true;
|
2614 | _this3.saving = false;
|
2615 | }, 200);
|
2616 | return;
|
2617 | }
|
2618 |
|
2619 | this.expandedAll = true;
|
2620 |
|
2621 | var expandFn = function expandFn(element, expand) {
|
2622 | element.childNodes.forEach(function (element) {
|
2623 | if (!element.isLeaf) {
|
2624 | element.expand(function () {
|
2625 | expandFn(element);
|
2626 | });
|
2627 | }
|
2628 | }, _this3);
|
2629 | };
|
2630 |
|
2631 | expandFn(this.$refs.orgTree.root);
|
2632 | },
|
2633 |
|
2634 | currentChange: function currentChange(data, node) {
|
2635 | this.currParentNode = node.parent.data || data;
|
2636 | this.currNode = data || {};
|
2637 | },
|
2638 |
|
2639 | loadTree: function loadTree(node, resolve) {
|
2640 | var puuid = "none";
|
2641 |
|
2642 | if (node.data) {
|
2643 | puuid = node.data.uuid;
|
2644 | }
|
2645 |
|
2646 | OrgAPI["a" ].getChildren(puuid).then(function (resp) {
|
2647 | return resp.data && resolve(resp.data);
|
2648 | });
|
2649 | },
|
2650 |
|
2651 | addNode: function addNode(node) {
|
2652 | var _this4 = this;
|
2653 |
|
2654 | var newNode = {
|
2655 | orgName: "新建组织机构",
|
2656 | orgCode: "请填写组织机构代码",
|
2657 | orgStat: "1",
|
2658 | puuid: node.data.uuid
|
2659 | };
|
2660 | this.saving = true;
|
2661 | this.currParentNode.orgName = node.data.orgName;
|
2662 | OrgAPI["a" ].editNode(newNode).then(function (data) {
|
2663 | Object.assign(newNode, {
|
2664 | uuid: data.uuid,
|
2665 | opUserUuid: _this4.$store.state.base.sysUser.uuid,
|
2666 | crUserUuid: _this4.$store.state.base.sysUser.uuid
|
2667 | });
|
2668 |
|
2669 | _this4.saving = false;
|
2670 |
|
2671 | node.insertChild({
|
2672 | data: newNode
|
2673 | });
|
2674 |
|
2675 | node.expand(function () {
|
2676 | _this4.currNode = newNode;
|
2677 | });
|
2678 | }).catch(function () {
|
2679 | _this4.saving = false;
|
2680 | });
|
2681 | },
|
2682 |
|
2683 | removeNode: function removeNode(node) {
|
2684 | var _this5 = this;
|
2685 |
|
2686 |
|
2687 | var action = function action(data) {
|
2688 | _this5.saving = true;
|
2689 | OrgAPI["a" ].delNode(data.uuid).then(function (data) {
|
2690 | _this5.saving = false;
|
2691 | node.parent.removeChild(node);
|
2692 | }).catch(function () {
|
2693 | _this5.saving = false;
|
2694 | });
|
2695 | };
|
2696 |
|
2697 |
|
2698 | this.confirm(node.data).then(action);
|
2699 | },
|
2700 |
|
2701 | refreshNode: function refreshNode(node) {
|
2702 | node.loaded = false;
|
2703 | node.expand(function () {});
|
2704 | },
|
2705 |
|
2706 | renderContent: function renderContent(h, _ref) {
|
2707 | var _this6 = this;
|
2708 |
|
2709 | var node = _ref.node,
|
2710 | data = _ref.data,
|
2711 | store = _ref.store;
|
2712 | var addBtn = h("el-button", {
|
2713 | "attrs": {
|
2714 | "icon": "el-icon-fa-plus",
|
2715 | "disabled": data.puuid === "none"
|
2716 | },
|
2717 | "on": {
|
2718 | "click": function click() {
|
2719 | return _this6.addNode(node);
|
2720 | }
|
2721 | }
|
2722 | });
|
2723 | var refresh = h("el-button", {
|
2724 | "attrs": {
|
2725 | "icon": "el-icon-fa-refresh"
|
2726 | },
|
2727 | "on": {
|
2728 | "click": function click() {
|
2729 | return _this6.refreshNode(node);
|
2730 | }
|
2731 | }
|
2732 | });
|
2733 | var deleteBtn = h("el-button", {
|
2734 | "attrs": {
|
2735 | "icon": "el-icon-fa-minus",
|
2736 | "disabled": data.puuid === "none"
|
2737 | },
|
2738 | "on": {
|
2739 | "click": function click() {
|
2740 | _this6.removeNode(node);
|
2741 | }
|
2742 | }
|
2743 | });
|
2744 | return h("div", [h("span", [h("span", {
|
2745 | "class": "removed-line-through" + data.orgStat == "0"
|
2746 | }, [h("i", {
|
2747 | "class": "el-icon-fa el-icon-fa-sitemap margin-right-2"
|
2748 | }), data.orgName])]), h("span", {
|
2749 | "style": "position:absolute;right:20px;"
|
2750 | }, [h("el-button-group", [refresh, addBtn, deleteBtn])])]);
|
2751 | }
|
2752 | }
|
2753 | });
|
2754 |
|
2755 | var usrm_OrgMgrvue_type_script_lang_js_ = (OrgMgrvue_type_script_lang_js_);
|
2756 |
|
2757 | var componentNormalizer = __webpack_require__("6691");
|
2758 |
|
2759 |
|
2760 |
|
2761 |
|
2762 |
|
2763 |
|
2764 |
|
2765 |
|
2766 |
|
2767 | var component = Object(componentNormalizer["a" ])(
|
2768 | usrm_OrgMgrvue_type_script_lang_js_,
|
2769 | render,
|
2770 | staticRenderFns,
|
2771 | false,
|
2772 | null,
|
2773 | null,
|
2774 | null
|
2775 |
|
2776 | )
|
2777 |
|
2778 | var OrgMgr = __webpack_exports__["default"] = (component.exports);
|
2779 |
|
2780 | }),
|
2781 |
|
2782 | "4ddc":
|
2783 | (function(module, exports, __webpack_require__) {
|
2784 |
|
2785 |
|
2786 |
|
2787 | }),
|
2788 |
|
2789 | "4f25":
|
2790 | (function(module, exports) {
|
2791 |
|
2792 | module.exports = require("vue-moment");
|
2793 |
|
2794 | }),
|
2795 |
|
2796 | "515c":
|
2797 | (function(module, __webpack_exports__, __webpack_require__) {
|
2798 |
|
2799 | "use strict";
|
2800 | __webpack_require__.r(__webpack_exports__);
|
2801 |
|
2802 |
|
2803 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',{staticClass:"flex-1"},[_c('template',{slot:"header"},[_c('span',[_vm._v("登录日志管理")])]),_c('el-form',{ref:"queryform",attrs:{"model":_vm.queryform}},[_c('el-row',[_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"服务器IP","prop":"svrIp"}},[_c('el-input',{model:{value:(_vm.queryform.svrIp),callback:function ($$v) {_vm.$set(_vm.queryform, "svrIp", $$v)},expression:"queryform.svrIp"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"登录账号","prop":"userId"}},[_c('el-input',{model:{value:(_vm.queryform.userId),callback:function ($$v) {_vm.$set(_vm.queryform, "userId", $$v)},expression:"queryform.userId"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"处理结果","prop":"sesId"}},[_c('el-select',{directives:[{name:"sys-code",rawName:"v-sys-code",value:('questionType'),expression:"'questionType'"}],attrs:{"placeholder":"请选择","clearable":""},model:{value:(_vm.queryform.respcode),callback:function ($$v) {_vm.$set(_vm.queryform, "respcode", $$v)},expression:"queryform.respcode"}},_vm._l((_vm.RESPCODE),function(item){return _c('el-option',{key:item.key,attrs:{"label":item.label,"value":item.key}})}),1)],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"登录开始时间","prop":"actSta"}},[_c('el-date-picker',{attrs:{"type":"date","value-format":"timestamp"},model:{value:(_vm.queryform.actSta),callback:function ($$v) {_vm.$set(_vm.queryform, "actSta", $$v)},expression:"queryform.actSta"}})],1)],1)],1)],1)],2),_c('el-card',{staticClass:"flex-1 margin-top-2"},[_c('template',{slot:"header"},[_c('span',[_vm._v("登录日志列表")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search","title":"查询"},on:{"click":_vm.queryData}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-reply-all","title":"重置"},on:{"click":_vm.resetquery}})],1)]),_c('PageTable',{ref:"dataTable",attrs:{"hideTitle":"","auto-load":true,"page-size":10,"data":_vm.table.data,"highlight-current-row":"","stripe":"","border":""},on:{"load-data":_vm.dataTableLoad}},[_c('el-table-column',{attrs:{"prop":"userid","label":"登录账号","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"username","label":"用户名称","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"svrip","label":"服务器地址","width":"100px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"svrname","label":"服务器名称","width":"100px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"logtype","dict":"logtype","label":"登录类型"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('SysCode',{attrs:{"type":'logtype',"value":scope.row.logtype}})]}}])}),_c('el-table-column',{attrs:{"prop":"reqip","label":"请求者地址","width":"100px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"acttype","dict":"acttype","label":"协议类型"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('SysCode',{attrs:{"type":'acttype',"value":scope.row.acttype}})]}}])}),_c('el-table-column',{attrs:{"prop":"sesid","label":"会话标识","width":"250px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"actsta","label":"操作时间","formatter":_vm.formatterDateTime,"width":"150px"}}),_c('el-table-column',{attrs:{"prop":"optime","label":"操作耗时","placement":"top","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"respcode","label":"处理代码","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n "+_vm._s(scope.row.respcode+':'+(scope.row.respcode=="000000"?"请求处理成功":scope.row.respcode=="000100"?"用户会话超时":scope.row.respcode=="000200"?"安全服务错误":scope.row.respcode=="000300"?"校验服务错误":scope.row.respcode=="000400"?"系统后台错误":scope.row.respcode=="000500"?"网络服务错误":"未知错误"))+"\n ")]}}])}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"100","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-eye","title":"查看详情"},on:{"click":function($event){return _vm.showInfo(scope.row.uuid)}}}),(scope.row.servflag)?_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-bookmark-o","title":"查看会话服务"},on:{"click":function($event){return _vm.showService(scope.row.sesid)}}}):_vm._e(),(scope.row.operflag)?_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-exchange","title":"查看会话操作"},on:{"click":function($event){return _vm.showSession(scope.row.sesid)}}}):_vm._e()]}}])})],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看详情","visible":_vm.currentInfo.show,"width":"600px"},on:{"update:visible":function($event){return _vm.$set(_vm.currentInfo, "show", $event)}}},[(_vm.currentInfo.show)?_c('SignInfo',{attrs:{"uuid":_vm.currentInfo.uuid,"error":_vm.currentInfo.error}}):_vm._e()],1)],2)],1)}
|
2804 | var staticRenderFns = []
|
2805 |
|
2806 |
|
2807 |
|
2808 |
|
2809 |
|
2810 | var es6_function_name_ = __webpack_require__("25fc");
|
2811 |
|
2812 |
|
2813 | var es6_array_find_index_ = __webpack_require__("0736");
|
2814 |
|
2815 |
|
2816 | var runtime_ = __webpack_require__("79d0");
|
2817 |
|
2818 |
|
2819 | var asyncToGenerator = __webpack_require__("e71e");
|
2820 |
|
2821 |
|
2822 | var LogsSignInfovue_type_template_id_1adbf638_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-form',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:"form ",attrs:{"label-position":"top","model":_vm.data}},[_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"登录名 ","prop":"userid "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.userid ),callback:function ($$v) {_vm.$set(_vm.data, "userid", $$v)},expression:"data.userid "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"用户名 ","prop":"username "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.username ),callback:function ($$v) {_vm.$set(_vm.data, "username", $$v)},expression:"data.username "}})],1)],1)],1),_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"服务器地址 ","prop":"svrip "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.svrip ),callback:function ($$v) {_vm.$set(_vm.data, "svrip", $$v)},expression:"data.svrip "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"服务器名称 ","prop":"respDesc "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.svrname ),callback:function ($$v) {_vm.$set(_vm.data, "svrname", $$v)},expression:"data.svrname "}})],1)],1)],1),_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"处理代码 ","prop":"respcode "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.respcode ),callback:function ($$v) {_vm.$set(_vm.data, "respcode", $$v)},expression:"data.respcode "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"处理描述 ","prop":"respdesc "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.respdesc ),callback:function ($$v) {_vm.$set(_vm.data, "respdesc", $$v)},expression:"data.respdesc "}})],1)],1)],1),_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"请求地址 ","prop":"reqip "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.reqip ),callback:function ($$v) {_vm.$set(_vm.data, "reqip", $$v)},expression:"data.reqip "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"登录类型 ","prop":"logtype "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.logtype ),callback:function ($$v) {_vm.logtype =$$v},expression:"logtype "}})],1)],1)],1),_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"操作开始时间 ","prop":"actsta "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.actsta ),callback:function ($$v) {_vm.actsta =$$v},expression:"actsta "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"操作结束时间 ","prop":"actend "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.actend ),callback:function ($$v) {_vm.actend =$$v},expression:"actend "}})],1)],1)],1),_c('el-form-item',{attrs:{"label":"请求终端类型 ","prop":"devtype "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.devtype ),callback:function ($$v) {_vm.$set(_vm.data, "devtype", $$v)},expression:"data.devtype "}})],1)],1)],1)}
|
2823 | var LogsSignInfovue_type_template_id_1adbf638_scoped_true_staticRenderFns = []
|
2824 |
|
2825 |
|
2826 | // CONCATENATED MODULE: ./base/module/logs/LogsSignInfo.vue?vue&type=template&id=1adbf638&scoped=true&
|
2827 |
|
2828 | // EXTERNAL MODULE: external "core-js/modules/web.dom.iterable"
|
2829 | var web_dom_iterable_ = __webpack_require__("80a8");
|
2830 |
|
2831 | // EXTERNAL MODULE: external "core-js/modules/es6.object.assign"
|
2832 | var es6_object_assign_ = __webpack_require__("067b");
|
2833 |
|
2834 | // EXTERNAL MODULE: ./base/libs/Ajax.js
|
2835 | var Ajax = __webpack_require__("566f");
|
2836 |
|
2837 | // CONCATENATED MODULE: ./base/api/base/logs/LogsSign.js
|
2838 |
|
2839 | /**
|
2840 | * 登录日志管理父页面
|
2841 | */
|
2842 |
|
2843 | /* harmony default export */ var LogsSign = ({
|
2844 |
|
2845 | queryLogsSign: function queryLogsSign(params) {
|
2846 | return Ajax["a" ].get("/logs/LogsSign/queryLogsSign", {
|
2847 | params: params
|
2848 | });
|
2849 | },
|
2850 |
|
2851 | queryLogsOper: function queryLogsOper(params) {
|
2852 | return Ajax["a" ].get("/logs/LogsSign/queryLogsOper", {
|
2853 | params: params
|
2854 | });
|
2855 | },
|
2856 |
|
2857 | queryLogsServ: function queryLogsServ(params) {
|
2858 | return Ajax["a" ].get("/logs/LogsSign/queryLogsServ", {
|
2859 | params: params
|
2860 | });
|
2861 | },
|
2862 | getLogsSignByUuid: function getLogsSignByUuid(uuid) {
|
2863 | return Ajax["a" ].get("/logs/LogsSign/getLogsSignByUuid", {
|
2864 | params: {
|
2865 | uuid: uuid
|
2866 | }
|
2867 | });
|
2868 | }
|
2869 | });
|
2870 |
|
2871 |
|
2872 |
|
2873 |
|
2874 |
|
2875 |
|
2876 |
|
2877 |
|
2878 |
|
2879 |
|
2880 |
|
2881 |
|
2882 |
|
2883 |
|
2884 |
|
2885 |
|
2886 |
|
2887 |
|
2888 |
|
2889 |
|
2890 |
|
2891 |
|
2892 |
|
2893 |
|
2894 |
|
2895 |
|
2896 |
|
2897 |
|
2898 |
|
2899 |
|
2900 |
|
2901 |
|
2902 |
|
2903 |
|
2904 |
|
2905 |
|
2906 |
|
2907 |
|
2908 |
|
2909 |
|
2910 |
|
2911 |
|
2912 |
|
2913 |
|
2914 |
|
2915 |
|
2916 |
|
2917 |
|
2918 |
|
2919 |
|
2920 |
|
2921 |
|
2922 |
|
2923 |
|
2924 |
|
2925 |
|
2926 |
|
2927 |
|
2928 |
|
2929 |
|
2930 |
|
2931 |
|
2932 |
|
2933 |
|
2934 |
|
2935 |
|
2936 |
|
2937 |
|
2938 |
|
2939 |
|
2940 |
|
2941 |
|
2942 |
|
2943 | var LogsSignInfovue_type_script_lang_js_ = ({
|
2944 | components: {
|
2945 | SignAPI: LogsSign
|
2946 | },
|
2947 | props: {
|
2948 |
|
2949 | uuid: String,
|
2950 |
|
2951 | error: Object
|
2952 | },
|
2953 | data: function data() {
|
2954 | return {
|
2955 | loading: false,
|
2956 | data: Object.assign({}),
|
2957 | logtype: "",
|
2958 | actsta: "",
|
2959 | actend: ""
|
2960 | };
|
2961 | },
|
2962 | watch: {
|
2963 | uuid: function uuid(val) {
|
2964 | this.loadData();
|
2965 | }
|
2966 | },
|
2967 | mounted: function mounted() {
|
2968 |
|
2969 | this.loadData();
|
2970 | },
|
2971 | methods: {
|
2972 |
|
2973 |
|
2974 | validate: function validate() {
|
2975 | var _this = this;
|
2976 |
|
2977 | return this.$refs.form.validate().then(function () {
|
2978 | return _this.data;
|
2979 | });
|
2980 | },
|
2981 |
|
2982 | loadData: function loadData() {
|
2983 | var _this2 = this;
|
2984 |
|
2985 | if (!this.uuid) {
|
2986 | this.$refs.form.resetFields();
|
2987 | } else {
|
2988 | this.loading = true;
|
2989 | LogsSign.getLogsSignByUuid(this.uuid).then(function (respData) {
|
2990 | _this2.data = respData.datarows[0];
|
2991 | _this2.loading = false;
|
2992 | _this2.logtype = _this2.loginFormat(_this2.data.logtype);
|
2993 | _this2.actsta = _this2.formatterDateTime(null, null, respData.datarows[0].actsta);
|
2994 | _this2.actend = _this2.formatterDateTime(null, null, respData.datarows[0].actend);
|
2995 | }).catch(function (resp) {});
|
2996 | }
|
2997 | },
|
2998 |
|
2999 | loginFormat: function loginFormat(par) {
|
3000 | var stat = "";
|
3001 |
|
3002 | if (this.sysCode.loginType === undefined) {
|
3003 | this.refresh();
|
3004 | }
|
3005 |
|
3006 | this.sysCode.loginType.forEach(function (val) {
|
3007 | if (par === val.value) {
|
3008 | stat = val.label;
|
3009 | return;
|
3010 | }
|
3011 | });
|
3012 | return stat;
|
3013 | },
|
3014 | refresh: function refresh() {
|
3015 | this.$store.dispatch("base/refreshSysCode", "loginType");
|
3016 | }
|
3017 | }
|
3018 | });
|
3019 |
|
3020 | var logs_LogsSignInfovue_type_script_lang_js_ = (LogsSignInfovue_type_script_lang_js_);
|
3021 |
|
3022 | var componentNormalizer = __webpack_require__("6691");
|
3023 |
|
3024 |
|
3025 |
|
3026 |
|
3027 |
|
3028 |
|
3029 |
|
3030 |
|
3031 |
|
3032 | var component = Object(componentNormalizer["a" ])(
|
3033 | logs_LogsSignInfovue_type_script_lang_js_,
|
3034 | LogsSignInfovue_type_template_id_1adbf638_scoped_true_render,
|
3035 | LogsSignInfovue_type_template_id_1adbf638_scoped_true_staticRenderFns,
|
3036 | false,
|
3037 | null,
|
3038 | "1adbf638",
|
3039 | null
|
3040 |
|
3041 | )
|
3042 |
|
3043 | var LogsSignInfo = (component.exports);
|
3044 |
|
3045 | var SessionOpervue_type_template_id_784c4920_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:"flex-1"},[_c('PageTable',{ref:"dataTable",attrs:{"auto-load":false,"page-size":10,"data":_vm.table.data,"highlight-current-row":"","stripe":"","border":""},on:{"load-data":_vm.dataTableLoad}},[_c('el-table-column',{attrs:{"prop":"actdefn","label":"操作定义","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"actdesc","label":"操作描述","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"reqip","width":"100px","label":"请求者地址"}}),_c('el-table-column',{attrs:{"prop":"actsta","label":"登录开始时间","formatter":_vm.formatterDateTime,"width":"150px"}}),_c('el-table-column',{attrs:{"prop":"actend","label":"登录结束时间","formatter":_vm.formatterDateTime,"width":"150px"}}),_c('el-table-column',{attrs:{"prop":"devtype","label":"请求终端类型","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"处理代码","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n "+_vm._s(scope.row.respcode+':'+(scope.row.respcode=="000000"?"请求处理成功":scope.row.respcode=="000100"?"用户会话超时":scope.row.respcode=="000200"?"安全服务错误":scope.row.respcode=="000300"?"校验服务错误":scope.row.respcode=="000400"?"系统后台错误":scope.row.respcode=="000500"?"网络服务错误":"未知错误"))+"\n ")]}}])}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search","title":"查看数据"},on:{"click":function($event){return _vm.showData(scope.row.uuid)}}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-info","title":"查看服务"},on:{"click":function($event){return _vm.showServ(scope.row.uuid)}}}),(scope.row.stakinfo)?_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-book","title":"查看堆栈信息"},on:{"click":function($event){return _vm.showStak(scope.row.stakinfo)}}}):_vm._e()]}}])})],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看数据","visible":_vm.editor.datashow},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "datashow", $event)}}},[_c('LogsOperData',{attrs:{"uuid":_vm.editor.uuid}})],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看服务","visible":_vm.editor.servshow},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "servshow", $event)}}},[(_vm.editor.servshow)?_c('SessionServ',{attrs:{"opid":_vm.editor.opid}}):_vm._e()],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看堆栈信息","visible":_vm.editor.stakshow,"readonly":""},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "stakshow", $event)}}},[[(_vm.stakinfo)?_c('el-input',{attrs:{"type":"textarea","rows":30},model:{value:(_vm.stakinfo),callback:function ($$v) {_vm.stakinfo=$$v},expression:"stakinfo"}}):_vm._e()]],2)],1)}
|
3046 | var SessionOpervue_type_template_id_784c4920_staticRenderFns = []
|
3047 |
|
3048 |
|
3049 |
|
3050 |
|
3051 |
|
3052 | var LogsOperData = __webpack_require__("aa21");
|
3053 |
|
3054 |
|
3055 | var SessionServvue_type_template_id_134ab266_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('PageTable',{ref:"dataTable",attrs:{"auto-load":false,"page-size":10,"data":_vm.table.data,"highlight-current-row":"","stripe":"","border":""},on:{"load-data":_vm.dataTableLoad}},[_c('el-table-column',{attrs:{"prop":"svrname","label":"服务器名称","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"servdefn","label":"服务器定义","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"servdesc","label":"服务器信息","width":"140px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"servsta","label":"服务开始时间","formatter":_vm.formatterDate,"width":"150px"}}),_c('el-table-column',{attrs:{"prop":"servend","label":"服务结束时间","formatter":_vm.formatterDate,"width":"150px"}}),_c('el-table-column',{attrs:{"prop":"respcode","label":"处理代码","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"respdesc","label":"处理描述","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search","title":"查看数据"},on:{"click":function($event){return _vm.showData(scope.row.opuuid)}}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-info","title":"查看SQL"},on:{"click":function($event){return _vm.showSQL(scope.row.uuid)}}}),(scope.row.stakinfo)?_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-book","title":"查看堆栈信息"},on:{"click":function($event){return _vm.showStak(scope.row.stakinfo)}}}):_vm._e()]}}])})],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看数据","visible":_vm.editor.datashow},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "datashow", $event)}}},[_c('LogsOperData',{attrs:{"uuid":_vm.editor.uuid}})],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看SQL","visible":_vm.editor.sqlshow},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "sqlshow", $event)}}},[_c('LogsSqlData',{attrs:{"seuuid":_vm.editor.seuuid}})],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看堆栈信息","visible":_vm.editor.stakshow,"readonly":""},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "stakshow", $event)}}},[[(_vm.stakinfo)?_c('el-input',{attrs:{"rows":30,"type":"textarea","readonly":""},model:{value:(_vm.stakinfo),callback:function ($$v) {_vm.stakinfo=$$v},expression:"stakinfo"}}):_vm._e(),(!_vm.stakinfo)?_c('h1',{staticStyle:{"text-align":"center","font-size":"6px","height":"300px","line-height":"300px"}},[_vm._v("暂无数据")]):_vm._e()]],2)],1)}
|
3056 | var SessionServvue_type_template_id_134ab266_staticRenderFns = []
|
3057 |
|
3058 |
|
3059 |
|
3060 |
|
3061 |
|
3062 | var LogsSqlData = __webpack_require__("de68");
|
3063 |
|
3064 |
|
3065 |
|
3066 |
|
3067 |
|
3068 |
|
3069 |
|
3070 |
|
3071 |
|
3072 |
|
3073 |
|
3074 |
|
3075 |
|
3076 |
|
3077 |
|
3078 |
|
3079 |
|
3080 |
|
3081 |
|
3082 |
|
3083 |
|
3084 |
|
3085 |
|
3086 |
|
3087 |
|
3088 |
|
3089 |
|
3090 |
|
3091 |
|
3092 |
|
3093 |
|
3094 |
|
3095 |
|
3096 |
|
3097 |
|
3098 |
|
3099 |
|
3100 |
|
3101 |
|
3102 |
|
3103 | var SessionServvue_type_script_lang_js_ = ({
|
3104 | components: {
|
3105 | LogsOperData: LogsOperData["a" ],
|
3106 | LogsSqlData: LogsSqlData["a" ]
|
3107 | },
|
3108 | props: {
|
3109 | uuid: null,
|
3110 | opid: null,
|
3111 | seuuid: null
|
3112 | },
|
3113 | data: function data() {
|
3114 | return {
|
3115 | stakinfo: "",
|
3116 | sql: "",
|
3117 | editor: {
|
3118 | uuid: null,
|
3119 | opid: null,
|
3120 | seuuid: null,
|
3121 | datashow: false,
|
3122 | sqlshow: false,
|
3123 | stakshow: false,
|
3124 | visible: false,
|
3125 |
|
3126 | loading: true
|
3127 | },
|
3128 | table: {
|
3129 | data: []
|
3130 | }
|
3131 | };
|
3132 | },
|
3133 | mounted: function mounted() {
|
3134 | this.loadInfo(this.uuid, this.opid);
|
3135 | },
|
3136 | watch: {
|
3137 | uuid: function uuid(_uuid) {
|
3138 | this.loadInfo(_uuid);
|
3139 | },
|
3140 | opid: function opid(_opid) {
|
3141 | this.loadInfo(_opid);
|
3142 | }
|
3143 | },
|
3144 | methods: {
|
3145 | showStak: function showStak(stakinfo) {
|
3146 | this.editor.stakshow = true;
|
3147 | this.stakinfo = stakinfo;
|
3148 | },
|
3149 | showSQL: function showSQL(seuuid) {
|
3150 | this.editor.seuuid = seuuid;
|
3151 | this.editor.sqlshow = true;
|
3152 | },
|
3153 | showData: function showData(uuid) {
|
3154 | this.editor.uuid = uuid;
|
3155 | this.editor.datashow = true;
|
3156 | },
|
3157 |
|
3158 | loadInfo: function loadInfo(uuid, opid) {
|
3159 | this.$refs.dataTable.load({
|
3160 | opid: opid,
|
3161 | sesId: uuid
|
3162 | });
|
3163 | },
|
3164 | queryData: function queryData() {},
|
3165 | dataTableLoad: function dataTableLoad(params, resolve) {
|
3166 | var _this = this;
|
3167 |
|
3168 | LogsSign.queryLogsServ(params).then(resolve)
|
3169 | .then(function (respData) {
|
3170 | return _this.table.data = respData.datarows;
|
3171 | });
|
3172 | }
|
3173 | }
|
3174 | });
|
3175 |
|
3176 | var logs_SessionServvue_type_script_lang_js_ = (SessionServvue_type_script_lang_js_);
|
3177 |
|
3178 |
|
3179 |
|
3180 |
|
3181 |
|
3182 |
|
3183 |
|
3184 |
|
3185 | var SessionServ_component = Object(componentNormalizer["a" ])(
|
3186 | logs_SessionServvue_type_script_lang_js_,
|
3187 | SessionServvue_type_template_id_134ab266_render,
|
3188 | SessionServvue_type_template_id_134ab266_staticRenderFns,
|
3189 | false,
|
3190 | null,
|
3191 | null,
|
3192 | null
|
3193 |
|
3194 | )
|
3195 |
|
3196 | var SessionServ = (SessionServ_component.exports);
|
3197 |
|
3198 |
|
3199 |
|
3200 |
|
3201 |
|
3202 |
|
3203 |
|
3204 |
|
3205 |
|
3206 |
|
3207 |
|
3208 |
|
3209 |
|
3210 |
|
3211 |
|
3212 |
|
3213 |
|
3214 |
|
3215 |
|
3216 |
|
3217 |
|
3218 |
|
3219 |
|
3220 |
|
3221 |
|
3222 |
|
3223 |
|
3224 |
|
3225 |
|
3226 |
|
3227 |
|
3228 |
|
3229 |
|
3230 |
|
3231 |
|
3232 |
|
3233 |
|
3234 |
|
3235 |
|
3236 |
|
3237 |
|
3238 | var SessionOpervue_type_script_lang_js_ = ({
|
3239 | components: {
|
3240 | LogsOperData: LogsOperData["a" ],
|
3241 | SessionServ: SessionServ
|
3242 | },
|
3243 | props: {
|
3244 | uuid: null
|
3245 | },
|
3246 | data: function data() {
|
3247 | return {
|
3248 | stakinfo: "",
|
3249 | table: {
|
3250 | data: []
|
3251 | },
|
3252 | editor: {
|
3253 | uuid: null,
|
3254 | datashow: false,
|
3255 | servshow: false,
|
3256 | stakshow: false,
|
3257 | visible: false,
|
3258 |
|
3259 | loading: true
|
3260 | }
|
3261 | };
|
3262 | },
|
3263 | mounted: function mounted() {
|
3264 | this.loadInfo(this.uuid);
|
3265 | },
|
3266 | watch: {
|
3267 | uuid: function uuid(_uuid) {
|
3268 | this.loadInfo(this.uuid);
|
3269 | }
|
3270 | },
|
3271 | methods: {
|
3272 | showStak: function showStak(stakinfo) {
|
3273 | this.editor.stakshow = true;
|
3274 | this.stakinfo = stakinfo;
|
3275 | },
|
3276 | showData: function showData(uuid) {
|
3277 | this.editor.uuid = uuid;
|
3278 | this.editor.datashow = true;
|
3279 | },
|
3280 | showServ: function showServ(opid) {
|
3281 | this.editor.opid = opid;
|
3282 | this.editor.servshow = true;
|
3283 | },
|
3284 |
|
3285 | loadInfo: function loadInfo(uuid) {
|
3286 | this.$refs.dataTable.load({
|
3287 | sesId: uuid
|
3288 | });
|
3289 | },
|
3290 | queryData: function queryData() {},
|
3291 | dataTableLoad: function dataTableLoad(params, resolve) {
|
3292 | var _this = this;
|
3293 |
|
3294 | LogsSign.queryLogsOper(params).then(resolve)
|
3295 | .then(function (respData) {
|
3296 | return _this.table.data = respData.datarows;
|
3297 | });
|
3298 | }
|
3299 | }
|
3300 | });
|
3301 |
|
3302 | var logs_SessionOpervue_type_script_lang_js_ = (SessionOpervue_type_script_lang_js_);
|
3303 |
|
3304 |
|
3305 |
|
3306 |
|
3307 |
|
3308 |
|
3309 |
|
3310 |
|
3311 | var SessionOper_component = Object(componentNormalizer["a" ])(
|
3312 | logs_SessionOpervue_type_script_lang_js_,
|
3313 | SessionOpervue_type_template_id_784c4920_render,
|
3314 | SessionOpervue_type_template_id_784c4920_staticRenderFns,
|
3315 | false,
|
3316 | null,
|
3317 | null,
|
3318 | null
|
3319 |
|
3320 | )
|
3321 |
|
3322 | var SessionOper = (SessionOper_component.exports);
|
3323 |
|
3324 |
|
3325 |
|
3326 |
|
3327 |
|
3328 |
|
3329 |
|
3330 |
|
3331 |
|
3332 |
|
3333 |
|
3334 |
|
3335 |
|
3336 |
|
3337 |
|
3338 |
|
3339 |
|
3340 |
|
3341 |
|
3342 |
|
3343 |
|
3344 |
|
3345 |
|
3346 |
|
3347 |
|
3348 |
|
3349 |
|
3350 |
|
3351 |
|
3352 |
|
3353 |
|
3354 |
|
3355 |
|
3356 |
|
3357 |
|
3358 |
|
3359 |
|
3360 |
|
3361 |
|
3362 |
|
3363 |
|
3364 |
|
3365 |
|
3366 |
|
3367 |
|
3368 |
|
3369 |
|
3370 |
|
3371 |
|
3372 |
|
3373 |
|
3374 |
|
3375 |
|
3376 |
|
3377 |
|
3378 |
|
3379 |
|
3380 |
|
3381 |
|
3382 |
|
3383 |
|
3384 |
|
3385 |
|
3386 |
|
3387 |
|
3388 |
|
3389 |
|
3390 |
|
3391 |
|
3392 |
|
3393 |
|
3394 |
|
3395 |
|
3396 |
|
3397 |
|
3398 |
|
3399 |
|
3400 |
|
3401 |
|
3402 |
|
3403 |
|
3404 |
|
3405 |
|
3406 |
|
3407 |
|
3408 |
|
3409 |
|
3410 |
|
3411 |
|
3412 |
|
3413 |
|
3414 | var LogsSignvue_type_script_lang_js_ = ({
|
3415 | components: {
|
3416 | SessionOper: SessionOper,
|
3417 | SessionServ: SessionServ,
|
3418 | SignInfo: LogsSignInfo
|
3419 | },
|
3420 | data: function data() {
|
3421 | return {
|
3422 | queryform: {
|
3423 | svrIp: "",
|
3424 | userId: "",
|
3425 | respCode: "",
|
3426 | actSta: "",
|
3427 | respcode: ""
|
3428 | },
|
3429 | RESPCODE: [{
|
3430 | key: "1",
|
3431 | label: "成功"
|
3432 | }, {
|
3433 | key: "2",
|
3434 | label: "失败"
|
3435 | }],
|
3436 | table: {
|
3437 | data: []
|
3438 | },
|
3439 | currentInfo: {
|
3440 | error: {},
|
3441 | uuid: "",
|
3442 | show: false,
|
3443 | loading: false
|
3444 | }
|
3445 | };
|
3446 | },
|
3447 | methods: {
|
3448 | showInfo: function showInfo(uuid) {
|
3449 | this.currentInfo.uuid = uuid;
|
3450 | this.currentInfo.show = true;
|
3451 | },
|
3452 | queryData: function queryData() {
|
3453 | this.$refs.dataTable.load(this.queryform);
|
3454 | },
|
3455 | resetquery: function resetquery() {
|
3456 | this.$refs.queryform.resetFields();
|
3457 | this.queryform.actSta = "";
|
3458 | this.queryform.respcode = "";
|
3459 | },
|
3460 | dataTableLoad: function dataTableLoad(params, resolve) {
|
3461 | var _this = this;
|
3462 |
|
3463 | LogsSign.queryLogsSign(params).then(resolve)
|
3464 | .then(function (respData) {
|
3465 | return _this.table.data = respData.datarows;
|
3466 | });
|
3467 | },
|
3468 | showSession: function () {
|
3469 | var _showSession = Object(asyncToGenerator["a" ])(
|
3470 |
|
3471 | regeneratorRuntime.mark(function _callee(sesId) {
|
3472 | return regeneratorRuntime.wrap(function _callee$(_context) {
|
3473 | while (1) {
|
3474 | switch (_context.prev = _context.next) {
|
3475 | case 0:
|
3476 | _context.next = 2;
|
3477 | return this.confirm(null, "是否跳转至交互日志页面?");
|
3478 |
|
3479 | case 2:
|
3480 | _context.next = 4;
|
3481 | return this.removeView("交互日志");
|
3482 |
|
3483 | case 4:
|
3484 | _context.next = 6;
|
3485 | return this.addView("交互日志", "/logs/LogsOper", {
|
3486 | sesId: sesId
|
3487 | });
|
3488 |
|
3489 | case 6:
|
3490 | case "end":
|
3491 | return _context.stop();
|
3492 | }
|
3493 | }
|
3494 | }, _callee, this);
|
3495 | }));
|
3496 |
|
3497 | function showSession(_x) {
|
3498 | return _showSession.apply(this, arguments);
|
3499 | }
|
3500 |
|
3501 | return showSession;
|
3502 | }(),
|
3503 | showService: function () {
|
3504 | var _showService = Object(asyncToGenerator["a" ])(
|
3505 |
|
3506 | regeneratorRuntime.mark(function _callee2(sesId) {
|
3507 | return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
3508 | while (1) {
|
3509 | switch (_context2.prev = _context2.next) {
|
3510 | case 0:
|
3511 | _context2.next = 2;
|
3512 | return this.confirm(null, "是否跳转至服务日志页面?");
|
3513 |
|
3514 | case 2:
|
3515 | _context2.next = 4;
|
3516 | return this.removeView("服务日志");
|
3517 |
|
3518 | case 4:
|
3519 | _context2.next = 6;
|
3520 | return this.addView("服务日志", "/logs/LogsServ", {
|
3521 | sesId: sesId
|
3522 | });
|
3523 |
|
3524 | case 6:
|
3525 | case "end":
|
3526 | return _context2.stop();
|
3527 | }
|
3528 | }
|
3529 | }, _callee2, this);
|
3530 | }));
|
3531 |
|
3532 | function showService(_x2) {
|
3533 | return _showService.apply(this, arguments);
|
3534 | }
|
3535 |
|
3536 | return showService;
|
3537 | }(),
|
3538 | addView: function addView(name, path, propsData) {
|
3539 | var idx = this.$tabView.viewList.findIndex(function (item) {
|
3540 | return item.name === name;
|
3541 | });
|
3542 | if (idx === -1) this.$tabView.viewList.push({
|
3543 | name: name,
|
3544 | path: path,
|
3545 | propsData: propsData
|
3546 | });
|
3547 | this.$tabView.active = name;
|
3548 | },
|
3549 | removeView: function removeView(name) {
|
3550 | var idx = this.$tabView.viewList.findIndex(function (item) {
|
3551 | return item.name === name;
|
3552 | });
|
3553 |
|
3554 | if (idx > -1) {
|
3555 | this.$tabView.active = this.$tabView.viewList[idx - 1].name;
|
3556 | this.$tabView.viewList.splice(idx, 1);
|
3557 | }
|
3558 | }
|
3559 | }
|
3560 | });
|
3561 |
|
3562 | var logs_LogsSignvue_type_script_lang_js_ = (LogsSignvue_type_script_lang_js_);
|
3563 |
|
3564 |
|
3565 |
|
3566 |
|
3567 |
|
3568 |
|
3569 |
|
3570 |
|
3571 | var LogsSign_component = Object(componentNormalizer["a" ])(
|
3572 | logs_LogsSignvue_type_script_lang_js_,
|
3573 | render,
|
3574 | staticRenderFns,
|
3575 | false,
|
3576 | null,
|
3577 | null,
|
3578 | null
|
3579 |
|
3580 | )
|
3581 |
|
3582 | var logs_LogsSign = __webpack_exports__["default"] = (LogsSign_component.exports);
|
3583 |
|
3584 | }),
|
3585 |
|
3586 | "550e":
|
3587 | (function(module, __webpack_exports__, __webpack_require__) {
|
3588 |
|
3589 | "use strict";
|
3590 | var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d036");
|
3591 | var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__);
|
3592 | var core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1a2e");
|
3593 | var core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_1__);
|
3594 | var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("00dd");
|
3595 | var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__);
|
3596 | var core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("2fef");
|
3597 | var core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_3__);
|
3598 | var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("5a1d");
|
3599 | var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_4__);
|
3600 |
|
3601 |
|
3602 |
|
3603 |
|
3604 |
|
3605 |
|
3606 |
|
3607 | function CronExpressionValidator() {}
|
3608 |
|
3609 | CronExpressionValidator.validateCronExpression = function (value) {
|
3610 | var results = true;
|
3611 |
|
3612 | if (value == null || value.length == 0) {
|
3613 | return false;
|
3614 | }
|
3615 |
|
3616 |
|
3617 | var expressionArray = value.split(" ");
|
3618 | var len = expressionArray.length;
|
3619 |
|
3620 | if (len != 6 && len != 7) {
|
3621 | return false;
|
3622 | }
|
3623 |
|
3624 |
|
3625 | var match = value.match(/\?/g);
|
3626 |
|
3627 | if (match != null && match.length > 1) {
|
3628 | return false;
|
3629 | }
|
3630 |
|
3631 |
|
3632 | var dayOfTheMonthWildcard = "";
|
3633 |
|
3634 |
|
3635 | if (CronExpressionValidator.isNotWildCard(expressionArray[0], /[\*]/gi)) {
|
3636 | if (!CronExpressionValidator.segmentValidator("([0-9\\\\,-\\/])", expressionArray[0], [0, 59], "seconds")) {
|
3637 | return false;
|
3638 | }
|
3639 | }
|
3640 |
|
3641 |
|
3642 | if (CronExpressionValidator.isNotWildCard(expressionArray[1], /[\*]/gi)) {
|
3643 | if (!CronExpressionValidator.segmentValidator("([0-9\\\\,-\\/])", expressionArray[1], [0, 59], "minutes")) {
|
3644 | return false;
|
3645 | }
|
3646 | }
|
3647 |
|
3648 |
|
3649 | if (CronExpressionValidator.isNotWildCard(expressionArray[2], /[\*]/gi)) {
|
3650 | if (!CronExpressionValidator.segmentValidator("([0-9\\\\,-\\/])", expressionArray[2], [0, 23], "hours")) {
|
3651 | return false;
|
3652 | }
|
3653 | }
|
3654 |
|
3655 |
|
3656 | if (CronExpressionValidator.isNotWildCard(expressionArray[3], /[\*\?]/gi)) {
|
3657 | if (!CronExpressionValidator.segmentValidator("([0-9LWC\\\\,-\\/])", expressionArray[3], [1, 31], "days of the month")) {
|
3658 | return false;
|
3659 | }
|
3660 | } else {
|
3661 | dayOfTheMonthWildcard = expressionArray[3];
|
3662 | }
|
3663 |
|
3664 |
|
3665 | if (CronExpressionValidator.isNotWildCard(expressionArray[4], /[\*]/gi)) {
|
3666 | expressionArray[4] = CronExpressionValidator.convertMonthsToInteger(expressionArray[4]);
|
3667 |
|
3668 | if (!CronExpressionValidator.segmentValidator("([0-9\\\\,-\\/])", expressionArray[4], [1, 12], "months")) {
|
3669 | return false;
|
3670 | }
|
3671 | }
|
3672 |
|
3673 |
|
3674 | if (CronExpressionValidator.isNotWildCard(expressionArray[5], /[\*\?]/gi)) {
|
3675 | expressionArray[5] = CronExpressionValidator.convertDaysToInteger(expressionArray[5]);
|
3676 |
|
3677 | if (!CronExpressionValidator.segmentValidator("([0-9LC#\\\\,-\\/])", expressionArray[5], [1, 7], "days of the week")) {
|
3678 | return false;
|
3679 | }
|
3680 | } else {
|
3681 | if (dayOfTheMonthWildcard == String(expressionArray[5])) {
|
3682 | return false;
|
3683 | }
|
3684 | }
|
3685 |
|
3686 |
|
3687 | if (len == 7) {
|
3688 | if (CronExpressionValidator.isNotWildCard(expressionArray[6], /[\*]/gi)) {
|
3689 | if (!CronExpressionValidator.segmentValidator("([0-9\\\\,-\\/])", expressionArray[6], [1970, 2099], "years")) {
|
3690 | return false;
|
3691 | }
|
3692 | }
|
3693 | }
|
3694 |
|
3695 | return true;
|
3696 | };
|
3697 |
|
3698 |
|
3699 |
|
3700 |
|
3701 | CronExpressionValidator.isNotWildCard = function (value, expression) {
|
3702 | var match = value.match(expression);
|
3703 | return match == null || match.length == 0 ? true : false;
|
3704 | };
|
3705 |
|
3706 |
|
3707 |
|
3708 |
|
3709 | CronExpressionValidator.convertDaysToInteger = function (value) {
|
3710 | var v = value;
|
3711 | v = v.replace(/SUN/gi, "1");
|
3712 | v = v.replace(/MON/gi, "2");
|
3713 | v = v.replace(/TUE/gi, "3");
|
3714 | v = v.replace(/WED/gi, "4");
|
3715 | v = v.replace(/THU/gi, "5");
|
3716 | v = v.replace(/FRI/gi, "6");
|
3717 | v = v.replace(/SAT/gi, "7");
|
3718 | return v;
|
3719 | };
|
3720 |
|
3721 |
|
3722 |
|
3723 |
|
3724 | CronExpressionValidator.convertMonthsToInteger = function (value) {
|
3725 | var v = value;
|
3726 | v = v.replace(/JAN/gi, "1");
|
3727 | v = v.replace(/FEB/gi, "2");
|
3728 | v = v.replace(/MAR/gi, "3");
|
3729 | v = v.replace(/APR/gi, "4");
|
3730 | v = v.replace(/MAY/gi, "5");
|
3731 | v = v.replace(/JUN/gi, "6");
|
3732 | v = v.replace(/JUL/gi, "7");
|
3733 | v = v.replace(/AUG/gi, "8");
|
3734 | v = v.replace(/SEP/gi, "9");
|
3735 | v = v.replace(/OCT/gi, "10");
|
3736 | v = v.replace(/NOV/gi, "11");
|
3737 | v = v.replace(/DEC/gi, "12");
|
3738 | return v;
|
3739 | };
|
3740 |
|
3741 |
|
3742 |
|
3743 |
|
3744 | CronExpressionValidator.segmentValidator = function (expression, value, range, segmentName) {
|
3745 | var v = value;
|
3746 | var numbers = new Array();
|
3747 |
|
3748 | var reg = new RegExp(expression, "gi");
|
3749 |
|
3750 | if (!reg.test(v)) {
|
3751 | return false;
|
3752 | }
|
3753 |
|
3754 |
|
3755 |
|
3756 | var dupMatch = value.match(/L/gi);
|
3757 |
|
3758 | if (dupMatch != null && dupMatch.length > 1) {
|
3759 | return false;
|
3760 | }
|
3761 |
|
3762 |
|
3763 |
|
3764 |
|
3765 | var split = v.split(",");
|
3766 | var i = -1;
|
3767 | var l = split.length;
|
3768 | var match;
|
3769 |
|
3770 | while (++i < l) {
|
3771 |
|
3772 | var checkSegment = split[i];
|
3773 | var n;
|
3774 | var pattern = /(\w*)/;
|
3775 | match = pattern.exec(checkSegment);
|
3776 |
|
3777 | pattern = /(\w*)\-?\d+(\w*)/;
|
3778 | match = pattern.exec(checkSegment);
|
3779 |
|
3780 | if (match && match[0] == checkSegment && checkSegment.indexOf("L") == -1 && checkSegment.indexOf("l") == -1 && checkSegment.indexOf("C") == -1 && checkSegment.indexOf("c") == -1 && checkSegment.indexOf("W") == -1 && checkSegment.indexOf("w") == -1 && checkSegment.indexOf("/") == -1 && (checkSegment.indexOf("-") == -1 || checkSegment.indexOf("-") == 0) && checkSegment.indexOf("#") == -1) {
|
3781 | n = match[0];
|
3782 | if (n && !isNaN(n)) numbers.push(n);else if (match[0] == "0") numbers.push(n);
|
3783 | continue;
|
3784 | }
|
3785 |
|
3786 |
|
3787 | pattern = /(\w*)L|C|W(\w*)/i;
|
3788 | match = pattern.exec(checkSegment);
|
3789 |
|
3790 | if (match && match[0] != "" && (checkSegment.indexOf("L") > -1 || checkSegment.indexOf("l") > -1 || checkSegment.indexOf("C") > -1 || checkSegment.indexOf("c") > -1 || checkSegment.indexOf("W") > -1 || checkSegment.indexOf("w") > -1)) {
|
3791 |
|
3792 | if (checkSegment == "L" || checkSegment == "l") continue;
|
3793 | pattern = /(\w*)\d+(l|c|w)?(\w*)/i;
|
3794 | match = pattern.exec(checkSegment);
|
3795 |
|
3796 | if (!match || match[0] != checkSegment) {
|
3797 | continue;
|
3798 | }
|
3799 |
|
3800 |
|
3801 | var numCheck = match[0];
|
3802 | numCheck = numCheck.replace(/(l|c|w)/gi, "");
|
3803 | n = Number(numCheck);
|
3804 | if (n && !isNaN(n)) numbers.push(n);else if (match[0] == "0") numbers.push(n);
|
3805 | continue;
|
3806 | }
|
3807 |
|
3808 | var numberSplit;
|
3809 |
|
3810 | if (checkSegment.indexOf("/") > -1) {
|
3811 |
|
3812 | numberSplit = checkSegment.split("/");
|
3813 |
|
3814 | if (numberSplit.length != 2) {
|
3815 | continue;
|
3816 | } else {
|
3817 | n = numberSplit[0];
|
3818 | if (n && !isNaN(n)) numbers.push(n);else if (numberSplit[0] == "0") numbers.push(n);
|
3819 | continue;
|
3820 | }
|
3821 | }
|
3822 |
|
3823 |
|
3824 | if (checkSegment.indexOf("#") > -1) {
|
3825 |
|
3826 | numberSplit = checkSegment.split("#");
|
3827 |
|
3828 | if (numberSplit.length != 2) {
|
3829 | continue;
|
3830 | } else {
|
3831 | n = numberSplit[0];
|
3832 | if (n && !isNaN(n)) numbers.push(n);else if (numberSplit[0] == "0") numbers.push(n);
|
3833 | continue;
|
3834 | }
|
3835 | }
|
3836 |
|
3837 |
|
3838 | if (checkSegment.indexOf("-") > 0) {
|
3839 |
|
3840 | numberSplit = checkSegment.split("-");
|
3841 |
|
3842 | if (numberSplit.length != 2) {
|
3843 | continue;
|
3844 | } else if (Number(numberSplit[0]) > Number(numberSplit[1])) {
|
3845 | continue;
|
3846 | } else {
|
3847 | n = numberSplit[0];
|
3848 | if (n && !isNaN(n)) numbers.push(n);else if (numberSplit[0] == "0") numbers.push(n);
|
3849 | n = numberSplit[1];
|
3850 | if (n && !isNaN(n)) numbers.push(n);else if (numberSplit[1] == "0") numbers.push(n);
|
3851 | continue;
|
3852 | }
|
3853 | }
|
3854 | }
|
3855 |
|
3856 |
|
3857 | i = -1;
|
3858 | l = numbers.length;
|
3859 | if (l == 0) return false;
|
3860 |
|
3861 | while (++i < l) {
|
3862 |
|
3863 | if (numbers[i] < range[0] || numbers[i] > range[1]) {
|
3864 | return false;
|
3865 | }
|
3866 | }
|
3867 |
|
3868 | return true;
|
3869 | };
|
3870 |
|
3871 | __webpack_exports__["a"] = (CronExpressionValidator);
|
3872 |
|
3873 | }),
|
3874 |
|
3875 | "566f":
|
3876 | (function(module, __webpack_exports__, __webpack_require__) {
|
3877 |
|
3878 | "use strict";
|
3879 | var E_workspace_CNETONG_cnetong_core_frontend_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9090");
|
3880 | var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("00dd");
|
3881 | var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__);
|
3882 | var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("b2cb");
|
3883 | var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_2__);
|
3884 | var axios__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("cebe");
|
3885 | var axios__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_3__);
|
3886 | var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("8bbf");
|
3887 | var vue__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_4__);
|
3888 | var _store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("cf33");
|
3889 | var element_ui__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("5f72");
|
3890 | var element_ui__WEBPACK_IMPORTED_MODULE_6___default = __webpack_require__.n(element_ui__WEBPACK_IMPORTED_MODULE_6__);
|
3891 | var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("c45e");
|
3892 | var _Util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("e688");
|
3893 | var _service_module_CacheStores__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("9bbb");
|
3894 | var querystring__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("f319");
|
3895 | var querystring__WEBPACK_IMPORTED_MODULE_10___default = __webpack_require__.n(querystring__WEBPACK_IMPORTED_MODULE_10__);
|
3896 |
|
3897 |
|
3898 |
|
3899 |
|
3900 |
|
3901 |
|
3902 |
|
3903 |
|
3904 |
|
3905 |
|
3906 |
|
3907 |
|
3908 |
|
3909 |
|
3910 |
|
3911 |
|
3912 |
|
3913 |
|
3914 |
|
3915 | var ajax = axios__WEBPACK_IMPORTED_MODULE_3___default.a.create({
|
3916 | baseURL: document.baseURI,
|
3917 | params: {},
|
3918 | validateStatus: function validateStatus(status) {
|
3919 |
|
3920 | return status >= 200 && status < 300;
|
3921 | },
|
3922 | timeout: _config__WEBPACK_IMPORTED_MODULE_7__[ "a"].tomeOut,
|
3923 |
|
3924 | paramsSerializer: function paramsSerializer(params) {
|
3925 | return querystring__WEBPACK_IMPORTED_MODULE_10___default.a.stringify(params);
|
3926 | }
|
3927 | });
|
3928 |
|
3929 |
|
3930 |
|
3931 |
|
3932 |
|
3933 |
|
3934 |
|
3935 | var getStorageKey = function getStorageKey(category, url, params) {
|
3936 | _Util__WEBPACK_IMPORTED_MODULE_8__[ "a"].safety.safeData(params);
|
3937 | var queryStr = querystring__WEBPACK_IMPORTED_MODULE_10___default.a.stringify(params);
|
3938 | return category + ":" + url + (queryStr ? "?" + queryStr : "");
|
3939 | };
|
3940 |
|
3941 |
|
3942 |
|
3943 | var origGet = ajax.get;
|
3944 |
|
3945 | ajax.get = function (path, config) {
|
3946 | if (!config) {
|
3947 | return origGet(path, config);
|
3948 | }
|
3949 |
|
3950 |
|
3951 | if (config.params && config.params.agile && config.params.down) {
|
3952 | var fullURI = ajax.defaults.baseURL + path + "?" + querystring__WEBPACK_IMPORTED_MODULE_10___default.a.stringify(config.params);
|
3953 | window.open(fullURI);
|
3954 | return new Promise(function (resolve, reject) {});
|
3955 | }
|
3956 |
|
3957 | if (config && config.cache) {
|
3958 | var fullURL = ajax.defaults.baseURL + path;
|
3959 |
|
3960 | if (config.cache === true) {
|
3961 | config.cache = "unknow_cache_key";
|
3962 | }
|
3963 |
|
3964 | var cacheStore = config.cacheStore || _service_module_CacheStores__WEBPACK_IMPORTED_MODULE_9__[ "a"].ajaxStore;
|
3965 | fullURL = fullURL.replace("// ", "/");
|
3966 | var storageKey = getStorageKey(config.cache, fullURL, config.params);
|
3967 |
|
3968 | if (storageKey !== null) {
|
3969 | return new Promise(function (resolve, reject) {
|
3970 | if (config.force === true) {
|
3971 | cacheStore.removeItem(storageKey).then(function () {
|
3972 | origGet(path, config).then(resolve).catch(reject);
|
3973 | });
|
3974 | } else {
|
3975 | cacheStore.getItem(storageKey).then(function (data) {
|
3976 | if (data) {
|
3977 | resolve(data);
|
3978 | } else {
|
3979 | origGet(path, config).then(resolve).catch(reject);
|
3980 | }
|
3981 | }).catch(function () {
|
3982 | origGet(path, config).then(resolve).catch(reject);
|
3983 | });
|
3984 | }
|
3985 | });
|
3986 | }
|
3987 | }
|
3988 |
|
3989 | return origGet(path, config);
|
3990 | };
|
3991 |
|
3992 | var progressing = false;
|
3993 |
|
3994 | function onRequest(config) {
|
3995 |
|
3996 | if (config.params) {
|
3997 | config.params.page && config.params.page--;
|
3998 | }
|
3999 |
|
4000 |
|
4001 | _Util__WEBPACK_IMPORTED_MODULE_8__[ "a"].safety.preSubmit(config.data);
|
4002 | _Util__WEBPACK_IMPORTED_MODULE_8__[ "a"].safety.preSubmit(config.params);
|
4003 |
|
4004 | if (progressing === false) {
|
4005 | vue__WEBPACK_IMPORTED_MODULE_4___default.a.prototype.$Progress.start();
|
4006 | progressing = true;
|
4007 | }
|
4008 |
|
4009 | return config;
|
4010 | }
|
4011 |
|
4012 |
|
4013 |
|
4014 |
|
4015 |
|
4016 |
|
4017 |
|
4018 | function onRequestError(error) {
|
4019 | return Promise.reject(error);
|
4020 | }
|
4021 |
|
4022 |
|
4023 |
|
4024 |
|
4025 |
|
4026 |
|
4027 |
|
4028 | function onResponse(response) {
|
4029 | progressing = false;
|
4030 | vue__WEBPACK_IMPORTED_MODULE_4___default.a.prototype.$Progress.finish();
|
4031 | var _response$data = response.data,
|
4032 | respCode = _response$data.respCode,
|
4033 | respDesc = _response$data.respDesc;
|
4034 |
|
4035 | if (respCode === undefined || respCode === _config__WEBPACK_IMPORTED_MODULE_7__[ "a"].respCode.success) {
|
4036 |
|
4037 | if (response.config.method !== "get" && response.data.respDesc && Object(E_workspace_CNETONG_cnetong_core_frontend_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[ "a"])(response.data.respDesc) === Object(E_workspace_CNETONG_cnetong_core_frontend_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[ "a"])(String()) && response.config.message !== false) {
|
4038 | element_ui__WEBPACK_IMPORTED_MODULE_6__["Message"].success({
|
4039 | message: respDesc,
|
4040 | duration: 1000
|
4041 | });
|
4042 | }
|
4043 |
|
4044 |
|
4045 | var _config = response.config;
|
4046 |
|
4047 | if (_config && _config.cache) {
|
4048 | var cacheStore = _config.cacheStore;
|
4049 | var storageKey = getStorageKey(_config.cache, _config.url, _config.params);
|
4050 | cacheStore.setItem(storageKey, response.data);
|
4051 | }
|
4052 |
|
4053 | return response.data;
|
4054 | }
|
4055 |
|
4056 |
|
4057 | if (respCode !== _config__WEBPACK_IMPORTED_MODULE_7__[ "a"].respCode.success) {
|
4058 | var error = new Error(respDesc);
|
4059 |
|
4060 | if (respCode === _config__WEBPACK_IMPORTED_MODULE_7__[ "a"].respCode.timeout) {
|
4061 | try {
|
4062 | _store__WEBPACK_IMPORTED_MODULE_5__[ "a"].dispatch("base/timeout");
|
4063 | } catch (ignore) {}
|
4064 |
|
4065 | return response.data;
|
4066 | }
|
4067 |
|
4068 |
|
4069 |
|
4070 | if (Object(E_workspace_CNETONG_cnetong_core_frontend_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[ "a"])(response.data.respDesc) === Object(E_workspace_CNETONG_cnetong_core_frontend_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[ "a"])(String()) && response.config.message !== false) {
|
4071 | element_ui__WEBPACK_IMPORTED_MODULE_6__["Message"].error({
|
4072 | message: response.data.respDesc,
|
4073 | duration: response.data.lengthen ? 10000 : 3000,
|
4074 | showClose: response.data.lengthen,
|
4075 | dangerouslyUseHTMLString: true
|
4076 | });
|
4077 | }
|
4078 |
|
4079 |
|
4080 |
|
4081 |
|
4082 |
|
4083 |
|
4084 |
|
4085 | error.data = response.data;
|
4086 | error.validError = {};
|
4087 |
|
4088 | if (respCode === _config__WEBPACK_IMPORTED_MODULE_7__[ "a"].respCode.validat) {
|
4089 | error.validError = respDesc || {};
|
4090 | }
|
4091 |
|
4092 | return Promise.reject(error);
|
4093 | }
|
4094 | }
|
4095 |
|
4096 |
|
4097 |
|
4098 |
|
4099 |
|
4100 |
|
4101 |
|
4102 | function onResponseError(error) {
|
4103 |
|
4104 | if (error.response) {
|
4105 | var message = vue__WEBPACK_IMPORTED_MODULE_4___default.a.t("httpError." + error.response.status) || error.response.statusText;
|
4106 | element_ui__WEBPACK_IMPORTED_MODULE_6__["Notification"].error({
|
4107 | title: vue__WEBPACK_IMPORTED_MODULE_4___default.a.t("httpError.title"),
|
4108 | message: message
|
4109 | });
|
4110 | }
|
4111 |
|
4112 | return Promise.reject(error);
|
4113 | }
|
4114 |
|
4115 | ajax.interceptors.request.use(onRequest, onRequestError);
|
4116 | ajax.interceptors.response.use(onResponse, onResponseError);
|
4117 | __webpack_exports__["a"] = (ajax);
|
4118 |
|
4119 | }),
|
4120 |
|
4121 | "5880":
|
4122 | (function(module, exports) {
|
4123 |
|
4124 | module.exports = require("vuex");
|
4125 |
|
4126 | }),
|
4127 |
|
4128 | "58da":
|
4129 | (function(module, exports, __webpack_require__) {
|
4130 |
|
4131 |
|
4132 |
|
4133 | }),
|
4134 |
|
4135 | "59aa":
|
4136 | (function(module, __webpack_exports__, __webpack_require__) {
|
4137 |
|
4138 | "use strict";
|
4139 | __webpack_require__.r(__webpack_exports__);
|
4140 |
|
4141 |
|
4142 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"welcome"})}
|
4143 | var staticRenderFns = []
|
4144 |
|
4145 |
|
4146 |
|
4147 |
|
4148 |
|
4149 | var Mainvue_type_style_index_0_lang_css_ = __webpack_require__("bf4f");
|
4150 |
|
4151 |
|
4152 | var componentNormalizer = __webpack_require__("6691");
|
4153 |
|
4154 |
|
4155 |
|
4156 | var script = {}
|
4157 |
|
4158 |
|
4159 |
|
4160 |
|
4161 |
|
4162 | var component = Object(componentNormalizer["a" ])(
|
4163 | script,
|
4164 | render,
|
4165 | staticRenderFns,
|
4166 | false,
|
4167 | null,
|
4168 | null,
|
4169 | null
|
4170 |
|
4171 | )
|
4172 |
|
4173 | var Main = __webpack_exports__["default"] = (component.exports);
|
4174 |
|
4175 | }),
|
4176 |
|
4177 | "59ec":
|
4178 | (function(module, __webpack_exports__, __webpack_require__) {
|
4179 |
|
4180 | "use strict";
|
4181 | __webpack_require__.r(__webpack_exports__);
|
4182 |
|
4183 |
|
4184 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"flex-h card-height-full"},[(_vm.rightBlock)?_c('el-card',{staticClass:"flex-2 full"},[_c('template',{slot:"header"},[_c('span',[_vm._v("功能权限管理")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-expand","title":"展开全部节点"},on:{"click":_vm.expandAll}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-refresh","title":"刷新数据"},on:{"click":_vm.load}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-sort-amount-asc","title":"修整数据"},on:{"click":_vm.autoAligned}}),_c('el-button',{attrs:{"type":"primary","icon":!_vm.leftBlock?'el-icon-caret-left':'el-icon-caret-right'},on:{"click":function($event){_vm.leftBlock=!_vm.leftBlock}}})],1)]),(_vm.showPermTree)?_c('el-tree',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.saving),expression:"saving"}],ref:"permTree",attrs:{"node-key":"uuid","default-expand-all":_vm.expandedAll,"expand-on-click-node":false,"data":_vm.permTreeData,"current-node-key":_vm.currPerm.uuid,"highlight-current":"","render-content":_vm.renderContent},on:{"current-change":_vm.currentChange}}):_vm._e()],2):_vm._e(),(_vm.leftBlock)?_c('el-card',{staticClass:"flex-2 margin-left-2 full"},[_c('template',{slot:"header"},[_c('span',[_vm._v("编辑权限")]),_c('div',{staticClass:"pull-right"},[(_vm.currPerm.uuid&&_vm.currPerm.uuid!=='none')?_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-save"},on:{"click":_vm.onSubmit}}):_vm._e(),_c('el-button',{attrs:{"type":"primary","icon":_vm.rightBlock?'el-icon-caret-left':'el-icon-caret-right'},on:{"click":function($event){_vm.rightBlock=!_vm.rightBlock}}})],1)]),(_vm.currPerm.uuid&&_vm.currPerm.uuid!=='none')?_c('div',[_c('el-form',{ref:"form",attrs:{"model":_vm.currPerm,"label-position":"top","rules":_vm.rules}},[_c('el-form-item',{attrs:{"label":"功能名称","prop":"permName"}},[_c('el-input',{model:{value:(_vm.currPerm.permName),callback:function ($$v) {_vm.$set(_vm.currPerm, "permName", $$v)},expression:"currPerm.permName"}})],1),_c('el-form-item',{staticClass:"flex-1",attrs:{"label":"功能编码","prop":"permCode"}},[_c('el-input',{model:{value:(_vm.currPerm.permCode),callback:function ($$v) {_vm.$set(_vm.currPerm, "permCode", $$v)},expression:"currPerm.permCode"}})],1),_c('el-form-item',{staticClass:"flex-2 ",attrs:{"label":"功能地址","prop":"funcUrl"}},[_c('el-input',{model:{value:(_vm.currPerm.funcUrl),callback:function ($$v) {_vm.$set(_vm.currPerm, "funcUrl", $$v)},expression:"currPerm.funcUrl"}})],1),_c('el-form-item',{attrs:{"label":"菜单类型","prop":"permType"}},[_c('el-radio-group',{model:{value:(_vm.currPerm.permType),callback:function ($$v) {_vm.$set(_vm.currPerm, "permType", $$v)},expression:"currPerm.permType"}},_vm._l((_vm.permTypes),function(item){return _c('el-radio',{key:item.value,attrs:{"label":item.value}},[_vm._v(_vm._s(item.label))])}),1)],1),_c('el-form-item',{attrs:{"label":"最低数据权限","prop":"lowDataAuth"}},[_c('el-select',{attrs:{"placeholder":"请选择"},model:{value:(_vm.currPerm.lowDataAuth),callback:function ($$v) {_vm.$set(_vm.currPerm, "lowDataAuth", $$v)},expression:"currPerm.lowDataAuth"}},_vm._l((_vm.lowDataAuths),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.label,"value":item.value}})}),1)],1),_c('el-form-item',{attrs:{"label":"图标样式","prop":"iconUrl"}},[_c('el-input',{model:{value:(_vm.currPerm.iconUrl),callback:function ($$v) {_vm.$set(_vm.currPerm, "iconUrl", $$v)},expression:"currPerm.iconUrl"}})],1),_c('el-form-item',{attrs:{"label":"顺序编号","prop":"ordeCode"}},[_c('el-input-number',{model:{value:(_vm.currPerm.ordeCode),callback:function ($$v) {_vm.$set(_vm.currPerm, "ordeCode", $$v)},expression:"currPerm.ordeCode"}})],1),_c('el-form-item',{attrs:{"label":"功能描述","prop":"permDesc"}},[_c('el-input',{attrs:{"type":"textarea"},model:{value:(_vm.currPerm.permDesc),callback:function ($$v) {_vm.$set(_vm.currPerm, "permDesc", $$v)},expression:"currPerm.permDesc"}})],1)],1),(_vm.currPerm.uuid)?_c('HandleHistory',{staticClass:"margin-top-1 margin-bottom-1",attrs:{"uuid":_vm.currPerm.uuid,"cr-user-uuid":_vm.currPerm.crUserUuid,"op-user-uuid":_vm.currPerm.opUserUuid,"cr-time":_vm.currPerm.crTime,"op-time":_vm.currPerm.opTime,"mode":"plan"}}):_vm._e()],1):_vm._e()],2):_vm._e()],1)}
|
4185 | var staticRenderFns = []
|
4186 |
|
4187 |
|
4188 |
|
4189 |
|
4190 |
|
4191 | var web_dom_iterable_ = __webpack_require__("80a8");
|
4192 |
|
4193 |
|
4194 | var es6_object_assign_ = __webpack_require__("067b");
|
4195 |
|
4196 |
|
4197 | var HandleHistory = __webpack_require__("e66d");
|
4198 |
|
4199 |
|
4200 | var PermAPI = __webpack_require__("6b38");
|
4201 |
|
4202 |
|
4203 | var config = __webpack_require__("c45e");
|
4204 |
|
4205 |
|
4206 |
|
4207 |
|
4208 |
|
4209 |
|
4210 |
|
4211 |
|
4212 |
|
4213 |
|
4214 |
|
4215 |
|
4216 |
|
4217 |
|
4218 |
|
4219 |
|
4220 |
|
4221 |
|
4222 |
|
4223 |
|
4224 |
|
4225 |
|
4226 |
|
4227 |
|
4228 |
|
4229 |
|
4230 |
|
4231 |
|
4232 |
|
4233 |
|
4234 |
|
4235 |
|
4236 |
|
4237 |
|
4238 |
|
4239 |
|
4240 |
|
4241 |
|
4242 |
|
4243 |
|
4244 |
|
4245 |
|
4246 |
|
4247 |
|
4248 |
|
4249 |
|
4250 |
|
4251 |
|
4252 |
|
4253 |
|
4254 |
|
4255 |
|
4256 |
|
4257 |
|
4258 |
|
4259 |
|
4260 |
|
4261 |
|
4262 |
|
4263 |
|
4264 |
|
4265 |
|
4266 |
|
4267 |
|
4268 |
|
4269 |
|
4270 |
|
4271 |
|
4272 |
|
4273 |
|
4274 |
|
4275 |
|
4276 |
|
4277 |
|
4278 |
|
4279 |
|
4280 |
|
4281 |
|
4282 |
|
4283 |
|
4284 |
|
4285 |
|
4286 |
|
4287 |
|
4288 |
|
4289 | var PermMgrvue_type_script_lang_js_ = ({
|
4290 | name: "PermMgr",
|
4291 | components: {
|
4292 | HandleHistory: HandleHistory["a" ]
|
4293 | },
|
4294 | data: function data() {
|
4295 | return {
|
4296 | leftBlock: true,
|
4297 | rightBlock: true,
|
4298 |
|
4299 | showPermTree: true,
|
4300 | aaaaa: "",
|
4301 | currPerm: {},
|
4302 | currParentPerm: {},
|
4303 | permTreeData: [],
|
4304 | saving: false,
|
4305 | expandedAll: false,
|
4306 | currNode: "",
|
4307 | editor: {
|
4308 | error: {}
|
4309 | },
|
4310 | rules: {
|
4311 | permName: [{
|
4312 | required: true,
|
4313 | message: "功能名称不能为空!"
|
4314 | }],
|
4315 | permCode: [{
|
4316 | required: true,
|
4317 | message: "功能编码不能为空!"
|
4318 | }],
|
4319 | permType: [{
|
4320 | required: true,
|
4321 | message: "菜单类型不能为空!"
|
4322 | }],
|
4323 | funcUrl: [{
|
4324 | required: true,
|
4325 | message: "功能地址不能为空!"
|
4326 | }],
|
4327 | lowDataAuths: [{
|
4328 | required: true,
|
4329 | message: "最低数据权限不能为空!"
|
4330 | }]
|
4331 | },
|
4332 | lowDataAuths: [{
|
4333 | value: 0,
|
4334 | label: "本人",
|
4335 | disabled: true
|
4336 | }, {
|
4337 | value: 1,
|
4338 | label: "本组织"
|
4339 | }, {
|
4340 | value: 2,
|
4341 | label: "本组织及下属组织"
|
4342 | }, {
|
4343 | value: 3,
|
4344 | label: "所有组织"
|
4345 | }],
|
4346 | permTypes: [{
|
4347 | value: "1",
|
4348 | label: "菜单"
|
4349 | }, {
|
4350 | value: "2",
|
4351 | label: "按钮"
|
4352 | }]
|
4353 | };
|
4354 | },
|
4355 | mounted: function mounted() {
|
4356 | this.load();
|
4357 | },
|
4358 | methods: {
|
4359 |
|
4360 | handleDrop: function handleDrop(draggingNode, dropNode, dropType, ev) {
|
4361 | console.dir(arguments);
|
4362 | },
|
4363 | load: function load() {
|
4364 | var _this = this;
|
4365 |
|
4366 | this.currPerm = {};
|
4367 | this.saving = true;
|
4368 |
|
4369 | PermAPI["a" ].loadPermTree().then(function (data) {
|
4370 | _this.permTreeData = data;
|
4371 | _this.saving = false;
|
4372 | });
|
4373 | },
|
4374 | autoAligned: function autoAligned() {
|
4375 | var _this2 = this;
|
4376 |
|
4377 | this.confirm(null, "操作会自动排列菜单排序,以及功能编码,是否确定操作?").then(function () {
|
4378 | _this2.saving = true;
|
4379 | PermAPI["a" ].autoAligned().then(function () {
|
4380 | _this2.saving = false;
|
4381 | }).then(_this2.load);
|
4382 | });
|
4383 | },
|
4384 | addPerm: function addPerm(node) {
|
4385 | var _this3 = this;
|
4386 |
|
4387 | var newPerm = {
|
4388 | permName: "新建菜单",
|
4389 | ordeCode: node.childNodes.length + 1,
|
4390 | permCode: "X",
|
4391 | lowDataAuth: 0,
|
4392 |
|
4393 | parPermUuid: node.data.uuid,
|
4394 | permType: "1",
|
4395 | funcUrl: "/",
|
4396 | iconUrl: "user"
|
4397 | };
|
4398 | this.saving = true;
|
4399 | PermAPI["a" ].savePerm(newPerm).then(function (data) {
|
4400 | Object.assign(newPerm, {
|
4401 | uuid: data.uuid
|
4402 | });
|
4403 |
|
4404 | _this3.saving = false;
|
4405 |
|
4406 | node.insertChild({
|
4407 | data: newPerm
|
4408 | });
|
4409 |
|
4410 | node.expand(function () {
|
4411 | _this3.currPerm = newPerm;
|
4412 | });
|
4413 | }).then(this.loadTree);
|
4414 | },
|
4415 |
|
4416 | expandAll: function expandAll() {
|
4417 | var _this4 = this;
|
4418 |
|
4419 | if (this.expandedAll) {
|
4420 | this.saving = true;
|
4421 | this.showPermTree = false;
|
4422 | this.expandedAll = false;
|
4423 | setTimeout(function () {
|
4424 | _this4.showPermTree = true;
|
4425 | _this4.saving = false;
|
4426 | }, 200);
|
4427 | return;
|
4428 | }
|
4429 |
|
4430 | this.expandedAll = true;
|
4431 |
|
4432 | var expandFn = function expandFn(element, expand) {
|
4433 | element.childNodes.forEach(function (element) {
|
4434 | element.expand(function () {
|
4435 | expandFn(element);
|
4436 | });
|
4437 | }, _this4);
|
4438 | };
|
4439 |
|
4440 | expandFn(this.$refs.permTree.root);
|
4441 | },
|
4442 |
|
4443 | currentChange: function currentChange(data, node) {
|
4444 | this.currParentPerm = node.parent.data || {};
|
4445 | this.currPerm = data || {};
|
4446 | this.currNode = node;
|
4447 | },
|
4448 |
|
4449 | onSubmit: function onSubmit() {
|
4450 | var _this5 = this;
|
4451 |
|
4452 | this.$refs.form.validate(function (valid) {
|
4453 | if (valid) {
|
4454 | _this5.saving = true;
|
4455 | _this5.editor.error = {};
|
4456 | PermAPI["a" ].savePerm(_this5.currPerm).then(function (data) {
|
4457 | _this5.saving = false;
|
4458 | }).catch(function (error) {
|
4459 | _this5.editor.error = error.validError;
|
4460 | _this5.saving = false;
|
4461 | });
|
4462 | }
|
4463 | });
|
4464 | },
|
4465 |
|
4466 | loadTree: function loadTree(node, resolve) {
|
4467 | if (node.data && node.data.permType !== "0") {
|
4468 | PermAPI["a" ].getPermByPID(node.data.uuid).then(function (resp) {
|
4469 | return resp.data;
|
4470 | }).then(resolve);
|
4471 | } else {
|
4472 | resolve([]);
|
4473 | }
|
4474 |
|
4475 | this.saving = false;
|
4476 | },
|
4477 |
|
4478 | removePerm: function removePerm(node) {
|
4479 | var _this6 = this;
|
4480 |
|
4481 |
|
4482 | var action = function action(data) {
|
4483 | _this6.saving = true;
|
4484 | PermAPI["a" ].deletePerm(data.uuid).then(function (data) {
|
4485 | _this6.saving = false;
|
4486 | node.parent.removeChild(node);
|
4487 | }).catch(function () {
|
4488 | _this6.saving = false;
|
4489 | });
|
4490 | };
|
4491 |
|
4492 |
|
4493 | this.confirm(node.data).then(action);
|
4494 | },
|
4495 |
|
4496 | renderContent: function renderContent(h, _ref) {
|
4497 | var _this7 = this;
|
4498 |
|
4499 | var node = _ref.node,
|
4500 | data = _ref.data,
|
4501 | store = _ref.store;
|
4502 | var addBtn = h("el-button", {
|
4503 | "attrs": {
|
4504 | "icon": "el-icon-fa-plus"
|
4505 | },
|
4506 | "on": {
|
4507 | "click": function click() {
|
4508 | return _this7.addPerm(node);
|
4509 | }
|
4510 | }
|
4511 | });
|
4512 | var deleteBtn = h("el-button", {
|
4513 | "attrs": {
|
4514 | "icon": "el-icon-fa-minus",
|
4515 | "disabled": data.uuid === "none"
|
4516 | },
|
4517 | "on": {
|
4518 | "click": function click() {
|
4519 | _this7.removePerm(node);
|
4520 | }
|
4521 | }
|
4522 | });
|
4523 | var tip = h("el-tooltip", {
|
4524 | "attrs": {
|
4525 | "effect": "dark",
|
4526 | "content": data.permDesc,
|
4527 | "placement": "top"
|
4528 | }
|
4529 | }, [h("el-button", {
|
4530 | "style": "color: #000;",
|
4531 | "attrs": {
|
4532 | "type": "text"
|
4533 | }
|
4534 | }, [data.permName])]);
|
4535 | return h("div", [h("span", [h("span", ["(", data.ordeCode ? data.ordeCode : "", ")"]), h("span", [" ", data.iconUrl ? h("i", {
|
4536 | "class": "el-icon-fa el-icon-fa-" + data.iconUrl
|
4537 | }) : null, " ", data.permDesc ? tip : data.permName])]), h("span", {
|
4538 | "style": "position:absolute;right:20px;"
|
4539 | }, [h("el-button-group", [addBtn, deleteBtn])])]);
|
4540 | }
|
4541 | }
|
4542 | });
|
4543 |
|
4544 | var usrm_PermMgrvue_type_script_lang_js_ = (PermMgrvue_type_script_lang_js_);
|
4545 |
|
4546 | var componentNormalizer = __webpack_require__("6691");
|
4547 |
|
4548 |
|
4549 |
|
4550 |
|
4551 |
|
4552 |
|
4553 |
|
4554 |
|
4555 |
|
4556 | var component = Object(componentNormalizer["a" ])(
|
4557 | usrm_PermMgrvue_type_script_lang_js_,
|
4558 | render,
|
4559 | staticRenderFns,
|
4560 | false,
|
4561 | null,
|
4562 | null,
|
4563 | null
|
4564 |
|
4565 | )
|
4566 |
|
4567 | var PermMgr = __webpack_exports__["default"] = (component.exports);
|
4568 |
|
4569 | }),
|
4570 |
|
4571 | "5a1d":
|
4572 | (function(module, exports) {
|
4573 |
|
4574 | module.exports = require("core-js/modules/es6.regexp.split");
|
4575 |
|
4576 | }),
|
4577 |
|
4578 | "5f6e":
|
4579 | (function(module, exports, __webpack_require__) {
|
4580 |
|
4581 |
|
4582 |
|
4583 | }),
|
4584 |
|
4585 | "5f72":
|
4586 | (function(module, exports) {
|
4587 |
|
4588 | module.exports = require("element-ui");
|
4589 |
|
4590 | }),
|
4591 |
|
4592 | "5fab":
|
4593 | (function(module, __webpack_exports__, __webpack_require__) {
|
4594 |
|
4595 | "use strict";
|
4596 | var _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("566f");
|
4597 | var _service_module_CacheStores__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9bbb");
|
4598 |
|
4599 |
|
4600 | __webpack_exports__["a"] = ({
|
4601 | |
4602 |
|
4603 |
|
4604 |
|
4605 |
|
4606 | getAllCodes: function getAllCodes(codeType) {
|
4607 | var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
4608 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/base/code/getAllCodes", {
|
4609 | force: force,
|
4610 | cache: codeType,
|
4611 | cacheStore: _service_module_CacheStores__WEBPACK_IMPORTED_MODULE_1__[ "a"].codeListStore,
|
4612 | params: {
|
4613 | codeType: codeType
|
4614 | }
|
4615 | }).then(function (data) {
|
4616 | return data || [];
|
4617 | }).then(function (data) {
|
4618 | var wrapData = [];
|
4619 |
|
4620 | for (var dataProp in data) {
|
4621 | var oneData = data[dataProp];
|
4622 | var key = oneData.codekey;
|
4623 | var label = oneData.codeval;
|
4624 | var value = oneData.codekey;
|
4625 | var strArray = [];
|
4626 |
|
4627 | for (var _key in oneData) {
|
4628 | strArray.push(oneData[_key]);
|
4629 | }
|
4630 |
|
4631 | var wrapValue = {
|
4632 | label: label,
|
4633 | key: key,
|
4634 | value: value,
|
4635 | oneData: oneData,
|
4636 | index: strArray.join(";")
|
4637 | };
|
4638 | wrapData.push(wrapValue);
|
4639 | }
|
4640 |
|
4641 | return wrapData;
|
4642 | });
|
4643 | },
|
4644 |
|
4645 | |
4646 |
|
4647 |
|
4648 |
|
4649 |
|
4650 |
|
4651 |
|
4652 |
|
4653 | getTree: function getTree(treeKey, pid, keyword, field, force) {
|
4654 | if (keyword) {
|
4655 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/base/tree/getTreeMatchingNodes", {
|
4656 | cache: treeKey,
|
4657 | force: force,
|
4658 | cacheStore: _service_module_CacheStores__WEBPACK_IMPORTED_MODULE_1__[ "a"].codeTreeStore,
|
4659 | params: {
|
4660 | treeKey: treeKey,
|
4661 | fieldKey: field,
|
4662 | keyWordKey: keyword
|
4663 | }
|
4664 | }).then(function (data) {
|
4665 | return data || [];
|
4666 | });
|
4667 | } else {
|
4668 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/base/tree/getTreeNodes", {
|
4669 | cache: treeKey,
|
4670 | force: force,
|
4671 | cacheStore: _service_module_CacheStores__WEBPACK_IMPORTED_MODULE_1__[ "a"].codeTreeStore,
|
4672 | params: {
|
4673 | treeKey: treeKey,
|
4674 | pid: pid,
|
4675 | lazy: true
|
4676 | }
|
4677 | }).then(function (data) {
|
4678 | return data || [];
|
4679 | });
|
4680 | }
|
4681 | },
|
4682 |
|
4683 | |
4684 |
|
4685 |
|
4686 |
|
4687 |
|
4688 | querySelectorData: function querySelectorData(dataType, params) {
|
4689 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/base/select/".concat(dataType), {
|
4690 | params: params,
|
4691 | cache: false
|
4692 | }).then(function (data) {
|
4693 | return data || [];
|
4694 | });
|
4695 | }
|
4696 | });
|
4697 |
|
4698 | }),
|
4699 |
|
4700 | "6389":
|
4701 | (function(module, exports) {
|
4702 |
|
4703 | module.exports = require("vue-router");
|
4704 |
|
4705 | }),
|
4706 |
|
4707 | "6513":
|
4708 | (function(module, __webpack_exports__, __webpack_require__) {
|
4709 |
|
4710 | "use strict";
|
4711 | var querystring__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f319");
|
4712 | var querystring__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(querystring__WEBPACK_IMPORTED_MODULE_0__);
|
4713 | var md5__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("35ae");
|
4714 | var md5__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_1__);
|
4715 | var sha_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("972d");
|
4716 | var sha_js__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(sha_js__WEBPACK_IMPORTED_MODULE_2__);
|
4717 | var _libs_Ajax__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("566f");
|
4718 |
|
4719 |
|
4720 |
|
4721 |
|
4722 |
|
4723 | function encodePasswd(pwd) {
|
4724 | var sha256 = sha_js__WEBPACK_IMPORTED_MODULE_2___default()("sha256");
|
4725 | return md5__WEBPACK_IMPORTED_MODULE_1___default()(sha256.update(pwd).digest("hex"));
|
4726 | }
|
4727 |
|
4728 | __webpack_exports__["a"] = ({
|
4729 | |
4730 |
|
4731 |
|
4732 |
|
4733 |
|
4734 |
|
4735 |
|
4736 | login: function login(_ref) {
|
4737 | var userid = _ref.userid,
|
4738 | passwd = _ref.passwd,
|
4739 | captcha = _ref.captcha;
|
4740 | passwd = encodePasswd(passwd);
|
4741 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_3__[ "a"].request({
|
4742 | method: "post",
|
4743 | url: "/anon/aces/login",
|
4744 | data: querystring__WEBPACK_IMPORTED_MODULE_0___default.a.stringify({
|
4745 | userid: userid,
|
4746 | passwd: passwd,
|
4747 | captcha: captcha
|
4748 | }),
|
4749 | headers: {
|
4750 | "Content-type": "application/x-www-form-urlencoded"
|
4751 | }
|
4752 | });
|
4753 | },
|
4754 |
|
4755 | |
4756 |
|
4757 |
|
4758 |
|
4759 | logck: function logck(userid) {
|
4760 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_3__[ "a"].get("/anon/aces/logck", {
|
4761 | params: {
|
4762 | userid: userid
|
4763 | },
|
4764 | message: false
|
4765 | });
|
4766 | },
|
4767 |
|
4768 | |
4769 |
|
4770 |
|
4771 |
|
4772 | logout: function logout() {
|
4773 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_3__[ "a"].get("/base/init/logout");
|
4774 | },
|
4775 |
|
4776 | |
4777 |
|
4778 |
|
4779 |
|
4780 | getLoginInfo: function getLoginInfo() {
|
4781 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_3__[ "a"].get("/base/init/lastLoginInfo", {
|
4782 | message: false
|
4783 | });
|
4784 | },
|
4785 |
|
4786 | |
4787 |
|
4788 |
|
4789 | getRootMenu: function getRootMenu() {
|
4790 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_3__[ "a"].get("/sys/init/getRootMenu");
|
4791 | },
|
4792 |
|
4793 | |
4794 |
|
4795 |
|
4796 |
|
4797 |
|
4798 | changePwd: function changePwd(oldpasswd, passwd) {
|
4799 | passwd = encodePasswd(passwd);
|
4800 | oldpasswd = encodePasswd(oldpasswd);
|
4801 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_3__[ "a"].post("/base/init/changePwd", {
|
4802 | oldpasswd: oldpasswd,
|
4803 | passwd: passwd
|
4804 | });
|
4805 | },
|
4806 | reporttest: function reporttest() {
|
4807 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_3__[ "a"].post("/decm/report");
|
4808 | }
|
4809 | });
|
4810 |
|
4811 | }),
|
4812 |
|
4813 | "6691":
|
4814 | (function(module, __webpack_exports__, __webpack_require__) {
|
4815 |
|
4816 | "use strict";
|
4817 | __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
4818 |
|
4819 |
|
4820 |
|
4821 |
|
4822 |
|
4823 |
|
4824 | function normalizeComponent (
|
4825 | scriptExports,
|
4826 | render,
|
4827 | staticRenderFns,
|
4828 | functionalTemplate,
|
4829 | injectStyles,
|
4830 | scopeId,
|
4831 | moduleIdentifier, /* server only */
|
4832 | shadowMode /* vue-cli only */
|
4833 | ) {
|
4834 |
|
4835 | var options = typeof scriptExports === 'function'
|
4836 | ? scriptExports.options
|
4837 | : scriptExports
|
4838 |
|
4839 |
|
4840 | if (render) {
|
4841 | options.render = render
|
4842 | options.staticRenderFns = staticRenderFns
|
4843 | options._compiled = true
|
4844 | }
|
4845 |
|
4846 |
|
4847 | if (functionalTemplate) {
|
4848 | options.functional = true
|
4849 | }
|
4850 |
|
4851 |
|
4852 | if (scopeId) {
|
4853 | options._scopeId = 'data-v-' + scopeId
|
4854 | }
|
4855 |
|
4856 | var hook
|
4857 | if (moduleIdentifier) {
|
4858 | hook = function (context) {
|
4859 |
|
4860 | context =
|
4861 | context ||
|
4862 | (this.$vnode && this.$vnode.ssrContext) ||
|
4863 | (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext)
|
4864 |
|
4865 | if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
4866 | context = __VUE_SSR_CONTEXT__
|
4867 | }
|
4868 |
|
4869 | if (injectStyles) {
|
4870 | injectStyles.call(this, context)
|
4871 | }
|
4872 |
|
4873 | if (context && context._registeredComponents) {
|
4874 | context._registeredComponents.add(moduleIdentifier)
|
4875 | }
|
4876 | }
|
4877 |
|
4878 |
|
4879 | options._ssrRegister = hook
|
4880 | } else if (injectStyles) {
|
4881 | hook = shadowMode
|
4882 | ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
4883 | : injectStyles
|
4884 | }
|
4885 |
|
4886 | if (hook) {
|
4887 | if (options.functional) {
|
4888 |
|
4889 |
|
4890 | options._injectStyles = hook
|
4891 |
|
4892 | var originalRender = options.render
|
4893 | options.render = function renderWithStyleInjection (h, context) {
|
4894 | hook.call(context)
|
4895 | return originalRender(h, context)
|
4896 | }
|
4897 | } else {
|
4898 |
|
4899 | var existing = options.beforeCreate
|
4900 | options.beforeCreate = existing
|
4901 | ? [].concat(existing, hook)
|
4902 | : [hook]
|
4903 | }
|
4904 | }
|
4905 |
|
4906 | return {
|
4907 | exports: scriptExports,
|
4908 | options: options
|
4909 | }
|
4910 | }
|
4911 |
|
4912 |
|
4913 | }),
|
4914 |
|
4915 | "67f2":
|
4916 | (function(module, exports) {
|
4917 |
|
4918 | module.exports = require("element-ui/lib/utils/popup");
|
4919 |
|
4920 | }),
|
4921 |
|
4922 | "6b38":
|
4923 | (function(module, __webpack_exports__, __webpack_require__) {
|
4924 |
|
4925 | "use strict";
|
4926 | var _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("566f");
|
4927 |
|
4928 | __webpack_exports__["a"] = ({
|
4929 | |
4930 |
|
4931 |
|
4932 |
|
4933 | getPermByPID: function getPermByPID(puuid) {
|
4934 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usrm/usr/perm/getPermByPID", {
|
4935 | params: {
|
4936 | puuid: puuid
|
4937 | }
|
4938 | }).then(function (data) {
|
4939 | return data || [];
|
4940 | });
|
4941 | },
|
4942 |
|
4943 | |
4944 |
|
4945 |
|
4946 | loadPermTree: function loadPermTree() {
|
4947 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usrm/usr/perm/loadPermTree").then(function (data) {
|
4948 | return data || [];
|
4949 | });
|
4950 | },
|
4951 |
|
4952 | |
4953 |
|
4954 |
|
4955 |
|
4956 | savePerm: function savePerm(resm) {
|
4957 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usrm/usr/perm/savePerm", resm);
|
4958 | },
|
4959 |
|
4960 | |
4961 |
|
4962 |
|
4963 |
|
4964 | deletePerm: function deletePerm(uuid) {
|
4965 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].delete("/usrm/usr/perm/deletePerm", {
|
4966 | params: {
|
4967 | uuid: uuid
|
4968 | }
|
4969 | });
|
4970 | },
|
4971 |
|
4972 | |
4973 |
|
4974 |
|
4975 | autoAligned: function autoAligned() {
|
4976 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].delete("/usrm/usr/perm/autoAligned");
|
4977 | },
|
4978 |
|
4979 | |
4980 |
|
4981 |
|
4982 | saveSort: function saveSort(data) {
|
4983 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usrm/usr/perm/saveSort", data);
|
4984 | }
|
4985 | });
|
4986 |
|
4987 | }),
|
4988 |
|
4989 | "6b56":
|
4990 | (function(module, exports) {
|
4991 |
|
4992 | module.exports = require("animate.css");
|
4993 |
|
4994 | }),
|
4995 |
|
4996 | "6e74":
|
4997 | (function(module, exports) {
|
4998 |
|
4999 | module.exports = require("core-js/modules/es6.object.keys");
|
5000 |
|
5001 | }),
|
5002 |
|
5003 | "7825":
|
5004 | (function(module, exports, __webpack_require__) {
|
5005 |
|
5006 |
|
5007 |
|
5008 | }),
|
5009 |
|
5010 | "78bc":
|
5011 | (function(module, __webpack_exports__, __webpack_require__) {
|
5012 |
|
5013 | "use strict";
|
5014 | __webpack_require__.r(__webpack_exports__);
|
5015 |
|
5016 |
|
5017 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',[_c('template',{slot:"header"},[_c('span',[_vm._v("任务管理")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-plus","title":"新增任务"},on:{"click":function($event){return _vm.doAdd()}}})],1)]),_c('el-form',{ref:"queryform",attrs:{"model":_vm.queryform}},[_c('el-row',[_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"任务名称","prop":"jobName"}},[_c('el-input',{model:{value:(_vm.queryform.jobName),callback:function ($$v) {_vm.$set(_vm.queryform, "jobName", $$v)},expression:"queryform.jobName"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"执行状态","prop":"triggerState"}},[_c('el-select',{attrs:{"placeholder":"请选择"},model:{value:(_vm.queryform.triggerState),callback:function ($$v) {_vm.$set(_vm.queryform, "triggerState", $$v)},expression:"queryform.triggerState"}},_vm._l((_vm.triStOptions),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.label,"value":item.value}})}),1)],1)],1)],1)],1)],2),_c('el-card',{staticClass:"margin-top-2"},[_c('template',{slot:"header"},[_c('span',[_vm._v("任务数据列表")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search","title":"查询"},on:{"click":_vm.queryJobData}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-reply-all","title":"重置"},on:{"click":_vm.resetquery}}),_c('el-button',{attrs:{"type":"primary","disabled":!_vm.multipleSelection.length>0,"icon":"el-icon-fa-play","title":"批量启用"},on:{"click":function($event){return _vm.lockJobs(true)}}}),_c('el-button',{attrs:{"type":"primary","disabled":!_vm.multipleSelection.length>0,"icon":"el-icon-fa-pause","title":"批量暂停"},on:{"click":function($event){return _vm.lockJobs(false)}}}),_c('el-button',{attrs:{"type":"primary","disabled":!_vm.multipleSelection.length>0,"icon":"el-icon-fa-trash","title":"批量删除"},on:{"click":function($event){return _vm.delJobs()}}})],1)]),_c('PageTable',{ref:"dataTable",attrs:{"auto-load":true,"hideTitle":"","data":_vm.table.data,"highlight-current-row":"","stripe":"","border":""},on:{"load-data":_vm.dataTableLoad,"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","align":"center","width":"50","fixed":"left"}}),_c('el-table-column',{attrs:{"prop":"jobname","label":"任务名称","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"description","label":"任务描述","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"jobclasspath","label":"执行类","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"triggerstate","label":"状态","width":"50","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.triggerstate == 'ACQUIRED')?_c('el-button',{attrs:{"type":"success"}},[_vm._v("执行")]):_vm._e(),(scope.row.triggerstate == 'PAUSED')?_c('el-button',{attrs:{"type":"info"}},[_vm._v("暂停")]):_vm._e(),(scope.row.triggerstate == 'ERROR')?_c('el-button',{attrs:{"type":"error"}},[_vm._v("错误")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{"prop":"cronexpression","label":"Cron表达式","width":"120","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"150","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"disabled":scope.row.triggerstate==='ACQUIRED',"type":"primary","icon":"el-icon-fa-edit","title":"修改"},on:{"click":function($event){return _vm.doEdit(scope.row)}}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-eye","title":"查看"},on:{"click":function($event){return _vm.doEye(scope.row)}}}),(scope.row.triggerstate==="PAUSED")?_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-play","title":"启用"},on:{"click":function($event){return _vm.dolock(scope.row,true)}}}):_vm._e(),(scope.row.triggerstate==="ACQUIRED")?_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-pause","title":"暂停"},on:{"click":function($event){return _vm.dolock(scope.row,false)}}}):_vm._e(),_c('el-button',{attrs:{"disabled":scope.row.triggerstate==='ACQUIRED',"type":"primary","icon":"el-icon-fa-trash","title":"删除"},on:{"click":function($event){return _vm.delJob(scope.row)}}})]}}])})],1)],2),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","visible":_vm.showDia,"title":"任务管理","close-on-click-modal":false},on:{"update:visible":function($event){_vm.showDia=$event}}},[(!_vm.currJobData.onlyRead)?_c('div',{staticClass:"dialog-button"},[_c('el-button',{attrs:{"type":"primary","plain":"","icon":"el-icon-fa-save","title":"保存"},on:{"click":function($event){return _vm.$refs.taskmgredit.submitForm()}}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-reply-all","plain":"","title":"重置"},on:{"click":function($event){return _vm.$refs.taskmgredit.resetForm()}}})],1):_vm._e(),(_vm.showDia)?_c('task-mgr-edit',{ref:"taskmgredit",attrs:{"jobData":_vm.currJobData},on:{"closeDia":_vm.closeDia}}):_vm._e()],1)],1)}
|
5018 | var staticRenderFns = []
|
5019 |
|
5020 |
|
5021 |
|
5022 |
|
5023 |
|
5024 | var web_dom_iterable_ = __webpack_require__("80a8");
|
5025 |
|
5026 |
|
5027 | var es6_object_assign_ = __webpack_require__("067b");
|
5028 |
|
5029 |
|
5030 | var TaskMgrEditvue_type_template_id_3124bc72_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],attrs:{"elemeur-loading-text":"正在读取数据..."}},[_c('el-tabs',{attrs:{"type":"border-card"},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:"activeName"}},[_c('el-tab-pane',{attrs:{"label":"基本信息","name":"first"}},[_c('el-form',{ref:"form",attrs:{"model":_vm.taskData,"rules":_vm.rules,"label-position":"top"}},[_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"任务名称","prop":"jobName"}},[_c('el-input',{attrs:{"readonly":_vm.jobData.onlyRead},model:{value:(_vm.taskData.jobName),callback:function ($$v) {_vm.$set(_vm.taskData, "jobName", $$v)},expression:"taskData.jobName"}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"优先级","prop":"jobPrio"}},[_c('el-input-number',{attrs:{"disabled":_vm.jobData.onlyRead},model:{value:(_vm.taskData.jobPrio),callback:function ($$v) {_vm.$set(_vm.taskData, "jobPrio", $$v)},expression:"taskData.jobPrio"}})],1)],1),_c('el-col',{attrs:{"span":24}},[_c('el-form-item',{attrs:{"label":"任务描述","prop":"description"}},[_c('el-input',{attrs:{"readonly":_vm.jobData.onlyRead},model:{value:(_vm.taskData.description),callback:function ($$v) {_vm.$set(_vm.taskData, "description", $$v)},expression:"taskData.description"}})],1)],1),_c('el-col',{attrs:{"span":24}},[_c('el-form-item',{attrs:{"label":"执行类","prop":"jobClassName"}},[_c('el-select',{attrs:{"disabled":_vm.jobData.onlyRead},model:{value:(_vm.taskData.jobClassName),callback:function ($$v) {_vm.$set(_vm.taskData, "jobClassName", $$v)},expression:"taskData.jobClassName"}},_vm._l((_vm.jobClasss),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.label,"value":item.value}})}),1)],1)],1),_c('el-col',{attrs:{"span":24}},[_c('el-form-item',{attrs:{"label":"执行配置","prop":"jobConfig"}},[_c('el-input',{attrs:{"readonly":_vm.jobData.onlyRead},model:{value:(_vm.taskData.jobConfig),callback:function ($$v) {_vm.$set(_vm.taskData, "jobConfig", $$v)},expression:"taskData.jobConfig"}})],1)],1),_c('el-col',{attrs:{"span":24}},[_c('el-form-item',{attrs:{"label":"Cron表达式","prop":"cronExpression"}},[_c('cron-tab',{attrs:{"readonly":_vm.jobData.onlyRead},model:{value:(_vm.taskData.cronExpression),callback:function ($$v) {_vm.$set(_vm.taskData, "cronExpression", $$v)},expression:"taskData.cronExpression"}})],1)],1),(_vm.jobData.onlyRead&&_vm.taskData.exceInfo)?_c('el-col',{attrs:{"span":24}},[_c('el-form-item',{attrs:{"label":"异常信息","prop":"exceInfo"}},[_c('el-input',{attrs:{"type":"textarea","autosize":{ minRows: 2, maxRows: 6 },"readonly":""},model:{value:(_vm.taskData.exceInfo),callback:function ($$v) {_vm.$set(_vm.taskData, "exceInfo", $$v)},expression:"taskData.exceInfo"}})],1)],1):_vm._e(),(!_vm.jobData.onlyRead)?_c('el-col',{attrs:{"span":24}},[_c('el-form-item',{attrs:{"label":"是否立即执行","prop":"isRun"}},[_c('el-radio-group',{model:{value:(_vm.taskData.isRun),callback:function ($$v) {_vm.$set(_vm.taskData, "isRun", $$v)},expression:"taskData.isRun"}},[_c('el-radio',{attrs:{"label":"1"}},[_vm._v("是")]),_c('el-radio',{attrs:{"label":"0"}},[_vm._v("否")])],1)],1)],1):_vm._e()],1),(_vm.jobData.onlyRead)?_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"下一次执行时间","prop":"nextFireTime"}},[_vm._v("\n "+_vm._s(_vm._f("date")(_vm.taskData.nextFireTime,'%Y-%m-%d %T'))+"\n ")])],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"上一次执行时间","prop":"prevFireTime"}},[_vm._v("\n "+_vm._s(_vm._f("date")(_vm.taskData.prevFireTime,'%Y-%m-%d %T'))+"\n ")])],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"触发器状态","prop":"triggerState"}},[_vm._v("\n "+_vm._s(_vm.triggerState(_vm.taskData.triggerState))+"\n ")])],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"触发器生效时间","prop":"startTime"}},[_vm._v("\n "+_vm._s(_vm._f("date")(_vm.taskData.startTime,'%Y-%m-%d %T'))+"\n ")])],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"触发器失效时间","prop":"endTime"}},[_vm._v("\n "+_vm._s(_vm._f("date")(_vm.taskData.endTime,'%Y-%m-%d %T'))+"\n ")])],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"触发器时区","prop":"timeZoneId"}},[_vm._v("\n "+_vm._s(_vm.taskData.timeZoneId)+"\n ")])],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"目前执行次数"}},[_vm._v("\n "+_vm._s(_vm.jobRunNum)+"\n ")])],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":" "}},[_vm._v("\n "+_vm._s("_")+"\n ")])],1)],1):_vm._e()],1),_c('HandleHistory',{staticClass:"margin-top-1 margin-bottom-1",attrs:{"uuid":_vm.taskData.uuid,"cr-user-uuid":_vm.taskData.crUserUuid,"op-user-uuid":_vm.taskData.opUserUuid,"cr-time":_vm.taskData.crTime,"op-time":_vm.taskData.opTime,"mode":"plan"}})],1)],1)],1)}
|
5031 | var TaskMgrEditvue_type_template_id_3124bc72_staticRenderFns = []
|
5032 |
|
5033 |
|
5034 |
|
5035 |
|
5036 |
|
5037 | var runtime_ = __webpack_require__("79d0");
|
5038 |
|
5039 |
|
5040 | var asyncToGenerator = __webpack_require__("e71e");
|
5041 |
|
5042 |
|
5043 | var es6_regexp_split_ = __webpack_require__("5a1d");
|
5044 |
|
5045 |
|
5046 | var CronTabvue_type_template_id_5bcf022d_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-input',{staticClass:"input-append",attrs:{"readonly":_vm.readonly},on:{"blur":_vm.cronblur},model:{value:(_vm.cronStr),callback:function ($$v) {_vm.cronStr=$$v},expression:"cronStr"}},[_c('el-button',{attrs:{"slot":"append","type":"text","icon":"alibaba al-gaojixuangu","title":_vm.title,"disabled":_vm.readonly},on:{"click":_vm.showCronDia},slot:"append"})],1),_c('el-dialog',{attrs:{"append-to-body":"","visible":_vm.showCron,"width":"80%"},on:{"update:visible":function($event){_vm.showCron=$event}}},[_c('template',{slot:"title"},[_c('i',{staticClass:"alibaba al-gaojixuangu"}),_c('span',[_vm._v(" "+_vm._s(_vm.title))])]),_c('div',{staticClass:"dialog-button"},[_c('el-button',{attrs:{"icon":"el-icon-fa-save","type":"primary","plain":""},on:{"click":function($event){_vm.$refs.cronTab.submitFill();_vm.showCron=!_vm.showCron}}})],1),_c('cron-main',{ref:"cronTab",model:{value:(_vm.cronStr),callback:function ($$v) {_vm.cronStr=$$v},expression:"cronStr"}})],2)],1)}
|
5047 | var CronTabvue_type_template_id_5bcf022d_staticRenderFns = []
|
5048 |
|
5049 |
|
5050 |
|
5051 |
|
5052 |
|
5053 | var Crontab_Mainvue_type_template_id_39413b1a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"crontab-warp"},[_c('el-tabs',{attrs:{"type":"border-card"},model:{value:(_vm.tabActive),callback:function ($$v) {_vm.tabActive=$$v},expression:"tabActive"}},[_c('el-tab-pane',{attrs:{"label":_vm.tabTitles[0],"name":"second"}},[_c('CrontabSecond',{attrs:{"check":_vm.checkNumber},on:{"updata":_vm.updataContabValue}})],1),_c('el-tab-pane',{attrs:{"label":_vm.tabTitles[1],"name":"minute"}},[_c('CrontabMin',{attrs:{"check":_vm.checkNumber},on:{"updata":_vm.updataContabValue}})],1),_c('el-tab-pane',{attrs:{"label":_vm.tabTitles[2],"name":"hour"}},[_c('CrontabHour',{attrs:{"check":_vm.checkNumber},on:{"updata":_vm.updataContabValue}})],1),_c('el-tab-pane',{attrs:{"label":_vm.tabTitles[3],"name":"day"}},[_c('CrontabDay',{attrs:{"check":_vm.checkNumber,"week":_vm.contabValueObj.week},on:{"updata":_vm.updataContabValue}})],1),_c('el-tab-pane',{attrs:{"label":_vm.tabTitles[4],"name":"month"}},[_c('CrontabMouth',{attrs:{"check":_vm.checkNumber},on:{"updata":_vm.updataContabValue}})],1),_c('el-tab-pane',{attrs:{"label":_vm.tabTitles[5],"name":"week"}},[_c('CrontabWeek',{attrs:{"check":_vm.checkNumber,"day":_vm.contabValueObj.day},on:{"updata":_vm.updataContabValue}})],1),_c('el-tab-pane',{attrs:{"label":_vm.tabTitles[6],"name":"year"}},[_c('CrontabYear',{attrs:{"check":_vm.checkNumber},on:{"updata":_vm.updataContabValue}})],1)],1),_c('el-card',[_c('template',{staticClass:"clearfix",slot:"header"},[_c('span',[_vm._v("时间表达式预览 :")]),_c('el-tag',{attrs:{"type":""}},[_vm._v(_vm._s(_vm.contabValueString))])],1),_c('el-form',{staticClass:"crontab-form",attrs:{"label-position":"top"}},[_c('el-row',{attrs:{"gutter":10}},[_c('el-col',{attrs:{"span":3}},[_c('el-form-item',{attrs:{"label":_vm.tabTitles[0]}},[_c('el-input',{attrs:{"title":_vm.contabValueObj.second,"readonly":""},model:{value:(_vm.contabValueObj.second),callback:function ($$v) {_vm.$set(_vm.contabValueObj, "second", $$v)},expression:"contabValueObj.second"}})],1)],1),_c('el-col',{attrs:{"span":3}},[_c('el-form-item',{attrs:{"label":_vm.tabTitles[1]}},[_c('el-input',{attrs:{"title":_vm.contabValueObj.min,"readonly":""},model:{value:(_vm.contabValueObj.min),callback:function ($$v) {_vm.$set(_vm.contabValueObj, "min", $$v)},expression:"contabValueObj.min"}})],1)],1),_c('el-col',{attrs:{"span":3}},[_c('el-form-item',{attrs:{"label":_vm.tabTitles[2]}},[_c('el-input',{attrs:{"title":_vm.contabValueObj.hour,"readonly":""},model:{value:(_vm.contabValueObj.hour),callback:function ($$v) {_vm.$set(_vm.contabValueObj, "hour", $$v)},expression:"contabValueObj.hour"}})],1)],1),_c('el-col',{attrs:{"span":3}},[_c('el-form-item',{attrs:{"label":_vm.tabTitles[3]}},[_c('el-input',{attrs:{"title":_vm.contabValueObj.day,"readonly":""},model:{value:(_vm.contabValueObj.day),callback:function ($$v) {_vm.$set(_vm.contabValueObj, "day", $$v)},expression:"contabValueObj.day"}})],1)],1),_c('el-col',{attrs:{"span":3}},[_c('el-form-item',{attrs:{"label":_vm.tabTitles[4]}},[_c('el-input',{attrs:{"title":_vm.contabValueObj.mouth,"readonly":""},model:{value:(_vm.contabValueObj.mouth),callback:function ($$v) {_vm.$set(_vm.contabValueObj, "mouth", $$v)},expression:"contabValueObj.mouth"}})],1)],1),_c('el-col',{attrs:{"span":3}},[_c('el-form-item',{attrs:{"label":_vm.tabTitles[5]}},[_c('el-input',{attrs:{"title":_vm.contabValueObj.week,"readonly":""},model:{value:(_vm.contabValueObj.week),callback:function ($$v) {_vm.$set(_vm.contabValueObj, "week", $$v)},expression:"contabValueObj.week"}})],1)],1),_c('el-col',{attrs:{"span":6}},[_c('el-form-item',{attrs:{"label":_vm.tabTitles[6]}},[_c('el-input',{attrs:{"title":_vm.contabValueObj.year,"readonly":""},model:{value:(_vm.contabValueObj.year),callback:function ($$v) {_vm.$set(_vm.contabValueObj, "year", $$v)},expression:"contabValueObj.year"}})],1)],1)],1)],1)],2),_c('CrontabResult',{attrs:{"ex":_vm.contabValueString}})],1)}
|
5054 | var Crontab_Mainvue_type_template_id_39413b1a_staticRenderFns = []
|
5055 |
|
5056 |
|
5057 |
|
5058 |
|
5059 |
|
5060 | var Crontab_Secondvue_type_template_id_58d83ab9_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',[_c('el-radio-group',{model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":1}},[_vm._v(" 秒,允许的通配符[, - * /]")])],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":2}},[_vm._v("\n\t\t\t\t周期从\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}}),_vm._v(" 秒\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":3}},[_vm._v("\n\t\t\t\t从\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 秒开始,每\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}}),_vm._v(" 秒执行一次\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":4}},[_vm._v("\n\t\t\t\t任意指定\n\t\t\t\t"),_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){_vm.checkboxList=[]}}},[_vm._v("清空指定")]),_c('el-row',{staticClass:"margin-top-10"},[_c('el-checkbox-group',{model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((60),function(item,index){return _c('el-col',{key:item,attrs:{"span":2}},[_c('el-checkbox',{attrs:{"label":item-1}},[_vm._v("\n\t\t\t\t\t\t\t\t"+_vm._s(index+1>10?item-1:'0'+(item-1))+"\n\t\t\t\t\t\t\t")])],1)}),1)],1)],1)],1)],1)],1)}
|
5061 | var Crontab_Secondvue_type_template_id_58d83ab9_staticRenderFns = []
|
5062 |
|
5063 |
|
5064 |
|
5065 |
|
5066 |
|
5067 | var crontab_second = ({
|
5068 | data: function data() {
|
5069 | return {
|
5070 | radioValue: 1,
|
5071 | cycle01: 1,
|
5072 | cycle02: 2,
|
5073 | average01: 0,
|
5074 | average02: 1,
|
5075 | checkboxList: [],
|
5076 | checkNum: this.$options.propsData.check
|
5077 | };
|
5078 | },
|
5079 | name: "crontab-second",
|
5080 | props: ["check"],
|
5081 | methods: {
|
5082 |
|
5083 | radioChange: function radioChange() {
|
5084 | switch (this.radioValue) {
|
5085 | case 1:
|
5086 | this.$emit("updata", "second", "*");
|
5087 | break;
|
5088 |
|
5089 | case 2:
|
5090 | this.$emit("updata", "second", this.cycle01 + "-" + this.cycle02);
|
5091 | break;
|
5092 |
|
5093 | case 3:
|
5094 | this.$emit("updata", "second", this.average01 + "/" + this.average02);
|
5095 | break;
|
5096 |
|
5097 | case 4:
|
5098 | this.$emit("updata", "second", this.checkboxString);
|
5099 | break;
|
5100 | }
|
5101 | },
|
5102 |
|
5103 | cycleChange: function cycleChange() {
|
5104 | if (this.radioValue === 2) {
|
5105 | this.$emit("updata", "second", this.cycleTotal);
|
5106 | }
|
5107 | },
|
5108 |
|
5109 | averageChange: function averageChange() {
|
5110 | if (this.radioValue === 3) {
|
5111 | this.$emit("updata", "second", this.averageTotal);
|
5112 | }
|
5113 | },
|
5114 |
|
5115 | checkboxChange: function checkboxChange() {
|
5116 | if (this.radioValue === 4) {
|
5117 | this.$emit("updata", "second", this.checkboxString);
|
5118 | }
|
5119 | }
|
5120 | },
|
5121 | watch: {
|
5122 | radioValue: "radioChange",
|
5123 | cycleTotal: "cycleChange",
|
5124 | averageTotal: "averageChange",
|
5125 | checkboxString: "checkboxChange"
|
5126 | },
|
5127 | computed: {
|
5128 |
|
5129 | cycleTotal: function cycleTotal() {
|
5130 | this.cycle01 = this.checkNum(this.cycle01, 0, 59);
|
5131 | this.cycle02 = this.checkNum(this.cycle02, 0, 59);
|
5132 | return this.cycle01 + "-" + this.cycle02;
|
5133 | },
|
5134 |
|
5135 | averageTotal: function averageTotal() {
|
5136 | this.average01 = this.checkNum(this.average01, 0, 59);
|
5137 | this.average02 = this.checkNum(this.average02, 1, 59);
|
5138 | return this.average01 + "/" + this.average02;
|
5139 | },
|
5140 |
|
5141 | checkboxString: function checkboxString() {
|
5142 | var str = this.checkboxList.join();
|
5143 | return str === "" ? "*" : str;
|
5144 | }
|
5145 | }
|
5146 | });
|
5147 |
|
5148 |
|
5149 |
|
5150 |
|
5151 |
|
5152 |
|
5153 |
|
5154 |
|
5155 |
|
5156 |
|
5157 |
|
5158 |
|
5159 |
|
5160 |
|
5161 |
|
5162 |
|
5163 |
|
5164 |
|
5165 |
|
5166 |
|
5167 |
|
5168 |
|
5169 |
|
5170 |
|
5171 |
|
5172 |
|
5173 |
|
5174 |
|
5175 |
|
5176 |
|
5177 |
|
5178 |
|
5179 |
|
5180 |
|
5181 |
|
5182 |
|
5183 |
|
5184 |
|
5185 |
|
5186 |
|
5187 |
|
5188 | var Crontab_Secondvue_type_script_lang_js_ = (crontab_second);
|
5189 |
|
5190 | var module_Crontab_Secondvue_type_script_lang_js_ = (Crontab_Secondvue_type_script_lang_js_);
|
5191 |
|
5192 | var componentNormalizer = __webpack_require__("6691");
|
5193 |
|
5194 |
|
5195 |
|
5196 |
|
5197 |
|
5198 |
|
5199 |
|
5200 |
|
5201 |
|
5202 | var component = Object(componentNormalizer["a" ])(
|
5203 | module_Crontab_Secondvue_type_script_lang_js_,
|
5204 | Crontab_Secondvue_type_template_id_58d83ab9_render,
|
5205 | Crontab_Secondvue_type_template_id_58d83ab9_staticRenderFns,
|
5206 | false,
|
5207 | null,
|
5208 | null,
|
5209 | null
|
5210 |
|
5211 | )
|
5212 |
|
5213 | var Crontab_Second = (component.exports);
|
5214 |
|
5215 | var Crontab_Minvue_type_template_id_69275eda_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',[_c('el-radio-group',{model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":1}},[_vm._v(" 分,允许的通配符[, - * /]")])],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":2}},[_vm._v("\n\t\t\t\t周期从\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}}),_vm._v(" 分\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":3}},[_vm._v("\n\t\t\t\t从\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 分开始,每\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}}),_vm._v(" 分执行一次\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":4}},[_vm._v("\n\t\t\t\t任意指定\n\t\t\t\t"),_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){_vm.checkboxList=[]}}},[_vm._v("清空指定")]),_c('el-row',{staticClass:"margin-top-10"},[_c('el-checkbox-group',{model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((60),function(item,index){return _c('el-col',{key:item,attrs:{"span":2}},[_c('el-checkbox',{attrs:{"label":item-1}},[_vm._v("\n\t\t\t\t\t\t\t\t"+_vm._s(index+1>10?item-1:'0'+(item-1))+"\n\t\t\t\t\t\t\t")])],1)}),1)],1)],1)],1)],1)],1)}
|
5216 | var Crontab_Minvue_type_template_id_69275eda_staticRenderFns = []
|
5217 |
|
5218 |
|
5219 |
|
5220 |
|
5221 |
|
5222 | var crontab_min = ({
|
5223 | data: function data() {
|
5224 | return {
|
5225 | radioValue: 1,
|
5226 | cycle01: 1,
|
5227 | cycle02: 2,
|
5228 | average01: 0,
|
5229 | average02: 1,
|
5230 | checkboxList: [],
|
5231 | checkNum: this.$options.propsData.check
|
5232 | };
|
5233 | },
|
5234 | name: "crontab-min",
|
5235 | props: ["check"],
|
5236 | methods: {
|
5237 |
|
5238 | radioChange: function radioChange() {
|
5239 | switch (this.radioValue) {
|
5240 | case 1:
|
5241 | this.$emit("updata", "min", "*");
|
5242 | break;
|
5243 |
|
5244 | case 2:
|
5245 | this.$emit("updata", "min", this.cycle01 + "-" + this.cycle02);
|
5246 | break;
|
5247 |
|
5248 | case 3:
|
5249 | this.$emit("updata", "min", this.average01 + "/" + this.average02);
|
5250 | break;
|
5251 |
|
5252 | case 4:
|
5253 | this.$emit("updata", "min", this.checkboxString);
|
5254 | break;
|
5255 | }
|
5256 | },
|
5257 |
|
5258 | cycleChange: function cycleChange() {
|
5259 | if (this.radioValue === 2) {
|
5260 | this.$emit("updata", "min", this.cycleTotal);
|
5261 | }
|
5262 | },
|
5263 |
|
5264 | averageChange: function averageChange() {
|
5265 | if (this.radioValue === 3) {
|
5266 | this.$emit("updata", "min", this.averageTotal);
|
5267 | }
|
5268 | },
|
5269 |
|
5270 | checkboxChange: function checkboxChange() {
|
5271 | if (this.radioValue === 4) {
|
5272 | this.$emit("updata", "min", this.checkboxString);
|
5273 | }
|
5274 | }
|
5275 | },
|
5276 | watch: {
|
5277 | radioValue: "radioChange",
|
5278 | cycleTotal: "cycleChange",
|
5279 | averageTotal: "averageChange",
|
5280 | checkboxString: "checkboxChange"
|
5281 | },
|
5282 | computed: {
|
5283 |
|
5284 | cycleTotal: function cycleTotal() {
|
5285 | this.cycle01 = this.checkNum(this.cycle01, 0, 59);
|
5286 | this.cycle02 = this.checkNum(this.cycle02, 0, 59);
|
5287 | return this.cycle01 + "-" + this.cycle02;
|
5288 | },
|
5289 |
|
5290 | averageTotal: function averageTotal() {
|
5291 | this.average01 = this.checkNum(this.average01, 0, 59);
|
5292 | this.average02 = this.checkNum(this.average02, 1, 59);
|
5293 | return this.average01 + "/" + this.average02;
|
5294 | },
|
5295 |
|
5296 | checkboxString: function checkboxString() {
|
5297 | var str = this.checkboxList.join();
|
5298 | return str === "" ? "*" : str;
|
5299 | }
|
5300 | }
|
5301 | });
|
5302 |
|
5303 |
|
5304 |
|
5305 |
|
5306 |
|
5307 |
|
5308 |
|
5309 |
|
5310 |
|
5311 |
|
5312 |
|
5313 |
|
5314 |
|
5315 |
|
5316 |
|
5317 |
|
5318 |
|
5319 |
|
5320 |
|
5321 |
|
5322 |
|
5323 |
|
5324 |
|
5325 |
|
5326 |
|
5327 |
|
5328 |
|
5329 |
|
5330 |
|
5331 |
|
5332 |
|
5333 |
|
5334 |
|
5335 |
|
5336 |
|
5337 |
|
5338 |
|
5339 |
|
5340 |
|
5341 |
|
5342 |
|
5343 | var Crontab_Minvue_type_script_lang_js_ = (crontab_min);
|
5344 |
|
5345 | var module_Crontab_Minvue_type_script_lang_js_ = (Crontab_Minvue_type_script_lang_js_);
|
5346 |
|
5347 |
|
5348 |
|
5349 |
|
5350 |
|
5351 |
|
5352 |
|
5353 |
|
5354 | var Crontab_Min_component = Object(componentNormalizer["a" ])(
|
5355 | module_Crontab_Minvue_type_script_lang_js_,
|
5356 | Crontab_Minvue_type_template_id_69275eda_render,
|
5357 | Crontab_Minvue_type_template_id_69275eda_staticRenderFns,
|
5358 | false,
|
5359 | null,
|
5360 | null,
|
5361 | null
|
5362 |
|
5363 | )
|
5364 |
|
5365 | var Crontab_Min = (Crontab_Min_component.exports);
|
5366 |
|
5367 | var Crontab_Hourvue_type_template_id_4792ccf1_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',[_c('el-radio-group',{model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":1}},[_vm._v(" 时,允许的通配符[, - * /]")])],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":2}},[_vm._v("\n\t\t\t\t周期从\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}}),_vm._v(" 时\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":3}},[_vm._v("\n\t\t\t\t从\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 时开始,每\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}}),_vm._v(" 时执行一次\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":4}},[_vm._v("\n\t\t\t\t任意指定\n\t\t\t\t"),_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){_vm.checkboxList=[]}}},[_vm._v("清空指定")]),_c('el-row',{staticClass:"margin-top-10"},[_c('el-checkbox-group',{model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((24),function(item,index){return _c('el-col',{key:item,attrs:{"span":2}},[_c('el-checkbox',{attrs:{"label":item-1}},[_vm._v("\n\t\t\t\t\t\t\t\t"+_vm._s(index+1>10?item-1:'0'+(item-1))+"\n\t\t\t\t\t\t\t")])],1)}),1)],1)],1)],1)],1)],1)}
|
5368 | var Crontab_Hourvue_type_template_id_4792ccf1_staticRenderFns = []
|
5369 |
|
5370 |
|
5371 |
|
5372 |
|
5373 |
|
5374 | var crontab_hour = ({
|
5375 | data: function data() {
|
5376 | return {
|
5377 | radioValue: 1,
|
5378 | cycle01: 0,
|
5379 | cycle02: 1,
|
5380 | average01: 0,
|
5381 | average02: 1,
|
5382 | checkboxList: [],
|
5383 | checkNum: this.$options.propsData.check
|
5384 | };
|
5385 | },
|
5386 | name: "crontab-hour",
|
5387 | props: ["check"],
|
5388 | methods: {
|
5389 |
|
5390 | radioChange: function radioChange() {
|
5391 | switch (this.radioValue) {
|
5392 | case 1:
|
5393 | this.$emit("updata", "hour", "*");
|
5394 | break;
|
5395 |
|
5396 | case 2:
|
5397 | this.$emit("updata", "hour", this.cycle01 + "-" + this.cycle02);
|
5398 | break;
|
5399 |
|
5400 | case 3:
|
5401 | this.$emit("updata", "hour", this.average01 + "/" + this.average02);
|
5402 | break;
|
5403 |
|
5404 | case 4:
|
5405 | this.$emit("updata", "hour", this.checkboxString);
|
5406 | break;
|
5407 | }
|
5408 | },
|
5409 |
|
5410 | cycleChange: function cycleChange() {
|
5411 | if (this.radioValue === 2) {
|
5412 | this.$emit("updata", "hour", this.cycleTotal);
|
5413 | }
|
5414 | },
|
5415 |
|
5416 | averageChange: function averageChange() {
|
5417 | if (this.radioValue === 3) {
|
5418 | this.$emit("updata", "hour", this.averageTotal);
|
5419 | }
|
5420 | },
|
5421 |
|
5422 | checkboxChange: function checkboxChange() {
|
5423 | if (this.radioValue === 4) {
|
5424 | this.$emit("updata", "hour", this.checkboxString);
|
5425 | }
|
5426 | }
|
5427 | },
|
5428 | watch: {
|
5429 | radioValue: "radioChange",
|
5430 | cycleTotal: "cycleChange",
|
5431 | averageTotal: "averageChange",
|
5432 | checkboxString: "checkboxChange"
|
5433 | },
|
5434 | computed: {
|
5435 |
|
5436 | cycleTotal: function cycleTotal() {
|
5437 | this.cycle01 = this.checkNum(this.cycle01, 0, 23);
|
5438 | this.cycle02 = this.checkNum(this.cycle02, 0, 23);
|
5439 | return this.cycle01 + "-" + this.cycle02;
|
5440 | },
|
5441 |
|
5442 | averageTotal: function averageTotal() {
|
5443 | this.average01 = this.checkNum(this.average01, 0, 23);
|
5444 | this.average02 = this.checkNum(this.average02, 1, 23);
|
5445 | return this.average01 + "/" + this.average02;
|
5446 | },
|
5447 |
|
5448 | checkboxString: function checkboxString() {
|
5449 | var str = this.checkboxList.join();
|
5450 | return str === "" ? "*" : str;
|
5451 | }
|
5452 | }
|
5453 | });
|
5454 |
|
5455 |
|
5456 |
|
5457 |
|
5458 |
|
5459 |
|
5460 |
|
5461 |
|
5462 |
|
5463 |
|
5464 |
|
5465 |
|
5466 |
|
5467 |
|
5468 |
|
5469 |
|
5470 |
|
5471 |
|
5472 |
|
5473 |
|
5474 |
|
5475 |
|
5476 |
|
5477 |
|
5478 |
|
5479 |
|
5480 |
|
5481 |
|
5482 |
|
5483 |
|
5484 |
|
5485 |
|
5486 |
|
5487 |
|
5488 |
|
5489 |
|
5490 |
|
5491 |
|
5492 |
|
5493 |
|
5494 |
|
5495 | var Crontab_Hourvue_type_script_lang_js_ = (crontab_hour);
|
5496 |
|
5497 | var module_Crontab_Hourvue_type_script_lang_js_ = (Crontab_Hourvue_type_script_lang_js_);
|
5498 |
|
5499 |
|
5500 |
|
5501 |
|
5502 |
|
5503 |
|
5504 |
|
5505 |
|
5506 | var Crontab_Hour_component = Object(componentNormalizer["a" ])(
|
5507 | module_Crontab_Hourvue_type_script_lang_js_,
|
5508 | Crontab_Hourvue_type_template_id_4792ccf1_render,
|
5509 | Crontab_Hourvue_type_template_id_4792ccf1_staticRenderFns,
|
5510 | false,
|
5511 | null,
|
5512 | null,
|
5513 | null
|
5514 |
|
5515 | )
|
5516 |
|
5517 | var Crontab_Hour = (Crontab_Hour_component.exports);
|
5518 |
|
5519 | var Crontab_Dayvue_type_template_id_730f0636_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',[_c('el-radio-group',{model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":1}},[_vm._v(" 日,允许的通配符[, - * /]")])],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":2}},[_vm._v(" 不指定")])],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":3}},[_vm._v("\n\t\t\t\t周期从\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}}),_vm._v(" 日\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":4}},[_vm._v("\n\t\t\t\t从\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 号开始,每\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}}),_vm._v(" 日执行一次\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":5}},[_vm._v("\n\t\t\t\t每月\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.workday),callback:function ($$v) {_vm.workday=$$v},expression:"workday"}}),_vm._v(" 号最近的那个工作日\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":6}},[_vm._v(" 本月最后一天")])],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":7}},[_vm._v("\n\t\t\t\t任意指定\n\t\t\t\t"),_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){_vm.checkboxList=[]}}},[_vm._v("清空指定")]),_c('el-row',{staticClass:"margin-top-10"},[_c('el-checkbox-group',{model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((31),function(item,index){return _c('el-col',{key:item,attrs:{"span":2}},[_c('el-checkbox',{attrs:{"label":item}},[_vm._v("\n\t\t\t\t\t\t\t\t"+_vm._s(index+2>10?item:'0'+(item))+"\n\t\t\t\t\t\t\t")])],1)}),1)],1)],1)],1)],1)],1)}
|
5520 | var Crontab_Dayvue_type_template_id_730f0636_staticRenderFns = []
|
5521 |
|
5522 |
|
5523 |
|
5524 |
|
5525 |
|
5526 | var crontab_day = ({
|
5527 | data: function data() {
|
5528 | return {
|
5529 | radioValue: 1,
|
5530 | workday: 1,
|
5531 | cycle01: 1,
|
5532 | cycle02: 2,
|
5533 | average01: 1,
|
5534 | average02: 1,
|
5535 | checkboxList: [],
|
5536 | checkNum: this.$options.propsData.check
|
5537 | };
|
5538 | },
|
5539 | name: "crontab-day",
|
5540 | props: ["check", "week"],
|
5541 | methods: {
|
5542 |
|
5543 | radioChange: function radioChange() {
|
5544 | switch (this.radioValue) {
|
5545 | case 1:
|
5546 | this.$emit("updata", "day", "*");
|
5547 | break;
|
5548 |
|
5549 | case 2:
|
5550 | this.$emit("updata", "day", "?");
|
5551 | break;
|
5552 |
|
5553 | case 3:
|
5554 | this.$emit("updata", "day", this.cycle01 + "-" + this.cycle02);
|
5555 | break;
|
5556 |
|
5557 | case 4:
|
5558 | this.$emit("updata", "day", this.average01 + "/" + this.average02);
|
5559 | break;
|
5560 |
|
5561 | case 5:
|
5562 | this.$emit("updata", "day", this.workday + "W");
|
5563 | break;
|
5564 |
|
5565 | case 6:
|
5566 | this.$emit("updata", "day", "L");
|
5567 | break;
|
5568 |
|
5569 | case 7:
|
5570 | this.$emit("updata", "day", this.checkboxString);
|
5571 | break;
|
5572 | }
|
5573 | },
|
5574 |
|
5575 | cycleChange: function cycleChange() {
|
5576 | if (this.radioValue === 3) {
|
5577 | this.$emit("updata", "day", this.cycleTotal);
|
5578 | }
|
5579 | },
|
5580 |
|
5581 | averageChange: function averageChange() {
|
5582 | if (this.radioValue === 4) {
|
5583 | this.$emit("updata", "day", this.averageTotal);
|
5584 | }
|
5585 | },
|
5586 |
|
5587 | workdayChange: function workdayChange() {
|
5588 | if (this.radioValue === 5) {
|
5589 | this.$emit("updata", "day", this.workday + "W");
|
5590 | }
|
5591 | },
|
5592 |
|
5593 | checkboxChange: function checkboxChange() {
|
5594 | if (this.radioValue === 7) {
|
5595 | this.$emit("updata", "day", this.checkboxString);
|
5596 | }
|
5597 | },
|
5598 |
|
5599 | weekChange: function weekChange() {
|
5600 |
|
5601 | if (this.$options.propsData.week === "?" && this.radioValue == 2) {
|
5602 | this.radioValue = "1";
|
5603 | } else if (this.$options.propsData.week !== "?" && this.radioValue != 2) {
|
5604 | this.radioValue = 2;
|
5605 | }
|
5606 | }
|
5607 | },
|
5608 | watch: {
|
5609 | radioValue: "radioChange",
|
5610 | cycleTotal: "cycleChange",
|
5611 | averageTotal: "averageChange",
|
5612 | workdayCheck: "workdayChange",
|
5613 | checkboxString: "checkboxChange",
|
5614 | week: "weekChange"
|
5615 | },
|
5616 | computed: {
|
5617 |
|
5618 | cycleTotal: function cycleTotal() {
|
5619 | this.cycle01 = this.checkNum(this.cycle01, 1, 31);
|
5620 | this.cycle02 = this.checkNum(this.cycle02, 1, 31);
|
5621 | return this.cycle01 + "-" + this.cycle02;
|
5622 | },
|
5623 |
|
5624 | averageTotal: function averageTotal() {
|
5625 | this.average01 = this.checkNum(this.average01, 1, 31);
|
5626 | this.average02 = this.checkNum(this.average02, 1, 31);
|
5627 | return this.average01 + "/" + this.average02;
|
5628 | },
|
5629 |
|
5630 | workdayCheck: function workdayCheck() {
|
5631 | this.workday = this.checkNum(this.workday, 1, 31);
|
5632 | return this.workday;
|
5633 | },
|
5634 |
|
5635 | checkboxString: function checkboxString() {
|
5636 | var str = this.checkboxList.join();
|
5637 | return str === "" ? "*" : str;
|
5638 | }
|
5639 | }
|
5640 | });
|
5641 |
|
5642 |
|
5643 |
|
5644 |
|
5645 |
|
5646 |
|
5647 |
|
5648 |
|
5649 |
|
5650 |
|
5651 |
|
5652 |
|
5653 |
|
5654 |
|
5655 |
|
5656 |
|
5657 |
|
5658 |
|
5659 |
|
5660 |
|
5661 |
|
5662 |
|
5663 |
|
5664 |
|
5665 |
|
5666 |
|
5667 |
|
5668 |
|
5669 |
|
5670 |
|
5671 |
|
5672 |
|
5673 |
|
5674 |
|
5675 |
|
5676 |
|
5677 |
|
5678 |
|
5679 |
|
5680 |
|
5681 |
|
5682 |
|
5683 |
|
5684 |
|
5685 |
|
5686 |
|
5687 |
|
5688 |
|
5689 |
|
5690 |
|
5691 |
|
5692 |
|
5693 |
|
5694 | var Crontab_Dayvue_type_script_lang_js_ = (crontab_day);
|
5695 |
|
5696 | var module_Crontab_Dayvue_type_script_lang_js_ = (Crontab_Dayvue_type_script_lang_js_);
|
5697 |
|
5698 |
|
5699 |
|
5700 |
|
5701 |
|
5702 |
|
5703 |
|
5704 |
|
5705 | var Crontab_Day_component = Object(componentNormalizer["a" ])(
|
5706 | module_Crontab_Dayvue_type_script_lang_js_,
|
5707 | Crontab_Dayvue_type_template_id_730f0636_render,
|
5708 | Crontab_Dayvue_type_template_id_730f0636_staticRenderFns,
|
5709 | false,
|
5710 | null,
|
5711 | null,
|
5712 | null
|
5713 |
|
5714 | )
|
5715 |
|
5716 | var Crontab_Day = (Crontab_Day_component.exports);
|
5717 |
|
5718 | var Crontab_Mouthvue_type_template_id_28095ea8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',[_c('el-radio-group',{model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":1}},[_vm._v(" 月,允许的通配符[, - * /]")])],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":2}},[_vm._v("\n\t\t\t\t周期从\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}}),_vm._v(" 月\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":3}},[_vm._v("\n\t\t\t\t从\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 月开始,每\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}}),_vm._v(" 月执行一次\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":4}},[_vm._v("\n\t\t\t\t任意指定\n\t\t\t\t"),_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){_vm.checkboxList=[]}}},[_vm._v("清空指定")]),_c('el-row',{staticClass:"margin-top-10"},[_c('el-checkbox-group',{model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((12),function(item,index){return _c('el-col',{key:item,attrs:{"span":2}},[_c('el-checkbox',{attrs:{"label":item-1}},[_vm._v("\n\t\t\t\t\t\t\t\t"+_vm._s(index>10?item:'0'+(item))+"\n\t\t\t\t\t\t\t")])],1)}),1)],1)],1)],1)],1)],1)}
|
5719 | var Crontab_Mouthvue_type_template_id_28095ea8_staticRenderFns = []
|
5720 |
|
5721 |
|
5722 |
|
5723 |
|
5724 |
|
5725 | var crontab_mouth = ({
|
5726 | data: function data() {
|
5727 | return {
|
5728 | radioValue: 1,
|
5729 | cycle01: 1,
|
5730 | cycle02: 2,
|
5731 | average01: 1,
|
5732 | average02: 1,
|
5733 | checkboxList: [],
|
5734 | checkNum: this.$options.propsData.check
|
5735 | };
|
5736 | },
|
5737 | name: "crontab-mouth",
|
5738 | props: ["check"],
|
5739 | methods: {
|
5740 |
|
5741 | radioChange: function radioChange() {
|
5742 | switch (this.radioValue) {
|
5743 | case 1:
|
5744 | this.$emit("updata", "mouth", "*");
|
5745 | break;
|
5746 |
|
5747 | case 2:
|
5748 | this.$emit("updata", "mouth", this.cycle01 + "-" + this.cycle02);
|
5749 | break;
|
5750 |
|
5751 | case 3:
|
5752 | this.$emit("updata", "mouth", this.average01 + "/" + this.average02);
|
5753 | break;
|
5754 |
|
5755 | case 4:
|
5756 | this.$emit("updata", "mouth", this.checkboxString);
|
5757 | break;
|
5758 | }
|
5759 | },
|
5760 |
|
5761 | cycleChange: function cycleChange() {
|
5762 | if (this.radioValue === 2) {
|
5763 | this.$emit("updata", "mouth", this.cycleTotal);
|
5764 | }
|
5765 | },
|
5766 |
|
5767 | averageChange: function averageChange() {
|
5768 | if (this.radioValue === 3) {
|
5769 | this.$emit("updata", "mouth", this.averageTotal);
|
5770 | }
|
5771 | },
|
5772 |
|
5773 | checkboxChange: function checkboxChange() {
|
5774 | if (this.radioValue === 4) {
|
5775 | this.$emit("updata", "mouth", this.checkboxString);
|
5776 | }
|
5777 | }
|
5778 | },
|
5779 | watch: {
|
5780 | radioValue: "radioChange",
|
5781 | cycleTotal: "cycleChange",
|
5782 | averageTotal: "averageChange",
|
5783 | checkboxString: "checkboxChange"
|
5784 | },
|
5785 | computed: {
|
5786 |
|
5787 | cycleTotal: function cycleTotal() {
|
5788 | this.cycle01 = this.checkNum(this.cycle01, 1, 12);
|
5789 | this.cycle02 = this.checkNum(this.cycle02, 1, 12);
|
5790 | return this.cycle01 + "-" + this.cycle02;
|
5791 | },
|
5792 |
|
5793 | averageTotal: function averageTotal() {
|
5794 | this.average01 = this.checkNum(this.average01, 1, 12);
|
5795 | this.average02 = this.checkNum(this.average02, 1, 12);
|
5796 | return this.average01 + "/" + this.average02;
|
5797 | },
|
5798 |
|
5799 | checkboxString: function checkboxString() {
|
5800 | var str = this.checkboxList.join();
|
5801 | return str === "" ? "*" : str;
|
5802 | }
|
5803 | }
|
5804 | });
|
5805 |
|
5806 |
|
5807 |
|
5808 |
|
5809 |
|
5810 |
|
5811 |
|
5812 |
|
5813 |
|
5814 |
|
5815 |
|
5816 |
|
5817 |
|
5818 |
|
5819 |
|
5820 |
|
5821 |
|
5822 |
|
5823 |
|
5824 |
|
5825 |
|
5826 |
|
5827 |
|
5828 |
|
5829 |
|
5830 |
|
5831 |
|
5832 |
|
5833 |
|
5834 |
|
5835 |
|
5836 |
|
5837 |
|
5838 |
|
5839 |
|
5840 |
|
5841 |
|
5842 |
|
5843 |
|
5844 |
|
5845 |
|
5846 | var Crontab_Mouthvue_type_script_lang_js_ = (crontab_mouth);
|
5847 |
|
5848 | var module_Crontab_Mouthvue_type_script_lang_js_ = (Crontab_Mouthvue_type_script_lang_js_);
|
5849 |
|
5850 |
|
5851 |
|
5852 |
|
5853 |
|
5854 |
|
5855 |
|
5856 |
|
5857 | var Crontab_Mouth_component = Object(componentNormalizer["a" ])(
|
5858 | module_Crontab_Mouthvue_type_script_lang_js_,
|
5859 | Crontab_Mouthvue_type_template_id_28095ea8_render,
|
5860 | Crontab_Mouthvue_type_template_id_28095ea8_staticRenderFns,
|
5861 | false,
|
5862 | null,
|
5863 | null,
|
5864 | null
|
5865 |
|
5866 | )
|
5867 |
|
5868 | var Crontab_Mouth = (Crontab_Mouth_component.exports);
|
5869 |
|
5870 | var Crontab_Weekvue_type_template_id_d65e541c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',[_c('el-radio-group',{model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":1}},[_vm._v(" 周,允许的通配符[, - * /]")])],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":2}},[_vm._v(" 不指定")])],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":3}},[_vm._v("\n\t\t\t\t周期从星期\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}})],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":4}},[_vm._v("\n\t\t\t\t第\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 周的星期\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}})],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":5}},[_vm._v("\n\t\t\t\t本月最后一个星期\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.weekday),callback:function ($$v) {_vm.weekday=$$v},expression:"weekday"}})],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":6}},[_vm._v("\n\t\t\t\t任意指定\n\t\t\t\t"),_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){_vm.checkboxList=[]}}},[_vm._v("清空指定")]),_c('el-row',{staticClass:"margin-top-10"},[_c('el-checkbox-group',{model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((_vm.weekList),function(item,index){return _c('el-col',{key:item,attrs:{"span":2}},[_c('el-checkbox',{attrs:{"label":index+1}},[_vm._v("\n\t\t\t\t\t\t\t\t"+_vm._s(item)+"\n\t\t\t\t\t\t\t")])],1)}),1)],1)],1)],1)],1)],1)}
|
5871 | var Crontab_Weekvue_type_template_id_d65e541c_staticRenderFns = []
|
5872 |
|
5873 |
|
5874 |
|
5875 |
|
5876 |
|
5877 | var crontab_week = ({
|
5878 | data: function data() {
|
5879 | return {
|
5880 | radioValue: 2,
|
5881 | weekday: 1,
|
5882 | cycle01: 1,
|
5883 | cycle02: 2,
|
5884 | average01: 1,
|
5885 | average02: 1,
|
5886 | checkboxList: [],
|
5887 | weekList: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"],
|
5888 | checkNum: this.$options.propsData.check
|
5889 | };
|
5890 | },
|
5891 | name: "crontab-week",
|
5892 | props: ["check", "day"],
|
5893 | methods: {
|
5894 |
|
5895 | radioChange: function radioChange() {
|
5896 | switch (this.radioValue) {
|
5897 | case 1:
|
5898 | this.$emit("updata", "week", "*");
|
5899 | break;
|
5900 |
|
5901 | case 2:
|
5902 | this.$emit("updata", "week", "?");
|
5903 | break;
|
5904 |
|
5905 | case 3:
|
5906 | this.$emit("updata", "week", this.cycle01 + "-" + this.cycle02);
|
5907 | break;
|
5908 |
|
5909 | case 4:
|
5910 | this.$emit("updata", "week", this.average01 + "#" + this.average02);
|
5911 | break;
|
5912 |
|
5913 | case 5:
|
5914 | this.$emit("updata", "week", this.weekday + "L");
|
5915 | break;
|
5916 |
|
5917 | case 6:
|
5918 | this.$emit("updata", "week", this.checkboxString);
|
5919 | break;
|
5920 | }
|
5921 | },
|
5922 |
|
5923 |
|
5924 | cycleChange: function cycleChange() {
|
5925 | if (this.radioValue === 3) {
|
5926 | this.$emit("updata", "week", this.cycleTotal);
|
5927 | }
|
5928 | },
|
5929 |
|
5930 | averageChange: function averageChange() {
|
5931 | if (this.radioValue === 4) {
|
5932 | this.$emit("updata", "week", this.averageTotal);
|
5933 | }
|
5934 | },
|
5935 |
|
5936 | weekdayChange: function weekdayChange() {
|
5937 | if (this.radioValue === 5) {
|
5938 | this.$emit("updata", "week", this.weekday + "L");
|
5939 | }
|
5940 | },
|
5941 |
|
5942 | checkboxChange: function checkboxChange() {
|
5943 | if (this.radioValue === 6) {
|
5944 | this.$emit("updata", "week", this.checkboxString);
|
5945 | }
|
5946 | },
|
5947 |
|
5948 | dayChange: function dayChange() {
|
5949 |
|
5950 | if (this.$options.propsData.day === "?" && this.radioValue == 2) {
|
5951 | this.radioValue = 1;
|
5952 | } else if (this.$options.propsData.day !== "?" && this.radioValue != 2) {
|
5953 | this.radioValue = 2;
|
5954 | }
|
5955 | }
|
5956 | },
|
5957 | watch: {
|
5958 | radioValue: "radioChange",
|
5959 | cycleTotal: "cycleChange",
|
5960 | averageTotal: "averageChange",
|
5961 | weekdayCheck: "weekdayChange",
|
5962 | checkboxString: "checkboxChange",
|
5963 | day: "dayChange"
|
5964 | },
|
5965 | computed: {
|
5966 |
|
5967 | cycleTotal: function cycleTotal() {
|
5968 | this.cycle01 = this.checkNum(this.cycle01, 1, 7);
|
5969 | this.cycle02 = this.checkNum(this.cycle02, 1, 7);
|
5970 | return this.cycle01 + "-" + this.cycle02;
|
5971 | },
|
5972 |
|
5973 | averageTotal: function averageTotal() {
|
5974 | this.average01 = this.checkNum(this.average01, 1, 4);
|
5975 | this.average02 = this.checkNum(this.average02, 1, 7);
|
5976 | return this.average01 + "#" + this.average02;
|
5977 | },
|
5978 |
|
5979 | weekdayCheck: function weekdayCheck() {
|
5980 | this.weekday = this.checkNum(this.weekday, 1, 7);
|
5981 | return this.weekday;
|
5982 | },
|
5983 |
|
5984 | checkboxString: function checkboxString() {
|
5985 | var str = this.checkboxList.join();
|
5986 | return str === "" ? "*" : str;
|
5987 | }
|
5988 | }
|
5989 | });
|
5990 |
|
5991 |
|
5992 |
|
5993 |
|
5994 |
|
5995 |
|
5996 |
|
5997 |
|
5998 |
|
5999 |
|
6000 |
|
6001 |
|
6002 |
|
6003 |
|
6004 |
|
6005 |
|
6006 |
|
6007 |
|
6008 |
|
6009 |
|
6010 |
|
6011 |
|
6012 |
|
6013 |
|
6014 |
|
6015 |
|
6016 |
|
6017 |
|
6018 |
|
6019 |
|
6020 |
|
6021 |
|
6022 |
|
6023 |
|
6024 |
|
6025 |
|
6026 |
|
6027 |
|
6028 |
|
6029 |
|
6030 |
|
6031 |
|
6032 |
|
6033 |
|
6034 |
|
6035 |
|
6036 |
|
6037 |
|
6038 |
|
6039 |
|
6040 | var Crontab_Weekvue_type_script_lang_js_ = (crontab_week);
|
6041 |
|
6042 | var module_Crontab_Weekvue_type_script_lang_js_ = (Crontab_Weekvue_type_script_lang_js_);
|
6043 |
|
6044 |
|
6045 |
|
6046 |
|
6047 |
|
6048 |
|
6049 |
|
6050 |
|
6051 | var Crontab_Week_component = Object(componentNormalizer["a" ])(
|
6052 | module_Crontab_Weekvue_type_script_lang_js_,
|
6053 | Crontab_Weekvue_type_template_id_d65e541c_render,
|
6054 | Crontab_Weekvue_type_template_id_d65e541c_staticRenderFns,
|
6055 | false,
|
6056 | null,
|
6057 | null,
|
6058 | null
|
6059 |
|
6060 | )
|
6061 |
|
6062 | var Crontab_Week = (Crontab_Week_component.exports);
|
6063 |
|
6064 | var Crontab_Yearvue_type_template_id_54c51304_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',[_c('el-radio-group',{model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":1}},[_vm._v(" 不填,允许的通配符[, - * /]")])],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":2}},[_vm._v(" 每年")])],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":3}},[_vm._v("\n\t\t\t\t周期从\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}}),_vm._v(" 年\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":4}},[_vm._v("\n\t\t\t\t从\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 年开始,每\n\t\t\t\t"),_c('el-input-number',{staticClass:"el-input-height",attrs:{"min":1},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}}),_vm._v(" 年执行一次\n\t\t\t")],1)],1),_c('el-row',{staticClass:"margin-10"},[_c('el-radio',{attrs:{"label":5}},[_vm._v("\n\t\t\t\t任意指定\n\t\t\t\t"),_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){_vm.checkboxList=[]}}},[_vm._v("清空指定")]),_c('el-row',{staticClass:"margin-top-10"},[_c('el-checkbox-group',{model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((9),function(item){return _c('el-col',{key:item,attrs:{"span":2}},[_c('el-checkbox',{attrs:{"label":item - 1 + _vm.fullYear}},[_vm._v("\n\t\t\t\t\t\t\t\t"+_vm._s(item -1 + _vm.fullYear)+"\n\t\t\t\t\t\t\t")])],1)}),1)],1)],1)],1)],1)],1)}
|
6065 | var Crontab_Yearvue_type_template_id_54c51304_staticRenderFns = []
|
6066 |
|
6067 |
|
6068 |
|
6069 |
|
6070 |
|
6071 | var crontab_year = ({
|
6072 | data: function data() {
|
6073 | return {
|
6074 | fullYear: "",
|
6075 | radioValue: 1,
|
6076 | cycle01: 0,
|
6077 | cycle02: 0,
|
6078 | average01: 0,
|
6079 | average02: 1,
|
6080 | checkboxList: [],
|
6081 | checkNum: this.$options.propsData.check
|
6082 | };
|
6083 | },
|
6084 | name: "crontab-year",
|
6085 | props: ["check"],
|
6086 | methods: {
|
6087 |
|
6088 | radioChange: function radioChange() {
|
6089 | switch (this.radioValue) {
|
6090 | case 1:
|
6091 | this.$emit("updata", "year", "");
|
6092 | break;
|
6093 |
|
6094 | case 2:
|
6095 | this.$emit("updata", "year", "*");
|
6096 | break;
|
6097 |
|
6098 | case 3:
|
6099 | this.$emit("updata", "year", this.cycle01 + "-" + this.cycle02);
|
6100 | break;
|
6101 |
|
6102 | case 4:
|
6103 | this.$emit("updata", "year", this.average01 + "/" + this.average02);
|
6104 | break;
|
6105 |
|
6106 | case 5:
|
6107 | this.$emit("updata", "year", this.checkboxString);
|
6108 | break;
|
6109 | }
|
6110 | },
|
6111 |
|
6112 | cycleChange: function cycleChange() {
|
6113 | if (this.radioValue === 3) {
|
6114 | this.$emit("updata", "year", this.cycleTotal);
|
6115 | }
|
6116 | },
|
6117 |
|
6118 | averageChange: function averageChange() {
|
6119 | if (this.radioValue === 4) {
|
6120 | this.$emit("updata", "year", this.averageTotal);
|
6121 | }
|
6122 | },
|
6123 |
|
6124 | checkboxChange: function checkboxChange() {
|
6125 | if (this.radioValue === 5) {
|
6126 | this.$emit("updata", "year", this.checkboxString);
|
6127 | }
|
6128 | }
|
6129 | },
|
6130 | watch: {
|
6131 | radioValue: "radioChange",
|
6132 | cycleTotal: "cycleChange",
|
6133 | averageTotal: "averageChange",
|
6134 | checkboxString: "checkboxChange"
|
6135 | },
|
6136 | computed: {
|
6137 |
|
6138 | cycleTotal: function cycleTotal() {
|
6139 | this.cycle01 = this.checkNum(this.cycle01, this.fullYear, this.fullYear + 100);
|
6140 | this.cycle02 = this.checkNum(this.cycle02, this.fullYear + 1, this.fullYear + 101);
|
6141 | return this.cycle01 + "-" + this.cycle02;
|
6142 | },
|
6143 |
|
6144 | averageTotal: function averageTotal() {
|
6145 | this.average01 = this.checkNum(this.average01, this.fullYear, this.fullYear + 100);
|
6146 | this.average02 = this.checkNum(this.average02, 1, 10);
|
6147 | return this.average01 + "/" + this.average02;
|
6148 | },
|
6149 |
|
6150 | checkboxString: function checkboxString() {
|
6151 | var str = this.checkboxList.join();
|
6152 | return str;
|
6153 | }
|
6154 | },
|
6155 | mounted: function mounted() {
|
6156 |
|
6157 | this.fullYear = new Date().getFullYear();
|
6158 | }
|
6159 | });
|
6160 |
|
6161 |
|
6162 |
|
6163 |
|
6164 |
|
6165 |
|
6166 |
|
6167 |
|
6168 |
|
6169 |
|
6170 |
|
6171 |
|
6172 |
|
6173 |
|
6174 |
|
6175 |
|
6176 |
|
6177 |
|
6178 |
|
6179 |
|
6180 |
|
6181 |
|
6182 |
|
6183 |
|
6184 |
|
6185 |
|
6186 |
|
6187 |
|
6188 |
|
6189 |
|
6190 |
|
6191 |
|
6192 |
|
6193 |
|
6194 |
|
6195 |
|
6196 |
|
6197 |
|
6198 |
|
6199 |
|
6200 |
|
6201 |
|
6202 |
|
6203 |
|
6204 | var Crontab_Yearvue_type_script_lang_js_ = (crontab_year);
|
6205 |
|
6206 | var module_Crontab_Yearvue_type_script_lang_js_ = (Crontab_Yearvue_type_script_lang_js_);
|
6207 |
|
6208 |
|
6209 |
|
6210 |
|
6211 |
|
6212 |
|
6213 |
|
6214 |
|
6215 | var Crontab_Year_component = Object(componentNormalizer["a" ])(
|
6216 | module_Crontab_Yearvue_type_script_lang_js_,
|
6217 | Crontab_Yearvue_type_template_id_54c51304_render,
|
6218 | Crontab_Yearvue_type_template_id_54c51304_staticRenderFns,
|
6219 | false,
|
6220 | null,
|
6221 | null,
|
6222 | null
|
6223 |
|
6224 | )
|
6225 |
|
6226 | var Crontab_Year = (Crontab_Year_component.exports);
|
6227 |
|
6228 | var Crontab_Resultvue_type_template_id_5d958640_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:"box-card"},[_c('template',{staticClass:"clearfix",slot:"header"},[_c('span',[_vm._v("未来 5 次运行时间")])]),(_vm.isShow)?_c('el-row',_vm._l((_vm.resultList),function(item){return _c('el-col',{key:item,staticClass:"margin-bottom-10",attrs:{"span":24}},[_vm._v("\n\t\t\t"+_vm._s(item)+"\n\t\t")])}),1):_c('el-row',[_c('el-col',{attrs:{"span":24}},[_vm._v("计算结果中...")])],1)],2)}
|
6229 | var Crontab_Resultvue_type_template_id_5d958640_staticRenderFns = []
|
6230 |
|
6231 |
|
6232 |
|
6233 |
|
6234 |
|
6235 | var es6_array_sort_ = __webpack_require__("f61e");
|
6236 |
|
6237 |
|
6238 | var es6_number_constructor_ = __webpack_require__("d036");
|
6239 |
|
6240 |
|
6241 | var es6_regexp_match_ = __webpack_require__("2fef");
|
6242 |
|
6243 |
|
6244 |
|
6245 |
|
6246 |
|
6247 |
|
6248 |
|
6249 |
|
6250 | var crontab_result = ({
|
6251 | data: function data() {
|
6252 | return {
|
6253 | dayRule: "",
|
6254 | dayRuleSup: "",
|
6255 | dateArr: [],
|
6256 | resultList: [],
|
6257 | isShow: false
|
6258 | };
|
6259 | },
|
6260 | name: "crontab-result",
|
6261 | methods: {
|
6262 |
|
6263 | expressionChange: function expressionChange() {
|
6264 |
|
6265 | this.isShow = false;
|
6266 |
|
6267 | var ruleArr = this.$options.propsData.ex.split(" ");
|
6268 |
|
6269 | var nums = 0;
|
6270 |
|
6271 | var resultArr = [];
|
6272 |
|
6273 | var nTime = new Date();
|
6274 | var nYear = nTime.getFullYear();
|
6275 | var nMouth = nTime.getMonth() + 1;
|
6276 | var nDay = nTime.getDate();
|
6277 | var nHour = nTime.getHours();
|
6278 | var nMin = nTime.getMinutes();
|
6279 | var nSecond = nTime.getSeconds();
|
6280 |
|
6281 | this.getSecondArr(ruleArr[0]);
|
6282 | this.getMinArr(ruleArr[1]);
|
6283 | this.getHourArr(ruleArr[2]);
|
6284 | this.getDayArr(ruleArr[3]);
|
6285 | this.getMouthArr(ruleArr[4]);
|
6286 | this.getWeekArr(ruleArr[5]);
|
6287 | this.getYearArr(ruleArr[6], nYear);
|
6288 |
|
6289 | var sDate = this.dateArr[0];
|
6290 | var mDate = this.dateArr[1];
|
6291 | var hDate = this.dateArr[2];
|
6292 | var DDate = this.dateArr[3];
|
6293 | var MDate = this.dateArr[4];
|
6294 | var YDate = this.dateArr[5];
|
6295 |
|
6296 | var sIdx = this.getIndex(sDate, nSecond);
|
6297 | var mIdx = this.getIndex(mDate, nMin);
|
6298 | var hIdx = this.getIndex(hDate, nHour);
|
6299 | var DIdx = this.getIndex(DDate, nDay);
|
6300 | var MIdx = this.getIndex(MDate, nMouth);
|
6301 | var YIdx = this.getIndex(YDate, nYear);
|
6302 |
|
6303 | var resetSecond = function resetSecond() {
|
6304 | sIdx = 0;
|
6305 | nSecond = sDate[sIdx];
|
6306 | };
|
6307 |
|
6308 | var resetMin = function resetMin() {
|
6309 | mIdx = 0;
|
6310 | nMin = mDate[mIdx];
|
6311 | resetSecond();
|
6312 | };
|
6313 |
|
6314 | var resetHour = function resetHour() {
|
6315 | hIdx = 0;
|
6316 | nHour = hDate[hIdx];
|
6317 | resetMin();
|
6318 | };
|
6319 |
|
6320 | var resetDay = function resetDay() {
|
6321 | DIdx = 0;
|
6322 | nDay = DDate[DIdx];
|
6323 | resetHour();
|
6324 | };
|
6325 |
|
6326 | var resetMouth = function resetMouth() {
|
6327 | MIdx = 0;
|
6328 | nMouth = MDate[MIdx];
|
6329 | resetDay();
|
6330 | };
|
6331 |
|
6332 |
|
6333 | if (nYear !== YDate[YIdx]) {
|
6334 | resetMouth();
|
6335 | }
|
6336 |
|
6337 |
|
6338 | if (nMouth !== MDate[MIdx]) {
|
6339 | resetDay();
|
6340 | }
|
6341 |
|
6342 |
|
6343 | if (nDay !== DDate[DIdx]) {
|
6344 | resetHour();
|
6345 | }
|
6346 |
|
6347 |
|
6348 | if (nHour !== hDate[hIdx]) {
|
6349 | resetMin();
|
6350 | }
|
6351 |
|
6352 |
|
6353 | if (nMin !== mDate[mIdx]) {
|
6354 | resetSecond();
|
6355 | }
|
6356 |
|
6357 |
|
6358 | goYear: for (var Yi = YIdx; Yi < YDate.length; Yi++) {
|
6359 | var YY = YDate[Yi];
|
6360 |
|
6361 | if (nMouth > MDate[MDate.length - 1]) {
|
6362 | resetMouth();
|
6363 | continue;
|
6364 | }
|
6365 |
|
6366 |
|
6367 | goMouth: for (var Mi = MIdx; Mi < MDate.length; Mi++) {
|
6368 |
|
6369 | var MM = MDate[Mi];
|
6370 | MM = MM < 10 ? "0" + MM : MM;
|
6371 |
|
6372 | if (nDay > DDate[DDate.length - 1]) {
|
6373 | resetDay();
|
6374 |
|
6375 | if (Mi === MDate.length - 1) {
|
6376 | resetMouth();
|
6377 | continue goYear;
|
6378 | }
|
6379 |
|
6380 | continue;
|
6381 | }
|
6382 |
|
6383 |
|
6384 | goDay: for (var Di = DIdx; Di < DDate.length; Di++) {
|
6385 |
|
6386 | var DD = DDate[Di];
|
6387 | var thisDD = DD < 10 ? "0" + DD : DD;
|
6388 |
|
6389 | if (nHour > hDate[hDate.length - 1]) {
|
6390 | resetHour();
|
6391 |
|
6392 | if (Di === DDate.length - 1) {
|
6393 | resetDay();
|
6394 |
|
6395 | if (Mi === MDate.length - 1) {
|
6396 | resetMouth();
|
6397 | continue goYear;
|
6398 | }
|
6399 |
|
6400 | continue goMouth;
|
6401 | }
|
6402 |
|
6403 | continue;
|
6404 | }
|
6405 |
|
6406 |
|
6407 | if (this.checkDate(YY + "-" + MM + "-" + thisDD + " 00:00:00") !== true && this.dayRule !== "workDay" && this.dayRule !== "lastWeek" && this.dayRule !== "lastDay") {
|
6408 | resetDay();
|
6409 | continue goMouth;
|
6410 | }
|
6411 |
|
6412 |
|
6413 | if (this.dayRule === "lastDay") {
|
6414 |
|
6415 | if (this.checkDate(YY + "-" + MM + "-" + thisDD + " 00:00:00") !== true) {
|
6416 | while (this.checkDate(YY + "-" + MM + "-" + thisDD + " 00:00:00") !== true) {
|
6417 | DD--;
|
6418 | thisDD = DD < 10 ? "0" + DD : DD;
|
6419 | }
|
6420 | }
|
6421 | } else if (this.dayRule === "workDay") {
|
6422 |
|
6423 | if (this.checkDate(YY + "-" + MM + "-" + thisDD + " 00:00:00") !== true) {
|
6424 | while (this.checkDate(YY + "-" + MM + "-" + thisDD + " 00:00:00") !== true) {
|
6425 | DD--;
|
6426 | thisDD = DD < 10 ? "0" + DD : DD;
|
6427 | }
|
6428 | }
|
6429 |
|
6430 |
|
6431 | var thisWeek = this.formatDate(new Date(YY + "-" + MM + "-" + thisDD + " 00:00:00"), "week");
|
6432 |
|
6433 | if (thisWeek === 0) {
|
6434 |
|
6435 | DD++;
|
6436 | thisDD = DD < 10 ? "0" + DD : DD;
|
6437 |
|
6438 | if (this.checkDate(YY + "-" + MM + "-" + thisDD + " 00:00:00") !== true) {
|
6439 | DD -= 3;
|
6440 | }
|
6441 | } else if (thisWeek === 6) {
|
6442 |
|
6443 | if (this.dayRuleSup !== 1) {
|
6444 | DD--;
|
6445 | } else {
|
6446 | DD += 2;
|
6447 | }
|
6448 | }
|
6449 | } else if (this.dayRule === "weekDay") {
|
6450 |
|
6451 |
|
6452 | var _thisWeek = this.formatDate(new Date(YY + "-" + MM + "-" + DD + " 00:00:00"), "week");
|
6453 |
|
6454 |
|
6455 | if (Array.indexOf(this.dayRuleSup, _thisWeek) < 0) {
|
6456 |
|
6457 | if (Di === DDate.length - 1) {
|
6458 | resetDay();
|
6459 |
|
6460 | if (Mi === MDate.length - 1) {
|
6461 | resetMouth();
|
6462 | continue goYear;
|
6463 | }
|
6464 |
|
6465 | continue goMouth;
|
6466 | }
|
6467 |
|
6468 | continue;
|
6469 | }
|
6470 | } else if (this.dayRule === "assWeek") {
|
6471 |
|
6472 |
|
6473 | var _thisWeek2 = this.formatDate(new Date(YY + "-" + MM + "-" + DD + " 00:00:00"), "week");
|
6474 |
|
6475 | if (this.dayRuleSup[1] >= _thisWeek2) {
|
6476 | DD = (this.dayRuleSup[0] - 1) * 7 + this.dayRuleSup[1] - _thisWeek2 + 1;
|
6477 | } else {
|
6478 | DD = this.dayRuleSup[0] * 7 + this.dayRuleSup[1] - _thisWeek2 + 1;
|
6479 | }
|
6480 | } else if (this.dayRule === "lastWeek") {
|
6481 |
|
6482 |
|
6483 | if (this.checkDate(YY + "-" + MM + "-" + thisDD + " 00:00:00") !== true) {
|
6484 | while (this.checkDate(YY + "-" + MM + "-" + thisDD + " 00:00:00") !== true) {
|
6485 | DD--;
|
6486 | thisDD = DD < 10 ? "0" + DD : DD;
|
6487 | }
|
6488 | }
|
6489 |
|
6490 |
|
6491 | var _thisWeek3 = this.formatDate(new Date(YY + "-" + MM + "-" + thisDD + " 00:00:00"), "week");
|
6492 |
|
6493 |
|
6494 | if (this.dayRuleSup < _thisWeek3) {
|
6495 | DD -= _thisWeek3 - this.dayRuleSup;
|
6496 | } else if (this.dayRuleSup > _thisWeek3) {
|
6497 | DD -= 7 - (this.dayRuleSup - _thisWeek3);
|
6498 | }
|
6499 | }
|
6500 |
|
6501 |
|
6502 | DD = DD < 10 ? "0" + DD : DD;
|
6503 |
|
6504 | goHour: for (var hi = hIdx; hi < hDate.length; hi++) {
|
6505 | var hh = hDate[hi] < 10 ? "0" + hDate[hi] : hDate[hi];
|
6506 |
|
6507 | if (nMin > mDate[mDate.length - 1]) {
|
6508 | resetMin();
|
6509 |
|
6510 | if (hi === hDate.length - 1) {
|
6511 | resetHour();
|
6512 |
|
6513 | if (Di === DDate.length - 1) {
|
6514 | resetDay();
|
6515 |
|
6516 | if (Mi === MDate.length - 1) {
|
6517 | resetMouth();
|
6518 | continue goYear;
|
6519 | }
|
6520 |
|
6521 | continue goMouth;
|
6522 | }
|
6523 |
|
6524 | continue goDay;
|
6525 | }
|
6526 |
|
6527 | continue;
|
6528 | }
|
6529 |
|
6530 |
|
6531 | goMin: for (var mi = mIdx; mi < mDate.length; mi++) {
|
6532 | var mm = mDate[mi] < 10 ? "0" + mDate[mi] : mDate[mi];
|
6533 |
|
6534 | if (nSecond > sDate[sDate.length - 1]) {
|
6535 | resetSecond();
|
6536 |
|
6537 | if (mi === mDate.length - 1) {
|
6538 | resetMin();
|
6539 |
|
6540 | if (hi === hDate.length - 1) {
|
6541 | resetHour();
|
6542 |
|
6543 | if (Di === DDate.length - 1) {
|
6544 | resetDay();
|
6545 |
|
6546 | if (Mi === MDate.length - 1) {
|
6547 | resetMouth();
|
6548 | continue goYear;
|
6549 | }
|
6550 |
|
6551 | continue goMouth;
|
6552 | }
|
6553 |
|
6554 | continue goDay;
|
6555 | }
|
6556 |
|
6557 | continue goHour;
|
6558 | }
|
6559 |
|
6560 | continue;
|
6561 | }
|
6562 |
|
6563 |
|
6564 | goSecond: for (var si = sIdx; si <= sDate.length - 1; si++) {
|
6565 | var ss = sDate[si] < 10 ? "0" + sDate[si] : sDate[si];
|
6566 |
|
6567 | resultArr.push(YY + "-" + MM + "-" + DD + " " + hh + ":" + mm + ":" + ss);
|
6568 | nums++;
|
6569 |
|
6570 | if (nums === 5) break goYear;
|
6571 |
|
6572 | if (si === sDate.length - 1) {
|
6573 | resetSecond();
|
6574 |
|
6575 | if (mi === mDate.length - 1) {
|
6576 | resetMin();
|
6577 |
|
6578 | if (hi === hDate.length - 1) {
|
6579 | resetHour();
|
6580 |
|
6581 | if (Di === DDate.length - 1) {
|
6582 | resetDay();
|
6583 |
|
6584 | if (Mi === MDate.length - 1) {
|
6585 | resetMouth();
|
6586 | continue goYear;
|
6587 | }
|
6588 |
|
6589 | continue goMouth;
|
6590 | }
|
6591 |
|
6592 | continue goDay;
|
6593 | }
|
6594 |
|
6595 | continue goHour;
|
6596 | }
|
6597 |
|
6598 | continue goMin;
|
6599 | }
|
6600 | }
|
6601 |
|
6602 | }
|
6603 |
|
6604 | }
|
6605 |
|
6606 | }
|
6607 |
|
6608 | }
|
6609 |
|
6610 | }
|
6611 |
|
6612 |
|
6613 | if (resultArr.length === 0) {
|
6614 | this.resultList = ["没有达到条件的结果!"];
|
6615 | } else {
|
6616 | this.resultList = resultArr;
|
6617 |
|
6618 | if (resultArr.length !== 5) {
|
6619 | this.resultList.push("最近100年内只有上面" + resultArr.length + "条结果!");
|
6620 | }
|
6621 | }
|
6622 |
|
6623 |
|
6624 | this.isShow = true;
|
6625 | },
|
6626 |
|
6627 | getIndex: function getIndex(arr, value) {
|
6628 | if (value <= arr[0] || value > arr[arr.length - 1]) {
|
6629 | return 0;
|
6630 | } else {
|
6631 | for (var i = 0; i < arr.length - 1; i++) {
|
6632 | if (value > arr[i] && value <= arr[i + 1]) {
|
6633 | return i + 1;
|
6634 | }
|
6635 | }
|
6636 | }
|
6637 | },
|
6638 |
|
6639 | getYearArr: function getYearArr(rule, year) {
|
6640 | this.dateArr[5] = this.getOrderArr(year, year + 100);
|
6641 |
|
6642 | if (rule !== undefined) {
|
6643 | if (rule.indexOf("-") >= 0) {
|
6644 | this.dateArr[5] = this.getCycleArr(rule, year + 100, false);
|
6645 | } else if (rule.indexOf("/") >= 0) {
|
6646 | this.dateArr[5] = this.getAverageArr(rule, year + 100);
|
6647 | } else if (rule !== "*") {
|
6648 | this.dateArr[5] = this.getAssignArr(rule);
|
6649 | }
|
6650 | }
|
6651 | },
|
6652 |
|
6653 | getMouthArr: function getMouthArr(rule) {
|
6654 | this.dateArr[4] = this.getOrderArr(1, 12);
|
6655 |
|
6656 | if (rule.indexOf("-") >= 0) {
|
6657 | this.dateArr[4] = this.getCycleArr(rule, 12, false);
|
6658 | } else if (rule.indexOf("/") >= 0) {
|
6659 | this.dateArr[4] = this.getAverageArr(rule, 12);
|
6660 | } else if (rule !== "*") {
|
6661 | this.dateArr[4] = this.getAssignArr(rule);
|
6662 | }
|
6663 | },
|
6664 |
|
6665 | getWeekArr: function getWeekArr(rule) {
|
6666 |
|
6667 | if (this.dayRule === "" && this.dayRuleSup === "") {
|
6668 | if (rule.indexOf("-") >= 0) {
|
6669 | this.dayRule = "weekDay";
|
6670 | this.dayRuleSup = this.getCycleArr(rule, 7, false);
|
6671 | } else if (rule.indexOf("#") >= 0) {
|
6672 | this.dayRule = "assWeek";
|
6673 | var matchRule = rule.match(/[0-9]{1}/g);
|
6674 | this.dayRuleSup = [Number(matchRule[0]), Number(matchRule[1])];
|
6675 | this.dateArr[3] = [1];
|
6676 |
|
6677 | if (this.dayRuleSup[1] === 7) {
|
6678 | this.dayRuleSup[1] = 0;
|
6679 | }
|
6680 | } else if (rule.indexOf("L") >= 0) {
|
6681 | this.dayRule = "lastWeek";
|
6682 | this.dayRuleSup = Number(rule.match(/[0-9]{1,2}/g)[0]);
|
6683 | this.dateArr[3] = [31];
|
6684 |
|
6685 | if (this.dayRuleSup === 7) {
|
6686 | this.dayRuleSup = 0;
|
6687 | }
|
6688 | } else if (rule !== "*" && rule !== "?") {
|
6689 | this.dayRule = "weekDay";
|
6690 | this.dayRuleSup = this.getAssignArr(rule);
|
6691 | }
|
6692 |
|
6693 |
|
6694 | if (this.dayRule === "weekDay") {
|
6695 | for (var i = 0; i < this.dayRuleSup.length; i++) {
|
6696 | if (this.dayRuleSup[i] === 7) {
|
6697 | this.dayRuleSup[i] = 0;
|
6698 | }
|
6699 | }
|
6700 | }
|
6701 | }
|
6702 | },
|
6703 |
|
6704 | getDayArr: function getDayArr(rule) {
|
6705 | this.dateArr[3] = this.getOrderArr(1, 31);
|
6706 | this.dayRule = "";
|
6707 | this.dayRuleSup = "";
|
6708 |
|
6709 | if (rule.indexOf("-") >= 0) {
|
6710 | this.dateArr[3] = this.getCycleArr(rule, 31, false);
|
6711 | this.dayRuleSup = "null";
|
6712 | } else if (rule.indexOf("/") >= 0) {
|
6713 | this.dateArr[3] = this.getAverageArr(rule, 31);
|
6714 | this.dayRuleSup = "null";
|
6715 | } else if (rule.indexOf("W") >= 0) {
|
6716 | this.dayRule = "workDay";
|
6717 | this.dayRuleSup = Number(rule.match(/[0-9]{1,2}/g)[0]);
|
6718 | this.dateArr[3] = [this.dayRuleSup];
|
6719 | } else if (rule.indexOf("L") >= 0) {
|
6720 | this.dayRule = "lastDay";
|
6721 | this.dayRuleSup = "null";
|
6722 | this.dateArr[3] = [31];
|
6723 | } else if (rule !== "*" && rule !== "?") {
|
6724 | this.dateArr[3] = this.getAssignArr(rule);
|
6725 | this.dayRuleSup = "null";
|
6726 | } else if (rule === "*") {
|
6727 | this.dayRuleSup = "null";
|
6728 | }
|
6729 | },
|
6730 |
|
6731 | getHourArr: function getHourArr(rule) {
|
6732 | this.dateArr[2] = this.getOrderArr(0, 23);
|
6733 |
|
6734 | if (rule.indexOf("-") >= 0) {
|
6735 | this.dateArr[2] = this.getCycleArr(rule, 24, true);
|
6736 | } else if (rule.indexOf("/") >= 0) {
|
6737 | this.dateArr[2] = this.getAverageArr(rule, 23);
|
6738 | } else if (rule !== "*") {
|
6739 | this.dateArr[2] = this.getAssignArr(rule);
|
6740 | }
|
6741 | },
|
6742 |
|
6743 | getMinArr: function getMinArr(rule) {
|
6744 | this.dateArr[1] = this.getOrderArr(0, 59);
|
6745 |
|
6746 | if (rule.indexOf("-") >= 0) {
|
6747 | this.dateArr[1] = this.getCycleArr(rule, 60, true);
|
6748 | } else if (rule.indexOf("/") >= 0) {
|
6749 | this.dateArr[1] = this.getAverageArr(rule, 59);
|
6750 | } else if (rule !== "*") {
|
6751 | this.dateArr[1] = this.getAssignArr(rule);
|
6752 | }
|
6753 | },
|
6754 |
|
6755 | getSecondArr: function getSecondArr(rule) {
|
6756 | this.dateArr[0] = this.getOrderArr(0, 59);
|
6757 |
|
6758 | if (rule.indexOf("-") >= 0) {
|
6759 | this.dateArr[0] = this.getCycleArr(rule, 60, true);
|
6760 | } else if (rule.indexOf("/") >= 0) {
|
6761 | this.dateArr[0] = this.getAverageArr(rule, 59);
|
6762 | } else if (rule !== "*") {
|
6763 | this.dateArr[0] = this.getAssignArr(rule);
|
6764 | }
|
6765 | },
|
6766 |
|
6767 | getOrderArr: function getOrderArr(min, max) {
|
6768 | var arr = [];
|
6769 |
|
6770 | for (var i = min; i <= max; i++) {
|
6771 | arr.push(i);
|
6772 | }
|
6773 |
|
6774 | return arr;
|
6775 | },
|
6776 |
|
6777 | getAssignArr: function getAssignArr(rule) {
|
6778 | var arr = [];
|
6779 | var assiginArr = rule.split(",");
|
6780 |
|
6781 | for (var i = 0; i < assiginArr.length; i++) {
|
6782 | arr[i] = Number(assiginArr[i]);
|
6783 | }
|
6784 |
|
6785 | arr.sort(this.compare);
|
6786 | return arr;
|
6787 | },
|
6788 |
|
6789 | getAverageArr: function getAverageArr(rule, limit) {
|
6790 | var arr = [];
|
6791 | var agArr = rule.split("/");
|
6792 | var min = Number(agArr[0]);
|
6793 | var step = Number(agArr[1]);
|
6794 |
|
6795 | while (min <= limit) {
|
6796 | arr.push(min);
|
6797 | min += step;
|
6798 | }
|
6799 |
|
6800 | return arr;
|
6801 | },
|
6802 |
|
6803 | getCycleArr: function getCycleArr(rule, limit, status) {
|
6804 |
|
6805 | var arr = [];
|
6806 | var cycleArr = rule.split("-");
|
6807 | var min = Number(cycleArr[0]);
|
6808 | var max = Number(cycleArr[1]);
|
6809 |
|
6810 | if (min > max) {
|
6811 | max += limit;
|
6812 | }
|
6813 |
|
6814 | for (var i = min; i <= max; i++) {
|
6815 | var add = 0;
|
6816 |
|
6817 | if (status === false && i % limit === 0) {
|
6818 | add = limit;
|
6819 | }
|
6820 |
|
6821 | arr.push(Math.round(i % limit + add));
|
6822 | }
|
6823 |
|
6824 | arr.sort(this.compare);
|
6825 | return arr;
|
6826 | },
|
6827 |
|
6828 | compare: function compare(value1, value2) {
|
6829 | if (value2 - value1 > 0) {
|
6830 | return -1;
|
6831 | } else {
|
6832 | return 1;
|
6833 | }
|
6834 | },
|
6835 |
|
6836 | formatDate: function formatDate(value, type) {
|
6837 |
|
6838 | var time = typeof value === "number" ? new Date(value) : value;
|
6839 | var Y = time.getFullYear();
|
6840 | var M = time.getMonth() + 1;
|
6841 | var D = time.getDate();
|
6842 | var h = time.getHours();
|
6843 | var m = time.getMinutes();
|
6844 | var s = time.getSeconds();
|
6845 | var week = time.getDay();
|
6846 |
|
6847 | if (type === undefined) {
|
6848 | return Y + "-" + (M < 10 ? "0" + M : M) + "-" + (D < 10 ? "0" + D : D) + " " + (h < 10 ? "0" + h : h) + ":" + (m < 10 ? "0" + m : m) + ":" + (s < 10 ? "0" + s : s);
|
6849 | } else if (type === "week") {
|
6850 | return week;
|
6851 | }
|
6852 | },
|
6853 |
|
6854 | checkDate: function checkDate(value) {
|
6855 | var time = new Date(value);
|
6856 | var format = this.formatDate(time);
|
6857 | return value === format ? true : false;
|
6858 | }
|
6859 | },
|
6860 | watch: {
|
6861 | ex: "expressionChange"
|
6862 | },
|
6863 | props: ["ex"],
|
6864 | mounted: function mounted() {
|
6865 |
|
6866 | this.expressionChange();
|
6867 | }
|
6868 | });
|
6869 |
|
6870 |
|
6871 |
|
6872 |
|
6873 |
|
6874 |
|
6875 |
|
6876 |
|
6877 |
|
6878 |
|
6879 |
|
6880 |
|
6881 |
|
6882 |
|
6883 |
|
6884 |
|
6885 |
|
6886 |
|
6887 | var Crontab_Resultvue_type_script_lang_js_ = (crontab_result);
|
6888 |
|
6889 | var module_Crontab_Resultvue_type_script_lang_js_ = (Crontab_Resultvue_type_script_lang_js_);
|
6890 |
|
6891 |
|
6892 |
|
6893 |
|
6894 |
|
6895 |
|
6896 |
|
6897 |
|
6898 | var Crontab_Result_component = Object(componentNormalizer["a" ])(
|
6899 | module_Crontab_Resultvue_type_script_lang_js_,
|
6900 | Crontab_Resultvue_type_template_id_5d958640_render,
|
6901 | Crontab_Resultvue_type_template_id_5d958640_staticRenderFns,
|
6902 | false,
|
6903 | null,
|
6904 | null,
|
6905 | null
|
6906 |
|
6907 | )
|
6908 |
|
6909 | var Crontab_Result = (Crontab_Result_component.exports);
|
6910 |
|
6911 |
|
6912 |
|
6913 |
|
6914 |
|
6915 |
|
6916 |
|
6917 |
|
6918 |
|
6919 |
|
6920 |
|
6921 |
|
6922 |
|
6923 |
|
6924 |
|
6925 |
|
6926 |
|
6927 |
|
6928 |
|
6929 |
|
6930 |
|
6931 |
|
6932 |
|
6933 |
|
6934 |
|
6935 |
|
6936 |
|
6937 |
|
6938 |
|
6939 |
|
6940 |
|
6941 |
|
6942 |
|
6943 |
|
6944 |
|
6945 |
|
6946 |
|
6947 |
|
6948 |
|
6949 |
|
6950 |
|
6951 |
|
6952 |
|
6953 |
|
6954 |
|
6955 |
|
6956 |
|
6957 |
|
6958 |
|
6959 |
|
6960 |
|
6961 |
|
6962 |
|
6963 |
|
6964 |
|
6965 |
|
6966 |
|
6967 |
|
6968 |
|
6969 |
|
6970 |
|
6971 |
|
6972 |
|
6973 |
|
6974 |
|
6975 |
|
6976 |
|
6977 |
|
6978 |
|
6979 |
|
6980 |
|
6981 |
|
6982 |
|
6983 |
|
6984 |
|
6985 |
|
6986 |
|
6987 |
|
6988 |
|
6989 |
|
6990 |
|
6991 |
|
6992 |
|
6993 | var Crontab_Mainvue_type_script_lang_js_ = ({
|
6994 | props: {
|
6995 | value: {
|
6996 | type: String | null,
|
6997 | default: null
|
6998 | }
|
6999 | },
|
7000 | data: function data() {
|
7001 | return {
|
7002 | tabTitles: ["秒", "分", "时", "日", "月", "周", "年"],
|
7003 | tabActive: "second",
|
7004 | myindex: 0,
|
7005 | contabValueObj: {
|
7006 | second: "*",
|
7007 | min: "*",
|
7008 | hour: "*",
|
7009 | day: "*",
|
7010 | mouth: "*",
|
7011 | week: "?",
|
7012 | year: ""
|
7013 | }
|
7014 | };
|
7015 | },
|
7016 | watch: {
|
7017 | value: function value(val) {
|
7018 | if (!val) this.clear();
|
7019 | }
|
7020 | },
|
7021 | methods: {
|
7022 |
|
7023 | tabCheck: function tabCheck(index) {
|
7024 | this.tabActive = index;
|
7025 | },
|
7026 |
|
7027 | updataContabValue: function updataContabValue(name, value) {
|
7028 | this.contabValueObj[name] = value;
|
7029 | },
|
7030 |
|
7031 | checkNumber: function checkNumber(value, minLimit, maxLimit) {
|
7032 |
|
7033 | value = Math.floor(value);
|
7034 |
|
7035 | if (value < minLimit) {
|
7036 | value = minLimit;
|
7037 | } else if (value > maxLimit) {
|
7038 | value = maxLimit;
|
7039 | }
|
7040 |
|
7041 | return value;
|
7042 | },
|
7043 |
|
7044 | submitFill: function submitFill() {
|
7045 | this.$emit("input", this.contabValueString);
|
7046 | },
|
7047 |
|
7048 | clear: function clear() {}
|
7049 | },
|
7050 | computed: {
|
7051 | contabValueString: function contabValueString() {
|
7052 | var obj = this.contabValueObj;
|
7053 | var str = obj.second + " " + obj.min + " " + obj.hour + " " + obj.day + " " + obj.mouth + " " + obj.week + (obj.year === "" ? "" : " " + obj.year);
|
7054 | return str;
|
7055 | }
|
7056 | },
|
7057 | components: {
|
7058 | CrontabSecond: Crontab_Second,
|
7059 | CrontabMin: Crontab_Min,
|
7060 | CrontabHour: Crontab_Hour,
|
7061 | CrontabDay: Crontab_Day,
|
7062 | CrontabMouth: Crontab_Mouth,
|
7063 | CrontabWeek: Crontab_Week,
|
7064 | CrontabYear: Crontab_Year,
|
7065 | CrontabResult: Crontab_Result
|
7066 | }
|
7067 | });
|
7068 |
|
7069 | var module_Crontab_Mainvue_type_script_lang_js_ = (Crontab_Mainvue_type_script_lang_js_);
|
7070 |
|
7071 | var Crontab_Mainvue_type_style_index_0_lang_scss_ = __webpack_require__("34e4");
|
7072 |
|
7073 |
|
7074 |
|
7075 |
|
7076 |
|
7077 |
|
7078 |
|
7079 |
|
7080 |
|
7081 |
|
7082 | var Crontab_Main_component = Object(componentNormalizer["a" ])(
|
7083 | module_Crontab_Mainvue_type_script_lang_js_,
|
7084 | Crontab_Mainvue_type_template_id_39413b1a_render,
|
7085 | Crontab_Mainvue_type_template_id_39413b1a_staticRenderFns,
|
7086 | false,
|
7087 | null,
|
7088 | null,
|
7089 | null
|
7090 |
|
7091 | )
|
7092 |
|
7093 | var Crontab_Main = (Crontab_Main_component.exports);
|
7094 |
|
7095 | var CronValidator = __webpack_require__("550e");
|
7096 |
|
7097 |
|
7098 |
|
7099 |
|
7100 |
|
7101 |
|
7102 |
|
7103 |
|
7104 |
|
7105 |
|
7106 |
|
7107 |
|
7108 |
|
7109 |
|
7110 |
|
7111 |
|
7112 |
|
7113 |
|
7114 |
|
7115 |
|
7116 |
|
7117 |
|
7118 | var CronTabvue_type_script_lang_js_ = ({
|
7119 | components: {
|
7120 | CronMain: Crontab_Main
|
7121 | },
|
7122 | props: {
|
7123 | title: {
|
7124 | type: String,
|
7125 | default: "高级设置"
|
7126 | },
|
7127 | readonly: {
|
7128 | type: Boolean,
|
7129 | default: false
|
7130 | },
|
7131 | value: {
|
7132 | type: String | null,
|
7133 | default: null
|
7134 | }
|
7135 | },
|
7136 | data: function data() {
|
7137 | return {
|
7138 | cronStr: null,
|
7139 | showCron: false
|
7140 | };
|
7141 | },
|
7142 | watch: {
|
7143 | cronStr: function cronStr(val) {
|
7144 | this.$emit("input", val);
|
7145 | },
|
7146 | value: function value(val) {
|
7147 | this.cronStr = val;
|
7148 | }
|
7149 | },
|
7150 | methods: {
|
7151 | showCronDia: function showCronDia() {
|
7152 | this.showCron = true;
|
7153 | },
|
7154 | cronblur: function cronblur() {
|
7155 | var val = this.cronStr;
|
7156 |
|
7157 | if (val && val !== "") {
|
7158 | var result = CronValidator["a" ].validateCronExpression(val);
|
7159 | if (!result) this.$emit("input", null);
|
7160 | }
|
7161 | }
|
7162 | }
|
7163 | });
|
7164 |
|
7165 | var common_CronTabvue_type_script_lang_js_ = (CronTabvue_type_script_lang_js_);
|
7166 |
|
7167 | var CronTabvue_type_style_index_0_lang_scss_ = __webpack_require__("b256");
|
7168 |
|
7169 |
|
7170 |
|
7171 |
|
7172 |
|
7173 |
|
7174 |
|
7175 |
|
7176 |
|
7177 |
|
7178 | var CronTab_component = Object(componentNormalizer["a" ])(
|
7179 | common_CronTabvue_type_script_lang_js_,
|
7180 | CronTabvue_type_template_id_5bcf022d_render,
|
7181 | CronTabvue_type_template_id_5bcf022d_staticRenderFns,
|
7182 | false,
|
7183 | null,
|
7184 | null,
|
7185 | null
|
7186 |
|
7187 | )
|
7188 |
|
7189 | var CronTab = (CronTab_component.exports);
|
7190 |
|
7191 | var Ajax = __webpack_require__("566f");
|
7192 |
|
7193 |
|
7194 |
|
7195 | var TaskMgrApi = ({
|
7196 | addJob: function addJob(data) {
|
7197 | return Ajax["a" ].post("/sys/quartz/addJob", data);
|
7198 | },
|
7199 | updataJob: function updataJob(data) {
|
7200 | return Ajax["a" ].post("/sys/quartz/updataJob", data);
|
7201 | },
|
7202 | queryJob: function queryJob(params) {
|
7203 | return Ajax["a" ].get("/sys/quartz/getJobList", {
|
7204 | params: params
|
7205 | });
|
7206 | },
|
7207 | delJob: function delJob(data) {
|
7208 | return Ajax["a" ].post("/sys/quartz/delJob", data);
|
7209 | },
|
7210 | runJob: function runJob(data) {
|
7211 | return Ajax["a" ].post("/sys/quartz/runJob", data);
|
7212 | },
|
7213 | stopJob: function stopJob(data) {
|
7214 | return Ajax["a" ].post("/sys/quartz/stopJob", data);
|
7215 | },
|
7216 | getJobClasss: function getJobClasss() {
|
7217 | return Ajax["a" ].get("/sys/quartz/getJobClasss");
|
7218 | },
|
7219 | loadJobInfo: function loadJobInfo(params) {
|
7220 | return Ajax["a" ].get("/sys/quartz/getLoadJobInfo", {
|
7221 | params: params
|
7222 | });
|
7223 | },
|
7224 | loadJobRunHis: function loadJobRunHis(params) {
|
7225 | return Ajax["a" ].get("/sys/quartz/getLoadJobHis", {
|
7226 | params: params
|
7227 | });
|
7228 | }
|
7229 | });
|
7230 |
|
7231 | var HandleHistory = __webpack_require__("e66d");
|
7232 |
|
7233 |
|
7234 |
|
7235 |
|
7236 |
|
7237 |
|
7238 |
|
7239 |
|
7240 |
|
7241 |
|
7242 |
|
7243 |
|
7244 |
|
7245 |
|
7246 |
|
7247 |
|
7248 |
|
7249 |
|
7250 |
|
7251 |
|
7252 |
|
7253 |
|
7254 |
|
7255 |
|
7256 |
|
7257 |
|
7258 |
|
7259 |
|
7260 |
|
7261 |
|
7262 |
|
7263 |
|
7264 |
|
7265 |
|
7266 |
|
7267 |
|
7268 |
|
7269 |
|
7270 |
|
7271 |
|
7272 |
|
7273 |
|
7274 |
|
7275 |
|
7276 |
|
7277 |
|
7278 |
|
7279 |
|
7280 |
|
7281 |
|
7282 |
|
7283 |
|
7284 |
|
7285 |
|
7286 |
|
7287 |
|
7288 |
|
7289 |
|
7290 |
|
7291 |
|
7292 |
|
7293 |
|
7294 |
|
7295 |
|
7296 |
|
7297 |
|
7298 |
|
7299 |
|
7300 |
|
7301 |
|
7302 |
|
7303 |
|
7304 |
|
7305 |
|
7306 |
|
7307 |
|
7308 |
|
7309 |
|
7310 |
|
7311 |
|
7312 |
|
7313 |
|
7314 |
|
7315 |
|
7316 |
|
7317 |
|
7318 |
|
7319 |
|
7320 |
|
7321 |
|
7322 |
|
7323 |
|
7324 |
|
7325 |
|
7326 |
|
7327 |
|
7328 |
|
7329 |
|
7330 |
|
7331 |
|
7332 |
|
7333 |
|
7334 |
|
7335 |
|
7336 |
|
7337 |
|
7338 |
|
7339 |
|
7340 |
|
7341 |
|
7342 |
|
7343 |
|
7344 |
|
7345 |
|
7346 |
|
7347 |
|
7348 |
|
7349 |
|
7350 |
|
7351 |
|
7352 |
|
7353 |
|
7354 |
|
7355 |
|
7356 |
|
7357 |
|
7358 |
|
7359 |
|
7360 |
|
7361 |
|
7362 |
|
7363 |
|
7364 |
|
7365 | var defaultData = {
|
7366 | jobName: null,
|
7367 | jobPrio: 5,
|
7368 | description: null,
|
7369 | triggerMisfire: "1",
|
7370 | jobClassName: null,
|
7371 | cronExpression: null,
|
7372 | oldJobName: null,
|
7373 | exceInfo: null,
|
7374 | isRun: "0",
|
7375 | jobConfig: ""
|
7376 | };
|
7377 | var TaskMgrEditvue_type_script_lang_js_ = ({
|
7378 | components: {
|
7379 | CronTab: CronTab,
|
7380 | HandleHistory: HandleHistory["a" ]
|
7381 | },
|
7382 | props: {
|
7383 | jobData: {
|
7384 | job: {
|
7385 | type: Object | null,
|
7386 | default: null
|
7387 | },
|
7388 | onlyRead: {
|
7389 | type: Boolean | null,
|
7390 | default: null
|
7391 | }
|
7392 | }
|
7393 | },
|
7394 | data: function data() {
|
7395 | return {
|
7396 | queryform: {
|
7397 | logLevel: "1"
|
7398 | },
|
7399 | table: {
|
7400 | data: []
|
7401 | },
|
7402 | activeName: "first",
|
7403 | jobClasss: [],
|
7404 |
|
7405 | jobRunNum: 0,
|
7406 | taskData: Object.assign({}, defaultData),
|
7407 | loading: false,
|
7408 | rules: {
|
7409 | jobName: [{
|
7410 | required: true,
|
7411 | message: "请输入任务名称",
|
7412 | trigger: "change"
|
7413 | }],
|
7414 | description: [{
|
7415 | required: true,
|
7416 | message: "请输入任务描述",
|
7417 | trigger: "change"
|
7418 | }],
|
7419 | jobClassName: [{
|
7420 | required: true,
|
7421 | message: "请输入执行类",
|
7422 | trigger: "change"
|
7423 | }],
|
7424 | cronExpression: [{
|
7425 | required: true,
|
7426 | message: "请选择Cron表达式",
|
7427 | trigger: "change"
|
7428 | }]
|
7429 | }
|
7430 | };
|
7431 | },
|
7432 | mounted: function mounted() {
|
7433 | if (this.jobData.job) {
|
7434 | this.loadForm(this.jobData);
|
7435 | } else {
|
7436 | this.taskData = Object.assign({}, defaultData);
|
7437 | }
|
7438 |
|
7439 | this.loadJobSelect();
|
7440 | },
|
7441 | watch: {
|
7442 | jobData: function jobData(val) {
|
7443 | if (val.job) {
|
7444 | this.loadForm(val);
|
7445 | } else {
|
7446 | this.taskData = Object.assign({}, defaultData);
|
7447 | this.resetForm();
|
7448 | }
|
7449 |
|
7450 | this.loadJobSelect();
|
7451 | }
|
7452 | },
|
7453 | methods: {
|
7454 | logLevelChang: function logLevelChang(val) {
|
7455 | var _this = this;
|
7456 |
|
7457 | this.$nextTick(function () {
|
7458 | _this.$refs.dataTableHis.load({
|
7459 | logLevel: val,
|
7460 | jobName: _this.jobData.job.jobname
|
7461 | });
|
7462 | });
|
7463 | },
|
7464 | loadJobSelect: function loadJobSelect() {
|
7465 | var _this2 = this;
|
7466 |
|
7467 | TaskMgrApi.getJobClasss().then(function (resp) {
|
7468 | _this2.jobClasss = resp.JobClasss;
|
7469 | });
|
7470 | },
|
7471 |
|
7472 | loadForm: function loadForm(val) {
|
7473 | var _this3 = this;
|
7474 |
|
7475 | this.loading = true;
|
7476 |
|
7477 | try {
|
7478 |
|
7479 | TaskMgrApi.loadJobInfo({
|
7480 | jobName: val.job.jobname
|
7481 | }).then(function (resp) {
|
7482 |
|
7483 | _this3.taskData.uuid = _this3.jobData.job.uuid;
|
7484 | _this3.taskData.crUserUuid = _this3.jobData.job.cruseruuid;
|
7485 | _this3.taskData.opUserUuid = _this3.jobData.job.opuseruuid;
|
7486 | _this3.taskData.crTime = _this3.jobData.job.crtime;
|
7487 | _this3.taskData.opTime = _this3.jobData.job.optime;
|
7488 | _this3.taskData.exceInfo = _this3.jobData.job.exceinfo;
|
7489 | _this3.taskData.jobPrio = _this3.jobData.job.jobprio;
|
7490 | _this3.taskData.triggerMisfire = _this3.jobData.job.triggermisfire;
|
7491 | _this3.taskData.jobConfig = _this3.jobData.job.jobconfig;
|
7492 | console.log(resp);
|
7493 | _this3.taskData.jobName = resp.datarows[0].jobname;
|
7494 | _this3.taskData.description = resp.datarows[0].description;
|
7495 | var jn = resp.datarows[0].jobclassname.split(".");
|
7496 | var className = jn[jn.length - 1];
|
7497 | var after = className.substr(0, 1).toLowerCase();
|
7498 | var befor = className.substr(1, className.length - 1);
|
7499 | _this3.taskData.jobClassName = after + befor;
|
7500 | _this3.taskData.triggerName = resp.datarows[0].triggername;
|
7501 | _this3.taskData.triggerGroup = resp.datarows[0].triggergroup;
|
7502 | _this3.taskData.nextFireTime = resp.datarows[0].nextfiretime;
|
7503 | _this3.taskData.prevFireTime = resp.datarows[0].prevfiretime;
|
7504 | _this3.taskData.triggerState = resp.datarows[0].triggerstate;
|
7505 | _this3.taskData.startTime = resp.datarows[0].starttime;
|
7506 | _this3.taskData.endTime = resp.datarows[0].endtime;
|
7507 | _this3.taskData.cronExpression = resp.datarows[0].cronexpression;
|
7508 | _this3.taskData.timeZoneId = resp.datarows[0].timezoneid;
|
7509 | _this3.taskData.oldJobName = resp.datarows[0].jobname;
|
7510 | });
|
7511 | } finally {
|
7512 | this.loading = false;
|
7513 | }
|
7514 |
|
7515 |
|
7516 | this.dataTableLoad(Object.assign(this.queryform, {
|
7517 | jobName: val.job.jobname
|
7518 | }));
|
7519 | },
|
7520 |
|
7521 | submitForm: function () {
|
7522 | var _submitForm = Object(asyncToGenerator["a" ])(
|
7523 |
|
7524 | regeneratorRuntime.mark(function _callee() {
|
7525 | return regeneratorRuntime.wrap(function _callee$(_context) {
|
7526 | while (1) {
|
7527 | switch (_context.prev = _context.next) {
|
7528 | case 0:
|
7529 | _context.next = 2;
|
7530 | return this.$refs.form.validate();
|
7531 |
|
7532 | case 2:
|
7533 | _context.prev = 2;
|
7534 | this.loading = true;
|
7535 |
|
7536 | if (!this.jobData.job) {
|
7537 | _context.next = 9;
|
7538 | break;
|
7539 | }
|
7540 |
|
7541 | TaskMgrApi.updataJob(this.taskData);
|
7542 | this.$emit("closeDia");
|
7543 | _context.next = 12;
|
7544 | break;
|
7545 |
|
7546 | case 9:
|
7547 | _context.next = 11;
|
7548 | return TaskMgrApi.addJob(this.taskData);
|
7549 |
|
7550 | case 11:
|
7551 | this.$emit("closeDia");
|
7552 |
|
7553 | case 12:
|
7554 | _context.prev = 12;
|
7555 | this.loading = false;
|
7556 | return _context.finish(12);
|
7557 |
|
7558 | case 15:
|
7559 | case "end":
|
7560 | return _context.stop();
|
7561 | }
|
7562 | }
|
7563 | }, _callee, this, [[2,, 12, 15]]);
|
7564 | }));
|
7565 |
|
7566 | function submitForm() {
|
7567 | return _submitForm.apply(this, arguments);
|
7568 | }
|
7569 |
|
7570 | return submitForm;
|
7571 | }(),
|
7572 |
|
7573 | resetForm: function resetForm() {
|
7574 | this.$refs.form.resetFields();
|
7575 | this.activeName = "first";
|
7576 | this.queryform.logLevel = "1";
|
7577 | },
|
7578 |
|
7579 | dataTableLoad: function dataTableLoad(params) {
|
7580 | var _this4 = this;
|
7581 |
|
7582 | TaskMgrApi.loadJobRunHis(params).then(function (respData) {
|
7583 | return _this4.jobRunNum = respData.datarows.length;
|
7584 | });
|
7585 | },
|
7586 | triggerState: function triggerState(cellValue) {
|
7587 | var label = "unknow";
|
7588 |
|
7589 | switch (cellValue) {
|
7590 | case "WAITING":
|
7591 | label = "等待";
|
7592 | break;
|
7593 |
|
7594 | case "PAUSED":
|
7595 | label = "暂停";
|
7596 | break;
|
7597 |
|
7598 | case "ACQUIRED":
|
7599 | label = "正常执行";
|
7600 | break;
|
7601 |
|
7602 | case "BLOCKED":
|
7603 | label = "阻塞";
|
7604 | break;
|
7605 |
|
7606 | case "ERROR":
|
7607 | label = "错误";
|
7608 | break;
|
7609 | }
|
7610 |
|
7611 | return label;
|
7612 | }
|
7613 | }
|
7614 | });
|
7615 |
|
7616 | var sysm_TaskMgrEditvue_type_script_lang_js_ = (TaskMgrEditvue_type_script_lang_js_);
|
7617 |
|
7618 | var TaskMgrEditvue_type_style_index_0_lang_scss_ = __webpack_require__("bcb1");
|
7619 |
|
7620 |
|
7621 |
|
7622 |
|
7623 |
|
7624 |
|
7625 |
|
7626 |
|
7627 |
|
7628 |
|
7629 | var TaskMgrEdit_component = Object(componentNormalizer["a" ])(
|
7630 | sysm_TaskMgrEditvue_type_script_lang_js_,
|
7631 | TaskMgrEditvue_type_template_id_3124bc72_render,
|
7632 | TaskMgrEditvue_type_template_id_3124bc72_staticRenderFns,
|
7633 | false,
|
7634 | null,
|
7635 | null,
|
7636 | null
|
7637 |
|
7638 | )
|
7639 |
|
7640 | var TaskMgrEdit = (TaskMgrEdit_component.exports);
|
7641 |
|
7642 |
|
7643 |
|
7644 |
|
7645 |
|
7646 |
|
7647 |
|
7648 |
|
7649 |
|
7650 |
|
7651 |
|
7652 |
|
7653 |
|
7654 |
|
7655 |
|
7656 |
|
7657 |
|
7658 |
|
7659 |
|
7660 |
|
7661 |
|
7662 |
|
7663 |
|
7664 |
|
7665 |
|
7666 |
|
7667 |
|
7668 |
|
7669 |
|
7670 |
|
7671 |
|
7672 |
|
7673 |
|
7674 |
|
7675 |
|
7676 |
|
7677 |
|
7678 |
|
7679 |
|
7680 |
|
7681 |
|
7682 |
|
7683 |
|
7684 |
|
7685 |
|
7686 |
|
7687 |
|
7688 |
|
7689 |
|
7690 |
|
7691 |
|
7692 |
|
7693 |
|
7694 |
|
7695 |
|
7696 |
|
7697 |
|
7698 |
|
7699 |
|
7700 |
|
7701 |
|
7702 |
|
7703 |
|
7704 |
|
7705 |
|
7706 |
|
7707 |
|
7708 |
|
7709 |
|
7710 |
|
7711 |
|
7712 |
|
7713 |
|
7714 |
|
7715 |
|
7716 |
|
7717 |
|
7718 |
|
7719 |
|
7720 |
|
7721 |
|
7722 |
|
7723 |
|
7724 |
|
7725 |
|
7726 |
|
7727 |
|
7728 |
|
7729 |
|
7730 |
|
7731 |
|
7732 |
|
7733 |
|
7734 |
|
7735 | var TaskMgrvue_type_script_lang_js_ = ({
|
7736 | name: "TaskMgr",
|
7737 | components: {
|
7738 | TaskMgrEdit: TaskMgrEdit
|
7739 | },
|
7740 | data: function data() {
|
7741 | return {
|
7742 | triStOptions: [
|
7743 |
|
7744 |
|
7745 |
|
7746 | {
|
7747 | value: "PAUSED",
|
7748 | label: "暂停",
|
7749 | info: "info"
|
7750 | }, {
|
7751 | value: "ACQUIRED",
|
7752 | label: "正常执行",
|
7753 | type: "success"
|
7754 | },
|
7755 |
|
7756 |
|
7757 |
|
7758 | {
|
7759 | value: "ERROR",
|
7760 | label: "错误",
|
7761 | typeL: "danger"
|
7762 | }],
|
7763 | currJobData: {
|
7764 | job: null,
|
7765 | onlyRead: null
|
7766 | },
|
7767 | queryform: {
|
7768 | jobName: null,
|
7769 | triggerState: null
|
7770 | },
|
7771 | showDia: false,
|
7772 | table: {
|
7773 | data: []
|
7774 | },
|
7775 | multipleSelection: []
|
7776 | };
|
7777 | },
|
7778 | methods: {
|
7779 | closeDia: function closeDia() {
|
7780 | this.showDia = false;
|
7781 | this.queryJobData();
|
7782 | },
|
7783 | doEdit: function doEdit(rowData) {
|
7784 | this.currJobData = {
|
7785 | job: Object.assign({}, rowData),
|
7786 | onlyRead: false
|
7787 | };
|
7788 | this.showDia = true;
|
7789 | },
|
7790 | doAdd: function doAdd() {
|
7791 | this.currJobData = {
|
7792 | job: null,
|
7793 | onlyRead: false
|
7794 | };
|
7795 | this.showDia = true;
|
7796 | },
|
7797 | doEye: function doEye(rowData) {
|
7798 | this.currJobData = {
|
7799 | job: Object.assign({}, rowData),
|
7800 | onlyRead: true
|
7801 | };
|
7802 | this.showDia = true;
|
7803 | },
|
7804 | queryJobData: function queryJobData() {
|
7805 | this.$refs.dataTable.load(this.queryform);
|
7806 | },
|
7807 | resetquery: function resetquery() {
|
7808 | this.$refs.queryform.resetFields();
|
7809 | },
|
7810 | dataTableLoad: function dataTableLoad(params, resolve) {
|
7811 | var _this = this;
|
7812 |
|
7813 | TaskMgrApi.queryJob(params).then(resolve)
|
7814 | .then(function (respData) {
|
7815 | return _this.table.data = respData.datarows;
|
7816 | });
|
7817 | },
|
7818 | handleSelectionChange: function handleSelectionChange(val) {
|
7819 | this.multipleSelection = val;
|
7820 | },
|
7821 |
|
7822 |
|
7823 |
|
7824 |
|
7825 |
|
7826 |
|
7827 |
|
7828 |
|
7829 | lockJobs: function lockJobs(t) {
|
7830 | var _this2 = this;
|
7831 |
|
7832 | var jobKeys = [];
|
7833 | this.multipleSelection.forEach(function (value, index) {
|
7834 | jobKeys.push({
|
7835 | jobName: value.jobname
|
7836 | });
|
7837 | });
|
7838 |
|
7839 | if (t) {
|
7840 | TaskMgrApi.runJob(jobKeys).then(function (resp) {
|
7841 | if (resp.respCode === "000000") {
|
7842 | _this2.$message.success(resp.respDesc);
|
7843 | } else {
|
7844 | _this2.$message.error(resp.respDesc);
|
7845 | }
|
7846 |
|
7847 | _this2.queryJobData();
|
7848 | });
|
7849 | } else {
|
7850 | TaskMgrApi.stopJob(jobKeys).then(function (resp) {
|
7851 | if (resp.respCode === "000000") {
|
7852 | _this2.$message.success(resp.respDesc);
|
7853 | } else {
|
7854 | _this2.$message.error(resp.respDesc);
|
7855 | }
|
7856 |
|
7857 | _this2.queryJobData();
|
7858 | });
|
7859 | }
|
7860 | },
|
7861 | dolock: function dolock(rowData, t) {
|
7862 | var _this3 = this;
|
7863 |
|
7864 | if (t) {
|
7865 | TaskMgrApi.runJob([{
|
7866 | jobName: rowData.jobname
|
7867 | }]).then(function (resp) {
|
7868 | if (resp.respCode === "000000") {
|
7869 | _this3.$message.success(resp.respDesc);
|
7870 | } else {
|
7871 | _this3.$message.error(resp.respDesc);
|
7872 | }
|
7873 |
|
7874 | _this3.queryJobData();
|
7875 | });
|
7876 | } else {
|
7877 | TaskMgrApi.stopJob([{
|
7878 | jobName: rowData.jobname
|
7879 | }]).then(function (resp) {
|
7880 | if (resp.respCode === "000000") {
|
7881 | _this3.$message.success(resp.respDesc);
|
7882 | } else {
|
7883 | _this3.$message.error(resp.respDesc);
|
7884 | }
|
7885 |
|
7886 | _this3.queryJobData();
|
7887 | });
|
7888 | }
|
7889 | },
|
7890 | delJobs: function delJobs() {
|
7891 | var _this4 = this;
|
7892 |
|
7893 | this.confirm().then(function () {
|
7894 | var jobKeys = [];
|
7895 |
|
7896 | _this4.multipleSelection.forEach(function (value, index) {
|
7897 | jobKeys.push({
|
7898 | jobName: value.jobname
|
7899 | });
|
7900 | });
|
7901 |
|
7902 | TaskMgrApi.delJob(jobKeys).then(function (resp) {
|
7903 | if (resp.respCode === "000000") {
|
7904 | _this4.$message.success(resp.respDesc);
|
7905 | } else {
|
7906 | _this4.$message.error(resp.respDesc);
|
7907 | }
|
7908 |
|
7909 | _this4.queryJobData();
|
7910 | });
|
7911 | });
|
7912 | },
|
7913 | delJob: function delJob(rowData) {
|
7914 | var _this5 = this;
|
7915 |
|
7916 | this.confirm().then(function () {
|
7917 | TaskMgrApi.delJob([{
|
7918 | jobName: rowData.jobname
|
7919 | }]).then(function (resp) {
|
7920 | if (resp.respCode === "000000") {
|
7921 | _this5.$message.success(resp.respDesc);
|
7922 | } else {
|
7923 | _this5.$message.error(resp.respDesc);
|
7924 | }
|
7925 |
|
7926 | _this5.queryJobData();
|
7927 | });
|
7928 | });
|
7929 | }
|
7930 | }
|
7931 | });
|
7932 |
|
7933 | var sysm_TaskMgrvue_type_script_lang_js_ = (TaskMgrvue_type_script_lang_js_);
|
7934 |
|
7935 |
|
7936 |
|
7937 |
|
7938 |
|
7939 |
|
7940 |
|
7941 |
|
7942 | var TaskMgr_component = Object(componentNormalizer["a" ])(
|
7943 | sysm_TaskMgrvue_type_script_lang_js_,
|
7944 | render,
|
7945 | staticRenderFns,
|
7946 | false,
|
7947 | null,
|
7948 | null,
|
7949 | null
|
7950 |
|
7951 | )
|
7952 |
|
7953 | var TaskMgr = __webpack_exports__["default"] = (TaskMgr_component.exports);
|
7954 |
|
7955 | }),
|
7956 |
|
7957 | "79d0":
|
7958 | (function(module, exports) {
|
7959 |
|
7960 | module.exports = require("regenerator-runtime/runtime");
|
7961 |
|
7962 | }),
|
7963 |
|
7964 | "7f05":
|
7965 | (function(module, __webpack_exports__, __webpack_require__) {
|
7966 |
|
7967 | "use strict";
|
7968 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_QueryDesigner_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4ddc");
|
7969 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_QueryDesigner_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_QueryDesigner_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
7970 |
|
7971 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_QueryDesigner_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
7972 |
|
7973 | }),
|
7974 |
|
7975 | "7f9f":
|
7976 | (function(module, exports) {
|
7977 |
|
7978 | module.exports = require("element-ui/lib/locale");
|
7979 |
|
7980 | }),
|
7981 |
|
7982 | "803d":
|
7983 | (function(module, exports) {
|
7984 |
|
7985 | module.exports = require("core-js/modules/es6.map");
|
7986 |
|
7987 | }),
|
7988 |
|
7989 | "80a8":
|
7990 | (function(module, exports) {
|
7991 |
|
7992 | module.exports = require("core-js/modules/web.dom.iterable");
|
7993 |
|
7994 | }),
|
7995 |
|
7996 | "80fa":
|
7997 | (function(module, __webpack_exports__, __webpack_require__) {
|
7998 |
|
7999 | "use strict";
|
8000 | __webpack_require__.r(__webpack_exports__);
|
8001 |
|
8002 |
|
8003 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',{staticClass:"flex-1"},[_c('template',{slot:"header"},[_c('span',[_vm._v("交互日志管理")])]),_c('el-form',{ref:"queryform",attrs:{"model":_vm.queryform}},[_c('el-row',[_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"开始时间","prop":"authappldate"}},[_c('el-date-picker',{attrs:{"type":"datetime","placeholder":"选择开始时间"},model:{value:(_vm.queryform.actSta),callback:function ($$v) {_vm.$set(_vm.queryform, "actSta", $$v)},expression:"queryform.actSta"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"结束时间","prop":"authappldate"}},[_c('el-date-picker',{attrs:{"type":"datetime","placeholder":"选择结束时间"},model:{value:(_vm.queryform.actEnd),callback:function ($$v) {_vm.$set(_vm.queryform, "actEnd", $$v)},expression:"queryform.actEnd"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"登陆账号","prop":"userId"}},[_c('el-input',{model:{value:(_vm.queryform.userId),callback:function ($$v) {_vm.$set(_vm.queryform, "userId", $$v)},expression:"queryform.userId"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"服务器地址","prop":"svrIp"}},[_c('el-input',{model:{value:(_vm.queryform.svrIp),callback:function ($$v) {_vm.$set(_vm.queryform, "svrIp", $$v)},expression:"queryform.svrIp"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"访问者地址","prop":"reqIp"}},[_c('el-input',{model:{value:(_vm.queryform.reqIp),callback:function ($$v) {_vm.$set(_vm.queryform, "reqIp", $$v)},expression:"queryform.reqIp"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"操作描述","prop":"actDesc"}},[_c('el-input',{model:{value:(_vm.queryform.actDesc),callback:function ($$v) {_vm.$set(_vm.queryform, "actDesc", $$v)},expression:"queryform.actDesc"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"会话标识","prop":"sesId"}},[_c('el-input',{model:{value:(_vm.queryform.sesId),callback:function ($$v) {_vm.$set(_vm.queryform, "sesId", $$v)},expression:"queryform.sesId"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"处理结果","prop":"respcode"}},[_c('el-select',{directives:[{name:"sys-code",rawName:"v-sys-code",value:('questionType'),expression:"'questionType'"}],attrs:{"placeholder":"请选择","clearable":""},model:{value:(_vm.queryform.respcode),callback:function ($$v) {_vm.$set(_vm.queryform, "respcode", $$v)},expression:"queryform.respcode"}},_vm._l((_vm.RESPCODE),function(item){return _c('el-option',{key:item.key,attrs:{"label":item.label,"value":item.key}})}),1)],1)],1)],1)],1)],2),_c('el-card',{staticClass:"flex-1 margin-top-2"},[_c('template',{slot:"header"},[_c('span',[_vm._v("交互日志列表")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search","title":"查询"},on:{"click":_vm.queryData}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-reply-all","title":"重置"},on:{"click":_vm.resetquery}})],1)]),_c('PageTable',{ref:"dataTable",attrs:{"hideTitle":"","page-size":10,"data":_vm.table.data,"highlight-current-row":"","stripe":"","border":""},on:{"load-data":_vm.dataTableLoad}},[_c('el-table-column',{attrs:{"prop":"userid","label":"登录账号","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"username","label":"用户名称","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"uuid","label":"交互标识","width":"250px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"svrip","label":"服务器地址","width":"100px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"reqip","label":"访问者地址","width":"100px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"actdesc","label":"操作描述","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n "+_vm._s(scope.row.actdesc||"系统操作")+"\n ")]}}])}),_c('el-table-column',{attrs:{"prop":"sesid","label":"会话标识","width":"250px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"actsta","label":"操作时间","formatter":_vm.formatterDateTime,"width":"140px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"optime","label":"操作耗时","placement":"top","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"respcode","label":"处理结果","formatter":_vm.respcodeFormatter,"show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"80","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-eye","title":"查看详情"},on:{"click":function($event){return _vm.showInfo(scope.row)}}}),(scope.row.dataflag)?_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search","title":"查看数据"},on:{"click":function($event){return _vm.showData(scope.row.uuid)}}}):_vm._e(),(scope.row.stakinfo)?_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-book","title":"查看堆栈信息"},on:{"click":function($event){return _vm.showStak(scope.row.stakinfo)}}}):_vm._e()]}}])})],1)],2),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看详情","visible":_vm.currentInfo.visible,"width":"800px"},on:{"update:visible":function($event){return _vm.$set(_vm.currentInfo, "visible", $event)}}},[(_vm.currentInfo.visible)?_c('LogsOperInfo',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.currentInfo.loading),expression:"currentInfo.loading"}],attrs:{"uuid":_vm.currentInfo.uuid,"error":_vm.currentInfo.error}}):_vm._e()],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看数据","visible":_vm.editor.datashow,"width":"800px"},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "datashow", $event)}}},[(_vm.editor.datashow)?_c('LogsOperData',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.editor.loading),expression:"editor.loading"}],attrs:{"uuid":_vm.editor.uuid,"flag":1}}):_vm._e()],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","title":"查看堆栈信息","visible":_vm.editor.stakshow,"width":"800px"},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "stakshow", $event)}}},[[(_vm.stakinfo)?_c('el-input',{attrs:{"type":"textarea","rows":25,"readonly":""},model:{value:(_vm.stakinfo),callback:function ($$v) {_vm.stakinfo=$$v},expression:"stakinfo"}}):_vm._e()]],2)],1)}
|
8004 | var staticRenderFns = []
|
8005 |
|
8006 |
|
8007 |
|
8008 |
|
8009 |
|
8010 | var es6_function_name_ = __webpack_require__("25fc");
|
8011 |
|
8012 |
|
8013 | var es6_array_find_index_ = __webpack_require__("0736");
|
8014 |
|
8015 |
|
8016 | var runtime_ = __webpack_require__("79d0");
|
8017 |
|
8018 |
|
8019 | var asyncToGenerator = __webpack_require__("e71e");
|
8020 |
|
8021 |
|
8022 | var LogsOperInfovue_type_template_id_5e6f41e0_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-form',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:"form ",attrs:{"label-position":"top","model":_vm.data}},[_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"服务器地址 ","prop":"svrIp "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.svrIp ),callback:function ($$v) {_vm.$set(_vm.data, "svrIp", $$v)},expression:"data.svrIp "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"服务器名称 ","prop":"svrName "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.svrName ),callback:function ($$v) {_vm.$set(_vm.data, "svrName", $$v)},expression:"data.svrName "}})],1)],1)],1),_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"处理代码 ","prop":"respCode "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.respCode ),callback:function ($$v) {_vm.$set(_vm.data, "respCode", $$v)},expression:"data.respCode "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"处理描述 ","prop":"respDesc "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.respDesc ),callback:function ($$v) {_vm.$set(_vm.data, "respDesc", $$v)},expression:"data.respDesc "}})],1)],1)],1),_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"协议类型 ","prop":"acttype "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.acttype ),callback:function ($$v) {_vm.acttype =$$v},expression:"acttype "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"请求者地址 ","prop":"reqIp "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.reqIp ),callback:function ($$v) {_vm.$set(_vm.data, "reqIp", $$v)},expression:"data.reqIp "}})],1)],1)],1),_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"操作开始时间 ","prop":"actSta "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.actSta ),callback:function ($$v) {_vm.actSta =$$v},expression:"actSta "}})],1)],1),_c('el-col',{attrs:{"span":12}},[_c('el-form-item',{attrs:{"label":"操作结束时间 ","prop":"actEnd "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.actEnd ),callback:function ($$v) {_vm.actEnd =$$v},expression:"actEnd "}})],1)],1)],1),_c('el-form-item',{attrs:{"label":"会话标识 ","prop":"sesId "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.sesId ),callback:function ($$v) {_vm.$set(_vm.data, "sesId", $$v)},expression:"data.sesId "}})],1),_c('el-form-item',{attrs:{"label":"请求终端类型 ","prop":"devType "}},[_c('el-input',{attrs:{"readonly":""},model:{value:(_vm.data.devType ),callback:function ($$v) {_vm.$set(_vm.data, "devType", $$v)},expression:"data.devType "}})],1)],1)],1)}
|
8023 | var LogsOperInfovue_type_template_id_5e6f41e0_scoped_true_staticRenderFns = []
|
8024 |
|
8025 |
|
8026 | // CONCATENATED MODULE: ./base/module/logs/LogsOperInfo.vue?vue&type=template&id=5e6f41e0&scoped=true&
|
8027 |
|
8028 | // EXTERNAL MODULE: external "core-js/modules/es6.object.assign"
|
8029 | var es6_object_assign_ = __webpack_require__("067b");
|
8030 |
|
8031 | // EXTERNAL MODULE: ./base/api/base/logs/LogsOper.js
|
8032 | var LogsOper = __webpack_require__("8165");
|
8033 |
|
8034 | // CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options!./base/module/logs/LogsOperInfo.vue?vue&type=script&lang=js&
|
8035 |
|
8036 | //
|
8037 | //
|
8038 | //
|
8039 | //
|
8040 | //
|
8041 | //
|
8042 | //
|
8043 | //
|
8044 | //
|
8045 | //
|
8046 | //
|
8047 | //
|
8048 | //
|
8049 | //
|
8050 | //
|
8051 | //
|
8052 | //
|
8053 | //
|
8054 | //
|
8055 | //
|
8056 | //
|
8057 | //
|
8058 | //
|
8059 | //
|
8060 | //
|
8061 | //
|
8062 | //
|
8063 | //
|
8064 | //
|
8065 | //
|
8066 | //
|
8067 | //
|
8068 | //
|
8069 | //
|
8070 | //
|
8071 | //
|
8072 | //
|
8073 | //
|
8074 | //
|
8075 | //
|
8076 | //
|
8077 | //
|
8078 | //
|
8079 | //
|
8080 | //
|
8081 | //
|
8082 | //
|
8083 | //
|
8084 | //
|
8085 | //
|
8086 | //
|
8087 | //
|
8088 | //
|
8089 | //
|
8090 | //
|
8091 | //
|
8092 | //
|
8093 | //
|
8094 | //
|
8095 | //
|
8096 |
|
8097 | /* harmony default export */ var LogsOperInfovue_type_script_lang_js_ = ({
|
8098 | components: {
|
8099 | OperAPI: LogsOper["a" ]
|
8100 | },
|
8101 | props: {
|
8102 |
|
8103 | uuid: String,
|
8104 |
|
8105 | error: Object
|
8106 | },
|
8107 | data: function data() {
|
8108 | return {
|
8109 | loading: false,
|
8110 | data: Object.assign({}),
|
8111 | acttype: "",
|
8112 | actSta: "",
|
8113 | actEnd: ""
|
8114 | };
|
8115 | },
|
8116 | watch: {
|
8117 | uuid: function uuid(val) {
|
8118 | this.loadData();
|
8119 | }
|
8120 | },
|
8121 | mounted: function mounted() {
|
8122 |
|
8123 | this.loadData();
|
8124 | },
|
8125 | methods: {
|
8126 |
|
8127 |
|
8128 | validate: function validate() {
|
8129 | var _this = this;
|
8130 |
|
8131 | return this.$refs.form.validate().then(function () {
|
8132 | return _this.data;
|
8133 | });
|
8134 | },
|
8135 |
|
8136 | loadData: function loadData() {
|
8137 | var _this2 = this;
|
8138 |
|
8139 | if (!this.uuid) {
|
8140 | this.$refs.form.resetFields();
|
8141 | } else {
|
8142 | this.loading = true;
|
8143 | LogsOper["a" ].getLogsOperByUuid(this.uuid).then(function (respData) {
|
8144 | _this2.data = respData.datarows;
|
8145 | _this2.loading = false;
|
8146 | _this2.acttype = _this2.acttypeFormatter(respData.datarows);
|
8147 | _this2.actSta = _this2.formatterDateTime(null, null, respData.datarows.actSta);
|
8148 | _this2.actEnd = _this2.formatterDateTime(null, null, respData.datarows.actEnd);
|
8149 | }).catch(function (resp) {});
|
8150 | }
|
8151 | },
|
8152 | acttypeFormatter: function acttypeFormatter(data) {
|
8153 | return data.actType == "1" ? "HTTP" : data.actType == "2" ? "MQ" : "无请求类型";
|
8154 | }
|
8155 | }
|
8156 | });
|
8157 |
|
8158 | var logs_LogsOperInfovue_type_script_lang_js_ = (LogsOperInfovue_type_script_lang_js_);
|
8159 |
|
8160 | var componentNormalizer = __webpack_require__("6691");
|
8161 |
|
8162 |
|
8163 |
|
8164 |
|
8165 |
|
8166 |
|
8167 |
|
8168 |
|
8169 |
|
8170 | var component = Object(componentNormalizer["a" ])(
|
8171 | logs_LogsOperInfovue_type_script_lang_js_,
|
8172 | LogsOperInfovue_type_template_id_5e6f41e0_scoped_true_render,
|
8173 | LogsOperInfovue_type_template_id_5e6f41e0_scoped_true_staticRenderFns,
|
8174 | false,
|
8175 | null,
|
8176 | "5e6f41e0",
|
8177 | null
|
8178 |
|
8179 | )
|
8180 |
|
8181 | var LogsOperInfo = (component.exports);
|
8182 |
|
8183 | var LogsOperData = __webpack_require__("aa21");
|
8184 |
|
8185 |
|
8186 |
|
8187 |
|
8188 |
|
8189 |
|
8190 |
|
8191 |
|
8192 |
|
8193 |
|
8194 |
|
8195 |
|
8196 |
|
8197 |
|
8198 |
|
8199 |
|
8200 |
|
8201 |
|
8202 |
|
8203 |
|
8204 |
|
8205 |
|
8206 |
|
8207 |
|
8208 |
|
8209 |
|
8210 |
|
8211 |
|
8212 |
|
8213 |
|
8214 |
|
8215 |
|
8216 |
|
8217 |
|
8218 |
|
8219 |
|
8220 |
|
8221 |
|
8222 |
|
8223 |
|
8224 |
|
8225 |
|
8226 |
|
8227 |
|
8228 |
|
8229 |
|
8230 |
|
8231 |
|
8232 |
|
8233 |
|
8234 |
|
8235 |
|
8236 |
|
8237 |
|
8238 |
|
8239 |
|
8240 |
|
8241 |
|
8242 |
|
8243 |
|
8244 |
|
8245 |
|
8246 |
|
8247 |
|
8248 |
|
8249 |
|
8250 |
|
8251 |
|
8252 |
|
8253 |
|
8254 |
|
8255 |
|
8256 |
|
8257 |
|
8258 |
|
8259 |
|
8260 |
|
8261 |
|
8262 |
|
8263 |
|
8264 |
|
8265 |
|
8266 |
|
8267 |
|
8268 |
|
8269 |
|
8270 |
|
8271 |
|
8272 |
|
8273 |
|
8274 |
|
8275 |
|
8276 |
|
8277 |
|
8278 |
|
8279 |
|
8280 |
|
8281 |
|
8282 |
|
8283 |
|
8284 |
|
8285 |
|
8286 |
|
8287 |
|
8288 |
|
8289 |
|
8290 |
|
8291 |
|
8292 |
|
8293 |
|
8294 |
|
8295 |
|
8296 | var LogsOpervue_type_script_lang_js_ = ({
|
8297 | components: {
|
8298 | LogsOperData: LogsOperData["a" ],
|
8299 | LogsOperInfo: LogsOperInfo
|
8300 | },
|
8301 | props: {
|
8302 | sesId: {
|
8303 | type: String
|
8304 | }
|
8305 | },
|
8306 | data: function data() {
|
8307 | return {
|
8308 | stakinfo: "",
|
8309 | queryform: {
|
8310 | userId: "",
|
8311 | svrIp: "",
|
8312 | reqIp: "",
|
8313 | actDesc: "",
|
8314 | sesId: "",
|
8315 | actSta: "",
|
8316 | actEnd: "",
|
8317 | respcode: ""
|
8318 | },
|
8319 | RESPCODE: [{
|
8320 | key: "1",
|
8321 | label: "成功"
|
8322 | }, {
|
8323 | key: "2",
|
8324 | label: "失败"
|
8325 | }],
|
8326 |
|
8327 | currentInfo: {
|
8328 | loading: false,
|
8329 | visible: false,
|
8330 | uuid: "",
|
8331 | error: {}
|
8332 | },
|
8333 | table: {
|
8334 | data: []
|
8335 | },
|
8336 | editor: {
|
8337 | uuid: null,
|
8338 | datashow: false,
|
8339 | stakshow: false,
|
8340 | visible: false,
|
8341 |
|
8342 | loading: false
|
8343 | },
|
8344 | respcode: [{
|
8345 | code: "000000",
|
8346 | label: "请求处理成功"
|
8347 | }, {
|
8348 | code: "000100",
|
8349 | label: "用户会话超时"
|
8350 | }, {
|
8351 | code: "000200",
|
8352 | label: "安全服务错误"
|
8353 | }, {
|
8354 | code: "000300",
|
8355 | label: "校验服务错误"
|
8356 | }, {
|
8357 | code: "000400",
|
8358 | label: "系统后台错误"
|
8359 | }, {
|
8360 | code: "000500",
|
8361 | label: "网络服务错误"
|
8362 | }],
|
8363 | acttype: [{
|
8364 | code: "1",
|
8365 | label: "HTTP"
|
8366 | }, {
|
8367 | code: "2",
|
8368 | label: "MQ"
|
8369 | }]
|
8370 | };
|
8371 | },
|
8372 | mounted: function mounted() {
|
8373 | var _this = this;
|
8374 |
|
8375 | this.$nextTick(function () {
|
8376 |
|
8377 | _this.createdGetSesId();
|
8378 |
|
8379 | _this.queryData();
|
8380 | });
|
8381 | },
|
8382 | methods: {
|
8383 |
|
8384 | showStak: function showStak(stakinfo) {
|
8385 | this.editor.stakshow = true;
|
8386 | this.stakinfo = stakinfo;
|
8387 | },
|
8388 | showData: function showData(uuid) {
|
8389 | this.editor.uuid = uuid;
|
8390 | this.editor.datashow = true;
|
8391 | },
|
8392 | showServ: function () {
|
8393 | var _showServ = Object(asyncToGenerator["a" ])(
|
8394 |
|
8395 | regeneratorRuntime.mark(function _callee(uuid) {
|
8396 | return regeneratorRuntime.wrap(function _callee$(_context) {
|
8397 | while (1) {
|
8398 | switch (_context.prev = _context.next) {
|
8399 | case 0:
|
8400 | _context.next = 2;
|
8401 | return this.confirm(null, "是否跳转至服务日志页面?");
|
8402 |
|
8403 | case 2:
|
8404 | _context.next = 4;
|
8405 | return this.removeView("服务日志");
|
8406 |
|
8407 | case 4:
|
8408 | _context.next = 6;
|
8409 | return this.addView("服务日志", "/logs/LogsServ", {
|
8410 | uuid: uuid
|
8411 | });
|
8412 |
|
8413 | case 6:
|
8414 | case "end":
|
8415 | return _context.stop();
|
8416 | }
|
8417 | }
|
8418 | }, _callee, this);
|
8419 | }));
|
8420 |
|
8421 | function showServ(_x) {
|
8422 | return _showServ.apply(this, arguments);
|
8423 | }
|
8424 |
|
8425 | return showServ;
|
8426 | }(),
|
8427 | addView: function addView(name, path, propsData) {
|
8428 | var idx = this.$tabView.viewList.findIndex(function (item) {
|
8429 | return item.name === name;
|
8430 | });
|
8431 | if (idx === -1) this.$tabView.viewList.push({
|
8432 | name: name,
|
8433 | path: path,
|
8434 | propsData: propsData
|
8435 | });
|
8436 | this.$tabView.active = name;
|
8437 | },
|
8438 | removeView: function removeView(name) {
|
8439 | var idx = this.$tabView.viewList.findIndex(function (item) {
|
8440 | return item.name === name;
|
8441 | });
|
8442 |
|
8443 | if (idx > -1) {
|
8444 | this.$tabView.active = this.$tabView.viewList[idx - 1].name;
|
8445 | this.$tabView.viewList.splice(idx, 1);
|
8446 | }
|
8447 | },
|
8448 | respcodeFormatter: function respcodeFormatter(row, column, cellValue) {
|
8449 | return cellValue ? this.respcode.filter(function (v) {
|
8450 | return v.code === cellValue;
|
8451 | })[0].label : "未知错误";
|
8452 | },
|
8453 | acttypeFormatter: function acttypeFormatter(data) {
|
8454 | var cd = this.acttype.filter(function (v) {
|
8455 | return v.code === data.acttype;
|
8456 | });
|
8457 | return cd ? cd[0].label : "无请求类型";
|
8458 | },
|
8459 |
|
8460 | showInfo: function showInfo(row) {
|
8461 | this.currentInfo.uuid = row.uuid;
|
8462 | this.currentInfo.visible = true;
|
8463 | },
|
8464 |
|
8465 | queryData: function queryData() {
|
8466 | if (this.queryform.actEnd < this.queryform.actSta) {
|
8467 | this.$message.error("开始时间不能大于结束时间");
|
8468 | return;
|
8469 | }
|
8470 |
|
8471 | this.$refs.dataTable.load(this.queryform);
|
8472 | },
|
8473 |
|
8474 | resetquery: function resetquery() {
|
8475 | this.$refs.queryform.resetFields();
|
8476 | this.queryform.actSta = "";
|
8477 | this.queryform.actEnd = "";
|
8478 | this.queryform.respcode = "";
|
8479 | },
|
8480 | dataTableLoad: function dataTableLoad(params, resolve) {
|
8481 | var _this2 = this;
|
8482 |
|
8483 | LogsOper["a" ].queryLogsOper(params).then(resolve)
|
8484 | .then(function (respData) {
|
8485 | return _this2.table.data = respData.datarows;
|
8486 | });
|
8487 | },
|
8488 | format: function format(row, column) {
|
8489 | var acttype = row[column.property];
|
8490 |
|
8491 | if (acttype === undefined) {
|
8492 | return "";
|
8493 | } else {
|
8494 | if (acttype === "1") {
|
8495 | return "HTTP协议";
|
8496 | } else {
|
8497 | return "错误数据";
|
8498 | }
|
8499 | }
|
8500 | },
|
8501 | createdGetSesId: function createdGetSesId() {
|
8502 | this.queryform.sesId = this.sesId;
|
8503 | }
|
8504 | }
|
8505 | });
|
8506 |
|
8507 | var logs_LogsOpervue_type_script_lang_js_ = (LogsOpervue_type_script_lang_js_);
|
8508 |
|
8509 |
|
8510 |
|
8511 |
|
8512 |
|
8513 |
|
8514 |
|
8515 |
|
8516 | var LogsOper_component = Object(componentNormalizer["a" ])(
|
8517 | logs_LogsOpervue_type_script_lang_js_,
|
8518 | render,
|
8519 | staticRenderFns,
|
8520 | false,
|
8521 | null,
|
8522 | null,
|
8523 | null
|
8524 |
|
8525 | )
|
8526 |
|
8527 | var logs_LogsOper = __webpack_exports__["default"] = (LogsOper_component.exports);
|
8528 |
|
8529 | }),
|
8530 |
|
8531 | "8165":
|
8532 | (function(module, __webpack_exports__, __webpack_require__) {
|
8533 |
|
8534 | "use strict";
|
8535 | var _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("566f");
|
8536 |
|
8537 | __webpack_exports__["a"] = ({
|
8538 | queryLogsOper: function queryLogsOper(params) {
|
8539 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/logs/LogsOper/queryLogsOper", {
|
8540 | params: params
|
8541 | });
|
8542 | },
|
8543 | queryLogsOperData: function queryLogsOperData(params) {
|
8544 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/logs/LogsOper/queryLogsOperData", {
|
8545 | params: params
|
8546 | });
|
8547 | },
|
8548 |
|
8549 | |
8550 |
|
8551 |
|
8552 |
|
8553 | queryQueryDataHis: function queryQueryDataHis(params) {
|
8554 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/logs/LogsSqlData/dataHandleHis", {
|
8555 | params: params
|
8556 | });
|
8557 | },
|
8558 | getLogsOperByUuid: function getLogsOperByUuid(uuid) {
|
8559 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/logs/LogsOper/getLogsOperByUuid", {
|
8560 | params: {
|
8561 | uuid: uuid
|
8562 | }
|
8563 | });
|
8564 | }
|
8565 | });
|
8566 |
|
8567 | }),
|
8568 |
|
8569 | "822e":
|
8570 | (function(module, exports) {
|
8571 |
|
8572 | module.exports = require("element-ui/lib/mixins/locale");
|
8573 |
|
8574 | }),
|
8575 |
|
8576 | "82ca":
|
8577 | (function(module, exports, __webpack_require__) {
|
8578 |
|
8579 |
|
8580 |
|
8581 | }),
|
8582 |
|
8583 | "8576":
|
8584 | (function(module, exports) {
|
8585 |
|
8586 | module.exports = require("vue-element-dialog-draggable");
|
8587 |
|
8588 | }),
|
8589 |
|
8590 | "85b3":
|
8591 | (function(module, exports) {
|
8592 |
|
8593 | module.exports = require("vue-i18n");
|
8594 |
|
8595 | }),
|
8596 |
|
8597 | "8873":
|
8598 | (function(module, exports, __webpack_require__) {
|
8599 |
|
8600 |
|
8601 |
|
8602 | }),
|
8603 |
|
8604 | "889f":
|
8605 | (function(module, __webpack_exports__, __webpack_require__) {
|
8606 |
|
8607 | "use strict";
|
8608 | __webpack_require__.r(__webpack_exports__);
|
8609 |
|
8610 |
|
8611 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',[_c('template',{slot:"header"},[_c('span',[_vm._v("用户管理")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-plus","title":"新增用户"},on:{"click":function($event){return _vm.doAdd()}}})],1)]),_c('el-form',{ref:"queryform",attrs:{"model":_vm.queryform}},[_c('el-row',[_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"用户名称","prop":"username"}},[_c('el-input',{model:{value:(_vm.queryform.username),callback:function ($$v) {_vm.$set(_vm.queryform, "username", $$v)},expression:"queryform.username"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"用户工号","prop":"usercode"}},[_c('el-input',{model:{value:(_vm.queryform.usercode),callback:function ($$v) {_vm.$set(_vm.queryform, "usercode", $$v)},expression:"queryform.usercode"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"状态","prop":"userstat"}},[_c('el-select',{directives:[{name:"sys-code",rawName:"v-sys-code",value:('userstat'),expression:"'userstat'"}],attrs:{"placeholder":"状态","clearable":""},model:{value:(_vm.queryform.userstat),callback:function ($$v) {_vm.$set(_vm.queryform, "userstat", $$v)},expression:"queryform.userstat"}},_vm._l((_vm.sysCode.userstat),function(item){return _c('el-option',{key:item.key,attrs:{"label":item.label,"value":item.value}})}),1)],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"隶属机构","prop":"orgId"}},[_c('Selector',{attrs:{"clearable":true,"label-key":"label","value-key":"id","placeholder":"隶属组织机构"},model:{value:(_vm.queryform.orgId),callback:function ($$v) {_vm.$set(_vm.queryform, "orgId", $$v)},expression:"queryform.orgId"}},[_c('SelectorTree',{attrs:{"tree-key":"orgTree","searchField":"ORG_NAME","rootLabel":"组织机构"}})],1)],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"范围开始时间","prop":"startTime"}},[_c('el-date-picker',{attrs:{"type":"datetime","placeholder":"选择开始时间"},model:{value:(_vm.queryform.startTime),callback:function ($$v) {_vm.$set(_vm.queryform, "startTime", $$v)},expression:"queryform.startTime"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"范围结束时间","prop":"endTime"}},[_c('el-date-picker',{attrs:{"type":"datetime","placeholder":"选择结束时间"},model:{value:(_vm.queryform.endTime),callback:function ($$v) {_vm.$set(_vm.queryform, "endTime", $$v)},expression:"queryform.endTime"}})],1)],1)],1)],1)],2),_c('el-card',{staticClass:"margin-top-2"},[_c('template',{slot:"header"},[_c('span',[_vm._v("用户列表")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search","title":"查询"},on:{"click":_vm.queryUserData}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-reply-all","title":"重置"},on:{"click":_vm.resetquery}}),_c('el-button',{attrs:{"type":"primary","disabled":!_vm.multipleSelection.length>0,"icon":"el-icon-fa-lock","title":"批量锁定"},on:{"click":function($event){return _vm.lockAndOpenUsers(true)}}}),_c('el-button',{attrs:{"type":"primary","disabled":!_vm.multipleSelection.length>0,"icon":"el-icon-fa-unlock","title":"批量解锁"},on:{"click":function($event){return _vm.lockAndOpenUsers(false)}}}),_c('el-button',{attrs:{"type":"primary","disabled":!_vm.multipleSelection.length>0,"icon":"el-icon-fa-key","title":"批量重置密码"},on:{"click":_vm.resetUserPw}})],1)]),_c('PageTable',{ref:"dataTable",attrs:{"hideTitle":"","auto-load":true,"data":_vm.table.data,"highlight-current-row":"","stripe":"","border":""},on:{"load-data":_vm.dataTableLoad,"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","align":"center","width":"55","fixed":"left"}}),_c('el-table-column',{attrs:{"prop":"userid","label":"登陆账号","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"username","label":"用户名称","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"userstat","dict":"userstat","label":"状态","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('SysCode',{attrs:{"type":'userstat',"value":scope.row.userstat}})]}}])}),_c('el-table-column',{attrs:{"prop":"orgname","label":"隶属机构","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"crtime","formatter":_vm.formatterDateTime,"label":"创建时间","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"optime","formatter":_vm.formatterDateTime,"label":"最后修改时间","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"80","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-edit","title":"修改"},on:{"click":function($event){return _vm.doEdit(scope.$index, scope.row)}}}),_c('el-button',{attrs:{"type":"primary","title":"登陆时间轴","icon":"el-icon-location"},on:{"click":function($event){return _vm.showTimeLine(scope.row)}}})]}}])})],1)],2),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","visible":_vm.editor.show,"title":"用户管理","close-on-click-modal":false},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "show", $event)}}},[_c('div',{staticClass:"dialog-button"},[_c('el-button-group',[_c('el-button',{attrs:{"type":"primary","plain":"","icon":"el-icon-fa-save","title":"保存修改","disabled":_vm.editor.stat=='6' ||_vm.editor.stat=='9'},on:{"click":function($event){return _vm.doSubmit()}}}),_c('el-button',{attrs:{"type":"primary","plain":"","icon":"el-icon-fa-key","title":"重置密码","disabled":!_vm.editor.uuid||_vm.editor.stat!=='5'},on:{"click":function($event){return _vm.resetPwd()}}}),_c('el-button',{attrs:{"type":"primary","plain":"","icon":"el-icon-fa-trash","title":"注销","disabled":!_vm.editor.uuid||_vm.editor.stat=='9'},on:{"click":function($event){return _vm.doShut()}}})],1),_c('el-button-group',{staticClass:"margin-left-3"},[_c('el-button',{attrs:{"type":"primary","plain":"","icon":"el-icon-fa-lock","title":"锁定","disabled":!_vm.editor.uuid||_vm.editor.stat=='6' ||_vm.editor.stat=='9'},on:{"click":function($event){return _vm.doClose()}}}),_c('el-button',{attrs:{"type":"primary","plain":"","icon":"el-icon-fa-unlock","title":"解锁","disabled":!_vm.editor.uuid||_vm.editor.stat=='5' ||_vm.editor.stat=='9'},on:{"click":function($event){return _vm.doOpen()}}})],1)],1),(_vm.editor.show)?_c('UserEditor',{ref:"userEditor",staticStyle:{"min-height":"250px"},attrs:{"uuid":_vm.editor.uuid},on:{"submit":_vm.saveUser}}):_vm._e()],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","visible":_vm.timeline,"title":"用户登录时间轴","close-on-click-modal":false},on:{"update:visible":function($event){_vm.timeline=$event}}},[_c('time-line',{attrs:{"user-uuid":_vm.timelineuuid},on:{"closeDia":function($event){_vm.timeline=!_vm.timeline}}})],1)],1)}
|
8612 | var staticRenderFns = []
|
8613 |
|
8614 |
|
8615 |
|
8616 |
|
8617 |
|
8618 | var web_dom_iterable_ = __webpack_require__("80a8");
|
8619 |
|
8620 |
|
8621 | var UserEditorvue_type_template_id_f78b9472_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-tabs',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loadingEur),expression:"loadingEur"}],attrs:{"elemeur-loading-text":"正在读取数据...","type":"card"}},[_c('el-tab-pane',{attrs:{"label":"基本信息"}},[_c('el-form',{ref:"form",attrs:{"model":_vm.data,"rules":_vm.rules,"label-position":"top"}},[_c('el-row',[_c('el-col',{attrs:{"span":8}},[_c('el-form-item',{attrs:{"label":"登录账号","prop":"userId"}},[_c('el-input',{attrs:{"maxlength":"60"},model:{value:(_vm.data.userId),callback:function ($$v) {_vm.$set(_vm.data, "userId", $$v)},expression:"data.userId"}})],1)],1),_c('el-col',{attrs:{"span":8}},[_c('el-form-item',{attrs:{"label":"用户名称","prop":"userName"}},[_c('el-input',{attrs:{"maxlength":"60"},model:{value:(_vm.data.userName),callback:function ($$v) {_vm.$set(_vm.data, "userName", $$v)},expression:"data.userName"}})],1)],1),_c('el-col',{attrs:{"span":8}},[_c('el-form-item',{attrs:{"label":"用户工号","prop":"userCode"}},[_c('el-input',{attrs:{"maxlength":"60"},model:{value:(_vm.data.userCode),callback:function ($$v) {_vm.$set(_vm.data, "userCode", $$v)},expression:"data.userCode"}})],1)],1),_c('el-col',{attrs:{"span":8}},[_c('el-form-item',{attrs:{"prop":"orgId","label":"隶属机构"}},[_c('Selector',{attrs:{"init-label":_vm.data.orgName,"clearable":true,"label-key":"label","value-key":"id","placeholder":"隶属组织机构"},model:{value:(_vm.data.orgId),callback:function ($$v) {_vm.$set(_vm.data, "orgId", $$v)},expression:"data.orgId"}},[_c('SelectorTree',{attrs:{"tree-key":"orgTree","searchField":"ORG_NAME","rootLabel":"海关"}})],1)],1)],1),_c('el-col',{attrs:{"span":8}},[_c('el-form-item',{attrs:{"label":"分级管理员","prop":"graUser"}},[_c('el-radio-group',{model:{value:(_vm.data.graUser),callback:function ($$v) {_vm.$set(_vm.data, "graUser", $$v)},expression:"data.graUser"}},[_c('el-radio',{attrs:{"label":"1"}},[_vm._v("是")]),_c('el-radio',{attrs:{"label":"0"}},[_vm._v("否")])],1)],1)],1),_c('el-col',{attrs:{"span":8}},[_c('el-form-item',{attrs:{"label":"性别"}},[_c('el-radio-group',{staticClass:"border-bottom",model:{value:(_vm.data.userGend),callback:function ($$v) {_vm.$set(_vm.data, "userGend", $$v)},expression:"data.userGend"}},[_c('el-radio',{attrs:{"label":"1"}},[_vm._v("男")]),_c('el-radio',{attrs:{"label":"0"}},[_vm._v("女")])],1)],1)],1),_c('el-col',{attrs:{"span":8}},[_c('el-form-item',{attrs:{"label":"邮箱","prop":"userEMail"}},[_c('el-input',{attrs:{"maxlength":"60"},model:{value:(_vm.data.userEMail),callback:function ($$v) {_vm.$set(_vm.data, "userEMail", $$v)},expression:"data.userEMail"}})],1)],1),_c('el-col',{attrs:{"span":8}},[_c('el-form-item',{attrs:{"label":"固定电话"}},[_c('el-input',{attrs:{"maxlength":"30"},model:{value:(_vm.data.userPhon),callback:function ($$v) {_vm.$set(_vm.data, "userPhon", $$v)},expression:"data.userPhon"}})],1)],1),_c('el-col',{attrs:{"span":8}},[_c('el-form-item',{attrs:{"label":"移动电话","prop":"userMobl"}},[_c('el-input',{attrs:{"maxlength":"30"},model:{value:(_vm.data.userMobl),callback:function ($$v) {_vm.$set(_vm.data, "userMobl", $$v)},expression:"data.userMobl"}})],1)],1),_c('el-col',{attrs:{"span":24}},[_c('el-form-item',{attrs:{"label":"备注","prop":"desc"}},[_c('el-input',{attrs:{"type":"textarea","maxlength":"1000"},model:{value:(_vm.data.desc),callback:function ($$v) {_vm.$set(_vm.data, "desc", $$v)},expression:"data.desc"}})],1)],1)],1)],1),_c('HandleHistory',{attrs:{"uuid":_vm.data.uuid,"cr-user-uuid":_vm.data.crUserUuid,"op-user-uuid":_vm.data.opUserUuid,"cr-time":_vm.data.crTime,"op-time":_vm.data.opTime,"mode":"plan"}})],1),(_vm.data.orgId)?_c('el-tab-pane',{attrs:{"label":"角色选择"}},[_c('el-tree',{ref:"roleTree",attrs:{"node-key":"uuid","default-checked-keys":_vm.data.arrRoles,"default-expand-all":"","lazy":"","load":_vm.loadRole,"current-node-key":"currNode.roleuuid","highlight-current":"","show-checkbox":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
8622 | var node = ref.node;
|
8623 | var data = ref.data;
|
8624 | return _c('span',{staticClass:"custom-tree-node"},[(data.roleName&&data.parRoleUuid==='none')?_c('span',[_c('i',{staticClass:"el-icon-fa el-icon-fa-user-circle margin-right-2 font-blue"}),_c('span',{on:{"click":function($event){return _vm.permTreeShow(data.uuid)}}},[_vm._v(_vm._s(data.roleName))])]):_vm._e(),(data.roleName&&data.parRoleUuid!=='none')?_c('span',[_c('i',{staticClass:"el-icon-fa el-icon-fa-user-o margin-right-2 font-yellow-casablanca"}),_c('span',[_vm._v(_vm._s(data.roleName))])]):_vm._e()])}}],null,false,2602381910)})],1):_vm._e(),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"title":"角色权限","visible":_vm.permTreeDia,"width":"40%","append-to-body":""},on:{"update:visible":function($event){_vm.permTreeDia=$event}}},[_c('div',{staticStyle:{"height":"400px","overflow":"auto"}},[_c('el-tree',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.PtsLoading),expression:"PtsLoading"}],ref:"permTree",attrs:{"show-checkbox":"","node-key":"uuid","data":_vm.permTreeData,"props":_vm.permTreeProp,"default-expand-all":true,"highlight-current":""}})],1)])],1)}
|
8625 | var UserEditorvue_type_template_id_f78b9472_staticRenderFns = []
|
8626 |
|
8627 |
|
8628 |
|
8629 |
|
8630 |
|
8631 | var runtime_ = __webpack_require__("79d0");
|
8632 |
|
8633 |
|
8634 | var asyncToGenerator = __webpack_require__("e71e");
|
8635 |
|
8636 |
|
8637 | var es6_object_assign_ = __webpack_require__("067b");
|
8638 |
|
8639 |
|
8640 | var UserAPI = __webpack_require__("c030");
|
8641 |
|
8642 |
|
8643 | var RoleAPI = __webpack_require__("9026");
|
8644 |
|
8645 |
|
8646 | var PermAPI = __webpack_require__("6b38");
|
8647 |
|
8648 |
|
8649 | var SelectorTree = __webpack_require__("3393");
|
8650 |
|
8651 |
|
8652 | var HandleHistory = __webpack_require__("e66d");
|
8653 |
|
8654 |
|
8655 |
|
8656 |
|
8657 |
|
8658 |
|
8659 |
|
8660 |
|
8661 |
|
8662 |
|
8663 |
|
8664 |
|
8665 |
|
8666 |
|
8667 |
|
8668 |
|
8669 |
|
8670 |
|
8671 |
|
8672 |
|
8673 |
|
8674 |
|
8675 |
|
8676 |
|
8677 |
|
8678 |
|
8679 |
|
8680 |
|
8681 |
|
8682 |
|
8683 |
|
8684 |
|
8685 |
|
8686 |
|
8687 |
|
8688 |
|
8689 |
|
8690 |
|
8691 |
|
8692 |
|
8693 |
|
8694 |
|
8695 |
|
8696 |
|
8697 |
|
8698 |
|
8699 |
|
8700 |
|
8701 |
|
8702 |
|
8703 |
|
8704 |
|
8705 |
|
8706 |
|
8707 |
|
8708 |
|
8709 |
|
8710 |
|
8711 |
|
8712 |
|
8713 |
|
8714 |
|
8715 |
|
8716 |
|
8717 |
|
8718 |
|
8719 |
|
8720 |
|
8721 |
|
8722 |
|
8723 |
|
8724 |
|
8725 |
|
8726 |
|
8727 |
|
8728 |
|
8729 |
|
8730 |
|
8731 |
|
8732 |
|
8733 |
|
8734 |
|
8735 |
|
8736 |
|
8737 |
|
8738 |
|
8739 |
|
8740 |
|
8741 |
|
8742 |
|
8743 |
|
8744 |
|
8745 |
|
8746 |
|
8747 |
|
8748 |
|
8749 |
|
8750 |
|
8751 |
|
8752 |
|
8753 |
|
8754 |
|
8755 |
|
8756 |
|
8757 |
|
8758 |
|
8759 | var dafaultData = {
|
8760 | uuid: "",
|
8761 | userName: "",
|
8762 | userCode: "",
|
8763 | userId: "",
|
8764 | userStat: "",
|
8765 |
|
8766 | userEMail: "",
|
8767 | userGend: "1",
|
8768 | graUser: "0",
|
8769 | userPhon: "",
|
8770 | userMobl: "",
|
8771 | orgId: "",
|
8772 | arrRoles: [],
|
8773 | cardId: "",
|
8774 | desc: ""
|
8775 | };
|
8776 | var UserEditorvue_type_script_lang_js_ = ({
|
8777 | components: {
|
8778 | SelectorTree: SelectorTree["a" ],
|
8779 | HandleHistory: HandleHistory["a" ]
|
8780 | },
|
8781 | props: {
|
8782 | uuid: "",
|
8783 | error: {
|
8784 | type: Object,
|
8785 | default: function _default() {
|
8786 | return {};
|
8787 | }
|
8788 | }
|
8789 | },
|
8790 | data: function data() {
|
8791 | return {
|
8792 | permTreeProp: {
|
8793 | label: "permName",
|
8794 | children: "children"
|
8795 | },
|
8796 | permTreeData: [],
|
8797 | PtsLoading: false,
|
8798 | permTreeDia: false,
|
8799 | options: [{
|
8800 | value: 5,
|
8801 | label: "生效"
|
8802 | }, {
|
8803 | value: 6,
|
8804 | label: "锁定"
|
8805 | }, {
|
8806 | value: 9,
|
8807 | label: "注销"
|
8808 | }],
|
8809 | currParentNode: {},
|
8810 | currNode: {},
|
8811 | loadingEur: false,
|
8812 | data: Object.assign({}, dafaultData),
|
8813 | rules: {
|
8814 | userId: [{
|
8815 | required: true,
|
8816 | message: "请输入用户登录账号"
|
8817 | }],
|
8818 | userName: [{
|
8819 | required: true,
|
8820 | message: "请输入用户名称"
|
8821 | }],
|
8822 | orgId: [{
|
8823 | required: true,
|
8824 | message: "请选择隶属机构"
|
8825 | }],
|
8826 | graUser: [{
|
8827 | required: true,
|
8828 | message: "请选择是否为分级管理员"
|
8829 | }]
|
8830 | }
|
8831 | };
|
8832 | },
|
8833 | mounted: function mounted() {
|
8834 | var _this = this;
|
8835 |
|
8836 | this.loadInfo(this.uuid);
|
8837 |
|
8838 | PermAPI["a" ].loadPermTree().then(function (data) {
|
8839 | _this.permTreeData = data;
|
8840 | });
|
8841 | },
|
8842 | watch: {
|
8843 | "data.orgId": function dataOrgId(val) {
|
8844 | this.getTreeListen(val);
|
8845 | }
|
8846 | },
|
8847 | methods: {
|
8848 | permTreeShow: function () {
|
8849 | var _permTreeShow = Object(asyncToGenerator["a" ])(
|
8850 |
|
8851 | regeneratorRuntime.mark(function _callee(uuid) {
|
8852 | var _this2 = this;
|
8853 |
|
8854 | var resp;
|
8855 | return regeneratorRuntime.wrap(function _callee$(_context) {
|
8856 | while (1) {
|
8857 | switch (_context.prev = _context.next) {
|
8858 | case 0:
|
8859 | _context.prev = 0;
|
8860 | this.permTreeDia = true;
|
8861 | this.PtsLoading = true;
|
8862 | _context.next = 5;
|
8863 | return RoleAPI["a" ].loadRoleEditInfo(uuid);
|
8864 |
|
8865 | case 5:
|
8866 | resp = _context.sent;
|
8867 |
|
8868 | this.$refs.permTree.setCheckedKeys([]);
|
8869 | resp.permIds.forEach(function (uuid) {
|
8870 | _this2.$refs.permTree.setChecked(uuid, true, false);
|
8871 | });
|
8872 |
|
8873 | case 8:
|
8874 | _context.prev = 8;
|
8875 | this.PtsLoading = false;
|
8876 | return _context.finish(8);
|
8877 |
|
8878 | case 11:
|
8879 | case "end":
|
8880 | return _context.stop();
|
8881 | }
|
8882 | }
|
8883 | }, _callee, this, [[0,, 8, 11]]);
|
8884 | }));
|
8885 |
|
8886 | function permTreeShow(_x) {
|
8887 | return _permTreeShow.apply(this, arguments);
|
8888 | }
|
8889 |
|
8890 | return permTreeShow;
|
8891 | }(),
|
8892 |
|
8893 | submitForm: function submitForm(data) {
|
8894 | var _this3 = this;
|
8895 |
|
8896 | this.$refs.form.validate(function (valid) {
|
8897 | if (valid) {
|
8898 | _this3.data.arrRoles = _this3.$refs.roleTree.getCheckedKeys();
|
8899 |
|
8900 |
|
8901 | _this3.$emit("submit", _this3.data);
|
8902 | } else {
|
8903 | return false;
|
8904 | }
|
8905 | });
|
8906 | },
|
8907 | expandAll: function expandAll() {
|
8908 | var _this4 = this;
|
8909 |
|
8910 | var expandFn = function expandFn(element, expand) {
|
8911 | element.childNodes.forEach(function (element) {
|
8912 | element.expand(function () {
|
8913 | expandFn(element);
|
8914 | });
|
8915 | }, _this4);
|
8916 | };
|
8917 |
|
8918 | expandFn(this.$refs.roleTree.root);
|
8919 | },
|
8920 |
|
8921 | getTreeListen: function getTreeListen(orgId) {
|
8922 | if (this.$refs.roleTree) {
|
8923 | this.$refs.roleTree.root.loaded = false;
|
8924 | this.$refs.roleTree.root.expand();
|
8925 | }
|
8926 | },
|
8927 | loadRole: function loadRole(node, resolve) {
|
8928 | if (node.level === 0) {
|
8929 | RoleAPI["a" ].getCopyRoleTree(this.data.orgId).then(function (resp) {
|
8930 | resp.data && resolve(resp.data);
|
8931 | });
|
8932 | } else {
|
8933 | RoleAPI["a" ].getRoleChildren(node.data.uuid).then(function (resp) {
|
8934 | resp.data && resolve(resp.data);
|
8935 | });
|
8936 | }
|
8937 | },
|
8938 | loadInfo: function loadInfo(uuid) {
|
8939 | var _this5 = this;
|
8940 |
|
8941 | if (uuid) {
|
8942 | UserAPI["a" ].getUser(uuid).then(function (resp) {
|
8943 | _this5.data = Object.assign({}, resp.data.data);
|
8944 | _this5.loadingEur = false;
|
8945 | });
|
8946 | } else {
|
8947 | if (this.data.orgId) {
|
8948 | this.getTreeListen(this.data.orgId);
|
8949 | }
|
8950 | }
|
8951 | }
|
8952 | }
|
8953 | });
|
8954 |
|
8955 | var usrm_UserEditorvue_type_script_lang_js_ = (UserEditorvue_type_script_lang_js_);
|
8956 |
|
8957 | var componentNormalizer = __webpack_require__("6691");
|
8958 |
|
8959 |
|
8960 |
|
8961 |
|
8962 |
|
8963 |
|
8964 |
|
8965 |
|
8966 |
|
8967 | var component = Object(componentNormalizer["a" ])(
|
8968 | usrm_UserEditorvue_type_script_lang_js_,
|
8969 | UserEditorvue_type_template_id_f78b9472_render,
|
8970 | UserEditorvue_type_template_id_f78b9472_staticRenderFns,
|
8971 | false,
|
8972 | null,
|
8973 | null,
|
8974 | null
|
8975 |
|
8976 | )
|
8977 |
|
8978 | var UserEditor = (component.exports);
|
8979 |
|
8980 | var TimeLine = __webpack_require__("9763");
|
8981 |
|
8982 |
|
8983 | var Uploader = __webpack_require__("9384");
|
8984 |
|
8985 |
|
8986 |
|
8987 |
|
8988 |
|
8989 |
|
8990 |
|
8991 |
|
8992 |
|
8993 |
|
8994 |
|
8995 |
|
8996 |
|
8997 |
|
8998 |
|
8999 |
|
9000 |
|
9001 |
|
9002 |
|
9003 |
|
9004 |
|
9005 |
|
9006 |
|
9007 |
|
9008 |
|
9009 |
|
9010 |
|
9011 |
|
9012 |
|
9013 |
|
9014 |
|
9015 |
|
9016 |
|
9017 |
|
9018 |
|
9019 |
|
9020 |
|
9021 |
|
9022 |
|
9023 |
|
9024 |
|
9025 |
|
9026 |
|
9027 |
|
9028 |
|
9029 |
|
9030 |
|
9031 |
|
9032 |
|
9033 |
|
9034 |
|
9035 |
|
9036 |
|
9037 |
|
9038 |
|
9039 |
|
9040 |
|
9041 |
|
9042 |
|
9043 |
|
9044 |
|
9045 |
|
9046 |
|
9047 |
|
9048 |
|
9049 |
|
9050 |
|
9051 |
|
9052 |
|
9053 |
|
9054 |
|
9055 |
|
9056 |
|
9057 |
|
9058 |
|
9059 |
|
9060 |
|
9061 |
|
9062 |
|
9063 |
|
9064 |
|
9065 |
|
9066 |
|
9067 |
|
9068 |
|
9069 |
|
9070 |
|
9071 |
|
9072 |
|
9073 |
|
9074 |
|
9075 |
|
9076 |
|
9077 |
|
9078 |
|
9079 |
|
9080 |
|
9081 |
|
9082 |
|
9083 |
|
9084 |
|
9085 |
|
9086 |
|
9087 |
|
9088 |
|
9089 |
|
9090 |
|
9091 |
|
9092 |
|
9093 |
|
9094 |
|
9095 |
|
9096 |
|
9097 | var UserMgrvue_type_script_lang_js_ = ({
|
9098 | name: "UserMgr",
|
9099 | components: {
|
9100 | UserEditor: UserEditor,
|
9101 | SelectorTree: SelectorTree["a" ],
|
9102 | TimeLine: TimeLine["a" ],
|
9103 | Uploader: Uploader["a" ]
|
9104 | },
|
9105 | data: function data() {
|
9106 | return {
|
9107 | timeline: false,
|
9108 | timelineuuid: "",
|
9109 | queryform: {
|
9110 | usercode: null,
|
9111 | username: null,
|
9112 | userstat: null,
|
9113 | orgId: null,
|
9114 | startTime: null,
|
9115 | endTime: null
|
9116 | },
|
9117 | table: {
|
9118 | data: []
|
9119 | },
|
9120 | editor: {
|
9121 | show: false,
|
9122 | uuid: null,
|
9123 | visible: false,
|
9124 |
|
9125 | loading: false,
|
9126 | stat: ""
|
9127 | },
|
9128 | multipleSelection: []
|
9129 | };
|
9130 | },
|
9131 | methods: {
|
9132 |
|
9133 | resetUserPw: function resetUserPw() {
|
9134 | var _this = this;
|
9135 |
|
9136 | var uuids = [];
|
9137 | this.multipleSelection.forEach(function (value, index) {
|
9138 | uuids.push(value.uuid);
|
9139 | });
|
9140 | if (uuids.length > 0) UserAPI["a" ].resetUserPw({
|
9141 | uuids: uuids
|
9142 | }).then(function () {
|
9143 | return _this.queryUserData();
|
9144 | });
|
9145 | },
|
9146 |
|
9147 | showTimeLine: function showTimeLine(row) {
|
9148 | this.timelineuuid = row.uuid;
|
9149 | this.timeline = true;
|
9150 | },
|
9151 |
|
9152 | resetPwd: function resetPwd(data) {
|
9153 | var _this2 = this;
|
9154 |
|
9155 | this.$confirm("是否重置该用户密码", {
|
9156 | confirmButtonText: "确定",
|
9157 | cancelButtonText: "取消",
|
9158 | type: "warning"
|
9159 | }).then(function () {
|
9160 | _this2.editor.loading = true;
|
9161 | _this2.editor.error = {};
|
9162 |
|
9163 | UserAPI["a" ].resetPwd(_this2.$refs.userEditor.data)
|
9164 | .then(_this2.queryUserData)
|
9165 | .then(_this2.cancelEditorLoading);
|
9166 | });
|
9167 | },
|
9168 |
|
9169 | doShut: function doShut(data) {
|
9170 | var _this3 = this;
|
9171 |
|
9172 | this.$confirm("是否注销该用户", {
|
9173 | confirmButtonText: "确定",
|
9174 | cancelButtonText: "取消",
|
9175 | type: "warning"
|
9176 | }).then(function () {
|
9177 | _this3.editor.loading = true;
|
9178 | _this3.editor.error = {};
|
9179 |
|
9180 | UserAPI["a" ].shutUser(_this3.$refs.userEditor.data).then(_this3.queryUserData)
|
9181 | .then(_this3.cancelEditorLoading);
|
9182 | });
|
9183 | },
|
9184 |
|
9185 | doOpen: function doOpen(data) {
|
9186 | var _this4 = this;
|
9187 |
|
9188 | this.$confirm("是否解锁该用户", {
|
9189 | confirmButtonText: "确定",
|
9190 | cancelButtonText: "取消",
|
9191 | type: "warning"
|
9192 | }).then(function () {
|
9193 | _this4.editor.loading = true;
|
9194 | _this4.editor.error = {};
|
9195 |
|
9196 | UserAPI["a" ].openUser(_this4.$refs.userEditor.data).then(_this4.queryUserData)
|
9197 | .then(_this4.cancelEditorLoading);
|
9198 | });
|
9199 | },
|
9200 |
|
9201 | doClose: function doClose(data) {
|
9202 | var _this5 = this;
|
9203 |
|
9204 | this.$confirm("是否锁定该用户", {
|
9205 | confirmButtonText: "确定",
|
9206 | cancelButtonText: "取消",
|
9207 | type: "warning"
|
9208 | }).then(function () {
|
9209 | _this5.editor.loading = true;
|
9210 | _this5.editor.error = {};
|
9211 |
|
9212 | UserAPI["a" ].lockUser(_this5.$refs.userEditor.data).then(_this5.queryUserData)
|
9213 | .then(_this5.cancelEditorLoading);
|
9214 | });
|
9215 | },
|
9216 |
|
9217 | doEdit: function doEdit(index, rowData) {
|
9218 | this.editor.show = true;
|
9219 | this.editor.uuid = rowData.uuid;
|
9220 | this.editor.stat = rowData.userstat;
|
9221 | },
|
9222 |
|
9223 | doAdd: function doAdd() {
|
9224 | this.editor.show = true;
|
9225 | this.editor.uuid = null;
|
9226 | this.editor.stat = "";
|
9227 | },
|
9228 | doSubmit: function doSubmit(data) {
|
9229 | this.$refs.userEditor.submitForm();
|
9230 | },
|
9231 | saveUser: function saveUser(data) {
|
9232 | var _this6 = this;
|
9233 |
|
9234 | this.editor.loading = true;
|
9235 | this.editor.error = {};
|
9236 |
|
9237 | UserAPI["a" ].saveUser(this.$refs.userEditor.data).then(function (resp) {
|
9238 | if (resp.newuser === "true") _this6.$alert("该用户的默认密码是: " + resp.password, {
|
9239 | showConfirmButton: false,
|
9240 | type: "info"
|
9241 | });
|
9242 | })
|
9243 | .then(this.queryUserData)
|
9244 | .then(this.cancelEditorLoading);
|
9245 | },
|
9246 |
|
9247 | reset: function reset() {
|
9248 | this.$refs.form.resetFields();
|
9249 | },
|
9250 | cancelEditorLoading: function cancelEditorLoading() {
|
9251 | this.editor.show = false;
|
9252 | this.editor.loading = false;
|
9253 | },
|
9254 | queryUserData: function queryUserData() {
|
9255 | if (this.queryform.endTime < this.queryform.startTime) {
|
9256 | this.$message.error("开始时间不能大于结束时间");
|
9257 | return;
|
9258 | }
|
9259 |
|
9260 | this.$refs.dataTable.load(this.queryform);
|
9261 | },
|
9262 | resetquery: function resetquery() {
|
9263 | this.$refs.queryform.resetFields();
|
9264 | },
|
9265 | dataTableLoad: function dataTableLoad(params, resolve) {
|
9266 | var _this7 = this;
|
9267 |
|
9268 | UserAPI["a" ].queryUser(params).then(resolve)
|
9269 | .then(function (respData) {
|
9270 | return _this7.table.data = respData.datarows;
|
9271 | });
|
9272 | },
|
9273 | handleSelectionChange: function handleSelectionChange(val) {
|
9274 | this.multipleSelection = val;
|
9275 | },
|
9276 |
|
9277 | lockAndOpenUsers: function lockAndOpenUsers(b) {
|
9278 | var _this8 = this;
|
9279 |
|
9280 | var uuids = [];
|
9281 | this.multipleSelection.forEach(function (value, index) {
|
9282 | uuids.push(value.uuid);
|
9283 | });
|
9284 | if (uuids.length > 0) if (b) {
|
9285 | UserAPI["a" ].lockAndOpenUsers({
|
9286 | uuids: uuids,
|
9287 | opType: "1"
|
9288 | }).then(function () {
|
9289 | return _this8.queryUserData();
|
9290 | });
|
9291 | } else {
|
9292 | UserAPI["a" ].lockAndOpenUsers({
|
9293 | uuids: uuids,
|
9294 | opType: "0"
|
9295 | }).then(function () {
|
9296 | return _this8.queryUserData();
|
9297 | });
|
9298 | }
|
9299 | }
|
9300 | }
|
9301 | });
|
9302 |
|
9303 | var usrm_UserMgrvue_type_script_lang_js_ = (UserMgrvue_type_script_lang_js_);
|
9304 |
|
9305 |
|
9306 |
|
9307 |
|
9308 |
|
9309 |
|
9310 |
|
9311 |
|
9312 | var UserMgr_component = Object(componentNormalizer["a" ])(
|
9313 | usrm_UserMgrvue_type_script_lang_js_,
|
9314 | render,
|
9315 | staticRenderFns,
|
9316 | false,
|
9317 | null,
|
9318 | null,
|
9319 | null
|
9320 |
|
9321 | )
|
9322 |
|
9323 | var UserMgr = __webpack_exports__["default"] = (UserMgr_component.exports);
|
9324 |
|
9325 | }),
|
9326 |
|
9327 | "88bc":
|
9328 | (function(module, __webpack_exports__, __webpack_require__) {
|
9329 |
|
9330 | "use strict";
|
9331 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Uploader_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("82ca");
|
9332 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Uploader_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Uploader_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
9333 |
|
9334 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Uploader_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
9335 |
|
9336 | }),
|
9337 |
|
9338 | "89c3":
|
9339 | (function(module, __webpack_exports__, __webpack_require__) {
|
9340 |
|
9341 | "use strict";
|
9342 | __webpack_require__.r(__webpack_exports__);
|
9343 |
|
9344 |
|
9345 |
|
9346 |
|
9347 | if (typeof window !== 'undefined') {
|
9348 | if (true) {
|
9349 | __webpack_require__("dc65")
|
9350 | }
|
9351 |
|
9352 | var i
|
9353 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
|
9354 | __webpack_require__.p = i[1]
|
9355 | }
|
9356 | }
|
9357 |
|
9358 |
|
9359 | var setPublicPath = (null);
|
9360 |
|
9361 |
|
9362 | var base = __webpack_require__("b367");
|
9363 |
|
9364 |
|
9365 | __webpack_require__.d(__webpack_exports__, "Uploader", function() { return base["h" ]; });
|
9366 | __webpack_require__.d(__webpack_exports__, "TimeLine", function() { return base["g" ]; });
|
9367 | __webpack_require__.d(__webpack_exports__, "SelectorTree", function() { return base["f" ]; });
|
9368 | __webpack_require__.d(__webpack_exports__, "HandleHistory", function() { return base["c" ]; });
|
9369 | __webpack_require__.d(__webpack_exports__, "Ajax", function() { return base["a" ]; });
|
9370 | __webpack_require__.d(__webpack_exports__, "Util", function() { return base["i" ]; });
|
9371 | __webpack_require__.d(__webpack_exports__, "PageTable", function() { return base["e" ]; });
|
9372 | __webpack_require__.d(__webpack_exports__, "config", function() { return base["j" ]; });
|
9373 | __webpack_require__.d(__webpack_exports__, "service", function() { return base["l" ]; });
|
9374 | __webpack_require__.d(__webpack_exports__, "Locale", function() { return base["d" ]; });
|
9375 | __webpack_require__.d(__webpack_exports__, "CacheService", function() { return base["b" ]; });
|
9376 |
|
9377 |
|
9378 | var entry_lib = __webpack_exports__["default"] = (base["k" ]);
|
9379 |
|
9380 |
|
9381 |
|
9382 | }),
|
9383 |
|
9384 | "8bbf":
|
9385 | (function(module, exports) {
|
9386 |
|
9387 | module.exports = require("vue");
|
9388 |
|
9389 | }),
|
9390 |
|
9391 | "8cad":
|
9392 | (function(module, exports) {
|
9393 |
|
9394 | module.exports = require("util");
|
9395 |
|
9396 | }),
|
9397 |
|
9398 | "9026":
|
9399 | (function(module, __webpack_exports__, __webpack_require__) {
|
9400 |
|
9401 | "use strict";
|
9402 | var _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("566f");
|
9403 |
|
9404 | __webpack_exports__["a"] = ({
|
9405 | |
9406 |
|
9407 |
|
9408 |
|
9409 | getRoleChildren: function getRoleChildren(puuid) {
|
9410 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usrm/usr/role/getRoleByPID", {
|
9411 | params: {
|
9412 | puuid: puuid
|
9413 | }
|
9414 | }).then(function (data) {
|
9415 | return data || [];
|
9416 | });
|
9417 | },
|
9418 |
|
9419 | queryPerm: function queryPerm(uuid) {
|
9420 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usrm/usr/role/queryPerm", {
|
9421 | params: {
|
9422 | uuid: uuid
|
9423 | }
|
9424 | }).then(function (data) {
|
9425 | return {
|
9426 | data: data
|
9427 | };
|
9428 | });
|
9429 | },
|
9430 |
|
9431 | |
9432 |
|
9433 |
|
9434 |
|
9435 | editRoleNode: function editRoleNode(role) {
|
9436 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usrm/usr/role/saveRole", role);
|
9437 | },
|
9438 |
|
9439 | |
9440 |
|
9441 |
|
9442 |
|
9443 | copyRoleNode: function copyRoleNode(role) {
|
9444 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usrm/usr/role/copyRole", role);
|
9445 | },
|
9446 |
|
9447 | |
9448 |
|
9449 |
|
9450 |
|
9451 | editRolePermNode: function editRolePermNode(role) {
|
9452 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usrm/usr/role/saveRolePerm", role);
|
9453 | },
|
9454 |
|
9455 | |
9456 |
|
9457 |
|
9458 |
|
9459 | delRoleNode: function delRoleNode(uuid) {
|
9460 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].delete("/usrm/usr/role/deleteRole", {
|
9461 | params: {
|
9462 | uuid: uuid
|
9463 | }
|
9464 | });
|
9465 | },
|
9466 |
|
9467 | |
9468 |
|
9469 |
|
9470 |
|
9471 | loadRoleEditInfo: function loadRoleEditInfo(uuid) {
|
9472 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usrm/usr/role/queryRoleEditInfo", {
|
9473 | params: {
|
9474 | uuid: uuid
|
9475 | }
|
9476 | });
|
9477 | },
|
9478 |
|
9479 | getRoleTree: function getRoleTree(parRoleUuid) {
|
9480 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usrm/usr/role/getRoleTree", {
|
9481 | params: {
|
9482 | parRoleUuid: parRoleUuid
|
9483 | }
|
9484 | }).then(function (data) {
|
9485 | return data || [];
|
9486 | });
|
9487 | },
|
9488 | getOrgRoleTree: function getOrgRoleTree(parRoleUuid) {
|
9489 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usrm/usr/role/getOrgRoleTree", {
|
9490 | params: {
|
9491 | parRoleUuid: parRoleUuid
|
9492 | }
|
9493 | }).then(function (data) {
|
9494 | return data || [];
|
9495 | });
|
9496 | },
|
9497 | getCopyRoleTree: function getCopyRoleTree(orgUuid) {
|
9498 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usrm/usr/role/getCopyRoleTree", {
|
9499 | params: {
|
9500 | orgUuid: orgUuid
|
9501 | }
|
9502 | }).then(function (data) {
|
9503 | return data || [];
|
9504 | });
|
9505 | }
|
9506 | });
|
9507 |
|
9508 | }),
|
9509 |
|
9510 | "9090":
|
9511 | (function(module, __webpack_exports__, __webpack_require__) {
|
9512 |
|
9513 | "use strict";
|
9514 | __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
|
9515 | function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
|
9516 |
|
9517 | function _typeof(obj) {
|
9518 | if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
|
9519 | _typeof = function _typeof(obj) {
|
9520 | return _typeof2(obj);
|
9521 | };
|
9522 | } else {
|
9523 | _typeof = function _typeof(obj) {
|
9524 | return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
|
9525 | };
|
9526 | }
|
9527 |
|
9528 | return _typeof(obj);
|
9529 | }
|
9530 |
|
9531 | }),
|
9532 |
|
9533 | "9384":
|
9534 | (function(module, __webpack_exports__, __webpack_require__) {
|
9535 |
|
9536 | "use strict";
|
9537 |
|
9538 |
|
9539 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"uploader",attrs:{"elemeur-loading-text":"服务器受理中..."}},[_c('el-card',{staticClass:"flex-1"},[_c('template',{slot:"header"},[_c('span',[_vm._v("资源管理")])]),_c('el-form',{ref:"queryform",attrs:{"model":_vm.queryform}},[_c('el-row',[_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"文件名称","prop":"fileName"}},[_c('el-input',{model:{value:(_vm.queryform.fileName),callback:function ($$v) {_vm.$set(_vm.queryform, "fileName", $$v)},expression:"queryform.fileName"}})],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"文件类别","prop":"fileType"}},[_c('el-select',{directives:[{name:"sys-code",rawName:"v-sys-code",value:('fileType'),expression:"'fileType'"}],attrs:{"placeholder":"请选择","clearable":""},model:{value:(_vm.queryform.fileType),callback:function ($$v) {_vm.$set(_vm.queryform, "fileType", $$v)},expression:"queryform.fileType"}},_vm._l((_vm.sysCode.fileType),function(item){return _c('el-option',{key:item.key,attrs:{"label":item.label,"value":item.value}})}),1)],1)],1),_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"上传时间区间","prop":"picker"}},[_c('el-date-picker',{attrs:{"type":"datetimerange","placeholder":"选择时间范围"},model:{value:(_vm.picker),callback:function ($$v) {_vm.picker=$$v},expression:"picker"}})],1)],1)],1)],1)],2),_c('el-card',{staticClass:"flex-1"},[_c('template',{slot:"header"},[_c('span',[_vm._v("资源列表")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search","title":"查询"},on:{"click":_vm.queryUserData}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-reply-all","title":"重置"},on:{"click":_vm.resetquery}}),(_vm.uuid&&_vm.allowSave)?_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-save","title":"批量保存"},on:{"click":_vm.saveUpload}}):_vm._e(),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-refresh","title":"刷新"},on:{"click":_vm.queryUserData}})],1)]),_c('el-alert',{staticStyle:{"margin-bottom":"10px"},attrs:{"title":"文件名带有红色的(*),说明此时文件处于临时状态并没有关联主键,请点击“批量保存”按钮!","type":"warning"}}),_c('PageTable',{ref:"dataTable",attrs:{"hideTitle":"","data":_vm.successFiles,"border":"","stripe":"","highlight-current-row":"","title":"已上传列表"},on:{"load-data":_vm.dataTableLoad}},[_c('el-table-column',{attrs:{"type":"index","fixed":"left"}}),_c('el-table-column',{attrs:{"prop":"filename","label":"文件名","width":"180","show-overflow-tooltip":"","sortable":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.state==='0')?_c('span',{staticClass:"font-red"},[_vm._v("*")]):_vm._e(),_c('span',[_vm._v(_vm._s(scope.row.filename))])]}}])}),_c('el-table-column',{attrs:{"prop":"filesize","label":"文件大小","width":"100","sortable":"","align":"right","formatter":_vm.fileSizeFormat}}),_c('el-table-column',{attrs:{"prop":"crtime","label":"上传时间","sortable":"","formatter":_vm.formatterDate,"width":"100"}}),_c('el-table-column',{attrs:{"prop":"filetype","label":"格式","width":"80","sortable":""}}),_c('el-table-column',{attrs:{"prop":"filemd5","label":"MD5","show-overflow-tooltip":"","sortable":""}}),_c('el-table-column',{attrs:{"prop":"filepath","label":"服务器路径","show-overflow-tooltip":"","sortable":""}}),_c('el-table-column',{attrs:{"prop":"fileurl","label":"下载路径","show-overflow-tooltip":"","sortable":""}}),(!_vm.readonly)?_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"96"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('a',{staticClass:"margin-right-1",attrs:{"href":_vm.proxyUrl(scope.row.fileurl),"target":"_blank"}},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-cloud-download","title":"下载"}})],1),(_vm.allowTrash)?_c('el-button',{attrs:{"icon":"el-icon-fa-trash","title":"作废","type":"primary"},on:{"click":function($event){return _vm.deleteUpdata(scope.$index,scope.row)}}}):_vm._e(),(_vm.allowSave && scope.row.state==='0')?_c('el-button',{attrs:{"icon":"el-icon-fa-check","title":"保存","type":"primary"},on:{"click":function($event){return _vm.sureFile(scope.$index,scope.row)}}}):_vm._e()]}}],null,false,2506182842)}):_vm._e()],1)],2),_c('el-card',{staticClass:"flex-1"},[_c('template',{slot:"header"},[_c('span',[_vm._v("待上传列表")]),_c('div',{staticStyle:{"float":"right"}},[_c('el-upload',{ref:"upload",staticStyle:{"display":"inline-block","margin-right":"3px"},attrs:{"on-error":_vm.fileUploadError,"on-change":_vm.fileUploadChange,"show-file-list":false,"accept":_vm.accept,"multiple":"","data":_vm.data,"action":_vm.uploadPath,"auto-upload":false,"on-success":_vm.uploadSuccess}},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-tickets","title":"选择文件"}})],1),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-cloud-upload","title":"批量上传"},on:{"click":_vm.submitUpload}})],1)]),(!_vm.readonly)?_c('el-table',{staticStyle:{"min-height":"100px"},attrs:{"hideTitle":"","data":_vm.fileList,"border":"","row-key":"uid","stripe":"","highlight-current-row":""}},[_c('el-table-column',{attrs:{"prop":"name","label":"文件名","width":"180","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"size","label":"文件大小","width":"80","align":"right","formatter":_vm.fileSizeFormat}}),_c('el-table-column',{attrs:{"label":"进度"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-progress',{staticStyle:{"line-height":"unset"},attrs:{"text-inside":true,"stroke-width":14,"percentage":parseInt(scope.row.percentage),"status":scope.row.status==='fail'?'exception':''}})]}}],null,false,1597569420)}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"80"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-cloud-upload","title":"上传","disabled":scope.row.status==='fail'},on:{"click":function($event){return _vm.hanleUpload(scope.$index,scope.row)}}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-trash","title":"取消"},on:{"click":function($event){return _vm.hanleRemove(scope.$index,scope.row)}}})]}}],null,false,329838539)})],1):_vm._e()],2)],1)}
|
9540 | var staticRenderFns = []
|
9541 |
|
9542 |
|
9543 |
|
9544 |
|
9545 |
|
9546 | var web_dom_iterable_ = __webpack_require__("80a8");
|
9547 |
|
9548 |
|
9549 | var es6_array_iterator_ = __webpack_require__("2c92");
|
9550 |
|
9551 |
|
9552 | var es6_object_keys_ = __webpack_require__("6e74");
|
9553 |
|
9554 |
|
9555 | var Ajax = __webpack_require__("566f");
|
9556 |
|
9557 |
|
9558 |
|
9559 | var FilesAPI = ({
|
9560 | |
9561 |
|
9562 |
|
9563 |
|
9564 | list: function list(params) {
|
9565 | return Ajax["a" ].get("/sys/file/list", {
|
9566 | params: params
|
9567 | });
|
9568 | },
|
9569 |
|
9570 | |
9571 |
|
9572 |
|
9573 |
|
9574 | selectResource: function selectResource(params) {
|
9575 | return Ajax["a" ].get("/resource/ResourceManager", {
|
9576 | params: params
|
9577 | });
|
9578 | },
|
9579 |
|
9580 | |
9581 |
|
9582 |
|
9583 |
|
9584 | delete: function _delete(uuid) {
|
9585 | return Ajax["a" ].delete("/sys/file/delete", {
|
9586 | params: {
|
9587 | uuid: uuid
|
9588 | }
|
9589 | });
|
9590 | },
|
9591 |
|
9592 | |
9593 |
|
9594 |
|
9595 |
|
9596 | use: function use(uuid) {
|
9597 | return Ajax["a" ].delete("/sys/file/use", {
|
9598 | params: {
|
9599 | uuid: uuid
|
9600 | }
|
9601 | });
|
9602 | },
|
9603 |
|
9604 | |
9605 |
|
9606 |
|
9607 |
|
9608 | useAll: function useAll(uuid) {
|
9609 | return Ajax["a" ].delete("/sys/file/useAll", {
|
9610 | params: {
|
9611 | uuid: uuid
|
9612 | }
|
9613 | });
|
9614 | }
|
9615 | });
|
9616 |
|
9617 | var config = __webpack_require__("c45e");
|
9618 |
|
9619 |
|
9620 |
|
9621 |
|
9622 |
|
9623 |
|
9624 |
|
9625 |
|
9626 |
|
9627 |
|
9628 |
|
9629 |
|
9630 |
|
9631 |
|
9632 |
|
9633 |
|
9634 |
|
9635 |
|
9636 |
|
9637 |
|
9638 |
|
9639 |
|
9640 |
|
9641 |
|
9642 |
|
9643 |
|
9644 |
|
9645 |
|
9646 |
|
9647 |
|
9648 |
|
9649 |
|
9650 |
|
9651 |
|
9652 |
|
9653 |
|
9654 |
|
9655 |
|
9656 |
|
9657 |
|
9658 |
|
9659 |
|
9660 |
|
9661 |
|
9662 |
|
9663 |
|
9664 |
|
9665 |
|
9666 |
|
9667 |
|
9668 |
|
9669 |
|
9670 |
|
9671 |
|
9672 |
|
9673 |
|
9674 |
|
9675 |
|
9676 |
|
9677 |
|
9678 |
|
9679 |
|
9680 |
|
9681 |
|
9682 |
|
9683 |
|
9684 |
|
9685 |
|
9686 |
|
9687 |
|
9688 |
|
9689 |
|
9690 |
|
9691 |
|
9692 |
|
9693 |
|
9694 |
|
9695 |
|
9696 |
|
9697 |
|
9698 |
|
9699 |
|
9700 |
|
9701 |
|
9702 |
|
9703 |
|
9704 |
|
9705 |
|
9706 |
|
9707 |
|
9708 |
|
9709 |
|
9710 |
|
9711 |
|
9712 |
|
9713 |
|
9714 |
|
9715 |
|
9716 |
|
9717 |
|
9718 |
|
9719 |
|
9720 | var Uploadervue_type_script_lang_js_ = ({
|
9721 | props: {
|
9722 | uuid: String,
|
9723 | module: String,
|
9724 | accept: String,
|
9725 | allowTrash: {
|
9726 | type: Boolean,
|
9727 | default: false
|
9728 | },
|
9729 | allowSave: {
|
9730 | type: Boolean,
|
9731 | default: false
|
9732 | },
|
9733 | readonly: {
|
9734 | type: Boolean,
|
9735 | default: false
|
9736 | }
|
9737 | },
|
9738 | data: function data() {
|
9739 | return {
|
9740 | loading: false,
|
9741 | uploadPath: config["a" ].ajaxUrl + "/sys/file/upload",
|
9742 | successFiles: [],
|
9743 | fileList: [],
|
9744 | picker: [],
|
9745 | queryform: {
|
9746 | starTime: null,
|
9747 | endTime: null,
|
9748 | fileType: null,
|
9749 | fileName: null
|
9750 | }
|
9751 | };
|
9752 | },
|
9753 | computed: {
|
9754 | data: function data() {
|
9755 | return {
|
9756 | module: this.module,
|
9757 | uuid: this.uuid
|
9758 | };
|
9759 | }
|
9760 | },
|
9761 | mounted: function mounted() {
|
9762 | this.queryUserData();
|
9763 | },
|
9764 | watch: {
|
9765 | uuid: function uuid() {
|
9766 | if (!this.readonly) {
|
9767 | this.$refs.upload.clearFiles();
|
9768 | }
|
9769 |
|
9770 | this.queryUserData();
|
9771 | },
|
9772 | picker: function picker(val) {
|
9773 | if (val && val.length > 0) {
|
9774 | this.queryform.starTime = val[0];
|
9775 | this.queryform.endTime = val[1];
|
9776 | } else {
|
9777 | this.queryform.starTime = null;
|
9778 | this.queryform.endTime = null;
|
9779 | }
|
9780 | }
|
9781 | },
|
9782 | methods: {
|
9783 | queryUserData: function queryUserData() {
|
9784 | this.$refs.dataTable.load(this.queryform);
|
9785 | },
|
9786 | dataTableLoad: function dataTableLoad(params, resolve) {
|
9787 | var _this = this;
|
9788 |
|
9789 | params.uuid = this.uuid;
|
9790 | FilesAPI.selectResource(params).then(resolve)
|
9791 | .then(function (respData) {
|
9792 | return _this.successFiles = respData.datarows;
|
9793 | });
|
9794 | },
|
9795 | proxyUrl: function proxyUrl(url) {
|
9796 | return config["a" ].ajaxUrl + "/" + url;
|
9797 | },
|
9798 | fileSizeFormat: function fileSizeFormat(row, column, cellValue) {
|
9799 | if (cellValue === 0) return "0 B";
|
9800 | var k = 1000;
|
9801 | var sizes = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
9802 | var i = Math.floor(Math.log(cellValue) / Math.log(k));
|
9803 | return (cellValue / Math.pow(k, i)).toPrecision(3) + " " + sizes[i];
|
9804 | },
|
9805 |
|
9806 | submitUpload: function submitUpload() {
|
9807 | this.$refs.upload.submit();
|
9808 | },
|
9809 |
|
9810 | uploadSuccess: function uploadSuccess(response, file, fileList) {
|
9811 | if (response.respCode === "000000" && response.fileInfo) {
|
9812 | var keys = Object.keys(response.fileInfo);
|
9813 | var tem = {};
|
9814 | keys.forEach(function (value, index) {
|
9815 | var t = value.toLowerCase();
|
9816 | tem[t] = response.fileInfo[value];
|
9817 | });
|
9818 | this.successFiles.splice(0, 0, tem);
|
9819 | this.$refs.upload.handleRemove(file);
|
9820 | } else {
|
9821 | this.$message.error("上传失败!");
|
9822 | }
|
9823 | },
|
9824 | hanleUpload: function hanleUpload(index, file) {
|
9825 | this.$refs.upload.$refs["upload-inner"].upload(file.raw);
|
9826 | },
|
9827 | hanleRemove: function hanleRemove(index, file) {
|
9828 | this.$refs.upload.handleRemove(file);
|
9829 | },
|
9830 | fileUploadError: function fileUploadError(e, file, fileList) {
|
9831 | fileList.push(file);
|
9832 | this.$message.error("有文件上传失败!");
|
9833 | },
|
9834 |
|
9835 | fileUploadChange: function fileUploadChange(file, fileList) {
|
9836 | this.fileList = fileList;
|
9837 | },
|
9838 |
|
9839 | deleteUpdata: function deleteUpdata(index, data) {
|
9840 | var _this2 = this;
|
9841 |
|
9842 | this.loading = true;
|
9843 | FilesAPI.delete(data.uuid).then(function () {
|
9844 | _this2.successFiles.splice(index, 1);
|
9845 |
|
9846 | _this2.loading = false;
|
9847 | }).catch(function () {
|
9848 | _this2.loading = false;
|
9849 | });
|
9850 | },
|
9851 | saveUpload: function saveUpload() {
|
9852 | var _this3 = this;
|
9853 |
|
9854 | FilesAPI.useAll(this.uuid).then(function () {
|
9855 | _this3.$emit("save", _this3.successFiles);
|
9856 |
|
9857 | _this3.queryUserData();
|
9858 | }).catch(function () {
|
9859 | _this3.loading = false;
|
9860 | });
|
9861 | },
|
9862 | sureFile: function sureFile(index, data) {
|
9863 | var _this4 = this;
|
9864 |
|
9865 | this.loading = true;
|
9866 | FilesAPI.use(data.uuid).then(function () {
|
9867 | _this4.loading = false;
|
9868 | data.state = "1";
|
9869 | }).catch(function () {
|
9870 | _this4.loading = false;
|
9871 | });
|
9872 | },
|
9873 | resetquery: function resetquery() {
|
9874 | this.$refs.queryform.resetFields();
|
9875 | this.queryform.starTime = null;
|
9876 | this.queryform.endTime = null;
|
9877 | this.picker = [];
|
9878 | }
|
9879 | }
|
9880 | });
|
9881 |
|
9882 | var common_Uploadervue_type_script_lang_js_ = (Uploadervue_type_script_lang_js_);
|
9883 |
|
9884 | var Uploadervue_type_style_index_0_lang_scss_ = __webpack_require__("88bc");
|
9885 |
|
9886 |
|
9887 | var componentNormalizer = __webpack_require__("6691");
|
9888 |
|
9889 |
|
9890 |
|
9891 |
|
9892 |
|
9893 |
|
9894 |
|
9895 |
|
9896 |
|
9897 |
|
9898 | var component = Object(componentNormalizer["a" ])(
|
9899 | common_Uploadervue_type_script_lang_js_,
|
9900 | render,
|
9901 | staticRenderFns,
|
9902 | false,
|
9903 | null,
|
9904 | null,
|
9905 | null
|
9906 |
|
9907 | )
|
9908 |
|
9909 | var Uploader = __webpack_exports__["a"] = (component.exports);
|
9910 |
|
9911 | }),
|
9912 |
|
9913 | "9483":
|
9914 | (function(module, exports, __webpack_require__) {
|
9915 |
|
9916 |
|
9917 |
|
9918 | }),
|
9919 |
|
9920 | "9512":
|
9921 | (function(module, __webpack_exports__, __webpack_require__) {
|
9922 |
|
9923 | "use strict";
|
9924 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Selector_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("58da");
|
9925 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Selector_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Selector_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
9926 |
|
9927 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Selector_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
9928 |
|
9929 | }),
|
9930 |
|
9931 | "972d":
|
9932 | (function(module, exports) {
|
9933 |
|
9934 | module.exports = require("sha.js");
|
9935 |
|
9936 | }),
|
9937 |
|
9938 | "9763":
|
9939 | (function(module, __webpack_exports__, __webpack_require__) {
|
9940 |
|
9941 | "use strict";
|
9942 |
|
9943 |
|
9944 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}]},[_c('el-alert',{attrs:{"title":"请选择时间范围为一周以内!","type":"info","closable":true}}),_c('el-row',{staticStyle:{"margin-bottom":"10px"},attrs:{"gutter":3}},[_c('el-col',{attrs:{"span":20}},[_c('el-date-picker',{staticClass:"daterange",attrs:{"type":"daterange","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":_vm.pickerOptions},model:{value:(_vm.timeRange),callback:function ($$v) {_vm.timeRange=$$v},expression:"timeRange"}})],1),_c('el-col',{attrs:{"span":4}},[_c('el-button',{staticStyle:{"width":"100%"},attrs:{"type":"primary","icon":"el-icon-search"},on:{"click":function($event){$event.stopPropagation();return _vm.queryLazyData($event)}}})],1)],1),(_vm.timeLine.length===0)?_c('el-alert',{attrs:{"title":"该用户目前没有进行任何操作 !","type":"info","closable":false}}):_vm._e(),(!_vm.userUuid)?_c('el-alert',{attrs:{"title":"组件不可用,必须传入初始的userUuid值 !","type":"error","closable":false}}):_vm._e(),(!(_vm.timeLine.length===0))?_c('div',{staticClass:"timeline",style:('max-height:'+_vm.height)},[_c('el-steps',{attrs:{"space":"50px","direction":"vertical","active":999}},_vm._l((_vm.timeLine),function(item,index){return _c('el-step',{key:index,attrs:{"icon":"el-icon-location","description":item.actDesc}},[_c('template',{slot:"title"},[_c('span',[_vm._v(_vm._s(_vm._f("date")(item.opTime,'%Y-%m-%d %T')))]),_c('span',{staticClass:"margin-left-4"},[_c('el-tag',{attrs:{"type":(item.logType==='1'||item.logType==='2')?'success':item.logType==='3'?'warning':'danger'}},[_vm._v(" "+_vm._s(_vm.formatLogType(item.logType)))])],1)]),_c('template',{slot:"description"},[(!(_vm.calTime(index)===0))?_c('span',[_c('el-tag',{attrs:{"type":"info"}},[_vm._v("耗时:"+_vm._s(_vm.calTime(index))+" m")]),_c('el-tag',{staticClass:"margin-left-2",staticStyle:{"cursor":"pointer"},attrs:{"type":"info","title":"查看详情"}},[_c('i',{staticClass:"el-icon-more",on:{"click":function($event){return _vm.showLoginHis(item)}}})])],1):_vm._e()])],2)}),1)],1):_vm._e()],1)}
|
9945 | var staticRenderFns = []
|
9946 |
|
9947 |
|
9948 |
|
9949 |
|
9950 |
|
9951 | var es6_object_assign_ = __webpack_require__("067b");
|
9952 |
|
9953 |
|
9954 | var UserAPI = __webpack_require__("c030");
|
9955 |
|
9956 |
|
9957 |
|
9958 |
|
9959 |
|
9960 |
|
9961 |
|
9962 |
|
9963 |
|
9964 |
|
9965 |
|
9966 |
|
9967 |
|
9968 |
|
9969 |
|
9970 |
|
9971 |
|
9972 |
|
9973 |
|
9974 |
|
9975 |
|
9976 |
|
9977 |
|
9978 |
|
9979 |
|
9980 |
|
9981 |
|
9982 |
|
9983 |
|
9984 |
|
9985 |
|
9986 |
|
9987 |
|
9988 |
|
9989 |
|
9990 |
|
9991 |
|
9992 |
|
9993 |
|
9994 |
|
9995 |
|
9996 |
|
9997 |
|
9998 |
|
9999 | var TimeLinevue_type_script_lang_js_ = ({
|
10000 | props: {
|
10001 | userUuid: {
|
10002 | type: String,
|
10003 | default: ""
|
10004 | },
|
10005 | height: {
|
10006 | type: String,
|
10007 | default: "400px"
|
10008 | }
|
10009 | },
|
10010 | mounted: function mounted() {
|
10011 | this.initload(this.userUuid);
|
10012 | },
|
10013 | watch: {
|
10014 | userUuid: function userUuid(val) {
|
10015 | this.initload(val);
|
10016 | }
|
10017 | },
|
10018 | data: function data() {
|
10019 | return {
|
10020 | loading: false,
|
10021 | timeLine: [],
|
10022 | pickerOptions: {
|
10023 | shortcuts: [{
|
10024 | text: "最近一周",
|
10025 | onClick: function onClick(picker) {
|
10026 | var end = new Date();
|
10027 | var start = new Date();
|
10028 | start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
10029 | picker.$emit("pick", [start, end]);
|
10030 | }
|
10031 | }]
|
10032 | },
|
10033 | timeRange: []
|
10034 | };
|
10035 | },
|
10036 | methods: {
|
10037 | calTime: function calTime(index) {
|
10038 | var t = 0;
|
10039 |
|
10040 | if (this.timeLine[index].logType !== "1") {
|
10041 | if (this.timeLine.length - 1 === index) {
|
10042 | return t;
|
10043 | } else {
|
10044 | if (this.timeLine[index + 1].logType === "1") {
|
10045 | var mss = this.timeLine[index].opTime - this.timeLine[index + 1].opTime;
|
10046 | return (mss / 1000 / 60).toFixed(3);
|
10047 | } else {
|
10048 | return 0;
|
10049 | }
|
10050 | }
|
10051 | } else {
|
10052 | return t;
|
10053 | }
|
10054 | },
|
10055 | formatLogType: function formatLogType(logType) {
|
10056 | if (logType === "1") {
|
10057 | return "登入";
|
10058 | } else if (logType === "2") {
|
10059 | return "登出";
|
10060 | } else if (logType === "3") {
|
10061 | return "超时退出";
|
10062 | } else if (logType === "4") {
|
10063 | return "踢出";
|
10064 | } else {
|
10065 | return "未知";
|
10066 | }
|
10067 | },
|
10068 | showLoginHis: function showLoginHis(item) {
|
10069 | var _this = this;
|
10070 |
|
10071 | this.$confirm("即将跳转到 '交互日志' 页面, 是否继续?", "提示", {
|
10072 | confirmButtonText: "确定",
|
10073 | cancelButtonText: "取消",
|
10074 | type: "warning"
|
10075 | }).then(function () {
|
10076 | _this.$emit("closeDia");
|
10077 |
|
10078 | _this.$router.push({
|
10079 | path: "/logs/LogsServ",
|
10080 | query: {
|
10081 | sesId: item.sesId
|
10082 | }
|
10083 | });
|
10084 | }).catch(function () {});
|
10085 | },
|
10086 | initload: function initload(val) {
|
10087 | var _this2 = this;
|
10088 |
|
10089 | if (val) {
|
10090 | this.loading = true;
|
10091 | var t = new Date().getTime();
|
10092 | var ranTime = {
|
10093 | startTime: t - 3600 * 1000 * 24 * 7,
|
10094 | endTime: t
|
10095 | };
|
10096 | UserAPI["a" ].getTimeLine({
|
10097 | uuid: this.userUuid
|
10098 | }).then(function (resp) {
|
10099 | _this2.timeLine = resp;
|
10100 | _this2.loading = false;
|
10101 | });
|
10102 | }
|
10103 | },
|
10104 | queryLazyData: function queryLazyData() {
|
10105 | var _this3 = this;
|
10106 |
|
10107 | this.loading = true;
|
10108 |
|
10109 | if (this.timeRange && this.timeRange.length > 0) {
|
10110 | var ranTime = {
|
10111 | startTime: this.timeRange[0].getTime(),
|
10112 | endTime: this.timeRange[1].getTime()
|
10113 | };
|
10114 |
|
10115 | if (ranTime.endTime - ranTime.startTime > 3600 * 1000 * 24 * 7) {
|
10116 | this.$message.error("请选择合适的时间范围! (最大长度为一周)");
|
10117 | this.loading = false;
|
10118 | } else {
|
10119 | UserAPI["a" ].getTimeLine(Object.assign({
|
10120 | uuid: this.userUuid
|
10121 | }, ranTime)).then(function (resp) {
|
10122 | _this3.timeLine = resp;
|
10123 | _this3.loading = false;
|
10124 | });
|
10125 | }
|
10126 | } else {
|
10127 | this.$message.error("请选择时间范围!");
|
10128 | this.loading = false;
|
10129 | }
|
10130 | }
|
10131 | }
|
10132 | });
|
10133 |
|
10134 | var common_TimeLinevue_type_script_lang_js_ = (TimeLinevue_type_script_lang_js_);
|
10135 |
|
10136 | var TimeLinevue_type_style_index_0_id_2ef591a6_lang_scss_scoped_true_ = __webpack_require__("ef2f");
|
10137 |
|
10138 |
|
10139 | var componentNormalizer = __webpack_require__("6691");
|
10140 |
|
10141 |
|
10142 |
|
10143 |
|
10144 |
|
10145 |
|
10146 |
|
10147 |
|
10148 |
|
10149 |
|
10150 | var component = Object(componentNormalizer["a" ])(
|
10151 | common_TimeLinevue_type_script_lang_js_,
|
10152 | render,
|
10153 | staticRenderFns,
|
10154 | false,
|
10155 | null,
|
10156 | "2ef591a6",
|
10157 | null
|
10158 |
|
10159 | )
|
10160 |
|
10161 | var TimeLine = __webpack_exports__["a"] = (component.exports);
|
10162 |
|
10163 | }),
|
10164 |
|
10165 | "98b0":
|
10166 | (function(module, exports, __webpack_require__) {
|
10167 |
|
10168 |
|
10169 |
|
10170 | }),
|
10171 |
|
10172 | "9bbb":
|
10173 | (function(module, __webpack_exports__, __webpack_require__) {
|
10174 |
|
10175 | "use strict";
|
10176 | var localforage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c223");
|
10177 | var localforage__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(localforage__WEBPACK_IMPORTED_MODULE_0__);
|
10178 | var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("c45e");
|
10179 |
|
10180 |
|
10181 | __webpack_exports__["a"] = ({
|
10182 | codeListStore: localforage__WEBPACK_IMPORTED_MODULE_0___default.a.createInstance({
|
10183 | name: _config__WEBPACK_IMPORTED_MODULE_1__[ "a"].prefixs.sysCodeList
|
10184 | }),
|
10185 | codeTreeStore: localforage__WEBPACK_IMPORTED_MODULE_0___default.a.createInstance({
|
10186 | name: _config__WEBPACK_IMPORTED_MODULE_1__[ "a"].prefixs.sysCodeTree
|
10187 | }),
|
10188 | ajaxStore: localforage__WEBPACK_IMPORTED_MODULE_0___default.a.createInstance({
|
10189 | name: _config__WEBPACK_IMPORTED_MODULE_1__[ "a"].prefixs.sysCode
|
10190 | })
|
10191 | });
|
10192 |
|
10193 | }),
|
10194 |
|
10195 | "9d3e":
|
10196 | (function(module, __webpack_exports__, __webpack_require__) {
|
10197 |
|
10198 | "use strict";
|
10199 | __webpack_require__.r(__webpack_exports__);
|
10200 |
|
10201 |
|
10202 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',[_c('template',{slot:"header"},[_c('span',[_vm._v("查询定义")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-plus"},on:{"click":_vm.handleAdd}})],1)]),_c('el-form',{attrs:{"model":_vm.queryform}},[_c('el-row',[_c('el-col',{attrs:{"lg":4,"sm":12}},[_c('el-form-item',{attrs:{"label":"查询名称"}},[_c('el-input',{model:{value:(_vm.queryform.queryname),callback:function ($$v) {_vm.$set(_vm.queryform, "queryname", $$v)},expression:"queryform.queryname"}})],1)],1)],1)],1)],2),_c('el-card',{staticClass:"margin-top-2"},[_c('template',{slot:"header"},[_c('span',[_vm._v("查询定义列表")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search"},on:{"click":_vm.handleQuery}})],1)]),_c('PageTable',{ref:"dataTable",attrs:{"hideTitle":"","auto-load":"","data":_vm.table.data,"highlight-current-row":"","stripe":"","border":"","hideExport":""},on:{"load-data":_vm.dataTableLoad}},[_c('el-table-column',{attrs:{"type":"expand"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',[_c('pre',[_vm._v(_vm._s(scope.row.querysql))])])]}}])}),_c('el-table-column',{attrs:{"prop":"queryname","label":"查询名称","sortable":""}}),_c('el-table-column',{attrs:{"prop":"querytitle","label":"查询标题"}}),_c('el-table-column',{attrs:{"prop":"tablename","label":"使用表"}}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"160"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-edit","title":"编辑"},on:{"click":function($event){return _vm.handleEdit(scope.$index, scope.row)}}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-trash","title":"删除"},on:{"click":function($event){return _vm.handleDelete(scope.$index, scope.row)}}})]}}])})],1)],2),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"fullscreen":"","append-to-body":"","visible":_vm.designer.show,"title":"查询设计","maxable":"false"},on:{"update:visible":function($event){return _vm.$set(_vm.designer, "show", $event)}}},[(_vm.designer.show)?_c('QueryDesigner',{attrs:{"uuid":_vm.designer.uuid}}):_vm._e()],1)],1)}
|
10203 | var staticRenderFns = []
|
10204 |
|
10205 |
|
10206 |
|
10207 |
|
10208 |
|
10209 | var QueryDesignerAPI = __webpack_require__("00af");
|
10210 |
|
10211 |
|
10212 | var QueryDesignervue_type_template_id_6d8a850e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.view.loading.all),expression:"view.loading.all"}],staticClass:"flex-h qdes"},[_c('el-card',{staticClass:"table-list m-shadow"},[_c('div',{attrs:{"slot":"header"},slot:"header"},[_c('span',[_vm._v("选择数据表")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{staticClass:"blue",attrs:{"icon":"el-icon-fa-refresh "},on:{"click":_vm.handleRefreshTable}}),_c('el-button',{staticClass:"red",attrs:{"icon":"el-icon-fa-close "},on:{"click":_vm.handleDisselect}})],1)]),_c('el-checkbox-group',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.view.loading.tables),expression:"view.loading.tables"}],attrs:{"min":1,"max":7},model:{value:(_vm.meta.selectedTables),callback:function ($$v) {_vm.$set(_vm.meta, "selectedTables", $$v)},expression:"meta.selectedTables"}},_vm._l((_vm.meta.tables),function(tableInfo){return _c('el-checkbox',{key:tableInfo.tableName,attrs:{"label":tableInfo}},[_vm._v(_vm._s(tableInfo.tableName))])}),1)],1),_c('el-card',{staticClass:"workspace margin-left-1 flex-1"},[_c('div',{attrs:{"slot":"header"},slot:"header"},[_c('span',[_vm._v("查询路径 -\n "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.queryName),expression:"queryName"}],attrs:{"placeholder":"查询路径","disabled":!!_vm.meta.uuid},domProps:{"value":(_vm.queryName)},on:{"input":function($event){if($event.target.composing){ return; }_vm.queryName=$event.target.value}}})]),_vm._v("\n 查询标题:\n "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.queryTitle),expression:"queryTitle"}],domProps:{"value":(_vm.queryTitle)},on:{"input":function($event){if($event.target.composing){ return; }_vm.queryTitle=$event.target.value}}}),_c('div',{staticClass:"pull-right"},[_c('el-button',{staticClass:"blue",attrs:{"icon":"el-icon-fa-save"},on:{"click":_vm.handleSave}})],1)]),_c('div',{staticClass:"table-selected-list bg-green",staticStyle:{"overflow-y":"auto"}},[_c('div',{staticClass:"waterfall_"},_vm._l((_vm.meta.selectedTables),function(tableInfo,index){return _c('div',{key:tableInfo.tableName,staticClass:"item padding-1 pull-left"},[_c('el-card',{staticClass:"table-info-card"},[_c('div',{attrs:{"slot":"header"},slot:"header"},[_c('el-checkbox',{on:{"change":function($event){return _vm.checkAll(tableInfo)}},model:{value:(tableInfo.selectedAll),callback:function ($$v) {_vm.$set(tableInfo, "selectedAll", $$v)},expression:"tableInfo.selectedAll"}},[(tableInfo.isMaster)?_c('span',[_c('b',{staticClass:"font-red"},[_vm._v(_vm._s(tableInfo.tableName))])]):_vm._e(),(!tableInfo.isMaster)?_c('span',[_vm._v(_vm._s(tableInfo.tableName))]):_vm._e()])],1),_c('el-button',{on:{"click":function($event){return _vm.setMaster(tableInfo,index)}}},[_vm._v("主表")]),_c('el-button',{on:{"click":function($event){return _vm.remove(tableInfo,index)}}},[_vm._v("移除")]),_c('el-checkbox-group',{model:{value:(tableInfo.selectedTableColumns),callback:function ($$v) {_vm.$set(tableInfo, "selectedTableColumns", $$v)},expression:"tableInfo.selectedTableColumns"}},_vm._l((tableInfo.tableColumns),function(col){return _c('el-checkbox',{key:col.tableName,attrs:{"label":col}},[_vm._v(_vm._s(col.columnName))])}),1)],1)],1)}),0)]),_c('el-popover',{ref:"popover1",attrs:{"placement":"top-start","title":"标题","width":"200","trigger":"click"}}),_c('div',{staticClass:"flex-1",staticStyle:{"min-height":"400px"}},[_c('div',[_c('el-card',{staticClass:" margin-top-1",attrs:{"header":"表格预览"}},[_c('el-table',{attrs:{"border":"","data":_vm.tableData}},_vm._l((_vm.selectedColumns),function(column){return _c('el-table-column',{key:column.columnName,attrs:{"prop":column.columnName,"label":_vm.tableLabel(column),"width":"150"}})}),1)],1)],1),_c('div',{staticClass:"flex-h flex-1 margin-top-1"},[_c('el-card',{staticClass:"flex-1 show-sql"},[_c('div',{staticStyle:{"overflow":"auto"}},[_c('div',{attrs:{"slot":"header"},slot:"header"},[_c('span',{attrs:{"title":"仅供参考"}},[_vm._v("SQL预览")]),_c('div',{staticClass:"pull-right"},[_c('el-button',{ref:"copySqlButton",attrs:{"icon":"el-icon-fa-copy"}}),_c('el-button',{staticClass:"green-meadow",attrs:{"icon":"el-icon-fa-bug"},on:{"click":_vm.handleDebug}})],1)]),_c('div',{staticStyle:{"position":"absolute","left":"-50000px"}},[_c('pre',{ref:"sqlPreview"},[_vm._v(_vm._s(_vm.sql))])]),_c('div',[_c('div',[_c('span',{staticClass:"font-red"},[_vm._v("SELECT")])]),_vm._l((_vm.selectedColumns),function(column,index){return _c('div',{key:index,staticClass:"slect-column"},[_c('span',{staticStyle:{"width":"90px"}},[_vm._v(_vm._s(_vm._f("alias")(column.tableName)))]),_c('span',{staticClass:"text-center",staticStyle:{"width":"20px","font-weight":"bold"}},[_vm._v(".")]),_c('span',{staticClass:"font-blue",staticStyle:{"width":"120px"}},[_vm._v(_vm._s(column.columnName))]),_c('span',{staticClass:"font-red",staticStyle:{"width":"40px"},attrs:{"lass":"text-center"}},[_vm._v("AS")]),_c('span',{staticStyle:{"width":"100px"}},[_vm._v(_vm._s(_vm._f("lowercase")(column.columnName+'_'+index))+" ")]),(index!=_vm.selectedColumns.length-1)?_c('span',[_vm._v(",")]):_vm._e()])}),_c('div',[_c('span',{staticClass:"font-red"},[_vm._v("FROM")])]),_vm._l((_vm.selectedTables),function(table,index){return _c('div',{key:table.tableName,staticClass:"select-from"},[(index!==0)?_c('span',[_vm._v("LEFT JOIN ")]):_vm._e(),_c('span',[_vm._v(" "+_vm._s(table.tableName)+" ")]),_c('span',[_vm._v(" "+_vm._s(table.alias)+" ")]),(index!==0)?_c('div',[_c('span',[_vm._v("ON")]),_c('el-input',{staticStyle:{"width":"400px"},model:{value:(table.on),callback:function ($$v) {_vm.$set(table, "on", $$v)},expression:"table.on"}})],1):_vm._e()])}),_c('div',[_c('span',{staticClass:"font-red"},[_vm._v("WHERE")]),_c('el-button',{attrs:{"type":"text","icon":"el-icon-fa-plus"},on:{"click":_vm.addWhere}})],1),_c('div',{staticClass:"select-where"},[_c('span',[_vm._v("1=1")])]),_vm._l((_vm.wheres),function(where,index){return _c('div',{key:where.left.tableName,staticClass:"select-where"},[_c('div',[_c('el-select',{staticStyle:{"width":"100px"},model:{value:(where.concat),callback:function ($$v) {_vm.$set(where, "concat", $$v)},expression:"where.concat"}},[_c('el-option',{attrs:{"label":"AND","value":"AND"}}),_c('el-option',{attrs:{"label":"OR","value":"OR"}}),_c('el-option',{attrs:{"label":"AND NOT","value":"AND_NOT "}}),_c('el-option',{attrs:{"label":"OR NOT","value":"OR_NOT"}})],1)],1),_c('span',{staticClass:"text-right where-select ",on:{"click":function($event){return _vm.handleSlectColumn(where,where.left)}}},[(!where.left.columnName && !where.left.text)?_c('span',{staticClass:"font-grey-salsa"},[_vm._v(" <- - - -> ")]):_vm._e(),(!where.left.text)?_c('span',[_vm._v(" "+_vm._s(_vm._f("alias")(where.left.tableName))+"."+_vm._s(where.left.columnName)+" ")]):_vm._e(),(where.left.text)?_c('span',[_vm._v(" "+_vm._s(where.left.text)+" ")]):_vm._e()]),_c('el-select',{staticStyle:{"width":"70px"},model:{value:(where.compare),callback:function ($$v) {_vm.$set(where, "compare", $$v)},expression:"where.compare"}},[_c('el-option',{attrs:{"label":"=","value":"eq"}}),_c('el-option',{attrs:{"label":"<>","value":"not"}}),_c('el-option',{attrs:{"label":">","value":"gt","disabled":""}}),_c('el-option',{attrs:{"label":">=","value":"gte","disabled":""}}),_c('el-option',{attrs:{"label":"<","value":"lt","disabled":""}}),_c('el-option',{attrs:{"label":"<=","value":"lte","disabled":""}}),_c('el-option',{attrs:{"label":"like","value":"like"}}),_c('el-option',{attrs:{"label":"notlike","value":"notlike"}}),_c('el-option',{attrs:{"label":"in","value":"in","disabled":""}})],1),_c('span',{staticClass:"text-left where-select",on:{"click":function($event){return _vm.handleSlectColumn(where,where.right)}}},[(!where.right.columnName && !where.right.text)?_c('span',{staticClass:" font-grey-salsa"},[_vm._v(" <- - - -> ")]):_vm._e(),( !where.right.text)?_c('span',[_vm._v(" "+_vm._s(_vm._f("alias")(where.right.tableName))+"."+_vm._s(where.right.columnName)+" ")]):_vm._e(),(where.right.text)?_c('span',[_vm._v(" "+_vm._s(where.right.text)+" ")]):_vm._e()]),_c('el-button',{attrs:{"type":"text","icon":"el-icon-fa-trash"},on:{"click":function($event){return _vm.removeWhere(where,index)}}})],1)}),_c('el-input',{attrs:{"type":"textarea","placeholder":"追加条件"},model:{value:(_vm.cnd),callback:function ($$v) {_vm.cnd=$$v},expression:"cnd"}})],2)])]),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","width":"400px","top":"200px","visible":_vm.columnSelector.show,"title":"条件编辑"},on:{"update:visible":function($event){return _vm.$set(_vm.columnSelector, "show", $event)}}},[_c('el-tabs',{staticClass:"column-selector",attrs:{"type":"card"}},[_c('el-tab-pane',{attrs:{"label":"列表"}},[_c('ul',{staticClass:"column-list"},_vm._l((_vm.selectedColumns),function(column,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectColumntoWehre(column)}}},[_c('span',{staticStyle:{"width":"90px"}},[_vm._v(_vm._s(_vm._f("alias")(column.tableName)))]),_c('span',{staticClass:"text-center",staticStyle:{"width":"20px","font-weight":"bold"}},[_vm._v(".")]),_c('span',{staticClass:"font-blue",staticStyle:{"width":"120px"}},[_vm._v(_vm._s(column.columnName))])])}),0)]),_c('el-tab-pane',{attrs:{"label":"编辑"}},[_c('el-input',{attrs:{"type":"textarea"},model:{value:(_vm.columnSelector.lr.text),callback:function ($$v) {_vm.$set(_vm.columnSelector.lr, "text", $$v)},expression:"columnSelector.lr.text"}})],1),_c('div',{staticClass:"margin-1 text-right"},[_c('el-button',{attrs:{"icon":"el-icon-fa-check"},on:{"click":function($event){return _vm.selectTexttoWehre()}}}),_c('el-button',{attrs:{"icon":"el-icon-fa-close"},on:{"click":function($event){_vm.columnSelector.show=false}}})],1)],1)],1),_c('el-card',{staticClass:" margin-left-1 ",attrs:{"header":"字段设计"}},[_c('div',{staticStyle:{"overflow":"auto"}},_vm._l((_vm.meta.selectedTables),function(table,index){return (table.selectedTableColumns.length > 0)?_c('fieldset',{key:table.tableName},[_c('legend',[_vm._v(_vm._s(table.tableName))]),_vm._l((table.selectedTableColumns),function(column){return _c('div',{key:column.columnName},[_c('span',{staticStyle:{"width":"200px","display":"inline-block"}},[_vm._v(_vm._s(column.columnFullName))]),_c('el-input',{staticStyle:{"width":"200px","display":"inline-block"},attrs:{"placeholder":"列名","index":index},model:{value:(_vm.labelData[column.columnFullName]),callback:function ($$v) {_vm.$set(_vm.labelData, column.columnFullName, $$v)},expression:"labelData[column.columnFullName]"}}),_c('el-select',{staticStyle:{"width":"100px","display":"inline-block"},attrs:{"placeholder":"不可查询","clearable":true},model:{value:(column.cndType),callback:function ($$v) {_vm.$set(column, "cndType", $$v)},expression:"column.cndType"}},[_c('el-option',{attrs:{"label":"text","value":"text"}}),_c('el-option',{attrs:{"label":"dict","value":"dict"}}),_c('el-option',{attrs:{"label":"date","value":"date","disabled":""}}),_c('el-option',{attrs:{"label":"dateRange","value":"dateRange","disabled":""}}),_c('el-option',{attrs:{"label":"numberRange","value":"numberRange","disabled":""}})],1),(column.cndType==='dict')?_c('el-input',{staticClass:"margin-left-1",staticStyle:{"width":"100px","display":"inline-block"},attrs:{"placeholder":"字典名"},model:{value:(column.dictName),callback:function ($$v) {_vm.$set(column, "dictName", $$v)},expression:"column.dictName"}}):_vm._e(),(column.cndType==='text')?_c('el-select',{staticClass:"margin-left-1",staticStyle:{"width":"100px","display":"inline-block"},attrs:{"placeholder":"不可查询","clearable":true},model:{value:(column.compare),callback:function ($$v) {_vm.$set(column, "compare", $$v)},expression:"column.compare"}},[_c('el-option',{attrs:{"label":"=","value":"eq"}}),_c('el-option',{attrs:{"label":"<>","value":"not"}}),_c('el-option',{attrs:{"label":">","value":"gt","disabled":""}}),_c('el-option',{attrs:{"label":">=","value":"gte","disabled":""}}),_c('el-option',{attrs:{"label":"<","value":"lt","disabled":""}}),_c('el-option',{attrs:{"label":"<=","value":"lte","disabled":""}}),_c('el-option',{attrs:{"label":"like","value":"like"}}),_c('el-option',{attrs:{"label":"notlike","value":"notlike"}}),_c('el-option',{attrs:{"label":"in","value":"in","disabled":""}})],1):_vm._e()],1)})],2):_vm._e()}),0)])],1)])],1)],1)}
|
10213 | var QueryDesignervue_type_template_id_6d8a850e_staticRenderFns = []
|
10214 |
|
10215 |
|
10216 |
|
10217 |
|
10218 |
|
10219 | var es6_object_assign_ = __webpack_require__("067b");
|
10220 |
|
10221 |
|
10222 | var web_dom_iterable_ = __webpack_require__("80a8");
|
10223 |
|
10224 |
|
10225 | var es6_regexp_split_ = __webpack_require__("5a1d");
|
10226 |
|
10227 |
|
10228 | var external_clipboard_ = __webpack_require__("b0c2");
|
10229 | var external_clipboard_default = __webpack_require__.n(external_clipboard_);
|
10230 |
|
10231 |
|
10232 |
|
10233 |
|
10234 |
|
10235 |
|
10236 |
|
10237 |
|
10238 |
|
10239 |
|
10240 |
|
10241 |
|
10242 |
|
10243 |
|
10244 |
|
10245 |
|
10246 |
|
10247 |
|
10248 |
|
10249 |
|
10250 |
|
10251 |
|
10252 |
|
10253 |
|
10254 |
|
10255 |
|
10256 |
|
10257 |
|
10258 |
|
10259 |
|
10260 |
|
10261 |
|
10262 |
|
10263 |
|
10264 |
|
10265 |
|
10266 |
|
10267 |
|
10268 |
|
10269 |
|
10270 |
|
10271 |
|
10272 |
|
10273 |
|
10274 |
|
10275 |
|
10276 |
|
10277 |
|
10278 |
|
10279 |
|
10280 |
|
10281 |
|
10282 |
|
10283 |
|
10284 |
|
10285 |
|
10286 |
|
10287 |
|
10288 |
|
10289 |
|
10290 |
|
10291 |
|
10292 |
|
10293 |
|
10294 |
|
10295 |
|
10296 |
|
10297 |
|
10298 |
|
10299 |
|
10300 |
|
10301 |
|
10302 |
|
10303 |
|
10304 |
|
10305 |
|
10306 |
|
10307 |
|
10308 |
|
10309 |
|
10310 |
|
10311 |
|
10312 |
|
10313 |
|
10314 |
|
10315 |
|
10316 |
|
10317 |
|
10318 |
|
10319 |
|
10320 |
|
10321 |
|
10322 |
|
10323 |
|
10324 |
|
10325 |
|
10326 |
|
10327 |
|
10328 |
|
10329 |
|
10330 |
|
10331 |
|
10332 |
|
10333 |
|
10334 |
|
10335 |
|
10336 |
|
10337 |
|
10338 |
|
10339 |
|
10340 |
|
10341 |
|
10342 |
|
10343 |
|
10344 |
|
10345 |
|
10346 |
|
10347 |
|
10348 |
|
10349 |
|
10350 |
|
10351 |
|
10352 |
|
10353 |
|
10354 |
|
10355 |
|
10356 |
|
10357 |
|
10358 |
|
10359 |
|
10360 |
|
10361 |
|
10362 |
|
10363 |
|
10364 |
|
10365 |
|
10366 |
|
10367 |
|
10368 |
|
10369 |
|
10370 |
|
10371 |
|
10372 |
|
10373 |
|
10374 |
|
10375 |
|
10376 |
|
10377 |
|
10378 |
|
10379 |
|
10380 |
|
10381 |
|
10382 |
|
10383 |
|
10384 |
|
10385 |
|
10386 |
|
10387 |
|
10388 |
|
10389 |
|
10390 |
|
10391 |
|
10392 |
|
10393 |
|
10394 |
|
10395 |
|
10396 |
|
10397 |
|
10398 |
|
10399 |
|
10400 |
|
10401 |
|
10402 |
|
10403 |
|
10404 |
|
10405 |
|
10406 |
|
10407 |
|
10408 |
|
10409 |
|
10410 |
|
10411 |
|
10412 |
|
10413 |
|
10414 |
|
10415 |
|
10416 |
|
10417 |
|
10418 |
|
10419 |
|
10420 |
|
10421 |
|
10422 |
|
10423 |
|
10424 |
|
10425 |
|
10426 |
|
10427 |
|
10428 |
|
10429 | function tf(str) {
|
10430 | var arr = str.split("_");
|
10431 |
|
10432 | for (var i = 1; i < arr.length; i++) {
|
10433 | arr[i] = arr[i].charAt(0).toUpperCase() + arr[i].substring(1);
|
10434 | }
|
10435 |
|
10436 | return arr.join("");
|
10437 | }
|
10438 |
|
10439 | var QueryDesignervue_type_script_lang_js_ = ({
|
10440 | filters: {
|
10441 | alias: function alias(val) {
|
10442 | return tf(val.toLowerCase());
|
10443 | }
|
10444 | },
|
10445 | props: {
|
10446 | uuid: String
|
10447 | },
|
10448 | data: function data() {
|
10449 | return {
|
10450 | queryName: "",
|
10451 | queryTitle: "",
|
10452 | sql: "",
|
10453 | meta: {
|
10454 | uuid: "",
|
10455 | tables: [],
|
10456 | selectedTables: []
|
10457 | },
|
10458 | view: {
|
10459 | lastTable: "",
|
10460 | loading: {
|
10461 | all: false,
|
10462 | tables: false
|
10463 | }
|
10464 | },
|
10465 | labelData: {},
|
10466 | cnd: "",
|
10467 | columnSelector: {
|
10468 | lr: {
|
10469 | text: "",
|
10470 | tableName: "",
|
10471 | tableColumn: ""
|
10472 | },
|
10473 | show: false
|
10474 | },
|
10475 | wheres: []
|
10476 | };
|
10477 | },
|
10478 | watch: {
|
10479 | uuid: function uuid() {
|
10480 | this.initLoad();
|
10481 | }
|
10482 | },
|
10483 | computed: {
|
10484 |
|
10485 | selectedColumns: function selectedColumns() {
|
10486 | var _this = this;
|
10487 |
|
10488 | var columns = [];
|
10489 |
|
10490 |
|
10491 | this.meta.selectedTables.forEach(function (table) {
|
10492 | table.selectedTableColumns.forEach(function (col) {
|
10493 | columns.push({
|
10494 | tableName: table.tableName,
|
10495 | columnName: col.columnName,
|
10496 | columnFullName: col.columnFullName
|
10497 | });
|
10498 |
|
10499 | _this.$set(_this.labelData, col.columnFullName, _this.labelData[col.columnFullName] || col.columnComment || col.columnFullName);
|
10500 | });
|
10501 | });
|
10502 | return columns;
|
10503 | },
|
10504 | // 选中的表
|
10505 | selectedTables: function selectedTables() {
|
10506 | var tables = [];
|
10507 | this.meta.selectedTables.forEach(function (table) {
|
10508 | if (table.selectedTableColumns.length > 0) {
|
10509 | tables.push(table);
|
10510 | }
|
10511 | });
|
10512 | return tables;
|
10513 | },
|
10514 | tableData: function tableData() {
|
10515 | var columnHeader = {};
|
10516 | this.selectedColumns.forEach(function (col) {
|
10517 | columnHeader[col.columnName] = col.columnFullName;
|
10518 | });
|
10519 | return [columnHeader];
|
10520 | }
|
10521 | },
|
10522 | mounted: function mounted() {
|
10523 | this.initLoad();
|
10524 | this.initCopySQl();
|
10525 | },
|
10526 | methods: {
|
10527 | initLoad: function initLoad() {
|
10528 | this.meta.uuid = this.uuid;
|
10529 | this.loadTable().then(this.loadDesign);
|
10530 | },
|
10531 | initCopySQl: function initCopySQl() {
|
10532 | var _this2 = this;
|
10533 |
|
10534 | var sqlPreviewDom = this.$refs.sqlPreview;
|
10535 | var clip = new external_clipboard_default.a(this.$refs.copySqlButton.$el, {
|
10536 | target: function target(trigger) {
|
10537 | return sqlPreviewDom;
|
10538 | }
|
10539 | });
|
10540 | clip.on("success", function (e) {
|
10541 | _this2.$message.success("复制成功");
|
10542 | });
|
10543 | },
|
10544 | loadTable: function loadTable() {
|
10545 | var _this3 = this;
|
10546 |
|
10547 | this.view.loading.all = true;
|
10548 | this.meta.selectedTables = [];
|
10549 | return QueryDesignerAPI["a" ].loadAllTable().then(function (data) {
|
10550 | data.forEach(function (table) {
|
10551 | table.selectedTableColumns = [];
|
10552 | table.on = "";
|
10553 | table.alias = tf(table.tableName.toLowerCase());
|
10554 | table.tableColumns.forEach(function (col) {
|
10555 | col.columnFullName = table.tableName + "." + col.columnName;
|
10556 | col.cndType = "";
|
10557 | col.dictName = "";
|
10558 | col.compare = "";
|
10559 | });
|
10560 | }, _this3);
|
10561 | _this3.meta.tables = data;
|
10562 | _this3.view.loading.all = false;
|
10563 | }).catch(function () {
|
10564 | _this3.view.loading.all = false;
|
10565 | });
|
10566 | },
|
10567 | handleRefreshTable: function handleRefreshTable() {
|
10568 | this.initLoad();
|
10569 | },
|
10570 | handleDisselect: function handleDisselect() {
|
10571 | this.meta.selectedTables = [];
|
10572 | this.meta.wheres = [];
|
10573 | this.loadTable();
|
10574 | },
|
10575 | handleCheckColumn: function handleCheckColumn(table, columns, index) {},
|
10576 | handlePreviewData: function handlePreviewData() {},
|
10577 | tableLabel: function tableLabel(col) {
|
10578 | return this.labelData[col.columnFullName];
|
10579 | },
|
10580 | checkAll: function checkAll(tableInfo) {
|
10581 | if (tableInfo.selectedAll) {
|
10582 | tableInfo.selectedTableColumns = [];
|
10583 | tableInfo.tableColumns.forEach(function (col) {
|
10584 | tableInfo.selectedTableColumns.push(col);
|
10585 | });
|
10586 | } else {
|
10587 | tableInfo.selectedTableColumns = [];
|
10588 | }
|
10589 | },
|
10590 | setMaster: function setMaster(tableInfo, index) {
|
10591 | var tmp = this.meta.selectedTables[0];
|
10592 | this.$set(this.meta.selectedTables, 0, this.meta.selectedTables[index]);
|
10593 | this.$set(this.meta.selectedTables, index, tmp);
|
10594 | this.meta.selectedTables.forEach(function (table, iid) {
|
10595 | table.isMaster = false;
|
10596 | }, this);
|
10597 | this.$set(tableInfo, "isMaster", true);
|
10598 | },
|
10599 | remove: function remove(tableInfo, index) {
|
10600 | this.meta.selectedTables.splice(index, 1);
|
10601 | },
|
10602 | handleSave: function handleSave() {
|
10603 | var _this4 = this;
|
10604 |
|
10605 | if (this.selectedColumns.length === 0) {
|
10606 | return this.$message.error("请先设计!");
|
10607 | }
|
10608 |
|
10609 | if (this.queryName) {
|
10610 | return this.doSave();
|
10611 | }
|
10612 |
|
10613 | this.$prompt("请为您的查询命名!", "提示", {
|
10614 | confirmButtonText: "确定",
|
10615 | cancelButtonText: "取消",
|
10616 | inputValue: this.queryName
|
10617 | }).then(function (_ref) {
|
10618 | var value = _ref.value;
|
10619 | _this4.queryName = value;
|
10620 |
|
10621 | if (_this4.queryName) {
|
10622 | _this4.doSave();
|
10623 | }
|
10624 | });
|
10625 | },
|
10626 | handleSlectColumn: function handleSlectColumn(where, lr) {
|
10627 | this.columnSelector.show = true;
|
10628 | this.columnSelector.lr = lr;
|
10629 | },
|
10630 | selectColumntoWehre: function selectColumntoWehre(column) {
|
10631 | this.columnSelector.lr.tableName = column.tableName;
|
10632 | this.columnSelector.lr.columnName = column.columnName;
|
10633 | this.columnSelector.lr.text = "";
|
10634 | this.columnSelector.show = false;
|
10635 | },
|
10636 | selectTexttoWehre: function selectTexttoWehre(column) {
|
10637 | this.columnSelector.lr.tableName = "";
|
10638 | this.columnSelector.lr.columnName = "";
|
10639 | this.columnSelector.show = false;
|
10640 | },
|
10641 | addWhere: function addWhere() {
|
10642 | this.wheres.push({
|
10643 | compare: "eq",
|
10644 | concat: "AND",
|
10645 | left: {
|
10646 | text: "",
|
10647 | tableName: "",
|
10648 | columnName: ""
|
10649 | },
|
10650 | right: {
|
10651 | text: "",
|
10652 | tableName: "",
|
10653 | columnName: ""
|
10654 | }
|
10655 | });
|
10656 | },
|
10657 | removeWhere: function removeWhere(where, index) {
|
10658 | this.wheres.splice(index, 1);
|
10659 | },
|
10660 | loadDesign: function loadDesign() {
|
10661 | var _this5 = this;
|
10662 |
|
10663 | this.meta.selectedTables = [];
|
10664 | this.queryName = "";
|
10665 | this.wheres = [];
|
10666 |
|
10667 | if (this.uuid) {
|
10668 | this.view.loading.all = true;
|
10669 | QueryDesignerAPI["a" ].loadDesign(this.uuid).then(function (data) {
|
10670 | _this5.wheres = data.wheres;
|
10671 | _this5.labelData = data.labelData;
|
10672 | _this5.queryName = data.queryName;
|
10673 | _this5.queryTitle = data.queryTitle;
|
10674 | _this5.cnd = data.cnd;
|
10675 |
|
10676 | _this5.meta.tables.forEach(function (table) {
|
10677 | var tableName = table.tableName;
|
10678 |
|
10679 | if (data.selectedTables[tableName]) {
|
10680 | table.on = data.selectedTables[tableName].on;
|
10681 | table.tableColumns.forEach(function (col) {
|
10682 | var columnName = col.columnName;
|
10683 |
|
10684 | if (data.selectedTables[tableName][columnName]) {
|
10685 | Object.assign(col, data.selectedTables[tableName][columnName]);
|
10686 | table.selectedTableColumns.push(col);
|
10687 | }
|
10688 | }, this);
|
10689 | this.meta.selectedTables.push(table);
|
10690 | }
|
10691 | }, _this5);
|
10692 |
|
10693 | _this5.view.loading.all = false;
|
10694 | });
|
10695 | }
|
10696 | },
|
10697 | handleSaveData: function handleSaveData() {
|
10698 | this.view.loading.all = true;
|
10699 | var tableInfos = [];
|
10700 |
|
10701 | var define = {
|
10702 | selectedTables: {},
|
10703 | queryName: this.queryName,
|
10704 | queryTitle: this.queryTitle,
|
10705 | labelData: this.labelData,
|
10706 | wheres: this.wheres,
|
10707 | cnd: this.cnd
|
10708 | };
|
10709 | this.meta.selectedTables[0].isMaster = true;
|
10710 | this.meta.selectedTables.forEach(function (table) {
|
10711 | var _data = {};
|
10712 | _data.alias = table.alias;
|
10713 | _data.tableName = table.tableName;
|
10714 | _data.isMaster = table.isMaster;
|
10715 | _data.on = table.on;
|
10716 | define.selectedTables[table.tableName] = {
|
10717 | on: table.on
|
10718 | };
|
10719 | _data.tableColumns = table.selectedTableColumns.map(function (col) {
|
10720 |
|
10721 | define.selectedTables[table.tableName][col.columnName] = {
|
10722 | columnName: col.columnName,
|
10723 | cndType: col.cndType ? col.cndType : null,
|
10724 | dictName: col.dictName,
|
10725 | compare: col.compare ? col.compare : null
|
10726 | };
|
10727 | return define.selectedTables[table.tableName][col.columnName];
|
10728 | });
|
10729 | tableInfos.push(_data);
|
10730 | });
|
10731 | define = JSON.stringify(define);
|
10732 | return {
|
10733 | uuid: this.meta.uuid,
|
10734 | wheres: this.wheres,
|
10735 | cnd: this.cnd,
|
10736 | queryName: this.queryName,
|
10737 | queryTitle: this.queryTitle,
|
10738 | tableInfos: tableInfos,
|
10739 | define: define,
|
10740 | labelData: this.labelData
|
10741 | };
|
10742 | },
|
10743 | doSave: function doSave() {
|
10744 | var _this6 = this;
|
10745 |
|
10746 | var data = this.handleSaveData();
|
10747 | return QueryDesignerAPI["a" ].saveDesign(data).then(function (resp) {
|
10748 | _this6.view.loading.all = false;
|
10749 | _this6.meta.uuid = resp.uuid;
|
10750 | }).catch(function () {
|
10751 | _this6.view.loading.all = false;
|
10752 | });
|
10753 | },
|
10754 |
|
10755 | handleDebug: function handleDebug() {
|
10756 | var _this7 = this;
|
10757 |
|
10758 | var data = this.handleSaveData();
|
10759 | return QueryDesignerAPI["a" ].debugDesign(data).then(function (resp) {
|
10760 | _this7.sql = resp.sql;
|
10761 | _this7.view.loading.all = false;
|
10762 | _this7.meta.uuid = resp.uuid;
|
10763 | }).catch(function () {
|
10764 | _this7.view.loading.all = false;
|
10765 | });
|
10766 | }
|
10767 | }
|
10768 | });
|
10769 |
|
10770 | var sysm_QueryDesignervue_type_script_lang_js_ = (QueryDesignervue_type_script_lang_js_);
|
10771 |
|
10772 | var QueryDesignervue_type_style_index_0_lang_scss_ = __webpack_require__("7f05");
|
10773 |
|
10774 |
|
10775 | var componentNormalizer = __webpack_require__("6691");
|
10776 |
|
10777 |
|
10778 |
|
10779 |
|
10780 |
|
10781 |
|
10782 |
|
10783 |
|
10784 |
|
10785 |
|
10786 | var component = Object(componentNormalizer["a" ])(
|
10787 | sysm_QueryDesignervue_type_script_lang_js_,
|
10788 | QueryDesignervue_type_template_id_6d8a850e_render,
|
10789 | QueryDesignervue_type_template_id_6d8a850e_staticRenderFns,
|
10790 | false,
|
10791 | null,
|
10792 | null,
|
10793 | null
|
10794 |
|
10795 | )
|
10796 |
|
10797 | var QueryDesigner = (component.exports);
|
10798 |
|
10799 |
|
10800 |
|
10801 |
|
10802 |
|
10803 |
|
10804 |
|
10805 |
|
10806 |
|
10807 |
|
10808 |
|
10809 |
|
10810 |
|
10811 |
|
10812 |
|
10813 |
|
10814 |
|
10815 |
|
10816 |
|
10817 |
|
10818 |
|
10819 |
|
10820 |
|
10821 |
|
10822 |
|
10823 |
|
10824 |
|
10825 |
|
10826 |
|
10827 |
|
10828 |
|
10829 |
|
10830 |
|
10831 |
|
10832 |
|
10833 |
|
10834 |
|
10835 |
|
10836 |
|
10837 |
|
10838 |
|
10839 |
|
10840 |
|
10841 |
|
10842 |
|
10843 |
|
10844 |
|
10845 |
|
10846 |
|
10847 |
|
10848 |
|
10849 |
|
10850 |
|
10851 |
|
10852 | var QueryMgrvue_type_script_lang_js_ = ({
|
10853 | name: "QueryMgr",
|
10854 | components: {
|
10855 | QueryDesigner: QueryDesigner
|
10856 | },
|
10857 | data: function data() {
|
10858 | return {
|
10859 | queryform: {
|
10860 | queryname: ""
|
10861 | },
|
10862 | table: {
|
10863 | data: []
|
10864 | },
|
10865 | designer: {
|
10866 | uuid: "",
|
10867 | show: false
|
10868 | }
|
10869 | };
|
10870 | },
|
10871 | methods: {
|
10872 | handleAdd: function handleAdd() {
|
10873 | this.designer.uuid = "";
|
10874 | this.designer.show = true;
|
10875 | },
|
10876 | handleEdit: function handleEdit(index, row) {
|
10877 | this.designer.show = true;
|
10878 | this.designer.uuid = row.uuid;
|
10879 | },
|
10880 | handleQuery: function handleQuery() {
|
10881 | this.$refs.dataTable.load(this.queryform);
|
10882 | },
|
10883 | dataTableLoad: function dataTableLoad(params, resolve) {
|
10884 | var _this = this;
|
10885 |
|
10886 | QueryDesignerAPI["a" ].loadDesignList(params).then(resolve).then(function (respData) {
|
10887 | return _this.table.data = respData.datarows;
|
10888 | });
|
10889 | },
|
10890 | handleDelete: function handleDelete(index, row) {
|
10891 | var _this2 = this;
|
10892 |
|
10893 | this.confirm(row).then(function (row) {
|
10894 | QueryDesignerAPI["a" ].deleteDesign(row.uuid).then(_this2.handleQuery).catch();
|
10895 | });
|
10896 | }
|
10897 | }
|
10898 | });
|
10899 |
|
10900 | var sysm_QueryMgrvue_type_script_lang_js_ = (QueryMgrvue_type_script_lang_js_);
|
10901 |
|
10902 |
|
10903 |
|
10904 |
|
10905 |
|
10906 |
|
10907 |
|
10908 |
|
10909 | var QueryMgr_component = Object(componentNormalizer["a" ])(
|
10910 | sysm_QueryMgrvue_type_script_lang_js_,
|
10911 | render,
|
10912 | staticRenderFns,
|
10913 | false,
|
10914 | null,
|
10915 | null,
|
10916 | null
|
10917 |
|
10918 | )
|
10919 |
|
10920 | var QueryMgr = __webpack_exports__["default"] = (QueryMgr_component.exports);
|
10921 |
|
10922 | }),
|
10923 |
|
10924 | "a352":
|
10925 | (function(module, exports) {
|
10926 |
|
10927 | module.exports = require("sortablejs");
|
10928 |
|
10929 | }),
|
10930 |
|
10931 | "a562":
|
10932 | (function(module, __webpack_exports__, __webpack_require__) {
|
10933 |
|
10934 | "use strict";
|
10935 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_LogsOperData_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("98b0");
|
10936 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_LogsOperData_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_LogsOperData_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
10937 |
|
10938 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_LogsOperData_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
10939 |
|
10940 | }),
|
10941 |
|
10942 | "a73e":
|
10943 | (function(module, __webpack_exports__, __webpack_require__) {
|
10944 |
|
10945 | "use strict";
|
10946 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Container_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ca48");
|
10947 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Container_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Container_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
10948 |
|
10949 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Container_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
10950 |
|
10951 | }),
|
10952 |
|
10953 | "a7b5":
|
10954 | (function(module, exports) {
|
10955 |
|
10956 | module.exports = require("vue-the-mask");
|
10957 |
|
10958 | }),
|
10959 |
|
10960 | "aa21":
|
10961 | (function(module, __webpack_exports__, __webpack_require__) {
|
10962 |
|
10963 | "use strict";
|
10964 |
|
10965 |
|
10966 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('PageTable',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:"dataTable",attrs:{"auto-load":false,"page-size":10,"data":_vm.table.data,"highlight-current-row":"","stripe":"","border":""},on:{"load-data":_vm.dataTableLoad}},[_c('el-table-column',{attrs:{"type":"expand"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('pre',{staticStyle:{"white-space":"-o-pre-wrap","word-wrap":"break-word"}},[_vm._v(_vm._s(scope.row.opdata))])]}}])}),_c('el-table-column',{attrs:{"prop":"opname","label":"操作表名","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"optype","label":"操作类型","formatter":_vm.optypeFormat,"show-overflow-tooltip":""}})],1)],1)}
|
10967 | var staticRenderFns = []
|
10968 |
|
10969 |
|
10970 |
|
10971 |
|
10972 |
|
10973 | var web_dom_iterable_ = __webpack_require__("80a8");
|
10974 |
|
10975 |
|
10976 | var LogsOper = __webpack_require__("8165");
|
10977 |
|
10978 |
|
10979 |
|
10980 |
|
10981 |
|
10982 |
|
10983 |
|
10984 |
|
10985 |
|
10986 |
|
10987 |
|
10988 |
|
10989 |
|
10990 |
|
10991 |
|
10992 |
|
10993 |
|
10994 |
|
10995 |
|
10996 | var LogsOperDatavue_type_script_lang_js_ = ({
|
10997 | props: {
|
10998 | uuid: null,
|
10999 | flag: null
|
11000 | },
|
11001 | data: function data() {
|
11002 | return {
|
11003 | loading: false,
|
11004 | table: {
|
11005 | data: []
|
11006 | },
|
11007 | detailedData: false,
|
11008 | data: {},
|
11009 | opdata: []
|
11010 | };
|
11011 | },
|
11012 | mounted: function mounted() {
|
11013 | this.loadInfo(this.flag, this.uuid);
|
11014 | },
|
11015 | watch: {
|
11016 | uuid: function uuid(_uuid) {
|
11017 | this.loadInfo(this.flag, this.uuid);
|
11018 | }
|
11019 | },
|
11020 | methods: {
|
11021 |
|
11022 | loadInfo: function loadInfo(flag, uuid) {
|
11023 | if (flag === 1) {
|
11024 | this.$refs.dataTable.load({
|
11025 | opid: uuid
|
11026 | });
|
11027 | } else if (flag === 2) {
|
11028 | this.$refs.dataTable.load({
|
11029 | seid: uuid
|
11030 | });
|
11031 | }
|
11032 | },
|
11033 | dataTableLoad: function dataTableLoad(params, resolve) {
|
11034 | var _this = this;
|
11035 |
|
11036 | this.loading = true;
|
11037 | LogsOper["a" ].queryLogsOperData(params).then(resolve)
|
11038 | .then(function (respData) {
|
11039 | _this.table.data = respData.datarows;
|
11040 | _this.loading = false;
|
11041 | });
|
11042 | },
|
11043 | optypeFormat: function optypeFormat(row, column) {
|
11044 | var par = row[column.property];
|
11045 | var stat = "";
|
11046 |
|
11047 | if (this.sysCode.operDataOpType === undefined) {
|
11048 | this.refresh();
|
11049 | }
|
11050 |
|
11051 | this.sysCode.operDataOpType.forEach(function (val) {
|
11052 | if (par == val.value) {
|
11053 | stat = val.label;
|
11054 | return;
|
11055 | }
|
11056 | });
|
11057 | return stat;
|
11058 | },
|
11059 | refresh: function refresh() {
|
11060 | this.$store.dispatch("base/refreshSysCode", "operDataOpType");
|
11061 | }
|
11062 | }
|
11063 | });
|
11064 |
|
11065 | var logs_LogsOperDatavue_type_script_lang_js_ = (LogsOperDatavue_type_script_lang_js_);
|
11066 |
|
11067 | var LogsOperDatavue_type_style_index_0_lang_css_ = __webpack_require__("a562");
|
11068 |
|
11069 |
|
11070 | var componentNormalizer = __webpack_require__("6691");
|
11071 |
|
11072 |
|
11073 |
|
11074 |
|
11075 |
|
11076 |
|
11077 |
|
11078 |
|
11079 |
|
11080 |
|
11081 | var component = Object(componentNormalizer["a" ])(
|
11082 | logs_LogsOperDatavue_type_script_lang_js_,
|
11083 | render,
|
11084 | staticRenderFns,
|
11085 | false,
|
11086 | null,
|
11087 | null,
|
11088 | null
|
11089 |
|
11090 | )
|
11091 |
|
11092 | var LogsOperData = __webpack_exports__["a"] = (component.exports);
|
11093 |
|
11094 | }),
|
11095 |
|
11096 | "abe2":
|
11097 | (function(module, exports) {
|
11098 |
|
11099 | module.exports = require("element-ui/lib/locale/lang/zh-CN");
|
11100 |
|
11101 | }),
|
11102 |
|
11103 | "b0c2":
|
11104 | (function(module, exports) {
|
11105 |
|
11106 | module.exports = require("clipboard");
|
11107 |
|
11108 | }),
|
11109 |
|
11110 | "b0e1":
|
11111 | (function(module, exports) {
|
11112 |
|
11113 | module.exports = require("core-js/modules/es6.string.starts-with");
|
11114 |
|
11115 | }),
|
11116 |
|
11117 | "b256":
|
11118 | (function(module, __webpack_exports__, __webpack_require__) {
|
11119 |
|
11120 | "use strict";
|
11121 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d034");
|
11122 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
11123 |
|
11124 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
11125 |
|
11126 | }),
|
11127 |
|
11128 | "b2cb":
|
11129 | (function(module, exports) {
|
11130 |
|
11131 | module.exports = require("core-js/modules/es6.promise");
|
11132 |
|
11133 | }),
|
11134 |
|
11135 | "b367":
|
11136 | (function(module, __webpack_exports__, __webpack_require__) {
|
11137 |
|
11138 | "use strict";
|
11139 |
|
11140 |
|
11141 | var web_dom_iterable_ = __webpack_require__("80a8");
|
11142 |
|
11143 |
|
11144 | var es6_array_iterator_ = __webpack_require__("2c92");
|
11145 |
|
11146 |
|
11147 | var es6_string_iterator_ = __webpack_require__("2579");
|
11148 |
|
11149 |
|
11150 | var es6_map_ = __webpack_require__("803d");
|
11151 |
|
11152 |
|
11153 | var es6_object_assign_ = __webpack_require__("067b");
|
11154 |
|
11155 |
|
11156 | var external_babel_polyfill_ = __webpack_require__("f156");
|
11157 |
|
11158 |
|
11159 | var external_vue_ = __webpack_require__("8bbf");
|
11160 | var external_vue_default = __webpack_require__.n(external_vue_);
|
11161 |
|
11162 |
|
11163 | var external_vue_i18n_ = __webpack_require__("85b3");
|
11164 | var external_vue_i18n_default = __webpack_require__.n(external_vue_i18n_);
|
11165 |
|
11166 |
|
11167 | var external_vuex_ = __webpack_require__("5880");
|
11168 | var external_vuex_default = __webpack_require__.n(external_vuex_);
|
11169 |
|
11170 |
|
11171 | var external_vue_router_ = __webpack_require__("6389");
|
11172 | var external_vue_router_default = __webpack_require__.n(external_vue_router_);
|
11173 |
|
11174 |
|
11175 | var external_element_ui_ = __webpack_require__("5f72");
|
11176 | var external_element_ui_default = __webpack_require__.n(external_element_ui_);
|
11177 |
|
11178 |
|
11179 | var external_vue_progressbar_ = __webpack_require__("f1e5");
|
11180 | var external_vue_progressbar_default = __webpack_require__.n(external_vue_progressbar_);
|
11181 |
|
11182 |
|
11183 | var external_vue_element_dialog_draggable_ = __webpack_require__("8576");
|
11184 | var external_vue_element_dialog_draggable_default = __webpack_require__.n(external_vue_element_dialog_draggable_);
|
11185 |
|
11186 |
|
11187 | var external_vue2_filters_ = __webpack_require__("f008");
|
11188 | var external_vue2_filters_default = __webpack_require__.n(external_vue2_filters_);
|
11189 |
|
11190 |
|
11191 | var external_moment_ = __webpack_require__("c32d");
|
11192 | var external_moment_default = __webpack_require__.n(external_moment_);
|
11193 |
|
11194 |
|
11195 | var external_vue_moment_ = __webpack_require__("4f25");
|
11196 | var external_vue_moment_default = __webpack_require__.n(external_vue_moment_);
|
11197 |
|
11198 |
|
11199 | var external_vue_the_mask_ = __webpack_require__("a7b5");
|
11200 |
|
11201 |
|
11202 | var external_animate_css_ = __webpack_require__("6b56");
|
11203 |
|
11204 |
|
11205 | var index_css_ = __webpack_require__("2691");
|
11206 |
|
11207 |
|
11208 |
|
11209 |
|
11210 |
|
11211 |
|
11212 |
|
11213 |
|
11214 |
|
11215 |
|
11216 |
|
11217 |
|
11218 |
|
11219 |
|
11220 |
|
11221 |
|
11222 |
|
11223 | window.location.hash = "";
|
11224 | external_vue_default.a.config.lang = "zh-CN";
|
11225 | external_element_ui_default.a.Dialog.props.closeOnClickModal.default = false;
|
11226 | external_element_ui_default.a.Dialog.props.closeOnPressEscape.default = false;
|
11227 | external_element_ui_default.a.FormItem.props.showMessage.default = false;
|
11228 | external_element_ui_default.a.Pagination.props.layout.default = "total, prev, pager, next,sizes";
|
11229 | external_vue_default.a.use(external_vue_router_default.a);
|
11230 | external_vue_default.a.use(external_vue_i18n_default.a);
|
11231 | external_vue_default.a.use(external_element_ui_default.a, {
|
11232 | size: "compact",
|
11233 | zIndex: 3000
|
11234 | });
|
11235 | external_vue_default.a.use(external_vuex_default.a);
|
11236 | external_vue_default.a.use(external_vue2_filters_default.a);
|
11237 | external_vue_default.a.use(external_vue_moment_default.a, {
|
11238 | moment: external_moment_default.a
|
11239 | });
|
11240 | external_vue_default.a.use(external_vue_progressbar_default.a, {
|
11241 | thickness: "3px"
|
11242 | });
|
11243 | external_vue_default.a.use(external_vue_element_dialog_draggable_default.a);
|
11244 | external_vue_default.a.directive("mask", external_vue_the_mask_["mask"]);
|
11245 |
|
11246 | var zh_CN_ = __webpack_require__("abe2");
|
11247 | var zh_CN_default = __webpack_require__.n(zh_CN_);
|
11248 |
|
11249 |
|
11250 | var base_store = __webpack_require__("cf33");
|
11251 |
|
11252 |
|
11253 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"page-container"},[_vm._v("404 page not found1")])}
|
11254 | var staticRenderFns = []
|
11255 |
|
11256 |
|
11257 |
|
11258 |
|
11259 |
|
11260 | var NotFoundvue_type_style_index_0_id_190b082d_lang_scss_scoped_true_ = __webpack_require__("f678");
|
11261 |
|
11262 |
|
11263 | var componentNormalizer = __webpack_require__("6691");
|
11264 |
|
11265 |
|
11266 |
|
11267 | var script = {}
|
11268 |
|
11269 |
|
11270 |
|
11271 |
|
11272 |
|
11273 | var component = Object(componentNormalizer["a" ])(
|
11274 | script,
|
11275 | render,
|
11276 | staticRenderFns,
|
11277 | false,
|
11278 | null,
|
11279 | "190b082d",
|
11280 | null
|
11281 |
|
11282 | )
|
11283 |
|
11284 | var NotFound = (component.exports);
|
11285 |
|
11286 | var Homevue_type_template_id_7c64e364_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-container',{staticClass:"app-container",attrs:{"direction":"vertical"}},[_c('vue-progress-bar'),_c('Header'),_c('el-container',[_c('Aside'),_c('Container')],1),_c('el-dialog',{attrs:{"append-to-body":"","title":"系统提示","visible":_vm.$store.state.base.loginTimeout,"width":"400px"},on:{"update:visible":function($event){return _vm.$set(_vm.$store.state.base, "loginTimeout", $event)}}},[_c('LoginRe')],1),_c('el-dialog',{attrs:{"append-to-body":"","title":"修改密码","visible":_vm.$store.state.base.loginChangePwd,"width":"360px"},on:{"update:visible":function($event){return _vm.$set(_vm.$store.state.base, "loginChangePwd", $event)}}},[_c('ChangePw',{on:{"cancel":function($event){_vm.$store.state.base.loginChangePwd=false}}})],1)],1)}
|
11287 | var Homevue_type_template_id_7c64e364_staticRenderFns = []
|
11288 |
|
11289 |
|
11290 |
|
11291 |
|
11292 |
|
11293 | var es6_regexp_replace_ = __webpack_require__("00dd");
|
11294 |
|
11295 |
|
11296 | var runtime_ = __webpack_require__("79d0");
|
11297 |
|
11298 |
|
11299 | var asyncToGenerator = __webpack_require__("e71e");
|
11300 |
|
11301 |
|
11302 | var ChangePwvue_type_template_id_18ce79e0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.view.loading),expression:"view.loading"}],attrs:{"element-loading-text":"服务器受理中..."}},[_c('el-form',{ref:"pwForm",attrs:{"model":_vm.form,"rules":_vm.formRules,"label-position":"top","show-message":false,"status-icon":""}},[_c('el-form-item',{attrs:{"label":"原密码","prop":"oldpasswd"}},[_c('el-input',{attrs:{"type":"password"},model:{value:(_vm.form.oldpasswd),callback:function ($$v) {_vm.$set(_vm.form, "oldpasswd", $$v)},expression:"form.oldpasswd"}})],1),_c('el-form-item',{attrs:{"label":"新密码","prop":"passwd"}},[_c('el-input',{attrs:{"type":"password"},model:{value:(_vm.form.passwd),callback:function ($$v) {_vm.$set(_vm.form, "passwd", $$v)},expression:"form.passwd"}})],1),_c('el-form-item',{attrs:{"label":"确认密码","prop":"repasswd"}},[_c('el-input',{attrs:{"type":"password"},model:{value:(_vm.form.repasswd),callback:function ($$v) {_vm.$set(_vm.form, "repasswd", $$v)},expression:"form.repasswd"}})],1)],1),_c('el-row',[_c('el-col',{staticStyle:{"text-align":"center","margin-bottom":"10px"},attrs:{"span":24}},[_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.submit}},[_vm._v("确认修改")]),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.cancel}},[_vm._v("取消修改")])],1)],1)],1)}
|
11303 | var ChangePwvue_type_template_id_18ce79e0_staticRenderFns = []
|
11304 |
|
11305 |
|
11306 |
|
11307 |
|
11308 |
|
11309 | var es7_object_get_own_property_descriptors_ = __webpack_require__("12d2");
|
11310 |
|
11311 |
|
11312 | var es6_object_keys_ = __webpack_require__("6e74");
|
11313 |
|
11314 |
|
11315 | function _defineProperty(obj, key, value) {
|
11316 | if (key in obj) {
|
11317 | Object.defineProperty(obj, key, {
|
11318 | value: value,
|
11319 | enumerable: true,
|
11320 | configurable: true,
|
11321 | writable: true
|
11322 | });
|
11323 | } else {
|
11324 | obj[key] = value;
|
11325 | }
|
11326 |
|
11327 | return obj;
|
11328 | }
|
11329 |
|
11330 | var AcesAPI = __webpack_require__("6513");
|
11331 |
|
11332 |
|
11333 |
|
11334 |
|
11335 |
|
11336 |
|
11337 |
|
11338 |
|
11339 |
|
11340 | function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
11341 |
|
11342 | function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
11343 |
|
11344 |
|
11345 |
|
11346 |
|
11347 |
|
11348 |
|
11349 |
|
11350 |
|
11351 |
|
11352 |
|
11353 |
|
11354 |
|
11355 |
|
11356 |
|
11357 |
|
11358 |
|
11359 |
|
11360 |
|
11361 |
|
11362 |
|
11363 |
|
11364 |
|
11365 |
|
11366 |
|
11367 | var ChangePwvue_type_script_lang_js_ = ({
|
11368 | data: function data() {
|
11369 | var _this = this;
|
11370 |
|
11371 | var validateNewpass = function validateNewpass(rule, value, callback) {
|
11372 | if (!value) {
|
11373 | callback(new Error("请输入新密码"));
|
11374 | } else {
|
11375 | if (value.length < 6) {
|
11376 | callback(new Error("密码长度至少6位"));
|
11377 | }
|
11378 |
|
11379 | if (_this.form.repasswd !== "") {
|
11380 | _this.$refs.pwForm.validateField("repasswd");
|
11381 | }
|
11382 |
|
11383 | callback();
|
11384 | }
|
11385 | };
|
11386 |
|
11387 | var validateReNewpass = function validateReNewpass(rule, value, callback) {
|
11388 | if (!value) {
|
11389 | callback(new Error("请再次输入密码"));
|
11390 | } else if (value !== _this.form.passwd) {
|
11391 | callback(new Error("两次输入密码不一致!"));
|
11392 | } else {
|
11393 | callback();
|
11394 | }
|
11395 | };
|
11396 |
|
11397 | return {
|
11398 | form: {
|
11399 | oldpasswd: "",
|
11400 | passwd: "",
|
11401 | repasswd: ""
|
11402 | },
|
11403 | view: {
|
11404 | loading: false
|
11405 | },
|
11406 | formRules: {
|
11407 | oldpasswd: [{
|
11408 | required: true,
|
11409 | min: 6
|
11410 | }],
|
11411 | passwd: [{
|
11412 | required: true,
|
11413 | validator: validateNewpass
|
11414 | }],
|
11415 | repasswd: [{
|
11416 | required: true,
|
11417 | validator: validateReNewpass
|
11418 | }]
|
11419 | }
|
11420 | };
|
11421 | },
|
11422 | computed: _objectSpread({}, Object(external_vuex_["mapGetters"])(["sysLogin"])),
|
11423 | methods: {
|
11424 | submit: function submit() {
|
11425 | var _this2 = this;
|
11426 |
|
11427 | this.$refs.pwForm.validate(function (validate) {
|
11428 | if (validate) {
|
11429 | _this2.view.loading = true;
|
11430 | AcesAPI["a" ].changePwd(_this2.form.oldpasswd, _this2.form.passwd).then(function (data) {
|
11431 | _this2.view.loading = false;
|
11432 | AcesAPI["a" ].logout().then(function () {
|
11433 | _this2.$router.replace("/login");
|
11434 | });
|
11435 | }).catch(function () {
|
11436 | _this2.view.loading = false;
|
11437 | });
|
11438 | }
|
11439 | });
|
11440 | },
|
11441 | cancel: function cancel() {
|
11442 | this.$emit("cancel");
|
11443 | }
|
11444 | }
|
11445 | });
|
11446 |
|
11447 | var sysm_ChangePwvue_type_script_lang_js_ = (ChangePwvue_type_script_lang_js_);
|
11448 |
|
11449 |
|
11450 |
|
11451 |
|
11452 |
|
11453 |
|
11454 |
|
11455 |
|
11456 | var ChangePw_component = Object(componentNormalizer["a" ])(
|
11457 | sysm_ChangePwvue_type_script_lang_js_,
|
11458 | ChangePwvue_type_template_id_18ce79e0_render,
|
11459 | ChangePwvue_type_template_id_18ce79e0_staticRenderFns,
|
11460 | false,
|
11461 | null,
|
11462 | null,
|
11463 | null
|
11464 |
|
11465 | )
|
11466 |
|
11467 | var ChangePw = (ChangePw_component.exports);
|
11468 |
|
11469 | var Containervue_type_template_id_3bfaa29d_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-container',{attrs:{"id":"app-container","direction":"vertical"}},[_c('el-tabs',{staticClass:"hidcon",attrs:{"type":"card"},on:{"tab-remove":function($event){return _vm.$tabView.removeView($event)}},model:{value:(_vm.$tabView.active),callback:function ($$v) {_vm.$set(_vm.$tabView, "active", $$v)},expression:"$tabView.active"}},_vm._l((_vm.$tabView.viewList),function(item){return _c('el-tab-pane',{key:item.name,staticClass:"app-main",attrs:{"label":item.name,"name":item.name,"closable":item.path!=="/"}},[_c('tab-view',{attrs:{"path":item.path,"props-data":item.propsData}})],1)}),1),_c('el-dropdown',{attrs:{"size":"mini","trigger":"click"}},[_c('el-button',[_c('i',{staticClass:"el-icon-arrow-down"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.$tabView.removeOther()}}},[_vm._v("关闭其它")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.$tabView.removeBefore()}}},[_vm._v("关闭左侧")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.$tabView.removeAfter()}}},[_vm._v("关闭右侧")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.$tabView.removeAll()}}},[_vm._v("关闭全部")])],1)],1)],1)}
|
11470 | var Containervue_type_template_id_3bfaa29d_staticRenderFns = []
|
11471 |
|
11472 |
|
11473 |
|
11474 |
|
11475 |
|
11476 |
|
11477 |
|
11478 |
|
11479 |
|
11480 |
|
11481 |
|
11482 |
|
11483 |
|
11484 |
|
11485 |
|
11486 |
|
11487 |
|
11488 |
|
11489 |
|
11490 |
|
11491 |
|
11492 |
|
11493 |
|
11494 |
|
11495 |
|
11496 |
|
11497 |
|
11498 |
|
11499 |
|
11500 |
|
11501 | var Containervue_type_script_lang_js_ = ({
|
11502 | name: "Container",
|
11503 | componentName: "Container",
|
11504 | components: {},
|
11505 | data: function data() {
|
11506 | return {};
|
11507 | },
|
11508 | methods: {
|
11509 | formatQueryCode: function formatQueryCode(code) {
|
11510 | var title;
|
11511 | this.$store.state.base.queryDesign.forEach(function (value, index) {
|
11512 | if (value.queryname === code) title = value.querytitle;
|
11513 | });
|
11514 | return title;
|
11515 | }
|
11516 | }
|
11517 | });
|
11518 |
|
11519 | var layout_Containervue_type_script_lang_js_ = (Containervue_type_script_lang_js_);
|
11520 |
|
11521 | var Containervue_type_style_index_0_lang_css_ = __webpack_require__("a73e");
|
11522 |
|
11523 |
|
11524 |
|
11525 |
|
11526 |
|
11527 |
|
11528 |
|
11529 |
|
11530 |
|
11531 |
|
11532 | var Container_component = Object(componentNormalizer["a" ])(
|
11533 | layout_Containervue_type_script_lang_js_,
|
11534 | Containervue_type_template_id_3bfaa29d_render,
|
11535 | Containervue_type_template_id_3bfaa29d_staticRenderFns,
|
11536 | false,
|
11537 | null,
|
11538 | null,
|
11539 | null
|
11540 |
|
11541 | )
|
11542 |
|
11543 | var Container = (Container_component.exports);
|
11544 |
|
11545 | var Asidevue_type_template_id_11208b93_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"position":"relative"}},[_c('el-scrollbar',[_c('el-aside',{staticClass:"app-aside",attrs:{"width":_vm.asideCollapsed?'auto':'240px'}},[_c('el-menu',{attrs:{"collapse-transition":false,"collapse":_vm.asideCollapsed,"default-active":_vm.$route.path,"unique-opened":""}},[_vm._l((_vm.$store.state.base.sysMenus),function(item,index1){return _c('el-submenu',{key:item.uuid,attrs:{"index":index1+''}},[_c('template',{slot:"title"},[_c('i',{class:'el-icon-fa-'+item.iconUrl}),_c('span',[_vm._v(_vm._s(item.name))])]),_vm._l((item.children),function(child,index2){return _c('el-menu-item',{key:child.permCode,attrs:{"index":index1+'-'+index2},nativeOn:{"click":function($event){return _vm.selectMenu(child)}}},[_c('i',{class:'el-icon-fa-'+child.iconUrl}),_c('span',[_vm._v(_vm._s(child.name))])])})],2)})],2)],1)],1),_c('p',{staticClass:"version_btn"},[_c('el-button',{attrs:{"slot":"reference","size":"small","icon":"el-icon-more"},on:{"click":function($event){_vm.asideCollapsed=!_vm.asideCollapsed}},slot:"reference"})],1),(!_vm.asideCollapsed)?_c('div',{staticClass:"copyright"},[_vm._v(_vm._s(_vm.companyInfo))]):_vm._e()],1)}
|
11546 | var Asidevue_type_template_id_11208b93_staticRenderFns = []
|
11547 |
|
11548 |
|
11549 |
|
11550 |
|
11551 |
|
11552 | var es6_function_name_ = __webpack_require__("25fc");
|
11553 |
|
11554 |
|
11555 | var base_config = __webpack_require__("c45e");
|
11556 |
|
11557 |
|
11558 |
|
11559 |
|
11560 |
|
11561 |
|
11562 |
|
11563 |
|
11564 |
|
11565 |
|
11566 |
|
11567 |
|
11568 |
|
11569 |
|
11570 |
|
11571 |
|
11572 |
|
11573 |
|
11574 |
|
11575 |
|
11576 |
|
11577 |
|
11578 |
|
11579 |
|
11580 |
|
11581 |
|
11582 |
|
11583 |
|
11584 |
|
11585 |
|
11586 |
|
11587 | var Asidevue_type_script_lang_js_ = ({
|
11588 | data: function data() {
|
11589 | return {
|
11590 | companyInfo: base_config["a" ].companyInfo,
|
11591 | asideCollapsed: false
|
11592 | };
|
11593 | },
|
11594 | mounted: function mounted() {},
|
11595 | methods: {
|
11596 | selectMenu: function selectMenu(_ref) {
|
11597 | var name = _ref.name,
|
11598 | funcUrl = _ref.funcUrl;
|
11599 | this.$tabView.addView(name, funcUrl);
|
11600 | }
|
11601 | }
|
11602 | });
|
11603 |
|
11604 | var layout_Asidevue_type_script_lang_js_ = (Asidevue_type_script_lang_js_);
|
11605 |
|
11606 |
|
11607 |
|
11608 |
|
11609 |
|
11610 |
|
11611 |
|
11612 |
|
11613 | var Aside_component = Object(componentNormalizer["a" ])(
|
11614 | layout_Asidevue_type_script_lang_js_,
|
11615 | Asidevue_type_template_id_11208b93_render,
|
11616 | Asidevue_type_template_id_11208b93_staticRenderFns,
|
11617 | false,
|
11618 | null,
|
11619 | null,
|
11620 | null
|
11621 |
|
11622 | )
|
11623 |
|
11624 | var Aside = (Aside_component.exports);
|
11625 |
|
11626 | var Headervue_type_template_id_9e58c908_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-header',{staticClass:"app-top"},[_c('div',{staticClass:"logo"},[(_vm.logo)?_c('img',{attrs:{"src":_vm.logo}}):_c('h1',[_vm._v(_vm._s(_vm.title))])]),_c('div',{staticStyle:{"float":"right"}},[_c('el-select',{staticClass:"select-lang",staticStyle:{"width":"100px"},attrs:{"placeholder":"请选择"},on:{"change":_vm.changeLang},model:{value:(_vm.$store.state.base.lang),callback:function ($$v) {_vm.$set(_vm.$store.state.base, "lang", $$v)},expression:"$store.state.base.lang"}},_vm._l((_vm.langs),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.label,"value":item.value}})}),1),_c('el-dropdown',{attrs:{"trigger":"click","size":"small"}},[_c('span',{staticClass:"el-dropdown-link userinfo-inner"},[_c('el-button',{attrs:{"type":"text","icon":"el-icon-fa-user"}},[_vm._v(_vm._s(_vm.$store.state.base.sysUser.userId))])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){_vm.$store.state.base.loginChangePwd=true}}},[_vm._v("修改密码")]),_c('el-dropdown-item',{attrs:{"divided":""},nativeOn:{"click":function($event){return _vm.logout($event)}}},[_vm._v("退出登录")])],1)],1),_c('el-button',{staticClass:"margin-right-4 margin-left-2",attrs:{"type":"text","icon":_vm.fullScreenModel?'alibaba al-iconzuixiaohua':'alibaba al-zuidahua1',"title":_vm.fullScreenModel?'退出全屏模式':'进入全屏模式'},on:{"click":_vm.cfullScreenModel}})],1),_c(_vm.embedHeader,{tag:"component"})],1)}
|
11627 | var Headervue_type_template_id_9e58c908_staticRenderFns = []
|
11628 |
|
11629 |
|
11630 |
|
11631 |
|
11632 |
|
11633 | var locale_locale = ({
|
11634 | "zh-CN": {
|
11635 | title: "中文",
|
11636 | serverError: {
|
11637 | "000100": "用户会话超时!",
|
11638 | "000200": "安全服务错误!",
|
11639 | "000300": "校验服务错误!",
|
11640 | "000400": "系统后台错误!",
|
11641 | "000500": "网络服务错误!"
|
11642 | },
|
11643 | httpError: {
|
11644 | title: "请求服务器失败",
|
11645 | "404": "服务器无法找到资源!",
|
11646 | "406": "请求格式无效!",
|
11647 | "400": "服务器拒绝了您的请求!",
|
11648 | "500": "服务器有一个错误!",
|
11649 | "504": "服务器请求超时!"
|
11650 | },
|
11651 | ui: {
|
11652 | sysCode: {
|
11653 | noCode: ""
|
11654 | }
|
11655 | },
|
11656 | common: {
|
11657 | serverReceiving: "服务器受理中...",
|
11658 | tableLoading: "数据加载中..."
|
11659 | },
|
11660 | router: {
|
11661 | Home: "主页",
|
11662 | Setting: "设置",
|
11663 | Query: "查询",
|
11664 | UserMgr: "用户管理",
|
11665 | RoleMgr: "角色管理",
|
11666 | OrgMgr: "组织管理",
|
11667 | PermMgr: "功能权限",
|
11668 | CodeMgr: "字典管理",
|
11669 | ParaMgr: "参数管理",
|
11670 | QueryMgr: "查询设计",
|
11671 | Business: "业务管理",
|
11672 | Maintenance: "维护",
|
11673 | LogsOper: "交互日志",
|
11674 | LogsServ: "服务日志",
|
11675 | LogsSign: "登录日志"
|
11676 | }
|
11677 | },
|
11678 | en: {
|
11679 | title: "English",
|
11680 | httpError: {
|
11681 | title: "request server failed",
|
11682 | "404": "server cannot find resource ",
|
11683 | "406": "the request format is invalid.",
|
11684 | "400": "the server has rejected your request ! ",
|
11685 | "500": "the server has an error !",
|
11686 | "504": "the server request time out !"
|
11687 | },
|
11688 | common: {
|
11689 | serverReceiving: "server processing...",
|
11690 | tableLoading: "data loading..."
|
11691 | },
|
11692 | router: {
|
11693 | Home: "Home",
|
11694 | Setting: "Setting",
|
11695 | Query: "Query",
|
11696 | UserMgr: "User Mgr",
|
11697 | RoleMgr: "Role Mgr",
|
11698 | OrgMgr: "Org Mgr",
|
11699 | PermMgr: "Perm Mgr",
|
11700 | CodeMgr: "Code Mgr",
|
11701 | ParaMgr: "Para Mgr",
|
11702 | QueryMgr: "Query Mgr",
|
11703 | LogsOper: "Logs Oper",
|
11704 | LogsServ: "Logs Serv",
|
11705 | LogsSign: "Logs Sign"
|
11706 | }
|
11707 | }
|
11708 | });
|
11709 |
|
11710 |
|
11711 |
|
11712 |
|
11713 |
|
11714 |
|
11715 |
|
11716 |
|
11717 |
|
11718 |
|
11719 |
|
11720 |
|
11721 |
|
11722 |
|
11723 |
|
11724 |
|
11725 |
|
11726 |
|
11727 |
|
11728 |
|
11729 |
|
11730 |
|
11731 |
|
11732 |
|
11733 |
|
11734 |
|
11735 |
|
11736 |
|
11737 |
|
11738 |
|
11739 |
|
11740 |
|
11741 |
|
11742 |
|
11743 |
|
11744 |
|
11745 |
|
11746 | var Headervue_type_script_lang_js_ = ({
|
11747 | components: {},
|
11748 | data: function data() {
|
11749 | return {
|
11750 | fullScreenModel: false,
|
11751 | openCompanyInfo: false,
|
11752 | title: base_config["a" ].title,
|
11753 | logo: base_config["a" ].logo,
|
11754 | embedHeader: base_config["a" ].embedHeader
|
11755 | };
|
11756 | },
|
11757 | computed: {
|
11758 | langs: function langs() {
|
11759 | return Object.keys(locale_locale).map(function (localeName, locale) {
|
11760 | return {
|
11761 | label: locale_locale[localeName]["title"],
|
11762 | value: localeName
|
11763 | };
|
11764 | });
|
11765 | }
|
11766 | },
|
11767 | watch: {
|
11768 | "$store.state.base.lang": function $storeStateBaseLang(lang) {
|
11769 | external_vue_default.a.config.lang = lang;
|
11770 | external_moment_default.a.locale(lang);
|
11771 | }
|
11772 | },
|
11773 | mounted: function mounted() {
|
11774 | var lang = window.localStorage.getItem("lang") || external_vue_default.a.config.lang;
|
11775 | this.$store.commit("base/updateState", {
|
11776 | lang: lang
|
11777 | });
|
11778 |
|
11779 | this.syncWindowFull();
|
11780 | },
|
11781 | methods: {
|
11782 | openSettingView: function openSettingView() {
|
11783 | this.$store.dispatch("base/addTabPagesName", {
|
11784 | name: "设置",
|
11785 | path: "/usrm/setting"
|
11786 | });
|
11787 | },
|
11788 | handleOpenTab: function handleOpenTab(tabName, tabLabel, tabUrl) {
|
11789 | this.$store.dispatch("base/openTab", {
|
11790 | tabName: tabName,
|
11791 | tabLabel: tabLabel,
|
11792 | tabUrl: tabUrl
|
11793 | });
|
11794 | },
|
11795 | changeLang: function changeLang(lang) {
|
11796 | window.localStorage.setItem("lang", lang);
|
11797 | this.$store.commit("base/updateState", {
|
11798 | lang: lang
|
11799 | });
|
11800 | },
|
11801 | logout: function logout() {
|
11802 | var _this = this;
|
11803 |
|
11804 | this.$confirm("确认退出吗?", "提示", {
|
11805 | type: "warning"
|
11806 | }).then(function () {
|
11807 | AcesAPI["a" ].logout().then(function () {
|
11808 | _this.$router.push({
|
11809 | path: "/login"
|
11810 | });
|
11811 | });
|
11812 | });
|
11813 | },
|
11814 |
|
11815 | cfullScreenModel: function cfullScreenModel() {
|
11816 | if (this.fullScreenModel) {
|
11817 | if (document.exitFullscreen) {
|
11818 | document.exitFullscreen();
|
11819 | } else if (document.mozCancelFullScreen) {
|
11820 |
|
11821 | document.mozCancelFullScreen();
|
11822 | } else if (document.webkitCancelFullScreen) {
|
11823 |
|
11824 | document.webkitCancelFullScreen();
|
11825 | } else if (document.msExitFullscreen) {
|
11826 |
|
11827 | document.msExitFullscreen();
|
11828 | }
|
11829 | } else {
|
11830 | var docElm = document.documentElement;
|
11831 |
|
11832 | if (docElm.requestFullscreen) {
|
11833 | docElm.requestFullscreen();
|
11834 | } else if (docElm.mozRequestFullScreen) {
|
11835 |
|
11836 | docElm.mozRequestFullScreen();
|
11837 | } else if (docElm.webkitRequestFullScreen) {
|
11838 |
|
11839 | docElm.webkitRequestFullScreen();
|
11840 | } else if (docElm.msRequestFullscreen) {
|
11841 |
|
11842 | docElm.msRequestFullscreen();
|
11843 | }
|
11844 | }
|
11845 |
|
11846 | this.fullScreenModel = !this.fullScreenModel;
|
11847 | },
|
11848 |
|
11849 | syncWindowFull: function syncWindowFull() {
|
11850 | var _this2 = this;
|
11851 |
|
11852 | document.addEventListener("fullscreenchange", function () {
|
11853 | _this2.fullScreenModel = !!(document.fullscreenEnabled || window.fullScreen || document.webkitIsFullScreen || document.msFullscreenEnabled);
|
11854 | });
|
11855 | document.addEventListener("webkitfullscreenchange", function () {
|
11856 | _this2.fullScreenModel = !!(document.fullscreenEnabled || window.fullScreen || document.webkitIsFullScreen || document.msFullscreenEnabled);
|
11857 | });
|
11858 | document.addEventListener("mozfullscreenchange", function () {
|
11859 | _this2.fullScreenModel = !!(document.fullscreenEnabled || window.fullScreen || document.webkitIsFullScreen || document.msFullscreenEnabled);
|
11860 | });
|
11861 | document.addEventListener("MSFullscreenChange", function () {
|
11862 | _this2.fullScreenModel = !!(document.fullscreenEnabled || window.fullScreen || document.webkitIsFullScreen || document.msFullscreenEnabled);
|
11863 | });
|
11864 | }
|
11865 | }
|
11866 | });
|
11867 |
|
11868 | var layout_Headervue_type_script_lang_js_ = (Headervue_type_script_lang_js_);
|
11869 |
|
11870 |
|
11871 |
|
11872 |
|
11873 |
|
11874 |
|
11875 |
|
11876 |
|
11877 | var Header_component = Object(componentNormalizer["a" ])(
|
11878 | layout_Headervue_type_script_lang_js_,
|
11879 | Headervue_type_template_id_9e58c908_render,
|
11880 | Headervue_type_template_id_9e58c908_staticRenderFns,
|
11881 | false,
|
11882 | null,
|
11883 | null,
|
11884 | null
|
11885 |
|
11886 | )
|
11887 |
|
11888 | var Header = (Header_component.exports);
|
11889 |
|
11890 | var es6_string_starts_with_ = __webpack_require__("b0e1");
|
11891 |
|
11892 |
|
11893 | var CacheStores = __webpack_require__("9bbb");
|
11894 |
|
11895 |
|
11896 |
|
11897 |
|
11898 |
|
11899 |
|
11900 |
|
11901 |
|
11902 |
|
11903 | function CacheService_notify() {
|
11904 | external_element_ui_["Notification"].success({
|
11905 | title: "成功",
|
11906 | message: "系统字典已经更新."
|
11907 | });
|
11908 | }
|
11909 |
|
11910 | var CacheService = ({
|
11911 |
|
11912 | OBSERVER_TOPIC_CACHE_CODE: function () {
|
11913 | var _OBSERVER_TOPIC_CACHE_CODE = Object(asyncToGenerator["a" ])(
|
11914 |
|
11915 | regeneratorRuntime.mark(function _callee(data) {
|
11916 | return regeneratorRuntime.wrap(function _callee$(_context) {
|
11917 | while (1) {
|
11918 | switch (_context.prev = _context.next) {
|
11919 | case 0:
|
11920 | _context.next = 2;
|
11921 | return base_store["a" ].dispatch("base/refreshSysCode", data.message.codetype);
|
11922 |
|
11923 | case 2:
|
11924 | CacheService_notify();
|
11925 |
|
11926 | case 3:
|
11927 | case "end":
|
11928 | return _context.stop();
|
11929 | }
|
11930 | }
|
11931 | }, _callee);
|
11932 | }));
|
11933 |
|
11934 | function OBSERVER_TOPIC_CACHE_CODE(_x) {
|
11935 | return _OBSERVER_TOPIC_CACHE_CODE.apply(this, arguments);
|
11936 | }
|
11937 |
|
11938 | return OBSERVER_TOPIC_CACHE_CODE;
|
11939 | }(),
|
11940 |
|
11941 | OBSERVER_TOPIC_CACHE_TREE: function () {
|
11942 | var _OBSERVER_TOPIC_CACHE_TREE = Object(asyncToGenerator["a" ])(
|
11943 |
|
11944 | regeneratorRuntime.mark(function _callee2(data) {
|
11945 | return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
11946 | while (1) {
|
11947 | switch (_context2.prev = _context2.next) {
|
11948 | case 0:
|
11949 | _context2.next = 2;
|
11950 | return CacheStores["a" ].codeTreeStore.iterate(function (value, key, iterationNumber) {
|
11951 | if (key.startsWith(data.message.treetype)) {
|
11952 | CacheStores["a" ].codeTreeStore.removeItem(key);
|
11953 | }
|
11954 | });
|
11955 |
|
11956 | case 2:
|
11957 | CacheStores["a" ].codeTreeStore.setItem("VERSION", data.message.version);
|
11958 | CacheService_notify();
|
11959 |
|
11960 | case 4:
|
11961 | case "end":
|
11962 | return _context2.stop();
|
11963 | }
|
11964 | }
|
11965 | }, _callee2);
|
11966 | }));
|
11967 |
|
11968 | function OBSERVER_TOPIC_CACHE_TREE(_x2) {
|
11969 | return _OBSERVER_TOPIC_CACHE_TREE.apply(this, arguments);
|
11970 | }
|
11971 |
|
11972 | return OBSERVER_TOPIC_CACHE_TREE;
|
11973 | }(),
|
11974 |
|
11975 | |
11976 |
|
11977 |
|
11978 |
|
11979 |
|
11980 | repairWith: function () {
|
11981 | var _repairWith = Object(asyncToGenerator["a" ])(
|
11982 |
|
11983 | regeneratorRuntime.mark(function _callee3(tocpic, version) {
|
11984 | var data, _data;
|
11985 |
|
11986 | return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
11987 | while (1) {
|
11988 | switch (_context3.prev = _context3.next) {
|
11989 | case 0:
|
11990 | if (version) {
|
11991 | _context3.next = 2;
|
11992 | break;
|
11993 | }
|
11994 |
|
11995 | return _context3.abrupt("return");
|
11996 |
|
11997 | case 2:
|
11998 | if (tocpic) {
|
11999 | _context3.next = 4;
|
12000 | break;
|
12001 | }
|
12002 |
|
12003 | return _context3.abrupt("return");
|
12004 |
|
12005 | case 4:
|
12006 | if (!(tocpic === "OBSERVER_TOPIC_CACHE_TREE")) {
|
12007 | _context3.next = 10;
|
12008 | break;
|
12009 | }
|
12010 |
|
12011 | _context3.next = 7;
|
12012 | return CacheStores["a" ].codeTreeStore.getItem("VERSION");
|
12013 |
|
12014 | case 7:
|
12015 | data = _context3.sent;
|
12016 |
|
12017 | if (data !== version) {
|
12018 | CacheStores["a" ].codeTreeStore.iterate(function (value, key, iterationNumber) {
|
12019 | CacheStores["a" ].codeTreeStore.removeItem(key);
|
12020 | });
|
12021 | }
|
12022 |
|
12023 | CacheStores["a" ].codeTreeStore.setItem("VERSION", version);
|
12024 |
|
12025 | case 10:
|
12026 | if (!(tocpic === "OBSERVER_TOPIC_CACHE_CODE")) {
|
12027 | _context3.next = 16;
|
12028 | break;
|
12029 | }
|
12030 |
|
12031 | _context3.next = 13;
|
12032 | return CacheStores["a" ].codeListStore.getItem("VERSION");
|
12033 |
|
12034 | case 13:
|
12035 | _data = _context3.sent;
|
12036 |
|
12037 | if (_data !== version) {
|
12038 | CacheStores["a" ].codeListStore.iterate(function (value, key, iterationNumber) {
|
12039 | CacheStores["a" ].codeListStore.removeItem(key);
|
12040 | });
|
12041 | }
|
12042 |
|
12043 | CacheStores["a" ].codeListStore.setItem("VERSION", version);
|
12044 |
|
12045 | case 16:
|
12046 | case "end":
|
12047 | return _context3.stop();
|
12048 | }
|
12049 | }
|
12050 | }, _callee3);
|
12051 | }));
|
12052 |
|
12053 | function repairWith(_x3, _x4) {
|
12054 | return _repairWith.apply(this, arguments);
|
12055 | }
|
12056 |
|
12057 | return repairWith;
|
12058 | }()
|
12059 | });
|
12060 |
|
12061 |
|
12062 |
|
12063 |
|
12064 |
|
12065 |
|
12066 |
|
12067 |
|
12068 |
|
12069 |
|
12070 |
|
12071 |
|
12072 |
|
12073 |
|
12074 |
|
12075 |
|
12076 |
|
12077 |
|
12078 |
|
12079 |
|
12080 |
|
12081 |
|
12082 |
|
12083 |
|
12084 |
|
12085 |
|
12086 |
|
12087 |
|
12088 |
|
12089 | var Homevue_type_script_lang_js_ = ({
|
12090 | components: {
|
12091 | Container: Container,
|
12092 | Aside: Aside,
|
12093 | Header: Header,
|
12094 | ChangePw: ChangePw
|
12095 | },
|
12096 | data: function data() {
|
12097 | return {
|
12098 | changepwd: false
|
12099 | };
|
12100 | },
|
12101 | mounted: function () {
|
12102 | var _mounted = Object(asyncToGenerator["a" ])(
|
12103 |
|
12104 | regeneratorRuntime.mark(function _callee() {
|
12105 | var loading, data;
|
12106 | return regeneratorRuntime.wrap(function _callee$(_context) {
|
12107 | while (1) {
|
12108 | switch (_context.prev = _context.next) {
|
12109 | case 0:
|
12110 | loading = external_element_ui_["Loading"].service({
|
12111 | lock: true,
|
12112 | text: "系统初始化...",
|
12113 | spinner: "el-icon-loading",
|
12114 | background: "rgba(0, 0, 0, 0.7)"
|
12115 | });
|
12116 | _context.prev = 1;
|
12117 | _context.next = 4;
|
12118 | return this.$store.dispatch("base/getLoginInfo");
|
12119 |
|
12120 | case 4:
|
12121 | data = _context.sent;
|
12122 |
|
12123 | if (base_config["a" ].needLogin && data.respCode === base_config["a" ].respCode.timeout) {
|
12124 | this.$router.replace("/login");
|
12125 | }
|
12126 |
|
12127 | CacheService.repairWith(data.ttocpic, data.tversion);
|
12128 | CacheService.repairWith(data.ctocpic, data.cversion);
|
12129 |
|
12130 | if (base_config["a" ].init) {
|
12131 | base_config["a" ].init(this);
|
12132 | delete base_config["a" ]["init"];
|
12133 | }
|
12134 |
|
12135 | case 9:
|
12136 | _context.prev = 9;
|
12137 | loading.close();
|
12138 | return _context.finish(9);
|
12139 |
|
12140 | case 12:
|
12141 | case "end":
|
12142 | return _context.stop();
|
12143 | }
|
12144 | }
|
12145 | }, _callee, this, [[1,, 9, 12]]);
|
12146 | }));
|
12147 |
|
12148 | function mounted() {
|
12149 | return _mounted.apply(this, arguments);
|
12150 | }
|
12151 |
|
12152 | return mounted;
|
12153 | }()
|
12154 | });
|
12155 |
|
12156 | var views_Homevue_type_script_lang_js_ = (Homevue_type_script_lang_js_);
|
12157 |
|
12158 |
|
12159 |
|
12160 |
|
12161 |
|
12162 |
|
12163 |
|
12164 |
|
12165 | var Home_component = Object(componentNormalizer["a" ])(
|
12166 | views_Homevue_type_script_lang_js_,
|
12167 | Homevue_type_template_id_7c64e364_render,
|
12168 | Homevue_type_template_id_7c64e364_staticRenderFns,
|
12169 | false,
|
12170 | null,
|
12171 | null,
|
12172 | null
|
12173 |
|
12174 | )
|
12175 |
|
12176 | var Home = (Home_component.exports);
|
12177 |
|
12178 | var Loginvue_type_template_id_06185d74_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"login"},[_c('div',{staticClass:"login-bg animated fast login-in",staticStyle:{"background-image":"url('./img/login_bg.jpg')"}}),_c('div',{staticClass:"login-con animated fadeIn"},[_c('el-form',{ref:"loginForm",staticClass:"login-form",attrs:{"model":_vm.loginForm,"rules":_vm.rules}},[_c('h1',[_c('i',{staticClass:"el-icon-fa el-icon-fa-sign-in"}),_vm._v(" 欢迎登陆")]),_c('div',{staticClass:"input-con"},[_c('el-form-item',{attrs:{"prop":"userid"}},[_c('el-input',{attrs:{"type":"text","placeholder":"账号","size":"large"},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.handleSubmit($event)}},model:{value:(_vm.loginForm.userid),callback:function ($$v) {_vm.$set(_vm.loginForm, "userid", $$v)},expression:"loginForm.userid"}},[_c('i',{staticClass:"el-icon-fa el-icon-fa-user",attrs:{"slot":"prepend"},slot:"prepend"})])],1),_c('el-form-item',{attrs:{"prop":"passwd"}},[_c('el-input',{attrs:{"type":"password","placeholder":"密码","size":"large"},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.handleSubmit($event)}},model:{value:(_vm.loginForm.passwd),callback:function ($$v) {_vm.$set(_vm.loginForm, "passwd", $$v)},expression:"loginForm.passwd"}},[_c('i',{staticClass:"el-icon-fa el-icon-fa-lock",attrs:{"slot":"prepend"},slot:"prepend"})])],1),(_vm.needCaptcha)?_c('el-form-item',{attrs:{"prop":"captcha"}},[_c('el-input',{attrs:{"type":"text","placeholder":"验证码","size":"large","maxlength":"5"},model:{value:(_vm.loginForm.captcha),callback:function ($$v) {_vm.$set(_vm.loginForm, "captcha", $$v)},expression:"loginForm.captcha"}},[_c('img',{staticClass:"captcha",attrs:{"slot":"prepend","src":_vm.captchaUrl},on:{"click":_vm.changeCaptcha},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.handleSubmit($event)}},slot:"prepend"})])],1):_vm._e(),_c('el-button',{staticClass:"btnSubmit",attrs:{"type":"primary","loading":_vm.loading},nativeOn:{"click":function($event){$event.preventDefault();return _vm.handleSubmit($event)}}},[_vm._v("登录")])],1)])],1)])}
|
12179 | var Loginvue_type_template_id_06185d74_staticRenderFns = []
|
12180 |
|
12181 |
|
12182 |
|
12183 |
|
12184 |
|
12185 |
|
12186 |
|
12187 |
|
12188 |
|
12189 |
|
12190 |
|
12191 |
|
12192 |
|
12193 |
|
12194 |
|
12195 |
|
12196 |
|
12197 |
|
12198 |
|
12199 |
|
12200 |
|
12201 |
|
12202 |
|
12203 |
|
12204 |
|
12205 |
|
12206 |
|
12207 |
|
12208 |
|
12209 |
|
12210 |
|
12211 |
|
12212 |
|
12213 |
|
12214 |
|
12215 |
|
12216 |
|
12217 |
|
12218 |
|
12219 |
|
12220 |
|
12221 | var Loginvue_type_script_lang_js_ = ({
|
12222 | computed: {},
|
12223 | data: function data() {
|
12224 | return {
|
12225 | loading: false,
|
12226 | needCaptcha: false,
|
12227 | captchaUrl: "".concat(base_config["a" ].ajaxUrl, "/anon/captcha.jpg"),
|
12228 | loginForm: {
|
12229 | userid: "",
|
12230 | passwd: "",
|
12231 | captcha: ""
|
12232 | },
|
12233 | rules: {
|
12234 | userid: [{
|
12235 | required: true,
|
12236 | message: "请输入账号"
|
12237 | }],
|
12238 | passwd: [{
|
12239 | required: true,
|
12240 | message: "请输入密码"
|
12241 | }],
|
12242 | captcha: [{
|
12243 | required: true,
|
12244 | message: "验证码不能为空"
|
12245 | }]
|
12246 | }
|
12247 | };
|
12248 | },
|
12249 | mounted: function () {
|
12250 | var _mounted = Object(asyncToGenerator["a" ])(
|
12251 |
|
12252 | regeneratorRuntime.mark(function _callee() {
|
12253 | return regeneratorRuntime.wrap(function _callee$(_context) {
|
12254 | while (1) {
|
12255 | switch (_context.prev = _context.next) {
|
12256 | case 0:
|
12257 |
|
12258 | this.needCaptcha = window.localStorage.getItem("login-captcha") === "true";
|
12259 |
|
12260 | case 1:
|
12261 | case "end":
|
12262 | return _context.stop();
|
12263 | }
|
12264 | }
|
12265 | }, _callee, this);
|
12266 | }));
|
12267 |
|
12268 | function mounted() {
|
12269 | return _mounted.apply(this, arguments);
|
12270 | }
|
12271 |
|
12272 | return mounted;
|
12273 | }(),
|
12274 | methods: {
|
12275 |
|
12276 | changeCaptcha: function changeCaptcha() {
|
12277 | this.captchaUrl = "".concat(base_config["a" ].ajaxUrl, "/anon/captcha.jpg?_dc=").concat(new Date().getTime());
|
12278 | },
|
12279 |
|
12280 | handleSubmit: function () {
|
12281 | var _handleSubmit = Object(asyncToGenerator["a" ])(
|
12282 |
|
12283 | regeneratorRuntime.mark(function _callee2() {
|
12284 | return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
12285 | while (1) {
|
12286 | switch (_context2.prev = _context2.next) {
|
12287 | case 0:
|
12288 | _context2.next = 2;
|
12289 | return this.$refs.loginForm.validate();
|
12290 |
|
12291 | case 2:
|
12292 | this.loading = true;
|
12293 | _context2.prev = 3;
|
12294 | _context2.next = 6;
|
12295 | return AcesAPI["a" ].logck(this.loginForm.userid);
|
12296 |
|
12297 | case 6:
|
12298 | _context2.next = 8;
|
12299 | return this.doLogin();
|
12300 |
|
12301 | case 8:
|
12302 | _context2.next = 13;
|
12303 | break;
|
12304 |
|
12305 | case 10:
|
12306 | _context2.prev = 10;
|
12307 | _context2.t0 = _context2["catch"](3);
|
12308 |
|
12309 | if (_context2.t0.data.respCode === "020110") {
|
12310 | if (window.confirm(_context2.t0.data.respDesc)) {
|
12311 | this.doLogin();
|
12312 | }
|
12313 | }
|
12314 |
|
12315 | case 13:
|
12316 | _context2.prev = 13;
|
12317 | this.loading = false;
|
12318 | return _context2.finish(13);
|
12319 |
|
12320 | case 16:
|
12321 | case "end":
|
12322 | return _context2.stop();
|
12323 | }
|
12324 | }
|
12325 | }, _callee2, this, [[3, 10, 13, 16]]);
|
12326 | }));
|
12327 |
|
12328 | function handleSubmit() {
|
12329 | return _handleSubmit.apply(this, arguments);
|
12330 | }
|
12331 |
|
12332 | return handleSubmit;
|
12333 | }(),
|
12334 |
|
12335 | doLogin: function () {
|
12336 | var _doLogin = Object(asyncToGenerator["a" ])(
|
12337 |
|
12338 | regeneratorRuntime.mark(function _callee3(confirm) {
|
12339 | var data;
|
12340 | return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
12341 | while (1) {
|
12342 | switch (_context3.prev = _context3.next) {
|
12343 | case 0:
|
12344 | _context3.prev = 0;
|
12345 | _context3.next = 3;
|
12346 | return AcesAPI["a" ].login(this.loginForm).then();
|
12347 |
|
12348 | case 3:
|
12349 | data = _context3.sent;
|
12350 | window.localStorage.setItem(base_config["a" ].loginToken, true);
|
12351 | window.localStorage.removeItem("login-captcha");
|
12352 | this.$store.state.base.loginChangePwd = data.changepwd;
|
12353 | this.$router.push("/");
|
12354 | _context3.next = 15;
|
12355 | break;
|
12356 |
|
12357 | case 10:
|
12358 | _context3.prev = 10;
|
12359 | _context3.t0 = _context3["catch"](0);
|
12360 | this.needCaptcha = _context3.t0.data.captcha;
|
12361 | window.localStorage.setItem("login-captcha", this.needCaptcha);
|
12362 | this.changeCaptcha();
|
12363 |
|
12364 | case 15:
|
12365 | case "end":
|
12366 | return _context3.stop();
|
12367 | }
|
12368 | }
|
12369 | }, _callee3, this, [[0, 10]]);
|
12370 | }));
|
12371 |
|
12372 | function doLogin(_x) {
|
12373 | return _doLogin.apply(this, arguments);
|
12374 | }
|
12375 |
|
12376 | return doLogin;
|
12377 | }()
|
12378 | }
|
12379 | });
|
12380 |
|
12381 | var views_Loginvue_type_script_lang_js_ = (Loginvue_type_script_lang_js_);
|
12382 |
|
12383 | var Loginvue_type_style_index_0_lang_scss_ = __webpack_require__("feaa");
|
12384 |
|
12385 |
|
12386 |
|
12387 |
|
12388 |
|
12389 |
|
12390 |
|
12391 |
|
12392 |
|
12393 |
|
12394 | var Login_component = Object(componentNormalizer["a" ])(
|
12395 | views_Loginvue_type_script_lang_js_,
|
12396 | Loginvue_type_template_id_06185d74_render,
|
12397 | Loginvue_type_template_id_06185d74_staticRenderFns,
|
12398 | false,
|
12399 | null,
|
12400 | null,
|
12401 | null
|
12402 |
|
12403 | )
|
12404 |
|
12405 | var Login = (Login_component.exports);
|
12406 |
|
12407 |
|
12408 |
|
12409 |
|
12410 | var base_router = ([{
|
12411 | path: "/",
|
12412 | component: Home
|
12413 | }, {
|
12414 | path: "/home",
|
12415 | component: Home
|
12416 | }, {
|
12417 | path: "/login",
|
12418 | component: Login
|
12419 | }, {
|
12420 | path: "/404",
|
12421 | component: NotFound
|
12422 | }, {
|
12423 | path: "/*",
|
12424 | component: NotFound
|
12425 | }]);
|
12426 |
|
12427 |
|
12428 | var tab_base = {
|
12429 | "/": __webpack_require__("59aa")
|
12430 | };
|
12431 | var log = {
|
12432 | "/logs/LogsOper": __webpack_require__("80fa"),
|
12433 | "/logs/LogsServ": __webpack_require__("41c7"),
|
12434 | "/logs/LogsSign": __webpack_require__("515c"),
|
12435 | "/logs/LogsQuartz": __webpack_require__("486f")
|
12436 | };
|
12437 | var usrm = {
|
12438 | "/sysm/UserMgr": __webpack_require__("889f"),
|
12439 | "/sysm/RoleMgr": __webpack_require__("3b67"),
|
12440 | "/sysm/OrgMgr": __webpack_require__("49c6"),
|
12441 | "/sysm/PermMgr": __webpack_require__("59ec")
|
12442 | };
|
12443 | var sysm = {
|
12444 | "/sysm/CodeMgr": __webpack_require__("e1f2"),
|
12445 | "/sysm/ParaMgr": __webpack_require__("1dc4"),
|
12446 | "/sysm/QueryMgr": __webpack_require__("9d3e"),
|
12447 | "/sysm/TaskMgr": __webpack_require__("78bc"),
|
12448 | "/sysm/Notice": __webpack_require__("d6d5")
|
12449 | };
|
12450 | var tab = (Object.assign(tab_base, log, usrm, sysm));
|
12451 |
|
12452 | var es6_number_constructor_ = __webpack_require__("d036");
|
12453 |
|
12454 |
|
12455 |
|
12456 |
|
12457 |
|
12458 |
|
12459 |
|
12460 |
|
12461 |
|
12462 |
|
12463 |
|
12464 | function PageTable_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
12465 |
|
12466 | function PageTable_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { PageTable_ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { PageTable_ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
12467 |
|
12468 |
|
12469 |
|
12470 |
|
12471 |
|
12472 |
|
12473 | var defaultParams = {
|
12474 | total: 0,
|
12475 | pageNum: 1,
|
12476 | pageSize: 10,
|
12477 | orderField: null,
|
12478 | orderDirection: null
|
12479 | };
|
12480 | var plugin_PageTable = ({
|
12481 | name: "PageTable",
|
12482 | props: PageTable_objectSpread({}, external_element_ui_["Table"].props, {
|
12483 | data: {
|
12484 | type: Array,
|
12485 | default: function _default() {
|
12486 | return [];
|
12487 | }
|
12488 | },
|
12489 | title: {
|
12490 | type: String,
|
12491 | default: "数据查询列表"
|
12492 | },
|
12493 | hideTitle: {
|
12494 | type: Boolean,
|
12495 | default: false
|
12496 | },
|
12497 | load: {
|
12498 | type: Function,
|
12499 | default: function _default() {
|
12500 | this.doLoadData.apply(this, arguments);
|
12501 | }
|
12502 | },
|
12503 | hideExport: {
|
12504 | type: Boolean,
|
12505 | default: false
|
12506 | },
|
12507 | autoLoad: {
|
12508 | type: Boolean,
|
12509 | default: false
|
12510 | },
|
12511 | autoHeight: {
|
12512 | type: Boolean,
|
12513 | default: false
|
12514 | },
|
12515 | pageSize: {
|
12516 | type: Number,
|
12517 | default: 10
|
12518 | },
|
12519 | height: {
|
12520 | type: [Number, String]
|
12521 | },
|
12522 | rowKey: {
|
12523 | type: String,
|
12524 | default: "uuid"
|
12525 | },
|
12526 | pageLayout: {
|
12527 | type: String,
|
12528 | default: "total, sizes, prev, pager, next"
|
12529 | },
|
12530 |
|
12531 | showAutoUpdate: {
|
12532 | type: Boolean,
|
12533 | default: false
|
12534 | },
|
12535 |
|
12536 | interval: {
|
12537 | type: Number,
|
12538 | default: 5000
|
12539 | },
|
12540 |
|
12541 | runTimer: {
|
12542 | type: Boolean,
|
12543 | default: false
|
12544 | }
|
12545 | }),
|
12546 | data: function data() {
|
12547 | return {
|
12548 | isLoading: false,
|
12549 | params: Object.assign({}, defaultParams, {
|
12550 | pageSize: this.pageSize
|
12551 | }),
|
12552 |
|
12553 | timer: null
|
12554 | };
|
12555 | },
|
12556 | mounted: function mounted() {
|
12557 | if (this.autoLoad) {
|
12558 | this.load();
|
12559 | }
|
12560 |
|
12561 | this.checkTimer(this.runTimer);
|
12562 | },
|
12563 | activated: function activated() {
|
12564 | this.checkTimer(this.runTimer);
|
12565 | },
|
12566 | deactivated: function deactivated() {
|
12567 | this.clearTimer();
|
12568 | },
|
12569 | destroyed: function destroyed() {
|
12570 | this.clearTimer();
|
12571 | },
|
12572 | methods: {
|
12573 |
|
12574 | checkTimer: function checkTimer(e) {
|
12575 | e ? this.addTimer() : this.clearTimer();
|
12576 | },
|
12577 |
|
12578 | addTimer: function addTimer() {
|
12579 | var _this = this;
|
12580 |
|
12581 | if (!this.timer) {
|
12582 | if (!this.autoLoad) this.load();
|
12583 | this.timer = setInterval(function () {
|
12584 | _this.load();
|
12585 | }, this.interval);
|
12586 | }
|
12587 | },
|
12588 |
|
12589 | clearTimer: function clearTimer() {
|
12590 | if (this.timer) {
|
12591 | clearInterval(this.timer);
|
12592 | this.timer = null;
|
12593 | }
|
12594 | },
|
12595 |
|
12596 | setCurrentRow: function setCurrentRow(row) {
|
12597 | this.$refs.theTable.setCurrentRow(row);
|
12598 | },
|
12599 | toggleRowSelection: function toggleRowSelection(row, selected) {
|
12600 | this.$refs.theTable.toggleRowSelection(row, selected);
|
12601 | },
|
12602 | clearSelection: function clearSelection() {
|
12603 | this.$refs.theTable.clearSelection();
|
12604 | },
|
12605 |
|
12606 | |
12607 |
|
12608 |
|
12609 | restore: function restore() {
|
12610 | Object.assign(this.params, defaultParams);
|
12611 | },
|
12612 | changeSort: function changeSort(_ref) {
|
12613 | var column = _ref.column,
|
12614 | prop = _ref.prop,
|
12615 | order = _ref.order;
|
12616 |
|
12617 | if (order) {
|
12618 | this.params.orderField = prop;
|
12619 | this.params.orderDirection = order.replace("ending", "");
|
12620 | } else {
|
12621 | this.params.orderField = null;
|
12622 | this.params.orderDirection = null;
|
12623 | }
|
12624 |
|
12625 | this.load();
|
12626 | },
|
12627 | changePage: function changePage(page) {
|
12628 | this.params.pageNum = page;
|
12629 | this.load();
|
12630 | },
|
12631 | changeSize: function changeSize(size) {
|
12632 | this.params.pageSize = size;
|
12633 | this.params.pageNum = 0;
|
12634 | this.load();
|
12635 | },
|
12636 | doLoadData: function doLoadData(params) {
|
12637 | var _this2 = this;
|
12638 |
|
12639 | this.isLoading = true;
|
12640 | this.$emit("load-data", Object.assign(this.params, params), function (data) {
|
12641 | _this2.params.total = data.totalRows;
|
12642 | _this2.params.pageSize = data.pageSize;
|
12643 | _this2.params.pageNum = data.pageNum;
|
12644 |
|
12645 | if (Array.isArray(data.datarows) && data.datarows.length === 0) {
|
12646 | _this2.params.pageSize = _this2.pageSize;
|
12647 | _this2.params.pageNum = 0;
|
12648 | }
|
12649 |
|
12650 | _this2.params = Object.assign(_this2.params, params);
|
12651 | _this2.isLoading = false;
|
12652 | return data;
|
12653 | });
|
12654 | },
|
12655 | download: function download(params) {
|
12656 | params.agile = "export";
|
12657 | var columns = [];
|
12658 | this.$refs.theTable.$children.forEach(function (element) {
|
12659 | if (element.prop && element.label) {
|
12660 | var column_t = {
|
12661 | field: element.prop.trim(),
|
12662 | label: element.label.trim()
|
12663 | };
|
12664 |
|
12665 | if (element.$attrs.dict !== undefined) {
|
12666 | column_t["sysCode"] = element.$attrs.dict.length > 0 ? element.$attrs.dict.trim() : element.prop.trim();
|
12667 | }
|
12668 |
|
12669 | columns.push(column_t);
|
12670 | }
|
12671 | }, this);
|
12672 | columns = JSON.stringify(columns);
|
12673 | this.$emit("load-data", Object.assign({
|
12674 | columns: columns
|
12675 | }, this.params, params), function (data) {
|
12676 | return data;
|
12677 | });
|
12678 | },
|
12679 | currentChange: function currentChange(currentRow, oldCurrentRow) {
|
12680 | this.currentRow = currentRow;
|
12681 | },
|
12682 | getTableIndex: function getTableIndex(index) {
|
12683 | if (this.params.pageNum && this.params.pageSize) {
|
12684 | return (this.params.pageNum - 1) * this.params.pageSize + index + 1;
|
12685 | }
|
12686 |
|
12687 | return index + 1;
|
12688 | }
|
12689 | },
|
12690 | render: function render(h) {
|
12691 | var _this3 = this;
|
12692 |
|
12693 | return h("div", {
|
12694 | "class": "eport-table-wrap"
|
12695 | }, [!this.hideTitle ? h("div", {
|
12696 | "class": "table-header"
|
12697 | }, [h("div", {
|
12698 | "class": "table-header__title"
|
12699 | }, [this.title]), h("div", {
|
12700 | "class": "table-header__buttons"
|
12701 | }, [this.$slots.buttons]), this.showAutoUpdate ? h("div", {
|
12702 | "class": "pull-right margin-right-2"
|
12703 | }, [h("el-checkbox", {
|
12704 | "attrs": {
|
12705 | "checked": this.runTimer
|
12706 | },
|
12707 | "on": {
|
12708 | "change": function change(e) {
|
12709 | return _this3.checkTimer(e);
|
12710 | }
|
12711 | }
|
12712 | }, ["\u81EA\u52A8\u66F4\u65B0"])]) : null]) : null, h("el-table", {
|
12713 | "ref": "theTable",
|
12714 | "style": {
|
12715 | "minHeight": "280px"
|
12716 | },
|
12717 | "attrs": PageTable_objectSpread({
|
12718 | "data": this.data,
|
12719 | "element-loading-text": this.$t("common.tableLoading")
|
12720 | }, this.$props),
|
12721 | "directives": [{
|
12722 | name: "loading",
|
12723 | value: this.isLoading
|
12724 | }],
|
12725 | "on": {
|
12726 | "sort-change": this.changeSort,
|
12727 | "row-click": function rowClick() {
|
12728 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
12729 | args[_key] = arguments[_key];
|
12730 | }
|
12731 |
|
12732 | _this3.$emit.apply(_this3, ["row-click"].concat(args));
|
12733 | },
|
12734 | "select": function select() {
|
12735 | for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
12736 | args[_key2] = arguments[_key2];
|
12737 | }
|
12738 |
|
12739 | _this3.$emit.apply(_this3, ["select"].concat(args));
|
12740 | },
|
12741 | "select-all": function selectAll() {
|
12742 | for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
12743 | args[_key3] = arguments[_key3];
|
12744 | }
|
12745 |
|
12746 | _this3.$emit.apply(_this3, ["select-all"].concat(args));
|
12747 | },
|
12748 | "selection-change": function selectionChange() {
|
12749 | for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
12750 | args[_key4] = arguments[_key4];
|
12751 | }
|
12752 |
|
12753 | _this3.$emit.apply(_this3, ["selection-change"].concat(args));
|
12754 | },
|
12755 | "cell-mouse-enter": function cellMouseEnter() {
|
12756 | for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
12757 | args[_key5] = arguments[_key5];
|
12758 | }
|
12759 |
|
12760 | _this3.$emit.apply(_this3, ["cell-mouse-enter"].concat(args));
|
12761 | },
|
12762 | "cell-mouse-leave": function cellMouseLeave() {
|
12763 | for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
12764 | args[_key6] = arguments[_key6];
|
12765 | }
|
12766 |
|
12767 | _this3.$emit.apply(_this3, ["cell-mouse-leave"].concat(args));
|
12768 | },
|
12769 | "cell-click": function cellClick() {
|
12770 | for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
12771 | args[_key7] = arguments[_key7];
|
12772 | }
|
12773 |
|
12774 | _this3.$emit.apply(_this3, ["cell-click"].concat(args));
|
12775 | },
|
12776 | "cell-dblclick": function cellDblclick() {
|
12777 | for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
|
12778 | args[_key8] = arguments[_key8];
|
12779 | }
|
12780 |
|
12781 | _this3.$emit.apply(_this3, ["cell-dblclick"].concat(args));
|
12782 | },
|
12783 | "row-contextmenu": function rowContextmenu() {
|
12784 | for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
|
12785 | args[_key9] = arguments[_key9];
|
12786 | }
|
12787 |
|
12788 | _this3.$emit.apply(_this3, ["row-contextmenu"].concat(args));
|
12789 | },
|
12790 | "row-dblclick": function rowDblclick() {
|
12791 | for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
|
12792 | args[_key10] = arguments[_key10];
|
12793 | }
|
12794 |
|
12795 | _this3.$emit.apply(_this3, ["row-dblclick"].concat(args));
|
12796 | },
|
12797 | "header-click": function headerClick() {
|
12798 | for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
|
12799 | args[_key11] = arguments[_key11];
|
12800 | }
|
12801 |
|
12802 | _this3.$emit.apply(_this3, ["header-click"].concat(args));
|
12803 | },
|
12804 | "filter-change": function filterChange() {
|
12805 | for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
|
12806 | args[_key12] = arguments[_key12];
|
12807 | }
|
12808 |
|
12809 | _this3.$emit.apply(_this3, ["filter-change"].concat(args));
|
12810 | },
|
12811 | "current-change": function currentChange() {
|
12812 | for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
|
12813 | args[_key13] = arguments[_key13];
|
12814 | }
|
12815 |
|
12816 | _this3.$emit.apply(_this3, ["current-change"].concat(args));
|
12817 | },
|
12818 | "header-dragend": function headerDragend() {
|
12819 | for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
|
12820 | args[_key14] = arguments[_key14];
|
12821 | }
|
12822 |
|
12823 | _this3.$emit.apply(_this3, ["header-dragend"].concat(args));
|
12824 | },
|
12825 | "expand": function expand() {
|
12826 | for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
|
12827 | args[_key15] = arguments[_key15];
|
12828 | }
|
12829 |
|
12830 | _this3.$emit.apply(_this3, ["expand"].concat(args));
|
12831 | }
|
12832 | }
|
12833 | }, [h("el-table-column", {
|
12834 | "attrs": {
|
12835 | "type": "index",
|
12836 | "fixed": "left",
|
12837 | "index": this.getTableIndex,
|
12838 | "width": "55",
|
12839 | "align": "center"
|
12840 | }
|
12841 | }), this.$slots.default, this.$slots.append]), h("div", {
|
12842 | "class": "table-footer"
|
12843 | }, [!this.hideExport ? h("div", {
|
12844 | "class": "table-actions"
|
12845 | }, [h("el-button", {
|
12846 | "attrs": {
|
12847 | "type": "success",
|
12848 | "plain": true,
|
12849 | "icon": "el-icon-fa-file-excel-o"
|
12850 | },
|
12851 | "on": {
|
12852 | "click": function click() {
|
12853 | _this3.download({
|
12854 | down: "xls",
|
12855 | mode: "page"
|
12856 | });
|
12857 | }
|
12858 | }
|
12859 | }, ["\u672C\u9875"]), h("el-button", {
|
12860 | "attrs": {
|
12861 | "type": "success",
|
12862 | "plain": true,
|
12863 | "icon": "el-icon-fa-file-excel-o"
|
12864 | },
|
12865 | "on": {
|
12866 | "click": function click() {
|
12867 | _this3.download({
|
12868 | down: "xls",
|
12869 | mode: "full"
|
12870 | });
|
12871 | }
|
12872 | }
|
12873 | }, ["\u5168\u90E8"]), h("el-button", {
|
12874 | "attrs": {
|
12875 | "type": "danger",
|
12876 | "plain": true,
|
12877 | "icon": "el-icon-fa-file-pdf-o"
|
12878 | },
|
12879 | "on": {
|
12880 | "click": function click() {
|
12881 | _this3.download({
|
12882 | down: "pdf",
|
12883 | mode: "page"
|
12884 | });
|
12885 | }
|
12886 | }
|
12887 | }, ["\u672C\u9875"]), h("el-button", {
|
12888 | "attrs": {
|
12889 | "type": "danger",
|
12890 | "plain": true,
|
12891 | "icon": "el-icon-fa-file-pdf-o"
|
12892 | },
|
12893 | "on": {
|
12894 | "click": function click() {
|
12895 | _this3.download({
|
12896 | down: "pdf",
|
12897 | mode: "full"
|
12898 | });
|
12899 | }
|
12900 | }
|
12901 | }, ["\u5168\u90E8"])]) : null, h("el-pagination", {
|
12902 | "attrs": {
|
12903 | "background": true,
|
12904 | "currentPage": parseInt(this.params.pageNum),
|
12905 | "pageSize": this.params.pageSize,
|
12906 | "total": this.params.total,
|
12907 | "layout": this.pageLayout
|
12908 | },
|
12909 | "on": {
|
12910 | "current-change": this.changePage,
|
12911 | "size-change": this.changeSize
|
12912 | }
|
12913 | })])]);
|
12914 | }
|
12915 | });
|
12916 |
|
12917 | var Selectorvue_type_template_id_688b80c1_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.handleClose),expression:"handleClose"}],staticClass:"et-selector",on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.handleClose($event)}}},[_c('el-input',{ref:"reference",attrs:{"size":_vm.size,"type":"text","placeholder":_vm.placeholder,"name":_vm.name,"disabled":_vm.disabled,"readonly":"","validate-event":false},on:{"focus":_vm.handleFocus},nativeOn:{"mousedown":function($event){return _vm.handleMouseDown($event)},"mouseenter":function($event){_vm.inputHovering = true},"mouseleave":function($event){_vm.inputHovering = false}},model:{value:(_vm.selectedLabel),callback:function ($$v) {_vm.selectedLabel=$$v},expression:"selectedLabel"}},[_c('i',{class:_vm.iconClass,attrs:{"slot":"suffix"},on:{"click":_vm.handleIconClick},slot:"suffix"})]),_c('transition',{attrs:{"name":"el-zoom-in-top"},on:{"after-leave":_vm.doDestroy}},[_c('el-select-menu',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}],ref:"popper",staticClass:"et-selector__picker"},[_vm._t("default")],2)],1)],1)}
|
12918 | var Selectorvue_type_template_id_688b80c1_staticRenderFns = []
|
12919 |
|
12920 |
|
12921 |
|
12922 |
|
12923 |
|
12924 | var esm_typeof = __webpack_require__("9090");
|
12925 |
|
12926 |
|
12927 | var emitter_ = __webpack_require__("0af1");
|
12928 | var emitter_default = __webpack_require__.n(emitter_);
|
12929 |
|
12930 |
|
12931 | var locale_ = __webpack_require__("822e");
|
12932 | var locale_default = __webpack_require__.n(locale_);
|
12933 |
|
12934 |
|
12935 | var clickoutside_ = __webpack_require__("cc3d");
|
12936 | var clickoutside_default = __webpack_require__.n(clickoutside_);
|
12937 |
|
12938 |
|
12939 | var lib_locale_ = __webpack_require__("7f9f");
|
12940 |
|
12941 |
|
12942 | var util_ = __webpack_require__("41b2");
|
12943 |
|
12944 |
|
12945 | var select_ = __webpack_require__("0de2");
|
12946 | var select_default = __webpack_require__.n(select_);
|
12947 |
|
12948 |
|
12949 | var popup_ = __webpack_require__("67f2");
|
12950 |
|
12951 |
|
12952 |
|
12953 |
|
12954 |
|
12955 |
|
12956 |
|
12957 |
|
12958 |
|
12959 |
|
12960 |
|
12961 |
|
12962 |
|
12963 |
|
12964 |
|
12965 |
|
12966 |
|
12967 |
|
12968 |
|
12969 |
|
12970 |
|
12971 |
|
12972 |
|
12973 |
|
12974 |
|
12975 |
|
12976 | var ElSelectMenu = select_default.a.components.ElSelectMenu;
|
12977 |
|
12978 |
|
12979 |
|
12980 |
|
12981 |
|
12982 |
|
12983 | var Selectorvue_type_script_lang_js_ = ({
|
12984 | name: "EtSelector",
|
12985 | componentName: "EtSelector",
|
12986 | mixins: [emitter_default.a, locale_default.a],
|
12987 | directives: {
|
12988 | Clickoutside: clickoutside_default.a
|
12989 | },
|
12990 | components: {
|
12991 | ElSelectMenu: ElSelectMenu
|
12992 | },
|
12993 | props: {
|
12994 | size: String,
|
12995 | name: String,
|
12996 | disabled: Boolean,
|
12997 | clearable: Boolean,
|
12998 | loading: Boolean,
|
12999 | valueKey: {
|
13000 | type: String,
|
13001 | default: ""
|
13002 | },
|
13003 | labelKey: {
|
13004 | type: String,
|
13005 | default: ""
|
13006 | },
|
13007 | initLabel: {
|
13008 | type: String,
|
13009 | default: ""
|
13010 | },
|
13011 | title: {
|
13012 | type: String,
|
13013 | default: ""
|
13014 | },
|
13015 | value: {
|
13016 | required: true
|
13017 | },
|
13018 | placeholder: {
|
13019 | type: String,
|
13020 | default: function _default() {
|
13021 | return Object(lib_locale_["t"])("el.select.placeholder");
|
13022 | }
|
13023 | }
|
13024 | },
|
13025 | data: function data() {
|
13026 | return {
|
13027 | cleared: false,
|
13028 | selectedLabel: "",
|
13029 | selectedValue: "",
|
13030 | inputHovering: false,
|
13031 | visible: false
|
13032 | };
|
13033 | },
|
13034 | computed: {
|
13035 | iconClass: function iconClass() {
|
13036 | var criteria = this.clearable && !this.disabled && this.inputHovering && (this.value !== undefined && this.value !== "" || this.selected !== undefined && this.selected.length > 0);
|
13037 | return criteria ? "el-icon-circle-close is-show-close" : "el-icon-search";
|
13038 | }
|
13039 | },
|
13040 | mounted: function mounted() {
|
13041 | this.$on("selectTableRow", this.selectTableRow);
|
13042 | this.$on("selectTable", this.selectTable);
|
13043 | this.showDefault();
|
13044 |
|
13045 | if (this.$refs.popper) {
|
13046 | this.$refs.popper.$el.style.zIndex = popup_["PopupManager"].nextZIndex();
|
13047 | }
|
13048 | },
|
13049 | watch: {
|
13050 | visible: function visible(val) {
|
13051 | if (!val) {
|
13052 | this.broadcast("ElSelectDropdown", "destroyPopper");
|
13053 | this.$refs.reference.$el.querySelector("input").blur();
|
13054 | this.broadcast("ElSelectDropdown", "destroyPopper");
|
13055 | } else {
|
13056 | this.broadcast("ElSelectDropdown", "updatePopper");
|
13057 |
|
13058 | if (this.$refs.popper) {
|
13059 | this.$refs.popper.$el.style.zIndex = popup_["PopupManager"].nextZIndex();
|
13060 | }
|
13061 | }
|
13062 | },
|
13063 | initLabel: function initLabel(val) {
|
13064 | this.showDefault();
|
13065 | },
|
13066 | value: function value(val) {
|
13067 | if (!val) {
|
13068 | this.showDefault();
|
13069 | }
|
13070 | }
|
13071 | },
|
13072 | methods: {
|
13073 | handleClose: function handleClose() {
|
13074 | this.visible = false;
|
13075 | this.dispatch("ElFormItem", "el.form.blur", [this.selectedValue]);
|
13076 | },
|
13077 | handleShow: function handleShow() {
|
13078 | this.visible = true;
|
13079 | },
|
13080 | toggleMenu: function toggleMenu() {
|
13081 | this.visible = !this.visible;
|
13082 | },
|
13083 | handleFocus: function handleFocus() {
|
13084 | this.visible = true;
|
13085 | },
|
13086 | handleMouseDown: function handleMouseDown() {
|
13087 | if (event.target.tagName !== "INPUT") return;
|
13088 |
|
13089 | if (this.visible) {
|
13090 | this.handleClose();
|
13091 | event.preventDefault();
|
13092 | }
|
13093 | },
|
13094 | showDefault: function showDefault() {
|
13095 | if (this.initLabel && !this.cleared) {
|
13096 | this.selectedLabel = this.initLabel;
|
13097 | } else if (this.value) {
|
13098 | this.selectedLabel = this.value;
|
13099 | } else {
|
13100 | this.selectedLabel = "";
|
13101 | }
|
13102 | },
|
13103 | doDestroy: function doDestroy() {
|
13104 | this.$refs.popper && this.$refs.popper.doDestroy();
|
13105 | },
|
13106 | handleMenuEnter: function handleMenuEnter() {},
|
13107 | handleIconClick: function handleIconClick(event) {
|
13108 | if (this.iconClass.indexOf("el-icon-circle-close") > -1) {
|
13109 | this.deleteSelected(event);
|
13110 | } else {
|
13111 | this.toggleMenu();
|
13112 | }
|
13113 | },
|
13114 | deleteSelected: function deleteSelected(event) {
|
13115 | event.stopPropagation();
|
13116 | this.selectedLabel = "";
|
13117 | this.cleared = true;
|
13118 | this.handleClose();
|
13119 | this.$emit("clear");
|
13120 | this.$emit("input", this.selectedLabel);
|
13121 | this.dispatch("ElFormItem", "el.form.change", [this.selectedValue]);
|
13122 | this.dispatch("ElFormItem", "el.form.blur", [this.selectedValue]);
|
13123 | },
|
13124 | getValueKey: function getValueKey(item) {
|
13125 | var type = Object(esm_typeof["a" ])(item);
|
13126 |
|
13127 | if (type === "number" || type === "string") {
|
13128 | return item;
|
13129 | } else {
|
13130 | return Object(util_["getValueByPath"])(item, this.labelKey);
|
13131 | }
|
13132 | },
|
13133 | selectTableRow: function selectTableRow(row) {
|
13134 | this.selectedLabel = Object(util_["getValueByPath"])(row, this.labelKey);
|
13135 | this.selectedValue = this.valueKey ? Object(util_["getValueByPath"])(row, this.valueKey) : row;
|
13136 | this.handleClose();
|
13137 | this.$emit("select", row, this.selectedValue, this.selectedLabel);
|
13138 | this.$emit("input", this.selectedValue);
|
13139 | this.dispatch("ElFormItem", "el.form.change", [this.selectedValue]);
|
13140 | this.dispatch("ElFormItem", "el.form.blur", [this.selectedValue]);
|
13141 | }
|
13142 | }
|
13143 | });
|
13144 |
|
13145 | var plugin_Selectorvue_type_script_lang_js_ = (Selectorvue_type_script_lang_js_);
|
13146 |
|
13147 | var Selectorvue_type_style_index_0_lang_scss_ = __webpack_require__("9512");
|
13148 |
|
13149 |
|
13150 |
|
13151 |
|
13152 |
|
13153 |
|
13154 |
|
13155 |
|
13156 |
|
13157 |
|
13158 | var Selector_component = Object(componentNormalizer["a" ])(
|
13159 | plugin_Selectorvue_type_script_lang_js_,
|
13160 | Selectorvue_type_template_id_688b80c1_render,
|
13161 | Selectorvue_type_template_id_688b80c1_staticRenderFns,
|
13162 | false,
|
13163 | null,
|
13164 | null,
|
13165 | null
|
13166 |
|
13167 | )
|
13168 |
|
13169 | var Selector = (Selector_component.exports);
|
13170 |
|
13171 | var Panelvue_type_template_id_49fb14ae_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"la-panel",class:_vm.panelClass,attrs:{"tabindex":1}},[_c('div',{staticClass:"la-panel__header",on:{"dblclick":_vm.handleDblClick}},[_c('i',{staticClass:"la-panel__icon",class:_vm.panelIcon}),(!_vm.collapse)?_c('span',[_vm._v("\n "+_vm._s(_vm.title)+"\n ")]):_vm._e(),(_vm.collapse)?_c('span',{staticClass:"la-panel__colbtn",on:{"click":_vm.handleCollapse}},[_c('i',{staticClass:"la-panel__colbtn__icon el-icon-d-arrow-right"}),_c('span',[_vm._v(_vm._s(_vm.title))])]):_vm._e(),(_vm.$slots.help)?_c('el-popover',{attrs:{"placement":"top","popper-class":"la-panel-help-popper"},model:{value:(_vm.showHelp),callback:function ($$v) {_vm.showHelp=$$v},expression:"showHelp"}},[_c('div',[_vm._t("help")],2),_c('template',{slot:"reference"},[_c('i',{staticClass:"el-icon-question",staticStyle:{"color":"#2d8cf0","cursor":"pointer","margin-left":"4px"}})])],2):_vm._e(),_c('div',{staticClass:"la-panel__buttons"},[_vm._t("buttons"),(_vm.maxable)?_c('el-button',{attrs:{"icon":_vm.state!=='maximize'?'el-icon-fa-window-maximize':'el-icon-fa-window-minimize',"type":"text","title":"点击最大化"},on:{"click":_vm.handleDblClick}}):_vm._e()],2),_c('div',{staticStyle:{"clear":"both"}})],1),_c('div',{staticClass:"la-panel__body "},[_vm._t("default"),_c('div',{staticStyle:{"clear":"both"}})],2),_c('div',{staticStyle:{"clear":"both"}})])}
|
13172 | var Panelvue_type_template_id_49fb14ae_staticRenderFns = []
|
13173 |
|
13174 |
|
13175 |
|
13176 |
|
13177 |
|
13178 |
|
13179 |
|
13180 |
|
13181 |
|
13182 |
|
13183 |
|
13184 |
|
13185 |
|
13186 |
|
13187 |
|
13188 |
|
13189 |
|
13190 |
|
13191 |
|
13192 |
|
13193 |
|
13194 |
|
13195 |
|
13196 |
|
13197 |
|
13198 |
|
13199 |
|
13200 |
|
13201 |
|
13202 |
|
13203 |
|
13204 |
|
13205 |
|
13206 |
|
13207 |
|
13208 |
|
13209 |
|
13210 |
|
13211 |
|
13212 |
|
13213 |
|
13214 |
|
13215 |
|
13216 |
|
13217 |
|
13218 |
|
13219 |
|
13220 | var panelManager = {
|
13221 | idx: 0,
|
13222 | next: function next() {
|
13223 | ++this.idx;
|
13224 | }
|
13225 | };
|
13226 | var Panelvue_type_script_lang_js_ = ({
|
13227 | name: "panel",
|
13228 | props: {
|
13229 | maxable: {
|
13230 | type: Boolean,
|
13231 | default: false
|
13232 | },
|
13233 | collapse: {
|
13234 | type: Boolean,
|
13235 | default: false
|
13236 | },
|
13237 | light: {
|
13238 | type: Boolean,
|
13239 | default: false
|
13240 | },
|
13241 | icon: {
|
13242 | type: String
|
13243 | },
|
13244 | full: {
|
13245 | type: Boolean,
|
13246 | default: false
|
13247 | },
|
13248 | title: {
|
13249 | type: String,
|
13250 | required: true
|
13251 | }
|
13252 | },
|
13253 | computed: {
|
13254 | panelIcon: function panelIcon() {
|
13255 | return this.light && !this.collapse ? "el-icon-d-arrow-right" : this.icon;
|
13256 | },
|
13257 | panelClass: function panelClass() {
|
13258 | return [{
|
13259 | "la-panel--full": this.full,
|
13260 | "la-panel--collapse": this.collapse,
|
13261 | "la-panel--light": this.light,
|
13262 | "la-panel--icon": !!this.icon
|
13263 | }, "la-panel--" + this.state];
|
13264 | }
|
13265 | },
|
13266 | data: function data() {
|
13267 | return {
|
13268 | showHelp: false,
|
13269 | state: "opened"
|
13270 | };
|
13271 | },
|
13272 | beforeMount: function beforeMount() {
|
13273 | if (this.collapse) {
|
13274 | this.state = "closed";
|
13275 | }
|
13276 | },
|
13277 | mounted: function mounted() {
|
13278 | var _this = this;
|
13279 |
|
13280 | this.$el.tabindex = panelManager.next();
|
13281 | this.$el.addEventListener("keydown", function (e) {
|
13282 | if (e.keyCode == 112) {
|
13283 | if (_this.$slots.help) {
|
13284 | _this.showHelp = !_this.showHelp;
|
13285 | }
|
13286 |
|
13287 | e.preventDefault();
|
13288 | }
|
13289 | });
|
13290 | this.$el.addEventListener("mousedown", function (e) {
|
13291 |
|
13292 |
|
13293 |
|
13294 | });
|
13295 | },
|
13296 | methods: {
|
13297 | handleCollapse: function handleCollapse() {
|
13298 | if (this.state === "closed") {
|
13299 | this.state = "opened";
|
13300 | } else {
|
13301 | this.state = "closed";
|
13302 | }
|
13303 | },
|
13304 | handleDblClick: function handleDblClick() {
|
13305 | if (!this.maxable) {
|
13306 | return;
|
13307 | }
|
13308 |
|
13309 | this.state = this.state === "maximize" ? "" : "maximize";
|
13310 | }
|
13311 | }
|
13312 | });
|
13313 |
|
13314 | var plugin_Panelvue_type_script_lang_js_ = (Panelvue_type_script_lang_js_);
|
13315 |
|
13316 |
|
13317 |
|
13318 |
|
13319 |
|
13320 |
|
13321 |
|
13322 |
|
13323 | var Panel_component = Object(componentNormalizer["a" ])(
|
13324 | plugin_Panelvue_type_script_lang_js_,
|
13325 | Panelvue_type_template_id_49fb14ae_render,
|
13326 | Panelvue_type_template_id_49fb14ae_staticRenderFns,
|
13327 | false,
|
13328 | null,
|
13329 | null,
|
13330 | null
|
13331 |
|
13332 | )
|
13333 |
|
13334 | var Panel = (Panel_component.exports);
|
13335 |
|
13336 | var es6_array_find_ = __webpack_require__("4919");
|
13337 |
|
13338 |
|
13339 |
|
13340 | var SysCode_component = {
|
13341 | props: {
|
13342 | value: {
|
13343 | type: String,
|
13344 | default: null
|
13345 | },
|
13346 | type: {
|
13347 | type: String,
|
13348 | default: null
|
13349 | }
|
13350 | },
|
13351 | data: function data() {
|
13352 | return {
|
13353 | text: ""
|
13354 | };
|
13355 | },
|
13356 | computed: {},
|
13357 | render: function render(h) {
|
13358 | var _this = this;
|
13359 |
|
13360 |
|
13361 | var value = this.value;
|
13362 | this.$store.dispatch("base/loadSysCode", this.type).then(function (code) {
|
13363 | var c = code.data.find(function (c) {
|
13364 | return c.key === value;
|
13365 | });
|
13366 |
|
13367 | if (c) {
|
13368 | _this.text = c.label;
|
13369 | }
|
13370 | });
|
13371 | return h("span", [this.text ? this.text : h("span", {
|
13372 | "class": "'font-red-error'"
|
13373 | }, [" ", this.$t("ui.sysCode.noCode"), " "])]);
|
13374 | }
|
13375 | };
|
13376 | var directive = {
|
13377 | bind: function bind(el, binding, vnode, oldnode) {
|
13378 | var codeType = binding.value;
|
13379 | vnode.context.$store.dispatch("base/loadSysCode", codeType);
|
13380 | }
|
13381 | };
|
13382 | var SysCode = ({
|
13383 | directive: directive,
|
13384 | component: SysCode_component
|
13385 | });
|
13386 |
|
13387 | var ExportCtrlvue_type_template_id_76616c02_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"margin-top":"1px"}},[_c('el-button',{attrs:{"type":"success","plain":"","icon":"el-icon-fa-file-excel-o"},on:{"click":function($event){return _vm.handleExport('excel','page')}}},[_vm._v("本页")]),_c('el-button',{attrs:{"type":"success","plain":"","icon":"el-icon-fa-file-excel-o"},on:{"click":function($event){return _vm.handleExport('excel','full')}}},[_vm._v("全部")]),_c('el-button',{attrs:{"type":"danger","plain":"","icon":"el-icon-fa-file-pdf-o"},on:{"click":function($event){return _vm.handleExport('excel','page')}}},[_vm._v("本页")]),_c('el-button',{attrs:{"type":"danger","plain":"","icon":"el-icon-fa-file-pdf-o"},on:{"click":function($event){return _vm.handleExport('excel','full')}}},[_vm._v("全部")])],1)}
|
13388 | var ExportCtrlvue_type_template_id_76616c02_staticRenderFns = []
|
13389 |
|
13390 |
|
13391 |
|
13392 |
|
13393 |
|
13394 |
|
13395 |
|
13396 |
|
13397 |
|
13398 |
|
13399 |
|
13400 |
|
13401 |
|
13402 |
|
13403 | var ExportCtrlvue_type_script_lang_js_ = ({
|
13404 | name: "export-ctrl",
|
13405 | props: {},
|
13406 | methods: {
|
13407 | handleExport: function handleExport(type, mode) {
|
13408 | this.$emit("export", {
|
13409 | type: type,
|
13410 | mode: mode
|
13411 | });
|
13412 | }
|
13413 | }
|
13414 | });
|
13415 |
|
13416 | var plugin_ExportCtrlvue_type_script_lang_js_ = (ExportCtrlvue_type_script_lang_js_);
|
13417 |
|
13418 |
|
13419 |
|
13420 |
|
13421 |
|
13422 |
|
13423 |
|
13424 |
|
13425 | var ExportCtrl_component = Object(componentNormalizer["a" ])(
|
13426 | plugin_ExportCtrlvue_type_script_lang_js_,
|
13427 | ExportCtrlvue_type_template_id_76616c02_render,
|
13428 | ExportCtrlvue_type_template_id_76616c02_staticRenderFns,
|
13429 | false,
|
13430 | null,
|
13431 | null,
|
13432 | null
|
13433 |
|
13434 | )
|
13435 |
|
13436 | var ExportCtrl = (ExportCtrl_component.exports);
|
13437 |
|
13438 | var es6_array_find_index_ = __webpack_require__("0736");
|
13439 |
|
13440 |
|
13441 | function _classCallCheck(instance, Constructor) {
|
13442 | if (!(instance instanceof Constructor)) {
|
13443 | throw new TypeError("Cannot call a class as a function");
|
13444 | }
|
13445 | }
|
13446 |
|
13447 | function _defineProperties(target, props) {
|
13448 | for (var i = 0; i < props.length; i++) {
|
13449 | var descriptor = props[i];
|
13450 | descriptor.enumerable = descriptor.enumerable || false;
|
13451 | descriptor.configurable = true;
|
13452 | if ("value" in descriptor) descriptor.writable = true;
|
13453 | Object.defineProperty(target, descriptor.key, descriptor);
|
13454 | }
|
13455 | }
|
13456 |
|
13457 | function _createClass(Constructor, protoProps, staticProps) {
|
13458 | if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
13459 | if (staticProps) _defineProperties(Constructor, staticProps);
|
13460 | return Constructor;
|
13461 | }
|
13462 |
|
13463 |
|
13464 |
|
13465 |
|
13466 |
|
13467 |
|
13468 |
|
13469 |
|
13470 |
|
13471 |
|
13472 |
|
13473 | var TabViewComponent = {
|
13474 | name: "tab-view",
|
13475 | functional: true,
|
13476 | props: {
|
13477 | path: {
|
13478 | type: String
|
13479 | },
|
13480 | propsData: {}
|
13481 | },
|
13482 | render: function render(_, _ref) {
|
13483 | var props = _ref.props,
|
13484 | children = _ref.children,
|
13485 | parent = _ref.parent,
|
13486 | data = _ref.data;
|
13487 | var h = parent.$createElement;
|
13488 | data.props = props.propsData;
|
13489 | var comp = parent.$tabView.views[props.path];
|
13490 |
|
13491 | if (comp) {
|
13492 | return h(comp.default, data, children);
|
13493 | } else {
|
13494 | return h("div", {}, ["没有找到注册的组件[" + props.path + "]"]);
|
13495 | }
|
13496 | }
|
13497 | };
|
13498 |
|
13499 | var TabView_TabView =
|
13500 |
|
13501 | function () {
|
13502 | function TabView(config) {
|
13503 | _classCallCheck(this, TabView);
|
13504 |
|
13505 | _defineProperty(this, "forceFirst", true);
|
13506 |
|
13507 | _defineProperty(this, "active", "首页");
|
13508 |
|
13509 | _defineProperty(this, "viewList", [{
|
13510 | name: "首页",
|
13511 | path: "/"
|
13512 | }]);
|
13513 |
|
13514 | _defineProperty(this, "views", {});
|
13515 |
|
13516 | Object.assign(this, config);
|
13517 | }
|
13518 |
|
13519 | _createClass(TabView, [{
|
13520 | key: "addView",
|
13521 | value: function addView(name, path, propsData) {
|
13522 | var idx = this.viewList.findIndex(function (item) {
|
13523 | return item.name === name;
|
13524 | });
|
13525 | if (idx === -1) this.viewList.push({
|
13526 | name: name,
|
13527 | path: path,
|
13528 | propsData: propsData
|
13529 | });
|
13530 | this.active = name;
|
13531 | }
|
13532 | }, {
|
13533 | key: "removeView",
|
13534 | value: function removeView(name) {
|
13535 | var idx = this.viewList.findIndex(function (item) {
|
13536 | return item.name === name;
|
13537 | });
|
13538 |
|
13539 | if (idx > -1) {
|
13540 | this.active = this.viewList[idx - 1].name;
|
13541 | this.viewList.splice(idx, 1);
|
13542 | }
|
13543 | }
|
13544 | }, {
|
13545 | key: "changeName",
|
13546 | value: function changeName(oldName, newName) {
|
13547 | var idx = this.viewList.findIndex(function (item) {
|
13548 | return item.name === oldName;
|
13549 | });
|
13550 |
|
13551 | if (idx > -1) {
|
13552 | this.viewList[idx].name = this.active = newName;
|
13553 | }
|
13554 | }
|
13555 | }, {
|
13556 | key: "removeOther",
|
13557 | value: function removeOther() {
|
13558 | this.removeBefore();
|
13559 | this.removeAfter();
|
13560 | }
|
13561 | }, {
|
13562 | key: "removeAfter",
|
13563 | value: function removeAfter() {
|
13564 | var _this = this;
|
13565 |
|
13566 | var idx = this.viewList.findIndex(function (item) {
|
13567 | return item.name === _this.active;
|
13568 | });
|
13569 | this.viewList.splice(idx + 1);
|
13570 | }
|
13571 | }, {
|
13572 | key: "removeBefore",
|
13573 | value: function removeBefore() {
|
13574 | var _this2 = this;
|
13575 |
|
13576 | var idx = this.viewList.findIndex(function (item) {
|
13577 | return item.name === _this2.active;
|
13578 | });
|
13579 |
|
13580 | if (this.forceFirst) {
|
13581 | this.viewList.splice(1, idx - 1);
|
13582 | } else {
|
13583 | this.viewList.splice(0, idx - 1);
|
13584 | }
|
13585 | }
|
13586 | }, {
|
13587 | key: "removeAll",
|
13588 | value: function removeAll() {
|
13589 | if (this.forceFirst) {
|
13590 | this.viewList.splice(1);
|
13591 | this.active = this.viewList[0].name;
|
13592 | } else {
|
13593 | this.viewList.splice(0);
|
13594 | }
|
13595 | }
|
13596 | }]);
|
13597 |
|
13598 | return TabView;
|
13599 | }();
|
13600 |
|
13601 |
|
13602 |
|
13603 | TabView_TabView.install = function install(Vue, option) {
|
13604 | var isDef = function isDef(v) {
|
13605 | return v !== undefined;
|
13606 | };
|
13607 |
|
13608 | Vue.mixin({
|
13609 | beforeCreate: function beforeCreate() {
|
13610 | if (isDef(this.$root.$options.tabView)) {
|
13611 | this._tabView = this.$root.$options.tabView;
|
13612 | Vue.util.defineReactive(this, "_tabView", this._tabView);
|
13613 | }
|
13614 | }
|
13615 | });
|
13616 | Object.defineProperty(Vue.prototype, "$tabView", {
|
13617 | get: function get() {
|
13618 | return this._tabView;
|
13619 | }
|
13620 | });
|
13621 | Vue.component("TabView", TabViewComponent);
|
13622 | };
|
13623 |
|
13624 | var external_sortablejs_ = __webpack_require__("a352");
|
13625 | var external_sortablejs_default = __webpack_require__.n(external_sortablejs_);
|
13626 |
|
13627 |
|
13628 |
|
13629 |
|
13630 | var VelTableSort = {
|
13631 | bind: function bind(el, binding, vnode, oldnode) {
|
13632 | var tbody = el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0];
|
13633 | var orderKey = binding.arg;
|
13634 | external_sortablejs_default.a.create(tbody, {
|
13635 | ghostClass: "sortable-ghost",
|
13636 | chosenClass: "sortable-chosen",
|
13637 | animation: 150,
|
13638 | setData: function setData(dataTransfer) {
|
13639 | dataTransfer.setData("Text", "");
|
13640 | },
|
13641 | onEnd: function onEnd(_ref) {
|
13642 | var newIndex = _ref.newIndex,
|
13643 | oldIndex = _ref.oldIndex;
|
13644 | var data = vnode.componentInstance.data;
|
13645 | var targetRow = data.splice(oldIndex, 1)[0];
|
13646 | data.splice(newIndex, 0, targetRow);
|
13647 | data.forEach(function (item, idx) {
|
13648 | return item[orderKey] = idx + 1;
|
13649 | });
|
13650 | }
|
13651 | });
|
13652 | }
|
13653 | };
|
13654 | var TableSort = (VelTableSort);
|
13655 |
|
13656 | var es6_regexp_split_ = __webpack_require__("5a1d");
|
13657 |
|
13658 |
|
13659 |
|
13660 |
|
13661 |
|
13662 |
|
13663 |
|
13664 |
|
13665 |
|
13666 |
|
13667 |
|
13668 |
|
13669 |
|
13670 |
|
13671 |
|
13672 |
|
13673 |
|
13674 |
|
13675 |
|
13676 |
|
13677 |
|
13678 |
|
13679 |
|
13680 | function v_auth(data, group, key) {
|
13681 | var is = false;
|
13682 |
|
13683 | if (Array.isArray(data)) {
|
13684 | data.forEach(function (value, index) {
|
13685 | if (value.funcUrl === "/" + group) {
|
13686 | value.children.forEach(function (value2, index2) {
|
13687 | value2.children.forEach(function (value3, index3) {
|
13688 | if (value3.permCode === key) {
|
13689 | is = true;
|
13690 | }
|
13691 | });
|
13692 | });
|
13693 | }
|
13694 | });
|
13695 | }
|
13696 |
|
13697 | return is;
|
13698 | }
|
13699 |
|
13700 | var ButtonAuth = ({
|
13701 | bind: function bind(el, binding, vnode, oldnode) {},
|
13702 | inserted: function inserted(formEl, binding, vnode, oldnode) {
|
13703 | var sysMenus = vnode.context.$store.state.base.sysMenus;
|
13704 | var tabPagesPath = vnode.context.$store.getters.tabPagesPath;
|
13705 | var key = binding.value;
|
13706 |
|
13707 | var paths = tabPagesPath.split("/");
|
13708 | var group = paths[1];
|
13709 |
|
13710 | if (!v_auth(sysMenus, group, key)) {
|
13711 | formEl.remove();
|
13712 | }
|
13713 | },
|
13714 | update: function update(el, binding, vnode, oldnode) {}
|
13715 | });
|
13716 |
|
13717 | var CurdPanelvue_type_template_id_a6c3bcc0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],attrs:{"element-loading-spinner":"el-icon-loading","element-loading-text":_vm.loadingText}},[(_vm.titleSearchForm)?_c('Panel',{attrs:{"title":_vm.titleSearchForm}},[_c('template',{slot:"buttons"},[_c('el-button',{staticClass:"blue",attrs:{"type":"primary","icon":"el-icon-search"},on:{"click":function($event){return _vm.pageTable.handleLoad()}}},[_vm._v("查询")]),_c('el-button',{staticClass:"yellow",attrs:{"type":"primary","icon":"el-icon-refresh"},on:{"click":function($event){return _vm.pageTable.handleReset()}}},[_vm._v("重置")])],1),_c('el-form',{ref:"queryform",attrs:{"inline":"","model":_vm.pageTable.param}},[_vm._t("search-form",null,{"formData":_vm.pageTable.param})],2)],2):_vm._e(),_c('Panel',{attrs:{"title":_vm.titleDataTable}},[_c('template',{slot:"buttons"},[_vm._t("table-buttons",null,{"data":_vm.pageTable}),(_vm.allowAdd)?_c('el-button',{staticClass:"blue",attrs:{"type":"primary","icon":"el-icon-plus"},on:{"click":_vm.handleAdd}},[_vm._v("新增")]):_vm._e()],2),_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.pageTable.isLoading),expression:"pageTable.isLoading"}],attrs:{"border":"","data":_vm.pageTable.data,"element-loading-spinner":"el-icon-loading","element-loading-text":"数据加载中","max-height":_vm.tableMaxHeight}},[_vm._t("table-columns"),_c('el-table-column',{attrs:{"prop":"memo","label":"操作","width":"80","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(_vm.allowEdit)?_c('el-button',{staticClass:"blue",attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleEdit(scope.row)}}},[_vm._v("编辑")]):_vm._e(),(_vm.allowDelete)?_c('el-button',{staticClass:"red",attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleDelete(scope.row)}}},[_vm._v("删除")]):_vm._e()]}}])})],2),(_vm.allowExport)?_c('export-ctrl',{staticClass:"pull-left",on:{"export":function($event){return _vm.pageTable.handleExport($event)}}}):_vm._e(),(_vm.allowPagination)?_c('el-pagination',{attrs:{"background":"","page-size":_vm.pageTable.size,"current-page":_vm.pageTable.curr,"total":_vm.pageTable.total},on:{"update:pageSize":function($event){return _vm.$set(_vm.pageTable, "size", $event)},"update:page-size":function($event){return _vm.$set(_vm.pageTable, "size", $event)},"update:currentPage":function($event){return _vm.$set(_vm.pageTable, "curr", $event)},"update:current-page":function($event){return _vm.$set(_vm.pageTable, "curr", $event)}}}):_vm._e()],2),_c('el-dialog',{attrs:{"visible":_vm.editor.visible,"width":_vm.editorWidth,"append-to-body":""},on:{"update:visible":function($event){return _vm.$set(_vm.editor, "visible", $event)}}},[_c('div',{staticClass:"font-white",attrs:{"slot":"title"},slot:"title"},[_c('i',{staticClass:"el-icon-edit"}),_vm._v("\n "+_vm._s(_vm.editor.title)+"\n ")]),(_vm.editor.visible)?_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.editor.loading),expression:"editor.loading"}],attrs:{"element-loading-spinner":"el-icon-loading"}},[(_vm.editor.ready)?_vm._t("editor",null,{"data":_vm.editor.data}):_vm._e(),_c('div',{staticClass:"text-center"},[_vm._t("buttons"),_c('el-button',{staticClass:"blue",attrs:{"type":"primary","size":"mini"},on:{"click":_vm.handleSave}},[_vm._v("保存")])],2)],2):_vm._e()])],1)}
|
13718 | var CurdPanelvue_type_template_id_a6c3bcc0_staticRenderFns = []
|
13719 |
|
13720 |
|
13721 |
|
13722 |
|
13723 |
|
13724 | var es6_array_sort_ = __webpack_require__("f61e");
|
13725 |
|
13726 |
|
13727 |
|
13728 |
|
13729 |
|
13730 |
|
13731 |
|
13732 |
|
13733 |
|
13734 |
|
13735 |
|
13736 |
|
13737 |
|
13738 |
|
13739 |
|
13740 |
|
13741 |
|
13742 |
|
13743 |
|
13744 |
|
13745 |
|
13746 |
|
13747 |
|
13748 |
|
13749 |
|
13750 |
|
13751 |
|
13752 | var paramName = {
|
13753 | size: "pageSize",
|
13754 | page: "pageNum",
|
13755 | total: "totalRows",
|
13756 | data: "datarows",
|
13757 | sort: "sort"
|
13758 | };
|
13759 |
|
13760 |
|
13761 |
|
13762 |
|
13763 | var PageTable_PageTable =
|
13764 |
|
13765 | function () {
|
13766 | _createClass(PageTable, [{
|
13767 | key: "doLoad",
|
13768 |
|
13769 |
|
13770 |
|
13771 | |
13772 |
|
13773 |
|
13774 |
|
13775 |
|
13776 | value: function doLoad(param) {}
|
13777 | }]);
|
13778 |
|
13779 | function PageTable(config) {
|
13780 | _classCallCheck(this, PageTable);
|
13781 |
|
13782 | _defineProperty(this, "data", []);
|
13783 |
|
13784 | _defineProperty(this, "param", {});
|
13785 |
|
13786 | _defineProperty(this, "total", 0);
|
13787 |
|
13788 | _defineProperty(this, "autoLoad", false);
|
13789 |
|
13790 | _defineProperty(this, "isLoading", false);
|
13791 |
|
13792 | _defineProperty(this, "isLog", false);
|
13793 |
|
13794 | _defineProperty(this, "sort", "");
|
13795 |
|
13796 | _defineProperty(this, "lastParam", {});
|
13797 |
|
13798 | _defineProperty(this, "loaded", false);
|
13799 |
|
13800 | _defineProperty(this, "_param", {});
|
13801 |
|
13802 | _defineProperty(this, "_curr", 1);
|
13803 |
|
13804 | _defineProperty(this, "_size", 20);
|
13805 |
|
13806 | this.doLoad = config["doLoad"];
|
13807 | this.autoLoad = config["autoLoad"];
|
13808 | this._param = config["param"] || {};
|
13809 | this.isLog = config["log"] === true;
|
13810 | this.columns = config["columns"];
|
13811 | this.handleReset();
|
13812 |
|
13813 | if (this.autoLoad) {
|
13814 | this.handleLoad();
|
13815 | }
|
13816 | }
|
13817 | |
13818 |
|
13819 |
|
13820 |
|
13821 |
|
13822 | _createClass(PageTable, [{
|
13823 | key: "handleLoad",
|
13824 | value: function () {
|
13825 | var _handleLoad = Object(asyncToGenerator["a" ])(
|
13826 |
|
13827 | regeneratorRuntime.mark(function _callee() {
|
13828 | var _param;
|
13829 |
|
13830 | var param, resp, data, total;
|
13831 | return regeneratorRuntime.wrap(function _callee$(_context) {
|
13832 | while (1) {
|
13833 | switch (_context.prev = _context.next) {
|
13834 | case 0:
|
13835 | param = (_param = {}, _defineProperty(_param, paramName.page, this.curr), _defineProperty(_param, paramName.size, this.size), _defineProperty(_param, paramName.sort, this.sort), _param);
|
13836 | Object.assign(param, this.param);
|
13837 | this.isLoading = true;
|
13838 | _context.prev = 3;
|
13839 |
|
13840 | if (this.isLog) {
|
13841 | console.log("表格即將加載:", param);
|
13842 | }
|
13843 |
|
13844 | _context.next = 7;
|
13845 | return this.doLoad(param);
|
13846 |
|
13847 | case 7:
|
13848 | resp = _context.sent;
|
13849 | data = resp[paramName.data];
|
13850 | total = resp[paramName.total];
|
13851 | this.strengData(data);
|
13852 | this.data = data;
|
13853 | this.total = total;
|
13854 | this.lastParam = param;
|
13855 |
|
13856 | case 14:
|
13857 | _context.prev = 14;
|
13858 | this.isLoading = false;
|
13859 | return _context.finish(14);
|
13860 |
|
13861 | case 17:
|
13862 | case "end":
|
13863 | return _context.stop();
|
13864 | }
|
13865 | }
|
13866 | }, _callee, this, [[3,, 14, 17]]);
|
13867 | }));
|
13868 |
|
13869 | function handleLoad() {
|
13870 | return _handleLoad.apply(this, arguments);
|
13871 | }
|
13872 |
|
13873 | return handleLoad;
|
13874 | }()
|
13875 | |
13876 |
|
13877 |
|
13878 |
|
13879 |
|
13880 | }, {
|
13881 | key: "strengData",
|
13882 | value: function strengData(data) {
|
13883 |
|
13884 | data.forEach(function (rc) {
|
13885 | rc.$isLoading = false;
|
13886 | rc.$isEditing = false;
|
13887 | });
|
13888 | }
|
13889 | |
13890 |
|
13891 |
|
13892 |
|
13893 |
|
13894 | }, {
|
13895 | key: "handleSort",
|
13896 | value: function handleSort(sort) {
|
13897 | this.sort = "";
|
13898 |
|
13899 | if (sort.column) {
|
13900 | var od = sort.order === "descending" ? "desc" : "asc";
|
13901 | this.sort = sort.prop + "," + od;
|
13902 | }
|
13903 |
|
13904 | var ignore = this.handleLoad();
|
13905 | }
|
13906 | |
13907 |
|
13908 |
|
13909 |
|
13910 |
|
13911 | }, {
|
13912 | key: "handleExport",
|
13913 | value: function handleExport(exp) {
|
13914 | var param = Object.assign({}, this.lastParam, exp);
|
13915 | param[paramName.sort] = this.sort;
|
13916 |
|
13917 | if (exp.mode === "page") {
|
13918 | param[paramName.page] = this.curr;
|
13919 | param[paramName.size] = this.size;
|
13920 | }
|
13921 |
|
13922 | if (this.isLog) {
|
13923 | console.log("表格即將导出:", param);
|
13924 | }
|
13925 |
|
13926 | this.doLoad(param);
|
13927 | }
|
13928 | |
13929 |
|
13930 |
|
13931 |
|
13932 | }, {
|
13933 | key: "handleReset",
|
13934 | value: function handleReset() {
|
13935 | this.param = Object.assign({}, this._param);
|
13936 | }
|
13937 | }, {
|
13938 | key: "curr",
|
13939 | get: function get() {
|
13940 | return this._curr;
|
13941 | },
|
13942 | set: function set(curr) {
|
13943 | var nld = this._curr !== curr;
|
13944 | this._curr = curr;
|
13945 |
|
13946 | if (nld) this.handleLoad();
|
13947 | }
|
13948 | }, {
|
13949 | key: "size",
|
13950 | get: function get() {
|
13951 | return this._size;
|
13952 | },
|
13953 | set: function set(size) {
|
13954 | this._size = size;
|
13955 | this.handleLoad();
|
13956 | }
|
13957 | }]);
|
13958 |
|
13959 | return PageTable;
|
13960 | }();
|
13961 |
|
13962 | var libs_PageTable = (PageTable_PageTable);
|
13963 |
|
13964 |
|
13965 |
|
13966 |
|
13967 |
|
13968 |
|
13969 |
|
13970 |
|
13971 |
|
13972 |
|
13973 |
|
13974 |
|
13975 |
|
13976 |
|
13977 |
|
13978 |
|
13979 |
|
13980 |
|
13981 |
|
13982 |
|
13983 |
|
13984 |
|
13985 |
|
13986 |
|
13987 |
|
13988 |
|
13989 |
|
13990 |
|
13991 |
|
13992 |
|
13993 |
|
13994 |
|
13995 |
|
13996 |
|
13997 |
|
13998 |
|
13999 |
|
14000 |
|
14001 |
|
14002 |
|
14003 |
|
14004 |
|
14005 |
|
14006 |
|
14007 |
|
14008 |
|
14009 |
|
14010 |
|
14011 |
|
14012 |
|
14013 | var CurdPanelvue_type_script_lang_js_ = ({
|
14014 | name: "CurdPanel",
|
14015 | props: {
|
14016 | allowExport: {
|
14017 | type: Boolean,
|
14018 | default: true
|
14019 | },
|
14020 | allowPagination: {
|
14021 | type: Boolean,
|
14022 | default: true
|
14023 | },
|
14024 | allowAdd: {
|
14025 | type: Boolean,
|
14026 | default: true
|
14027 | },
|
14028 | allowEdit: {
|
14029 | type: Boolean,
|
14030 | default: true
|
14031 | },
|
14032 | allowDelete: {
|
14033 | type: Boolean,
|
14034 | default: true
|
14035 | },
|
14036 | titleSearchForm: {
|
14037 | type: String,
|
14038 | require: true
|
14039 | },
|
14040 | titleDataTable: {
|
14041 | type: String,
|
14042 | require: true
|
14043 | },
|
14044 | titleEditor: {
|
14045 | type: String,
|
14046 | require: true
|
14047 | },
|
14048 | editorWidth: {
|
14049 | type: String,
|
14050 | require: true
|
14051 | },
|
14052 | editorDefaultData: {
|
14053 | type: Object,
|
14054 | require: false,
|
14055 | default: function _default() {
|
14056 | return {};
|
14057 | }
|
14058 | },
|
14059 | tableMaxHeight: {
|
14060 | type: [String, Number]
|
14061 | },
|
14062 | editorValidate: {
|
14063 | type: Function
|
14064 | },
|
14065 | searchParam: {
|
14066 | type: Object
|
14067 | },
|
14068 | doQuery: {
|
14069 | type: Function
|
14070 | },
|
14071 | doGet: {
|
14072 | type: Function
|
14073 | },
|
14074 | doSave: {
|
14075 | type: Function
|
14076 | },
|
14077 | doDelete: {
|
14078 | type: Function
|
14079 | },
|
14080 | closeOnSave: {
|
14081 | type: Boolean,
|
14082 | default: false
|
14083 | },
|
14084 | autoLoad: {
|
14085 | type: Boolean,
|
14086 | default: false
|
14087 | }
|
14088 | },
|
14089 | data: function data() {
|
14090 | return {
|
14091 | loadingText: "系统加载中...",
|
14092 | loading: false,
|
14093 | editor: {
|
14094 | data: this.editorDefaultData,
|
14095 | loading: false,
|
14096 | ready: false,
|
14097 | title: this.titleEditor,
|
14098 | visible: false
|
14099 | },
|
14100 | pageTable: new libs_PageTable({
|
14101 | autoLoad: this.autoLoad,
|
14102 | doLoad: this.doQuery,
|
14103 | param: Object.assign({}, this.searchParam),
|
14104 | log: false
|
14105 | })
|
14106 | };
|
14107 | },
|
14108 | beforeMount: function beforeMount() {},
|
14109 | methods: {
|
14110 | handleAdd: function () {
|
14111 | var _handleAdd = Object(asyncToGenerator["a" ])(
|
14112 |
|
14113 | regeneratorRuntime.mark(function _callee() {
|
14114 | return regeneratorRuntime.wrap(function _callee$(_context) {
|
14115 | while (1) {
|
14116 | switch (_context.prev = _context.next) {
|
14117 | case 0:
|
14118 | this.editor.ready = false;
|
14119 | this.editor.title = this.titleEditor + ' - 新建 ';
|
14120 | this.editor.uuid = "";
|
14121 | this.editor.data = Object.assign({}, this.editorDefaultData);
|
14122 | this.editor.visible = true;
|
14123 | this.$emit("before-edit", this.editor.data);
|
14124 | this.editor.ready = true;
|
14125 |
|
14126 | case 7:
|
14127 | case "end":
|
14128 | return _context.stop();
|
14129 | }
|
14130 | }
|
14131 | }, _callee, this);
|
14132 | }));
|
14133 |
|
14134 | function handleAdd() {
|
14135 | return _handleAdd.apply(this, arguments);
|
14136 | }
|
14137 |
|
14138 | return handleAdd;
|
14139 | }(),
|
14140 | handleSave: function () {
|
14141 | var _handleSave = Object(asyncToGenerator["a" ])(
|
14142 |
|
14143 | regeneratorRuntime.mark(function _callee2() {
|
14144 | var resp;
|
14145 | return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
14146 | while (1) {
|
14147 | switch (_context2.prev = _context2.next) {
|
14148 | case 0:
|
14149 | _context2.next = 2;
|
14150 | return this.editorValidate();
|
14151 |
|
14152 | case 2:
|
14153 | _context2.next = 4;
|
14154 | return this.confirm(this.editor.data, "点击确定提交数据,请确认您的数据填写正确?");
|
14155 |
|
14156 | case 4:
|
14157 | this.editor.loading = true;
|
14158 | _context2.prev = 5;
|
14159 | this.$emit("before-save", this.editor.data);
|
14160 | _context2.next = 9;
|
14161 | return this.doSave(this.editor.data);
|
14162 |
|
14163 | case 9:
|
14164 | resp = _context2.sent;
|
14165 | this.pageTable.handleLoad();
|
14166 |
|
14167 | if (this.closeOnSave) {
|
14168 | this.editor.visible = false;
|
14169 | }
|
14170 |
|
14171 | Object.assign(this.editor.data, resp.data || {});
|
14172 | this.$emit("after-save", this.editor.data);
|
14173 |
|
14174 | case 14:
|
14175 | _context2.prev = 14;
|
14176 | this.editor.loading = false;
|
14177 | return _context2.finish(14);
|
14178 |
|
14179 | case 17:
|
14180 | case "end":
|
14181 | return _context2.stop();
|
14182 | }
|
14183 | }
|
14184 | }, _callee2, this, [[5,, 14, 17]]);
|
14185 | }));
|
14186 |
|
14187 | function handleSave() {
|
14188 | return _handleSave.apply(this, arguments);
|
14189 | }
|
14190 |
|
14191 | return handleSave;
|
14192 | }(),
|
14193 | handleEdit: function () {
|
14194 | var _handleEdit = Object(asyncToGenerator["a" ])(
|
14195 |
|
14196 | regeneratorRuntime.mark(function _callee3(row) {
|
14197 | var uuid;
|
14198 | return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
14199 | while (1) {
|
14200 | switch (_context3.prev = _context3.next) {
|
14201 | case 0:
|
14202 | _context3.prev = 0;
|
14203 | uuid = row.uuid;
|
14204 | this.editor.ready = false;
|
14205 | this.editor.title = this.titleEditor + ' - 编辑';
|
14206 | this.editor.visible = true;
|
14207 | this.editor.loading = true;
|
14208 | this.editor.uuid = row.uuid;
|
14209 | _context3.next = 9;
|
14210 | return this.doGet(uuid);
|
14211 |
|
14212 | case 9:
|
14213 | this.editor.data = _context3.sent;
|
14214 | this.$emit("before-edit", this.editor.data);
|
14215 | this.editor.ready = true;
|
14216 |
|
14217 | case 12:
|
14218 | _context3.prev = 12;
|
14219 | this.editor.loading = false;
|
14220 | return _context3.finish(12);
|
14221 |
|
14222 | case 15:
|
14223 | case "end":
|
14224 | return _context3.stop();
|
14225 | }
|
14226 | }
|
14227 | }, _callee3, this, [[0,, 12, 15]]);
|
14228 | }));
|
14229 |
|
14230 | function handleEdit(_x) {
|
14231 | return _handleEdit.apply(this, arguments);
|
14232 | }
|
14233 |
|
14234 | return handleEdit;
|
14235 | }(),
|
14236 | handleDelete: function () {
|
14237 | var _handleDelete = Object(asyncToGenerator["a" ])(
|
14238 |
|
14239 | regeneratorRuntime.mark(function _callee4(row) {
|
14240 | var uuid;
|
14241 | return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
14242 | while (1) {
|
14243 | switch (_context4.prev = _context4.next) {
|
14244 | case 0:
|
14245 | uuid = row.uuid;
|
14246 | _context4.next = 3;
|
14247 | return this.confirm();
|
14248 |
|
14249 | case 3:
|
14250 | _context4.next = 5;
|
14251 | return this.doDelete(uuid);
|
14252 |
|
14253 | case 5:
|
14254 | this.$emit("after-delete", uuid);
|
14255 | this.pageTable.handleLoad();
|
14256 |
|
14257 | case 7:
|
14258 | case "end":
|
14259 | return _context4.stop();
|
14260 | }
|
14261 | }
|
14262 | }, _callee4, this);
|
14263 | }));
|
14264 |
|
14265 | function handleDelete(_x2) {
|
14266 | return _handleDelete.apply(this, arguments);
|
14267 | }
|
14268 |
|
14269 | return handleDelete;
|
14270 | }()
|
14271 | }
|
14272 | });
|
14273 |
|
14274 | var plugin_CurdPanelvue_type_script_lang_js_ = (CurdPanelvue_type_script_lang_js_);
|
14275 |
|
14276 |
|
14277 |
|
14278 |
|
14279 |
|
14280 |
|
14281 |
|
14282 |
|
14283 | var CurdPanel_component = Object(componentNormalizer["a" ])(
|
14284 | plugin_CurdPanelvue_type_script_lang_js_,
|
14285 | CurdPanelvue_type_template_id_a6c3bcc0_render,
|
14286 | CurdPanelvue_type_template_id_a6c3bcc0_staticRenderFns,
|
14287 | false,
|
14288 | null,
|
14289 | null,
|
14290 | null
|
14291 |
|
14292 | )
|
14293 |
|
14294 | var CurdPanel = (CurdPanel_component.exports);
|
14295 |
|
14296 |
|
14297 |
|
14298 |
|
14299 |
|
14300 |
|
14301 | var mixin = ({
|
14302 | computed: {
|
14303 | sysCode: function sysCode() {
|
14304 | return this.$store.state.base.sysCode;
|
14305 | }
|
14306 | },
|
14307 | methods: {
|
14308 | |
14309 |
|
14310 |
|
14311 | formatterDate: function formatterDate(row, column, cellValue) {
|
14312 | return cellValue ? external_moment_default()(cellValue).format("LL") : null;
|
14313 | },
|
14314 | formatterDateTime: function formatterDateTime(row, column, cellValue) {
|
14315 | return cellValue ? external_moment_default()(cellValue).format("LL LTS") : null;
|
14316 | },
|
14317 |
|
14318 | |
14319 |
|
14320 |
|
14321 | confirm: function confirm(data) {
|
14322 | var txt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "您确定要这样做么?";
|
14323 | return this.$confirm(txt, {
|
14324 | confirmButtonText: "确定",
|
14325 | cancelButtonText: "取消",
|
14326 | type: "warning"
|
14327 | }).then(function () {
|
14328 | return data;
|
14329 | });
|
14330 | }
|
14331 | }
|
14332 | });
|
14333 |
|
14334 |
|
14335 |
|
14336 |
|
14337 |
|
14338 |
|
14339 |
|
14340 |
|
14341 |
|
14342 |
|
14343 |
|
14344 | var base_plugin = ({
|
14345 | install: function install(Vue, option) {
|
14346 | Vue.component("PageTable", plugin_PageTable);
|
14347 | Vue.component("SysCode", SysCode.component);
|
14348 | Vue.component("Selector", Selector);
|
14349 | Vue.component("Panel", Panel);
|
14350 | Vue.component("CurdPanel", CurdPanel);
|
14351 | Vue.component("ExportCtrl", ExportCtrl);
|
14352 | Vue.directive("sysCode", SysCode.directive);
|
14353 | Vue.directive("ButtonAuth", ButtonAuth);
|
14354 | Vue.directive("TableSort", TableSort);
|
14355 | Vue.mixin(mixin);
|
14356 | Vue.use(TabView_TabView);
|
14357 | }
|
14358 | });
|
14359 |
|
14360 |
|
14361 | var interval;
|
14362 | var intervalTime = 1000 * 10;
|
14363 | var topicSub = {};
|
14364 | var socket = null;
|
14365 |
|
14366 |
|
14367 |
|
14368 |
|
14369 |
|
14370 | var onmessage = function onmessage(message) {
|
14371 | var data = JSON.parse(message.data);
|
14372 | var topicSubs = topicSub[data.topic];
|
14373 |
|
14374 | if (topicSubs) {
|
14375 | for (var index in topicSubs) {
|
14376 | var processFn = topicSubs[index];
|
14377 | processFn(data);
|
14378 | }
|
14379 | }
|
14380 | };
|
14381 |
|
14382 |
|
14383 |
|
14384 |
|
14385 |
|
14386 | var bootstrap = function bootstrap() {
|
14387 | socket = null;
|
14388 | WebSocketService_connect();
|
14389 | interval = setInterval(WebSocketService_connect, intervalTime);
|
14390 | };
|
14391 |
|
14392 |
|
14393 |
|
14394 |
|
14395 |
|
14396 | var onopen = function onopen() {
|
14397 | clearInterval(interval);
|
14398 | socket.onmessage = onmessage;
|
14399 |
|
14400 | socket.onclose = bootstrap;
|
14401 |
|
14402 | socket.onerror = bootstrap;
|
14403 | };
|
14404 |
|
14405 |
|
14406 |
|
14407 |
|
14408 |
|
14409 |
|
14410 |
|
14411 | var onTopic = function onTopic(topic, serviceFn) {
|
14412 | topicSub[topic] = topicSub[topic] || [];
|
14413 | topicSub[topic].push(serviceFn);
|
14414 | };
|
14415 |
|
14416 |
|
14417 |
|
14418 |
|
14419 |
|
14420 | var WebSocketService_connect = function connect() {
|
14421 | if (socket != null && socket.readyState !== 3) {
|
14422 | return;
|
14423 | }
|
14424 |
|
14425 | try {
|
14426 | socket = new WebSocket("".concat(base_config["a" ].context.webSocketURL, "/cacheobserver"));
|
14427 | socket.onopen = onopen;
|
14428 | } catch (e) {}
|
14429 | };
|
14430 |
|
14431 | var WebSocketService = ({
|
14432 | bootstrap: bootstrap,
|
14433 | onTopic: onTopic,
|
14434 | connect: WebSocketService_connect
|
14435 | });
|
14436 |
|
14437 |
|
14438 |
|
14439 |
|
14440 | WebSocketService.onTopic("OBSERVER_TOPIC_CACHE_CODE", CacheService.OBSERVER_TOPIC_CACHE_CODE);
|
14441 | WebSocketService.onTopic("OBSERVER_TOPIC_CACHE_TREE", CacheService.OBSERVER_TOPIC_CACHE_TREE);
|
14442 | WebSocketService.onTopic("OBSERVER_TOPIC_EVENT", function (data) {
|
14443 | return data.message && external_element_ui_default.a.Notification.success({
|
14444 | message: data.message
|
14445 | });
|
14446 | });
|
14447 | var service = ({
|
14448 | WebSocketService: WebSocketService
|
14449 | });
|
14450 |
|
14451 | var Ajax = __webpack_require__("566f");
|
14452 |
|
14453 |
|
14454 | var external_localforage_ = __webpack_require__("c223");
|
14455 | var external_localforage_default = __webpack_require__.n(external_localforage_);
|
14456 |
|
14457 |
|
14458 |
|
14459 |
|
14460 | var libs_CacheStores = ({
|
14461 | codeListStore: external_localforage_default.a.createInstance({
|
14462 | name: base_config["a" ].prefixs.sysCodeList
|
14463 | }),
|
14464 | codeTreeStore: external_localforage_default.a.createInstance({
|
14465 | name: base_config["a" ].prefixs.sysCodeTree
|
14466 | }),
|
14467 | ajaxStore: external_localforage_default.a.createInstance({
|
14468 | name: base_config["a" ].prefixs.sysCode
|
14469 | })
|
14470 | });
|
14471 |
|
14472 |
|
14473 |
|
14474 |
|
14475 |
|
14476 |
|
14477 | var libs_CacheService_notify = function notify() {
|
14478 | external_element_ui_["Notification"].success({
|
14479 | title: "成功",
|
14480 | message: "系统字典已经更新."
|
14481 | });
|
14482 | };
|
14483 |
|
14484 | var libs_CacheService = ({
|
14485 |
|
14486 | OBSERVER_TOPIC_CACHE_CODE: function OBSERVER_TOPIC_CACHE_CODE(data) {
|
14487 | base_store["a" ].dispatch("refreshSysCode", data.message.codetype).then(libs_CacheService_notify);
|
14488 | },
|
14489 |
|
14490 | OBSERVER_TOPIC_CACHE_TREE: function OBSERVER_TOPIC_CACHE_TREE(data) {
|
14491 | libs_CacheStores.codeTreeStore.iterate(function (value, key, iterationNumber) {
|
14492 | if (key.startsWith(data.message.treetype)) {
|
14493 | libs_CacheStores.codeTreeStore.removeItem(key);
|
14494 | }
|
14495 | }).then(libs_CacheService_notify).then(function () {
|
14496 | libs_CacheStores.codeTreeStore.setItem("VERSION", data.message.version);
|
14497 | });
|
14498 | },
|
14499 |
|
14500 | |
14501 |
|
14502 |
|
14503 |
|
14504 |
|
14505 | repairWith: function repairWith(tocpic, version) {
|
14506 | if (!version) {
|
14507 | return;
|
14508 | }
|
14509 |
|
14510 | if (!tocpic) {
|
14511 | return;
|
14512 | }
|
14513 |
|
14514 |
|
14515 | if (tocpic === "OBSERVER_TOPIC_CACHE_TREE") {
|
14516 | libs_CacheStores.codeTreeStore.getItem("VERSION").then(function (data) {
|
14517 | if (data !== version) {
|
14518 | libs_CacheStores.codeTreeStore.iterate(function (value, key, iterationNumber) {
|
14519 | libs_CacheStores.codeTreeStore.removeItem(key);
|
14520 | });
|
14521 | }
|
14522 |
|
14523 | libs_CacheStores.codeTreeStore.setItem("VERSION", version);
|
14524 | });
|
14525 | }
|
14526 |
|
14527 |
|
14528 | if (tocpic === "OBSERVER_TOPIC_CACHE_CODE") {
|
14529 | libs_CacheStores.codeListStore.getItem("VERSION").then(function (data) {
|
14530 | if (data !== version) {
|
14531 | libs_CacheStores.codeListStore.iterate(function (value, key, iterationNumber) {
|
14532 | libs_CacheStores.codeListStore.removeItem(key);
|
14533 | });
|
14534 | }
|
14535 |
|
14536 | libs_CacheStores.codeListStore.setItem("VERSION", version);
|
14537 | });
|
14538 | }
|
14539 | }
|
14540 | });
|
14541 |
|
14542 | var CronValidator = __webpack_require__("550e");
|
14543 |
|
14544 |
|
14545 | var Util = __webpack_require__("e688");
|
14546 |
|
14547 |
|
14548 |
|
14549 | var WebSocketService_interval;
|
14550 | var WebSocketService_intervalTime = 1000 * 10;
|
14551 | var WebSocketService_topicSub = {};
|
14552 | var WebSocketService_socket = null;
|
14553 |
|
14554 |
|
14555 |
|
14556 |
|
14557 |
|
14558 | var WebSocketService_onmessage = function onmessage(message) {
|
14559 | var data = JSON.parse(message.data);
|
14560 | var topicSubs = WebSocketService_topicSub[data.topic];
|
14561 |
|
14562 | if (topicSubs) {
|
14563 | for (var index in topicSubs) {
|
14564 | var processFn = topicSubs[index];
|
14565 | processFn(data);
|
14566 | }
|
14567 | }
|
14568 | };
|
14569 |
|
14570 |
|
14571 |
|
14572 |
|
14573 |
|
14574 | var WebSocketService_bootstrap = function bootstrap() {
|
14575 | WebSocketService_socket = null;
|
14576 | libs_WebSocketService_connect();
|
14577 | WebSocketService_interval = setInterval(libs_WebSocketService_connect, WebSocketService_intervalTime);
|
14578 | };
|
14579 |
|
14580 |
|
14581 |
|
14582 |
|
14583 |
|
14584 | var WebSocketService_onopen = function onopen() {
|
14585 | clearInterval(WebSocketService_interval);
|
14586 | WebSocketService_socket.onmessage = WebSocketService_onmessage;
|
14587 |
|
14588 | WebSocketService_socket.onclose = WebSocketService_bootstrap;
|
14589 |
|
14590 | WebSocketService_socket.onerror = WebSocketService_bootstrap;
|
14591 | };
|
14592 |
|
14593 |
|
14594 |
|
14595 |
|
14596 |
|
14597 |
|
14598 |
|
14599 | var WebSocketService_onTopic = function onTopic(topic, serviceFn) {
|
14600 | WebSocketService_topicSub[topic] = WebSocketService_topicSub[topic] || [];
|
14601 | WebSocketService_topicSub[topic].push(serviceFn);
|
14602 | };
|
14603 |
|
14604 |
|
14605 |
|
14606 |
|
14607 |
|
14608 | var libs_WebSocketService_connect = function connect() {
|
14609 | if (WebSocketService_socket != null && WebSocketService_socket.readyState !== 3) {
|
14610 | return;
|
14611 | }
|
14612 |
|
14613 | try {
|
14614 | WebSocketService_socket = new WebSocket("".concat(base_config["a" ].context.webSocketURL, "cacheobserver"));
|
14615 | WebSocketService_socket.onopen = WebSocketService_onopen;
|
14616 | } catch (e) {}
|
14617 | };
|
14618 |
|
14619 | var libs_WebSocketService = ({
|
14620 | bootstrap: WebSocketService_bootstrap,
|
14621 | onTopic: WebSocketService_onTopic,
|
14622 | connect: libs_WebSocketService_connect
|
14623 | });
|
14624 |
|
14625 |
|
14626 |
|
14627 |
|
14628 |
|
14629 |
|
14630 |
|
14631 |
|
14632 |
|
14633 |
|
14634 | var styles = __webpack_require__("8873");
|
14635 |
|
14636 |
|
14637 | var Uploader = __webpack_require__("9384");
|
14638 |
|
14639 |
|
14640 | var TimeLine = __webpack_require__("9763");
|
14641 |
|
14642 |
|
14643 | var SelectorTree = __webpack_require__("3393");
|
14644 |
|
14645 |
|
14646 | var HandleHistory = __webpack_require__("e66d");
|
14647 |
|
14648 |
|
14649 | __webpack_require__.d(__webpack_exports__, "h", function() { return Uploader["a" ]; });
|
14650 | __webpack_require__.d(__webpack_exports__, "g", function() { return TimeLine["a" ]; });
|
14651 | __webpack_require__.d(__webpack_exports__, "f", function() { return SelectorTree["a" ]; });
|
14652 | __webpack_require__.d(__webpack_exports__, "c", function() { return HandleHistory["a" ]; });
|
14653 | __webpack_require__.d(__webpack_exports__, "a", function() { return Ajax["a" ]; });
|
14654 | __webpack_require__.d(__webpack_exports__, "i", function() { return Util["a" ]; });
|
14655 | __webpack_require__.d(__webpack_exports__, "e", function() { return libs_PageTable; });
|
14656 | __webpack_require__.d(__webpack_exports__, "j", function() { return base_config["a" ]; });
|
14657 | __webpack_require__.d(__webpack_exports__, "l", function() { return service; });
|
14658 | __webpack_require__.d(__webpack_exports__, "d", function() { return locale_locale; });
|
14659 | __webpack_require__.d(__webpack_exports__, "b", function() { return libs_CacheService; });
|
14660 |
|
14661 |
|
14662 |
|
14663 |
|
14664 |
|
14665 |
|
14666 |
|
14667 |
|
14668 |
|
14669 |
|
14670 |
|
14671 |
|
14672 |
|
14673 |
|
14674 |
|
14675 |
|
14676 |
|
14677 |
|
14678 |
|
14679 |
|
14680 |
|
14681 |
|
14682 |
|
14683 |
|
14684 | external_vue_default.a.use(base_plugin);
|
14685 | external_vue_default.a.locale("zh-CN", Object.assign(zh_CN_default.a, locale_locale["zh-CN"]));
|
14686 |
|
14687 |
|
14688 |
|
14689 |
|
14690 |
|
14691 | function base_bootstrap(cfg) {
|
14692 | cfg.stores = Object.assign(base_store["a" ], cfg.stores);
|
14693 | cfg.tabs = Object.assign(tab, cfg.tabs);
|
14694 | var routeMap = new Map();
|
14695 | base_router.forEach(function (route) {
|
14696 | routeMap.set(route.path, route);
|
14697 | });
|
14698 |
|
14699 | if (cfg.routes) {
|
14700 | cfg.routes.forEach(function (route) {
|
14701 | routeMap.set(route.path, route);
|
14702 | });
|
14703 | }
|
14704 |
|
14705 | cfg.routes = [];
|
14706 | routeMap.forEach(function (value, key) {
|
14707 | cfg.routes.push(value);
|
14708 | });
|
14709 |
|
14710 | Object.assign(base_config["a" ], cfg.config);
|
14711 |
|
14712 | base_config["a" ].init = cfg.init;
|
14713 |
|
14714 | var store = new external_vuex_default.a.Store({
|
14715 | modules: cfg.stores
|
14716 | });
|
14717 |
|
14718 | var router = new external_vue_router_default.a({
|
14719 | routes: cfg.routes
|
14720 | });
|
14721 |
|
14722 | var tabView = new TabView_TabView({
|
14723 | views: cfg.tabs
|
14724 | });
|
14725 |
|
14726 | service.WebSocketService.bootstrap();
|
14727 |
|
14728 | Ajax["a" ].defaults.baseURL = base_config["a" ].ajaxUrl;
|
14729 |
|
14730 | var el = cfg.el;
|
14731 |
|
14732 | var base = {
|
14733 | el: el,
|
14734 | asd: {},
|
14735 | router: router,
|
14736 | store: store,
|
14737 | tabView: tabView,
|
14738 | render: function render(h) {
|
14739 | return h("router-view");
|
14740 | }
|
14741 | };
|
14742 | return new external_vue_default.a(base);
|
14743 | }
|
14744 |
|
14745 |
|
14746 |
|
14747 |
|
14748 |
|
14749 |
|
14750 |
|
14751 |
|
14752 | var base_0 = __webpack_exports__["k"] = ({
|
14753 | bootstrap: base_bootstrap,
|
14754 | config: base_config["a" ]
|
14755 | });
|
14756 |
|
14757 | }),
|
14758 |
|
14759 | "bcb1":
|
14760 | (function(module, __webpack_exports__, __webpack_require__) {
|
14761 |
|
14762 | "use strict";
|
14763 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_TaskMgrEdit_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("344d");
|
14764 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_TaskMgrEdit_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_TaskMgrEdit_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
14765 |
|
14766 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_TaskMgrEdit_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
14767 |
|
14768 | }),
|
14769 |
|
14770 | "bf4f":
|
14771 | (function(module, __webpack_exports__, __webpack_require__) {
|
14772 |
|
14773 | "use strict";
|
14774 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Main_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("dfb6");
|
14775 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Main_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Main_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
14776 |
|
14777 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Main_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
14778 |
|
14779 | }),
|
14780 |
|
14781 | "c030":
|
14782 | (function(module, __webpack_exports__, __webpack_require__) {
|
14783 |
|
14784 | "use strict";
|
14785 | var _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("566f");
|
14786 |
|
14787 | __webpack_exports__["a"] = ({
|
14788 |
|
14789 | queryUser: function queryUser(params) {
|
14790 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usr/user/queryUsers", {
|
14791 | params: params
|
14792 | });
|
14793 | },
|
14794 |
|
14795 | getUser: function getUser(uuid) {
|
14796 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usr/user/getUser", {
|
14797 | params: {
|
14798 | uuid: uuid
|
14799 | }
|
14800 | }).then(function (data) {
|
14801 | return {
|
14802 | data: data
|
14803 | };
|
14804 | });
|
14805 | },
|
14806 |
|
14807 | userEdit: function userEdit(user) {
|
14808 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usr/user/userEdit", user);
|
14809 | },
|
14810 |
|
14811 | saveUser: function saveUser(user) {
|
14812 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usr/user/userSave", user);
|
14813 | },
|
14814 |
|
14815 | shutUser: function shutUser(params) {
|
14816 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usr/user/shutUser", params);
|
14817 | },
|
14818 |
|
14819 | lockUser: function lockUser(params) {
|
14820 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usr/user/lockUser", params);
|
14821 | },
|
14822 |
|
14823 | openUser: function openUser(params) {
|
14824 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usr/user/openUser", params);
|
14825 | },
|
14826 |
|
14827 | userPWReSet: function userPWReSet(uuid) {
|
14828 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].delete("/usr/user/userPWReSet", {
|
14829 | params: {
|
14830 | uuids: uuid
|
14831 | }
|
14832 | });
|
14833 | },
|
14834 |
|
14835 | resetPwd: function resetPwd(params) {
|
14836 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usr/user/resetPwd", params);
|
14837 | },
|
14838 |
|
14839 | getRoleUserByOrgId: function getRoleUserByOrgId(params) {
|
14840 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usr/user/getRoleUserByOrgId", {
|
14841 | params: params
|
14842 | });
|
14843 | },
|
14844 |
|
14845 | getUserInfo: function getUserInfo(uuid) {
|
14846 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usr/user/getUserInfo", {
|
14847 | params: {
|
14848 | uuid: uuid
|
14849 | }
|
14850 | });
|
14851 | },
|
14852 |
|
14853 | lockAndOpenUsers: function lockAndOpenUsers(data) {
|
14854 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usr/user/lockAndOpenUsers", data);
|
14855 | },
|
14856 |
|
14857 | getTimeLine: function getTimeLine(data) {
|
14858 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/usr/user/getTimeLine", {
|
14859 | params: data
|
14860 | });
|
14861 | },
|
14862 |
|
14863 | resetUserPw: function resetUserPw(data) {
|
14864 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].post("/usr/user/resetUserPw", data);
|
14865 | }
|
14866 | });
|
14867 |
|
14868 | }),
|
14869 |
|
14870 | "c223":
|
14871 | (function(module, exports) {
|
14872 |
|
14873 | module.exports = require("localforage");
|
14874 |
|
14875 | }),
|
14876 |
|
14877 | "c32d":
|
14878 | (function(module, exports) {
|
14879 |
|
14880 | module.exports = require("moment");
|
14881 |
|
14882 | }),
|
14883 |
|
14884 | "c45e":
|
14885 | (function(module, __webpack_exports__, __webpack_require__) {
|
14886 |
|
14887 | "use strict";
|
14888 | var contextPath = true ? "" : undefined;
|
14889 | var config = {
|
14890 | init: function init() {},
|
14891 | title: "数据预定平台",
|
14892 | companyInfo: "技术支持:大连易博特科技有限公司",
|
14893 | logo: "./img/logo.png",
|
14894 | embedHeader: null,
|
14895 | context: {
|
14896 | protocol: window.location.protocol,
|
14897 | domain: document.domain,
|
14898 | port: window.location.port,
|
14899 | webSocketURL: "ws://".concat(document.domain, ":").concat(window.location.port).concat(contextPath, "/")
|
14900 | },
|
14901 | ajaxUrl: contextPath,
|
14902 | tomeOut: 30000 * 2,
|
14903 | needLogin: true,
|
14904 |
|
14905 | loginToken: "cnetong_apps_entsvrplt_frontend",
|
14906 | codeMap: {
|
14907 | WrapType: "包装种类",
|
14908 | EdocCode: "随附单据文件类别"
|
14909 | },
|
14910 | prefixs: {
|
14911 | sysCodeList: "code:list",
|
14912 | sysCodeTree: "code:tree",
|
14913 | ajax: "ajax"
|
14914 | },
|
14915 | respCode: {
|
14916 | success: "000000",
|
14917 | failure: "000400",
|
14918 | validat: "000300",
|
14919 | timeout: "000100"
|
14920 | }
|
14921 | };
|
14922 | __webpack_exports__["a"] = (config);
|
14923 |
|
14924 | }),
|
14925 |
|
14926 | "c9de":
|
14927 | (function(module, exports) {
|
14928 |
|
14929 | module.exports = require("element-ui/lib/scrollbar");
|
14930 |
|
14931 | }),
|
14932 |
|
14933 | "ca48":
|
14934 | (function(module, exports, __webpack_require__) {
|
14935 |
|
14936 |
|
14937 |
|
14938 | }),
|
14939 |
|
14940 | "cc3d":
|
14941 | (function(module, exports) {
|
14942 |
|
14943 | module.exports = require("element-ui/lib/utils/clickoutside");
|
14944 |
|
14945 | }),
|
14946 |
|
14947 | "cebe":
|
14948 | (function(module, exports) {
|
14949 |
|
14950 | module.exports = require("axios");
|
14951 |
|
14952 | }),
|
14953 |
|
14954 | "cf33":
|
14955 | (function(module, __webpack_exports__, __webpack_require__) {
|
14956 |
|
14957 | "use strict";
|
14958 |
|
14959 |
|
14960 | var runtime_ = __webpack_require__("79d0");
|
14961 |
|
14962 |
|
14963 | var asyncToGenerator = __webpack_require__("e71e");
|
14964 |
|
14965 |
|
14966 | var es6_promise_ = __webpack_require__("b2cb");
|
14967 |
|
14968 |
|
14969 | var es6_object_assign_ = __webpack_require__("067b");
|
14970 |
|
14971 |
|
14972 | var external_vue_ = __webpack_require__("8bbf");
|
14973 | var external_vue_default = __webpack_require__.n(external_vue_);
|
14974 |
|
14975 |
|
14976 | var AcesAPI = __webpack_require__("6513");
|
14977 |
|
14978 |
|
14979 | var SysAPI = __webpack_require__("5fab");
|
14980 |
|
14981 |
|
14982 | var QueryDesignerAPI = __webpack_require__("00af");
|
14983 |
|
14984 |
|
14985 |
|
14986 |
|
14987 |
|
14988 |
|
14989 |
|
14990 |
|
14991 |
|
14992 |
|
14993 | var base = ({
|
14994 | namespaced: true,
|
14995 | state: {
|
14996 | lang: external_vue_default.a.config.lang,
|
14997 | queryDesign: [],
|
14998 | sysMenus: [],
|
14999 | sysUser: {},
|
15000 | sysCode: {},
|
15001 | loginTimeout: false,
|
15002 | loginChangePwd: false
|
15003 | },
|
15004 | mutations: {
|
15005 | updateState: function updateState(state, tab) {
|
15006 | Object.assign(state, tab);
|
15007 | },
|
15008 | SET_SYSCODE: function SET_SYSCODE(state, code) {
|
15009 | external_vue_default.a.set(state.sysCode, code.codeType, code.data);
|
15010 | state.sysCode[code.codeType] = code.data;
|
15011 | },
|
15012 | REMOVE_SYSCODE: function REMOVE_SYSCODE(state, codeType) {
|
15013 | state.sysCode = [];
|
15014 | },
|
15015 | SET_LOGIN: function SET_LOGIN(state, sysLogin) {
|
15016 | Object.assign(state.sysLogin, sysLogin);
|
15017 | }
|
15018 | },
|
15019 | actions: {
|
15020 | |
15021 |
|
15022 |
|
15023 | loadSysCode: function loadSysCode(_ref, codeType) {
|
15024 | var commit = _ref.commit,
|
15025 | dispatch = _ref.dispatch,
|
15026 | state = _ref.state;
|
15027 |
|
15028 |
|
15029 | if (state.sysCode[codeType] !== undefined) {
|
15030 | return new Promise(function (resolve, reject) {
|
15031 | resolve({
|
15032 | codeType: codeType,
|
15033 | data: state.sysCode[codeType]
|
15034 | });
|
15035 | });
|
15036 | }
|
15037 |
|
15038 |
|
15039 | return SysAPI["a" ].getAllCodes(codeType)
|
15040 | .then(function (data) {
|
15041 | commit("SET_SYSCODE", {
|
15042 | codeType: codeType,
|
15043 | data: data
|
15044 | });
|
15045 |
|
15046 | return {
|
15047 | codeType: codeType,
|
15048 | data: data
|
15049 | };
|
15050 | });
|
15051 | },
|
15052 |
|
15053 | |
15054 |
|
15055 |
|
15056 | refreshSysCode: function refreshSysCode(_ref2, codeType) {
|
15057 | var commit = _ref2.commit,
|
15058 | state = _ref2.state;
|
15059 | return SysAPI["a" ].getAllCodes(codeType, true).then(function (data) {
|
15060 | commit("SET_SYSCODE", {
|
15061 | codeType: codeType,
|
15062 | data: data
|
15063 | });
|
15064 | return data;
|
15065 | });
|
15066 | },
|
15067 |
|
15068 | |
15069 |
|
15070 |
|
15071 | timeout: function timeout(_ref3) {
|
15072 | var commit = _ref3.commit,
|
15073 | dispatch = _ref3.dispatch;
|
15074 | commit("SET_LOGIN", {
|
15075 | timeout: true
|
15076 | });
|
15077 | },
|
15078 |
|
15079 | |
15080 |
|
15081 |
|
15082 | getLoginInfo: function () {
|
15083 | var _getLoginInfo = Object(asyncToGenerator["a" ])(
|
15084 |
|
15085 | regeneratorRuntime.mark(function _callee(_ref4) {
|
15086 | var commit, data;
|
15087 | return regeneratorRuntime.wrap(function _callee$(_context) {
|
15088 | while (1) {
|
15089 | switch (_context.prev = _context.next) {
|
15090 | case 0:
|
15091 | commit = _ref4.commit;
|
15092 | _context.next = 3;
|
15093 | return AcesAPI["a" ].getLoginInfo();
|
15094 |
|
15095 | case 3:
|
15096 | data = _context.sent;
|
15097 | commit("updateState", {
|
15098 | sysUser: data
|
15099 | });
|
15100 | commit("updateState", {
|
15101 | sysMenus: data.menus
|
15102 | });
|
15103 | return _context.abrupt("return", data);
|
15104 |
|
15105 | case 7:
|
15106 | case "end":
|
15107 | return _context.stop();
|
15108 | }
|
15109 | }
|
15110 | }, _callee);
|
15111 | }));
|
15112 |
|
15113 | function getLoginInfo(_x) {
|
15114 | return _getLoginInfo.apply(this, arguments);
|
15115 | }
|
15116 |
|
15117 | return getLoginInfo;
|
15118 | }(),
|
15119 |
|
15120 | |
15121 |
|
15122 |
|
15123 | getQueryDesign: function getQueryDesign(_ref5) {
|
15124 | var commit = _ref5.commit;
|
15125 | return QueryDesignerAPI["a" ].loadDesignMine().then(function (data) {
|
15126 | commit("updateState", {
|
15127 | queryDesign: data
|
15128 | });
|
15129 | return data;
|
15130 | });
|
15131 | },
|
15132 | setPdfUuid: function setPdfUuid(_ref6, uuid) {
|
15133 | var commit = _ref6.commit,
|
15134 | dispatch = _ref6.dispatch,
|
15135 | state = _ref6.state;
|
15136 | commit("updateState", {
|
15137 | pdfUuid: uuid
|
15138 | });
|
15139 | }
|
15140 | }
|
15141 | });
|
15142 |
|
15143 |
|
15144 | var store = __webpack_exports__["a"] = ({
|
15145 | base: base
|
15146 | });
|
15147 |
|
15148 | }),
|
15149 |
|
15150 | "d034":
|
15151 | (function(module, exports, __webpack_require__) {
|
15152 |
|
15153 |
|
15154 |
|
15155 | }),
|
15156 |
|
15157 | "d036":
|
15158 | (function(module, exports) {
|
15159 |
|
15160 | module.exports = require("core-js/modules/es6.number.constructor");
|
15161 |
|
15162 | }),
|
15163 |
|
15164 | "d6d5":
|
15165 | (function(module, __webpack_exports__, __webpack_require__) {
|
15166 |
|
15167 | "use strict";
|
15168 | __webpack_require__.r(__webpack_exports__);
|
15169 |
|
15170 |
|
15171 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CurdPanel',{attrs:{"title-search-form":"通知管理","title-data-table":"通知列表","title-editor":"通知管理","editor-width":'600px',"editor-validate":_vm.validate,"doQuery":_vm.NoticeApi.doQuery,"doGet":_vm.NoticeApi.doGet,"doSave":_vm.NoticeApi.doSave,"doDelete":_vm.NoticeApi.doDelete,"close-on-save":"","autoLoad":""},scopedSlots:_vm._u([{key:"search-form",fn:function(ref){
|
15172 | var formData = ref.formData;
|
15173 | return [_c('el-form-item',{attrs:{"label":"通知用户","prop":"userName"}},[_c('el-input',{model:{value:(formData.userName),callback:function ($$v) {_vm.$set(formData, "userName", $$v)},expression:"formData.userName"}})],1)]}},{key:"editor",fn:function(ref){
|
15174 | var data = ref.data;
|
15175 | return [_c('el-form',{ref:"queryform",attrs:{"model":data,"label-width":"90px","show-message":"","label-position":"top"}},[_c('el-form-item',{staticClass:"flex-1",attrs:{"prop":"userName","label":"用户名","required":""}},[_c('el-input',{model:{value:(data.userName),callback:function ($$v) {_vm.$set(data, "userName", $$v)},expression:"data.userName"}})],1),_c('el-form-item',{staticClass:"flex-1",attrs:{"prop":"smsPhone","label":"短信号码"}},[_c('el-input',{model:{value:(data.smsPhone),callback:function ($$v) {_vm.$set(data, "smsPhone", $$v)},expression:"data.smsPhone"}})],1),_c('el-form-item',{staticClass:"flex-1",attrs:{"prop":"cellPhone","label":"手机号码"}},[_c('el-input',{model:{value:(data.cellPhone),callback:function ($$v) {_vm.$set(data, "cellPhone", $$v)},expression:"data.cellPhone"}})],1),_c('el-form-item',{staticClass:"flex-1",attrs:{"prop":"email","label":"电子邮箱"}},[_c('el-input',{model:{value:(data.email),callback:function ($$v) {_vm.$set(data, "email", $$v)},expression:"data.email"}})],1),_c('el-row',[_c('el-col',{attrs:{"span":8}},[_c('el-form-item',{staticClass:"flex-1",attrs:{"prop":"openSms","label":"短信通知"}},[_c('el-switch',{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":"1","inactive-value":"0","disabled":!/^\d{11}$/.test(data.smsPhone)},model:{value:(data.openSms),callback:function ($$v) {_vm.$set(data, "openSms", $$v)},expression:"data.openSms"}})],1)],1),_c('el-col',{attrs:{"span":8}},[_c('el-form-item',{staticClass:"flex-1",attrs:{"prop":"openCall","label":"电话通知"}},[_c('el-switch',{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":"1","inactive-value":"0","disabled":!/^\d{11}$/.test(data.cellPhone)},model:{value:(data.openCall),callback:function ($$v) {_vm.$set(data, "openCall", $$v)},expression:"data.openCall"}})],1)],1),_c('el-col',{attrs:{"span":8}},[_c('el-form-item',{staticClass:"flex-1",attrs:{"prop":"openEmail","label":"邮件通知"}},[_c('el-switch',{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":"1","inactive-value":"0","disabled":!/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(data.email)},model:{value:(data.openEmail),callback:function ($$v) {_vm.$set(data, "openEmail", $$v)},expression:"data.openEmail"}})],1)],1)],1)],1)]}}])},[_c('template',{slot:"table-columns"},[_c('el-table-column',{attrs:{"prop":"username","label":"通知用户","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"smsphone","label":"短信号码","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"cellphone","label":"手机号码","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"email","label":"电子邮箱","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"opensms","label":"短信通知","width":"120","show-overflow-tooltip":"","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.opensms==='1')?_c('i',{staticClass:"font-green-success el-icon-check",staticStyle:{"font-weight":"blod"}}):_vm._e(),(scope.row.opensms==='0')?_c('i',{staticClass:"font-red el-icon-close",staticStyle:{"font-weight":"blod"}}):_vm._e()]}}])}),_c('el-table-column',{attrs:{"prop":"opencall","label":"电话通知","width":"120","show-overflow-tooltip":"","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.opencall==='1')?_c('i',{staticClass:"font-green-success el-icon-check",staticStyle:{"font-weight":"blod"}}):_vm._e(),(scope.row.opencall==='0')?_c('i',{staticClass:"font-red el-icon-close",staticStyle:{"font-weight":"blod"}}):_vm._e()]}}])}),_c('el-table-column',{attrs:{"prop":"openemail","label":"邮件通知","width":"120","show-overflow-tooltip":"","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.openemail==='1')?_c('i',{staticClass:"font-green-success el-icon-check",staticStyle:{"font-weight":"blod"}}):_vm._e(),(scope.row.openemail==='0')?_c('i',{staticClass:"font-red el-icon-close",staticStyle:{"font-weight":"blod"}}):_vm._e()]}}])})],1)],2)}
|
15176 | var staticRenderFns = []
|
15177 |
|
15178 |
|
15179 |
|
15180 |
|
15181 |
|
15182 | var base = __webpack_require__("b367");
|
15183 |
|
15184 |
|
15185 | var Ajax = __webpack_require__("566f");
|
15186 |
|
15187 |
|
15188 |
|
15189 |
|
15190 | var NAME_SPACE = "/sys/notice";
|
15191 | var NoticeApi = ({
|
15192 | doQuery: function doQuery(params) {
|
15193 | return Ajax["a" ].get('/sys/notice/query', {
|
15194 | params: params
|
15195 | });
|
15196 | },
|
15197 | doGet: function doGet(uuid) {
|
15198 | return Ajax["a" ].get("/sys/notice/get/".concat(uuid));
|
15199 | },
|
15200 | doDelete: function doDelete(uuid) {
|
15201 | return Ajax["a" ].delete("/sys/notice/delete/".concat(uuid));
|
15202 | },
|
15203 | doSave: function doSave(data) {
|
15204 | return Ajax["a" ].post("/sys/notice/save", data);
|
15205 | }
|
15206 | });
|
15207 |
|
15208 |
|
15209 |
|
15210 |
|
15211 |
|
15212 |
|
15213 |
|
15214 |
|
15215 |
|
15216 |
|
15217 |
|
15218 |
|
15219 |
|
15220 |
|
15221 |
|
15222 |
|
15223 |
|
15224 |
|
15225 |
|
15226 |
|
15227 |
|
15228 |
|
15229 |
|
15230 |
|
15231 |
|
15232 |
|
15233 |
|
15234 |
|
15235 |
|
15236 |
|
15237 |
|
15238 |
|
15239 |
|
15240 |
|
15241 |
|
15242 |
|
15243 |
|
15244 |
|
15245 |
|
15246 |
|
15247 |
|
15248 |
|
15249 |
|
15250 |
|
15251 |
|
15252 |
|
15253 |
|
15254 |
|
15255 |
|
15256 |
|
15257 |
|
15258 |
|
15259 |
|
15260 |
|
15261 |
|
15262 |
|
15263 |
|
15264 |
|
15265 |
|
15266 |
|
15267 |
|
15268 |
|
15269 |
|
15270 |
|
15271 |
|
15272 |
|
15273 |
|
15274 |
|
15275 |
|
15276 |
|
15277 |
|
15278 |
|
15279 |
|
15280 |
|
15281 |
|
15282 |
|
15283 |
|
15284 |
|
15285 |
|
15286 |
|
15287 |
|
15288 |
|
15289 |
|
15290 | var Noticevue_type_script_lang_js_ = ({
|
15291 | name: "SampleCurd",
|
15292 | data: function data() {
|
15293 | return {
|
15294 | NoticeApi: NoticeApi
|
15295 | };
|
15296 | },
|
15297 | methods: {
|
15298 | validate: function validate() {
|
15299 | return this.$refs["queryform"].validate();
|
15300 | }
|
15301 | }
|
15302 | });
|
15303 |
|
15304 | var sysm_Noticevue_type_script_lang_js_ = (Noticevue_type_script_lang_js_);
|
15305 |
|
15306 | var componentNormalizer = __webpack_require__("6691");
|
15307 |
|
15308 |
|
15309 |
|
15310 |
|
15311 |
|
15312 |
|
15313 |
|
15314 |
|
15315 |
|
15316 | var component = Object(componentNormalizer["a" ])(
|
15317 | sysm_Noticevue_type_script_lang_js_,
|
15318 | render,
|
15319 | staticRenderFns,
|
15320 | false,
|
15321 | null,
|
15322 | "1b8a3c66",
|
15323 | null
|
15324 |
|
15325 | )
|
15326 |
|
15327 | var Notice = __webpack_exports__["default"] = (component.exports);
|
15328 |
|
15329 | }),
|
15330 |
|
15331 | "d903":
|
15332 | (function(module, exports, __webpack_require__) {
|
15333 |
|
15334 |
|
15335 |
|
15336 | }),
|
15337 |
|
15338 | "dc65":
|
15339 | (function(module, exports) {
|
15340 |
|
15341 | module.exports = require("current-script-polyfill");
|
15342 |
|
15343 | }),
|
15344 |
|
15345 | "de68":
|
15346 | (function(module, __webpack_exports__, __webpack_require__) {
|
15347 |
|
15348 | "use strict";
|
15349 |
|
15350 |
|
15351 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('PageTable',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:"dataTable",attrs:{"auto-load":false,"page-size":10,"data":_vm.table.data,"highlight-current-row":"","stripe":"","border":""},on:{"load-data":_vm.dataTableLoad}},[_c('el-table-column',{attrs:{"type":"expand"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('pre',{staticStyle:{"white-space":"-o-pre-wrap","word-wrap":"break-word"}},[_vm._v(_vm._s(scope.row.sesql))])]}}])}),_c('el-table-column',{attrs:{"prop":"optime","label":"操作时间","formatter":_vm.formatterDateTime,"show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"sesqlelap","label":"执行时间(毫秒)","show-overflow-tooltip":""}})],1)],1)}
|
15352 | var staticRenderFns = []
|
15353 |
|
15354 |
|
15355 |
|
15356 |
|
15357 |
|
15358 | var LogsServ = __webpack_require__("f29a");
|
15359 |
|
15360 |
|
15361 |
|
15362 |
|
15363 |
|
15364 |
|
15365 |
|
15366 |
|
15367 |
|
15368 |
|
15369 |
|
15370 |
|
15371 |
|
15372 |
|
15373 |
|
15374 |
|
15375 |
|
15376 | var LogsSqlDatavue_type_script_lang_js_ = ({
|
15377 | props: {
|
15378 | seuuid: String
|
15379 | },
|
15380 | data: function data() {
|
15381 | return {
|
15382 | table: {
|
15383 | data: []
|
15384 | },
|
15385 | editor: {
|
15386 | sql: "",
|
15387 | show: false
|
15388 | },
|
15389 | loading: false
|
15390 | };
|
15391 | },
|
15392 | mounted: function mounted() {
|
15393 | this.loadInfo(this.seuuid);
|
15394 | },
|
15395 | watch: {
|
15396 | seuuid: function seuuid(_seuuid) {
|
15397 | this.loadInfo(this.seuuid);
|
15398 | }
|
15399 | },
|
15400 | methods: {
|
15401 |
|
15402 | loadInfo: function loadInfo(uuid) {
|
15403 | this.loading = true;
|
15404 | this.$refs.dataTable.load({
|
15405 | seid: uuid
|
15406 | });
|
15407 | },
|
15408 | dataTableLoad: function dataTableLoad(params, resolve) {
|
15409 | var _this = this;
|
15410 |
|
15411 | LogsServ["a" ].queryLogsSqlData(params).then(resolve)
|
15412 | .then(function (respData) {
|
15413 | _this.table.data = respData.datarows;
|
15414 | _this.loading = false;
|
15415 | });
|
15416 | },
|
15417 | showInfo: function showInfo(sql) {
|
15418 | var _this2 = this;
|
15419 |
|
15420 | this.editor.sql = "";
|
15421 | LogsServ["a" ].SqlFormat(sql).then(function (resp) {
|
15422 | _this2.editor.sql = resp.dataInfo;
|
15423 | _this2.editor.show = true;
|
15424 | });
|
15425 | }
|
15426 | }
|
15427 | });
|
15428 |
|
15429 | var logs_LogsSqlDatavue_type_script_lang_js_ = (LogsSqlDatavue_type_script_lang_js_);
|
15430 |
|
15431 | var componentNormalizer = __webpack_require__("6691");
|
15432 |
|
15433 |
|
15434 |
|
15435 |
|
15436 |
|
15437 |
|
15438 |
|
15439 |
|
15440 |
|
15441 | var component = Object(componentNormalizer["a" ])(
|
15442 | logs_LogsSqlDatavue_type_script_lang_js_,
|
15443 | render,
|
15444 | staticRenderFns,
|
15445 | false,
|
15446 | null,
|
15447 | null,
|
15448 | null
|
15449 |
|
15450 | )
|
15451 |
|
15452 | var LogsSqlData = __webpack_exports__["a"] = (component.exports);
|
15453 |
|
15454 | }),
|
15455 |
|
15456 | "dfb6":
|
15457 | (function(module, exports, __webpack_require__) {
|
15458 |
|
15459 |
|
15460 |
|
15461 | }),
|
15462 |
|
15463 | "e194":
|
15464 | (function(module, __webpack_exports__, __webpack_require__) {
|
15465 |
|
15466 | "use strict";
|
15467 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_HandleHistory_vue_vue_type_style_index_0_id_555c5032_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7825");
|
15468 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_HandleHistory_vue_vue_type_style_index_0_id_555c5032_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_HandleHistory_vue_vue_type_style_index_0_id_555c5032_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
15469 |
|
15470 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_HandleHistory_vue_vue_type_style_index_0_id_555c5032_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
15471 |
|
15472 | }),
|
15473 |
|
15474 | "e1f2":
|
15475 | (function(module, __webpack_exports__, __webpack_require__) {
|
15476 |
|
15477 | "use strict";
|
15478 | __webpack_require__.r(__webpack_exports__);
|
15479 |
|
15480 |
|
15481 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"flex-h card-height-full"},[(_vm.rightBlock)?_c('el-card',{staticClass:"flex-2 full"},[_c('template',{slot:"header"},[_c('span',[_vm._v("代码项分组")]),_c('div',{staticClass:"pull-right"},[_c('el-input',{staticClass:"margin-right-3",staticStyle:{"width":"100px"},attrs:{"placeholder":"分组过滤","prefix-icon":"el-icon-search"},model:{value:(_vm.codeType.keyword),callback:function ($$v) {_vm.$set(_vm.codeType, "keyword", $$v)},expression:"codeType.keyword"}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-refresh","title":"刷新"},on:{"click":_vm.queryCodeType}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-plus","title":"添加"},on:{"click":_vm.handleAddCodeType}}),_c('el-button',{attrs:{"type":"primary","icon":!_vm.leftBlock?'el-icon-caret-left':'el-icon-caret-right'},on:{"click":function($event){_vm.leftBlock=!_vm.leftBlock}}})],1)]),_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.codeType.loading),expression:"codeType.loading"}],ref:"codeTypeTable",staticClass:"group-table",attrs:{"data":_vm.filterBy(_vm.codeType.data, _vm.codeType.keyword,'codeTypeName','codeTypeValue'),"border":"","stripe":"","highlight-current-row":""},on:{"current-change":_vm.handleCurrentCodeTypeChange}},[_c('el-table-column',{attrs:{"label":"名称","prop":"codeTypeName"}}),_c('el-table-column',{attrs:{"label":"编码","prop":"codeTypeValue"}}),_c('el-table-column',{attrs:{"label":"类型","prop":"codeKind","formatter":_vm.formatterCodeKind}}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"70"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-edit","title":"编辑"},on:{"click":function($event){$event.stopPropagation();return _vm.handleEditCodeType(scope.$index, scope.row)}}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-trash","title":"删除"},on:{"click":function($event){$event.stopPropagation();return _vm.handleDeleteCodeType(scope.$index, scope.row)}}})]}}],null,false,709706194)})],1)],2):_vm._e(),(_vm.leftBlock)?_c('el-card',{staticClass:"flex-2 margin-left-2 full",staticStyle:{"min-height":"400px"}},[_c('template',{slot:"header"},[_c('span',[_vm._v("代码详情编辑")]),_c('div',{staticClass:"pull-right"},[_c('el-input',{staticClass:"margin-right-3",staticStyle:{"width":"100px"},attrs:{"placeholder":"字典过滤","prefix-icon":"el-icon-search"},model:{value:(_vm.codeDetail.keyword),callback:function ($$v) {_vm.$set(_vm.codeDetail, "keyword", $$v)},expression:"codeDetail.keyword"}}),_c('el-button',{attrs:{"type":"primary","disabled":!_vm.current.codeType,"icon":"el-icon-fa-refresh","title":"查询"},on:{"click":_vm.queryCodeByType}}),_c('el-button',{attrs:{"type":"primary","disabled":!_vm.current.codeType,"icon":"el-icon-fa-plus","title":"新增字典"},on:{"click":_vm.handleAddCode}}),_c('el-button',{attrs:{"type":"primary","icon":_vm.rightBlock?'el-icon-caret-left':'el-icon-caret-right'},on:{"click":function($event){_vm.rightBlock=!_vm.rightBlock}}})],1)]),_c('el-table',{directives:[{name:"show",rawName:"v-show",value:(_vm.detailType==='list'),expression:"detailType==='list'"}],attrs:{"data":_vm.filterBy(_vm.codeDetail.data, _vm.codeDetail.keyword,'codeValue','codeName'),"border":"","stripe":"","highlight-current-row":""}},[_c('el-table-column',{attrs:{"prop":"codeValue","label":"代码名称","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"prop":"codeName","label":"代码值"}}),_c('el-table-column',{attrs:{"prop":"ordeNo","label":"排序级别"}}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"70"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-edit","title":"编辑"},on:{"click":function($event){$event.stopPropagation();return _vm.handleEditCode(scope.$index, scope.row)}}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-trash","title":"删除"},on:{"click":function($event){$event.stopPropagation();return _vm.handleDeleteCode(scope.$index, scope.row)}}})]}}],null,false,3940222482)})],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.detailType==='tree'),expression:"detailType==='tree'"}],staticClass:"flex-h"},[_c('el-tree',{ref:"codeTree",staticClass:"flex-1",attrs:{"node-key":"uuid","data":_vm.codeTreeData,"props":_vm.codeDetail.treeProps,"highlight-current":"","expand-on-click-node":false,"default-expand-all":""},on:{"current-change":_vm.handleTreeNodeChange}}),_c('el-table',{staticClass:"flex-2 margin-left-1 ",attrs:{"data":_vm.current.code.children,"border":"","stripe":"","highlight-current-row":""}},[_c('el-table-column',{attrs:{"prop":"codeValue","label":"代码键"}}),_c('el-table-column',{attrs:{"prop":"codeName","label":"代码值"}}),_c('el-table-column',{attrs:{"prop":"ordeNo","label":"排序级别"}}),_c('el-table-column',{attrs:{"label":"操作","fixed":"right","width":"120"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-edit","title":"编辑"},on:{"click":function($event){$event.stopPropagation();return _vm.handleEditCode(scope.$index, scope.row)}}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-trash","title":"删除"},on:{"click":function($event){$event.stopPropagation();return _vm.handleDeleteCode(scope.$index, scope.row)}}})]}}],null,false,3940222482)})],1)],1)],2):_vm._e(),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","width":"500px","title":"代码项编辑","visible":_vm.codeType.editor.visible,"close-on-click-modal":false},on:{"update:visible":function($event){return _vm.$set(_vm.codeType.editor, "visible", $event)}}},[_c('div',{staticClass:"dialog-button"},[_c('el-button',{attrs:{"type":"primary","plain":"","loading":_vm.codeType.editor.saving,"icon":"el-icon-fa-save","title":"提交"},on:{"click":_vm.handleSubmitCodeType}})],1),(_vm.codeType.editor.visible)?_c('CodeTypeEditor',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.codeType.editor.saving),expression:"codeType.editor.saving"}],ref:"codeTypeEditor",attrs:{"data":_vm.codeType.editor.data,"error":_vm.codeType.editor.error}}):_vm._e()],1),_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","width":"600px","title":"代码详情编辑","visible":_vm.codeDetail.editor.visible,"close-on-click-modal":false},on:{"update:visible":function($event){return _vm.$set(_vm.codeDetail.editor, "visible", $event)}}},[_c('div',{staticClass:"dialog-button"},[_c('el-button',{attrs:{"type":"primary","plain":"","loading":_vm.codeDetail.editor.saving,"icon":"el-icon-fa-save","title":"提交"},on:{"click":_vm.handleSubmitCode}})],1),(_vm.codeDetail.editor.visible)?_c('CodeEditor',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.codeDetail.editor.saving),expression:"codeDetail.editor.saving"}],ref:"codeEditor",attrs:{"data":_vm.codeDetail.editor.data,"error":_vm.codeDetail.editor.error}}):_vm._e()],1)],1)}
|
15482 | var staticRenderFns = []
|
15483 |
|
15484 |
|
15485 |
|
15486 |
|
15487 |
|
15488 | var es6_object_assign_ = __webpack_require__("067b");
|
15489 |
|
15490 |
|
15491 | var Ajax = __webpack_require__("566f");
|
15492 |
|
15493 |
|
15494 |
|
15495 | var CodeAPI = ({
|
15496 |
|
15497 | queryCodeByType: function queryCodeByType(codeType) {
|
15498 | return Ajax["a" ].get("/sys/code/queryCodeByType", {
|
15499 | params: {
|
15500 | codeType: codeType
|
15501 | }
|
15502 | });
|
15503 | },
|
15504 |
|
15505 | saveCode: function saveCode(code) {
|
15506 | return Ajax["a" ].post("/sys/code/saveCode", code);
|
15507 | },
|
15508 |
|
15509 | delCode: function delCode(uuid) {
|
15510 | return Ajax["a" ].delete("/sys/code/delCode", {
|
15511 | params: {
|
15512 | uuid: uuid
|
15513 | }
|
15514 | });
|
15515 | },
|
15516 |
|
15517 | getCode: function getCode(uuid) {
|
15518 | return Ajax["a" ].get("/sys/code/getCode", {
|
15519 | params: {
|
15520 | uuid: uuid
|
15521 | }
|
15522 | });
|
15523 | },
|
15524 |
|
15525 | queryCodeType: function queryCodeType() {
|
15526 | return Ajax["a" ].get("/sys/code/queryCodeType");
|
15527 | },
|
15528 |
|
15529 | saveCodeType: function saveCodeType(codeType) {
|
15530 | return Ajax["a" ].post("/sys/code/saveCodeType", codeType);
|
15531 | },
|
15532 |
|
15533 | deleteCodeType: function deleteCodeType(uuid) {
|
15534 | return Ajax["a" ].delete("/sys/code/deleteCodeType", {
|
15535 | params: {
|
15536 | uuid: uuid
|
15537 | }
|
15538 | });
|
15539 | },
|
15540 |
|
15541 | findCode: function findCode(keyword) {
|
15542 | return Ajax["a" ].get("/sys/code/findCode", {
|
15543 | params: {
|
15544 | keyword: keyword
|
15545 | }
|
15546 | });
|
15547 | }
|
15548 | });
|
15549 |
|
15550 | var CodeTypeEditorvue_type_template_id_02135e0f_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-form',{ref:"form",attrs:{"label-position":"top","model":_vm.data,"rules":_vm.rules}},[_c('el-form-item',{attrs:{"label":"名称","prop":"codeTypeName","error":_vm.error.codeTypeName}},[_c('el-input',{attrs:{"maxlength":"50"},model:{value:(_vm.data.codeTypeName),callback:function ($$v) {_vm.$set(_vm.data, "codeTypeName", $$v)},expression:"data.codeTypeName"}})],1),_c('el-form-item',{attrs:{"label":"编码","prop":"codeTypeValue","error":_vm.error.codeTypeValue}},[_c('el-input',{attrs:{"maxlength":"50"},model:{value:(_vm.data.codeTypeValue),callback:function ($$v) {_vm.$set(_vm.data, "codeTypeValue", $$v)},expression:"data.codeTypeValue"}})],1),_c('el-form-item',{attrs:{"label":"类型","prop":"codeKind","error":_vm.error.codeKind}},[_c('el-radio-group',{model:{value:(_vm.data.codeKind),callback:function ($$v) {_vm.$set(_vm.data, "codeKind", $$v)},expression:"data.codeKind"}},[_c('el-radio',{attrs:{"label":"1"}},[_vm._v("列表")]),_c('el-radio',{attrs:{"label":"2"}},[_vm._v("树状")])],1)],1)],1),(_vm.data.uuid)?_c('HandleHistory',{staticClass:"margin-top-1 margin-bottom-1",attrs:{"uuid":_vm.data.uuid,"cr-user-uuid":_vm.data.crUserUuid,"op-user-uuid":_vm.data.opUserUuid,"cr-time":_vm.data.crTime,"op-time":_vm.data.opTime,"mode":"plan"}}):_vm._e()],1)}
|
15551 | var CodeTypeEditorvue_type_template_id_02135e0f_staticRenderFns = []
|
15552 |
|
15553 |
|
15554 |
|
15555 |
|
15556 |
|
15557 | var HandleHistory = __webpack_require__("e66d");
|
15558 |
|
15559 |
|
15560 |
|
15561 |
|
15562 |
|
15563 |
|
15564 |
|
15565 |
|
15566 |
|
15567 |
|
15568 |
|
15569 |
|
15570 |
|
15571 |
|
15572 |
|
15573 |
|
15574 |
|
15575 |
|
15576 |
|
15577 |
|
15578 |
|
15579 |
|
15580 | var CodeTypeEditorvue_type_script_lang_js_ = ({
|
15581 | components: {
|
15582 | HandleHistory: HandleHistory["a" ]
|
15583 | },
|
15584 | props: {
|
15585 | data: Object,
|
15586 | error: Object
|
15587 | },
|
15588 | data: function data() {
|
15589 | return {
|
15590 | rules: {
|
15591 | codeTypeName: [{
|
15592 | required: true,
|
15593 | message: "请输入代码标识!"
|
15594 | }],
|
15595 | codeTypeValue: [{
|
15596 | required: true,
|
15597 | message: "请输入代码名称!"
|
15598 | }]
|
15599 | }
|
15600 | };
|
15601 | },
|
15602 | methods: {
|
15603 |
|
15604 |
|
15605 | validate: function validate() {
|
15606 | var _this = this;
|
15607 |
|
15608 | return this.$refs.form.validate().then(function () {
|
15609 | return _this.data;
|
15610 | });
|
15611 | }
|
15612 | }
|
15613 | });
|
15614 |
|
15615 | var sysm_CodeTypeEditorvue_type_script_lang_js_ = (CodeTypeEditorvue_type_script_lang_js_);
|
15616 |
|
15617 | var componentNormalizer = __webpack_require__("6691");
|
15618 |
|
15619 |
|
15620 |
|
15621 |
|
15622 |
|
15623 |
|
15624 |
|
15625 |
|
15626 |
|
15627 | var component = Object(componentNormalizer["a" ])(
|
15628 | sysm_CodeTypeEditorvue_type_script_lang_js_,
|
15629 | CodeTypeEditorvue_type_template_id_02135e0f_render,
|
15630 | CodeTypeEditorvue_type_template_id_02135e0f_staticRenderFns,
|
15631 | false,
|
15632 | null,
|
15633 | null,
|
15634 | null
|
15635 |
|
15636 | )
|
15637 |
|
15638 | var CodeTypeEditor = (component.exports);
|
15639 |
|
15640 | var CodeEditorvue_type_template_id_2f08cdd4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-form',{ref:"form",attrs:{"label-position":"top","model":_vm.data,"rules":_vm.rules}},[_c('div',{staticClass:"flex-h"},[_c('el-form-item',{staticClass:"flex-1",attrs:{"label":"编码","prop":"codeTypeValue"}},[_c('el-input',{attrs:{"disabled":"","length":"50"},model:{value:(_vm.data.codeTypeValue),callback:function ($$v) {_vm.$set(_vm.data, "codeTypeValue", $$v)},expression:"data.codeTypeValue"}})],1),_c('el-form-item',{staticClass:"flex-1",attrs:{"label":"名称","prop":"codeTypeName"}},[_c('el-input',{attrs:{"disabled":"","length":"50"},model:{value:(_vm.data.codeTypeName),callback:function ($$v) {_vm.$set(_vm.data, "codeTypeName", $$v)},expression:"data.codeTypeName"}})],1)],1),_c('div',{staticClass:"lfex-h"},[_c('el-form-item',{attrs:{"label":"代码名称","prop":"codeValue","error":_vm.error.codeValue}},[_c('el-input',{attrs:{"type":"text","minlength":6,"maxlength":"40"},model:{value:(_vm.data.codeValue),callback:function ($$v) {_vm.$set(_vm.data, "codeValue", $$v)},expression:"data.codeValue"}})],1),_c('el-form-item',{attrs:{"label":"代码值","prop":"codeName","error":_vm.error.codeName}},[_c('el-input',{attrs:{"type":"text","minlength":6,"maxlength":"40"},model:{value:(_vm.data.codeName),callback:function ($$v) {_vm.$set(_vm.data, "codeName", $$v)},expression:"data.codeName"}})],1)],1),_c('div',{staticClass:"flex-h"},[_c('el-form-item',{staticClass:"flex-1",staticStyle:{"width":"50%"},attrs:{"label":"排序级别","prop":"ordeNo","error":_vm.error.ordeNo}},[_c('el-input-number',{attrs:{"type":"number","minlength":6},model:{value:(_vm.data.ordeNo),callback:function ($$v) {_vm.$set(_vm.data, "ordeNo", $$v)},expression:"data.ordeNo"}})],1),_c('el-form-item',{staticClass:"flex-1",attrs:{"label":"启用状态","prop":"enabled"}},[_c('el-radio-group',{attrs:{"error":_vm.error.enabled},model:{value:(_vm.data.enabled),callback:function ($$v) {_vm.$set(_vm.data, "enabled", $$v)},expression:"data.enabled"}},[_c('el-radio',{attrs:{"label":"0"}},[_vm._v("禁用")]),_c('el-radio',{attrs:{"label":"1"}},[_vm._v("启用")])],1)],1)],1),_c('el-form-item',{attrs:{"label":"扩展数据","prop":"extend","error":_vm.error.extend}},[_c('el-input',{attrs:{"type":"textarea"},model:{value:(_vm.data.extend),callback:function ($$v) {_vm.$set(_vm.data, "extend", $$v)},expression:"data.extend"}})],1)],1),(_vm.data.uuid)?_c('HandleHistory',{staticClass:"margin-top-1 margin-bottom-1",attrs:{"uuid":_vm.data.uuid,"cr-user-uuid":_vm.data.crUserUuid,"op-user-uuid":_vm.data.opUserUuid,"cr-time":_vm.data.crTime,"op-time":_vm.data.opTime,"mode":"plan"}}):_vm._e()],1)}
|
15641 | var CodeEditorvue_type_template_id_2f08cdd4_staticRenderFns = []
|
15642 |
|
15643 |
|
15644 |
|
15645 |
|
15646 |
|
15647 |
|
15648 |
|
15649 |
|
15650 |
|
15651 |
|
15652 |
|
15653 |
|
15654 |
|
15655 |
|
15656 |
|
15657 |
|
15658 |
|
15659 |
|
15660 |
|
15661 |
|
15662 |
|
15663 |
|
15664 |
|
15665 |
|
15666 |
|
15667 |
|
15668 |
|
15669 |
|
15670 |
|
15671 |
|
15672 |
|
15673 |
|
15674 |
|
15675 |
|
15676 |
|
15677 |
|
15678 |
|
15679 |
|
15680 |
|
15681 |
|
15682 |
|
15683 |
|
15684 |
|
15685 | var CodeEditorvue_type_script_lang_js_ = ({
|
15686 | components: {
|
15687 | HandleHistory: HandleHistory["a" ]
|
15688 | },
|
15689 | props: {
|
15690 | data: Object,
|
15691 | error: Object
|
15692 | },
|
15693 | data: function data() {
|
15694 | return {
|
15695 | rules: {
|
15696 | codeName: [{
|
15697 | required: true
|
15698 | }],
|
15699 | codeValue: [{
|
15700 | required: true
|
15701 | }]
|
15702 | }
|
15703 | };
|
15704 | },
|
15705 | methods: {
|
15706 |
|
15707 |
|
15708 | validate: function validate() {
|
15709 | var _this = this;
|
15710 |
|
15711 | return this.$refs.form.validate().then(function () {
|
15712 | return _this.data;
|
15713 | });
|
15714 | }
|
15715 | }
|
15716 | });
|
15717 |
|
15718 | var sysm_CodeEditorvue_type_script_lang_js_ = (CodeEditorvue_type_script_lang_js_);
|
15719 |
|
15720 |
|
15721 |
|
15722 |
|
15723 |
|
15724 |
|
15725 |
|
15726 |
|
15727 | var CodeEditor_component = Object(componentNormalizer["a" ])(
|
15728 | sysm_CodeEditorvue_type_script_lang_js_,
|
15729 | CodeEditorvue_type_template_id_2f08cdd4_render,
|
15730 | CodeEditorvue_type_template_id_2f08cdd4_staticRenderFns,
|
15731 | false,
|
15732 | null,
|
15733 | null,
|
15734 | null
|
15735 |
|
15736 | )
|
15737 |
|
15738 | var CodeEditor = (CodeEditor_component.exports);
|
15739 |
|
15740 |
|
15741 |
|
15742 |
|
15743 |
|
15744 |
|
15745 |
|
15746 |
|
15747 |
|
15748 |
|
15749 |
|
15750 |
|
15751 |
|
15752 |
|
15753 |
|
15754 |
|
15755 |
|
15756 |
|
15757 |
|
15758 |
|
15759 |
|
15760 |
|
15761 |
|
15762 |
|
15763 |
|
15764 |
|
15765 |
|
15766 |
|
15767 |
|
15768 |
|
15769 |
|
15770 |
|
15771 |
|
15772 |
|
15773 |
|
15774 |
|
15775 |
|
15776 |
|
15777 |
|
15778 |
|
15779 |
|
15780 |
|
15781 |
|
15782 |
|
15783 |
|
15784 |
|
15785 |
|
15786 |
|
15787 |
|
15788 |
|
15789 |
|
15790 |
|
15791 |
|
15792 |
|
15793 |
|
15794 |
|
15795 |
|
15796 |
|
15797 |
|
15798 |
|
15799 |
|
15800 |
|
15801 |
|
15802 |
|
15803 |
|
15804 |
|
15805 |
|
15806 |
|
15807 |
|
15808 |
|
15809 |
|
15810 |
|
15811 |
|
15812 |
|
15813 |
|
15814 |
|
15815 |
|
15816 |
|
15817 |
|
15818 |
|
15819 |
|
15820 |
|
15821 |
|
15822 |
|
15823 |
|
15824 |
|
15825 |
|
15826 |
|
15827 |
|
15828 |
|
15829 |
|
15830 |
|
15831 |
|
15832 |
|
15833 |
|
15834 |
|
15835 |
|
15836 |
|
15837 |
|
15838 |
|
15839 |
|
15840 |
|
15841 |
|
15842 |
|
15843 |
|
15844 |
|
15845 |
|
15846 |
|
15847 |
|
15848 |
|
15849 |
|
15850 |
|
15851 |
|
15852 |
|
15853 | var defaultCodeType = {
|
15854 | codeTypeName: "",
|
15855 | codeTypeValue: "",
|
15856 | codeKind: "1"
|
15857 | };
|
15858 | var defaultCode = {
|
15859 | enabled: "1",
|
15860 | extend: "",
|
15861 | ordeNo: "1",
|
15862 | codeName: "",
|
15863 | codeValue: "",
|
15864 | codeTypeName: "",
|
15865 | codeTypeValue: ""
|
15866 | };
|
15867 | var CodeMgrvue_type_script_lang_js_ = ({
|
15868 | name: "CodeMgr",
|
15869 | components: {
|
15870 | CodeEditor: CodeEditor,
|
15871 | CodeTypeEditor: CodeTypeEditor
|
15872 | },
|
15873 | data: function data() {
|
15874 | return {
|
15875 | leftBlock: true,
|
15876 | rightBlock: true,
|
15877 | loading: false,
|
15878 | current: {
|
15879 | code: "",
|
15880 | codeType: ""
|
15881 | },
|
15882 | codeSearch: {
|
15883 | loading: false,
|
15884 | result: false,
|
15885 | keyword: ""
|
15886 | },
|
15887 | codeDetail: {
|
15888 | loading: false,
|
15889 | data: [],
|
15890 | keyword: "",
|
15891 | treeProps: {
|
15892 | children: "children",
|
15893 | label: "codeName",
|
15894 | disabled: "disabled"
|
15895 | },
|
15896 | editor: {
|
15897 | data: {},
|
15898 | error: {},
|
15899 | visible: false,
|
15900 | saving: false
|
15901 | }
|
15902 | },
|
15903 | codeType: {
|
15904 | loading: false,
|
15905 | data: [],
|
15906 | currentRowUuid: "",
|
15907 | keyword: "",
|
15908 | editor: {
|
15909 | data: {},
|
15910 | error: {},
|
15911 | visible: false,
|
15912 | saving: false
|
15913 | }
|
15914 | }
|
15915 | };
|
15916 | },
|
15917 | mounted: function mounted() {
|
15918 | this.queryCodeType();
|
15919 | },
|
15920 | watch: {
|
15921 | "current.codeType": function currentCodeType(_currentCodeType) {
|
15922 | if (_currentCodeType && _currentCodeType.uuid) {
|
15923 | this.queryCodeByType();
|
15924 | } else {
|
15925 | this.codeDetail.data = [];
|
15926 | }
|
15927 | }
|
15928 | },
|
15929 | computed: {
|
15930 | codeTreeData: function codeTreeData() {
|
15931 | if (this.current.codeType) return [{
|
15932 | disabled: true,
|
15933 | codeName: "代码项 : " + this.current.codeType.codeTypeName,
|
15934 | children: this.codeDetail.data
|
15935 | }];
|
15936 | },
|
15937 | detailType: function detailType() {
|
15938 | if (!this.current.codeType) {
|
15939 | return "none";
|
15940 | }
|
15941 |
|
15942 | if (this.current.codeType.codeKind === "1") {
|
15943 | return "list";
|
15944 | }
|
15945 |
|
15946 | if (this.current.codeType.codeKind === "2") {
|
15947 | return "tree";
|
15948 | }
|
15949 | }
|
15950 | },
|
15951 | methods: {
|
15952 | queryCodeType: function queryCodeType() {
|
15953 | var _this = this;
|
15954 |
|
15955 | this.codeType.loading = true;
|
15956 | CodeAPI.queryCodeType().then(function (respData) {
|
15957 | _this.codeType.data = respData;
|
15958 | _this.codeType.loading = false;
|
15959 | }).catch(function () {
|
15960 | _this.codeType.loading = false;
|
15961 | });
|
15962 | },
|
15963 | queryCodeByType: function queryCodeByType() {
|
15964 | var _this2 = this;
|
15965 |
|
15966 | CodeAPI.queryCodeByType(this.current.codeType.uuid).then(function (respData) {
|
15967 | _this2.codeDetail.data = respData;
|
15968 | });
|
15969 | },
|
15970 |
|
15971 | submitCodeType: function submitCodeType(data) {
|
15972 | var _this3 = this;
|
15973 |
|
15974 | this.codeType.editor.saving = true;
|
15975 | this.codeType.editor.error = {};
|
15976 | CodeAPI.saveCodeType(data).then(function (respData) {
|
15977 | _this3.queryCodeType();
|
15978 |
|
15979 | _this3.codeType.editor.saving = false;
|
15980 | _this3.codeType.editor.visible = false;
|
15981 | }).catch(function (error) {
|
15982 | _this3.codeType.editor.error = error.validError;
|
15983 | _this3.codeType.editor.saving = false;
|
15984 | });
|
15985 | },
|
15986 | deleteCodeType: function deleteCodeType(data) {
|
15987 | var _this4 = this;
|
15988 |
|
15989 | this.loading = true;
|
15990 | CodeAPI.deleteCodeType(data.uuid).then(function (respData) {
|
15991 | _this4.queryCodeType();
|
15992 |
|
15993 | _this4.current.codeType = "";
|
15994 | _this4.loading = false;
|
15995 | }).catch(function () {
|
15996 | _this4.loading = false;
|
15997 | });
|
15998 | },
|
15999 | deleteCode: function deleteCode(data) {
|
16000 | var _this5 = this;
|
16001 |
|
16002 | this.loading = true;
|
16003 | return CodeAPI.delCode(data.uuid).then(function (respData) {
|
16004 | _this5.loading = false;
|
16005 |
|
16006 | _this5.queryCodeByType();
|
16007 | }).catch(function () {
|
16008 | _this5.loading = false;
|
16009 | });
|
16010 | },
|
16011 |
|
16012 | submitCode: function submitCode(data) {
|
16013 | var _this6 = this;
|
16014 |
|
16015 | this.codeDetail.editor.saving = true;
|
16016 | this.codeDetail.editor.error = {};
|
16017 | CodeAPI.saveCode(data).then(function (respData) {
|
16018 | _this6.queryCodeByType();
|
16019 |
|
16020 | _this6.codeDetail.editor.saving = false;
|
16021 | _this6.codeDetail.editor.visible = false;
|
16022 | }).catch(function (error) {
|
16023 | _this6.codeDetail.editor.error = error.validError;
|
16024 | _this6.codeDetail.editor.saving = false;
|
16025 | });
|
16026 | },
|
16027 |
|
16028 | findCode: function findCode() {
|
16029 | var _this7 = this;
|
16030 |
|
16031 | this.codeSearch.loading = true;
|
16032 | CodeAPI.findCode(this.codeSearch.keyword).then(function (respData) {
|
16033 | _this7.codeSearch.result = respData || false;
|
16034 | _this7.codeSearch.loading = false;
|
16035 | }).catch(function () {
|
16036 | _this7.codeSearch.loading = false;
|
16037 | });
|
16038 | },
|
16039 |
|
16040 | formatterCodeKind: function formatterCodeKind(row, column, cellValue) {
|
16041 | if (cellValue === "1") {
|
16042 | return "列表";
|
16043 | } else if (cellValue === "2") {
|
16044 | return "树状";
|
16045 | } else {
|
16046 | return "错误数据";
|
16047 | }
|
16048 | },
|
16049 |
|
16050 | handleCurrentCodeTypeChange: function handleCurrentCodeTypeChange(currentRow, oldCurrentRow) {
|
16051 | this.current.codeType = currentRow;
|
16052 | },
|
16053 |
|
16054 | handleAddCodeType: function handleAddCodeType() {
|
16055 | this.codeType.editor.data = Object.assign({}, defaultCodeType);
|
16056 | this.codeType.editor.visible = true;
|
16057 | },
|
16058 |
|
16059 | handleSubmitCodeType: function handleSubmitCodeType() {
|
16060 | this.$refs.codeTypeEditor.validate().then(this.submitCodeType);
|
16061 | },
|
16062 |
|
16063 | handleEditCodeType: function handleEditCodeType(index, codeType) {
|
16064 | this.codeType.editor.data = codeType;
|
16065 | this.codeType.editor.visible = true;
|
16066 | },
|
16067 |
|
16068 | handleDeleteCodeType: function handleDeleteCodeType(index, codeType) {
|
16069 | this.confirm(codeType).then(this.deleteCodeType);
|
16070 | },
|
16071 |
|
16072 | handleDeleteCode: function handleDeleteCode(index, codeType) {
|
16073 | var _this8 = this;
|
16074 |
|
16075 | this.confirm(codeType).then(this.deleteCode).then(function () {
|
16076 | _this8.current.code.children.splice(index, 1);
|
16077 | });
|
16078 | },
|
16079 |
|
16080 | handleAddCode: function handleAddCode() {
|
16081 | this.codeDetail.editor.data = Object.assign({}, defaultCode, {
|
16082 | codeTypeName: this.current.codeType.codeTypeName,
|
16083 | codeTypeValue: this.current.codeType.codeTypeValue,
|
16084 | codeTypeUuid: this.current.codeType.uuid,
|
16085 | puuid: this.current.code.uuid
|
16086 | });
|
16087 | this.codeDetail.editor.visible = true;
|
16088 | },
|
16089 |
|
16090 | handleSubmitCode: function handleSubmitCode() {
|
16091 | this.$refs.codeEditor.validate().then(this.submitCode);
|
16092 | },
|
16093 |
|
16094 | handleEditCode: function handleEditCode(index, code) {
|
16095 | code.codeTypeUuid = this.current.codeType.uuid;
|
16096 | this.codeDetail.editor.data = code;
|
16097 | this.codeDetail.editor.visible = true;
|
16098 | },
|
16099 |
|
16100 | handleTreeNodeChange: function handleTreeNodeChange(code) {
|
16101 | this.current.code = code;
|
16102 | }
|
16103 | }
|
16104 | });
|
16105 |
|
16106 | var sysm_CodeMgrvue_type_script_lang_js_ = (CodeMgrvue_type_script_lang_js_);
|
16107 |
|
16108 | var CodeMgrvue_type_style_index_0_lang_scss_ = __webpack_require__("28b0");
|
16109 |
|
16110 |
|
16111 |
|
16112 |
|
16113 |
|
16114 |
|
16115 |
|
16116 |
|
16117 |
|
16118 |
|
16119 | var CodeMgr_component = Object(componentNormalizer["a" ])(
|
16120 | sysm_CodeMgrvue_type_script_lang_js_,
|
16121 | render,
|
16122 | staticRenderFns,
|
16123 | false,
|
16124 | null,
|
16125 | null,
|
16126 | null
|
16127 |
|
16128 | )
|
16129 |
|
16130 | var CodeMgr = __webpack_exports__["default"] = (CodeMgr_component.exports);
|
16131 |
|
16132 | }),
|
16133 |
|
16134 | "e66d":
|
16135 | (function(module, __webpack_exports__, __webpack_require__) {
|
16136 |
|
16137 | "use strict";
|
16138 |
|
16139 |
|
16140 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.mode==='dialog')?_c('div',[_c('el-dialog',{directives:[{name:"draggable",rawName:"v-draggable"}],attrs:{"append-to-body":"","width":"auto","auto-height":"","visible":_vm.view.visible,"title":"经办历史信息"},on:{"update:visible":function($event){return _vm.$set(_vm.view, "visible", $event)}}},[(_vm.view.visible && _vm.uuid)?_c('div',[_c('table',{staticClass:" el-table el-table--fit el-table--striped el-table--border info-table",attrs:{"cellspacing":"0","cellpadding":"0"}},[_c('thead',[_c('tr',[_c('th',[_vm._v("创建人")]),_c('th',[_vm._v("创建时间")]),_c('th',[_vm._v("最后操作人")]),_c('th',[_vm._v("最后操作时间")])])]),_c('tbody',[_c('tr',[_c('td',[_vm._v("\n "+_vm._s(_vm.crUserInfo.userName)+"\n ")]),_c('td',[_vm._v(_vm._s(_vm._f("date")(_vm.crTime)))]),_c('td',[_vm._v(_vm._s(_vm.opUserInfo.userName))]),_c('td',[_vm._v(_vm._s(_vm._f("date")(_vm.opTime)))])])])]),(_vm.uuid)?_c('HandleDetail',{staticStyle:{"width":"1024px"},attrs:{"bizUuid":_vm.uuid}}):_vm._e()],1):_vm._e()]),_c('div',{staticClass:"href",attrs:{"slot":"reference"},on:{"click":function($event){_vm.view.visible=true}},slot:"reference"},[_vm._t("default")],2)],1):_vm._e(),( _vm.mode==='plan' && _vm.uuid)?_c('div',{attrs:{"slot":"reference"},slot:"reference"},[_c('table',{staticClass:" el-table el-table--fit el-table--striped el-table--border info-table el-table--compact",attrs:{"cellspacing":"0","cellpadding":"0"}},[_vm._m(0),_c('tbody',[_c('tr',[_c('td',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":_vm.crUserInfo.userCode,"placement":"top"}},[_c('el-button',[_vm._v(_vm._s(_vm.crUserInfo.userName))])],1)],1),_c('td',[_vm._v(_vm._s(_vm._f("moment")(_vm.crTime,'lll')))]),_c('td',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":_vm.opUserInfo.userCode,"placement":"top"}},[_c('el-button',[_vm._v(_vm._s(_vm.opUserInfo.userName))])],1)],1),_c('td',[_vm._v(_vm._s(_vm._f("moment")(_vm.opTime,'lll')))])])])]),(_vm.uuid)?_c('HandleDetail',{attrs:{"bizUuid":_vm.uuid}}):_vm._e()],1):_vm._e()])}
|
16141 | var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',[_c('tr',[_c('th',[_vm._v("创建人")]),_c('th',[_vm._v("创建时间")]),_c('th',[_vm._v("最后操作人")]),_c('th',[_vm._v("最后操作时间")])])])}]
|
16142 |
|
16143 |
|
16144 |
|
16145 |
|
16146 |
|
16147 | var es6_object_assign_ = __webpack_require__("067b");
|
16148 |
|
16149 |
|
16150 | var es6_number_constructor_ = __webpack_require__("d036");
|
16151 |
|
16152 |
|
16153 | var HandleDetailvue_type_template_id_5c7448e2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:"handle-detail margin-top-2",staticStyle:{"margin-top":"10px"}},[_c('template',{staticClass:"clearfix",slot:"header"},[_c('span',[_vm._v("经办详细")]),_c('div',{staticClass:"pull-right"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(this.data.length>0),expression:"this.data.length>0"}],staticStyle:{"display":"inline-block","margin-right":"3px"}},[_c('el-popover',{attrs:{"placement":"bottom","trigger":"click","width":"100"}},[_c('el-checkbox',{model:{value:(_vm.columns.svrip),callback:function ($$v) {_vm.$set(_vm.columns, "svrip", $$v)},expression:"columns.svrip"}},[_vm._v("服务器IP")]),_c('br'),_c('el-checkbox',{model:{value:(_vm.columns.svrname),callback:function ($$v) {_vm.$set(_vm.columns, "svrname", $$v)},expression:"columns.svrname"}},[_vm._v("服务器名称")]),_c('br'),_c('el-checkbox',{model:{value:(_vm.columns.actdefn),callback:function ($$v) {_vm.$set(_vm.columns, "actdefn", $$v)},expression:"columns.actdefn"}},[_vm._v("操作定义")]),_c('br'),_c('el-checkbox',{model:{value:(_vm.columns.acttype),callback:function ($$v) {_vm.$set(_vm.columns, "acttype", $$v)},expression:"columns.acttype"}},[_vm._v("协议类型")]),_c('br'),_c('el-checkbox',{model:{value:(_vm.columns.reqip),callback:function ($$v) {_vm.$set(_vm.columns, "reqip", $$v)},expression:"columns.reqip"}},[_vm._v("请求者IP")]),_c('br'),_c('el-checkbox',{model:{value:(_vm.columns.devtype),callback:function ($$v) {_vm.$set(_vm.columns, "devtype", $$v)},expression:"columns.devtype"}},[_vm._v("请求终端类型")]),_c('br'),_c('div',{attrs:{"slot":"reference"},slot:"reference"},[_c('el-button',{attrs:{"icon":"el-icon-fa-list","type":"primary"}})],1)],1)],1),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-search"},on:{"click":_vm.handleSee}}),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-fa-close"},on:{"click":_vm.handleClose}})],1)]),_c('PageTable',{directives:[{name:"show",rawName:"v-show",value:(_vm.showDetail),expression:"showDetail"}],ref:"dataTable",attrs:{"hideTitle":"","page-layout":"total, prev, pager, next","row-key":"actend","page-size":10,"auto-height":"","auto-load":true,"data":_vm.data,"highlight-current-row":"","stripe":"","border":""},on:{"load-data":_vm.dataTableLoad}},[_c('el-table-column',{attrs:{"width":"50"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-popover',{attrs:{"placement":"left"}},[_c('div',{staticStyle:{"max-height":"600px","overflow":"auto"}},[_c('table',{staticClass:" el-table el-table--fit el-table--striped el-table--border info-table el-table--compact",attrs:{"cellspacing":"0","cellpadding":"0"}},[_c('tbody',_vm._l((scope.row.opdataArray),function(item){return _c('tr',{key:item.key},[_c('td',{staticClass:"padding-right-2",staticStyle:{"background":"#ccc"},attrs:{"align":"right"}},[_vm._v(_vm._s(item.key))]),_c('td',{staticClass:"padding-left-2",attrs:{"title":item.value}},[_c('input',{staticStyle:{"border":"none"},attrs:{"type":"text"},domProps:{"value":item.value}})])])}),0)])]),_c('el-button',{attrs:{"slot":"reference","icon":"el-icon-fa-eye"},slot:"reference"})],1)]}}])}),_c('el-table-column',{attrs:{"show-overflow-tooltip":"","prop":"actdesc","label":"操作描述"}}),_c('el-table-column',{attrs:{"show-overflow-tooltip":"","prop":"username","label":"操作人"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('PopoverUserInfo',{attrs:{"uuid":scope.row.opuseruuid}},[_vm._v("\n "+_vm._s(scope.row.username)+"\n ")])]}}])}),_c('el-table-column',{attrs:{"show-overflow-tooltip":"","prop":"optype","label":"操作类型","formatter":_vm.foemarOptype}}),(_vm.columns.svrip)?_c('el-table-column',{attrs:{"show-overflow-tooltip":"","prop":"svrip","label":"服务器IP"}}):_vm._e(),_c('el-table-column',{attrs:{"show-overflow-tooltip":"","prop":"respcode","label":"处理代码"}}),(_vm.columns.svrname)?_c('el-table-column',{attrs:{"show-overflow-tooltip":"","prop":"svrname","label":"服务器名称"}}):_vm._e(),(_vm.columns.actdefn)?_c('el-table-column',{attrs:{"show-overflow-tooltip":"","prop":"actdefn","label":"操作定义"}}):_vm._e(),(_vm.columns.acttype)?_c('el-table-column',{attrs:{"show-overflow-tooltip":"","prop":"acttype","label":"协议类型","formatter":_vm.foemarActtype}}):_vm._e(),(_vm.columns.reqip)?_c('el-table-column',{attrs:{"show-overflow-tooltip":"","prop":"reqip","label":"请求者IP"}}):_vm._e(),(_vm.columns.devtype)?_c('el-table-column',{attrs:{"show-overflow-tooltip":"","prop":"devtype","label":"请求终端类型"}}):_vm._e(),_c('el-table-column',{attrs:{"show-overflow-tooltip":"","prop":"actsta","label":"操作开始时间","formatter":_vm.formatterDateTime}}),_c('el-table-column',{attrs:{"show-overflow-tooltip":"","prop":"actend","label":"操作结束时间","formatter":_vm.formatterDateTime}})],1)],2)}
|
16154 | var HandleDetailvue_type_template_id_5c7448e2_staticRenderFns = []
|
16155 |
|
16156 |
|
16157 |
|
16158 |
|
16159 |
|
16160 | var web_dom_iterable_ = __webpack_require__("80a8");
|
16161 |
|
16162 |
|
16163 | var scrollbar_ = __webpack_require__("c9de");
|
16164 | var scrollbar_default = __webpack_require__.n(scrollbar_);
|
16165 |
|
16166 |
|
16167 | var LogsOper = __webpack_require__("8165");
|
16168 |
|
16169 |
|
16170 | var external_moment_ = __webpack_require__("c32d");
|
16171 | var external_moment_default = __webpack_require__.n(external_moment_);
|
16172 |
|
16173 |
|
16174 | var PopoverUserInfovue_type_template_id_7da379b3_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.uuid)?_c('el-popover',{attrs:{"placement":"right","trigger":"click"},on:{"show":_vm.hanleShow}},[_c('table',{staticClass:" el-table el-table--fit el-table--striped el-table--border info-table el-table--compact",attrs:{"cellspacing":"0","cellpadding":"0"}},[_c('tbody',[_c('tr',[_c('td',{staticClass:"margin-1 bg-default",attrs:{"align":"right"}},[_vm._v("最后登录于 ")]),_c('td',{staticClass:"padding-1"},[_vm._v(" "+_vm._s(_vm._f("date")(_vm.userInfo.laseLogDate)))])]),_c('tr',[_c('td',{staticClass:"margin-1 bg-default",attrs:{"align":"right"}},[_vm._v("最后登录IP ")]),_c('td',{staticClass:"padding-1"},[_vm._v(" "+_vm._s(_vm.userInfo.laseLogIp))])])])]),_c('div',{staticClass:"href",attrs:{"slot":"reference"},slot:"reference"},[_vm._t("default")],2)]):_vm._e(),(!_vm.uuid)?_c('span',[_vm._t("default")],2):_vm._e()],1)}
|
16175 | var PopoverUserInfovue_type_template_id_7da379b3_staticRenderFns = []
|
16176 |
|
16177 |
|
16178 |
|
16179 |
|
16180 |
|
16181 | var UserAPI = __webpack_require__("c030");
|
16182 |
|
16183 |
|
16184 |
|
16185 |
|
16186 |
|
16187 |
|
16188 |
|
16189 |
|
16190 |
|
16191 |
|
16192 |
|
16193 |
|
16194 |
|
16195 |
|
16196 |
|
16197 |
|
16198 |
|
16199 |
|
16200 |
|
16201 |
|
16202 |
|
16203 |
|
16204 |
|
16205 |
|
16206 |
|
16207 |
|
16208 |
|
16209 | var PopoverUserInfovue_type_script_lang_js_ = ({
|
16210 | props: {
|
16211 | uuid: {
|
16212 | type: String
|
16213 | }
|
16214 | },
|
16215 | data: function data() {
|
16216 | return {
|
16217 | userInfo: []
|
16218 | };
|
16219 | },
|
16220 | methods: {
|
16221 | |
16222 |
|
16223 |
|
16224 | hanleShow: function hanleShow() {
|
16225 | if (!this.uuid) {
|
16226 | return;
|
16227 | }
|
16228 |
|
16229 | this.loadUserInfo();
|
16230 | },
|
16231 |
|
16232 | |
16233 |
|
16234 |
|
16235 | loadUserInfo: function loadUserInfo() {
|
16236 | var _this = this;
|
16237 |
|
16238 | this.userInfo = [];
|
16239 | UserAPI["a" ].getUserInfo(this.uuid).then(function (userInfo) {
|
16240 | _this.userInfo = userInfo;
|
16241 | }).catch(function () {
|
16242 | });
|
16243 | }
|
16244 | }
|
16245 | });
|
16246 |
|
16247 | var common_PopoverUserInfovue_type_script_lang_js_ = (PopoverUserInfovue_type_script_lang_js_);
|
16248 |
|
16249 | var componentNormalizer = __webpack_require__("6691");
|
16250 |
|
16251 |
|
16252 |
|
16253 |
|
16254 |
|
16255 |
|
16256 |
|
16257 |
|
16258 |
|
16259 | var component = Object(componentNormalizer["a" ])(
|
16260 | common_PopoverUserInfovue_type_script_lang_js_,
|
16261 | PopoverUserInfovue_type_template_id_7da379b3_render,
|
16262 | PopoverUserInfovue_type_template_id_7da379b3_staticRenderFns,
|
16263 | false,
|
16264 | null,
|
16265 | null,
|
16266 | null
|
16267 |
|
16268 | )
|
16269 |
|
16270 | var PopoverUserInfo = (component.exports);
|
16271 |
|
16272 |
|
16273 |
|
16274 |
|
16275 |
|
16276 |
|
16277 |
|
16278 |
|
16279 |
|
16280 |
|
16281 |
|
16282 |
|
16283 |
|
16284 |
|
16285 |
|
16286 |
|
16287 |
|
16288 |
|
16289 |
|
16290 |
|
16291 |
|
16292 |
|
16293 |
|
16294 |
|
16295 |
|
16296 |
|
16297 |
|
16298 |
|
16299 |
|
16300 |
|
16301 |
|
16302 |
|
16303 |
|
16304 |
|
16305 |
|
16306 |
|
16307 |
|
16308 |
|
16309 |
|
16310 |
|
16311 |
|
16312 |
|
16313 |
|
16314 |
|
16315 |
|
16316 |
|
16317 |
|
16318 |
|
16319 |
|
16320 |
|
16321 |
|
16322 |
|
16323 |
|
16324 |
|
16325 |
|
16326 |
|
16327 |
|
16328 |
|
16329 |
|
16330 |
|
16331 |
|
16332 |
|
16333 |
|
16334 |
|
16335 |
|
16336 |
|
16337 |
|
16338 |
|
16339 |
|
16340 |
|
16341 |
|
16342 |
|
16343 |
|
16344 |
|
16345 |
|
16346 |
|
16347 |
|
16348 |
|
16349 |
|
16350 |
|
16351 |
|
16352 | var HandleDetailvue_type_script_lang_js_ = ({
|
16353 | components: {
|
16354 | ElScrollbar: scrollbar_default.a,
|
16355 | PopoverUserInfo: PopoverUserInfo
|
16356 | },
|
16357 | props: {
|
16358 | bizUuid: {
|
16359 | type: String
|
16360 | }
|
16361 | },
|
16362 | data: function data() {
|
16363 | return {
|
16364 | showDetail: false,
|
16365 | columns: {
|
16366 | svrip: true,
|
16367 | svrname: false,
|
16368 | actdefn: false,
|
16369 | acttype: false,
|
16370 | reqip: true,
|
16371 | devtype: false
|
16372 | },
|
16373 | data: []
|
16374 | };
|
16375 | },
|
16376 | watch: {
|
16377 | bizUuid: function bizUuid(val) {
|
16378 | this.data = [];
|
16379 | }
|
16380 | },
|
16381 | methods: {
|
16382 | foemarOpdata: function foemarOpdata(jsonStr) {
|
16383 | var data = JSON.parse(jsonStr);
|
16384 | var dataArr = [];
|
16385 |
|
16386 | for (var key in data) {
|
16387 | if (key.indexOf("uuid") === -1) {
|
16388 | var value = data[key];
|
16389 |
|
16390 | if (value === null) {
|
16391 | value = "null";
|
16392 | }
|
16393 |
|
16394 |
|
16395 | if (/^[\d]{11}|[\d]{13}$/.test(value)) {
|
16396 | var _value = external_moment_default()(value).format("L") + " " + external_moment_default()(value).format("LTS");
|
16397 |
|
16398 | if (_value !== "Invalid date") {
|
16399 | value = _value;
|
16400 | }
|
16401 | }
|
16402 |
|
16403 | key = key.toLocaleUpperCase();
|
16404 | dataArr.push({
|
16405 | key: key,
|
16406 | value: value
|
16407 | });
|
16408 | }
|
16409 | }
|
16410 |
|
16411 | return dataArr;
|
16412 | },
|
16413 | foemarOptype: function foemarOptype(row, column, cellValue) {
|
16414 | var label = "unknow";
|
16415 |
|
16416 | switch (cellValue) {
|
16417 | case "01":
|
16418 | label = "新增";
|
16419 | break;
|
16420 |
|
16421 | case "02":
|
16422 | label = "修改";
|
16423 | break;
|
16424 |
|
16425 | case "03":
|
16426 | label = "删除";
|
16427 | break;
|
16428 | }
|
16429 |
|
16430 | return label;
|
16431 | },
|
16432 | foemarActtype: function foemarActtype(row, column, cellValue) {
|
16433 | var label = "unknow";
|
16434 |
|
16435 | switch (cellValue) {
|
16436 | case "1":
|
16437 | label = "http://";
|
16438 | break;
|
16439 | }
|
16440 |
|
16441 | return label;
|
16442 | },
|
16443 | handleSee: function handleSee() {
|
16444 | this.showDetail = true;
|
16445 | this.$refs.dataTable.load();
|
16446 | },
|
16447 | handleClose: function handleClose() {
|
16448 | this.showDetail = false;
|
16449 | },
|
16450 | dataTableLoad: function dataTableLoad(params, resolve) {
|
16451 | var _this = this;
|
16452 |
|
16453 | params.bizUuid = this.bizUuid;
|
16454 | LogsOper["a" ].queryQueryDataHis(params).then(resolve).then(function (respData) {
|
16455 | _this.data = respData.datarows;
|
16456 |
|
16457 | _this.data.forEach(function (element) {
|
16458 | try {
|
16459 | element.opdataArray = this.foemarOpdata(element.opdata);
|
16460 | } catch (e) {
|
16461 | console.warn("JSON PARSE ERROR", e);
|
16462 | element.opdataArray = [];
|
16463 | }
|
16464 | }, _this);
|
16465 | });
|
16466 | }
|
16467 | }
|
16468 | });
|
16469 |
|
16470 | var common_HandleDetailvue_type_script_lang_js_ = (HandleDetailvue_type_script_lang_js_);
|
16471 |
|
16472 |
|
16473 |
|
16474 |
|
16475 |
|
16476 |
|
16477 |
|
16478 |
|
16479 | var HandleDetail_component = Object(componentNormalizer["a" ])(
|
16480 | common_HandleDetailvue_type_script_lang_js_,
|
16481 | HandleDetailvue_type_template_id_5c7448e2_render,
|
16482 | HandleDetailvue_type_template_id_5c7448e2_staticRenderFns,
|
16483 | false,
|
16484 | null,
|
16485 | null,
|
16486 | null
|
16487 |
|
16488 | )
|
16489 |
|
16490 | var HandleDetail = (HandleDetail_component.exports);
|
16491 |
|
16492 |
|
16493 |
|
16494 |
|
16495 |
|
16496 |
|
16497 |
|
16498 |
|
16499 |
|
16500 |
|
16501 |
|
16502 |
|
16503 |
|
16504 |
|
16505 |
|
16506 |
|
16507 |
|
16508 |
|
16509 |
|
16510 |
|
16511 |
|
16512 |
|
16513 |
|
16514 |
|
16515 |
|
16516 |
|
16517 |
|
16518 |
|
16519 |
|
16520 |
|
16521 |
|
16522 |
|
16523 |
|
16524 |
|
16525 |
|
16526 |
|
16527 |
|
16528 |
|
16529 |
|
16530 |
|
16531 |
|
16532 |
|
16533 |
|
16534 |
|
16535 |
|
16536 |
|
16537 |
|
16538 |
|
16539 |
|
16540 |
|
16541 |
|
16542 |
|
16543 |
|
16544 |
|
16545 |
|
16546 |
|
16547 |
|
16548 |
|
16549 |
|
16550 |
|
16551 |
|
16552 |
|
16553 |
|
16554 |
|
16555 |
|
16556 |
|
16557 |
|
16558 |
|
16559 |
|
16560 |
|
16561 |
|
16562 |
|
16563 |
|
16564 |
|
16565 |
|
16566 |
|
16567 | var HandleHistoryvue_type_script_lang_js_ = ({
|
16568 | components: {
|
16569 | HandleDetail: HandleDetail
|
16570 | },
|
16571 | props: {
|
16572 | uuid: {
|
16573 | type: String
|
16574 | },
|
16575 | crTime: {
|
16576 | type: Number
|
16577 | },
|
16578 | opUserUuid: {
|
16579 | type: String
|
16580 | },
|
16581 | crUserUuid: {
|
16582 | type: String
|
16583 | },
|
16584 | opTime: {
|
16585 | type: Number
|
16586 | },
|
16587 | mode: {
|
16588 | type: String,
|
16589 | default: "plan"
|
16590 | }
|
16591 | },
|
16592 | data: function data() {
|
16593 | return {
|
16594 | crUserInfo: {},
|
16595 | opUserInfo: {},
|
16596 | data: [],
|
16597 | view: {
|
16598 | visible: false
|
16599 | }
|
16600 | };
|
16601 | },
|
16602 | watch: {
|
16603 | uuid: function uuid(val) {
|
16604 | this.loadUserInfo();
|
16605 | }
|
16606 | },
|
16607 | mounted: function mounted() {
|
16608 | if (this.uuid) {
|
16609 | this.loadUserInfo(this.uuid);
|
16610 | }
|
16611 | },
|
16612 | methods: {
|
16613 | handleShow: function handleShow() {
|
16614 | this.view.visible = true;
|
16615 | },
|
16616 | handleHide: function handleHide() {
|
16617 | this.view.visible = false;
|
16618 | },
|
16619 | loadUserInfo: function loadUserInfo() {
|
16620 | var _this = this;
|
16621 |
|
16622 | if (this.crUserUuid && this.opUserUuid) {
|
16623 | UserAPI["a" ].getUser(this.crUserUuid).then(function (resp) {
|
16624 | _this.crUserInfo = Object.assign({}, resp.data.data);
|
16625 | });
|
16626 | UserAPI["a" ].getUser(this.opUserUuid).then(function (resp) {
|
16627 | _this.opUserInfo = Object.assign({}, resp.data.data);
|
16628 | });
|
16629 | }
|
16630 | }
|
16631 | }
|
16632 | });
|
16633 |
|
16634 | var common_HandleHistoryvue_type_script_lang_js_ = (HandleHistoryvue_type_script_lang_js_);
|
16635 |
|
16636 | var HandleHistoryvue_type_style_index_0_id_555c5032_scoped_true_lang_css_ = __webpack_require__("e194");
|
16637 |
|
16638 |
|
16639 |
|
16640 |
|
16641 |
|
16642 |
|
16643 |
|
16644 |
|
16645 |
|
16646 |
|
16647 | var HandleHistory_component = Object(componentNormalizer["a" ])(
|
16648 | common_HandleHistoryvue_type_script_lang_js_,
|
16649 | render,
|
16650 | staticRenderFns,
|
16651 | false,
|
16652 | null,
|
16653 | "555c5032",
|
16654 | null
|
16655 |
|
16656 | )
|
16657 |
|
16658 | var HandleHistory = __webpack_exports__["a"] = (HandleHistory_component.exports);
|
16659 |
|
16660 | }),
|
16661 |
|
16662 | "e688":
|
16663 | (function(module, __webpack_exports__, __webpack_require__) {
|
16664 |
|
16665 | "use strict";
|
16666 | var E_workspace_CNETONG_cnetong_core_frontend_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9090");
|
16667 | var querystring__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("f319");
|
16668 | var querystring__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(querystring__WEBPACK_IMPORTED_MODULE_1__);
|
16669 | var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("c32d");
|
16670 | var moment__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
|
16671 |
|
16672 |
|
16673 |
|
16674 |
|
16675 | var downFileIframe = function downFileIframe(url, params) {
|
16676 | var id = "iframe_to_download_file_hidden";
|
16677 | var fullURL = url + "?" + querystring__WEBPACK_IMPORTED_MODULE_1___default.a.stringify(params);
|
16678 | var iframe = document.getElementById(id);
|
16679 |
|
16680 | if (iframe === null) {
|
16681 | iframe = document.createElement("iframe");
|
16682 | }
|
16683 |
|
16684 | iframe.id = id;
|
16685 | iframe.src = fullURL;
|
16686 | document.body.appendChild(iframe);
|
16687 |
|
16688 | iframe.onload = function () {
|
16689 | document.body.removeChild(iframe);
|
16690 | };
|
16691 | };
|
16692 |
|
16693 |
|
16694 |
|
16695 |
|
16696 |
|
16697 | var safety = {
|
16698 |
|
16699 | safeData: function safeData(data) {
|
16700 | if (Object(E_workspace_CNETONG_cnetong_core_frontend_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[ "a"])(data) !== "object") {
|
16701 | return;
|
16702 | }
|
16703 |
|
16704 | if (data) {
|
16705 |
|
16706 | delete data.opDesc;
|
16707 | delete data.opUuid;
|
16708 | delete data.crUserUuid;
|
16709 | delete data.crTime;
|
16710 | delete data.opUserUuid;
|
16711 | delete data.opUserName;
|
16712 | delete data.opUserName;
|
16713 | delete data.opTime;
|
16714 |
|
16715 | for (var key in data) {
|
16716 |
|
16717 | if (typeof data[key] === "string") {
|
16718 | data[key] = data[key].trim();
|
16719 | }
|
16720 |
|
16721 |
|
16722 | if (key === "uuid") {
|
16723 |
|
16724 | if (data[key] === "" || data[key] == null || data[key] === undefined) {
|
16725 | delete data[key];
|
16726 | }
|
16727 | }
|
16728 |
|
16729 |
|
16730 | if (moment__WEBPACK_IMPORTED_MODULE_2___default.a.isDate(data[key])) {
|
16731 | data[key] = moment__WEBPACK_IMPORTED_MODULE_2___default()(data[key]).format("x");
|
16732 | }
|
16733 | }
|
16734 | }
|
16735 |
|
16736 | return data;
|
16737 | },
|
16738 |
|
16739 | preSubmit: function preSubmit(data) {
|
16740 | this.safeData(data);
|
16741 |
|
16742 | for (var key in data) {
|
16743 | if (data.hasOwnProperty(key)) {
|
16744 | if (Object(E_workspace_CNETONG_cnetong_core_frontend_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[ "a"])(data[key]) === "object") {
|
16745 | data[key] = this.preSubmit(data[key]);
|
16746 | }
|
16747 | }
|
16748 | }
|
16749 |
|
16750 | return data;
|
16751 | }
|
16752 | };
|
16753 | __webpack_exports__["a"] = ({
|
16754 | downFileIframe: downFileIframe,
|
16755 | safety: safety
|
16756 | });
|
16757 |
|
16758 | }),
|
16759 |
|
16760 | "e71e":
|
16761 | (function(module, __webpack_exports__, __webpack_require__) {
|
16762 |
|
16763 | "use strict";
|
16764 | __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; });
|
16765 | function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
16766 | try {
|
16767 | var info = gen[key](arg);
|
16768 | var value = info.value;
|
16769 | } catch (error) {
|
16770 | reject(error);
|
16771 | return;
|
16772 | }
|
16773 |
|
16774 | if (info.done) {
|
16775 | resolve(value);
|
16776 | } else {
|
16777 | Promise.resolve(value).then(_next, _throw);
|
16778 | }
|
16779 | }
|
16780 |
|
16781 | function _asyncToGenerator(fn) {
|
16782 | return function () {
|
16783 | var self = this,
|
16784 | args = arguments;
|
16785 | return new Promise(function (resolve, reject) {
|
16786 | var gen = fn.apply(self, args);
|
16787 |
|
16788 | function _next(value) {
|
16789 | asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
16790 | }
|
16791 |
|
16792 | function _throw(err) {
|
16793 | asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
16794 | }
|
16795 |
|
16796 | _next(undefined);
|
16797 | });
|
16798 | };
|
16799 | }
|
16800 |
|
16801 | }),
|
16802 |
|
16803 | "ef2f":
|
16804 | (function(module, __webpack_exports__, __webpack_require__) {
|
16805 |
|
16806 | "use strict";
|
16807 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_TimeLine_vue_vue_type_style_index_0_id_2ef591a6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("065b");
|
16808 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_TimeLine_vue_vue_type_style_index_0_id_2ef591a6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_TimeLine_vue_vue_type_style_index_0_id_2ef591a6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
16809 |
|
16810 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_TimeLine_vue_vue_type_style_index_0_id_2ef591a6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
|
16811 |
|
16812 | }),
|
16813 |
|
16814 | "f008":
|
16815 | (function(module, exports) {
|
16816 |
|
16817 | module.exports = require("vue2-filters");
|
16818 |
|
16819 | }),
|
16820 |
|
16821 | "f156":
|
16822 | (function(module, exports) {
|
16823 |
|
16824 | module.exports = require("babel-polyfill");
|
16825 |
|
16826 | }),
|
16827 |
|
16828 | "f1e5":
|
16829 | (function(module, exports) {
|
16830 |
|
16831 | module.exports = require("vue-progressbar");
|
16832 |
|
16833 | }),
|
16834 |
|
16835 | "f29a":
|
16836 | (function(module, __webpack_exports__, __webpack_require__) {
|
16837 |
|
16838 | "use strict";
|
16839 | var _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("566f");
|
16840 |
|
16841 | __webpack_exports__["a"] = ({
|
16842 | queryLogsServ: function queryLogsServ(params) {
|
16843 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/logs/LogsServ/queryLogsServ", {
|
16844 | params: params
|
16845 | });
|
16846 | },
|
16847 | queryLogsOperData: function queryLogsOperData(params) {
|
16848 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/logs/LogsServ/queryLogsOperData", {
|
16849 | params: params
|
16850 | });
|
16851 | },
|
16852 | queryLogsSqlData: function queryLogsSqlData(params) {
|
16853 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/logs/LogsServ/queryLogsSqlData", {
|
16854 | params: params
|
16855 | });
|
16856 | },
|
16857 | SqlFormat: function SqlFormat(sql) {
|
16858 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/logs/LogsServ/SqlFormat", {
|
16859 | params: {
|
16860 | sql: sql
|
16861 | }
|
16862 | });
|
16863 | },
|
16864 | getLogsServByUuid: function getLogsServByUuid(uuid) {
|
16865 | return _libs_Ajax__WEBPACK_IMPORTED_MODULE_0__[ "a"].get("/logs/LogsServ/getLogsServByUuid", {
|
16866 | params: {
|
16867 | uuid: uuid
|
16868 | }
|
16869 | });
|
16870 | }
|
16871 | });
|
16872 |
|
16873 | }),
|
16874 |
|
16875 | "f319":
|
16876 | (function(module, exports) {
|
16877 |
|
16878 | module.exports = require("querystring");
|
16879 |
|
16880 | }),
|
16881 |
|
16882 | "f61e":
|
16883 | (function(module, exports) {
|
16884 |
|
16885 | module.exports = require("core-js/modules/es6.array.sort");
|
16886 |
|
16887 | }),
|
16888 |
|
16889 | "f678":
|
16890 | (function(module, __webpack_exports__, __webpack_require__) {
|
16891 |
|
16892 | "use strict";
|
16893 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_NotFound_vue_vue_type_style_index_0_id_190b082d_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9483");
|
16894 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_NotFound_vue_vue_type_style_index_0_id_190b082d_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_NotFound_vue_vue_type_style_index_0_id_190b082d_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
16895 |
|
16896 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_NotFound_vue_vue_type_style_index_0_id_190b082d_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
|
16897 |
|
16898 | }),
|
16899 |
|
16900 | "feaa":
|
16901 | (function(module, __webpack_exports__, __webpack_require__) {
|
16902 |
|
16903 | "use strict";
|
16904 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5f6e");
|
16905 | var _node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
16906 |
|
16907 | var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_6_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_1_0_1_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_7_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_7_1_0_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_2_0_1_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_7_1_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
16908 |
|
16909 | })
|
16910 |
|
16911 | });
|
16912 | });
|
16913 |
|
\ | No newline at end of file |