mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-20 16:26:43 +08:00
feat: 新增获取全量机构树的API,优化SignupModal和ManageListRemote组件的组织树交互逻辑
(cherry picked from commit a9b36884c3)
This commit is contained in:
@@ -77,7 +77,14 @@
|
||||
</el-button>
|
||||
<el-button size="small" @click="resetOrg">重置</el-button>
|
||||
</div>
|
||||
<el-tree class="org-tree" show-checkbox node-key="id" :data="orgList" :props="orgTreeProps" lazy
|
||||
<el-tree
|
||||
ref="orgTree"
|
||||
class="org-tree"
|
||||
show-checkbox
|
||||
node-key="id"
|
||||
:data="orgList"
|
||||
:props="orgTreeProps"
|
||||
lazy
|
||||
:load="loadOrgNodeFull" @check-change="onOrgCheckChange" :default-checked-keys="selectedOrgKeys" />
|
||||
</el-tab-pane>
|
||||
|
||||
@@ -573,13 +580,25 @@ export default {
|
||||
this.stuSelectRows = this.stuSelectRows.filter(
|
||||
(i) => (i.id || i.userId) !== (item.id || item.userId)
|
||||
);
|
||||
// 同步左侧快速选人表格的勾选状态
|
||||
this.$nextTick(() => {
|
||||
this.syncStuTableSelection();
|
||||
});
|
||||
},
|
||||
removeOrg(item) {
|
||||
this.deptList = this.deptList.filter((i) => i.id !== item.id);
|
||||
this.selectedOrgKeys = this.deptList.map((d) => d.id);
|
||||
// 同步左侧组织树的勾选状态
|
||||
if (this.$refs.orgTree && this.$refs.orgTree.setCheckedKeys) {
|
||||
this.$refs.orgTree.setCheckedKeys(this.selectedOrgKeys);
|
||||
}
|
||||
},
|
||||
removeAudience(item) {
|
||||
this.auditSelectRows = this.auditSelectRows.filter((i) => i.id !== item.id);
|
||||
// 同步左侧受众表格的勾选状态
|
||||
this.$nextTick(() => {
|
||||
this.syncAudienceTableSelection();
|
||||
});
|
||||
},
|
||||
submitAuth() {
|
||||
if (this.type === 2) {
|
||||
|
||||
Reference in New Issue
Block a user