This commit is contained in:
yanran200730
2021-12-23 15:29:42 +08:00
parent bdee85e334
commit 4a33e17110
2 changed files with 1 additions and 27 deletions

View File

@@ -2,12 +2,7 @@
<section class="AppFoundingHundred">
<ai-list v-if="showList">
<template #title>
<ai-title title="党员学习" isShowBottomBorder>
<template #rightBtn>
<ai-party :instance="instance" v-model="organizationId" :topOrgId="topOrgId" size="small"
@origin="changeParty"/>
</template>
</ai-title>
<ai-title title="党员学习" isShowBottomBorder></ai-title>
</template>
<template #content>
<ai-search-bar>
@@ -159,22 +154,6 @@
this.page.current = 1;
this.getList();
},
// 查询所有单位 树形结构
searchSysAll(id) {
this.instance.post('/admin/partyOrganization/queryAllChildren', null, {
params: {
id: id
}
}).then((res) => {
if (res?.data) {
res.data = res.data.map(a => {
return {...a, label: a.name}
});
this.treeData = res.data.filter(e => e.id == this.user.info.organizationId);
this.treeData.map(t => this.addChild(t, res.data));
}
})
},
// 点击树节点
handleNodeClick(data) {
this.partyList = data;
@@ -206,7 +185,6 @@
},
created() {
this.topOrgId = this.user.info?.organizationId;
this.searchSysAll(this.user.info?.organizationId);
this.organizationId = this.user.info?.organizationId;
this.organizationName = this.user.info?.organizationName;
this.dict.load("classroomUpdateStatus",'newsCenterStatus');

View File

@@ -75,8 +75,6 @@
data() {
return {
form: {
organizationId: '',
organizationName: '',
title: '',
num: '',
videoUrl: "",
@@ -158,8 +156,6 @@
},
},
created() {
this.form.organizationId = this.organizationId;
this.form.organizationName = this.organizationName;
this.checkDetaiList(this.parentRow?.id);
if (this.row?.id) {
this.getDetail();