ecinc-cloud-wappaio 9.7.45 → 9.7.46

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.
@@ -51168,6 +51168,7 @@ module.exports = {
51168
51168
  byPosition: 'By Position',
51169
51169
  byGroup: 'By Group',
51170
51170
  byCommonGroup: 'By Common Group',
51171
+ howAllStaff: 'Show All',
51171
51172
  keyWords: 'Please enter search keywords',
51172
51173
  searching: 'Searching for...',
51173
51174
  selected: 'Selected ({dataType})',
@@ -51708,6 +51709,7 @@ module.exports = {
51708
51709
  byPosition: '按岗位',
51709
51710
  byGroup: '按群组',
51710
51711
  byCommonGroup: '按常用组',
51712
+ showAllStaff: '显示全部',
51711
51713
  keyWords: '请输入搜索关键字',
51712
51714
  searching: '正在搜索...',
51713
51715
  selected: '已选择({dataType})',
@@ -166251,7 +166253,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".bottom-bar .el-pager{position:relativ
166251
166253
 
166252
166254
  /***/ }),
166253
166255
 
166254
- /***/ 42471:
166256
+ /***/ 55921:
166255
166257
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
166256
166258
 
166257
166259
  "use strict";
@@ -166991,7 +166993,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-c3f75196]:export{stdMenuBgcolo
166991
166993
 
166992
166994
  /***/ }),
166993
166995
 
166994
- /***/ 10102:
166996
+ /***/ 70580:
166995
166997
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
166996
166998
 
166997
166999
  "use strict";
@@ -167005,7 +167007,7 @@ __webpack_require__.r(__webpack_exports__);
167005
167007
 
167006
167008
  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()));
167007
167009
  // Module
167008
- ___CSS_LOADER_EXPORT___.push([module.id, ".search-input-container[data-v-47955133]{padding-bottom:8px}.search-input-container[data-v-47955133] .el-input-group__prepend{width:100px;background-color:#fff;color:#333;border-bottom-right-radius:0;border-top-right-radius:0}.search-input-container .el-radio-group[data-v-47955133]{font-size:unset!important}.ztree-container[data-v-47955133]{height:450px}.ztree-container[data-v-47955133] .el-tabs--top{margin-top:0}.ztree-container[data-v-47955133] .el-tabs--top .el-tabs__header{margin:0;border-bottom:1px solid #dfe6ec}.ztree-container[data-v-47955133] .el-tabs--top .el-tabs__nav-wrap:after{height:0}.ztree-container .el-tree[data-v-47955133]{overflow-x:hidden}.ztree-container[data-v-47955133] .el-checkbox .is-disabled{display:none}.ztree-container .selected-title[data-v-47955133]{font-weight:600;height:32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:32px;margin-bottom:6px}.ztree-container .selectedNodes[data-v-47955133]{width:100%;padding:10px}.ztree-container .selectedNodes .selectedNode[data-v-47955133]{background-color:#f1f4f7;margin-bottom:4px;padding:6px 8px}.ztree-container .selectedNodes .selectedNode .node-text[data-v-47955133]{width:calc(100% - 15px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ztree-container .selectedNodes .selectedNode .el-icon-close[data-v-47955133]{float:right;cursor:pointer;color:red;margin-top:-14px}.treeNode[data-v-47955133]{border:1px solid #dfe6ec}.treeNode .el-scrollbar[data-v-47955133]{height:400px}.treeNode .no-search-input[data-v-47955133]{height:427px;margin-top:10px}.treeNode[data-v-47955133] .el-scrollbar__wrap{overflow-x:hidden}.treeNode .tree-node-icon i[data-v-47955133]{margin-right:7px;margin-left:-7px;font-size:14px}.searchdoing[data-v-47955133] .el-loading-mask{background-color:#fff}.el-radio-group-4[data-v-47955133]{width:100%}.el-radio-group-4 .el-radio-button[data-v-47955133]{width:25%}.el-radio-group-2[data-v-47955133],.el-radio-group-4 .el-radio-button[data-v-47955133] .el-radio-button__inner{width:100%}.el-radio-group-2 .el-radio-button[data-v-47955133]{width:50%}.el-radio-group-2 .el-radio-button[data-v-47955133] .el-radio-button__inner{width:100%}", ""]);
167010
+ ___CSS_LOADER_EXPORT___.push([module.id, ".search-input-container[data-v-6d54a72d]{padding-bottom:8px}.search-input-container[data-v-6d54a72d] .el-input-group__prepend{width:100px;background-color:#fff;color:#333;border-bottom-right-radius:0;border-top-right-radius:0}.search-input-container[data-v-6d54a72d] .el-checkbox{line-height:32px}.search-input-container .el-radio-group[data-v-6d54a72d]{font-size:unset!important}.ztree-container[data-v-6d54a72d]{height:450px}.ztree-container[data-v-6d54a72d] .el-tabs--top{margin-top:0}.ztree-container[data-v-6d54a72d] .el-tabs--top .el-tabs__header{margin:0;border-bottom:1px solid #dfe6ec}.ztree-container[data-v-6d54a72d] .el-tabs--top .el-tabs__nav-wrap:after{height:0}.ztree-container .el-tree[data-v-6d54a72d]{overflow-x:hidden}.ztree-container[data-v-6d54a72d] .el-checkbox .is-disabled{display:none}.ztree-container .selected-title[data-v-6d54a72d]{font-weight:600;height:32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:32px;margin-bottom:6px}.ztree-container .selectedNodes[data-v-6d54a72d]{width:100%;padding:10px}.ztree-container .selectedNodes .selectedNode[data-v-6d54a72d]{background-color:#f1f4f7;margin-bottom:4px;padding:6px 8px}.ztree-container .selectedNodes .selectedNode .node-text[data-v-6d54a72d]{width:calc(100% - 15px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ztree-container .selectedNodes .selectedNode .el-icon-close[data-v-6d54a72d]{float:right;cursor:pointer;color:red;margin-top:-14px}.treeNode[data-v-6d54a72d]{border:1px solid #dfe6ec}.treeNode .el-scrollbar[data-v-6d54a72d]{height:400px}.treeNode .no-search-input[data-v-6d54a72d]{height:427px;margin-top:10px}.treeNode[data-v-6d54a72d] .el-scrollbar__wrap{overflow-x:hidden}.treeNode .tree-node-icon i[data-v-6d54a72d]{margin-right:7px;margin-left:-7px;font-size:14px}.searchdoing[data-v-6d54a72d] .el-loading-mask{background-color:#fff}.el-radio-group-4[data-v-6d54a72d]{width:100%}.el-radio-group-4 .el-radio-button[data-v-6d54a72d]{width:25%}.el-radio-group-2[data-v-6d54a72d],.el-radio-group-4 .el-radio-button[data-v-6d54a72d] .el-radio-button__inner{width:100%}.el-radio-group-2 .el-radio-button[data-v-6d54a72d]{width:50%}.el-radio-group-2 .el-radio-button[data-v-6d54a72d] .el-radio-button__inner{width:100%}", ""]);
167009
167011
  // Exports
167010
167012
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
167011
167013
 
@@ -252905,19 +252907,19 @@ var update = add("cf82da32", content, true, {"sourceMap":false,"shadowMode":fals
252905
252907
 
252906
252908
  /***/ }),
252907
252909
 
252908
- /***/ 36996:
252910
+ /***/ 12030:
252909
252911
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
252910
252912
 
252911
252913
  // style-loader: Adds some css to the DOM by adding a <style> tag
252912
252914
 
252913
252915
  // load the styles
252914
- var content = __webpack_require__(42471);
252916
+ var content = __webpack_require__(55921);
252915
252917
  if(content.__esModule) content = content.default;
252916
252918
  if(typeof content === 'string') content = [[module.id, content, '']];
252917
252919
  if(content.locals) module.exports = content.locals;
252918
252920
  // add the styles to the DOM
252919
252921
  var add = (__webpack_require__(99548)/* ["default"] */ .A)
252920
- var update = add("64a518fe", content, true, {"sourceMap":false,"shadowMode":false});
252922
+ var update = add("b4815db2", content, true, {"sourceMap":false,"shadowMode":false});
252921
252923
 
252922
252924
  /***/ }),
252923
252925
 
@@ -253465,19 +253467,19 @@ var update = add("6c2dd2ba", content, true, {"sourceMap":false,"shadowMode":fals
253465
253467
 
253466
253468
  /***/ }),
253467
253469
 
253468
- /***/ 63052:
253470
+ /***/ 58514:
253469
253471
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
253470
253472
 
253471
253473
  // style-loader: Adds some css to the DOM by adding a <style> tag
253472
253474
 
253473
253475
  // load the styles
253474
- var content = __webpack_require__(10102);
253476
+ var content = __webpack_require__(70580);
253475
253477
  if(content.__esModule) content = content.default;
253476
253478
  if(typeof content === 'string') content = [[module.id, content, '']];
253477
253479
  if(content.locals) module.exports = content.locals;
253478
253480
  // add the styles to the DOM
253479
253481
  var add = (__webpack_require__(99548)/* ["default"] */ .A)
253480
- var update = add("7f9b4dde", content, true, {"sourceMap":false,"shadowMode":false});
253482
+ var update = add("38a0592b", content, true, {"sourceMap":false,"shadowMode":false});
253481
253483
 
253482
253484
  /***/ }),
253483
253485
 
@@ -272316,8 +272318,8 @@ var srcvue_type_template_id_769ae4fb_render = function render() {
272316
272318
  };
272317
272319
  var srcvue_type_template_id_769ae4fb_staticRenderFns = [];
272318
272320
 
272319
- ;// 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/SelectDialog/src/OrgTreeDialog.vue?vue&type=template&id=47955133&scoped=true
272320
- var OrgTreeDialogvue_type_template_id_47955133_scoped_true_render = function render() {
272321
+ ;// 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/SelectDialog/src/OrgTreeDialog.vue?vue&type=template&id=6d54a72d&scoped=true
272322
+ var OrgTreeDialogvue_type_template_id_6d54a72d_scoped_true_render = function render() {
272321
272323
  var _vm = this,
272322
272324
  _c = _vm._self._c;
272323
272325
  return _vm.dialogFormVisible ? _c('el-dialog', {
@@ -272465,7 +272467,41 @@ var OrgTreeDialogvue_type_template_id_47955133_scoped_true_render = function ren
272465
272467
  attrs: {
272466
272468
  "label": "byPrivateOrggroup"
272467
272469
  }
272468
- }, [_vm._v("按常用组")])], 1) : _vm._e(), _c('el-input', {
272470
+ }, [_vm._v("按常用组")])], 1) : _vm._e(), _c('div', {
272471
+ staticStyle: {
272472
+ "display": "flex",
272473
+ "align-items": "center",
272474
+ "margin-bottom": "4px"
272475
+ }
272476
+ }, [!(_vm.$settings && _vm.$settings.selectDialogShowAllStaff !== false) ? _c('el-checkbox', {
272477
+ directives: [{
272478
+ name: "text-lbl",
272479
+ rawName: "v-text-lbl",
272480
+ value: 'showAllStaff',
272481
+ expression: "'showAllStaff'"
272482
+ }],
272483
+ staticStyle: {
272484
+ "margin-right": "8px",
272485
+ "flex-shrink": "0"
272486
+ },
272487
+ attrs: {
272488
+ "disabled": _vm.showSelectByTabs && _vm.selectByTabsActiveName !== 'byOrg',
272489
+ "size": "mini"
272490
+ },
272491
+ on: {
272492
+ "change": _vm.onShowAllStaffChange
272493
+ },
272494
+ model: {
272495
+ value: _vm.showAllStaff,
272496
+ callback: function callback($$v) {
272497
+ _vm.showAllStaff = $$v;
272498
+ },
272499
+ expression: "showAllStaff"
272500
+ }
272501
+ }, [_vm._v("显示全部")]) : _vm._e(), _c('el-input', {
272502
+ staticStyle: {
272503
+ "flex": "1"
272504
+ },
272469
272505
  attrs: {
272470
272506
  "size": "small",
272471
272507
  "placeholder": _vm.$tx('ecwapp.SelectDialog.keyWords', '请输入搜索关键字')
@@ -272495,7 +272531,7 @@ var OrgTreeDialogvue_type_template_id_47955133_scoped_true_render = function ren
272495
272531
  }
272496
272532
  },
272497
272533
  slot: "append"
272498
- })], 1)], 1)], 1) : _vm._e(), _c('div', {
272534
+ })], 1)], 1)], 1)], 1) : _vm._e(), _c('div', {
272499
272535
  staticClass: "treeNode"
272500
272536
  }, [_c('el-scrollbar', {
272501
272537
  style: {
@@ -272778,7 +272814,7 @@ var OrgTreeDialogvue_type_template_id_47955133_scoped_true_render = function ren
272778
272814
  }
272779
272815
  }, [_vm._v("确 定")])], 1)], 1) : _vm._e();
272780
272816
  };
272781
- var OrgTreeDialogvue_type_template_id_47955133_scoped_true_staticRenderFns = [];
272817
+ var OrgTreeDialogvue_type_template_id_6d54a72d_scoped_true_staticRenderFns = [];
272782
272818
 
272783
272819
  ;// 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/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=script&lang=js
272784
272820
  function OrgTreeDialogvue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return OrgTreeDialogvue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, OrgTreeDialogvue_type_script_lang_js_typeof(o); }
@@ -272898,7 +272934,12 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
272898
272934
  staffExtOldValue: '',
272899
272935
  elLevel: '',
272900
272936
  isSelf: false,
272901
- nodeKey: 'id'
272937
+ nodeKey: 'id',
272938
+ showAllStaff: true,
272939
+ // 是否显示全部人员(含isRegDept=0非编制人员)
272940
+ savedShowAllStaff: true,
272941
+ // 切换标签前保存的showAllStaff状态
272942
+ rawTreeData: null // 未经treeDataAdapter处理的原始树数据
272902
272943
  };
272903
272944
  },
272904
272945
  computed: OrgTreeDialogvue_type_script_lang_js_objectSpread({}, (0,vuex_esm/* mapGetters */.L8)(['loginUser'])),
@@ -272914,7 +272955,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
272914
272955
  openSelectDialog: function openSelectDialog(el, binding, vnode) {
272915
272956
  var _this2 = this;
272916
272957
  return OrgTreeDialogvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/OrgTreeDialogvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
272917
- var _this, searchInput, reqParams, orgCode, _orgCode, params, orgLevel, _orgCode2, _orgCode3, treeData, orgId, _orgLevel, subOrgName, orgSelf, _orgCode4, _orgCode5, _orgCode6, asyncOrgId, wfNodeUsers, _orgCode7, suborgs, root, _orgCode8, oldValue, _orgCode9, _params, _orgLevel2, listdata;
272958
+ var _this, searchInput, reqParams, _bv, orgCode, _orgCode, params, orgLevel, _orgCode2, _orgCode3, treeData, orgId, _orgLevel, subOrgName, orgSelf, _orgCode4, _orgCode5, _orgCode6, asyncOrgId, wfNodeUsers, _orgCode7, suborgs, root, _orgCode8, oldValue, _orgCode9, _params, _orgLevel2, listdata;
272918
272959
  return OrgTreeDialogvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
272919
272960
  while (1) switch (_context.prev = _context.next) {
272920
272961
  case 0:
@@ -272985,6 +273026,17 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
272985
273026
  binding.value = 'allStaff';
272986
273027
  }
272987
273028
  }
273029
+ if (_this2.$settings && _this2.$settings.selectDialogShowAllStaff === false) {
273030
+ _bv = binding.value;
273031
+ if (_bv === 'staff' || _bv === 'allStaff' || _bv === 'staffExt' || _bv === 'wfNodeUser' || _bv === 'workgroupStaff' || _bv === 'jobPositionStaff' || _bv === 'allNode' || _bv === 'curOrgNode') {
273032
+ _this2.showAllStaff = false;
273033
+ } else {
273034
+ _this2.showAllStaff = true;
273035
+ }
273036
+ } else {
273037
+ _this2.showAllStaff = true;
273038
+ }
273039
+ _this2.savedShowAllStaff = _this2.showAllStaff;
272988
273040
  _this.isSelf = el.attrs['org-self'];
272989
273041
  if (binding.value === 'allStaff' || binding.value === 'allOrg' || binding.value === 'allNode' || binding.value === 'curOrgNode') {
272990
273042
  _this2.winWidth = 798;
@@ -273422,10 +273474,14 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
273422
273474
  }
273423
273475
  if (_this.el.attrs['init-tree-data']) {
273424
273476
  listdata = _this.filterEmputyNode(_this.el.attrs['init-tree-data']);
273477
+ _this.rawTreeData = JSON.parse(JSON.stringify(listdata));
273425
273478
  _this.treeData = _this.treeDataAdapter(listdata);
273426
- _this2.showSearchInput = searchInput !== null ? searchInput : _this2.treeData.filter(function (node) {
273479
+ _this.showSearchInput = searchInput !== null ? searchInput : _this.treeData.filter(function (node) {
273427
273480
  return !node.personId;
273428
- }).length > 1 || _this2.treeData.length > 0 && _this2.treeData[0].children;
273481
+ }).length > 1 || _this.treeData.length > 0 && _this.treeData[0].children;
273482
+ if (_this.showSearchInput === false && !_this.showAllStaff && (!_this.showSelectByTabs || _this.selectByTabsActiveName === 'byOrg')) {
273483
+ _this.treeData = _this.treeDataAdapter(JSON.parse(JSON.stringify(_this.rawTreeData)));
273484
+ }
273429
273485
  _this.$nextTick(function () {
273430
273486
  _this.loading = false;
273431
273487
  });
@@ -273447,15 +273503,23 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
273447
273503
  if (res.code === 'success') {
273448
273504
  if (binding.value === 'rootorg' || binding.value === 'allNode' || binding.value === 'allOrg' || binding.value === 'allStaff' || binding.value === 'staffExt' || binding.value === 'suborgExt') {
273449
273505
  var _listdata = _this2.filterEmputyNode(res.body.listdata);
273506
+ _this.rawTreeData = JSON.parse(JSON.stringify(_listdata));
273450
273507
  _this.treeData = _this.treeDataAdapter(_listdata);
273451
- _this.showSearchInput = searchInput !== null ? searchInput : _this2.treeData.filter(function (node) {
273508
+ _this.showSearchInput = searchInput !== null ? searchInput : _this.treeData.filter(function (node) {
273452
273509
  return !node.personId;
273453
- }).length > 1 || _this2.treeData.length > 0 && _this2.treeData[0].children;
273510
+ }).length > 1 || _this.treeData.length > 0 && _this.treeData[0].children;
273511
+ if (_this.showSearchInput === false && !_this.showAllStaff && (!_this.showSelectByTabs || _this.selectByTabsActiveName === 'byOrg')) {
273512
+ _this.treeData = _this.treeDataAdapter(JSON.parse(JSON.stringify(_this.rawTreeData)));
273513
+ }
273454
273514
  } else {
273515
+ _this.rawTreeData = JSON.parse(JSON.stringify(res.body.listdata));
273455
273516
  _this.treeData = _this.treeDataAdapter(res.body.listdata, res.body.rootOrgId);
273456
- _this.showSearchInput = searchInput !== null ? searchInput : _this2.treeData.filter(function (node) {
273517
+ _this.showSearchInput = searchInput !== null ? searchInput : _this.treeData.filter(function (node) {
273457
273518
  return !node.personId;
273458
- }).length > 1 || _this2.treeData.length > 0 && _this2.treeData[0].children;
273519
+ }).length > 1 || _this.treeData.length > 0 && _this.treeData[0].children;
273520
+ if (_this.showSearchInput === false && !_this.showAllStaff && (!_this.showSelectByTabs || _this.selectByTabsActiveName === 'byOrg')) {
273521
+ _this.treeData = _this.treeDataAdapter(JSON.parse(JSON.stringify(_this.rawTreeData)));
273522
+ }
273459
273523
  }
273460
273524
  } else {
273461
273525
  _this2.$alert(res.message, {
@@ -273470,7 +273534,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
273470
273534
  });
273471
273535
  });
273472
273536
  }
273473
- case 41:
273537
+ case 43:
273474
273538
  case "end":
273475
273539
  return _context.stop();
273476
273540
  }
@@ -273536,6 +273600,15 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
273536
273600
  }
273537
273601
  var _loop = function _loop(_i) {
273538
273602
  var node = treeData[_i];
273603
+
273604
+ // 仅“按机构”标签下,未勾选“全部人员”时过滤非编制部门人员
273605
+ if (_this3.showSearchInput !== false && !_this3.showAllStaff && (!_this3.showSelectByTabs || _this3.selectByTabsActiveName === 'byOrg')) {
273606
+ if (node.personId && node.isRegDept === 0) {
273607
+ treeData.splice(_i--, 1);
273608
+ i = _i;
273609
+ return 1; // continue
273610
+ }
273611
+ }
273539
273612
  _this3.treeDataMap[node.id] = node;
273540
273613
  node.checked = false;
273541
273614
  if (node.type) node.type = node.type.replace(/\s*/g, '');
@@ -273746,7 +273819,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
273746
273819
  i = _i;
273747
273820
  };
273748
273821
  for (var i = 0; i < treeData.length; i++) {
273749
- _loop(i);
273822
+ if (_loop(i)) continue;
273750
273823
  }
273751
273824
  if (!this.lazy) {
273752
273825
  // 转换成树结构
@@ -274076,28 +274149,80 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274076
274149
  }
274077
274150
  });
274078
274151
  },
274079
- searchTreeNode: function searchTreeNode() {
274152
+ onShowAllStaffChange: function onShowAllStaffChange(val) {
274080
274153
  var _this7 = this;
274154
+ if (this.rawTreeData) {
274155
+ // 保存当前树的展开和选中状态
274156
+ // el-tree没有getExpandedKeys方法,store也没有expandedKeys属性
274157
+ // 必须遍历store.nodesMap收集expanded=true的节点key
274158
+ var expandedKeys = [];
274159
+ if (this.$refs.orgTree && this.$refs.orgTree.store) {
274160
+ var nodesMap = this.$refs.orgTree.store.nodesMap;
274161
+ for (var key in nodesMap) {
274162
+ if (nodesMap.hasOwnProperty(key) && nodesMap[key].expanded) {
274163
+ expandedKeys.push(nodesMap[key].key);
274164
+ }
274165
+ }
274166
+ }
274167
+ var checkedKeys = this.$refs.orgTree ? this.$refs.orgTree.getCheckedKeys(false) : [];
274168
+ this.treeData = this.treeDataAdapter(JSON.parse(JSON.stringify(this.rawTreeData)));
274169
+ if (this.showSelectByTabs && this.selectByTabsActiveName === 'byOrg') {
274170
+ this.byOrgTreeData = JSON.parse(JSON.stringify(this.treeData));
274171
+ }
274172
+ if (!this.lazy) {
274173
+ // 非lazy模式: data变化时el-tree通过setData更新内部节点
274174
+ this.$nextTick(function () {
274175
+ if (_this7.$refs.orgTree) {
274176
+ if (checkedKeys.length > 0) {
274177
+ _this7.$refs.orgTree.setCheckedKeys(checkedKeys, false);
274178
+ }
274179
+ if (expandedKeys.length > 0) {
274180
+ _this7.$refs.orgTree.store.setDefaultExpandedKeys(expandedKeys);
274181
+ }
274182
+ }
274183
+ });
274184
+ } else {
274185
+ // lazy模式: el-tree的:data绑定为null,修改treeData不会触发树更新
274186
+ // 设置defaultExpandedKeys,新树创建时Node构造函数会检查store.defaultExpandedKeys自动展开
274187
+ this.defaultExpandedKeys = expandedKeys;
274188
+ // 通过switchTabPanel销毁并重建树组件
274189
+ this.switchTabPanel = true;
274190
+ this.$nextTick(function () {
274191
+ _this7.switchTabPanel = false;
274192
+ _this7.$nextTick(function () {
274193
+ if (_this7.$refs.orgTree) {
274194
+ if (checkedKeys.length > 0) {
274195
+ // lazy模式通过API恢复选中状态(正确处理父子节点关联)
274196
+ _this7.lazyLoadDefaultChecked(checkedKeys);
274197
+ }
274198
+ }
274199
+ });
274200
+ });
274201
+ }
274202
+ }
274203
+ },
274204
+ searchTreeNode: function searchTreeNode() {
274205
+ var _this8 = this;
274081
274206
  this.searchDoing = false;
274082
274207
  this.searchedData = null;
274083
274208
  var _this = this;
274084
274209
  this.$nextTick(function () {
274085
- if (!_this7.lazy || !_this7.searchkey) {
274086
- if (_this7.lazy && _this7.showSelectByTabs) {
274087
- _this7.onSelectByTabsHandleClick(_this7.selectByTabsActiveName);
274210
+ if (!_this8.lazy || !_this8.searchkey) {
274211
+ if (_this8.lazy && _this8.showSelectByTabs) {
274212
+ _this8.onSelectByTabsHandleClick(_this8.selectByTabsActiveName);
274088
274213
  } else {
274089
- _this7.$refs.orgTree.filter(_this7.searchkey);
274214
+ _this8.$refs.orgTree.filter(_this8.searchkey);
274090
274215
  }
274091
274216
  } else {
274092
274217
  var searchedData = [];
274093
274218
  new Promise(function (resolve, reject) {
274094
274219
  var searchStaff = false;
274095
274220
  var searchNode = false;
274096
- if (_this7.binding.value === 'allStaff' || _this7.binding.value === 'staffExt' || _this7.binding.value === 'allNode' || _this7.binding.value === 'curOrgNode') {
274221
+ if (_this8.binding.value === 'allStaff' || _this8.binding.value === 'staffExt' || _this8.binding.value === 'allNode' || _this8.binding.value === 'curOrgNode') {
274097
274222
  var listdataUrl = 'base/organMgr/queryLinkManByPager?status=1,8';
274098
- if (_this7.binding.value === 'curOrgNode') {
274099
- var rootNode = _this7.byOrgTreeData[0];
274100
- listdataUrl += '?orgId=' + rootNode.fullID.split('-')[0];
274223
+ if (_this8.binding.value === 'curOrgNode') {
274224
+ var rootNode = _this8.byOrgTreeData[0];
274225
+ listdataUrl += '&orgId=' + rootNode.fullID.split('-')[0];
274101
274226
  }
274102
274227
  var pager = {
274103
274228
  pageNum: 1,
@@ -274105,11 +274230,11 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274105
274230
  searchMap: {}
274106
274231
  };
274107
274232
  pager.searchAndOr = 'or';
274108
- pager.searchMap['name'] = _this7.searchkey;
274109
- pager.searchMap['account'] = _this7.searchkey;
274110
- pager.searchMap['mobile'] = _this7.searchkey;
274111
- pager.searchMap['positionName'] = _this7.searchkey;
274112
- _this7.$app.listdata(listdataUrl, pager).then(function (res) {
274233
+ pager.searchMap['name'] = _this8.searchkey;
274234
+ pager.searchMap['account'] = _this8.searchkey;
274235
+ pager.searchMap['mobile'] = _this8.searchkey;
274236
+ pager.searchMap['positionName'] = _this8.searchkey;
274237
+ _this8.$app.listdata(listdataUrl, pager).then(function (res) {
274113
274238
  if (res.code === 'success') {
274114
274239
  searchedData.push.apply(searchedData, OrgTreeDialogvue_type_script_lang_js_toConsumableArray(_this.treeDataAdapter(res.body.pageInfo.list)));
274115
274240
  }
@@ -274119,21 +274244,21 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274119
274244
  } else {
274120
274245
  searchStaff = true;
274121
274246
  }
274122
- if (_this7.binding.value === 'allOrg' || _this7.binding.value === 'allNode' || _this7.binding.value === 'curOrgNode' || _this7.binding.value === 'suborgExt') {
274247
+ if (_this8.binding.value === 'allOrg' || _this8.binding.value === 'allNode' || _this8.binding.value === 'curOrgNode' || _this8.binding.value === 'suborgExt') {
274123
274248
  var reqParams = {
274124
274249
  method: 'GET',
274125
274250
  url: 'base/organMgr/findTreeNodeVOListByKeyword',
274126
274251
  params: {
274127
- keyword: _this7.searchkey
274252
+ keyword: _this8.searchkey
274128
274253
  }
274129
274254
  };
274130
- if (_this7.binding.value === 'curOrgNode') {
274131
- var _rootNode = _this7.byOrgTreeData[0];
274255
+ if (_this8.binding.value === 'curOrgNode') {
274256
+ var _rootNode = _this8.byOrgTreeData[0];
274132
274257
  reqParams.params.orgId = _rootNode.fullID.split('-')[0];
274133
274258
  }
274134
- _this7.$http(reqParams).then(function (res) {
274259
+ _this8.$http(reqParams).then(function (res) {
274135
274260
  if (res.code === 'success') {
274136
- searchedData.push.apply(searchedData, OrgTreeDialogvue_type_script_lang_js_toConsumableArray(_this7.treeDataAdapter(res.body.listdata)));
274261
+ searchedData.push.apply(searchedData, OrgTreeDialogvue_type_script_lang_js_toConsumableArray(_this8.treeDataAdapter(res.body.listdata)));
274137
274262
  }
274138
274263
  searchNode = true;
274139
274264
  if (searchStaff && searchNode) resolve(true);
@@ -274146,8 +274271,8 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274146
274271
  _this.searchDoing = true;
274147
274272
  _this.searchedData = searchedData;
274148
274273
  setTimeout(function () {
274149
- _this7.selectedNodes.forEach(function (selectedNode) {
274150
- _this7.$refs.searchOrgTree.setChecked(selectedNode, true, false);
274274
+ _this8.selectedNodes.forEach(function (selectedNode) {
274275
+ _this8.$refs.searchOrgTree.setChecked(selectedNode, true, false);
274151
274276
  });
274152
274277
  }, 100);
274153
274278
  });
@@ -274244,15 +274369,15 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274244
274369
  }
274245
274370
  },
274246
274371
  onTreeNodeExpand: function onTreeNodeExpand(data, nodeData, treeNode) {
274247
- var _this8 = this;
274372
+ var _this9 = this;
274248
274373
  if (nodeData.childNodes.length > 0) {
274249
274374
  this.selectedNodes.forEach(function (selectedNode) {
274250
- _this8.$refs.orgTree.setChecked(selectedNode, true, false);
274375
+ _this9.$refs.orgTree.setChecked(selectedNode, true, false);
274251
274376
  });
274252
274377
  }
274253
274378
  },
274254
274379
  onTreeNodeCheck: function onTreeNodeCheck(data, checked) {
274255
- var _this9 = this;
274380
+ var _this10 = this;
274256
274381
  var orgTree = this.$refs.orgTree;
274257
274382
  if (this.searchDoing) orgTree = this.$refs.searchOrgTree;
274258
274383
  if (!this.multiple || this.el.attrs['todo-mode'] === '6') {
@@ -274280,7 +274405,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274280
274405
  }
274281
274406
  }
274282
274407
  var selected = this.selectedNodes.filter(function (node) {
274283
- return node.id === data.id || data.personId && data.personId === node.personId && _this9.onlyOnePerson;
274408
+ return node.id === data.id || data.personId && data.personId === node.personId && _this10.onlyOnePerson;
274284
274409
  });
274285
274410
  if (selected.length === 0) {
274286
274411
  this.selectedNodes.push(data);
@@ -274305,12 +274430,12 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274305
274430
  break;
274306
274431
  }
274307
274432
  _context2.next = 4;
274308
- return _this9.loadNode(treeNode, resolve);
274433
+ return _this10.loadNode(treeNode, resolve);
274309
274434
  case 4:
274310
274435
  resolve(false);
274311
274436
  setTimeout(function () {
274312
- _this9.$refs.orgTree.setChecked(data, true, true);
274313
- _this9.onTreeNodeCheck(data, checked);
274437
+ _this10.$refs.orgTree.setChecked(data, true, true);
274438
+ _this10.onTreeNodeCheck(data, checked);
274314
274439
  }, 0);
274315
274440
  _context2.next = 9;
274316
274441
  break;
@@ -274327,7 +274452,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274327
274452
  };
274328
274453
  }()).then(function (res) {
274329
274454
  if (res) {
274330
- _this9.updateSelectdNodes(data, orgTree);
274455
+ _this10.updateSelectdNodes(data, orgTree);
274331
274456
  }
274332
274457
  });
274333
274458
  } else {
@@ -274336,14 +274461,14 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274336
274461
  },
274337
274462
  // 修改选中数据,右侧显示
274338
274463
  updateSelectdNodes: function updateSelectdNodes(data, orgTree) {
274339
- var _this10 = this;
274464
+ var _this11 = this;
274340
274465
  this.$nextTick(function () {
274341
- if (_this10.selectedOrderBy !== 'selectedIndex' || !data.checked) {
274342
- if (!_this10.showSelectByTabs && !_this10.searchkey && _this10.selectedOrderBy !== 'selectedIndex') {
274343
- _this10.selectedNodes = [];
274466
+ if (_this11.selectedOrderBy !== 'selectedIndex' || !data.checked) {
274467
+ if (!_this11.showSelectByTabs && !_this11.searchkey && _this11.selectedOrderBy !== 'selectedIndex') {
274468
+ _this11.selectedNodes = [];
274344
274469
  } else {
274345
274470
  var treeNode = orgTree.getNode(data.id);
274346
- if (treeNode && (!treeNode.checked || _this10.selectedOrderBy !== 'selectedIndex')) {
274471
+ if (treeNode && (!treeNode.checked || _this11.selectedOrderBy !== 'selectedIndex')) {
274347
274472
  var subOrgIds = [];
274348
274473
  if (data.isRealOrg === 0 && (data.olevel >= 2 || data.orgLevel >= 2)) {
274349
274474
  //部门分组,继续查找分组下的部门、科室
@@ -274360,19 +274485,19 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274360
274485
  });
274361
274486
  }
274362
274487
  var _loop2 = function _loop2(_i3) {
274363
- if (_this10.selectedNodes[_i3].id === data.id || _this10.selectedNodes[_i3].groupId === data.id || subOrgIds.indexOf(_this10.selectedNodes[_i3].orgId) !== -1 || subOrgIds.indexOf(_this10.selectedNodes[_i3].id) !== -1 || _this10.selectedNodes[_i3].orgFullId && _this10.selectedNodes[_i3].orgFullId.indexOf(data.id) !== -1) {
274364
- _this10.selectedNodes.splice(_i3--, 1);
274488
+ if (_this11.selectedNodes[_i3].id === data.id || _this11.selectedNodes[_i3].groupId === data.id || subOrgIds.indexOf(_this11.selectedNodes[_i3].orgId) !== -1 || subOrgIds.indexOf(_this11.selectedNodes[_i3].id) !== -1 || _this11.selectedNodes[_i3].orgFullId && _this11.selectedNodes[_i3].orgFullId.indexOf(data.id) !== -1) {
274489
+ _this11.selectedNodes.splice(_i3--, 1);
274365
274490
  } else if (data.children) {
274366
274491
  var childs = data.children.filter(function (childNode) {
274367
- return childNode.id === _this10.selectedNodes[_i3].id;
274492
+ return childNode.id === _this11.selectedNodes[_i3].id;
274368
274493
  });
274369
274494
  if (childs.length > 0) {
274370
- _this10.selectedNodes.splice(_i3--, 1);
274495
+ _this11.selectedNodes.splice(_i3--, 1);
274371
274496
  }
274372
274497
  }
274373
274498
  i = _i3;
274374
274499
  };
274375
- for (var i = 0; i < _this10.selectedNodes.length; i++) {
274500
+ for (var i = 0; i < _this11.selectedNodes.length; i++) {
274376
274501
  _loop2(i);
274377
274502
  }
274378
274503
  }
@@ -274383,7 +274508,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274383
274508
  var checkedNodes = orgTree.getCheckedNodes(leafOnly, false);
274384
274509
  checkedNodes.forEach(function (node) {
274385
274510
  var canCheck = true;
274386
- if (!_this10.searchDoing && _this10.searchkey && node.title.indexOf(_this10.searchkey) === -1) {
274511
+ if (!_this11.searchDoing && _this11.searchkey && node.title.indexOf(_this11.searchkey) === -1) {
274387
274512
  //非延迟加载模式,同一个tree通过filter展示搜索结果,getCheckedNodes包含
274388
274513
  canCheck = false;
274389
274514
  }
@@ -274391,24 +274516,24 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274391
274516
  if (!node.personId) {
274392
274517
  checkedFolderNodeKeys.push(node.id);
274393
274518
  }
274394
- var selected = _this10.selectedNodes.filter(function (data) {
274395
- return node.id === data.id || node.personId && data.personId === node.personId && _this10.onlyOnePerson;
274519
+ var selected = _this11.selectedNodes.filter(function (data) {
274520
+ return node.id === data.id || node.personId && data.personId === node.personId && _this11.onlyOnePerson;
274396
274521
  });
274397
274522
  if (selected.length === 0) {
274398
274523
  if (!node.personId && checkedFolderNodeKeys.indexOf(node.parentId) === -1) {
274399
- _this10.selectedNodes.push(node);
274524
+ _this11.selectedNodes.push(node);
274400
274525
  } else if (node.personId && checkedFolderNodeKeys.indexOf(node.orgId) === -1 && checkedFolderNodeKeys.indexOf(node.groupId) === -1) {
274401
- _this10.selectedNodes.push(node);
274526
+ _this11.selectedNodes.push(node);
274402
274527
  }
274403
274528
  } else if (data.personId && node.personId == data.personId) {
274404
274529
  if (node.id != data.id) {
274405
274530
  orgTree.setChecked(node, false, false);
274406
- var idx = _this10.selectedNodes.indexOf(node);
274531
+ var idx = _this11.selectedNodes.indexOf(node);
274407
274532
  if (idx !== -1) {
274408
- _this10.selectedNodes.splice(idx, 1);
274533
+ _this11.selectedNodes.splice(idx, 1);
274409
274534
  }
274410
274535
  } else {
274411
- _this10.selectedNodes.push(node);
274536
+ _this11.selectedNodes.push(node);
274412
274537
  }
274413
274538
  }
274414
274539
  }
@@ -274448,7 +274573,21 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274448
274573
  return flag;
274449
274574
  },
274450
274575
  onSelectByTabsHandleClick: function onSelectByTabsHandleClick(val) {
274451
- var _this11 = this;
274576
+ var _this12 = this;
274577
+ // 切换标签时管理showAllStaff状态:离开“按机构”时保存并强制全显示,回到“按机构”时还原
274578
+ if (this.$settings && this.$settings.selectDialogShowAllStaff === false) {
274579
+ if (val !== 'byOrg') {
274580
+ this.savedShowAllStaff = this.showAllStaff;
274581
+ this.showAllStaff = true;
274582
+ } else {
274583
+ var wasChanged = this.showAllStaff !== this.savedShowAllStaff;
274584
+ this.showAllStaff = this.savedShowAllStaff;
274585
+ if (wasChanged && this.byOrgTreeData && this.rawTreeData) {
274586
+ this.byOrgTreeData = this.treeDataAdapter(JSON.parse(JSON.stringify(this.rawTreeData)));
274587
+ }
274588
+ }
274589
+ }
274590
+
274452
274591
  // 机构全体人员,按机构、按岗位、按群组标签点击
274453
274592
  var _this = this;
274454
274593
  _this.treeData = [];
@@ -274482,7 +274621,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274482
274621
  }
274483
274622
  });
274484
274623
  if (orgCodes.length === 0) {
274485
- orgCode = _this11.el.attrs['root-org-code'];
274624
+ orgCode = _this12.el.attrs['root-org-code'];
274486
274625
  if (orgCode) {
274487
274626
  orgCodes.push(orgCode);
274488
274627
  }
@@ -274498,22 +274637,22 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274498
274637
  byType: val
274499
274638
  }
274500
274639
  };
274501
- _this11.$http(reqParams).then(function (res) {
274640
+ _this12.$http(reqParams).then(function (res) {
274502
274641
  if (res.code === 'success') {
274503
274642
  var listdata = [];
274504
274643
  if (val === 'byWorkgroup' || val === 'byJobPosition') {
274505
274644
  var _listdata2;
274506
274645
  if (orgCodes.length > 1) {
274507
- listdata = JSON.parse(JSON.stringify(_this11.byOrgTreeData)); //按机构目录分层次展示工作群组、工作岗位
274646
+ listdata = JSON.parse(JSON.stringify(_this12.byOrgTreeData)); //按机构目录分层次展示工作群组、工作岗位
274508
274647
  }
274509
274648
  (_listdata2 = listdata).push.apply(_listdata2, OrgTreeDialogvue_type_script_lang_js_toConsumableArray(res.body.listdata));
274510
274649
  } else {
274511
274650
  listdata = res.body.listdata;
274512
274651
  }
274513
- treeData = _this11.treeDataAdapter(listdata);
274652
+ treeData = _this12.treeDataAdapter(listdata);
274514
274653
  resolve(true);
274515
274654
  } else {
274516
- _this11.$alert(res.message, {
274655
+ _this12.$alert(res.message, {
274517
274656
  type: 'error'
274518
274657
  });
274519
274658
  resolve(false);
@@ -274533,24 +274672,24 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274533
274672
  };
274534
274673
  }()).then(function (res) {
274535
274674
  if (res) {
274536
- if (_this11.showSelectByTabs && _this11.selectedNodes.length > 0) {
274675
+ if (_this12.showSelectByTabs && _this12.selectedNodes.length > 0) {
274537
274676
  var pSelected = '';
274538
- _this11.selectedNodes.forEach(function (item) {
274677
+ _this12.selectedNodes.forEach(function (item) {
274539
274678
  if (pSelected !== '') pSelected += ',';
274540
274679
  pSelected += item.id;
274541
274680
  });
274542
274681
  if (pSelected !== '') {
274543
274682
  if (_this.lazy) {
274544
- _this11.lazyLoadDefaultChecked(pSelected.split(','));
274683
+ _this12.lazyLoadDefaultChecked(pSelected.split(','));
274545
274684
  } else {
274546
274685
  var pSelectFun = function pSelectFun(treeData) {
274547
274686
  treeData.forEach(function (item) {
274548
274687
  if (pSelected.indexOf(item.id) !== -1) {
274549
- var selected = _this11.selectedNodes.filter(function (data) {
274688
+ var selected = _this12.selectedNodes.filter(function (data) {
274550
274689
  return item.id === data.id || item.personId && data.personId === item.personId;
274551
274690
  });
274552
274691
  if (selected.length === 0) {
274553
- _this11.selectedNodes.push(item);
274692
+ _this12.selectedNodes.push(item);
274554
274693
  }
274555
274694
  item.checked = true;
274556
274695
  }
@@ -274582,21 +274721,21 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274582
274721
  },
274583
274722
  // 添加常用组
274584
274723
  addForm: function addForm() {
274585
- var _this12 = this;
274724
+ var _this13 = this;
274586
274725
  if (this.commonGroupName) {
274587
274726
  this.$confirm('是否确认添加常用组?', this.$tx('common.confirmOperate', '确认操作'), {
274588
274727
  type: 'warning'
274589
274728
  }).then(function () {
274590
- _this12.$app.addNew('base/workGroup/addNew').then(function (res1) {
274729
+ _this13.$app.addNew('base/workGroup/addNew').then(function (res1) {
274591
274730
  var vo = res1.body.vo;
274592
- vo.groupType = _this12.binding.value !== 'suborg' ? 1 : 2;
274593
- vo.creator = _this12.loginUser.personName;
274594
- vo.creatorPersonId = _this12.loginUser.personId;
274595
- vo.orgCode = _this12.loginUser.orgCode;
274596
- vo.orgName = _this12.loginUser.orgName;
274597
- vo.name = _this12.commonGroupName;
274731
+ vo.groupType = _this13.binding.value !== 'suborg' ? 1 : 2;
274732
+ vo.creator = _this13.loginUser.personName;
274733
+ vo.creatorPersonId = _this13.loginUser.personId;
274734
+ vo.orgCode = _this13.loginUser.orgCode;
274735
+ vo.orgName = _this13.loginUser.orgName;
274736
+ vo.name = _this13.commonGroupName;
274598
274737
  var selected = '';
274599
- _this12.selectedNodes.forEach(function (item) {
274738
+ _this13.selectedNodes.forEach(function (item) {
274600
274739
  if (item.personId) {
274601
274740
  selected += item.orgFullName.substring(item.orgFullName.indexOf('-') + 1).replace('-', '\\') + item.name + '/' + item.account + '\r\n';
274602
274741
  } else {
@@ -274606,16 +274745,16 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274606
274745
  vo.members = selected;
274607
274746
  vo.status = 1;
274608
274747
  vo.orderNo = '1000';
274609
- vo.passenger.members = _this12.selectedNodes;
274610
- _this12.$app.insert('base/workGroup/insert', vo).then(function (resp) {
274748
+ vo.passenger.members = _this13.selectedNodes;
274749
+ _this13.$app.insert('base/workGroup/insert', vo).then(function (resp) {
274611
274750
  if (resp.code === 'success') {
274612
- _this12.$message.success(resp.message);
274613
- _this12.addFormVisible = false;
274614
- _this12.commonGroupName = '';
274615
- _this12.byPrivateWorkgroupData = null;
274616
- if (_this12.selectByTabsActiveName === 'byPrivateWorkgroup') _this12.onSelectByTabsHandleClick(_this12.selectByTabsActiveName);
274751
+ _this13.$message.success(resp.message);
274752
+ _this13.addFormVisible = false;
274753
+ _this13.commonGroupName = '';
274754
+ _this13.byPrivateWorkgroupData = null;
274755
+ if (_this13.selectByTabsActiveName === 'byPrivateWorkgroup') _this13.onSelectByTabsHandleClick(_this13.selectByTabsActiveName);
274617
274756
  } else {
274618
- _this12.$alert(resp.message, _this12.$tx('common.operationTip', '操作提示'), {
274757
+ _this13.$alert(resp.message, _this13.$tx('common.operationTip', '操作提示'), {
274619
274758
  type: 'error'
274620
274759
  });
274621
274760
  }
@@ -274697,7 +274836,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274697
274836
  }());
274698
274837
  },
274699
274838
  submitForm: function submitForm() {
274700
- var _this13 = this;
274839
+ var _this14 = this;
274701
274840
  var _this = this;
274702
274841
  var model = this.vnode.data.model.expression.split('.');
274703
274842
  new Promise(function (resolve, reject) {
@@ -274784,46 +274923,46 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274784
274923
  selectedNames += node.name;
274785
274924
  selectedIds += node.id;
274786
274925
  });
274787
- if (model[0] === 'formItem' && _this13.vnode.context['valueChange'] !== undefined) {
274788
- _this13.vnode.context['valueChange'](selectedNames);
274926
+ if (model[0] === 'formItem' && _this14.vnode.context['valueChange'] !== undefined) {
274927
+ _this14.vnode.context['valueChange'](selectedNames);
274789
274928
  }
274790
- if (_this13.vnode.context[model[0]]) {
274929
+ if (_this14.vnode.context[model[0]]) {
274791
274930
  if (model.length === 2) {
274792
- _this13.vnode.context.$set(_this13.vnode.context[model[0]], model[1], selectedNames);
274931
+ _this14.vnode.context.$set(_this14.vnode.context[model[0]], model[1], selectedNames);
274793
274932
  } else {
274794
- _this13.vnode.context.$set(_this13.vnode.context, model[0], selectedNames);
274933
+ _this14.vnode.context.$set(_this14.vnode.context, model[0], selectedNames);
274795
274934
  }
274796
274935
  }
274797
- if (_this13.vnode.data.attrs['value-ids-field']) {
274798
- idModel = _this13.vnode.data.attrs['value-ids-field'].split('.');
274936
+ if (_this14.vnode.data.attrs['value-ids-field']) {
274937
+ idModel = _this14.vnode.data.attrs['value-ids-field'].split('.');
274799
274938
  if (idModel.length === 1) {
274800
274939
  idModel = ['vo', idModel[0]];
274801
274940
  }
274802
- if (_this13.vnode.context[idModel[0]]) {
274941
+ if (_this14.vnode.context[idModel[0]]) {
274803
274942
  if (idModel.length === 2) {
274804
- _this13.vnode.context[idModel[0]][idModel[1]] = selectedIds;
274943
+ _this14.vnode.context[idModel[0]][idModel[1]] = selectedIds;
274805
274944
  } else if (idModel.length === 3) {
274806
- _this13.vnode.context[idModel[0]][idModel[1]][idModel[2]] = selectedIds;
274945
+ _this14.vnode.context[idModel[0]][idModel[1]][idModel[2]] = selectedIds;
274807
274946
  } else {
274808
- _this13.vnode.context[idModel[0]] = selectedIds;
274947
+ _this14.vnode.context[idModel[0]] = selectedIds;
274809
274948
  }
274810
274949
  }
274811
274950
  }
274812
274951
  case 28:
274813
- if (_this13.vnode.context[model[0]]) {
274952
+ if (_this14.vnode.context[model[0]]) {
274814
274953
  if (model.length === 2) {
274815
- _this13.vnode.data.model.value = _this13.vnode.context[model[0]][model[1]] || '';
274954
+ _this14.vnode.data.model.value = _this14.vnode.context[model[0]][model[1]] || '';
274816
274955
  } else if (model.length === 3) {
274817
- _this13.vnode.data.model.value = _this13.vnode.context[model[0]][model[1]][model[1]] || '';
274956
+ _this14.vnode.data.model.value = _this14.vnode.context[model[0]][model[1]][model[1]] || '';
274818
274957
  } else {
274819
- _this13.vnode.data.model.value = _this13.vnode.context[model[0]] || '';
274958
+ _this14.vnode.data.model.value = _this14.vnode.context[model[0]] || '';
274820
274959
  }
274821
- if (model[0] === 'formItem' && _this13.vnode.context['valueChange'] !== undefined) {
274822
- _this13.vnode.context['valueChange'](_this13.vnode.data.model.value);
274960
+ if (model[0] === 'formItem' && _this14.vnode.context['valueChange'] !== undefined) {
274961
+ _this14.vnode.context['valueChange'](_this14.vnode.data.model.value);
274823
274962
  }
274824
274963
  }
274825
- _this13.vnode.context.$forceUpdate();
274826
- _this13.closeDialog();
274964
+ _this14.vnode.context.$forceUpdate();
274965
+ _this14.closeDialog();
274827
274966
  case 31:
274828
274967
  case "end":
274829
274968
  return _context7.stop();
@@ -274844,6 +274983,9 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274844
274983
  this.vnode = null;
274845
274984
  this.dialogName = null;
274846
274985
  this.treeData = null;
274986
+ this.rawTreeData = null;
274987
+ this.showAllStaff = true;
274988
+ this.savedShowAllStaff = true;
274847
274989
  this.selectedNodes = [];
274848
274990
  this.rootTreeData = null;
274849
274991
  this.selectRootOrg = '';
@@ -274858,13 +275000,13 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
274858
275000
  });
274859
275001
  ;// CONCATENATED MODULE: ./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=script&lang=js
274860
275002
  /* harmony default export */ var src_OrgTreeDialogvue_type_script_lang_js = (OrgTreeDialogvue_type_script_lang_js);
274861
- // 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/SelectDialog/src/OrgTreeDialog.vue?vue&type=style&index=0&id=47955133&prod&scoped=true&lang=scss
274862
- var OrgTreeDialogvue_type_style_index_0_id_47955133_prod_scoped_true_lang_scss = __webpack_require__(63052);
274863
- ;// CONCATENATED MODULE: ./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=style&index=0&id=47955133&prod&scoped=true&lang=scss
275003
+ // 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/SelectDialog/src/OrgTreeDialog.vue?vue&type=style&index=0&id=6d54a72d&prod&scoped=true&lang=scss
275004
+ var OrgTreeDialogvue_type_style_index_0_id_6d54a72d_prod_scoped_true_lang_scss = __webpack_require__(58514);
275005
+ ;// CONCATENATED MODULE: ./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=style&index=0&id=6d54a72d&prod&scoped=true&lang=scss
274864
275006
 
274865
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=style&index=1&id=47955133&prod&lang=css
274866
- var OrgTreeDialogvue_type_style_index_1_id_47955133_prod_lang_css = __webpack_require__(36996);
274867
- ;// CONCATENATED MODULE: ./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=style&index=1&id=47955133&prod&lang=css
275007
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=style&index=1&id=6d54a72d&prod&lang=css
275008
+ var OrgTreeDialogvue_type_style_index_1_id_6d54a72d_prod_lang_css = __webpack_require__(12030);
275009
+ ;// CONCATENATED MODULE: ./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=style&index=1&id=6d54a72d&prod&lang=css
274868
275010
 
274869
275011
  ;// CONCATENATED MODULE: ./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue
274870
275012
 
@@ -274878,11 +275020,11 @@ var OrgTreeDialogvue_type_style_index_1_id_47955133_prod_lang_css = __webpack_re
274878
275020
 
274879
275021
  var OrgTreeDialog_component = (0,componentNormalizer/* default */.A)(
274880
275022
  src_OrgTreeDialogvue_type_script_lang_js,
274881
- OrgTreeDialogvue_type_template_id_47955133_scoped_true_render,
274882
- OrgTreeDialogvue_type_template_id_47955133_scoped_true_staticRenderFns,
275023
+ OrgTreeDialogvue_type_template_id_6d54a72d_scoped_true_render,
275024
+ OrgTreeDialogvue_type_template_id_6d54a72d_scoped_true_staticRenderFns,
274883
275025
  false,
274884
275026
  null,
274885
- "47955133",
275027
+ "6d54a72d",
274886
275028
  null
274887
275029
 
274888
275030
  )