@sy-common/organize-select-help 1.0.0-beta.35 → 1.0.0-beta.36
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/package.json +1 -1
- package/src/index.vue +8 -4
package/package.json
CHANGED
package/src/index.vue
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<div class="content-container">
|
|
13
13
|
<div class="tree-orig">
|
|
14
14
|
<div class="tab-content">
|
|
15
|
-
<Tabs v-if="computedTabName"
|
|
15
|
+
<Tabs v-if="computedTabName" v-model="activeTabName" @input="handleTabChange" >
|
|
16
16
|
<TabPane label="组织选择" name="org" v-if="name.includes('org')">
|
|
17
17
|
<div class="tab">
|
|
18
18
|
<span>组织搜索:</span>
|
|
@@ -252,6 +252,7 @@ export default {
|
|
|
252
252
|
},
|
|
253
253
|
data(){
|
|
254
254
|
return {
|
|
255
|
+
activeTabName: '',
|
|
255
256
|
tabName: '',
|
|
256
257
|
modal:false,
|
|
257
258
|
dialogOpen:false,
|
|
@@ -295,6 +296,9 @@ export default {
|
|
|
295
296
|
proStaffOrgList: [] // 新增:暂存选中的组织节点
|
|
296
297
|
}
|
|
297
298
|
},
|
|
299
|
+
created() {
|
|
300
|
+
this.activeTabName = this.tabName || this.computedTabName;
|
|
301
|
+
},
|
|
298
302
|
mounted() {
|
|
299
303
|
this.queryTagList()
|
|
300
304
|
this.queryPositionList()
|
|
@@ -963,8 +967,8 @@ export default {
|
|
|
963
967
|
},
|
|
964
968
|
// 处理Tab切换,同步更新tabName
|
|
965
969
|
handleTabChange(tabName) {
|
|
966
|
-
this.
|
|
967
|
-
|
|
970
|
+
this.activeTabName = tabName;
|
|
971
|
+
this.$nextTick(() => this.$forceUpdate());
|
|
968
972
|
if (tabName === 'staff') {
|
|
969
973
|
this.$set(this, 'selectedStaffOrgId', '');
|
|
970
974
|
this.proStaffOrgList = [];
|
|
@@ -1476,7 +1480,7 @@ export default {
|
|
|
1476
1480
|
|
|
1477
1481
|
|
|
1478
1482
|
/**
|
|
1479
|
-
*
|
|
1483
|
+
* 手动更新树节点状态
|
|
1480
1484
|
* @param {Array} nodeList - 节点列表
|
|
1481
1485
|
* @param {Set} expandIds - 需要展开的节点ID集合
|
|
1482
1486
|
* @param {Set} checkedIds - 需要选中的节点ID集合
|