@sy-common/organize-select-help 1.0.0-beta.25 → 1.0.0-beta.26
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 +16 -1
package/package.json
CHANGED
package/src/index.vue
CHANGED
|
@@ -269,7 +269,7 @@ export default {
|
|
|
269
269
|
mounted() {
|
|
270
270
|
this.queryTagList()
|
|
271
271
|
this.queryPositionList()
|
|
272
|
-
this.loadMore()
|
|
272
|
+
// this.loadMore()
|
|
273
273
|
},
|
|
274
274
|
methods:{
|
|
275
275
|
handlePostTagSelect(quickPickKey) {
|
|
@@ -728,6 +728,21 @@ export default {
|
|
|
728
728
|
},
|
|
729
729
|
visibleChange(val){
|
|
730
730
|
this.$emit('input',val);
|
|
731
|
+
// val 为 true 时表示帮助框打开,此时发起请求
|
|
732
|
+
if (val) {
|
|
733
|
+
this.initStaffList() // 新增初始化方法,统一处理打开后的请求逻辑
|
|
734
|
+
} else {
|
|
735
|
+
// 可选:关闭帮助框时重置人员列表相关状态,避免下次打开残留旧数据
|
|
736
|
+
this.staffEnding = false;
|
|
737
|
+
this.offset = 0;
|
|
738
|
+
this.staffAllList = [];
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
initStaffList() {
|
|
742
|
+
this.staffEnding = false;
|
|
743
|
+
this.offset = 0;
|
|
744
|
+
this.staffAllList = [];
|
|
745
|
+
this.loadMore(); // 打开帮助框后,再发起第一次请求
|
|
731
746
|
},
|
|
732
747
|
// 处理Tab切换,同步更新tabName
|
|
733
748
|
handleTabChange(tabName) {
|