修改禅道已知bug
This commit is contained in:
@@ -9,18 +9,20 @@
|
||||
@close="handleCancel"
|
||||
:visible="visible"
|
||||
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<a-input-search style="margin-bottom: 8px" placeholder="Search" @change="onChange"/>
|
||||
<div class="drawer-content">
|
||||
<a-tree
|
||||
v-if="visible"
|
||||
style="margin-bottom: 60px;height: 600px"
|
||||
checkable
|
||||
:loading="loading"
|
||||
:tree-data="gData"
|
||||
@select="onSelect"
|
||||
@check="checkChange"
|
||||
>
|
||||
</a-tree>
|
||||
</div>
|
||||
|
||||
</a-spin>
|
||||
<div class="drawer-bootom-button">
|
||||
<a-button @click="handleCancel" type="danger" style="margin-right: 16px">{{$t('cancel')}}</a-button>
|
||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||
@@ -43,43 +45,25 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: true,
|
||||
gData: [
|
||||
{
|
||||
title: 'parent 1',
|
||||
key: '0-0',
|
||||
children: [
|
||||
{
|
||||
title: '张晨成',
|
||||
key: '0-0-0',
|
||||
disabled: true,
|
||||
children: [
|
||||
{ title: 'leaf', key: '0-0-0-0' },
|
||||
{ title: 'leaf', key: '0-0-0-1' }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: 'parent 1-1',
|
||||
key: '0-0-1',
|
||||
children: [
|
||||
{ key: '0-0-1-0', title: 'zcvc' }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
gData: [],
|
||||
autoExpandParent: true,
|
||||
expandedKeys: [],
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
selectedKey: [],
|
||||
tableKey:[],
|
||||
tableKey: [],
|
||||
userIds: []
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
this.queryDepartUserTreeList()
|
||||
},
|
||||
methods: {
|
||||
getPush(data) {
|
||||
this.tableKey = data
|
||||
this.visible = true
|
||||
this.queryDepartUserTreeList()
|
||||
},
|
||||
onSelect(selectedKeys) {
|
||||
this.selectedKey = selectedKeys
|
||||
},
|
||||
@@ -88,10 +72,19 @@
|
||||
},
|
||||
//String departIds,String userIds,String documentIds
|
||||
handleSubmit() {
|
||||
getAction(this.url.pullMessage, {}).then((res) => {
|
||||
let query = {
|
||||
documentIds: this.tableKey.join(','),
|
||||
userIds: this.userIds.join(','),
|
||||
departIds: this.userIds.join(',')
|
||||
}
|
||||
this.confirmLoading = true
|
||||
getAction(this.url.pullMessage, query).then((res) => {
|
||||
this.confirmLoading = false
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.userIds = []
|
||||
this.visible = false
|
||||
this.$emit('clearSelected')
|
||||
eventBUs.$emit('searchReset')
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
@@ -99,7 +92,21 @@
|
||||
})
|
||||
},
|
||||
onChange(e) {
|
||||
|
||||
const value = e.target.value
|
||||
},
|
||||
queryDepartUserTreeList() {
|
||||
this.confirmLoading = true
|
||||
getAction('sys/user/queryDepartUserTreeList', {}).then((res) => {
|
||||
this.confirmLoading = false
|
||||
if (res.success) {
|
||||
this.gData = res.result
|
||||
} else {
|
||||
this.gData = []
|
||||
}
|
||||
})
|
||||
},
|
||||
checkChange(e) {
|
||||
this.userIds = e
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user