修改推送接口

This commit is contained in:
qq787203167
2022-03-23 22:52:07 +08:00
parent b0435e95f6
commit 99a1971b1d
+25 -14
View File
@@ -10,18 +10,19 @@
:visible="visible" :visible="visible"
style="height: 100%;overflow: auto;padding-bottom: 53px;"> style="height: 100%;overflow: auto;padding-bottom: 53px;">
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-input-search style="margin-bottom: 8px" placeholder="Search" @change="onChange"/> <a-input-search style="margin-bottom: 8px" placeholder="Search" @change="onChange"/>
<div class="drawer-content"> <div class="drawer-content">
<a-tree <a-tree
v-if="visible" v-if="visible"
style="margin-bottom: 60px;height: 600px" style="margin-bottom: 60px;height: 600px"
checkable checkable
:tree-data="gData" :tree-data="gData"
@select="onSelect" @select="onSelect"
@check="checkChange" @check="checkChange"
> @expand="onExpand"
</a-tree> >
</div> </a-tree>
</div>
</a-spin> </a-spin>
<div class="drawer-bootom-button"> <div class="drawer-bootom-button">
<a-button @click="handleCancel" type="danger" style="margin-right: 16px">{{$t('cancel')}}</a-button> <a-button @click="handleCancel" type="danger" style="margin-right: 16px">{{$t('cancel')}}</a-button>
@@ -52,7 +53,8 @@
confirmLoading: false, confirmLoading: false,
selectedKey: [], selectedKey: [],
tableKey: [], tableKey: [],
userIds: [] userIds: [],
departId: ''
} }
}, },
mounted() { mounted() {
@@ -67,6 +69,15 @@
onSelect(selectedKeys) { onSelect(selectedKeys) {
this.selectedKey = selectedKeys this.selectedKey = selectedKeys
}, },
onExpand(selectedKeys, val) {
if (val.expanded) {
if (this.departId == val.node.value) {
} else {
this.departId = val.node.value
this.queryDepartUserTreeList()
}
}
},
handleCancel() { handleCancel() {
this.visible = false this.visible = false
}, },
@@ -96,7 +107,7 @@
}, },
queryDepartUserTreeList() { queryDepartUserTreeList() {
this.confirmLoading = true this.confirmLoading = true
getAction('sys/user/queryDepartUserTreeList', {}).then((res) => { getAction('sys/user/queryDepartUserTreeList', { departId: this.departId }).then((res) => {
this.confirmLoading = false this.confirmLoading = false
if (res.success) { if (res.success) {
this.gData = res.result this.gData = res.result