ecinc-cloud-wappaio 9.6.236 → 9.6.238
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ecwappaio.common.js +1179 -1095
- package/lib/ecwappaio.umd.js +1179 -1095
- package/lib/ecwappaio.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/ecwappaio.common.js
CHANGED
|
@@ -8576,7 +8576,7 @@ module.exports = {
|
|
|
8576
8576
|
dangerouslyUseHTMLString: true,
|
|
8577
8577
|
callback: function callback(action) {
|
|
8578
8578
|
if (action === 'confirm') {
|
|
8579
|
-
window.open("/apigw" + '/' +
|
|
8579
|
+
window.open("/apigw" + '/' + response.body.zipurl, '_black');
|
|
8580
8580
|
}
|
|
8581
8581
|
}
|
|
8582
8582
|
});
|
|
@@ -41674,7 +41674,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".CodeMirror-hints,.CodeMirror-lint-too
|
|
|
41674
41674
|
|
|
41675
41675
|
/***/ }),
|
|
41676
41676
|
|
|
41677
|
-
/***/
|
|
41677
|
+
/***/ 93491:
|
|
41678
41678
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
41679
41679
|
|
|
41680
41680
|
"use strict";
|
|
@@ -41695,7 +41695,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".form_item .el-date-editor .el-input__
|
|
|
41695
41695
|
|
|
41696
41696
|
/***/ }),
|
|
41697
41697
|
|
|
41698
|
-
/***/
|
|
41698
|
+
/***/ 92915:
|
|
41699
41699
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
41700
41700
|
|
|
41701
41701
|
"use strict";
|
|
@@ -41709,7 +41709,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41709
41709
|
|
|
41710
41710
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
41711
41711
|
// Module
|
|
41712
|
-
___CSS_LOADER_EXPORT___.push([module.id, "span[data-v-
|
|
41712
|
+
___CSS_LOADER_EXPORT___.push([module.id, "span[data-v-b3350074]{white-space:pre-wrap}[data-v-b3350074] .el-upload--text{width:100%}[data-v-b3350074] .el-divider--horizontal{margin:10px 0}.form_item .el-link[data-v-b3350074]{margin-left:6px}", ""]);
|
|
41713
41713
|
// Exports
|
|
41714
41714
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
41715
41715
|
|
|
@@ -42918,7 +42918,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".page-content[data-v-4ec2112a]{max-wid
|
|
|
42918
42918
|
|
|
42919
42919
|
/***/ }),
|
|
42920
42920
|
|
|
42921
|
-
/***/
|
|
42921
|
+
/***/ 59129:
|
|
42922
42922
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
42923
42923
|
|
|
42924
42924
|
"use strict";
|
|
@@ -42932,7 +42932,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42932
42932
|
|
|
42933
42933
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
42934
42934
|
// Module
|
|
42935
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".platadmin .ztree-container[data-v-
|
|
42935
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".platadmin .ztree-container[data-v-15e0ed95]{height:calc(100% - 32px)}", ""]);
|
|
42936
42936
|
// Exports
|
|
42937
42937
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
42938
42938
|
|
|
@@ -43023,7 +43023,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-cbc5094e] .el-tabs__content{mi
|
|
|
43023
43023
|
|
|
43024
43024
|
/***/ }),
|
|
43025
43025
|
|
|
43026
|
-
/***/
|
|
43026
|
+
/***/ 18278:
|
|
43027
43027
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
43028
43028
|
|
|
43029
43029
|
"use strict";
|
|
@@ -43037,7 +43037,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
43037
43037
|
|
|
43038
43038
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
43039
43039
|
// Module
|
|
43040
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
43040
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-314e5a05] .el-scrollbar{height:30px;width:100%}[data-v-314e5a05] .el-scrollbar .el-scrollbar__wrap{overflow-x:auto}", ""]);
|
|
43041
43041
|
// Exports
|
|
43042
43042
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
43043
43043
|
|
|
@@ -134482,35 +134482,35 @@ var update = add("f9ee0d56", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
134482
134482
|
|
|
134483
134483
|
/***/ }),
|
|
134484
134484
|
|
|
134485
|
-
/***/
|
|
134485
|
+
/***/ 94517:
|
|
134486
134486
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
134487
134487
|
|
|
134488
134488
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
134489
134489
|
|
|
134490
134490
|
// load the styles
|
|
134491
|
-
var content = __webpack_require__(
|
|
134491
|
+
var content = __webpack_require__(93491);
|
|
134492
134492
|
if(content.__esModule) content = content.default;
|
|
134493
134493
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
134494
134494
|
if(content.locals) module.exports = content.locals;
|
|
134495
134495
|
// add the styles to the DOM
|
|
134496
134496
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
134497
|
-
var update = add("
|
|
134497
|
+
var update = add("2b4636a9", content, true, {"sourceMap":false,"shadowMode":false});
|
|
134498
134498
|
|
|
134499
134499
|
/***/ }),
|
|
134500
134500
|
|
|
134501
|
-
/***/
|
|
134501
|
+
/***/ 79793:
|
|
134502
134502
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
134503
134503
|
|
|
134504
134504
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
134505
134505
|
|
|
134506
134506
|
// load the styles
|
|
134507
|
-
var content = __webpack_require__(
|
|
134507
|
+
var content = __webpack_require__(92915);
|
|
134508
134508
|
if(content.__esModule) content = content.default;
|
|
134509
134509
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
134510
134510
|
if(content.locals) module.exports = content.locals;
|
|
134511
134511
|
// add the styles to the DOM
|
|
134512
134512
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
134513
|
-
var update = add("
|
|
134513
|
+
var update = add("7401c2f5", content, true, {"sourceMap":false,"shadowMode":false});
|
|
134514
134514
|
|
|
134515
134515
|
/***/ }),
|
|
134516
134516
|
|
|
@@ -135426,19 +135426,19 @@ var update = add("033192b0", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
135426
135426
|
|
|
135427
135427
|
/***/ }),
|
|
135428
135428
|
|
|
135429
|
-
/***/
|
|
135429
|
+
/***/ 22739:
|
|
135430
135430
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
135431
135431
|
|
|
135432
135432
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
135433
135433
|
|
|
135434
135434
|
// load the styles
|
|
135435
|
-
var content = __webpack_require__(
|
|
135435
|
+
var content = __webpack_require__(59129);
|
|
135436
135436
|
if(content.__esModule) content = content.default;
|
|
135437
135437
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
135438
135438
|
if(content.locals) module.exports = content.locals;
|
|
135439
135439
|
// add the styles to the DOM
|
|
135440
135440
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
135441
|
-
var update = add("
|
|
135441
|
+
var update = add("21a821ff", content, true, {"sourceMap":false,"shadowMode":false});
|
|
135442
135442
|
|
|
135443
135443
|
/***/ }),
|
|
135444
135444
|
|
|
@@ -135506,19 +135506,19 @@ var update = add("57d8adbb", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
135506
135506
|
|
|
135507
135507
|
/***/ }),
|
|
135508
135508
|
|
|
135509
|
-
/***/
|
|
135509
|
+
/***/ 89388:
|
|
135510
135510
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
135511
135511
|
|
|
135512
135512
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
135513
135513
|
|
|
135514
135514
|
// load the styles
|
|
135515
|
-
var content = __webpack_require__(
|
|
135515
|
+
var content = __webpack_require__(18278);
|
|
135516
135516
|
if(content.__esModule) content = content.default;
|
|
135517
135517
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
135518
135518
|
if(content.locals) module.exports = content.locals;
|
|
135519
135519
|
// add the styles to the DOM
|
|
135520
135520
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
135521
|
-
var update = add("
|
|
135521
|
+
var update = add("57bbb4fa", content, true, {"sourceMap":false,"shadowMode":false});
|
|
135522
135522
|
|
|
135523
135523
|
/***/ }),
|
|
135524
135524
|
|
|
@@ -146626,12 +146626,13 @@ var DynamicFormvue_type_template_id_1a7d28ac_render = function render() {
|
|
|
146626
146626
|
};
|
|
146627
146627
|
var DynamicFormvue_type_template_id_1a7d28ac_staticRenderFns = [];
|
|
146628
146628
|
|
|
146629
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Basicform/src/FormItem.vue?vue&type=template&id=
|
|
146630
|
-
var
|
|
146629
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Basicform/src/FormItem.vue?vue&type=template&id=b3350074&scoped=true
|
|
146630
|
+
var FormItemvue_type_template_id_b3350074_scoped_true_render = function render() {
|
|
146631
146631
|
var _vm = this,
|
|
146632
146632
|
_c = _vm._self._c;
|
|
146633
146633
|
return _c('div', {
|
|
146634
|
-
staticClass: "form_item"
|
|
146634
|
+
staticClass: "form_item",
|
|
146635
|
+
class: 'formitem_' + _vm.formItem.propName
|
|
146635
146636
|
}, [_vm.encrypted ? _c('div', {
|
|
146636
146637
|
staticClass: "encrypted",
|
|
146637
146638
|
on: {
|
|
@@ -147207,7 +147208,7 @@ var FormItemvue_type_template_id_72d5bed2_scoped_true_render = function render()
|
|
|
147207
147208
|
}])
|
|
147208
147209
|
})], 1);
|
|
147209
147210
|
};
|
|
147210
|
-
var
|
|
147211
|
+
var FormItemvue_type_template_id_b3350074_scoped_true_staticRenderFns = [];
|
|
147211
147212
|
|
|
147212
147213
|
;// CONCATENATED MODULE: ./src/global/filters/index.js
|
|
147213
147214
|
|
|
@@ -148405,13 +148406,13 @@ var FormItemvue_type_script_lang_js_moment = __webpack_require__(95093);
|
|
|
148405
148406
|
});
|
|
148406
148407
|
;// CONCATENATED MODULE: ./packages/ecwapp/Basicform/src/FormItem.vue?vue&type=script&lang=js
|
|
148407
148408
|
/* harmony default export */ var src_FormItemvue_type_script_lang_js = (FormItemvue_type_script_lang_js);
|
|
148408
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Basicform/src/FormItem.vue?vue&type=style&index=0&id=
|
|
148409
|
-
var
|
|
148410
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/Basicform/src/FormItem.vue?vue&type=style&index=0&id=
|
|
148409
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Basicform/src/FormItem.vue?vue&type=style&index=0&id=b3350074&prod&lang=scss
|
|
148410
|
+
var FormItemvue_type_style_index_0_id_b3350074_prod_lang_scss = __webpack_require__(94517);
|
|
148411
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/Basicform/src/FormItem.vue?vue&type=style&index=0&id=b3350074&prod&lang=scss
|
|
148411
148412
|
|
|
148412
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Basicform/src/FormItem.vue?vue&type=style&index=1&id=
|
|
148413
|
-
var
|
|
148414
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/Basicform/src/FormItem.vue?vue&type=style&index=1&id=
|
|
148413
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Basicform/src/FormItem.vue?vue&type=style&index=1&id=b3350074&prod&lang=scss&scoped=true
|
|
148414
|
+
var FormItemvue_type_style_index_1_id_b3350074_prod_lang_scss_scoped_true = __webpack_require__(79793);
|
|
148415
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/Basicform/src/FormItem.vue?vue&type=style&index=1&id=b3350074&prod&lang=scss&scoped=true
|
|
148415
148416
|
|
|
148416
148417
|
;// CONCATENATED MODULE: ./packages/ecwapp/Basicform/src/FormItem.vue
|
|
148417
148418
|
|
|
@@ -148425,11 +148426,11 @@ var FormItemvue_type_style_index_1_id_72d5bed2_prod_lang_scss_scoped_true = __we
|
|
|
148425
148426
|
|
|
148426
148427
|
var FormItem_component = (0,componentNormalizer/* default */.A)(
|
|
148427
148428
|
src_FormItemvue_type_script_lang_js,
|
|
148428
|
-
|
|
148429
|
-
|
|
148429
|
+
FormItemvue_type_template_id_b3350074_scoped_true_render,
|
|
148430
|
+
FormItemvue_type_template_id_b3350074_scoped_true_staticRenderFns,
|
|
148430
148431
|
false,
|
|
148431
148432
|
null,
|
|
148432
|
-
"
|
|
148433
|
+
"b3350074",
|
|
148433
148434
|
null
|
|
148434
148435
|
|
|
148435
148436
|
)
|
|
@@ -191463,8 +191464,8 @@ var ImportWorkgroupMember_component = (0,componentNormalizer/* default */.A)(
|
|
|
191463
191464
|
)
|
|
191464
191465
|
|
|
191465
191466
|
/* harmony default export */ var ImportWorkgroupMember = (ImportWorkgroupMember_component.exports);
|
|
191466
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/OrgPersonMgr.vue?vue&type=template&id=
|
|
191467
|
-
var
|
|
191467
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/OrgPersonMgr.vue?vue&type=template&id=15e0ed95&scoped=true
|
|
191468
|
+
var OrgPersonMgrvue_type_template_id_15e0ed95_scoped_true_render = function render() {
|
|
191468
191469
|
var _vm = this,
|
|
191469
191470
|
_c = _vm._self._c;
|
|
191470
191471
|
return _c('div', [_vm.treeShow ? _c('LRLayout', [_c('LeftPanel', {
|
|
@@ -191508,14 +191509,66 @@ var OrgPersonMgrvue_type_template_id_564a2379_scoped_true_render = function rend
|
|
|
191508
191509
|
"onCreated": _vm.onTreeCreated,
|
|
191509
191510
|
"onClick": _vm.onTreeNodeClick,
|
|
191510
191511
|
"onExpand": _vm.treeBeforeExpand
|
|
191511
|
-
}
|
|
191512
|
+
},
|
|
191513
|
+
scopedSlots: _vm._u([{
|
|
191514
|
+
key: "context-menu",
|
|
191515
|
+
fn: function fn(slotProps) {
|
|
191516
|
+
return [slotProps.contextNode.type === 'rootOrg' ? _c('ul', [_c('li', {
|
|
191517
|
+
directives: [{
|
|
191518
|
+
name: "text-lbl",
|
|
191519
|
+
rawName: "v-text-lbl",
|
|
191520
|
+
value: 'ecwplat.PageBtns.updateMainOrg',
|
|
191521
|
+
expression: "'ecwplat.PageBtns.updateMainOrg'"
|
|
191522
|
+
}],
|
|
191523
|
+
on: {
|
|
191524
|
+
"click": function click($event) {
|
|
191525
|
+
return _vm.editNode(slotProps.treeId, slotProps.contextNode);
|
|
191526
|
+
}
|
|
191527
|
+
}
|
|
191528
|
+
}, [_vm._v("修改主机构")])]) : _vm._e(), _c('ul', {
|
|
191529
|
+
directives: [{
|
|
191530
|
+
name: "show",
|
|
191531
|
+
rawName: "v-show",
|
|
191532
|
+
value: slotProps.contextNode.type === 'subOrg',
|
|
191533
|
+
expression: "slotProps.contextNode.type === 'subOrg'"
|
|
191534
|
+
}]
|
|
191535
|
+
}, [_c('li', {
|
|
191536
|
+
directives: [{
|
|
191537
|
+
name: "text-lbl",
|
|
191538
|
+
rawName: "v-text-lbl",
|
|
191539
|
+
value: 'ecwplat.PageBtns.updateOrg',
|
|
191540
|
+
expression: "'ecwplat.PageBtns.updateOrg'"
|
|
191541
|
+
}],
|
|
191542
|
+
on: {
|
|
191543
|
+
"click": function click($event) {
|
|
191544
|
+
return _vm.editNode(slotProps.treeId, slotProps.contextNode);
|
|
191545
|
+
}
|
|
191546
|
+
}
|
|
191547
|
+
}, [_vm._v("修改机构")])])];
|
|
191548
|
+
}
|
|
191549
|
+
}], null, false, 849198281)
|
|
191512
191550
|
})], 1), _c('RightPanel', [_vm.treeNode != null && _vm.tableShow ? _c('OrgPersonList', {
|
|
191513
191551
|
attrs: {
|
|
191514
191552
|
"tree-node": _vm.treeNode,
|
|
191515
191553
|
"exclude-plat": _vm.excludePlat,
|
|
191516
191554
|
"show-position-type": _vm.showPositionType
|
|
191517
191555
|
}
|
|
191518
|
-
}) : _vm._e()
|
|
191556
|
+
}) : _vm._e(), _c('div', {
|
|
191557
|
+
directives: [{
|
|
191558
|
+
name: "show",
|
|
191559
|
+
rawName: "v-show",
|
|
191560
|
+
value: false,
|
|
191561
|
+
expression: "false"
|
|
191562
|
+
}]
|
|
191563
|
+
}, [_vm.nodeMessage !== null && _vm.nodeMessage.type === 'rootOrg' ? _c('RootOrg', {
|
|
191564
|
+
attrs: {
|
|
191565
|
+
"vo": _vm.nodeMessage
|
|
191566
|
+
}
|
|
191567
|
+
}) : _vm._e(), _vm.nodeMessage !== null && _vm.nodeMessage.type === 'subOrg' ? _c('SubOrg', {
|
|
191568
|
+
attrs: {
|
|
191569
|
+
"vo": _vm.nodeMessage
|
|
191570
|
+
}
|
|
191571
|
+
}) : _vm._e()], 1)], 1)], 1) : _vm.treeNode != null ? _c('div', {
|
|
191519
191572
|
staticClass: "app-container"
|
|
191520
191573
|
}, [_c('OrgPersonList', {
|
|
191521
191574
|
attrs: {
|
|
@@ -191525,7 +191578,7 @@ var OrgPersonMgrvue_type_template_id_564a2379_scoped_true_render = function rend
|
|
|
191525
191578
|
}
|
|
191526
191579
|
})], 1) : _vm._e()], 1);
|
|
191527
191580
|
};
|
|
191528
|
-
var
|
|
191581
|
+
var OrgPersonMgrvue_type_template_id_15e0ed95_scoped_true_staticRenderFns = [];
|
|
191529
191582
|
|
|
191530
191583
|
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/api/staffmgr.js
|
|
191531
191584
|
var staffmgr_moment = __webpack_require__(95093);
|
|
@@ -191673,8 +191726,8 @@ function getFieldChangeLog(changeFields, entityFields) {
|
|
|
191673
191726
|
});
|
|
191674
191727
|
return changeLog;
|
|
191675
191728
|
}
|
|
191676
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/OrgPersonList.vue?vue&type=template&id=
|
|
191677
|
-
var
|
|
191729
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/OrgPersonList.vue?vue&type=template&id=314e5a05&scoped=true
|
|
191730
|
+
var OrgPersonListvue_type_template_id_314e5a05_scoped_true_render = function render() {
|
|
191678
191731
|
var _vm = this,
|
|
191679
191732
|
_c = _vm._self._c;
|
|
191680
191733
|
return _c('div', {
|
|
@@ -191766,6 +191819,7 @@ var OrgPersonListvue_type_template_id_263ebb1e_scoped_true_render = function ren
|
|
|
191766
191819
|
}])
|
|
191767
191820
|
}), _c('Basicform', {
|
|
191768
191821
|
attrs: {
|
|
191822
|
+
"module-code": 'orgPerson',
|
|
191769
191823
|
"title": _vm.$tx('ecwplat.sysSetup.personInfo', '人员信息'),
|
|
191770
191824
|
"win-width": _vm.moduleInfo.winWidth,
|
|
191771
191825
|
"win-height": _vm.moduleInfo.winHeight,
|
|
@@ -191795,7 +191849,7 @@ var OrgPersonListvue_type_template_id_263ebb1e_scoped_true_render = function ren
|
|
|
191795
191849
|
}])
|
|
191796
191850
|
})], 1);
|
|
191797
191851
|
};
|
|
191798
|
-
var
|
|
191852
|
+
var OrgPersonListvue_type_template_id_314e5a05_scoped_true_staticRenderFns = [];
|
|
191799
191853
|
|
|
191800
191854
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/OrgPersonForm.vue?vue&type=template&id=cbc5094e&scoped=true
|
|
191801
191855
|
var OrgPersonFormvue_type_template_id_cbc5094e_scoped_true_render = function render() {
|
|
@@ -194743,6 +194797,7 @@ var OrgPersonListvue_type_script_lang_js_moment = __webpack_require__(95093);
|
|
|
194743
194797
|
viewperson: 0,
|
|
194744
194798
|
// 查看公共通讯录
|
|
194745
194799
|
moduleInfo: {
|
|
194800
|
+
moduleCode: 'orgPerson',
|
|
194746
194801
|
addNewUrl: 'base/orgTreeMgr/addNewOrgPerson?parentId=' + this.treeNode.id,
|
|
194747
194802
|
insertUrl: 'base/orgTreeMgr/insertOrgPerson',
|
|
194748
194803
|
getByIdUrl: 'base/orgTreeMgr/getOrgPersonById',
|
|
@@ -195661,9 +195716,9 @@ var OrgPersonListvue_type_script_lang_js_moment = __webpack_require__(95093);
|
|
|
195661
195716
|
});
|
|
195662
195717
|
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/components/OrgPersonList.vue?vue&type=script&lang=js
|
|
195663
195718
|
/* harmony default export */ var components_OrgPersonListvue_type_script_lang_js = (OrgPersonListvue_type_script_lang_js);
|
|
195664
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/OrgPersonList.vue?vue&type=style&index=0&id=
|
|
195665
|
-
var
|
|
195666
|
-
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/components/OrgPersonList.vue?vue&type=style&index=0&id=
|
|
195719
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/OrgPersonList.vue?vue&type=style&index=0&id=314e5a05&prod&scoped=true&lang=scss
|
|
195720
|
+
var OrgPersonListvue_type_style_index_0_id_314e5a05_prod_scoped_true_lang_scss = __webpack_require__(89388);
|
|
195721
|
+
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/components/OrgPersonList.vue?vue&type=style&index=0&id=314e5a05&prod&scoped=true&lang=scss
|
|
195667
195722
|
|
|
195668
195723
|
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/components/OrgPersonList.vue
|
|
195669
195724
|
|
|
@@ -195676,645 +195731,78 @@ var OrgPersonListvue_type_style_index_0_id_263ebb1e_prod_scoped_true_lang_scss =
|
|
|
195676
195731
|
|
|
195677
195732
|
var OrgPersonList_component = (0,componentNormalizer/* default */.A)(
|
|
195678
195733
|
components_OrgPersonListvue_type_script_lang_js,
|
|
195679
|
-
|
|
195680
|
-
|
|
195734
|
+
OrgPersonListvue_type_template_id_314e5a05_scoped_true_render,
|
|
195735
|
+
OrgPersonListvue_type_template_id_314e5a05_scoped_true_staticRenderFns,
|
|
195681
195736
|
false,
|
|
195682
195737
|
null,
|
|
195683
|
-
"
|
|
195738
|
+
"314e5a05",
|
|
195684
195739
|
null
|
|
195685
195740
|
|
|
195686
195741
|
)
|
|
195687
195742
|
|
|
195688
195743
|
/* harmony default export */ var OrgPersonList = (OrgPersonList_component.exports);
|
|
195689
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/
|
|
195690
|
-
|
|
195691
|
-
function OrgPersonMgrvue_type_script_lang_js_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
195692
|
-
function OrgPersonMgrvue_type_script_lang_js_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return OrgPersonMgrvue_type_script_lang_js_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? OrgPersonMgrvue_type_script_lang_js_arrayLikeToArray(r, a) : void 0; } }
|
|
195693
|
-
function OrgPersonMgrvue_type_script_lang_js_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
195694
|
-
function OrgPersonMgrvue_type_script_lang_js_arrayWithoutHoles(r) { if (Array.isArray(r)) return OrgPersonMgrvue_type_script_lang_js_arrayLikeToArray(r); }
|
|
195695
|
-
function OrgPersonMgrvue_type_script_lang_js_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
195696
|
-
|
|
195697
|
-
|
|
195698
|
-
/* harmony default export */ var OrgPersonMgrvue_type_script_lang_js = ({
|
|
195699
|
-
name: 'OrgPersonMgr',
|
|
195700
|
-
components: {
|
|
195701
|
-
OrgPersonList: OrgPersonList
|
|
195702
|
-
},
|
|
195703
|
-
props: {},
|
|
195704
|
-
data: function data() {
|
|
195705
|
-
return {
|
|
195706
|
-
treeData: [],
|
|
195707
|
-
treeNode: null,
|
|
195708
|
-
loginUser: this.$store.getters.loginUser,
|
|
195709
|
-
folderUser: '/plugins/zTree/css/img/folder_user.png',
|
|
195710
|
-
treeShow: true,
|
|
195711
|
-
//是否显示左侧目录树
|
|
195712
|
-
tableShow: false,
|
|
195713
|
-
searchKeyWord: '',
|
|
195714
|
-
dwadmin: null,
|
|
195715
|
-
excludePlat: '0',
|
|
195716
|
-
// 是否排除plat机构
|
|
195717
|
-
showPositionType: false // 是否显示职务类型
|
|
195718
|
-
};
|
|
195719
|
-
},
|
|
195720
|
-
computed: {},
|
|
195721
|
-
watch: {},
|
|
195722
|
-
created: function created() {
|
|
195723
|
-
this.getOrgTreeNodes();
|
|
195724
|
-
},
|
|
195725
|
-
beforeDestroy: function beforeDestroy() {},
|
|
195726
|
-
mounted: function mounted() {
|
|
195727
|
-
this.dwadmin = this.loginUser.orgCode !== 'plat' || this.$route.meta.params && this.$route.meta.params.indexOf('dwadmin=1') !== -1;
|
|
195728
|
-
this.excludePlat = this.$route.query.excludePlat;
|
|
195729
|
-
if (this.$route.meta.params && this.$route.meta.params.indexOf('showPositionType=true') !== -1) {
|
|
195730
|
-
this.showPositionType = true;
|
|
195731
|
-
}
|
|
195732
|
-
},
|
|
195733
|
-
methods: {
|
|
195734
|
-
onTreeCreated: function onTreeCreated(zTree) {
|
|
195735
|
-
this.zTree = zTree;
|
|
195736
|
-
if (this.loginUser.staffList.length > 0 && this.loginUser.orgCode !== 'plat') {
|
|
195737
|
-
var orgid = this.loginUser.staffList[0].orgFullId.split('-')[0];
|
|
195738
|
-
var treeObj = this.zTree; // 获取树
|
|
195739
|
-
|
|
195740
|
-
var treenode = treeObj.getNodeByParam('id', orgid, null); // 人员所在机构的树节点
|
|
195741
|
-
if (treenode === null && treeObj.getNodes().length > 0) {
|
|
195742
|
-
treenode = treeObj.getNodes()[0];
|
|
195743
|
-
}
|
|
195744
|
-
if (treenode) {
|
|
195745
|
-
this.onTreeNodeClick('', treenode.id, treenode); // 获取节点数据
|
|
195746
|
-
treeObj.selectNode(treenode); // 选中当前节点
|
|
195747
|
-
}
|
|
195748
|
-
} else {
|
|
195749
|
-
var _treeObj = this.zTree; // 获取树
|
|
195750
|
-
var treenodes = _treeObj.getNodes(); // 根节点
|
|
195751
|
-
|
|
195752
|
-
if (treenodes.length > 0) {
|
|
195753
|
-
if (treenodes.length > 1) {
|
|
195754
|
-
treenodes.splice(0, 0, {
|
|
195755
|
-
id: -1,
|
|
195756
|
-
pId: null,
|
|
195757
|
-
name: '组织机构目录',
|
|
195758
|
-
type: 'treeNode'
|
|
195759
|
-
});
|
|
195760
|
-
}
|
|
195761
|
-
this.onTreeNodeClick('', treenodes[0].id, treenodes[0]); // 获取节点数据
|
|
195762
|
-
_treeObj.selectNode(treenodes[0]); // 选中当前节点
|
|
195763
|
-
if (treenodes.length === 1) {
|
|
195764
|
-
this.treeBeforeExpand(null, zTree.id, treenodes[0]);
|
|
195765
|
-
_treeObj.expandNode(treenodes[0], true); // 展开根节点
|
|
195766
|
-
}
|
|
195767
|
-
}
|
|
195768
|
-
}
|
|
195769
|
-
},
|
|
195770
|
-
// 加载数据
|
|
195771
|
-
getOrgTreeNodes: function getOrgTreeNodes() {
|
|
195772
|
-
var _this = this;
|
|
195773
|
-
if (this.loginUser.orgCode !== 'plat' || this.$route.meta.params && (this.$route.meta.params.indexOf('dwadmin=1') !== -1 || this.$route.meta.params.indexOf('deptadmin=1') !== -1)) {
|
|
195774
|
-
var httpRe = {
|
|
195775
|
-
method: 'GET',
|
|
195776
|
-
params: {
|
|
195777
|
-
orgCode: this.loginUser.orgCode,
|
|
195778
|
-
status: 1,
|
|
195779
|
-
self: true
|
|
195780
|
-
},
|
|
195781
|
-
// 查询机构、子机构
|
|
195782
|
-
url: 'base/organMgr/findTreeNodeVOListByOrgCode'
|
|
195783
|
-
};
|
|
195784
|
-
if (this.$route.meta.params && this.$route.meta.params.indexOf('deptadmin=1') !== -1) {
|
|
195785
|
-
var deptIds = '';
|
|
195786
|
-
for (var i = 0; i < this.loginUser.staffList.length; i++) {
|
|
195787
|
-
var deptId = this.loginUser.staffList[i].orgFullId.split('-')[1];
|
|
195788
|
-
if (deptIds === '') {
|
|
195789
|
-
deptIds = deptId;
|
|
195790
|
-
} else if ((',' + deptIds).indexOf(',' + deptId) === -1) {
|
|
195791
|
-
deptIds += ',' + deptId;
|
|
195792
|
-
}
|
|
195793
|
-
}
|
|
195794
|
-
if (deptIds) {
|
|
195795
|
-
httpRe.url = 'base/organMgr/findTreeNodeVOListByOrgId';
|
|
195796
|
-
httpRe.params.orgId = deptIds;
|
|
195797
|
-
}
|
|
195798
|
-
}
|
|
195799
|
-
this.$http(httpRe).then(function (res) {
|
|
195800
|
-
if (res.code === 'success') {
|
|
195801
|
-
_this.treeData = _this.treeDataAdapter(res.body.listdata);
|
|
195802
|
-
if (res.body.listdata.length > 0) {
|
|
195803
|
-
res.body.listdata[0].open = true;
|
|
195804
|
-
}
|
|
195805
|
-
} else {
|
|
195806
|
-
_this.$alert(res.message, {
|
|
195807
|
-
type: 'error'
|
|
195808
|
-
});
|
|
195809
|
-
}
|
|
195810
|
-
});
|
|
195811
|
-
} else {
|
|
195812
|
-
findTreeNodeVOListByNodeId(this, 1).then(function (res) {
|
|
195813
|
-
if (res.code === 'success') {
|
|
195814
|
-
var _this$treeData;
|
|
195815
|
-
if (res.body.listdata.length > 0) {
|
|
195816
|
-
var nodeIds = [];
|
|
195817
|
-
for (var _i = 0; _i < res.body.listdata.length; _i++) {
|
|
195818
|
-
var node = res.body.listdata[_i];
|
|
195819
|
-
if (node.type === 'rootOrg') {
|
|
195820
|
-
if (node.fullID && node.fullID.indexOf('-') !== -1) {
|
|
195821
|
-
node.fullID.split('-').forEach(function (id) {
|
|
195822
|
-
if (nodeIds.indexOf(id) === -1) {
|
|
195823
|
-
nodeIds.push(id);
|
|
195824
|
-
}
|
|
195825
|
-
});
|
|
195826
|
-
} else {
|
|
195827
|
-
// 机构人员管理,不显示未关联到treeNode的机构
|
|
195828
|
-
res.body.listdata.splice(_i--, 1);
|
|
195829
|
-
}
|
|
195830
|
-
}
|
|
195831
|
-
}
|
|
195832
|
-
var rootOrgCount = 0;
|
|
195833
|
-
for (var _i2 = 0; _i2 < res.body.listdata.length; _i2++) {
|
|
195834
|
-
var _node = res.body.listdata[_i2];
|
|
195835
|
-
if (_node.type === 'treeNode' && nodeIds.indexOf(_node.id) === -1) {
|
|
195836
|
-
res.body.listdata.splice(_i2--, 1);
|
|
195837
|
-
} else if (_node.type === 'rootOrg') {
|
|
195838
|
-
rootOrgCount++;
|
|
195839
|
-
}
|
|
195840
|
-
}
|
|
195841
|
-
if (rootOrgCount === 1) {
|
|
195842
|
-
//this.treeShow = false
|
|
195843
|
-
for (var _i3 = 0; _i3 < res.body.listdata.length; _i3++) {
|
|
195844
|
-
var _node2 = res.body.listdata[_i3];
|
|
195845
|
-
if (_node2.type === 'rootOrg') {
|
|
195846
|
-
_this.treeNode = _node2;
|
|
195847
|
-
} else {
|
|
195848
|
-
res.body.listdata.splice(_i3--, 1);
|
|
195849
|
-
}
|
|
195850
|
-
}
|
|
195851
|
-
} else {
|
|
195852
|
-
var topLevel = res.body.listdata[0].nLevel;
|
|
195853
|
-
var rootNodes = res.body.listdata.filter(function (node) {
|
|
195854
|
-
if (node.nLevel === topLevel) {
|
|
195855
|
-
return true;
|
|
195856
|
-
}
|
|
195857
|
-
});
|
|
195858
|
-
if (rootNodes.length > 1) {
|
|
195859
|
-
_this.treeData.push({
|
|
195860
|
-
id: -1,
|
|
195861
|
-
pId: null,
|
|
195862
|
-
name: '机构人员目录',
|
|
195863
|
-
type: 'treeNode'
|
|
195864
|
-
});
|
|
195865
|
-
}
|
|
195866
|
-
}
|
|
195867
|
-
}
|
|
195868
|
-
(_this$treeData = _this.treeData).push.apply(_this$treeData, OrgPersonMgrvue_type_script_lang_js_toConsumableArray(_this.treeDataAdapter(res.body.listdata)));
|
|
195869
|
-
} else {
|
|
195870
|
-
_this.$alert(res.message, {
|
|
195871
|
-
type: 'error'
|
|
195872
|
-
});
|
|
195873
|
-
}
|
|
195874
|
-
});
|
|
195875
|
-
}
|
|
195876
|
-
},
|
|
195877
|
-
treeDataAdapter: function treeDataAdapter(treeData) {
|
|
195878
|
-
var platOrgIds = [];
|
|
195879
|
-
for (var i = 0; i < treeData.length; i++) {
|
|
195880
|
-
var node = treeData[i];
|
|
195881
|
-
node.pId = node.parentID || -1;
|
|
195882
|
-
node.name = node.nName;
|
|
195883
|
-
node.title = node.name + ' ' + node.orderNo;
|
|
195884
|
-
if (node.type === 'rootOrg') {
|
|
195885
|
-
if (this.excludePlat === '1' && node.ocode === 'plat') {
|
|
195886
|
-
platOrgIds.push(node.id);
|
|
195887
|
-
treeData.splice(i--, 1);
|
|
195888
|
-
} else {
|
|
195889
|
-
node.isParent = true;
|
|
195890
|
-
node.icon = this.folderUser;
|
|
195891
|
-
}
|
|
195892
|
-
} else if (node.type === 'subOrg' && node.status !== 1) {
|
|
195893
|
-
// 机构人员管理,不显示无效的机构
|
|
195894
|
-
treeData.splice(i--, 1);
|
|
195895
|
-
} else if (this.excludePlat === '1' && platOrgIds.indexOf(node.pId) !== -1) {
|
|
195896
|
-
platOrgIds.push(node.id);
|
|
195897
|
-
treeData.splice(i--, 1);
|
|
195898
|
-
}
|
|
195899
|
-
}
|
|
195900
|
-
|
|
195901
|
-
// treeData格式必须遵循ztreeview treeNode规范
|
|
195902
|
-
return treeData;
|
|
195903
|
-
},
|
|
195904
|
-
// 节点点击事件
|
|
195905
|
-
onTreeNodeClick: function onTreeNodeClick(evt, treeId, treeNode) {
|
|
195906
|
-
var _this2 = this;
|
|
195907
|
-
this.treeNode = treeNode;
|
|
195908
|
-
this.tableShow = false;
|
|
195909
|
-
this.$nextTick(function () {
|
|
195910
|
-
_this2.tableShow = true;
|
|
195911
|
-
});
|
|
195912
|
-
},
|
|
195913
|
-
// 节点展开前事件
|
|
195914
|
-
treeBeforeExpand: function treeBeforeExpand(evt, treeId, treeNode) {
|
|
195915
|
-
var _this3 = this;
|
|
195916
|
-
if (treeNode.type === 'rootOrg' && !treeNode.children) {
|
|
195917
|
-
findTreeNodeVOListByOrgId(this, treeNode.id).then(function (res) {
|
|
195918
|
-
if (res.code === 'success') {
|
|
195919
|
-
var listdata = res.body.listdata;
|
|
195920
|
-
var children = _this3.getChildren(listdata, treeNode);
|
|
195921
|
-
_this3.zTree.addNodes(treeNode, 0, children);
|
|
195922
|
-
} else {
|
|
195923
|
-
_this3.$alert(res.message, {
|
|
195924
|
-
type: 'error'
|
|
195925
|
-
});
|
|
195926
|
-
}
|
|
195927
|
-
});
|
|
195928
|
-
}
|
|
195929
|
-
},
|
|
195930
|
-
getChildren: function getChildren(listdata, parentNode) {
|
|
195931
|
-
var _this4 = this;
|
|
195932
|
-
parentNode.name = parentNode.nName;
|
|
195933
|
-
parentNode.pId = parentNode.parentID;
|
|
195934
|
-
parentNode.isFolder = 0;
|
|
195935
|
-
var children = [];
|
|
195936
|
-
for (var i = 0; i < listdata.length; i++) {
|
|
195937
|
-
var node = listdata[i];
|
|
195938
|
-
node.title = node.nName + ' ' + node.orderNo;
|
|
195939
|
-
if (node.parentID === parentNode.id) {
|
|
195940
|
-
if (node.status === 1) {
|
|
195941
|
-
// 机构人员管理,只显示有效的数据
|
|
195942
|
-
children.push(node);
|
|
195943
|
-
}
|
|
195944
|
-
listdata.splice(i--, 1);
|
|
195945
|
-
}
|
|
195946
|
-
}
|
|
195947
|
-
if (children.length > 0) {
|
|
195948
|
-
children = children.sort(function (a, b) {
|
|
195949
|
-
return a.orderNo - b.orderNo;
|
|
195950
|
-
});
|
|
195951
|
-
children.forEach(function (pNode) {
|
|
195952
|
-
_this4.getChildren(listdata, pNode);
|
|
195953
|
-
});
|
|
195954
|
-
parentNode.isFolder = 1;
|
|
195955
|
-
parentNode.children = children;
|
|
195956
|
-
}
|
|
195957
|
-
return children;
|
|
195958
|
-
},
|
|
195959
|
-
searchOrgan: function searchOrgan() {
|
|
195960
|
-
var _this5 = this;
|
|
195961
|
-
if (this.searchKeyWord) {
|
|
195962
|
-
this.$http({
|
|
195963
|
-
method: 'GET',
|
|
195964
|
-
url: '/base/organMgr/findTreeNodeVOListByRootOrg?searchKey=' + this.searchKeyWord
|
|
195965
|
-
}).then(function (res) {
|
|
195966
|
-
_this5.treeData = _this5.treeDataAdapter(res.body.listdata);
|
|
195967
|
-
});
|
|
195968
|
-
} else {
|
|
195969
|
-
this.treeData = [];
|
|
195970
|
-
this.getOrgTreeNodes();
|
|
195971
|
-
}
|
|
195972
|
-
}
|
|
195973
|
-
}
|
|
195974
|
-
});
|
|
195975
|
-
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/OrgPersonMgr.vue?vue&type=script&lang=js
|
|
195976
|
-
/* harmony default export */ var src_OrgPersonMgrvue_type_script_lang_js = (OrgPersonMgrvue_type_script_lang_js);
|
|
195977
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/OrgPersonMgr.vue?vue&type=style&index=0&id=564a2379&prod&scoped=true&lang=scss
|
|
195978
|
-
var OrgPersonMgrvue_type_style_index_0_id_564a2379_prod_scoped_true_lang_scss = __webpack_require__(2028);
|
|
195979
|
-
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/OrgPersonMgr.vue?vue&type=style&index=0&id=564a2379&prod&scoped=true&lang=scss
|
|
195980
|
-
|
|
195981
|
-
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/OrgPersonMgr.vue
|
|
195982
|
-
|
|
195983
|
-
|
|
195984
|
-
|
|
195985
|
-
;
|
|
195986
|
-
|
|
195987
|
-
|
|
195988
|
-
/* normalize component */
|
|
195989
|
-
|
|
195990
|
-
var OrgPersonMgr_component = (0,componentNormalizer/* default */.A)(
|
|
195991
|
-
src_OrgPersonMgrvue_type_script_lang_js,
|
|
195992
|
-
OrgPersonMgrvue_type_template_id_564a2379_scoped_true_render,
|
|
195993
|
-
OrgPersonMgrvue_type_template_id_564a2379_scoped_true_staticRenderFns,
|
|
195994
|
-
false,
|
|
195995
|
-
null,
|
|
195996
|
-
"564a2379",
|
|
195997
|
-
null
|
|
195998
|
-
|
|
195999
|
-
)
|
|
196000
|
-
|
|
196001
|
-
/* harmony default export */ var OrgPersonMgr = (OrgPersonMgr_component.exports);
|
|
196002
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/OrgTreeMgr.vue?vue&type=template&id=28a541c4&scoped=true
|
|
196003
|
-
var OrgTreeMgrvue_type_template_id_28a541c4_scoped_true_render = function render() {
|
|
196004
|
-
var _vm = this,
|
|
196005
|
-
_c = _vm._self._c;
|
|
196006
|
-
return _c('LRLayout', [_c('LeftPanel', {
|
|
196007
|
-
class: {
|
|
196008
|
-
platadmin: !_vm.dwadmin
|
|
196009
|
-
}
|
|
196010
|
-
}, [!_vm.dwadmin ? _c('el-input', {
|
|
196011
|
-
attrs: {
|
|
196012
|
-
"placeholder": _vm.$tx('ecwplat.Common.keyPlaceholder', '请输入搜索关键字'),
|
|
196013
|
-
"size": "small"
|
|
196014
|
-
},
|
|
196015
|
-
nativeOn: {
|
|
196016
|
-
"keyup": function keyup($event) {
|
|
196017
|
-
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
|
|
196018
|
-
return _vm.searchOrgan();
|
|
196019
|
-
}
|
|
196020
|
-
},
|
|
196021
|
-
model: {
|
|
196022
|
-
value: _vm.searchKeyWord,
|
|
196023
|
-
callback: function callback($$v) {
|
|
196024
|
-
_vm.searchKeyWord = $$v;
|
|
196025
|
-
},
|
|
196026
|
-
expression: "searchKeyWord"
|
|
196027
|
-
}
|
|
196028
|
-
}, [_c('el-button', {
|
|
196029
|
-
attrs: {
|
|
196030
|
-
"slot": "append",
|
|
196031
|
-
"icon": "el-icon-search"
|
|
196032
|
-
},
|
|
196033
|
-
on: {
|
|
196034
|
-
"click": function click($event) {
|
|
196035
|
-
return _vm.searchOrgan();
|
|
196036
|
-
}
|
|
196037
|
-
},
|
|
196038
|
-
slot: "append"
|
|
196039
|
-
})], 1) : _vm._e(), _c('GiantTree', {
|
|
196040
|
-
attrs: {
|
|
196041
|
-
"nodes": _vm.treeData,
|
|
196042
|
-
"drag": _vm.drag,
|
|
196043
|
-
"tree-before-drop-node": _vm.treeBeforeDropNode
|
|
196044
|
-
},
|
|
196045
|
-
on: {
|
|
196046
|
-
"onCreated": _vm.onTreeCreated,
|
|
196047
|
-
"onClick": _vm.onTreeNodeClick,
|
|
196048
|
-
"onExpand": _vm.treeBeforeExpand,
|
|
196049
|
-
"onDrop": _vm.treeDropNode
|
|
196050
|
-
},
|
|
196051
|
-
scopedSlots: _vm._u([{
|
|
196052
|
-
key: "context-menu",
|
|
196053
|
-
fn: function fn(slotProps) {
|
|
196054
|
-
return [slotProps.contextNode.id === -1 ? _c('ul', [_c('li', {
|
|
196055
|
-
directives: [{
|
|
196056
|
-
name: "text-lbl",
|
|
196057
|
-
rawName: "v-text-lbl",
|
|
196058
|
-
value: 'ecwplat.PageBtns.addRootNode',
|
|
196059
|
-
expression: "'ecwplat.PageBtns.addRootNode'"
|
|
196060
|
-
}],
|
|
196061
|
-
on: {
|
|
196062
|
-
"click": function click($event) {
|
|
196063
|
-
return _vm.addTreeNode(slotProps.treeId, slotProps.contextNode, 'rootNode');
|
|
196064
|
-
}
|
|
196065
|
-
}
|
|
196066
|
-
}, [_vm._v("新增根节点")]), _c('li', {
|
|
196067
|
-
directives: [{
|
|
196068
|
-
name: "text-lbl",
|
|
196069
|
-
rawName: "v-text-lbl",
|
|
196070
|
-
value: 'ecwplat.PageBtns.addMainOrg',
|
|
196071
|
-
expression: "'ecwplat.PageBtns.addMainOrg'"
|
|
196072
|
-
}],
|
|
196073
|
-
on: {
|
|
196074
|
-
"click": function click($event) {
|
|
196075
|
-
return _vm.addRootOrg(slotProps.treeId, slotProps.contextNode);
|
|
196076
|
-
}
|
|
196077
|
-
}
|
|
196078
|
-
}, [_vm._v("新增主机构")])]) : slotProps.contextNode.type === 'treeNode' || slotProps.contextNode.type === 'area' ? _c('ul', [_c('li', {
|
|
196079
|
-
directives: [{
|
|
196080
|
-
name: "text-lbl",
|
|
196081
|
-
rawName: "v-text-lbl",
|
|
196082
|
-
value: 'ecwplat.PageBtns.addRootNode',
|
|
196083
|
-
expression: "'ecwplat.PageBtns.addRootNode'"
|
|
196084
|
-
}],
|
|
196085
|
-
on: {
|
|
196086
|
-
"click": function click($event) {
|
|
196087
|
-
return _vm.addTreeNode(slotProps.treeId, slotProps.contextNode, 'rootNode');
|
|
196088
|
-
}
|
|
196089
|
-
}
|
|
196090
|
-
}, [_vm._v("新增根节点")]), _c('li', {
|
|
196091
|
-
directives: [{
|
|
196092
|
-
name: "text-lbl",
|
|
196093
|
-
rawName: "v-text-lbl",
|
|
196094
|
-
value: 'ecwplat.PageBtns.addChildNode',
|
|
196095
|
-
expression: "'ecwplat.PageBtns.addChildNode'"
|
|
196096
|
-
}],
|
|
196097
|
-
on: {
|
|
196098
|
-
"click": function click($event) {
|
|
196099
|
-
return _vm.addTreeNode(slotProps.treeId, slotProps.contextNode, 'treeNode');
|
|
196100
|
-
}
|
|
196101
|
-
}
|
|
196102
|
-
}, [_vm._v("新增子节点")]), slotProps.contextNode.type === 'treeNode' ? _c('li', {
|
|
196103
|
-
directives: [{
|
|
196104
|
-
name: "text-lbl",
|
|
196105
|
-
rawName: "v-text-lbl",
|
|
196106
|
-
value: 'ecwplat.PageBtns.addMainOrg',
|
|
196107
|
-
expression: "'ecwplat.PageBtns.addMainOrg'"
|
|
196108
|
-
}],
|
|
196109
|
-
on: {
|
|
196110
|
-
"click": function click($event) {
|
|
196111
|
-
return _vm.addRootOrg(slotProps.treeId, slotProps.contextNode);
|
|
196112
|
-
}
|
|
196113
|
-
}
|
|
196114
|
-
}, [_vm._v("新增主机构")]) : _vm._e(), _c('li', {
|
|
196115
|
-
directives: [{
|
|
196116
|
-
name: "text-lbl",
|
|
196117
|
-
rawName: "v-text-lbl",
|
|
196118
|
-
value: 'ecwplat.PageBtns.updateTreeNode',
|
|
196119
|
-
expression: "'ecwplat.PageBtns.updateTreeNode'"
|
|
196120
|
-
}],
|
|
196121
|
-
on: {
|
|
196122
|
-
"click": function click($event) {
|
|
196123
|
-
return _vm.editNode(slotProps.treeId, slotProps.contextNode);
|
|
196124
|
-
}
|
|
196125
|
-
}
|
|
196126
|
-
}, [_vm._v("修改树节点")]), _c('li', {
|
|
196127
|
-
directives: [{
|
|
196128
|
-
name: "text-lbl",
|
|
196129
|
-
rawName: "v-text-lbl",
|
|
196130
|
-
value: 'ecwplat.PageBtns.delTreeNode',
|
|
196131
|
-
expression: "'ecwplat.PageBtns.delTreeNode'"
|
|
196132
|
-
}],
|
|
196133
|
-
on: {
|
|
196134
|
-
"click": function click($event) {
|
|
196135
|
-
return _vm.deleteNode(slotProps.treeId, slotProps.contextNode);
|
|
196136
|
-
}
|
|
196137
|
-
}
|
|
196138
|
-
}, [_vm._v("删除树节点")])]) : slotProps.contextNode.type === 'rootOrg' ? _c('ul', [_c('li', {
|
|
196139
|
-
directives: [{
|
|
196140
|
-
name: "text-lbl",
|
|
196141
|
-
rawName: "v-text-lbl",
|
|
196142
|
-
value: 'ecwplat.PageBtns.addChildOrg',
|
|
196143
|
-
expression: "'ecwplat.PageBtns.addChildOrg'"
|
|
196144
|
-
}],
|
|
196145
|
-
on: {
|
|
196146
|
-
"click": function click($event) {
|
|
196147
|
-
return _vm.addSubOrg(slotProps.treeId, slotProps.contextNode, 1);
|
|
196148
|
-
}
|
|
196149
|
-
}
|
|
196150
|
-
}, [_vm._v("新增子机构")]), _c('li', {
|
|
196151
|
-
directives: [{
|
|
196152
|
-
name: "text-lbl",
|
|
196153
|
-
rawName: "v-text-lbl",
|
|
196154
|
-
value: 'ecwplat.PageBtns.addDeptfz',
|
|
196155
|
-
expression: "'ecwplat.PageBtns.addDeptfz'"
|
|
196156
|
-
}],
|
|
196157
|
-
on: {
|
|
196158
|
-
"click": function click($event) {
|
|
196159
|
-
return _vm.addSubOrg(slotProps.treeId, slotProps.contextNode, 0);
|
|
196160
|
-
}
|
|
196161
|
-
}
|
|
196162
|
-
}, [_vm._v("新增部门分组")]), _c('li', {
|
|
196163
|
-
directives: [{
|
|
196164
|
-
name: "text-lbl",
|
|
196165
|
-
rawName: "v-text-lbl",
|
|
196166
|
-
value: 'ecwplat.PageBtns.updateMainOrg',
|
|
196167
|
-
expression: "'ecwplat.PageBtns.updateMainOrg'"
|
|
196168
|
-
}],
|
|
196169
|
-
on: {
|
|
196170
|
-
"click": function click($event) {
|
|
196171
|
-
return _vm.editNode(slotProps.treeId, slotProps.contextNode);
|
|
196172
|
-
}
|
|
196173
|
-
}
|
|
196174
|
-
}, [_vm._v("修改主机构")]), _c('li', {
|
|
196175
|
-
directives: [{
|
|
196176
|
-
name: "text-lbl",
|
|
196177
|
-
rawName: "v-text-lbl",
|
|
196178
|
-
value: 'ecwplat.PageBtns.delMainOrg',
|
|
196179
|
-
expression: "'ecwplat.PageBtns.delMainOrg'"
|
|
196180
|
-
}],
|
|
196181
|
-
on: {
|
|
196182
|
-
"click": function click($event) {
|
|
196183
|
-
return _vm.deleteNode(slotProps.treeId, slotProps.contextNode);
|
|
196184
|
-
}
|
|
196185
|
-
}
|
|
196186
|
-
}, [_vm._v("删除主机构")])]) : _vm._e(), _c('ul', {
|
|
196187
|
-
directives: [{
|
|
196188
|
-
name: "show",
|
|
196189
|
-
rawName: "v-show",
|
|
196190
|
-
value: slotProps.contextNode.type === 'subOrg',
|
|
196191
|
-
expression: "slotProps.contextNode.type === 'subOrg'"
|
|
196192
|
-
}]
|
|
196193
|
-
}, [_c('li', {
|
|
196194
|
-
directives: [{
|
|
196195
|
-
name: "text-lbl",
|
|
196196
|
-
rawName: "v-text-lbl",
|
|
196197
|
-
value: 'ecwplat.PageBtns.addChildOrg',
|
|
196198
|
-
expression: "'ecwplat.PageBtns.addChildOrg'"
|
|
196199
|
-
}],
|
|
196200
|
-
on: {
|
|
196201
|
-
"click": function click($event) {
|
|
196202
|
-
return _vm.addSubOrg(slotProps.treeId, slotProps.contextNode, 1);
|
|
196203
|
-
}
|
|
196204
|
-
}
|
|
196205
|
-
}, [_vm._v("新增子机构")]), _c('li', {
|
|
196206
|
-
directives: [{
|
|
196207
|
-
name: "text-lbl",
|
|
196208
|
-
rawName: "v-text-lbl",
|
|
196209
|
-
value: 'ecwplat.PageBtns.updateOrg',
|
|
196210
|
-
expression: "'ecwplat.PageBtns.updateOrg'"
|
|
196211
|
-
}],
|
|
196212
|
-
on: {
|
|
196213
|
-
"click": function click($event) {
|
|
196214
|
-
return _vm.editNode(slotProps.treeId, slotProps.contextNode);
|
|
196215
|
-
}
|
|
196216
|
-
}
|
|
196217
|
-
}, [_vm._v("修改机构")]), _c('li', {
|
|
196218
|
-
directives: [{
|
|
196219
|
-
name: "text-lbl",
|
|
196220
|
-
rawName: "v-text-lbl",
|
|
196221
|
-
value: 'ecwplat.PageBtns.delOrg',
|
|
196222
|
-
expression: "'ecwplat.PageBtns.delOrg'"
|
|
196223
|
-
}],
|
|
196224
|
-
on: {
|
|
196225
|
-
"click": function click($event) {
|
|
196226
|
-
return _vm.deleteNode(slotProps.treeId, slotProps.contextNode);
|
|
196227
|
-
}
|
|
196228
|
-
}
|
|
196229
|
-
}, [_vm._v("删除机构")])])];
|
|
196230
|
-
}
|
|
196231
|
-
}])
|
|
196232
|
-
})], 1), _c('RightPanel', [_vm.nodeMessage !== null && (_vm.nodeMessage.type === 'treeNode' || _vm.nodeMessage.type === 'area') ? _c('TreeNode', {
|
|
196233
|
-
attrs: {
|
|
196234
|
-
"vo": _vm.nodeMessage
|
|
196235
|
-
},
|
|
196236
|
-
on: {
|
|
196237
|
-
"deleteNode": _vm.deleteNode
|
|
196238
|
-
}
|
|
196239
|
-
}) : _vm._e(), _vm.nodeMessage !== null && _vm.nodeMessage.type === 'rootOrg' ? _c('RootOrg', {
|
|
196240
|
-
attrs: {
|
|
196241
|
-
"vo": _vm.nodeMessage
|
|
196242
|
-
},
|
|
196243
|
-
on: {
|
|
196244
|
-
"deleteNode": _vm.deleteNode
|
|
196245
|
-
}
|
|
196246
|
-
}) : _vm._e(), _vm.nodeMessage !== null && _vm.nodeMessage.type === 'subOrg' ? _c('SubOrg', {
|
|
196247
|
-
attrs: {
|
|
196248
|
-
"vo": _vm.nodeMessage
|
|
196249
|
-
},
|
|
196250
|
-
on: {
|
|
196251
|
-
"deleteNode": _vm.deleteNode
|
|
196252
|
-
}
|
|
196253
|
-
}) : _vm._e()], 1)], 1);
|
|
196254
|
-
};
|
|
196255
|
-
var OrgTreeMgrvue_type_template_id_28a541c4_scoped_true_staticRenderFns = [];
|
|
196256
|
-
|
|
196257
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/TreeNode.vue?vue&type=template&id=3795d273&scoped=true
|
|
196258
|
-
var TreeNodevue_type_template_id_3795d273_scoped_true_render = function render() {
|
|
195744
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/RootOrg.vue?vue&type=template&id=002db5ea&scoped=true
|
|
195745
|
+
var RootOrgvue_type_template_id_002db5ea_scoped_true_render = function render() {
|
|
196259
195746
|
var _vm = this,
|
|
196260
195747
|
_c = _vm._self._c;
|
|
196261
195748
|
return _c('PageContent', {
|
|
196262
195749
|
attrs: {
|
|
196263
|
-
"title": _vm.
|
|
195750
|
+
"title": _vm.$tx('ecwplat.sysSetup.fields.orgInfo', '组织机构信息')
|
|
196264
195751
|
}
|
|
196265
|
-
}, [_c('
|
|
195752
|
+
}, [_c('RootOrgForm', {
|
|
195753
|
+
ref: "rootOrgForm",
|
|
196266
195754
|
attrs: {
|
|
196267
|
-
"table-field-info": _vm.formTableFiled,
|
|
196268
195755
|
"vo": _vm.vo,
|
|
196269
|
-
"
|
|
196270
|
-
"
|
|
195756
|
+
"can-edit": 0,
|
|
195757
|
+
"module-info": _vm.rootOrgModelInfo
|
|
196271
195758
|
}
|
|
196272
|
-
}), _vm.formType === '
|
|
195759
|
+
}), _vm.formType === 'rootOrg' ? _c('Basicform', {
|
|
196273
195760
|
attrs: {
|
|
196274
|
-
"
|
|
196275
|
-
"
|
|
196276
|
-
"win-
|
|
196277
|
-
"
|
|
196278
|
-
"
|
|
196279
|
-
"on-basic-form-
|
|
196280
|
-
"on-basic-form-
|
|
195761
|
+
"module-code": 'organization',
|
|
195762
|
+
"title": _vm.$tx('ecwplat.sysSetup.fields.orgInfo', '组织机构信息'),
|
|
195763
|
+
"win-width": _vm.rootOrgModelInfo.winWidth,
|
|
195764
|
+
"win-height": _vm.rootOrgModelInfo.winHeight,
|
|
195765
|
+
"append-to-body": true,
|
|
195766
|
+
"on-basic-form-opened": _vm.rootOrgOnBasicFormOpened,
|
|
195767
|
+
"on-basic-form-before-submit": _vm.rootOrgOnBasicFormBeforeSubmit,
|
|
195768
|
+
"on-basic-form-submited": _vm.onRootOrgFormSubmited
|
|
196281
195769
|
},
|
|
196282
195770
|
scopedSlots: _vm._u([{
|
|
196283
195771
|
key: "default",
|
|
196284
195772
|
fn: function fn(slotProps) {
|
|
196285
|
-
return [_c('
|
|
195773
|
+
return [_c('RootOrgForm', {
|
|
196286
195774
|
ref: "rootOrgForm",
|
|
196287
195775
|
attrs: {
|
|
196288
195776
|
"vo": slotProps.vo,
|
|
196289
|
-
"table-field-info": _vm.formTableFiled,
|
|
196290
195777
|
"can-edit": slotProps.canEdit,
|
|
196291
|
-
"module-info": _vm.
|
|
195778
|
+
"module-info": _vm.rootOrgModelInfo
|
|
196292
195779
|
}
|
|
196293
195780
|
})];
|
|
196294
195781
|
}
|
|
196295
|
-
}], null, false,
|
|
196296
|
-
}) : _vm._e(), _vm.formType === '
|
|
195782
|
+
}], null, false, 408446631)
|
|
195783
|
+
}) : _vm._e(), _vm.formType === 'subOrg' ? _c('Basicform', {
|
|
196297
195784
|
attrs: {
|
|
196298
|
-
"
|
|
196299
|
-
"
|
|
196300
|
-
"win-
|
|
196301
|
-
"
|
|
196302
|
-
"on-basic-form-
|
|
196303
|
-
"on-basic-form-
|
|
195785
|
+
"module-code": 'organization',
|
|
195786
|
+
"title": _vm.isRealOrg === 1 ? _vm.$tx('ecwplat.sysSetup.fields.deptOrgInfo', '部门/科室机构信息') : _vm.$tx('ecwplat.sysSetup.fields.deptFzInfo', '部门分组信息'),
|
|
195787
|
+
"win-width": _vm.subOrgModelInfo.winWidth,
|
|
195788
|
+
"win-height": _vm.subOrgModelInfo.winHeight,
|
|
195789
|
+
"on-basic-form-opened": _vm.subOrgOnBasicFormOpened,
|
|
195790
|
+
"on-basic-form-before-submit": _vm.subOrgOnBasicFormBeforeSubmit,
|
|
195791
|
+
"on-basic-form-submited": _vm.onSubOrgFormSubmited
|
|
196304
195792
|
},
|
|
196305
195793
|
scopedSlots: _vm._u([{
|
|
196306
195794
|
key: "default",
|
|
196307
195795
|
fn: function fn(slotProps) {
|
|
196308
|
-
return [_c('
|
|
196309
|
-
ref: "
|
|
195796
|
+
return [_c('SubOrgForm', {
|
|
195797
|
+
ref: "subOrgForm",
|
|
196310
195798
|
attrs: {
|
|
196311
195799
|
"vo": slotProps.vo,
|
|
196312
195800
|
"can-edit": slotProps.canEdit,
|
|
196313
|
-
"module-info": _vm.
|
|
195801
|
+
"module-info": _vm.subOrgModelInfo
|
|
196314
195802
|
}
|
|
196315
195803
|
})];
|
|
196316
195804
|
}
|
|
196317
|
-
}], null, false,
|
|
195805
|
+
}], null, false, 3327811365)
|
|
196318
195806
|
}) : _vm._e(), _c('div', {
|
|
196319
195807
|
attrs: {
|
|
196320
195808
|
"slot": "footer"
|
|
@@ -196324,8 +195812,8 @@ var TreeNodevue_type_template_id_3795d273_scoped_true_render = function render()
|
|
|
196324
195812
|
directives: [{
|
|
196325
195813
|
name: "pageBtn-lbl",
|
|
196326
195814
|
rawName: "v-pageBtn-lbl",
|
|
196327
|
-
value: '
|
|
196328
|
-
expression: "'
|
|
195815
|
+
value: 'addChildOrg',
|
|
195816
|
+
expression: "'addChildOrg'"
|
|
196329
195817
|
}],
|
|
196330
195818
|
attrs: {
|
|
196331
195819
|
"plain": "",
|
|
@@ -196333,43 +195821,45 @@ var TreeNodevue_type_template_id_3795d273_scoped_true_render = function render()
|
|
|
196333
195821
|
},
|
|
196334
195822
|
on: {
|
|
196335
195823
|
"click": function click($event) {
|
|
196336
|
-
return _vm.
|
|
195824
|
+
return _vm.addNewSubOrg(1);
|
|
196337
195825
|
}
|
|
196338
195826
|
}
|
|
196339
|
-
}, [_vm._v("
|
|
195827
|
+
}, [_vm._v("新增子机构")]), _c('el-button', {
|
|
196340
195828
|
directives: [{
|
|
196341
195829
|
name: "pageBtn-lbl",
|
|
196342
195830
|
rawName: "v-pageBtn-lbl",
|
|
196343
|
-
value: '
|
|
196344
|
-
expression: "'
|
|
195831
|
+
value: 'addDeptfz',
|
|
195832
|
+
expression: "'addDeptfz'"
|
|
196345
195833
|
}],
|
|
196346
195834
|
attrs: {
|
|
196347
195835
|
"plain": "",
|
|
196348
195836
|
"icon": "el-icon-plus"
|
|
196349
195837
|
},
|
|
196350
195838
|
on: {
|
|
196351
|
-
"click":
|
|
195839
|
+
"click": function click($event) {
|
|
195840
|
+
return _vm.addNewSubOrg(0);
|
|
195841
|
+
}
|
|
196352
195842
|
}
|
|
196353
|
-
}, [_vm._v("
|
|
195843
|
+
}, [_vm._v("新增部门分组")]), _vm.dwadmin != 1 ? _c('el-button', {
|
|
196354
195844
|
directives: [{
|
|
196355
195845
|
name: "pageBtn-lbl",
|
|
196356
195846
|
rawName: "v-pageBtn-lbl",
|
|
196357
|
-
value: '
|
|
196358
|
-
expression: "'
|
|
195847
|
+
value: 'updateMainOrg',
|
|
195848
|
+
expression: "'updateMainOrg'"
|
|
196359
195849
|
}],
|
|
196360
195850
|
attrs: {
|
|
196361
195851
|
"plain": "",
|
|
196362
195852
|
"icon": "el-icon-edit"
|
|
196363
195853
|
},
|
|
196364
195854
|
on: {
|
|
196365
|
-
"click": _vm.
|
|
195855
|
+
"click": _vm.editRootOrg
|
|
196366
195856
|
}
|
|
196367
|
-
}, [_vm._v("
|
|
195857
|
+
}, [_vm._v("修改主机构")]) : _vm._e(), _vm.dwadmin != 1 ? _c('el-button', {
|
|
196368
195858
|
directives: [{
|
|
196369
195859
|
name: "pageBtn-lbl",
|
|
196370
195860
|
rawName: "v-pageBtn-lbl",
|
|
196371
|
-
value: '
|
|
196372
|
-
expression: "'
|
|
195861
|
+
value: 'delMainOrg',
|
|
195862
|
+
expression: "'delMainOrg'"
|
|
196373
195863
|
}],
|
|
196374
195864
|
attrs: {
|
|
196375
195865
|
"plain": "",
|
|
@@ -196378,9 +195868,9 @@ var TreeNodevue_type_template_id_3795d273_scoped_true_render = function render()
|
|
|
196378
195868
|
on: {
|
|
196379
195869
|
"click": _vm.deleteNode
|
|
196380
195870
|
}
|
|
196381
|
-
}, [_vm._v("
|
|
195871
|
+
}, [_vm._v("删除主机构")]) : _vm._e()], 1)], 1);
|
|
196382
195872
|
};
|
|
196383
|
-
var
|
|
195873
|
+
var RootOrgvue_type_template_id_002db5ea_scoped_true_staticRenderFns = [];
|
|
196384
195874
|
|
|
196385
195875
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/RootOrgForm.vue?vue&type=template&id=3cc7e36e&scoped=true
|
|
196386
195876
|
var RootOrgFormvue_type_template_id_3cc7e36e_scoped_true_render = function render() {
|
|
@@ -197033,425 +196523,6 @@ var RootOrgForm_component = (0,componentNormalizer/* default */.A)(
|
|
|
197033
196523
|
)
|
|
197034
196524
|
|
|
197035
196525
|
/* harmony default export */ var RootOrgForm = (RootOrgForm_component.exports);
|
|
197036
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/TreeNode.vue?vue&type=script&lang=js
|
|
197037
|
-
|
|
197038
|
-
/* harmony default export */ var TreeNodevue_type_script_lang_js = ({
|
|
197039
|
-
components: {
|
|
197040
|
-
RootOrgForm: RootOrgForm
|
|
197041
|
-
},
|
|
197042
|
-
props: {
|
|
197043
|
-
vo: {
|
|
197044
|
-
type: Object,
|
|
197045
|
-
default: function _default() {
|
|
197046
|
-
return {};
|
|
197047
|
-
}
|
|
197048
|
-
}
|
|
197049
|
-
},
|
|
197050
|
-
data: function data() {
|
|
197051
|
-
return {
|
|
197052
|
-
i18npkg: 'ecwplat',
|
|
197053
|
-
moduleCode: 'sysSetup',
|
|
197054
|
-
formTitle: this.$tx('ecwplat.sysSetup.fields.mlTreeInfo', '目录树节点信息'),
|
|
197055
|
-
formType: '',
|
|
197056
|
-
treeNodeModuleInfo: {
|
|
197057
|
-
winWidth: 1000,
|
|
197058
|
-
winHeight: 600,
|
|
197059
|
-
moduleCode: 'treeNode',
|
|
197060
|
-
addNewUrl: 'base/treeNode/addNew',
|
|
197061
|
-
insertUrl: 'base/treeNode/insert',
|
|
197062
|
-
updateUrl: 'base/orgTreeMgr/updateTreeNode',
|
|
197063
|
-
getByIdUrl: 'base/treeNode/getById'
|
|
197064
|
-
},
|
|
197065
|
-
rootOrgModuleInfo: {
|
|
197066
|
-
winWidth: 1000,
|
|
197067
|
-
winHeight: 600,
|
|
197068
|
-
moduleCode: 'organization',
|
|
197069
|
-
addNewUrl: 'base/orgTreeMgr/addNewOrganization',
|
|
197070
|
-
insertUrl: 'base/orgTreeMgr/insertOrganization'
|
|
197071
|
-
},
|
|
197072
|
-
formTableFiled: [{
|
|
197073
|
-
defaultValue: '',
|
|
197074
|
-
elementCanEdit: 0,
|
|
197075
|
-
elementFormatter: '',
|
|
197076
|
-
elementReadonly: 0,
|
|
197077
|
-
elementType: 'input',
|
|
197078
|
-
emptyMessage: '上级节点',
|
|
197079
|
-
errorMessage: '',
|
|
197080
|
-
formElementIndex: 0,
|
|
197081
|
-
formShow: 1,
|
|
197082
|
-
formTdAlign: 'text-left',
|
|
197083
|
-
formTdColspan: 24,
|
|
197084
|
-
isRequired: 1,
|
|
197085
|
-
passenger: {},
|
|
197086
|
-
propComment: '上级节点',
|
|
197087
|
-
propName: 'parentName',
|
|
197088
|
-
propType: 'String',
|
|
197089
|
-
textFormatter: 'textfield',
|
|
197090
|
-
valueMaxLength: 100
|
|
197091
|
-
}, {
|
|
197092
|
-
defaultValue: '',
|
|
197093
|
-
elementCanEdit: '{{canEdit}}',
|
|
197094
|
-
elementFormatter: '',
|
|
197095
|
-
elementReadonly: 0,
|
|
197096
|
-
elementType: 'input',
|
|
197097
|
-
emptyMessage: '请输入节点名称',
|
|
197098
|
-
errorMessage: '请输入节点名称',
|
|
197099
|
-
id: '3e1c4d5f7d6f4b89963bf66f851f5e04',
|
|
197100
|
-
formElementIndex: 1,
|
|
197101
|
-
formShow: 1,
|
|
197102
|
-
formTdAlign: 'text-left',
|
|
197103
|
-
formTdColspan: 24,
|
|
197104
|
-
isRequired: 1,
|
|
197105
|
-
passenger: {},
|
|
197106
|
-
propComment: '节点名称',
|
|
197107
|
-
propName: 'nName',
|
|
197108
|
-
propType: 'String',
|
|
197109
|
-
textFormatter: 'textfield',
|
|
197110
|
-
valueMaxLength: 50
|
|
197111
|
-
}, {
|
|
197112
|
-
defaultValue: '',
|
|
197113
|
-
elementCanEdit: '{{canEdit}}',
|
|
197114
|
-
elementFormatter: '',
|
|
197115
|
-
elementReadonly: 0,
|
|
197116
|
-
elementType: 'input',
|
|
197117
|
-
emptyMessage: '请输入排序',
|
|
197118
|
-
errorMessage: '请输入排序',
|
|
197119
|
-
formElementIndex: 2,
|
|
197120
|
-
formShow: 1,
|
|
197121
|
-
formTdAlign: 'text-left',
|
|
197122
|
-
formTdColspan: 24,
|
|
197123
|
-
isRequired: 1,
|
|
197124
|
-
passenger: {},
|
|
197125
|
-
propComment: '排序',
|
|
197126
|
-
propName: 'orderNo',
|
|
197127
|
-
propType: 'String',
|
|
197128
|
-
textFormatter: 'textfield',
|
|
197129
|
-
valueMaxLength: 4
|
|
197130
|
-
}, {
|
|
197131
|
-
defaultValue: '1',
|
|
197132
|
-
elementCanEdit: '{{canEdit}}',
|
|
197133
|
-
elementFormatter: '1:有效\r\n0:无效\r\n',
|
|
197134
|
-
elementType: 'radio',
|
|
197135
|
-
emptyMessage: '状态',
|
|
197136
|
-
errorMessage: '',
|
|
197137
|
-
formElementIndex: 3,
|
|
197138
|
-
formShow: 1,
|
|
197139
|
-
formTdAlign: 'text-left',
|
|
197140
|
-
formTdColspan: 24,
|
|
197141
|
-
isRequired: 1,
|
|
197142
|
-
propComment: '状态',
|
|
197143
|
-
propName: 'status',
|
|
197144
|
-
propType: 'Short',
|
|
197145
|
-
textFormatter: '',
|
|
197146
|
-
valueMinLength: 0
|
|
197147
|
-
}],
|
|
197148
|
-
busiformBtns: []
|
|
197149
|
-
};
|
|
197150
|
-
},
|
|
197151
|
-
computed: {},
|
|
197152
|
-
watch: {},
|
|
197153
|
-
created: function created() {
|
|
197154
|
-
this.$bus.on('addTreeNode', this.addTreeNode);
|
|
197155
|
-
this.$bus.on('editTreeNode', this.editTreeNode);
|
|
197156
|
-
this.$bus.on('addRootOrg', this.addRootOrg);
|
|
197157
|
-
},
|
|
197158
|
-
beforeDestroy: function beforeDestroy() {
|
|
197159
|
-
this.$bus.off('addTreeNode', this.addTreeNode);
|
|
197160
|
-
this.$bus.off('editTreeNode', this.editTreeNode);
|
|
197161
|
-
this.$bus.off('addRootOrg', this.addRootOrg);
|
|
197162
|
-
},
|
|
197163
|
-
mounted: function mounted() {},
|
|
197164
|
-
methods: {
|
|
197165
|
-
addTreeNode: function addTreeNode(nodeType) {
|
|
197166
|
-
var _this = this;
|
|
197167
|
-
this.formType = nodeType || 'treeNode';
|
|
197168
|
-
this.$nextTick(function () {
|
|
197169
|
-
_this.$bus.emit('openBusiform', _this.treeNodeModuleInfo, null, 1);
|
|
197170
|
-
});
|
|
197171
|
-
},
|
|
197172
|
-
editTreeNode: function editTreeNode() {
|
|
197173
|
-
var _this2 = this;
|
|
197174
|
-
this.formType = 'treeNode';
|
|
197175
|
-
this.$nextTick(function () {
|
|
197176
|
-
_this2.$bus.emit('openBusiform', _this2.treeNodeModuleInfo, _this2.vo, 1);
|
|
197177
|
-
});
|
|
197178
|
-
},
|
|
197179
|
-
addRootOrg: function addRootOrg() {
|
|
197180
|
-
var _this3 = this;
|
|
197181
|
-
this.formType = 'rootOrg';
|
|
197182
|
-
this.$nextTick(function () {
|
|
197183
|
-
_this3.$bus.emit('openBusiform', _this3.rootOrgModuleInfo, null, 1);
|
|
197184
|
-
});
|
|
197185
|
-
},
|
|
197186
|
-
// 树节点表单打开
|
|
197187
|
-
onBasicFormOpened: function onBasicFormOpened($scope, newvo) {
|
|
197188
|
-
newvo.formOpenTyope = 'edit';
|
|
197189
|
-
if (this.formType === 'treeNode') {
|
|
197190
|
-
newvo.parentName = this.vo.parentName;
|
|
197191
|
-
if (!newvo.fullID) {
|
|
197192
|
-
newvo.status = 1;
|
|
197193
|
-
newvo.nLevel = this.vo.nLevel + 1;
|
|
197194
|
-
newvo.formOpenTyope = 'addNew';
|
|
197195
|
-
newvo.parentName = this.vo.parentName + this.vo.nName + '/';
|
|
197196
|
-
}
|
|
197197
|
-
} else {
|
|
197198
|
-
newvo.status = 1;
|
|
197199
|
-
newvo.nLevel = 1;
|
|
197200
|
-
newvo.formOpenTyope = 'addNew';
|
|
197201
|
-
newvo.parentName = '/';
|
|
197202
|
-
}
|
|
197203
|
-
if (!this.$route.meta.params || this.$route.meta.params.indexOf('type=treeNode') !== -1) {
|
|
197204
|
-
newvo.nType = 1;
|
|
197205
|
-
} else {
|
|
197206
|
-
newvo.nType = 0;
|
|
197207
|
-
}
|
|
197208
|
-
this.$set(newvo);
|
|
197209
|
-
},
|
|
197210
|
-
// 树节点表单提交
|
|
197211
|
-
onBasicFormBeforeSubmit: function onBasicFormBeforeSubmit($scope, newvo, defer) {
|
|
197212
|
-
if (false) {}
|
|
197213
|
-
if (newvo.nLevel !== 1) {
|
|
197214
|
-
if (newvo.formOpenTyope === 'addNew') {
|
|
197215
|
-
newvo.fullID = this.vo.fullID + '-' + newvo.id;
|
|
197216
|
-
newvo.fullName = this.vo.fullName + '-' + newvo.nName;
|
|
197217
|
-
newvo.fullOrder = this.vo.fullOrder + '-' + newvo.orderNo;
|
|
197218
|
-
newvo.isFolder = 0;
|
|
197219
|
-
newvo.parentID = this.vo.id;
|
|
197220
|
-
} else {
|
|
197221
|
-
newvo.fullID = this.vo.fullID;
|
|
197222
|
-
newvo.fullName = this.vo.fullName;
|
|
197223
|
-
newvo.fullOrder = this.vo.fullOrder;
|
|
197224
|
-
newvo.parentID = this.vo.parentID;
|
|
197225
|
-
}
|
|
197226
|
-
} else {
|
|
197227
|
-
newvo.fullID = newvo.id;
|
|
197228
|
-
newvo.fullOrder = newvo.orderNo;
|
|
197229
|
-
newvo.fullName = newvo.nName;
|
|
197230
|
-
newvo.isFolder = 0;
|
|
197231
|
-
}
|
|
197232
|
-
newvo.type = 'treeNode';
|
|
197233
|
-
this.$set(newvo);
|
|
197234
|
-
defer.resolve(true);
|
|
197235
|
-
// defer.reject(err)
|
|
197236
|
-
},
|
|
197237
|
-
// 树节点表单提交完成
|
|
197238
|
-
onTreeNodeFormSubmited: function onTreeNodeFormSubmited($scope, vo) {
|
|
197239
|
-
vo.title = '名称:' + vo.name + '\r\n代码:' + vo.code + '\r\n排序:' + vo.orderNo;
|
|
197240
|
-
if (vo.parentID !== undefined) {
|
|
197241
|
-
vo.pId = vo.parentID;
|
|
197242
|
-
} else {
|
|
197243
|
-
vo.pId = vo.parentId;
|
|
197244
|
-
}
|
|
197245
|
-
this.$set(vo);
|
|
197246
|
-
this.$bus.emit('updateTreeNode', vo);
|
|
197247
|
-
},
|
|
197248
|
-
// 主机构表单打开
|
|
197249
|
-
rootOrgOnBasicFormOpened: function rootOrgOnBasicFormOpened($scope, newvo) {
|
|
197250
|
-
newvo.parentName = this.vo.parentName + this.vo.name + '/';
|
|
197251
|
-
if (!newvo.orgFullId) {
|
|
197252
|
-
newvo.orgLevel = 1;
|
|
197253
|
-
newvo.treeId = this.vo.id;
|
|
197254
|
-
newvo.orgType = 1;
|
|
197255
|
-
newvo.isHasChild = 1;
|
|
197256
|
-
newvo.isManageOrg = 0;
|
|
197257
|
-
newvo.isRealOrg = 1;
|
|
197258
|
-
newvo.generateType = 0;
|
|
197259
|
-
newvo.status = 1;
|
|
197260
|
-
}
|
|
197261
|
-
this.$set(newvo);
|
|
197262
|
-
},
|
|
197263
|
-
// 主机构表单提交
|
|
197264
|
-
rootOrgOnBasicFormBeforeSubmit: function rootOrgOnBasicFormBeforeSubmit($scope, newvo, defer) {
|
|
197265
|
-
if (false) {}
|
|
197266
|
-
newvo.fullID = this.vo.fullID + '-' + newvo.id;
|
|
197267
|
-
newvo.fullOrder = this.vo.fullOrder + '-' + newvo.orderNo;
|
|
197268
|
-
newvo.fullName = this.vo.fullName + '-' + newvo.name;
|
|
197269
|
-
newvo.orgFullId = newvo.id;
|
|
197270
|
-
newvo.orgFullName = newvo.name;
|
|
197271
|
-
newvo.orgFullOrderNo = newvo.orderNo;
|
|
197272
|
-
|
|
197273
|
-
// 如果存在岗位人员信息
|
|
197274
|
-
if (newvo.passenger.jobPositionList) {
|
|
197275
|
-
newvo.passenger.jobPositionList.forEach(function (jobPosition) {
|
|
197276
|
-
if (newvo.passenger[jobPosition.code]) {
|
|
197277
|
-
this.$ref.rootOrgForm.onSelectStaffCompleted(newvo.passenger[jobPosition.code], {
|
|
197278
|
-
name: jobPosition.code
|
|
197279
|
-
});
|
|
197280
|
-
}
|
|
197281
|
-
});
|
|
197282
|
-
}
|
|
197283
|
-
newvo.type = 'rootOrg';
|
|
197284
|
-
this.$set(newvo);
|
|
197285
|
-
defer.resolve(true);
|
|
197286
|
-
},
|
|
197287
|
-
// 主机构表单提交完成
|
|
197288
|
-
onRootOrgFormSubmited: function onRootOrgFormSubmited($scope, newvo) {
|
|
197289
|
-
newvo.title = '名称:' + newvo.name + '\r\n代码:' + newvo.code + '\r\n排序:' + newvo.orderNo;
|
|
197290
|
-
if (!newvo.parentId) {
|
|
197291
|
-
newvo.pId = this.vo.id;
|
|
197292
|
-
} else {
|
|
197293
|
-
newvo.pId = newvo.parentId;
|
|
197294
|
-
}
|
|
197295
|
-
this.$set(newvo);
|
|
197296
|
-
this.$bus.emit('updateTreeNode', newvo);
|
|
197297
|
-
},
|
|
197298
|
-
// 删除节点
|
|
197299
|
-
deleteNode: function deleteNode() {
|
|
197300
|
-
this.$emit('deleteNode');
|
|
197301
|
-
}
|
|
197302
|
-
}
|
|
197303
|
-
});
|
|
197304
|
-
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/components/TreeNode.vue?vue&type=script&lang=js
|
|
197305
|
-
/* harmony default export */ var components_TreeNodevue_type_script_lang_js = (TreeNodevue_type_script_lang_js);
|
|
197306
|
-
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/components/TreeNode.vue
|
|
197307
|
-
|
|
197308
|
-
|
|
197309
|
-
|
|
197310
|
-
|
|
197311
|
-
|
|
197312
|
-
/* normalize component */
|
|
197313
|
-
;
|
|
197314
|
-
var TreeNode_component = (0,componentNormalizer/* default */.A)(
|
|
197315
|
-
components_TreeNodevue_type_script_lang_js,
|
|
197316
|
-
TreeNodevue_type_template_id_3795d273_scoped_true_render,
|
|
197317
|
-
TreeNodevue_type_template_id_3795d273_scoped_true_staticRenderFns,
|
|
197318
|
-
false,
|
|
197319
|
-
null,
|
|
197320
|
-
"3795d273",
|
|
197321
|
-
null
|
|
197322
|
-
|
|
197323
|
-
)
|
|
197324
|
-
|
|
197325
|
-
/* harmony default export */ var TreeNode = (TreeNode_component.exports);
|
|
197326
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/RootOrg.vue?vue&type=template&id=531dc543&scoped=true
|
|
197327
|
-
var RootOrgvue_type_template_id_531dc543_scoped_true_render = function render() {
|
|
197328
|
-
var _vm = this,
|
|
197329
|
-
_c = _vm._self._c;
|
|
197330
|
-
return _c('PageContent', {
|
|
197331
|
-
attrs: {
|
|
197332
|
-
"title": _vm.$tx('ecwplat.sysSetup.fields.orgInfo', '组织机构信息')
|
|
197333
|
-
}
|
|
197334
|
-
}, [_c('RootOrgForm', {
|
|
197335
|
-
ref: "rootOrgForm",
|
|
197336
|
-
attrs: {
|
|
197337
|
-
"vo": _vm.vo,
|
|
197338
|
-
"can-edit": 0,
|
|
197339
|
-
"module-info": _vm.rootOrgModelInfo
|
|
197340
|
-
}
|
|
197341
|
-
}), _vm.formType === 'rootOrg' ? _c('Basicform', {
|
|
197342
|
-
attrs: {
|
|
197343
|
-
"title": _vm.$tx('ecwplat.sysSetup.fields.orgInfo', '组织机构信息'),
|
|
197344
|
-
"win-width": _vm.rootOrgModelInfo.winWidth,
|
|
197345
|
-
"win-height": _vm.rootOrgModelInfo.winHeight,
|
|
197346
|
-
"append-to-body": true,
|
|
197347
|
-
"on-basic-form-opened": _vm.rootOrgOnBasicFormOpened,
|
|
197348
|
-
"on-basic-form-before-submit": _vm.rootOrgOnBasicFormBeforeSubmit,
|
|
197349
|
-
"on-basic-form-submited": _vm.onRootOrgFormSubmited
|
|
197350
|
-
},
|
|
197351
|
-
scopedSlots: _vm._u([{
|
|
197352
|
-
key: "default",
|
|
197353
|
-
fn: function fn(slotProps) {
|
|
197354
|
-
return [_c('RootOrgForm', {
|
|
197355
|
-
ref: "rootOrgForm",
|
|
197356
|
-
attrs: {
|
|
197357
|
-
"vo": slotProps.vo,
|
|
197358
|
-
"can-edit": slotProps.canEdit,
|
|
197359
|
-
"module-info": _vm.rootOrgModelInfo
|
|
197360
|
-
}
|
|
197361
|
-
})];
|
|
197362
|
-
}
|
|
197363
|
-
}], null, false, 408446631)
|
|
197364
|
-
}) : _vm._e(), _vm.formType === 'subOrg' ? _c('Basicform', {
|
|
197365
|
-
attrs: {
|
|
197366
|
-
"title": _vm.isRealOrg === 1 ? _vm.$tx('ecwplat.sysSetup.fields.deptOrgInfo', '部门/科室机构信息') : _vm.$tx('ecwplat.sysSetup.fields.deptFzInfo', '部门分组信息'),
|
|
197367
|
-
"win-width": _vm.subOrgModelInfo.winWidth,
|
|
197368
|
-
"win-height": _vm.subOrgModelInfo.winHeight,
|
|
197369
|
-
"on-basic-form-opened": _vm.subOrgOnBasicFormOpened,
|
|
197370
|
-
"on-basic-form-before-submit": _vm.subOrgOnBasicFormBeforeSubmit,
|
|
197371
|
-
"on-basic-form-submited": _vm.onSubOrgFormSubmited
|
|
197372
|
-
},
|
|
197373
|
-
scopedSlots: _vm._u([{
|
|
197374
|
-
key: "default",
|
|
197375
|
-
fn: function fn(slotProps) {
|
|
197376
|
-
return [_c('SubOrgForm', {
|
|
197377
|
-
ref: "subOrgForm",
|
|
197378
|
-
attrs: {
|
|
197379
|
-
"vo": slotProps.vo,
|
|
197380
|
-
"can-edit": slotProps.canEdit,
|
|
197381
|
-
"module-info": _vm.subOrgModelInfo
|
|
197382
|
-
}
|
|
197383
|
-
})];
|
|
197384
|
-
}
|
|
197385
|
-
}], null, false, 3327811365)
|
|
197386
|
-
}) : _vm._e(), _c('div', {
|
|
197387
|
-
attrs: {
|
|
197388
|
-
"slot": "footer"
|
|
197389
|
-
},
|
|
197390
|
-
slot: "footer"
|
|
197391
|
-
}, [_c('el-button', {
|
|
197392
|
-
directives: [{
|
|
197393
|
-
name: "pageBtn-lbl",
|
|
197394
|
-
rawName: "v-pageBtn-lbl",
|
|
197395
|
-
value: 'addChildOrg',
|
|
197396
|
-
expression: "'addChildOrg'"
|
|
197397
|
-
}],
|
|
197398
|
-
attrs: {
|
|
197399
|
-
"plain": "",
|
|
197400
|
-
"icon": "el-icon-plus"
|
|
197401
|
-
},
|
|
197402
|
-
on: {
|
|
197403
|
-
"click": function click($event) {
|
|
197404
|
-
return _vm.addNewSubOrg(1);
|
|
197405
|
-
}
|
|
197406
|
-
}
|
|
197407
|
-
}, [_vm._v("新增子机构")]), _c('el-button', {
|
|
197408
|
-
directives: [{
|
|
197409
|
-
name: "pageBtn-lbl",
|
|
197410
|
-
rawName: "v-pageBtn-lbl",
|
|
197411
|
-
value: 'addDeptfz',
|
|
197412
|
-
expression: "'addDeptfz'"
|
|
197413
|
-
}],
|
|
197414
|
-
attrs: {
|
|
197415
|
-
"plain": "",
|
|
197416
|
-
"icon": "el-icon-plus"
|
|
197417
|
-
},
|
|
197418
|
-
on: {
|
|
197419
|
-
"click": function click($event) {
|
|
197420
|
-
return _vm.addNewSubOrg(0);
|
|
197421
|
-
}
|
|
197422
|
-
}
|
|
197423
|
-
}, [_vm._v("新增部门分组")]), _vm.dwadmin != 1 ? _c('el-button', {
|
|
197424
|
-
directives: [{
|
|
197425
|
-
name: "pageBtn-lbl",
|
|
197426
|
-
rawName: "v-pageBtn-lbl",
|
|
197427
|
-
value: 'updateMainOrg',
|
|
197428
|
-
expression: "'updateMainOrg'"
|
|
197429
|
-
}],
|
|
197430
|
-
attrs: {
|
|
197431
|
-
"plain": "",
|
|
197432
|
-
"icon": "el-icon-edit"
|
|
197433
|
-
},
|
|
197434
|
-
on: {
|
|
197435
|
-
"click": _vm.editRootOrg
|
|
197436
|
-
}
|
|
197437
|
-
}, [_vm._v("修改主机构")]) : _vm._e(), _vm.dwadmin != 1 ? _c('el-button', {
|
|
197438
|
-
directives: [{
|
|
197439
|
-
name: "pageBtn-lbl",
|
|
197440
|
-
rawName: "v-pageBtn-lbl",
|
|
197441
|
-
value: 'delMainOrg',
|
|
197442
|
-
expression: "'delMainOrg'"
|
|
197443
|
-
}],
|
|
197444
|
-
attrs: {
|
|
197445
|
-
"plain": "",
|
|
197446
|
-
"icon": "el-icon-delete"
|
|
197447
|
-
},
|
|
197448
|
-
on: {
|
|
197449
|
-
"click": _vm.deleteNode
|
|
197450
|
-
}
|
|
197451
|
-
}, [_vm._v("删除主机构")]) : _vm._e()], 1)], 1);
|
|
197452
|
-
};
|
|
197453
|
-
var RootOrgvue_type_template_id_531dc543_scoped_true_staticRenderFns = [];
|
|
197454
|
-
|
|
197455
196526
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/SubOrgForm.vue?vue&type=template&id=836129f4&scoped=true
|
|
197456
196527
|
var SubOrgFormvue_type_template_id_836129f4_scoped_true_render = function render() {
|
|
197457
196528
|
var _vm = this,
|
|
@@ -198602,18 +197673,18 @@ var SubOrgForm_component = (0,componentNormalizer/* default */.A)(
|
|
|
198602
197673
|
;
|
|
198603
197674
|
var RootOrg_component = (0,componentNormalizer/* default */.A)(
|
|
198604
197675
|
components_RootOrgvue_type_script_lang_js,
|
|
198605
|
-
|
|
198606
|
-
|
|
197676
|
+
RootOrgvue_type_template_id_002db5ea_scoped_true_render,
|
|
197677
|
+
RootOrgvue_type_template_id_002db5ea_scoped_true_staticRenderFns,
|
|
198607
197678
|
false,
|
|
198608
197679
|
null,
|
|
198609
|
-
"
|
|
197680
|
+
"002db5ea",
|
|
198610
197681
|
null
|
|
198611
197682
|
|
|
198612
197683
|
)
|
|
198613
197684
|
|
|
198614
197685
|
/* harmony default export */ var RootOrg = (RootOrg_component.exports);
|
|
198615
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/SubOrg.vue?vue&type=template&id=
|
|
198616
|
-
var
|
|
197686
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/SubOrg.vue?vue&type=template&id=eb0a09f4&scoped=true
|
|
197687
|
+
var SubOrgvue_type_template_id_eb0a09f4_scoped_true_render = function render() {
|
|
198617
197688
|
var _vm = this,
|
|
198618
197689
|
_c = _vm._self._c;
|
|
198619
197690
|
return _c('PageContent', {
|
|
@@ -198629,6 +197700,7 @@ var SubOrgvue_type_template_id_30a94b0a_scoped_true_render = function render() {
|
|
|
198629
197700
|
}
|
|
198630
197701
|
}), _vm.formType === 'subOrg' ? _c('Basicform', {
|
|
198631
197702
|
attrs: {
|
|
197703
|
+
"module-code": 'organization',
|
|
198632
197704
|
"title": _vm.isRealOrg === 1 ? _vm.$tx('ecwplat.sysSetup.fields.deptOrgInfo', '部门/科室机构信息') : _vm.$tx('ecwplat.sysSetup.fields.deptFzInfo', '部门分组信息'),
|
|
198633
197705
|
"win-width": _vm.subOrgModelInfo.winWidth,
|
|
198634
197706
|
"win-height": _vm.subOrgModelInfo.winHeight,
|
|
@@ -198770,7 +197842,7 @@ var SubOrgvue_type_template_id_30a94b0a_scoped_true_render = function render() {
|
|
|
198770
197842
|
}
|
|
198771
197843
|
}, [_vm._v("隐私设置")])], 1)], 1);
|
|
198772
197844
|
};
|
|
198773
|
-
var
|
|
197845
|
+
var SubOrgvue_type_template_id_eb0a09f4_scoped_true_staticRenderFns = [];
|
|
198774
197846
|
|
|
198775
197847
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/PraviteSetForm.vue?vue&type=template&id=cc139c2c&scoped=true
|
|
198776
197848
|
var PraviteSetFormvue_type_template_id_cc139c2c_scoped_true_render = function render() {
|
|
@@ -199212,16 +198284,1028 @@ var PraviteSetForm_component = (0,componentNormalizer/* default */.A)(
|
|
|
199212
198284
|
;
|
|
199213
198285
|
var SubOrg_component = (0,componentNormalizer/* default */.A)(
|
|
199214
198286
|
components_SubOrgvue_type_script_lang_js,
|
|
199215
|
-
|
|
199216
|
-
|
|
198287
|
+
SubOrgvue_type_template_id_eb0a09f4_scoped_true_render,
|
|
198288
|
+
SubOrgvue_type_template_id_eb0a09f4_scoped_true_staticRenderFns,
|
|
199217
198289
|
false,
|
|
199218
198290
|
null,
|
|
199219
|
-
"
|
|
198291
|
+
"eb0a09f4",
|
|
199220
198292
|
null
|
|
199221
198293
|
|
|
199222
198294
|
)
|
|
199223
198295
|
|
|
199224
198296
|
/* harmony default export */ var SubOrg = (SubOrg_component.exports);
|
|
198297
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/OrgPersonMgr.vue?vue&type=script&lang=js
|
|
198298
|
+
function OrgPersonMgrvue_type_script_lang_js_toConsumableArray(r) { return OrgPersonMgrvue_type_script_lang_js_arrayWithoutHoles(r) || OrgPersonMgrvue_type_script_lang_js_iterableToArray(r) || OrgPersonMgrvue_type_script_lang_js_unsupportedIterableToArray(r) || OrgPersonMgrvue_type_script_lang_js_nonIterableSpread(); }
|
|
198299
|
+
function OrgPersonMgrvue_type_script_lang_js_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
198300
|
+
function OrgPersonMgrvue_type_script_lang_js_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return OrgPersonMgrvue_type_script_lang_js_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? OrgPersonMgrvue_type_script_lang_js_arrayLikeToArray(r, a) : void 0; } }
|
|
198301
|
+
function OrgPersonMgrvue_type_script_lang_js_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
198302
|
+
function OrgPersonMgrvue_type_script_lang_js_arrayWithoutHoles(r) { if (Array.isArray(r)) return OrgPersonMgrvue_type_script_lang_js_arrayLikeToArray(r); }
|
|
198303
|
+
function OrgPersonMgrvue_type_script_lang_js_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
198304
|
+
|
|
198305
|
+
|
|
198306
|
+
|
|
198307
|
+
|
|
198308
|
+
/* harmony default export */ var OrgPersonMgrvue_type_script_lang_js = ({
|
|
198309
|
+
name: 'OrgPersonMgr',
|
|
198310
|
+
components: {
|
|
198311
|
+
OrgPersonList: OrgPersonList,
|
|
198312
|
+
RootOrg: RootOrg,
|
|
198313
|
+
SubOrg: SubOrg
|
|
198314
|
+
},
|
|
198315
|
+
props: {},
|
|
198316
|
+
data: function data() {
|
|
198317
|
+
return {
|
|
198318
|
+
treeData: [],
|
|
198319
|
+
treeNode: null,
|
|
198320
|
+
nodeMessage: null,
|
|
198321
|
+
loginUser: this.$store.getters.loginUser,
|
|
198322
|
+
folderUser: '/plugins/zTree/css/img/folder_user.png',
|
|
198323
|
+
treeShow: true,
|
|
198324
|
+
//是否显示左侧目录树
|
|
198325
|
+
tableShow: false,
|
|
198326
|
+
searchKeyWord: '',
|
|
198327
|
+
dwadmin: null,
|
|
198328
|
+
excludePlat: '0',
|
|
198329
|
+
// 是否排除plat机构
|
|
198330
|
+
showPositionType: false // 是否显示职务类型
|
|
198331
|
+
};
|
|
198332
|
+
},
|
|
198333
|
+
computed: {},
|
|
198334
|
+
watch: {},
|
|
198335
|
+
created: function created() {
|
|
198336
|
+
this.getOrgTreeNodes();
|
|
198337
|
+
},
|
|
198338
|
+
beforeDestroy: function beforeDestroy() {},
|
|
198339
|
+
mounted: function mounted() {
|
|
198340
|
+
this.dwadmin = this.loginUser.orgCode !== 'plat' || this.$route.meta.params && this.$route.meta.params.indexOf('dwadmin=1') !== -1;
|
|
198341
|
+
this.excludePlat = this.$route.query.excludePlat;
|
|
198342
|
+
if (this.$route.meta.params && this.$route.meta.params.indexOf('showPositionType=true') !== -1) {
|
|
198343
|
+
this.showPositionType = true;
|
|
198344
|
+
}
|
|
198345
|
+
},
|
|
198346
|
+
methods: {
|
|
198347
|
+
onTreeCreated: function onTreeCreated(zTree) {
|
|
198348
|
+
this.zTree = zTree;
|
|
198349
|
+
if (this.loginUser.staffList.length > 0 && this.loginUser.orgCode !== 'plat') {
|
|
198350
|
+
var orgid = this.loginUser.staffList[0].orgFullId.split('-')[0];
|
|
198351
|
+
var treeObj = this.zTree; // 获取树
|
|
198352
|
+
|
|
198353
|
+
var treenode = treeObj.getNodeByParam('id', orgid, null); // 人员所在机构的树节点
|
|
198354
|
+
if (treenode === null && treeObj.getNodes().length > 0) {
|
|
198355
|
+
treenode = treeObj.getNodes()[0];
|
|
198356
|
+
}
|
|
198357
|
+
if (treenode) {
|
|
198358
|
+
this.onTreeNodeClick('', treenode.id, treenode); // 获取节点数据
|
|
198359
|
+
treeObj.selectNode(treenode); // 选中当前节点
|
|
198360
|
+
}
|
|
198361
|
+
} else {
|
|
198362
|
+
var _treeObj = this.zTree; // 获取树
|
|
198363
|
+
var treenodes = _treeObj.getNodes(); // 根节点
|
|
198364
|
+
|
|
198365
|
+
if (treenodes.length > 0) {
|
|
198366
|
+
if (treenodes.length > 1) {
|
|
198367
|
+
treenodes.splice(0, 0, {
|
|
198368
|
+
id: -1,
|
|
198369
|
+
pId: null,
|
|
198370
|
+
name: '组织机构目录',
|
|
198371
|
+
type: 'treeNode'
|
|
198372
|
+
});
|
|
198373
|
+
}
|
|
198374
|
+
this.onTreeNodeClick('', treenodes[0].id, treenodes[0]); // 获取节点数据
|
|
198375
|
+
_treeObj.selectNode(treenodes[0]); // 选中当前节点
|
|
198376
|
+
if (treenodes.length === 1) {
|
|
198377
|
+
this.treeBeforeExpand(null, zTree.id, treenodes[0]);
|
|
198378
|
+
_treeObj.expandNode(treenodes[0], true); // 展开根节点
|
|
198379
|
+
}
|
|
198380
|
+
}
|
|
198381
|
+
}
|
|
198382
|
+
},
|
|
198383
|
+
// 加载数据
|
|
198384
|
+
getOrgTreeNodes: function getOrgTreeNodes() {
|
|
198385
|
+
var _this = this;
|
|
198386
|
+
if (this.loginUser.orgCode !== 'plat' || this.$route.meta.params && (this.$route.meta.params.indexOf('dwadmin=1') !== -1 || this.$route.meta.params.indexOf('deptadmin=1') !== -1)) {
|
|
198387
|
+
var httpRe = {
|
|
198388
|
+
method: 'GET',
|
|
198389
|
+
params: {
|
|
198390
|
+
orgCode: this.loginUser.orgCode,
|
|
198391
|
+
status: 1,
|
|
198392
|
+
self: true
|
|
198393
|
+
},
|
|
198394
|
+
// 查询机构、子机构
|
|
198395
|
+
url: 'base/organMgr/findTreeNodeVOListByOrgCode'
|
|
198396
|
+
};
|
|
198397
|
+
if (this.$route.meta.params && this.$route.meta.params.indexOf('deptadmin=1') !== -1) {
|
|
198398
|
+
var deptIds = '';
|
|
198399
|
+
for (var i = 0; i < this.loginUser.staffList.length; i++) {
|
|
198400
|
+
var deptId = this.loginUser.staffList[i].orgFullId.split('-')[1];
|
|
198401
|
+
if (deptIds === '') {
|
|
198402
|
+
deptIds = deptId;
|
|
198403
|
+
} else if ((',' + deptIds).indexOf(',' + deptId) === -1) {
|
|
198404
|
+
deptIds += ',' + deptId;
|
|
198405
|
+
}
|
|
198406
|
+
}
|
|
198407
|
+
if (deptIds) {
|
|
198408
|
+
httpRe.url = 'base/organMgr/findTreeNodeVOListByOrgId';
|
|
198409
|
+
httpRe.params.orgId = deptIds;
|
|
198410
|
+
}
|
|
198411
|
+
}
|
|
198412
|
+
this.$http(httpRe).then(function (res) {
|
|
198413
|
+
if (res.code === 'success') {
|
|
198414
|
+
_this.treeData = _this.treeDataAdapter(res.body.listdata);
|
|
198415
|
+
if (res.body.listdata.length > 0) {
|
|
198416
|
+
res.body.listdata[0].open = true;
|
|
198417
|
+
}
|
|
198418
|
+
} else {
|
|
198419
|
+
_this.$alert(res.message, {
|
|
198420
|
+
type: 'error'
|
|
198421
|
+
});
|
|
198422
|
+
}
|
|
198423
|
+
});
|
|
198424
|
+
} else {
|
|
198425
|
+
findTreeNodeVOListByNodeId(this, 1).then(function (res) {
|
|
198426
|
+
if (res.code === 'success') {
|
|
198427
|
+
var _this$treeData;
|
|
198428
|
+
if (res.body.listdata.length > 0) {
|
|
198429
|
+
var nodeIds = [];
|
|
198430
|
+
for (var _i = 0; _i < res.body.listdata.length; _i++) {
|
|
198431
|
+
var node = res.body.listdata[_i];
|
|
198432
|
+
if (node.type === 'rootOrg') {
|
|
198433
|
+
if (node.fullID && node.fullID.indexOf('-') !== -1) {
|
|
198434
|
+
node.fullID.split('-').forEach(function (id) {
|
|
198435
|
+
if (nodeIds.indexOf(id) === -1) {
|
|
198436
|
+
nodeIds.push(id);
|
|
198437
|
+
}
|
|
198438
|
+
});
|
|
198439
|
+
} else {
|
|
198440
|
+
// 机构人员管理,不显示未关联到treeNode的机构
|
|
198441
|
+
res.body.listdata.splice(_i--, 1);
|
|
198442
|
+
}
|
|
198443
|
+
}
|
|
198444
|
+
}
|
|
198445
|
+
var rootOrgCount = 0;
|
|
198446
|
+
for (var _i2 = 0; _i2 < res.body.listdata.length; _i2++) {
|
|
198447
|
+
var _node = res.body.listdata[_i2];
|
|
198448
|
+
if (_node.type === 'treeNode' && nodeIds.indexOf(_node.id) === -1) {
|
|
198449
|
+
res.body.listdata.splice(_i2--, 1);
|
|
198450
|
+
} else if (_node.type === 'rootOrg') {
|
|
198451
|
+
rootOrgCount++;
|
|
198452
|
+
}
|
|
198453
|
+
}
|
|
198454
|
+
if (rootOrgCount === 1) {
|
|
198455
|
+
//this.treeShow = false
|
|
198456
|
+
for (var _i3 = 0; _i3 < res.body.listdata.length; _i3++) {
|
|
198457
|
+
var _node2 = res.body.listdata[_i3];
|
|
198458
|
+
if (_node2.type === 'rootOrg') {
|
|
198459
|
+
_this.treeNode = _node2;
|
|
198460
|
+
} else {
|
|
198461
|
+
res.body.listdata.splice(_i3--, 1);
|
|
198462
|
+
}
|
|
198463
|
+
}
|
|
198464
|
+
} else {
|
|
198465
|
+
var topLevel = res.body.listdata[0].nLevel;
|
|
198466
|
+
var rootNodes = res.body.listdata.filter(function (node) {
|
|
198467
|
+
if (node.nLevel === topLevel) {
|
|
198468
|
+
return true;
|
|
198469
|
+
}
|
|
198470
|
+
});
|
|
198471
|
+
if (rootNodes.length > 1) {
|
|
198472
|
+
_this.treeData.push({
|
|
198473
|
+
id: -1,
|
|
198474
|
+
pId: null,
|
|
198475
|
+
name: '机构人员目录',
|
|
198476
|
+
type: 'treeNode'
|
|
198477
|
+
});
|
|
198478
|
+
}
|
|
198479
|
+
}
|
|
198480
|
+
}
|
|
198481
|
+
(_this$treeData = _this.treeData).push.apply(_this$treeData, OrgPersonMgrvue_type_script_lang_js_toConsumableArray(_this.treeDataAdapter(res.body.listdata)));
|
|
198482
|
+
} else {
|
|
198483
|
+
_this.$alert(res.message, {
|
|
198484
|
+
type: 'error'
|
|
198485
|
+
});
|
|
198486
|
+
}
|
|
198487
|
+
});
|
|
198488
|
+
}
|
|
198489
|
+
},
|
|
198490
|
+
treeDataAdapter: function treeDataAdapter(treeData) {
|
|
198491
|
+
var platOrgIds = [];
|
|
198492
|
+
for (var i = 0; i < treeData.length; i++) {
|
|
198493
|
+
var node = treeData[i];
|
|
198494
|
+
node.pId = node.parentID || -1;
|
|
198495
|
+
node.name = node.nName;
|
|
198496
|
+
node.title = node.name + ' ' + node.orderNo;
|
|
198497
|
+
if (node.type === 'rootOrg') {
|
|
198498
|
+
if (this.excludePlat === '1' && node.ocode === 'plat') {
|
|
198499
|
+
platOrgIds.push(node.id);
|
|
198500
|
+
treeData.splice(i--, 1);
|
|
198501
|
+
} else {
|
|
198502
|
+
node.isParent = true;
|
|
198503
|
+
node.icon = this.folderUser;
|
|
198504
|
+
}
|
|
198505
|
+
} else if (node.type === 'subOrg' && node.status !== 1) {
|
|
198506
|
+
// 机构人员管理,不显示无效的机构
|
|
198507
|
+
treeData.splice(i--, 1);
|
|
198508
|
+
} else if (this.excludePlat === '1' && platOrgIds.indexOf(node.pId) !== -1) {
|
|
198509
|
+
platOrgIds.push(node.id);
|
|
198510
|
+
treeData.splice(i--, 1);
|
|
198511
|
+
}
|
|
198512
|
+
}
|
|
198513
|
+
|
|
198514
|
+
// treeData格式必须遵循ztreeview treeNode规范
|
|
198515
|
+
return treeData;
|
|
198516
|
+
},
|
|
198517
|
+
// 节点点击事件
|
|
198518
|
+
onTreeNodeClick: function onTreeNodeClick(evt, treeId, treeNode) {
|
|
198519
|
+
var _this2 = this;
|
|
198520
|
+
this.treeNode = treeNode;
|
|
198521
|
+
this.tableShow = false;
|
|
198522
|
+
this.$nextTick(function () {
|
|
198523
|
+
_this2.tableShow = true;
|
|
198524
|
+
});
|
|
198525
|
+
},
|
|
198526
|
+
// 节点展开前事件
|
|
198527
|
+
treeBeforeExpand: function treeBeforeExpand(evt, treeId, treeNode) {
|
|
198528
|
+
var _this3 = this;
|
|
198529
|
+
if (treeNode.type === 'rootOrg' && !treeNode.children) {
|
|
198530
|
+
findTreeNodeVOListByOrgId(this, treeNode.id).then(function (res) {
|
|
198531
|
+
if (res.code === 'success') {
|
|
198532
|
+
var listdata = res.body.listdata;
|
|
198533
|
+
var children = _this3.getChildren(listdata, treeNode);
|
|
198534
|
+
_this3.zTree.addNodes(treeNode, 0, children);
|
|
198535
|
+
} else {
|
|
198536
|
+
_this3.$alert(res.message, {
|
|
198537
|
+
type: 'error'
|
|
198538
|
+
});
|
|
198539
|
+
}
|
|
198540
|
+
});
|
|
198541
|
+
}
|
|
198542
|
+
},
|
|
198543
|
+
getChildren: function getChildren(listdata, parentNode) {
|
|
198544
|
+
var _this4 = this;
|
|
198545
|
+
parentNode.name = parentNode.nName;
|
|
198546
|
+
parentNode.pId = parentNode.parentID;
|
|
198547
|
+
parentNode.isFolder = 0;
|
|
198548
|
+
var children = [];
|
|
198549
|
+
for (var i = 0; i < listdata.length; i++) {
|
|
198550
|
+
var node = listdata[i];
|
|
198551
|
+
node.title = node.nName + ' ' + node.orderNo;
|
|
198552
|
+
if (node.parentID === parentNode.id) {
|
|
198553
|
+
if (node.status === 1) {
|
|
198554
|
+
// 机构人员管理,只显示有效的数据
|
|
198555
|
+
children.push(node);
|
|
198556
|
+
}
|
|
198557
|
+
listdata.splice(i--, 1);
|
|
198558
|
+
}
|
|
198559
|
+
}
|
|
198560
|
+
if (children.length > 0) {
|
|
198561
|
+
children = children.sort(function (a, b) {
|
|
198562
|
+
return a.orderNo - b.orderNo;
|
|
198563
|
+
});
|
|
198564
|
+
children.forEach(function (pNode) {
|
|
198565
|
+
_this4.getChildren(listdata, pNode);
|
|
198566
|
+
});
|
|
198567
|
+
parentNode.isFolder = 1;
|
|
198568
|
+
parentNode.children = children;
|
|
198569
|
+
}
|
|
198570
|
+
return children;
|
|
198571
|
+
},
|
|
198572
|
+
searchOrgan: function searchOrgan() {
|
|
198573
|
+
var _this5 = this;
|
|
198574
|
+
if (this.searchKeyWord) {
|
|
198575
|
+
this.$http({
|
|
198576
|
+
method: 'GET',
|
|
198577
|
+
url: '/base/organMgr/findTreeNodeVOListByRootOrg?searchKey=' + this.searchKeyWord
|
|
198578
|
+
}).then(function (res) {
|
|
198579
|
+
_this5.treeData = _this5.treeDataAdapter(res.body.listdata);
|
|
198580
|
+
});
|
|
198581
|
+
} else {
|
|
198582
|
+
this.treeData = [];
|
|
198583
|
+
this.getOrgTreeNodes();
|
|
198584
|
+
}
|
|
198585
|
+
},
|
|
198586
|
+
editNode: function editNode(treeId, contextNode) {
|
|
198587
|
+
var _this6 = this;
|
|
198588
|
+
contextNode.parentName = this.getNodeParentName(contextNode);
|
|
198589
|
+
this.nodeMessage = contextNode;
|
|
198590
|
+
this.$nextTick(function () {
|
|
198591
|
+
if (contextNode.type === 'rootOrg') {
|
|
198592
|
+
_this6.$bus.$emit('editRootOrg');
|
|
198593
|
+
} else if (contextNode.type === 'subOrg') {
|
|
198594
|
+
_this6.$bus.$emit('editSubOrg');
|
|
198595
|
+
}
|
|
198596
|
+
});
|
|
198597
|
+
},
|
|
198598
|
+
getNodeParentName: function getNodeParentName(treeNode) {
|
|
198599
|
+
var pnode = treeNode.getParentNode();
|
|
198600
|
+
var pname = '';
|
|
198601
|
+
while (pnode !== null && pnode.getParentNode) {
|
|
198602
|
+
pname = pnode.name + '/' + pname;
|
|
198603
|
+
pnode = pnode.getParentNode();
|
|
198604
|
+
}
|
|
198605
|
+
return pname === '' ? '/' : pname;
|
|
198606
|
+
}
|
|
198607
|
+
}
|
|
198608
|
+
});
|
|
198609
|
+
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/OrgPersonMgr.vue?vue&type=script&lang=js
|
|
198610
|
+
/* harmony default export */ var src_OrgPersonMgrvue_type_script_lang_js = (OrgPersonMgrvue_type_script_lang_js);
|
|
198611
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/OrgPersonMgr.vue?vue&type=style&index=0&id=15e0ed95&prod&scoped=true&lang=scss
|
|
198612
|
+
var OrgPersonMgrvue_type_style_index_0_id_15e0ed95_prod_scoped_true_lang_scss = __webpack_require__(22739);
|
|
198613
|
+
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/OrgPersonMgr.vue?vue&type=style&index=0&id=15e0ed95&prod&scoped=true&lang=scss
|
|
198614
|
+
|
|
198615
|
+
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/OrgPersonMgr.vue
|
|
198616
|
+
|
|
198617
|
+
|
|
198618
|
+
|
|
198619
|
+
;
|
|
198620
|
+
|
|
198621
|
+
|
|
198622
|
+
/* normalize component */
|
|
198623
|
+
|
|
198624
|
+
var OrgPersonMgr_component = (0,componentNormalizer/* default */.A)(
|
|
198625
|
+
src_OrgPersonMgrvue_type_script_lang_js,
|
|
198626
|
+
OrgPersonMgrvue_type_template_id_15e0ed95_scoped_true_render,
|
|
198627
|
+
OrgPersonMgrvue_type_template_id_15e0ed95_scoped_true_staticRenderFns,
|
|
198628
|
+
false,
|
|
198629
|
+
null,
|
|
198630
|
+
"15e0ed95",
|
|
198631
|
+
null
|
|
198632
|
+
|
|
198633
|
+
)
|
|
198634
|
+
|
|
198635
|
+
/* harmony default export */ var OrgPersonMgr = (OrgPersonMgr_component.exports);
|
|
198636
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/OrgTreeMgr.vue?vue&type=template&id=28a541c4&scoped=true
|
|
198637
|
+
var OrgTreeMgrvue_type_template_id_28a541c4_scoped_true_render = function render() {
|
|
198638
|
+
var _vm = this,
|
|
198639
|
+
_c = _vm._self._c;
|
|
198640
|
+
return _c('LRLayout', [_c('LeftPanel', {
|
|
198641
|
+
class: {
|
|
198642
|
+
platadmin: !_vm.dwadmin
|
|
198643
|
+
}
|
|
198644
|
+
}, [!_vm.dwadmin ? _c('el-input', {
|
|
198645
|
+
attrs: {
|
|
198646
|
+
"placeholder": _vm.$tx('ecwplat.Common.keyPlaceholder', '请输入搜索关键字'),
|
|
198647
|
+
"size": "small"
|
|
198648
|
+
},
|
|
198649
|
+
nativeOn: {
|
|
198650
|
+
"keyup": function keyup($event) {
|
|
198651
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
|
|
198652
|
+
return _vm.searchOrgan();
|
|
198653
|
+
}
|
|
198654
|
+
},
|
|
198655
|
+
model: {
|
|
198656
|
+
value: _vm.searchKeyWord,
|
|
198657
|
+
callback: function callback($$v) {
|
|
198658
|
+
_vm.searchKeyWord = $$v;
|
|
198659
|
+
},
|
|
198660
|
+
expression: "searchKeyWord"
|
|
198661
|
+
}
|
|
198662
|
+
}, [_c('el-button', {
|
|
198663
|
+
attrs: {
|
|
198664
|
+
"slot": "append",
|
|
198665
|
+
"icon": "el-icon-search"
|
|
198666
|
+
},
|
|
198667
|
+
on: {
|
|
198668
|
+
"click": function click($event) {
|
|
198669
|
+
return _vm.searchOrgan();
|
|
198670
|
+
}
|
|
198671
|
+
},
|
|
198672
|
+
slot: "append"
|
|
198673
|
+
})], 1) : _vm._e(), _c('GiantTree', {
|
|
198674
|
+
attrs: {
|
|
198675
|
+
"nodes": _vm.treeData,
|
|
198676
|
+
"drag": _vm.drag,
|
|
198677
|
+
"tree-before-drop-node": _vm.treeBeforeDropNode
|
|
198678
|
+
},
|
|
198679
|
+
on: {
|
|
198680
|
+
"onCreated": _vm.onTreeCreated,
|
|
198681
|
+
"onClick": _vm.onTreeNodeClick,
|
|
198682
|
+
"onExpand": _vm.treeBeforeExpand,
|
|
198683
|
+
"onDrop": _vm.treeDropNode
|
|
198684
|
+
},
|
|
198685
|
+
scopedSlots: _vm._u([{
|
|
198686
|
+
key: "context-menu",
|
|
198687
|
+
fn: function fn(slotProps) {
|
|
198688
|
+
return [slotProps.contextNode.id === -1 ? _c('ul', [_c('li', {
|
|
198689
|
+
directives: [{
|
|
198690
|
+
name: "text-lbl",
|
|
198691
|
+
rawName: "v-text-lbl",
|
|
198692
|
+
value: 'ecwplat.PageBtns.addRootNode',
|
|
198693
|
+
expression: "'ecwplat.PageBtns.addRootNode'"
|
|
198694
|
+
}],
|
|
198695
|
+
on: {
|
|
198696
|
+
"click": function click($event) {
|
|
198697
|
+
return _vm.addTreeNode(slotProps.treeId, slotProps.contextNode, 'rootNode');
|
|
198698
|
+
}
|
|
198699
|
+
}
|
|
198700
|
+
}, [_vm._v("新增根节点")]), _c('li', {
|
|
198701
|
+
directives: [{
|
|
198702
|
+
name: "text-lbl",
|
|
198703
|
+
rawName: "v-text-lbl",
|
|
198704
|
+
value: 'ecwplat.PageBtns.addMainOrg',
|
|
198705
|
+
expression: "'ecwplat.PageBtns.addMainOrg'"
|
|
198706
|
+
}],
|
|
198707
|
+
on: {
|
|
198708
|
+
"click": function click($event) {
|
|
198709
|
+
return _vm.addRootOrg(slotProps.treeId, slotProps.contextNode);
|
|
198710
|
+
}
|
|
198711
|
+
}
|
|
198712
|
+
}, [_vm._v("新增主机构")])]) : slotProps.contextNode.type === 'treeNode' || slotProps.contextNode.type === 'area' ? _c('ul', [_c('li', {
|
|
198713
|
+
directives: [{
|
|
198714
|
+
name: "text-lbl",
|
|
198715
|
+
rawName: "v-text-lbl",
|
|
198716
|
+
value: 'ecwplat.PageBtns.addRootNode',
|
|
198717
|
+
expression: "'ecwplat.PageBtns.addRootNode'"
|
|
198718
|
+
}],
|
|
198719
|
+
on: {
|
|
198720
|
+
"click": function click($event) {
|
|
198721
|
+
return _vm.addTreeNode(slotProps.treeId, slotProps.contextNode, 'rootNode');
|
|
198722
|
+
}
|
|
198723
|
+
}
|
|
198724
|
+
}, [_vm._v("新增根节点")]), _c('li', {
|
|
198725
|
+
directives: [{
|
|
198726
|
+
name: "text-lbl",
|
|
198727
|
+
rawName: "v-text-lbl",
|
|
198728
|
+
value: 'ecwplat.PageBtns.addChildNode',
|
|
198729
|
+
expression: "'ecwplat.PageBtns.addChildNode'"
|
|
198730
|
+
}],
|
|
198731
|
+
on: {
|
|
198732
|
+
"click": function click($event) {
|
|
198733
|
+
return _vm.addTreeNode(slotProps.treeId, slotProps.contextNode, 'treeNode');
|
|
198734
|
+
}
|
|
198735
|
+
}
|
|
198736
|
+
}, [_vm._v("新增子节点")]), slotProps.contextNode.type === 'treeNode' ? _c('li', {
|
|
198737
|
+
directives: [{
|
|
198738
|
+
name: "text-lbl",
|
|
198739
|
+
rawName: "v-text-lbl",
|
|
198740
|
+
value: 'ecwplat.PageBtns.addMainOrg',
|
|
198741
|
+
expression: "'ecwplat.PageBtns.addMainOrg'"
|
|
198742
|
+
}],
|
|
198743
|
+
on: {
|
|
198744
|
+
"click": function click($event) {
|
|
198745
|
+
return _vm.addRootOrg(slotProps.treeId, slotProps.contextNode);
|
|
198746
|
+
}
|
|
198747
|
+
}
|
|
198748
|
+
}, [_vm._v("新增主机构")]) : _vm._e(), _c('li', {
|
|
198749
|
+
directives: [{
|
|
198750
|
+
name: "text-lbl",
|
|
198751
|
+
rawName: "v-text-lbl",
|
|
198752
|
+
value: 'ecwplat.PageBtns.updateTreeNode',
|
|
198753
|
+
expression: "'ecwplat.PageBtns.updateTreeNode'"
|
|
198754
|
+
}],
|
|
198755
|
+
on: {
|
|
198756
|
+
"click": function click($event) {
|
|
198757
|
+
return _vm.editNode(slotProps.treeId, slotProps.contextNode);
|
|
198758
|
+
}
|
|
198759
|
+
}
|
|
198760
|
+
}, [_vm._v("修改树节点")]), _c('li', {
|
|
198761
|
+
directives: [{
|
|
198762
|
+
name: "text-lbl",
|
|
198763
|
+
rawName: "v-text-lbl",
|
|
198764
|
+
value: 'ecwplat.PageBtns.delTreeNode',
|
|
198765
|
+
expression: "'ecwplat.PageBtns.delTreeNode'"
|
|
198766
|
+
}],
|
|
198767
|
+
on: {
|
|
198768
|
+
"click": function click($event) {
|
|
198769
|
+
return _vm.deleteNode(slotProps.treeId, slotProps.contextNode);
|
|
198770
|
+
}
|
|
198771
|
+
}
|
|
198772
|
+
}, [_vm._v("删除树节点")])]) : slotProps.contextNode.type === 'rootOrg' ? _c('ul', [_c('li', {
|
|
198773
|
+
directives: [{
|
|
198774
|
+
name: "text-lbl",
|
|
198775
|
+
rawName: "v-text-lbl",
|
|
198776
|
+
value: 'ecwplat.PageBtns.addChildOrg',
|
|
198777
|
+
expression: "'ecwplat.PageBtns.addChildOrg'"
|
|
198778
|
+
}],
|
|
198779
|
+
on: {
|
|
198780
|
+
"click": function click($event) {
|
|
198781
|
+
return _vm.addSubOrg(slotProps.treeId, slotProps.contextNode, 1);
|
|
198782
|
+
}
|
|
198783
|
+
}
|
|
198784
|
+
}, [_vm._v("新增子机构")]), _c('li', {
|
|
198785
|
+
directives: [{
|
|
198786
|
+
name: "text-lbl",
|
|
198787
|
+
rawName: "v-text-lbl",
|
|
198788
|
+
value: 'ecwplat.PageBtns.addDeptfz',
|
|
198789
|
+
expression: "'ecwplat.PageBtns.addDeptfz'"
|
|
198790
|
+
}],
|
|
198791
|
+
on: {
|
|
198792
|
+
"click": function click($event) {
|
|
198793
|
+
return _vm.addSubOrg(slotProps.treeId, slotProps.contextNode, 0);
|
|
198794
|
+
}
|
|
198795
|
+
}
|
|
198796
|
+
}, [_vm._v("新增部门分组")]), _c('li', {
|
|
198797
|
+
directives: [{
|
|
198798
|
+
name: "text-lbl",
|
|
198799
|
+
rawName: "v-text-lbl",
|
|
198800
|
+
value: 'ecwplat.PageBtns.updateMainOrg',
|
|
198801
|
+
expression: "'ecwplat.PageBtns.updateMainOrg'"
|
|
198802
|
+
}],
|
|
198803
|
+
on: {
|
|
198804
|
+
"click": function click($event) {
|
|
198805
|
+
return _vm.editNode(slotProps.treeId, slotProps.contextNode);
|
|
198806
|
+
}
|
|
198807
|
+
}
|
|
198808
|
+
}, [_vm._v("修改主机构")]), _c('li', {
|
|
198809
|
+
directives: [{
|
|
198810
|
+
name: "text-lbl",
|
|
198811
|
+
rawName: "v-text-lbl",
|
|
198812
|
+
value: 'ecwplat.PageBtns.delMainOrg',
|
|
198813
|
+
expression: "'ecwplat.PageBtns.delMainOrg'"
|
|
198814
|
+
}],
|
|
198815
|
+
on: {
|
|
198816
|
+
"click": function click($event) {
|
|
198817
|
+
return _vm.deleteNode(slotProps.treeId, slotProps.contextNode);
|
|
198818
|
+
}
|
|
198819
|
+
}
|
|
198820
|
+
}, [_vm._v("删除主机构")])]) : _vm._e(), _c('ul', {
|
|
198821
|
+
directives: [{
|
|
198822
|
+
name: "show",
|
|
198823
|
+
rawName: "v-show",
|
|
198824
|
+
value: slotProps.contextNode.type === 'subOrg',
|
|
198825
|
+
expression: "slotProps.contextNode.type === 'subOrg'"
|
|
198826
|
+
}]
|
|
198827
|
+
}, [_c('li', {
|
|
198828
|
+
directives: [{
|
|
198829
|
+
name: "text-lbl",
|
|
198830
|
+
rawName: "v-text-lbl",
|
|
198831
|
+
value: 'ecwplat.PageBtns.addChildOrg',
|
|
198832
|
+
expression: "'ecwplat.PageBtns.addChildOrg'"
|
|
198833
|
+
}],
|
|
198834
|
+
on: {
|
|
198835
|
+
"click": function click($event) {
|
|
198836
|
+
return _vm.addSubOrg(slotProps.treeId, slotProps.contextNode, 1);
|
|
198837
|
+
}
|
|
198838
|
+
}
|
|
198839
|
+
}, [_vm._v("新增子机构")]), _c('li', {
|
|
198840
|
+
directives: [{
|
|
198841
|
+
name: "text-lbl",
|
|
198842
|
+
rawName: "v-text-lbl",
|
|
198843
|
+
value: 'ecwplat.PageBtns.updateOrg',
|
|
198844
|
+
expression: "'ecwplat.PageBtns.updateOrg'"
|
|
198845
|
+
}],
|
|
198846
|
+
on: {
|
|
198847
|
+
"click": function click($event) {
|
|
198848
|
+
return _vm.editNode(slotProps.treeId, slotProps.contextNode);
|
|
198849
|
+
}
|
|
198850
|
+
}
|
|
198851
|
+
}, [_vm._v("修改机构")]), _c('li', {
|
|
198852
|
+
directives: [{
|
|
198853
|
+
name: "text-lbl",
|
|
198854
|
+
rawName: "v-text-lbl",
|
|
198855
|
+
value: 'ecwplat.PageBtns.delOrg',
|
|
198856
|
+
expression: "'ecwplat.PageBtns.delOrg'"
|
|
198857
|
+
}],
|
|
198858
|
+
on: {
|
|
198859
|
+
"click": function click($event) {
|
|
198860
|
+
return _vm.deleteNode(slotProps.treeId, slotProps.contextNode);
|
|
198861
|
+
}
|
|
198862
|
+
}
|
|
198863
|
+
}, [_vm._v("删除机构")])])];
|
|
198864
|
+
}
|
|
198865
|
+
}])
|
|
198866
|
+
})], 1), _c('RightPanel', [_vm.nodeMessage !== null && (_vm.nodeMessage.type === 'treeNode' || _vm.nodeMessage.type === 'area') ? _c('TreeNode', {
|
|
198867
|
+
attrs: {
|
|
198868
|
+
"vo": _vm.nodeMessage
|
|
198869
|
+
},
|
|
198870
|
+
on: {
|
|
198871
|
+
"deleteNode": _vm.deleteNode
|
|
198872
|
+
}
|
|
198873
|
+
}) : _vm._e(), _vm.nodeMessage !== null && _vm.nodeMessage.type === 'rootOrg' ? _c('RootOrg', {
|
|
198874
|
+
attrs: {
|
|
198875
|
+
"vo": _vm.nodeMessage
|
|
198876
|
+
},
|
|
198877
|
+
on: {
|
|
198878
|
+
"deleteNode": _vm.deleteNode
|
|
198879
|
+
}
|
|
198880
|
+
}) : _vm._e(), _vm.nodeMessage !== null && _vm.nodeMessage.type === 'subOrg' ? _c('SubOrg', {
|
|
198881
|
+
attrs: {
|
|
198882
|
+
"vo": _vm.nodeMessage
|
|
198883
|
+
},
|
|
198884
|
+
on: {
|
|
198885
|
+
"deleteNode": _vm.deleteNode
|
|
198886
|
+
}
|
|
198887
|
+
}) : _vm._e()], 1)], 1);
|
|
198888
|
+
};
|
|
198889
|
+
var OrgTreeMgrvue_type_template_id_28a541c4_scoped_true_staticRenderFns = [];
|
|
198890
|
+
|
|
198891
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/TreeNode.vue?vue&type=template&id=3795d273&scoped=true
|
|
198892
|
+
var TreeNodevue_type_template_id_3795d273_scoped_true_render = function render() {
|
|
198893
|
+
var _vm = this,
|
|
198894
|
+
_c = _vm._self._c;
|
|
198895
|
+
return _c('PageContent', {
|
|
198896
|
+
attrs: {
|
|
198897
|
+
"title": _vm.formTitle
|
|
198898
|
+
}
|
|
198899
|
+
}, [_c('dynamic-form', {
|
|
198900
|
+
attrs: {
|
|
198901
|
+
"table-field-info": _vm.formTableFiled,
|
|
198902
|
+
"vo": _vm.vo,
|
|
198903
|
+
"module-info": _vm.treeNodeModuleInfo,
|
|
198904
|
+
"can-edit": 0
|
|
198905
|
+
}
|
|
198906
|
+
}), _vm.formType === 'treeNode' || _vm.formType === 'rootNode' ? _c('Basicform', {
|
|
198907
|
+
attrs: {
|
|
198908
|
+
"title": _vm.$tx('ecwplat.sysSetup.fields.mlTreeInfo', '目录树节点信息'),
|
|
198909
|
+
"win-width": _vm.treeNodeModuleInfo.winWidth,
|
|
198910
|
+
"win-height": _vm.treeNodeModuleInfo.winHeight,
|
|
198911
|
+
"toolbar-btns": _vm.busiformBtns,
|
|
198912
|
+
"on-basic-form-opened": _vm.onBasicFormOpened,
|
|
198913
|
+
"on-basic-form-before-submit": _vm.onBasicFormBeforeSubmit,
|
|
198914
|
+
"on-basic-form-submited": _vm.onTreeNodeFormSubmited
|
|
198915
|
+
},
|
|
198916
|
+
scopedSlots: _vm._u([{
|
|
198917
|
+
key: "default",
|
|
198918
|
+
fn: function fn(slotProps) {
|
|
198919
|
+
return [_c('dynamic-form', {
|
|
198920
|
+
ref: "rootOrgForm",
|
|
198921
|
+
attrs: {
|
|
198922
|
+
"vo": slotProps.vo,
|
|
198923
|
+
"table-field-info": _vm.formTableFiled,
|
|
198924
|
+
"can-edit": slotProps.canEdit,
|
|
198925
|
+
"module-info": _vm.rootOrgModuleInfo
|
|
198926
|
+
}
|
|
198927
|
+
})];
|
|
198928
|
+
}
|
|
198929
|
+
}], null, false, 264081592)
|
|
198930
|
+
}) : _vm._e(), _vm.formType === 'rootOrg' ? _c('Basicform', {
|
|
198931
|
+
attrs: {
|
|
198932
|
+
"title": _vm.$tx('ecwplat.sysSetup.fields.orgInfo', '组织机构信息'),
|
|
198933
|
+
"win-width": _vm.rootOrgModuleInfo.winWidth,
|
|
198934
|
+
"win-height": _vm.rootOrgModuleInfo.winHeight,
|
|
198935
|
+
"on-basic-form-opened": _vm.rootOrgOnBasicFormOpened,
|
|
198936
|
+
"on-basic-form-before-submit": _vm.rootOrgOnBasicFormBeforeSubmit,
|
|
198937
|
+
"on-basic-form-submited": _vm.onRootOrgFormSubmited
|
|
198938
|
+
},
|
|
198939
|
+
scopedSlots: _vm._u([{
|
|
198940
|
+
key: "default",
|
|
198941
|
+
fn: function fn(slotProps) {
|
|
198942
|
+
return [_c('RootOrgForm', {
|
|
198943
|
+
ref: "rootOrgForm",
|
|
198944
|
+
attrs: {
|
|
198945
|
+
"vo": slotProps.vo,
|
|
198946
|
+
"can-edit": slotProps.canEdit,
|
|
198947
|
+
"module-info": _vm.rootOrgModuleInfo
|
|
198948
|
+
}
|
|
198949
|
+
})];
|
|
198950
|
+
}
|
|
198951
|
+
}], null, false, 2728721330)
|
|
198952
|
+
}) : _vm._e(), _c('div', {
|
|
198953
|
+
attrs: {
|
|
198954
|
+
"slot": "footer"
|
|
198955
|
+
},
|
|
198956
|
+
slot: "footer"
|
|
198957
|
+
}, [_c('el-button', {
|
|
198958
|
+
directives: [{
|
|
198959
|
+
name: "pageBtn-lbl",
|
|
198960
|
+
rawName: "v-pageBtn-lbl",
|
|
198961
|
+
value: 'addChildNode',
|
|
198962
|
+
expression: "'addChildNode'"
|
|
198963
|
+
}],
|
|
198964
|
+
attrs: {
|
|
198965
|
+
"plain": "",
|
|
198966
|
+
"icon": "el-icon-plus"
|
|
198967
|
+
},
|
|
198968
|
+
on: {
|
|
198969
|
+
"click": function click($event) {
|
|
198970
|
+
return _vm.addTreeNode('treeNode');
|
|
198971
|
+
}
|
|
198972
|
+
}
|
|
198973
|
+
}, [_vm._v("新增子节点")]), _c('el-button', {
|
|
198974
|
+
directives: [{
|
|
198975
|
+
name: "pageBtn-lbl",
|
|
198976
|
+
rawName: "v-pageBtn-lbl",
|
|
198977
|
+
value: 'addMainOrg',
|
|
198978
|
+
expression: "'addMainOrg'"
|
|
198979
|
+
}],
|
|
198980
|
+
attrs: {
|
|
198981
|
+
"plain": "",
|
|
198982
|
+
"icon": "el-icon-plus"
|
|
198983
|
+
},
|
|
198984
|
+
on: {
|
|
198985
|
+
"click": _vm.addRootOrg
|
|
198986
|
+
}
|
|
198987
|
+
}, [_vm._v("新增主机构")]), _c('el-button', {
|
|
198988
|
+
directives: [{
|
|
198989
|
+
name: "pageBtn-lbl",
|
|
198990
|
+
rawName: "v-pageBtn-lbl",
|
|
198991
|
+
value: 'updateTreeNode',
|
|
198992
|
+
expression: "'updateTreeNode'"
|
|
198993
|
+
}],
|
|
198994
|
+
attrs: {
|
|
198995
|
+
"plain": "",
|
|
198996
|
+
"icon": "el-icon-edit"
|
|
198997
|
+
},
|
|
198998
|
+
on: {
|
|
198999
|
+
"click": _vm.editTreeNode
|
|
199000
|
+
}
|
|
199001
|
+
}, [_vm._v("修改树节点")]), _c('el-button', {
|
|
199002
|
+
directives: [{
|
|
199003
|
+
name: "pageBtn-lbl",
|
|
199004
|
+
rawName: "v-pageBtn-lbl",
|
|
199005
|
+
value: 'delTreeNode',
|
|
199006
|
+
expression: "'delTreeNode'"
|
|
199007
|
+
}],
|
|
199008
|
+
attrs: {
|
|
199009
|
+
"plain": "",
|
|
199010
|
+
"icon": "el-icon-delete"
|
|
199011
|
+
},
|
|
199012
|
+
on: {
|
|
199013
|
+
"click": _vm.deleteNode
|
|
199014
|
+
}
|
|
199015
|
+
}, [_vm._v("删除树节点")])], 1)], 1);
|
|
199016
|
+
};
|
|
199017
|
+
var TreeNodevue_type_template_id_3795d273_scoped_true_staticRenderFns = [];
|
|
199018
|
+
|
|
199019
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/components/TreeNode.vue?vue&type=script&lang=js
|
|
199020
|
+
|
|
199021
|
+
/* harmony default export */ var TreeNodevue_type_script_lang_js = ({
|
|
199022
|
+
components: {
|
|
199023
|
+
RootOrgForm: RootOrgForm
|
|
199024
|
+
},
|
|
199025
|
+
props: {
|
|
199026
|
+
vo: {
|
|
199027
|
+
type: Object,
|
|
199028
|
+
default: function _default() {
|
|
199029
|
+
return {};
|
|
199030
|
+
}
|
|
199031
|
+
}
|
|
199032
|
+
},
|
|
199033
|
+
data: function data() {
|
|
199034
|
+
return {
|
|
199035
|
+
i18npkg: 'ecwplat',
|
|
199036
|
+
moduleCode: 'sysSetup',
|
|
199037
|
+
formTitle: this.$tx('ecwplat.sysSetup.fields.mlTreeInfo', '目录树节点信息'),
|
|
199038
|
+
formType: '',
|
|
199039
|
+
treeNodeModuleInfo: {
|
|
199040
|
+
winWidth: 1000,
|
|
199041
|
+
winHeight: 600,
|
|
199042
|
+
moduleCode: 'treeNode',
|
|
199043
|
+
addNewUrl: 'base/treeNode/addNew',
|
|
199044
|
+
insertUrl: 'base/treeNode/insert',
|
|
199045
|
+
updateUrl: 'base/orgTreeMgr/updateTreeNode',
|
|
199046
|
+
getByIdUrl: 'base/treeNode/getById'
|
|
199047
|
+
},
|
|
199048
|
+
rootOrgModuleInfo: {
|
|
199049
|
+
winWidth: 1000,
|
|
199050
|
+
winHeight: 600,
|
|
199051
|
+
moduleCode: 'organization',
|
|
199052
|
+
addNewUrl: 'base/orgTreeMgr/addNewOrganization',
|
|
199053
|
+
insertUrl: 'base/orgTreeMgr/insertOrganization'
|
|
199054
|
+
},
|
|
199055
|
+
formTableFiled: [{
|
|
199056
|
+
defaultValue: '',
|
|
199057
|
+
elementCanEdit: 0,
|
|
199058
|
+
elementFormatter: '',
|
|
199059
|
+
elementReadonly: 0,
|
|
199060
|
+
elementType: 'input',
|
|
199061
|
+
emptyMessage: '上级节点',
|
|
199062
|
+
errorMessage: '',
|
|
199063
|
+
formElementIndex: 0,
|
|
199064
|
+
formShow: 1,
|
|
199065
|
+
formTdAlign: 'text-left',
|
|
199066
|
+
formTdColspan: 24,
|
|
199067
|
+
isRequired: 1,
|
|
199068
|
+
passenger: {},
|
|
199069
|
+
propComment: '上级节点',
|
|
199070
|
+
propName: 'parentName',
|
|
199071
|
+
propType: 'String',
|
|
199072
|
+
textFormatter: 'textfield',
|
|
199073
|
+
valueMaxLength: 100
|
|
199074
|
+
}, {
|
|
199075
|
+
defaultValue: '',
|
|
199076
|
+
elementCanEdit: '{{canEdit}}',
|
|
199077
|
+
elementFormatter: '',
|
|
199078
|
+
elementReadonly: 0,
|
|
199079
|
+
elementType: 'input',
|
|
199080
|
+
emptyMessage: '请输入节点名称',
|
|
199081
|
+
errorMessage: '请输入节点名称',
|
|
199082
|
+
id: '3e1c4d5f7d6f4b89963bf66f851f5e04',
|
|
199083
|
+
formElementIndex: 1,
|
|
199084
|
+
formShow: 1,
|
|
199085
|
+
formTdAlign: 'text-left',
|
|
199086
|
+
formTdColspan: 24,
|
|
199087
|
+
isRequired: 1,
|
|
199088
|
+
passenger: {},
|
|
199089
|
+
propComment: '节点名称',
|
|
199090
|
+
propName: 'nName',
|
|
199091
|
+
propType: 'String',
|
|
199092
|
+
textFormatter: 'textfield',
|
|
199093
|
+
valueMaxLength: 50
|
|
199094
|
+
}, {
|
|
199095
|
+
defaultValue: '',
|
|
199096
|
+
elementCanEdit: '{{canEdit}}',
|
|
199097
|
+
elementFormatter: '',
|
|
199098
|
+
elementReadonly: 0,
|
|
199099
|
+
elementType: 'input',
|
|
199100
|
+
emptyMessage: '请输入排序',
|
|
199101
|
+
errorMessage: '请输入排序',
|
|
199102
|
+
formElementIndex: 2,
|
|
199103
|
+
formShow: 1,
|
|
199104
|
+
formTdAlign: 'text-left',
|
|
199105
|
+
formTdColspan: 24,
|
|
199106
|
+
isRequired: 1,
|
|
199107
|
+
passenger: {},
|
|
199108
|
+
propComment: '排序',
|
|
199109
|
+
propName: 'orderNo',
|
|
199110
|
+
propType: 'String',
|
|
199111
|
+
textFormatter: 'textfield',
|
|
199112
|
+
valueMaxLength: 4
|
|
199113
|
+
}, {
|
|
199114
|
+
defaultValue: '1',
|
|
199115
|
+
elementCanEdit: '{{canEdit}}',
|
|
199116
|
+
elementFormatter: '1:有效\r\n0:无效\r\n',
|
|
199117
|
+
elementType: 'radio',
|
|
199118
|
+
emptyMessage: '状态',
|
|
199119
|
+
errorMessage: '',
|
|
199120
|
+
formElementIndex: 3,
|
|
199121
|
+
formShow: 1,
|
|
199122
|
+
formTdAlign: 'text-left',
|
|
199123
|
+
formTdColspan: 24,
|
|
199124
|
+
isRequired: 1,
|
|
199125
|
+
propComment: '状态',
|
|
199126
|
+
propName: 'status',
|
|
199127
|
+
propType: 'Short',
|
|
199128
|
+
textFormatter: '',
|
|
199129
|
+
valueMinLength: 0
|
|
199130
|
+
}],
|
|
199131
|
+
busiformBtns: []
|
|
199132
|
+
};
|
|
199133
|
+
},
|
|
199134
|
+
computed: {},
|
|
199135
|
+
watch: {},
|
|
199136
|
+
created: function created() {
|
|
199137
|
+
this.$bus.on('addTreeNode', this.addTreeNode);
|
|
199138
|
+
this.$bus.on('editTreeNode', this.editTreeNode);
|
|
199139
|
+
this.$bus.on('addRootOrg', this.addRootOrg);
|
|
199140
|
+
},
|
|
199141
|
+
beforeDestroy: function beforeDestroy() {
|
|
199142
|
+
this.$bus.off('addTreeNode', this.addTreeNode);
|
|
199143
|
+
this.$bus.off('editTreeNode', this.editTreeNode);
|
|
199144
|
+
this.$bus.off('addRootOrg', this.addRootOrg);
|
|
199145
|
+
},
|
|
199146
|
+
mounted: function mounted() {},
|
|
199147
|
+
methods: {
|
|
199148
|
+
addTreeNode: function addTreeNode(nodeType) {
|
|
199149
|
+
var _this = this;
|
|
199150
|
+
this.formType = nodeType || 'treeNode';
|
|
199151
|
+
this.$nextTick(function () {
|
|
199152
|
+
_this.$bus.emit('openBusiform', _this.treeNodeModuleInfo, null, 1);
|
|
199153
|
+
});
|
|
199154
|
+
},
|
|
199155
|
+
editTreeNode: function editTreeNode() {
|
|
199156
|
+
var _this2 = this;
|
|
199157
|
+
this.formType = 'treeNode';
|
|
199158
|
+
this.$nextTick(function () {
|
|
199159
|
+
_this2.$bus.emit('openBusiform', _this2.treeNodeModuleInfo, _this2.vo, 1);
|
|
199160
|
+
});
|
|
199161
|
+
},
|
|
199162
|
+
addRootOrg: function addRootOrg() {
|
|
199163
|
+
var _this3 = this;
|
|
199164
|
+
this.formType = 'rootOrg';
|
|
199165
|
+
this.$nextTick(function () {
|
|
199166
|
+
_this3.$bus.emit('openBusiform', _this3.rootOrgModuleInfo, null, 1);
|
|
199167
|
+
});
|
|
199168
|
+
},
|
|
199169
|
+
// 树节点表单打开
|
|
199170
|
+
onBasicFormOpened: function onBasicFormOpened($scope, newvo) {
|
|
199171
|
+
newvo.formOpenTyope = 'edit';
|
|
199172
|
+
if (this.formType === 'treeNode') {
|
|
199173
|
+
newvo.parentName = this.vo.parentName;
|
|
199174
|
+
if (!newvo.fullID) {
|
|
199175
|
+
newvo.status = 1;
|
|
199176
|
+
newvo.nLevel = this.vo.nLevel + 1;
|
|
199177
|
+
newvo.formOpenTyope = 'addNew';
|
|
199178
|
+
newvo.parentName = this.vo.parentName + this.vo.nName + '/';
|
|
199179
|
+
}
|
|
199180
|
+
} else {
|
|
199181
|
+
newvo.status = 1;
|
|
199182
|
+
newvo.nLevel = 1;
|
|
199183
|
+
newvo.formOpenTyope = 'addNew';
|
|
199184
|
+
newvo.parentName = '/';
|
|
199185
|
+
}
|
|
199186
|
+
if (!this.$route.meta.params || this.$route.meta.params.indexOf('type=treeNode') !== -1) {
|
|
199187
|
+
newvo.nType = 1;
|
|
199188
|
+
} else {
|
|
199189
|
+
newvo.nType = 0;
|
|
199190
|
+
}
|
|
199191
|
+
this.$set(newvo);
|
|
199192
|
+
},
|
|
199193
|
+
// 树节点表单提交
|
|
199194
|
+
onBasicFormBeforeSubmit: function onBasicFormBeforeSubmit($scope, newvo, defer) {
|
|
199195
|
+
if (false) {}
|
|
199196
|
+
if (newvo.nLevel !== 1) {
|
|
199197
|
+
if (newvo.formOpenTyope === 'addNew') {
|
|
199198
|
+
newvo.fullID = this.vo.fullID + '-' + newvo.id;
|
|
199199
|
+
newvo.fullName = this.vo.fullName + '-' + newvo.nName;
|
|
199200
|
+
newvo.fullOrder = this.vo.fullOrder + '-' + newvo.orderNo;
|
|
199201
|
+
newvo.isFolder = 0;
|
|
199202
|
+
newvo.parentID = this.vo.id;
|
|
199203
|
+
} else {
|
|
199204
|
+
newvo.fullID = this.vo.fullID;
|
|
199205
|
+
newvo.fullName = this.vo.fullName;
|
|
199206
|
+
newvo.fullOrder = this.vo.fullOrder;
|
|
199207
|
+
newvo.parentID = this.vo.parentID;
|
|
199208
|
+
}
|
|
199209
|
+
} else {
|
|
199210
|
+
newvo.fullID = newvo.id;
|
|
199211
|
+
newvo.fullOrder = newvo.orderNo;
|
|
199212
|
+
newvo.fullName = newvo.nName;
|
|
199213
|
+
newvo.isFolder = 0;
|
|
199214
|
+
}
|
|
199215
|
+
newvo.type = 'treeNode';
|
|
199216
|
+
this.$set(newvo);
|
|
199217
|
+
defer.resolve(true);
|
|
199218
|
+
// defer.reject(err)
|
|
199219
|
+
},
|
|
199220
|
+
// 树节点表单提交完成
|
|
199221
|
+
onTreeNodeFormSubmited: function onTreeNodeFormSubmited($scope, vo) {
|
|
199222
|
+
vo.title = '名称:' + vo.name + '\r\n代码:' + vo.code + '\r\n排序:' + vo.orderNo;
|
|
199223
|
+
if (vo.parentID !== undefined) {
|
|
199224
|
+
vo.pId = vo.parentID;
|
|
199225
|
+
} else {
|
|
199226
|
+
vo.pId = vo.parentId;
|
|
199227
|
+
}
|
|
199228
|
+
this.$set(vo);
|
|
199229
|
+
this.$bus.emit('updateTreeNode', vo);
|
|
199230
|
+
},
|
|
199231
|
+
// 主机构表单打开
|
|
199232
|
+
rootOrgOnBasicFormOpened: function rootOrgOnBasicFormOpened($scope, newvo) {
|
|
199233
|
+
newvo.parentName = this.vo.parentName + this.vo.name + '/';
|
|
199234
|
+
if (!newvo.orgFullId) {
|
|
199235
|
+
newvo.orgLevel = 1;
|
|
199236
|
+
newvo.treeId = this.vo.id;
|
|
199237
|
+
newvo.orgType = 1;
|
|
199238
|
+
newvo.isHasChild = 1;
|
|
199239
|
+
newvo.isManageOrg = 0;
|
|
199240
|
+
newvo.isRealOrg = 1;
|
|
199241
|
+
newvo.generateType = 0;
|
|
199242
|
+
newvo.status = 1;
|
|
199243
|
+
}
|
|
199244
|
+
this.$set(newvo);
|
|
199245
|
+
},
|
|
199246
|
+
// 主机构表单提交
|
|
199247
|
+
rootOrgOnBasicFormBeforeSubmit: function rootOrgOnBasicFormBeforeSubmit($scope, newvo, defer) {
|
|
199248
|
+
if (false) {}
|
|
199249
|
+
newvo.fullID = this.vo.fullID + '-' + newvo.id;
|
|
199250
|
+
newvo.fullOrder = this.vo.fullOrder + '-' + newvo.orderNo;
|
|
199251
|
+
newvo.fullName = this.vo.fullName + '-' + newvo.name;
|
|
199252
|
+
newvo.orgFullId = newvo.id;
|
|
199253
|
+
newvo.orgFullName = newvo.name;
|
|
199254
|
+
newvo.orgFullOrderNo = newvo.orderNo;
|
|
199255
|
+
|
|
199256
|
+
// 如果存在岗位人员信息
|
|
199257
|
+
if (newvo.passenger.jobPositionList) {
|
|
199258
|
+
newvo.passenger.jobPositionList.forEach(function (jobPosition) {
|
|
199259
|
+
if (newvo.passenger[jobPosition.code]) {
|
|
199260
|
+
this.$ref.rootOrgForm.onSelectStaffCompleted(newvo.passenger[jobPosition.code], {
|
|
199261
|
+
name: jobPosition.code
|
|
199262
|
+
});
|
|
199263
|
+
}
|
|
199264
|
+
});
|
|
199265
|
+
}
|
|
199266
|
+
newvo.type = 'rootOrg';
|
|
199267
|
+
this.$set(newvo);
|
|
199268
|
+
defer.resolve(true);
|
|
199269
|
+
},
|
|
199270
|
+
// 主机构表单提交完成
|
|
199271
|
+
onRootOrgFormSubmited: function onRootOrgFormSubmited($scope, newvo) {
|
|
199272
|
+
newvo.title = '名称:' + newvo.name + '\r\n代码:' + newvo.code + '\r\n排序:' + newvo.orderNo;
|
|
199273
|
+
if (!newvo.parentId) {
|
|
199274
|
+
newvo.pId = this.vo.id;
|
|
199275
|
+
} else {
|
|
199276
|
+
newvo.pId = newvo.parentId;
|
|
199277
|
+
}
|
|
199278
|
+
this.$set(newvo);
|
|
199279
|
+
this.$bus.emit('updateTreeNode', newvo);
|
|
199280
|
+
},
|
|
199281
|
+
// 删除节点
|
|
199282
|
+
deleteNode: function deleteNode() {
|
|
199283
|
+
this.$emit('deleteNode');
|
|
199284
|
+
}
|
|
199285
|
+
}
|
|
199286
|
+
});
|
|
199287
|
+
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/components/TreeNode.vue?vue&type=script&lang=js
|
|
199288
|
+
/* harmony default export */ var components_TreeNodevue_type_script_lang_js = (TreeNodevue_type_script_lang_js);
|
|
199289
|
+
;// CONCATENATED MODULE: ./packages/ecwplat/Organ/src/components/TreeNode.vue
|
|
199290
|
+
|
|
199291
|
+
|
|
199292
|
+
|
|
199293
|
+
|
|
199294
|
+
|
|
199295
|
+
/* normalize component */
|
|
199296
|
+
;
|
|
199297
|
+
var TreeNode_component = (0,componentNormalizer/* default */.A)(
|
|
199298
|
+
components_TreeNodevue_type_script_lang_js,
|
|
199299
|
+
TreeNodevue_type_template_id_3795d273_scoped_true_render,
|
|
199300
|
+
TreeNodevue_type_template_id_3795d273_scoped_true_staticRenderFns,
|
|
199301
|
+
false,
|
|
199302
|
+
null,
|
|
199303
|
+
"3795d273",
|
|
199304
|
+
null
|
|
199305
|
+
|
|
199306
|
+
)
|
|
199307
|
+
|
|
199308
|
+
/* harmony default export */ var TreeNode = (TreeNode_component.exports);
|
|
199225
199309
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/Organ/src/OrgTreeMgr.vue?vue&type=script&lang=js
|
|
199226
199310
|
function OrgTreeMgrvue_type_script_lang_js_toConsumableArray(r) { return OrgTreeMgrvue_type_script_lang_js_arrayWithoutHoles(r) || OrgTreeMgrvue_type_script_lang_js_iterableToArray(r) || OrgTreeMgrvue_type_script_lang_js_unsupportedIterableToArray(r) || OrgTreeMgrvue_type_script_lang_js_nonIterableSpread(); }
|
|
199227
199311
|
function OrgTreeMgrvue_type_script_lang_js_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -202222,8 +202306,8 @@ var Organ_GroupMatrixMgr = GroupMatrixMgr;
|
|
|
202222
202306
|
var Organ_OrgUserList = OrgUserList;
|
|
202223
202307
|
var Organ_OrgTreeLRLayout = OrgTreeLRLayout;
|
|
202224
202308
|
var Organ_ColumnEdit = ColumnEdit;
|
|
202225
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/WfDefine/src/index.vue?vue&type=template&id=
|
|
202226
|
-
var
|
|
202309
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/WfDefine/src/index.vue?vue&type=template&id=7da80c52&scoped=true
|
|
202310
|
+
var srcvue_type_template_id_7da80c52_scoped_true_render = function render() {
|
|
202227
202311
|
var _vm = this,
|
|
202228
202312
|
_c = _vm._self._c,
|
|
202229
202313
|
_setup = _vm._self._setupProxy;
|
|
@@ -202314,7 +202398,7 @@ var srcvue_type_template_id_6d220a0c_scoped_true_render = function render() {
|
|
|
202314
202398
|
}
|
|
202315
202399
|
}, [_vm._v("确 定")])], 1)], 1)], 1);
|
|
202316
202400
|
};
|
|
202317
|
-
var
|
|
202401
|
+
var srcvue_type_template_id_7da80c52_scoped_true_staticRenderFns = [];
|
|
202318
202402
|
|
|
202319
202403
|
// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplat/WfDefine/src/index.vue?vue&type=script&lang=js
|
|
202320
202404
|
var WfDefine_srcvue_type_script_lang_js = __webpack_require__(32680);
|
|
@@ -202331,11 +202415,11 @@ var srcvue_type_script_lang_js_default = /*#__PURE__*/__webpack_require__.n(WfDe
|
|
|
202331
202415
|
;
|
|
202332
202416
|
var WfDefine_src_component = (0,componentNormalizer/* default */.A)(
|
|
202333
202417
|
ecwplat_WfDefine_srcvue_type_script_lang_js,
|
|
202334
|
-
|
|
202335
|
-
|
|
202418
|
+
srcvue_type_template_id_7da80c52_scoped_true_render,
|
|
202419
|
+
srcvue_type_template_id_7da80c52_scoped_true_staticRenderFns,
|
|
202336
202420
|
false,
|
|
202337
202421
|
null,
|
|
202338
|
-
"
|
|
202422
|
+
"7da80c52",
|
|
202339
202423
|
null
|
|
202340
202424
|
|
|
202341
202425
|
)
|