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.
- package/lib/ecwappaio.common.js +271 -129
- package/lib/ecwappaio.umd.js +271 -129
- package/lib/ecwappaio.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecwappaio.umd.js
CHANGED
|
@@ -51178,6 +51178,7 @@ module.exports = {
|
|
|
51178
51178
|
byPosition: 'By Position',
|
|
51179
51179
|
byGroup: 'By Group',
|
|
51180
51180
|
byCommonGroup: 'By Common Group',
|
|
51181
|
+
howAllStaff: 'Show All',
|
|
51181
51182
|
keyWords: 'Please enter search keywords',
|
|
51182
51183
|
searching: 'Searching for...',
|
|
51183
51184
|
selected: 'Selected ({dataType})',
|
|
@@ -51718,6 +51719,7 @@ module.exports = {
|
|
|
51718
51719
|
byPosition: '按岗位',
|
|
51719
51720
|
byGroup: '按群组',
|
|
51720
51721
|
byCommonGroup: '按常用组',
|
|
51722
|
+
showAllStaff: '显示全部',
|
|
51721
51723
|
keyWords: '请输入搜索关键字',
|
|
51722
51724
|
searching: '正在搜索...',
|
|
51723
51725
|
selected: '已选择({dataType})',
|
|
@@ -166261,7 +166263,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".bottom-bar .el-pager{position:relativ
|
|
|
166261
166263
|
|
|
166262
166264
|
/***/ }),
|
|
166263
166265
|
|
|
166264
|
-
/***/
|
|
166266
|
+
/***/ 87326:
|
|
166265
166267
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
166266
166268
|
|
|
166267
166269
|
"use strict";
|
|
@@ -167001,7 +167003,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-c3f75196]:export{stdMenuBgcolo
|
|
|
167001
167003
|
|
|
167002
167004
|
/***/ }),
|
|
167003
167005
|
|
|
167004
|
-
/***/
|
|
167006
|
+
/***/ 26422:
|
|
167005
167007
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
167006
167008
|
|
|
167007
167009
|
"use strict";
|
|
@@ -167015,7 +167017,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167015
167017
|
|
|
167016
167018
|
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()));
|
|
167017
167019
|
// Module
|
|
167018
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".search-input-container[data-v-
|
|
167020
|
+
___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%}", ""]);
|
|
167019
167021
|
// Exports
|
|
167020
167022
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
167021
167023
|
|
|
@@ -252915,19 +252917,19 @@ var update = add("81d56930", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
252915
252917
|
|
|
252916
252918
|
/***/ }),
|
|
252917
252919
|
|
|
252918
|
-
/***/
|
|
252920
|
+
/***/ 80542:
|
|
252919
252921
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
252920
252922
|
|
|
252921
252923
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
252922
252924
|
|
|
252923
252925
|
// load the styles
|
|
252924
|
-
var content = __webpack_require__(
|
|
252926
|
+
var content = __webpack_require__(87326);
|
|
252925
252927
|
if(content.__esModule) content = content.default;
|
|
252926
252928
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
252927
252929
|
if(content.locals) module.exports = content.locals;
|
|
252928
252930
|
// add the styles to the DOM
|
|
252929
252931
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
252930
|
-
var update = add("
|
|
252932
|
+
var update = add("4f1dbf28", content, true, {"sourceMap":false,"shadowMode":false});
|
|
252931
252933
|
|
|
252932
252934
|
/***/ }),
|
|
252933
252935
|
|
|
@@ -253475,19 +253477,19 @@ var update = add("75feb898", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
253475
253477
|
|
|
253476
253478
|
/***/ }),
|
|
253477
253479
|
|
|
253478
|
-
/***/
|
|
253480
|
+
/***/ 37093:
|
|
253479
253481
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
253480
253482
|
|
|
253481
253483
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
253482
253484
|
|
|
253483
253485
|
// load the styles
|
|
253484
|
-
var content = __webpack_require__(
|
|
253486
|
+
var content = __webpack_require__(26422);
|
|
253485
253487
|
if(content.__esModule) content = content.default;
|
|
253486
253488
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
253487
253489
|
if(content.locals) module.exports = content.locals;
|
|
253488
253490
|
// add the styles to the DOM
|
|
253489
253491
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
253490
|
-
var update = add("
|
|
253492
|
+
var update = add("0a8d1e89", content, true, {"sourceMap":false,"shadowMode":false});
|
|
253491
253493
|
|
|
253492
253494
|
/***/ }),
|
|
253493
253495
|
|
|
@@ -272334,8 +272336,8 @@ var srcvue_type_template_id_769ae4fb_render = function render() {
|
|
|
272334
272336
|
};
|
|
272335
272337
|
var srcvue_type_template_id_769ae4fb_staticRenderFns = [];
|
|
272336
272338
|
|
|
272337
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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=
|
|
272338
|
-
var
|
|
272339
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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
|
|
272340
|
+
var OrgTreeDialogvue_type_template_id_6d54a72d_scoped_true_render = function render() {
|
|
272339
272341
|
var _vm = this,
|
|
272340
272342
|
_c = _vm._self._c;
|
|
272341
272343
|
return _vm.dialogFormVisible ? _c('el-dialog', {
|
|
@@ -272483,7 +272485,41 @@ var OrgTreeDialogvue_type_template_id_47955133_scoped_true_render = function ren
|
|
|
272483
272485
|
attrs: {
|
|
272484
272486
|
"label": "byPrivateOrggroup"
|
|
272485
272487
|
}
|
|
272486
|
-
}, [_vm._v("按常用组")])], 1) : _vm._e(), _c('
|
|
272488
|
+
}, [_vm._v("按常用组")])], 1) : _vm._e(), _c('div', {
|
|
272489
|
+
staticStyle: {
|
|
272490
|
+
"display": "flex",
|
|
272491
|
+
"align-items": "center",
|
|
272492
|
+
"margin-bottom": "4px"
|
|
272493
|
+
}
|
|
272494
|
+
}, [!(_vm.$settings && _vm.$settings.selectDialogShowAllStaff !== false) ? _c('el-checkbox', {
|
|
272495
|
+
directives: [{
|
|
272496
|
+
name: "text-lbl",
|
|
272497
|
+
rawName: "v-text-lbl",
|
|
272498
|
+
value: 'showAllStaff',
|
|
272499
|
+
expression: "'showAllStaff'"
|
|
272500
|
+
}],
|
|
272501
|
+
staticStyle: {
|
|
272502
|
+
"margin-right": "8px",
|
|
272503
|
+
"flex-shrink": "0"
|
|
272504
|
+
},
|
|
272505
|
+
attrs: {
|
|
272506
|
+
"disabled": _vm.showSelectByTabs && _vm.selectByTabsActiveName !== 'byOrg',
|
|
272507
|
+
"size": "mini"
|
|
272508
|
+
},
|
|
272509
|
+
on: {
|
|
272510
|
+
"change": _vm.onShowAllStaffChange
|
|
272511
|
+
},
|
|
272512
|
+
model: {
|
|
272513
|
+
value: _vm.showAllStaff,
|
|
272514
|
+
callback: function callback($$v) {
|
|
272515
|
+
_vm.showAllStaff = $$v;
|
|
272516
|
+
},
|
|
272517
|
+
expression: "showAllStaff"
|
|
272518
|
+
}
|
|
272519
|
+
}, [_vm._v("显示全部")]) : _vm._e(), _c('el-input', {
|
|
272520
|
+
staticStyle: {
|
|
272521
|
+
"flex": "1"
|
|
272522
|
+
},
|
|
272487
272523
|
attrs: {
|
|
272488
272524
|
"size": "small",
|
|
272489
272525
|
"placeholder": _vm.$tx('ecwapp.SelectDialog.keyWords', '请输入搜索关键字')
|
|
@@ -272513,7 +272549,7 @@ var OrgTreeDialogvue_type_template_id_47955133_scoped_true_render = function ren
|
|
|
272513
272549
|
}
|
|
272514
272550
|
},
|
|
272515
272551
|
slot: "append"
|
|
272516
|
-
})], 1)], 1)], 1) : _vm._e(), _c('div', {
|
|
272552
|
+
})], 1)], 1)], 1)], 1) : _vm._e(), _c('div', {
|
|
272517
272553
|
staticClass: "treeNode"
|
|
272518
272554
|
}, [_c('el-scrollbar', {
|
|
272519
272555
|
style: {
|
|
@@ -272796,7 +272832,7 @@ var OrgTreeDialogvue_type_template_id_47955133_scoped_true_render = function ren
|
|
|
272796
272832
|
}
|
|
272797
272833
|
}, [_vm._v("确 定")])], 1)], 1) : _vm._e();
|
|
272798
272834
|
};
|
|
272799
|
-
var
|
|
272835
|
+
var OrgTreeDialogvue_type_template_id_6d54a72d_scoped_true_staticRenderFns = [];
|
|
272800
272836
|
|
|
272801
272837
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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
|
|
272802
272838
|
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); }
|
|
@@ -272916,7 +272952,12 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
272916
272952
|
staffExtOldValue: '',
|
|
272917
272953
|
elLevel: '',
|
|
272918
272954
|
isSelf: false,
|
|
272919
|
-
nodeKey: 'id'
|
|
272955
|
+
nodeKey: 'id',
|
|
272956
|
+
showAllStaff: true,
|
|
272957
|
+
// 是否显示全部人员(含isRegDept=0非编制人员)
|
|
272958
|
+
savedShowAllStaff: true,
|
|
272959
|
+
// 切换标签前保存的showAllStaff状态
|
|
272960
|
+
rawTreeData: null // 未经treeDataAdapter处理的原始树数据
|
|
272920
272961
|
};
|
|
272921
272962
|
},
|
|
272922
272963
|
computed: OrgTreeDialogvue_type_script_lang_js_objectSpread({}, (0,vuex_esm/* mapGetters */.L8)(['loginUser'])),
|
|
@@ -272932,7 +272973,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
272932
272973
|
openSelectDialog: function openSelectDialog(el, binding, vnode) {
|
|
272933
272974
|
var _this2 = this;
|
|
272934
272975
|
return OrgTreeDialogvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/OrgTreeDialogvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
|
|
272935
|
-
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;
|
|
272976
|
+
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;
|
|
272936
272977
|
return OrgTreeDialogvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
272937
272978
|
while (1) switch (_context.prev = _context.next) {
|
|
272938
272979
|
case 0:
|
|
@@ -273003,6 +273044,17 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
273003
273044
|
binding.value = 'allStaff';
|
|
273004
273045
|
}
|
|
273005
273046
|
}
|
|
273047
|
+
if (_this2.$settings && _this2.$settings.selectDialogShowAllStaff === false) {
|
|
273048
|
+
_bv = binding.value;
|
|
273049
|
+
if (_bv === 'staff' || _bv === 'allStaff' || _bv === 'staffExt' || _bv === 'wfNodeUser' || _bv === 'workgroupStaff' || _bv === 'jobPositionStaff' || _bv === 'allNode' || _bv === 'curOrgNode') {
|
|
273050
|
+
_this2.showAllStaff = false;
|
|
273051
|
+
} else {
|
|
273052
|
+
_this2.showAllStaff = true;
|
|
273053
|
+
}
|
|
273054
|
+
} else {
|
|
273055
|
+
_this2.showAllStaff = true;
|
|
273056
|
+
}
|
|
273057
|
+
_this2.savedShowAllStaff = _this2.showAllStaff;
|
|
273006
273058
|
_this.isSelf = el.attrs['org-self'];
|
|
273007
273059
|
if (binding.value === 'allStaff' || binding.value === 'allOrg' || binding.value === 'allNode' || binding.value === 'curOrgNode') {
|
|
273008
273060
|
_this2.winWidth = 798;
|
|
@@ -273440,10 +273492,14 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
273440
273492
|
}
|
|
273441
273493
|
if (_this.el.attrs['init-tree-data']) {
|
|
273442
273494
|
listdata = _this.filterEmputyNode(_this.el.attrs['init-tree-data']);
|
|
273495
|
+
_this.rawTreeData = JSON.parse(JSON.stringify(listdata));
|
|
273443
273496
|
_this.treeData = _this.treeDataAdapter(listdata);
|
|
273444
|
-
|
|
273497
|
+
_this.showSearchInput = searchInput !== null ? searchInput : _this.treeData.filter(function (node) {
|
|
273445
273498
|
return !node.personId;
|
|
273446
|
-
}).length > 1 ||
|
|
273499
|
+
}).length > 1 || _this.treeData.length > 0 && _this.treeData[0].children;
|
|
273500
|
+
if (_this.showSearchInput === false && !_this.showAllStaff && (!_this.showSelectByTabs || _this.selectByTabsActiveName === 'byOrg')) {
|
|
273501
|
+
_this.treeData = _this.treeDataAdapter(JSON.parse(JSON.stringify(_this.rawTreeData)));
|
|
273502
|
+
}
|
|
273447
273503
|
_this.$nextTick(function () {
|
|
273448
273504
|
_this.loading = false;
|
|
273449
273505
|
});
|
|
@@ -273465,15 +273521,23 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
273465
273521
|
if (res.code === 'success') {
|
|
273466
273522
|
if (binding.value === 'rootorg' || binding.value === 'allNode' || binding.value === 'allOrg' || binding.value === 'allStaff' || binding.value === 'staffExt' || binding.value === 'suborgExt') {
|
|
273467
273523
|
var _listdata = _this2.filterEmputyNode(res.body.listdata);
|
|
273524
|
+
_this.rawTreeData = JSON.parse(JSON.stringify(_listdata));
|
|
273468
273525
|
_this.treeData = _this.treeDataAdapter(_listdata);
|
|
273469
|
-
_this.showSearchInput = searchInput !== null ? searchInput :
|
|
273526
|
+
_this.showSearchInput = searchInput !== null ? searchInput : _this.treeData.filter(function (node) {
|
|
273470
273527
|
return !node.personId;
|
|
273471
|
-
}).length > 1 ||
|
|
273528
|
+
}).length > 1 || _this.treeData.length > 0 && _this.treeData[0].children;
|
|
273529
|
+
if (_this.showSearchInput === false && !_this.showAllStaff && (!_this.showSelectByTabs || _this.selectByTabsActiveName === 'byOrg')) {
|
|
273530
|
+
_this.treeData = _this.treeDataAdapter(JSON.parse(JSON.stringify(_this.rawTreeData)));
|
|
273531
|
+
}
|
|
273472
273532
|
} else {
|
|
273533
|
+
_this.rawTreeData = JSON.parse(JSON.stringify(res.body.listdata));
|
|
273473
273534
|
_this.treeData = _this.treeDataAdapter(res.body.listdata, res.body.rootOrgId);
|
|
273474
|
-
_this.showSearchInput = searchInput !== null ? searchInput :
|
|
273535
|
+
_this.showSearchInput = searchInput !== null ? searchInput : _this.treeData.filter(function (node) {
|
|
273475
273536
|
return !node.personId;
|
|
273476
|
-
}).length > 1 ||
|
|
273537
|
+
}).length > 1 || _this.treeData.length > 0 && _this.treeData[0].children;
|
|
273538
|
+
if (_this.showSearchInput === false && !_this.showAllStaff && (!_this.showSelectByTabs || _this.selectByTabsActiveName === 'byOrg')) {
|
|
273539
|
+
_this.treeData = _this.treeDataAdapter(JSON.parse(JSON.stringify(_this.rawTreeData)));
|
|
273540
|
+
}
|
|
273477
273541
|
}
|
|
273478
273542
|
} else {
|
|
273479
273543
|
_this2.$alert(res.message, {
|
|
@@ -273488,7 +273552,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
273488
273552
|
});
|
|
273489
273553
|
});
|
|
273490
273554
|
}
|
|
273491
|
-
case
|
|
273555
|
+
case 43:
|
|
273492
273556
|
case "end":
|
|
273493
273557
|
return _context.stop();
|
|
273494
273558
|
}
|
|
@@ -273554,6 +273618,15 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
273554
273618
|
}
|
|
273555
273619
|
var _loop = function _loop(_i) {
|
|
273556
273620
|
var node = treeData[_i];
|
|
273621
|
+
|
|
273622
|
+
// 仅“按机构”标签下,未勾选“全部人员”时过滤非编制部门人员
|
|
273623
|
+
if (_this3.showSearchInput !== false && !_this3.showAllStaff && (!_this3.showSelectByTabs || _this3.selectByTabsActiveName === 'byOrg')) {
|
|
273624
|
+
if (node.personId && node.isRegDept === 0) {
|
|
273625
|
+
treeData.splice(_i--, 1);
|
|
273626
|
+
i = _i;
|
|
273627
|
+
return 1; // continue
|
|
273628
|
+
}
|
|
273629
|
+
}
|
|
273557
273630
|
_this3.treeDataMap[node.id] = node;
|
|
273558
273631
|
node.checked = false;
|
|
273559
273632
|
if (node.type) node.type = node.type.replace(/\s*/g, '');
|
|
@@ -273764,7 +273837,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
273764
273837
|
i = _i;
|
|
273765
273838
|
};
|
|
273766
273839
|
for (var i = 0; i < treeData.length; i++) {
|
|
273767
|
-
_loop(i);
|
|
273840
|
+
if (_loop(i)) continue;
|
|
273768
273841
|
}
|
|
273769
273842
|
if (!this.lazy) {
|
|
273770
273843
|
// 转换成树结构
|
|
@@ -274094,28 +274167,80 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274094
274167
|
}
|
|
274095
274168
|
});
|
|
274096
274169
|
},
|
|
274097
|
-
|
|
274170
|
+
onShowAllStaffChange: function onShowAllStaffChange(val) {
|
|
274098
274171
|
var _this7 = this;
|
|
274172
|
+
if (this.rawTreeData) {
|
|
274173
|
+
// 保存当前树的展开和选中状态
|
|
274174
|
+
// el-tree没有getExpandedKeys方法,store也没有expandedKeys属性
|
|
274175
|
+
// 必须遍历store.nodesMap收集expanded=true的节点key
|
|
274176
|
+
var expandedKeys = [];
|
|
274177
|
+
if (this.$refs.orgTree && this.$refs.orgTree.store) {
|
|
274178
|
+
var nodesMap = this.$refs.orgTree.store.nodesMap;
|
|
274179
|
+
for (var key in nodesMap) {
|
|
274180
|
+
if (nodesMap.hasOwnProperty(key) && nodesMap[key].expanded) {
|
|
274181
|
+
expandedKeys.push(nodesMap[key].key);
|
|
274182
|
+
}
|
|
274183
|
+
}
|
|
274184
|
+
}
|
|
274185
|
+
var checkedKeys = this.$refs.orgTree ? this.$refs.orgTree.getCheckedKeys(false) : [];
|
|
274186
|
+
this.treeData = this.treeDataAdapter(JSON.parse(JSON.stringify(this.rawTreeData)));
|
|
274187
|
+
if (this.showSelectByTabs && this.selectByTabsActiveName === 'byOrg') {
|
|
274188
|
+
this.byOrgTreeData = JSON.parse(JSON.stringify(this.treeData));
|
|
274189
|
+
}
|
|
274190
|
+
if (!this.lazy) {
|
|
274191
|
+
// 非lazy模式: data变化时el-tree通过setData更新内部节点
|
|
274192
|
+
this.$nextTick(function () {
|
|
274193
|
+
if (_this7.$refs.orgTree) {
|
|
274194
|
+
if (checkedKeys.length > 0) {
|
|
274195
|
+
_this7.$refs.orgTree.setCheckedKeys(checkedKeys, false);
|
|
274196
|
+
}
|
|
274197
|
+
if (expandedKeys.length > 0) {
|
|
274198
|
+
_this7.$refs.orgTree.store.setDefaultExpandedKeys(expandedKeys);
|
|
274199
|
+
}
|
|
274200
|
+
}
|
|
274201
|
+
});
|
|
274202
|
+
} else {
|
|
274203
|
+
// lazy模式: el-tree的:data绑定为null,修改treeData不会触发树更新
|
|
274204
|
+
// 设置defaultExpandedKeys,新树创建时Node构造函数会检查store.defaultExpandedKeys自动展开
|
|
274205
|
+
this.defaultExpandedKeys = expandedKeys;
|
|
274206
|
+
// 通过switchTabPanel销毁并重建树组件
|
|
274207
|
+
this.switchTabPanel = true;
|
|
274208
|
+
this.$nextTick(function () {
|
|
274209
|
+
_this7.switchTabPanel = false;
|
|
274210
|
+
_this7.$nextTick(function () {
|
|
274211
|
+
if (_this7.$refs.orgTree) {
|
|
274212
|
+
if (checkedKeys.length > 0) {
|
|
274213
|
+
// lazy模式通过API恢复选中状态(正确处理父子节点关联)
|
|
274214
|
+
_this7.lazyLoadDefaultChecked(checkedKeys);
|
|
274215
|
+
}
|
|
274216
|
+
}
|
|
274217
|
+
});
|
|
274218
|
+
});
|
|
274219
|
+
}
|
|
274220
|
+
}
|
|
274221
|
+
},
|
|
274222
|
+
searchTreeNode: function searchTreeNode() {
|
|
274223
|
+
var _this8 = this;
|
|
274099
274224
|
this.searchDoing = false;
|
|
274100
274225
|
this.searchedData = null;
|
|
274101
274226
|
var _this = this;
|
|
274102
274227
|
this.$nextTick(function () {
|
|
274103
|
-
if (!
|
|
274104
|
-
if (
|
|
274105
|
-
|
|
274228
|
+
if (!_this8.lazy || !_this8.searchkey) {
|
|
274229
|
+
if (_this8.lazy && _this8.showSelectByTabs) {
|
|
274230
|
+
_this8.onSelectByTabsHandleClick(_this8.selectByTabsActiveName);
|
|
274106
274231
|
} else {
|
|
274107
|
-
|
|
274232
|
+
_this8.$refs.orgTree.filter(_this8.searchkey);
|
|
274108
274233
|
}
|
|
274109
274234
|
} else {
|
|
274110
274235
|
var searchedData = [];
|
|
274111
274236
|
new Promise(function (resolve, reject) {
|
|
274112
274237
|
var searchStaff = false;
|
|
274113
274238
|
var searchNode = false;
|
|
274114
|
-
if (
|
|
274239
|
+
if (_this8.binding.value === 'allStaff' || _this8.binding.value === 'staffExt' || _this8.binding.value === 'allNode' || _this8.binding.value === 'curOrgNode') {
|
|
274115
274240
|
var listdataUrl = 'base/organMgr/queryLinkManByPager?status=1,8';
|
|
274116
|
-
if (
|
|
274117
|
-
var rootNode =
|
|
274118
|
-
listdataUrl += '
|
|
274241
|
+
if (_this8.binding.value === 'curOrgNode') {
|
|
274242
|
+
var rootNode = _this8.byOrgTreeData[0];
|
|
274243
|
+
listdataUrl += '&orgId=' + rootNode.fullID.split('-')[0];
|
|
274119
274244
|
}
|
|
274120
274245
|
var pager = {
|
|
274121
274246
|
pageNum: 1,
|
|
@@ -274123,11 +274248,11 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274123
274248
|
searchMap: {}
|
|
274124
274249
|
};
|
|
274125
274250
|
pager.searchAndOr = 'or';
|
|
274126
|
-
pager.searchMap['name'] =
|
|
274127
|
-
pager.searchMap['account'] =
|
|
274128
|
-
pager.searchMap['mobile'] =
|
|
274129
|
-
pager.searchMap['positionName'] =
|
|
274130
|
-
|
|
274251
|
+
pager.searchMap['name'] = _this8.searchkey;
|
|
274252
|
+
pager.searchMap['account'] = _this8.searchkey;
|
|
274253
|
+
pager.searchMap['mobile'] = _this8.searchkey;
|
|
274254
|
+
pager.searchMap['positionName'] = _this8.searchkey;
|
|
274255
|
+
_this8.$app.listdata(listdataUrl, pager).then(function (res) {
|
|
274131
274256
|
if (res.code === 'success') {
|
|
274132
274257
|
searchedData.push.apply(searchedData, OrgTreeDialogvue_type_script_lang_js_toConsumableArray(_this.treeDataAdapter(res.body.pageInfo.list)));
|
|
274133
274258
|
}
|
|
@@ -274137,21 +274262,21 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274137
274262
|
} else {
|
|
274138
274263
|
searchStaff = true;
|
|
274139
274264
|
}
|
|
274140
|
-
if (
|
|
274265
|
+
if (_this8.binding.value === 'allOrg' || _this8.binding.value === 'allNode' || _this8.binding.value === 'curOrgNode' || _this8.binding.value === 'suborgExt') {
|
|
274141
274266
|
var reqParams = {
|
|
274142
274267
|
method: 'GET',
|
|
274143
274268
|
url: 'base/organMgr/findTreeNodeVOListByKeyword',
|
|
274144
274269
|
params: {
|
|
274145
|
-
keyword:
|
|
274270
|
+
keyword: _this8.searchkey
|
|
274146
274271
|
}
|
|
274147
274272
|
};
|
|
274148
|
-
if (
|
|
274149
|
-
var _rootNode =
|
|
274273
|
+
if (_this8.binding.value === 'curOrgNode') {
|
|
274274
|
+
var _rootNode = _this8.byOrgTreeData[0];
|
|
274150
274275
|
reqParams.params.orgId = _rootNode.fullID.split('-')[0];
|
|
274151
274276
|
}
|
|
274152
|
-
|
|
274277
|
+
_this8.$http(reqParams).then(function (res) {
|
|
274153
274278
|
if (res.code === 'success') {
|
|
274154
|
-
searchedData.push.apply(searchedData, OrgTreeDialogvue_type_script_lang_js_toConsumableArray(
|
|
274279
|
+
searchedData.push.apply(searchedData, OrgTreeDialogvue_type_script_lang_js_toConsumableArray(_this8.treeDataAdapter(res.body.listdata)));
|
|
274155
274280
|
}
|
|
274156
274281
|
searchNode = true;
|
|
274157
274282
|
if (searchStaff && searchNode) resolve(true);
|
|
@@ -274164,8 +274289,8 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274164
274289
|
_this.searchDoing = true;
|
|
274165
274290
|
_this.searchedData = searchedData;
|
|
274166
274291
|
setTimeout(function () {
|
|
274167
|
-
|
|
274168
|
-
|
|
274292
|
+
_this8.selectedNodes.forEach(function (selectedNode) {
|
|
274293
|
+
_this8.$refs.searchOrgTree.setChecked(selectedNode, true, false);
|
|
274169
274294
|
});
|
|
274170
274295
|
}, 100);
|
|
274171
274296
|
});
|
|
@@ -274262,15 +274387,15 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274262
274387
|
}
|
|
274263
274388
|
},
|
|
274264
274389
|
onTreeNodeExpand: function onTreeNodeExpand(data, nodeData, treeNode) {
|
|
274265
|
-
var
|
|
274390
|
+
var _this9 = this;
|
|
274266
274391
|
if (nodeData.childNodes.length > 0) {
|
|
274267
274392
|
this.selectedNodes.forEach(function (selectedNode) {
|
|
274268
|
-
|
|
274393
|
+
_this9.$refs.orgTree.setChecked(selectedNode, true, false);
|
|
274269
274394
|
});
|
|
274270
274395
|
}
|
|
274271
274396
|
},
|
|
274272
274397
|
onTreeNodeCheck: function onTreeNodeCheck(data, checked) {
|
|
274273
|
-
var
|
|
274398
|
+
var _this10 = this;
|
|
274274
274399
|
var orgTree = this.$refs.orgTree;
|
|
274275
274400
|
if (this.searchDoing) orgTree = this.$refs.searchOrgTree;
|
|
274276
274401
|
if (!this.multiple || this.el.attrs['todo-mode'] === '6') {
|
|
@@ -274298,7 +274423,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274298
274423
|
}
|
|
274299
274424
|
}
|
|
274300
274425
|
var selected = this.selectedNodes.filter(function (node) {
|
|
274301
|
-
return node.id === data.id || data.personId && data.personId === node.personId &&
|
|
274426
|
+
return node.id === data.id || data.personId && data.personId === node.personId && _this10.onlyOnePerson;
|
|
274302
274427
|
});
|
|
274303
274428
|
if (selected.length === 0) {
|
|
274304
274429
|
this.selectedNodes.push(data);
|
|
@@ -274323,12 +274448,12 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274323
274448
|
break;
|
|
274324
274449
|
}
|
|
274325
274450
|
_context2.next = 4;
|
|
274326
|
-
return
|
|
274451
|
+
return _this10.loadNode(treeNode, resolve);
|
|
274327
274452
|
case 4:
|
|
274328
274453
|
resolve(false);
|
|
274329
274454
|
setTimeout(function () {
|
|
274330
|
-
|
|
274331
|
-
|
|
274455
|
+
_this10.$refs.orgTree.setChecked(data, true, true);
|
|
274456
|
+
_this10.onTreeNodeCheck(data, checked);
|
|
274332
274457
|
}, 0);
|
|
274333
274458
|
_context2.next = 9;
|
|
274334
274459
|
break;
|
|
@@ -274345,7 +274470,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274345
274470
|
};
|
|
274346
274471
|
}()).then(function (res) {
|
|
274347
274472
|
if (res) {
|
|
274348
|
-
|
|
274473
|
+
_this10.updateSelectdNodes(data, orgTree);
|
|
274349
274474
|
}
|
|
274350
274475
|
});
|
|
274351
274476
|
} else {
|
|
@@ -274354,14 +274479,14 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274354
274479
|
},
|
|
274355
274480
|
// 修改选中数据,右侧显示
|
|
274356
274481
|
updateSelectdNodes: function updateSelectdNodes(data, orgTree) {
|
|
274357
|
-
var
|
|
274482
|
+
var _this11 = this;
|
|
274358
274483
|
this.$nextTick(function () {
|
|
274359
|
-
if (
|
|
274360
|
-
if (!
|
|
274361
|
-
|
|
274484
|
+
if (_this11.selectedOrderBy !== 'selectedIndex' || !data.checked) {
|
|
274485
|
+
if (!_this11.showSelectByTabs && !_this11.searchkey && _this11.selectedOrderBy !== 'selectedIndex') {
|
|
274486
|
+
_this11.selectedNodes = [];
|
|
274362
274487
|
} else {
|
|
274363
274488
|
var treeNode = orgTree.getNode(data.id);
|
|
274364
|
-
if (treeNode && (!treeNode.checked ||
|
|
274489
|
+
if (treeNode && (!treeNode.checked || _this11.selectedOrderBy !== 'selectedIndex')) {
|
|
274365
274490
|
var subOrgIds = [];
|
|
274366
274491
|
if (data.isRealOrg === 0 && (data.olevel >= 2 || data.orgLevel >= 2)) {
|
|
274367
274492
|
//部门分组,继续查找分组下的部门、科室
|
|
@@ -274378,19 +274503,19 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274378
274503
|
});
|
|
274379
274504
|
}
|
|
274380
274505
|
var _loop2 = function _loop2(_i3) {
|
|
274381
|
-
if (
|
|
274382
|
-
|
|
274506
|
+
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) {
|
|
274507
|
+
_this11.selectedNodes.splice(_i3--, 1);
|
|
274383
274508
|
} else if (data.children) {
|
|
274384
274509
|
var childs = data.children.filter(function (childNode) {
|
|
274385
|
-
return childNode.id ===
|
|
274510
|
+
return childNode.id === _this11.selectedNodes[_i3].id;
|
|
274386
274511
|
});
|
|
274387
274512
|
if (childs.length > 0) {
|
|
274388
|
-
|
|
274513
|
+
_this11.selectedNodes.splice(_i3--, 1);
|
|
274389
274514
|
}
|
|
274390
274515
|
}
|
|
274391
274516
|
i = _i3;
|
|
274392
274517
|
};
|
|
274393
|
-
for (var i = 0; i <
|
|
274518
|
+
for (var i = 0; i < _this11.selectedNodes.length; i++) {
|
|
274394
274519
|
_loop2(i);
|
|
274395
274520
|
}
|
|
274396
274521
|
}
|
|
@@ -274401,7 +274526,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274401
274526
|
var checkedNodes = orgTree.getCheckedNodes(leafOnly, false);
|
|
274402
274527
|
checkedNodes.forEach(function (node) {
|
|
274403
274528
|
var canCheck = true;
|
|
274404
|
-
if (!
|
|
274529
|
+
if (!_this11.searchDoing && _this11.searchkey && node.title.indexOf(_this11.searchkey) === -1) {
|
|
274405
274530
|
//非延迟加载模式,同一个tree通过filter展示搜索结果,getCheckedNodes包含
|
|
274406
274531
|
canCheck = false;
|
|
274407
274532
|
}
|
|
@@ -274409,24 +274534,24 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274409
274534
|
if (!node.personId) {
|
|
274410
274535
|
checkedFolderNodeKeys.push(node.id);
|
|
274411
274536
|
}
|
|
274412
|
-
var selected =
|
|
274413
|
-
return node.id === data.id || node.personId && data.personId === node.personId &&
|
|
274537
|
+
var selected = _this11.selectedNodes.filter(function (data) {
|
|
274538
|
+
return node.id === data.id || node.personId && data.personId === node.personId && _this11.onlyOnePerson;
|
|
274414
274539
|
});
|
|
274415
274540
|
if (selected.length === 0) {
|
|
274416
274541
|
if (!node.personId && checkedFolderNodeKeys.indexOf(node.parentId) === -1) {
|
|
274417
|
-
|
|
274542
|
+
_this11.selectedNodes.push(node);
|
|
274418
274543
|
} else if (node.personId && checkedFolderNodeKeys.indexOf(node.orgId) === -1 && checkedFolderNodeKeys.indexOf(node.groupId) === -1) {
|
|
274419
|
-
|
|
274544
|
+
_this11.selectedNodes.push(node);
|
|
274420
274545
|
}
|
|
274421
274546
|
} else if (data.personId && node.personId == data.personId) {
|
|
274422
274547
|
if (node.id != data.id) {
|
|
274423
274548
|
orgTree.setChecked(node, false, false);
|
|
274424
|
-
var idx =
|
|
274549
|
+
var idx = _this11.selectedNodes.indexOf(node);
|
|
274425
274550
|
if (idx !== -1) {
|
|
274426
|
-
|
|
274551
|
+
_this11.selectedNodes.splice(idx, 1);
|
|
274427
274552
|
}
|
|
274428
274553
|
} else {
|
|
274429
|
-
|
|
274554
|
+
_this11.selectedNodes.push(node);
|
|
274430
274555
|
}
|
|
274431
274556
|
}
|
|
274432
274557
|
}
|
|
@@ -274466,7 +274591,21 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274466
274591
|
return flag;
|
|
274467
274592
|
},
|
|
274468
274593
|
onSelectByTabsHandleClick: function onSelectByTabsHandleClick(val) {
|
|
274469
|
-
var
|
|
274594
|
+
var _this12 = this;
|
|
274595
|
+
// 切换标签时管理showAllStaff状态:离开“按机构”时保存并强制全显示,回到“按机构”时还原
|
|
274596
|
+
if (this.$settings && this.$settings.selectDialogShowAllStaff === false) {
|
|
274597
|
+
if (val !== 'byOrg') {
|
|
274598
|
+
this.savedShowAllStaff = this.showAllStaff;
|
|
274599
|
+
this.showAllStaff = true;
|
|
274600
|
+
} else {
|
|
274601
|
+
var wasChanged = this.showAllStaff !== this.savedShowAllStaff;
|
|
274602
|
+
this.showAllStaff = this.savedShowAllStaff;
|
|
274603
|
+
if (wasChanged && this.byOrgTreeData && this.rawTreeData) {
|
|
274604
|
+
this.byOrgTreeData = this.treeDataAdapter(JSON.parse(JSON.stringify(this.rawTreeData)));
|
|
274605
|
+
}
|
|
274606
|
+
}
|
|
274607
|
+
}
|
|
274608
|
+
|
|
274470
274609
|
// 机构全体人员,按机构、按岗位、按群组标签点击
|
|
274471
274610
|
var _this = this;
|
|
274472
274611
|
_this.treeData = [];
|
|
@@ -274500,7 +274639,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274500
274639
|
}
|
|
274501
274640
|
});
|
|
274502
274641
|
if (orgCodes.length === 0) {
|
|
274503
|
-
orgCode =
|
|
274642
|
+
orgCode = _this12.el.attrs['root-org-code'];
|
|
274504
274643
|
if (orgCode) {
|
|
274505
274644
|
orgCodes.push(orgCode);
|
|
274506
274645
|
}
|
|
@@ -274516,22 +274655,22 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274516
274655
|
byType: val
|
|
274517
274656
|
}
|
|
274518
274657
|
};
|
|
274519
|
-
|
|
274658
|
+
_this12.$http(reqParams).then(function (res) {
|
|
274520
274659
|
if (res.code === 'success') {
|
|
274521
274660
|
var listdata = [];
|
|
274522
274661
|
if (val === 'byWorkgroup' || val === 'byJobPosition') {
|
|
274523
274662
|
var _listdata2;
|
|
274524
274663
|
if (orgCodes.length > 1) {
|
|
274525
|
-
listdata = JSON.parse(JSON.stringify(
|
|
274664
|
+
listdata = JSON.parse(JSON.stringify(_this12.byOrgTreeData)); //按机构目录分层次展示工作群组、工作岗位
|
|
274526
274665
|
}
|
|
274527
274666
|
(_listdata2 = listdata).push.apply(_listdata2, OrgTreeDialogvue_type_script_lang_js_toConsumableArray(res.body.listdata));
|
|
274528
274667
|
} else {
|
|
274529
274668
|
listdata = res.body.listdata;
|
|
274530
274669
|
}
|
|
274531
|
-
treeData =
|
|
274670
|
+
treeData = _this12.treeDataAdapter(listdata);
|
|
274532
274671
|
resolve(true);
|
|
274533
274672
|
} else {
|
|
274534
|
-
|
|
274673
|
+
_this12.$alert(res.message, {
|
|
274535
274674
|
type: 'error'
|
|
274536
274675
|
});
|
|
274537
274676
|
resolve(false);
|
|
@@ -274551,24 +274690,24 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274551
274690
|
};
|
|
274552
274691
|
}()).then(function (res) {
|
|
274553
274692
|
if (res) {
|
|
274554
|
-
if (
|
|
274693
|
+
if (_this12.showSelectByTabs && _this12.selectedNodes.length > 0) {
|
|
274555
274694
|
var pSelected = '';
|
|
274556
|
-
|
|
274695
|
+
_this12.selectedNodes.forEach(function (item) {
|
|
274557
274696
|
if (pSelected !== '') pSelected += ',';
|
|
274558
274697
|
pSelected += item.id;
|
|
274559
274698
|
});
|
|
274560
274699
|
if (pSelected !== '') {
|
|
274561
274700
|
if (_this.lazy) {
|
|
274562
|
-
|
|
274701
|
+
_this12.lazyLoadDefaultChecked(pSelected.split(','));
|
|
274563
274702
|
} else {
|
|
274564
274703
|
var pSelectFun = function pSelectFun(treeData) {
|
|
274565
274704
|
treeData.forEach(function (item) {
|
|
274566
274705
|
if (pSelected.indexOf(item.id) !== -1) {
|
|
274567
|
-
var selected =
|
|
274706
|
+
var selected = _this12.selectedNodes.filter(function (data) {
|
|
274568
274707
|
return item.id === data.id || item.personId && data.personId === item.personId;
|
|
274569
274708
|
});
|
|
274570
274709
|
if (selected.length === 0) {
|
|
274571
|
-
|
|
274710
|
+
_this12.selectedNodes.push(item);
|
|
274572
274711
|
}
|
|
274573
274712
|
item.checked = true;
|
|
274574
274713
|
}
|
|
@@ -274600,21 +274739,21 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274600
274739
|
},
|
|
274601
274740
|
// 添加常用组
|
|
274602
274741
|
addForm: function addForm() {
|
|
274603
|
-
var
|
|
274742
|
+
var _this13 = this;
|
|
274604
274743
|
if (this.commonGroupName) {
|
|
274605
274744
|
this.$confirm('是否确认添加常用组?', this.$tx('common.confirmOperate', '确认操作'), {
|
|
274606
274745
|
type: 'warning'
|
|
274607
274746
|
}).then(function () {
|
|
274608
|
-
|
|
274747
|
+
_this13.$app.addNew('base/workGroup/addNew').then(function (res1) {
|
|
274609
274748
|
var vo = res1.body.vo;
|
|
274610
|
-
vo.groupType =
|
|
274611
|
-
vo.creator =
|
|
274612
|
-
vo.creatorPersonId =
|
|
274613
|
-
vo.orgCode =
|
|
274614
|
-
vo.orgName =
|
|
274615
|
-
vo.name =
|
|
274749
|
+
vo.groupType = _this13.binding.value !== 'suborg' ? 1 : 2;
|
|
274750
|
+
vo.creator = _this13.loginUser.personName;
|
|
274751
|
+
vo.creatorPersonId = _this13.loginUser.personId;
|
|
274752
|
+
vo.orgCode = _this13.loginUser.orgCode;
|
|
274753
|
+
vo.orgName = _this13.loginUser.orgName;
|
|
274754
|
+
vo.name = _this13.commonGroupName;
|
|
274616
274755
|
var selected = '';
|
|
274617
|
-
|
|
274756
|
+
_this13.selectedNodes.forEach(function (item) {
|
|
274618
274757
|
if (item.personId) {
|
|
274619
274758
|
selected += item.orgFullName.substring(item.orgFullName.indexOf('-') + 1).replace('-', '\\') + item.name + '/' + item.account + '\r\n';
|
|
274620
274759
|
} else {
|
|
@@ -274624,16 +274763,16 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274624
274763
|
vo.members = selected;
|
|
274625
274764
|
vo.status = 1;
|
|
274626
274765
|
vo.orderNo = '1000';
|
|
274627
|
-
vo.passenger.members =
|
|
274628
|
-
|
|
274766
|
+
vo.passenger.members = _this13.selectedNodes;
|
|
274767
|
+
_this13.$app.insert('base/workGroup/insert', vo).then(function (resp) {
|
|
274629
274768
|
if (resp.code === 'success') {
|
|
274630
|
-
|
|
274631
|
-
|
|
274632
|
-
|
|
274633
|
-
|
|
274634
|
-
if (
|
|
274769
|
+
_this13.$message.success(resp.message);
|
|
274770
|
+
_this13.addFormVisible = false;
|
|
274771
|
+
_this13.commonGroupName = '';
|
|
274772
|
+
_this13.byPrivateWorkgroupData = null;
|
|
274773
|
+
if (_this13.selectByTabsActiveName === 'byPrivateWorkgroup') _this13.onSelectByTabsHandleClick(_this13.selectByTabsActiveName);
|
|
274635
274774
|
} else {
|
|
274636
|
-
|
|
274775
|
+
_this13.$alert(resp.message, _this13.$tx('common.operationTip', '操作提示'), {
|
|
274637
274776
|
type: 'error'
|
|
274638
274777
|
});
|
|
274639
274778
|
}
|
|
@@ -274715,7 +274854,7 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274715
274854
|
}());
|
|
274716
274855
|
},
|
|
274717
274856
|
submitForm: function submitForm() {
|
|
274718
|
-
var
|
|
274857
|
+
var _this14 = this;
|
|
274719
274858
|
var _this = this;
|
|
274720
274859
|
var model = this.vnode.data.model.expression.split('.');
|
|
274721
274860
|
new Promise(function (resolve, reject) {
|
|
@@ -274802,46 +274941,46 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274802
274941
|
selectedNames += node.name;
|
|
274803
274942
|
selectedIds += node.id;
|
|
274804
274943
|
});
|
|
274805
|
-
if (model[0] === 'formItem' &&
|
|
274806
|
-
|
|
274944
|
+
if (model[0] === 'formItem' && _this14.vnode.context['valueChange'] !== undefined) {
|
|
274945
|
+
_this14.vnode.context['valueChange'](selectedNames);
|
|
274807
274946
|
}
|
|
274808
|
-
if (
|
|
274947
|
+
if (_this14.vnode.context[model[0]]) {
|
|
274809
274948
|
if (model.length === 2) {
|
|
274810
|
-
|
|
274949
|
+
_this14.vnode.context.$set(_this14.vnode.context[model[0]], model[1], selectedNames);
|
|
274811
274950
|
} else {
|
|
274812
|
-
|
|
274951
|
+
_this14.vnode.context.$set(_this14.vnode.context, model[0], selectedNames);
|
|
274813
274952
|
}
|
|
274814
274953
|
}
|
|
274815
|
-
if (
|
|
274816
|
-
idModel =
|
|
274954
|
+
if (_this14.vnode.data.attrs['value-ids-field']) {
|
|
274955
|
+
idModel = _this14.vnode.data.attrs['value-ids-field'].split('.');
|
|
274817
274956
|
if (idModel.length === 1) {
|
|
274818
274957
|
idModel = ['vo', idModel[0]];
|
|
274819
274958
|
}
|
|
274820
|
-
if (
|
|
274959
|
+
if (_this14.vnode.context[idModel[0]]) {
|
|
274821
274960
|
if (idModel.length === 2) {
|
|
274822
|
-
|
|
274961
|
+
_this14.vnode.context[idModel[0]][idModel[1]] = selectedIds;
|
|
274823
274962
|
} else if (idModel.length === 3) {
|
|
274824
|
-
|
|
274963
|
+
_this14.vnode.context[idModel[0]][idModel[1]][idModel[2]] = selectedIds;
|
|
274825
274964
|
} else {
|
|
274826
|
-
|
|
274965
|
+
_this14.vnode.context[idModel[0]] = selectedIds;
|
|
274827
274966
|
}
|
|
274828
274967
|
}
|
|
274829
274968
|
}
|
|
274830
274969
|
case 28:
|
|
274831
|
-
if (
|
|
274970
|
+
if (_this14.vnode.context[model[0]]) {
|
|
274832
274971
|
if (model.length === 2) {
|
|
274833
|
-
|
|
274972
|
+
_this14.vnode.data.model.value = _this14.vnode.context[model[0]][model[1]] || '';
|
|
274834
274973
|
} else if (model.length === 3) {
|
|
274835
|
-
|
|
274974
|
+
_this14.vnode.data.model.value = _this14.vnode.context[model[0]][model[1]][model[1]] || '';
|
|
274836
274975
|
} else {
|
|
274837
|
-
|
|
274976
|
+
_this14.vnode.data.model.value = _this14.vnode.context[model[0]] || '';
|
|
274838
274977
|
}
|
|
274839
|
-
if (model[0] === 'formItem' &&
|
|
274840
|
-
|
|
274978
|
+
if (model[0] === 'formItem' && _this14.vnode.context['valueChange'] !== undefined) {
|
|
274979
|
+
_this14.vnode.context['valueChange'](_this14.vnode.data.model.value);
|
|
274841
274980
|
}
|
|
274842
274981
|
}
|
|
274843
|
-
|
|
274844
|
-
|
|
274982
|
+
_this14.vnode.context.$forceUpdate();
|
|
274983
|
+
_this14.closeDialog();
|
|
274845
274984
|
case 31:
|
|
274846
274985
|
case "end":
|
|
274847
274986
|
return _context7.stop();
|
|
@@ -274862,6 +275001,9 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274862
275001
|
this.vnode = null;
|
|
274863
275002
|
this.dialogName = null;
|
|
274864
275003
|
this.treeData = null;
|
|
275004
|
+
this.rawTreeData = null;
|
|
275005
|
+
this.showAllStaff = true;
|
|
275006
|
+
this.savedShowAllStaff = true;
|
|
274865
275007
|
this.selectedNodes = [];
|
|
274866
275008
|
this.rootTreeData = null;
|
|
274867
275009
|
this.selectRootOrg = '';
|
|
@@ -274876,13 +275018,13 @@ function OrgTreeDialogvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !
|
|
|
274876
275018
|
});
|
|
274877
275019
|
;// CONCATENATED MODULE: ./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=script&lang=js
|
|
274878
275020
|
/* harmony default export */ var src_OrgTreeDialogvue_type_script_lang_js = (OrgTreeDialogvue_type_script_lang_js);
|
|
274879
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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=
|
|
274880
|
-
var
|
|
274881
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=style&index=0&id=
|
|
275021
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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
|
|
275022
|
+
var OrgTreeDialogvue_type_style_index_0_id_6d54a72d_prod_scoped_true_lang_scss = __webpack_require__(37093);
|
|
275023
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=style&index=0&id=6d54a72d&prod&scoped=true&lang=scss
|
|
274882
275024
|
|
|
274883
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-55.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-55.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-55.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-55.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=
|
|
274884
|
-
var
|
|
274885
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=style&index=1&id=
|
|
275025
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-55.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-55.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-55.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-55.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
|
|
275026
|
+
var OrgTreeDialogvue_type_style_index_1_id_6d54a72d_prod_lang_css = __webpack_require__(80542);
|
|
275027
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue?vue&type=style&index=1&id=6d54a72d&prod&lang=css
|
|
274886
275028
|
|
|
274887
275029
|
;// CONCATENATED MODULE: ./packages/ecwapp/SelectDialog/src/OrgTreeDialog.vue
|
|
274888
275030
|
|
|
@@ -274896,11 +275038,11 @@ var OrgTreeDialogvue_type_style_index_1_id_47955133_prod_lang_css = __webpack_re
|
|
|
274896
275038
|
|
|
274897
275039
|
var OrgTreeDialog_component = (0,componentNormalizer/* default */.A)(
|
|
274898
275040
|
src_OrgTreeDialogvue_type_script_lang_js,
|
|
274899
|
-
|
|
274900
|
-
|
|
275041
|
+
OrgTreeDialogvue_type_template_id_6d54a72d_scoped_true_render,
|
|
275042
|
+
OrgTreeDialogvue_type_template_id_6d54a72d_scoped_true_staticRenderFns,
|
|
274901
275043
|
false,
|
|
274902
275044
|
null,
|
|
274903
|
-
"
|
|
275045
|
+
"6d54a72d",
|
|
274904
275046
|
null
|
|
274905
275047
|
|
|
274906
275048
|
)
|