修改文档库推送的人员选中
This commit is contained in:
@@ -13,9 +13,10 @@
|
|||||||
<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="visibleTree"
|
||||||
style="margin-bottom: 60px;height: 600px"
|
style="margin-bottom: 60px;height: 600px"
|
||||||
checkable
|
checkable
|
||||||
|
:autoExpandParent="false"
|
||||||
:tree-data="gData"
|
:tree-data="gData"
|
||||||
@select="onSelect"
|
@select="onSelect"
|
||||||
@check="checkChange"
|
@check="checkChange"
|
||||||
@@ -27,7 +28,7 @@
|
|||||||
</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>
|
||||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
<a-button @click="handleSubmit" type="primary" :loading="submitLoading">{{$t('submit')}}</a-button>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</div>
|
</div>
|
||||||
@@ -56,7 +57,9 @@
|
|||||||
tableKey: [],
|
tableKey: [],
|
||||||
userIds: [],
|
userIds: [],
|
||||||
departId: '',
|
departId: '',
|
||||||
defaultExpandedKeys:[],
|
defaultExpandedKeys: [],
|
||||||
|
submitLoading: false,
|
||||||
|
visibleTree:false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -66,6 +69,7 @@
|
|||||||
getPush(data) {
|
getPush(data) {
|
||||||
this.tableKey = data
|
this.tableKey = data
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.visibleTree = true
|
||||||
this.departId = ''
|
this.departId = ''
|
||||||
this.queryDepartUserTreeList()
|
this.queryDepartUserTreeList()
|
||||||
},
|
},
|
||||||
@@ -83,6 +87,7 @@
|
|||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
this.visibleTree = false
|
||||||
},
|
},
|
||||||
//String departIds,String userIds,String documentIds
|
//String departIds,String userIds,String documentIds
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
@@ -91,13 +96,16 @@
|
|||||||
userIds: this.userIds.join(','),
|
userIds: this.userIds.join(','),
|
||||||
departIds: this.userIds.join(',')
|
departIds: this.userIds.join(',')
|
||||||
}
|
}
|
||||||
|
this.submitLoading = true
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
getAction(this.url.pullMessage, query).then((res) => {
|
getAction(this.url.pullMessage, query).then((res) => {
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
|
this.submitLoading = false
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
this.userIds = []
|
this.userIds = []
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
this.visibleTree = false
|
||||||
this.$emit('clearSelected')
|
this.$emit('clearSelected')
|
||||||
eventBUs.$emit('searchReset')
|
eventBUs.$emit('searchReset')
|
||||||
} else {
|
} else {
|
||||||
@@ -109,13 +117,13 @@
|
|||||||
const value = e.target.value
|
const value = e.target.value
|
||||||
},
|
},
|
||||||
queryDepartUserTreeList() {
|
queryDepartUserTreeList() {
|
||||||
this.confirmLoading = true
|
|
||||||
let gData = JSON.parse(JSON.stringify(this.gData))
|
let gData = JSON.parse(JSON.stringify(this.gData))
|
||||||
if (gData && gData.length > 0) {
|
if (gData && gData.length > 0) {
|
||||||
gData = JSON.stringify(gData)
|
gData = JSON.stringify(gData)
|
||||||
}else {
|
} else {
|
||||||
gData = ''
|
gData = ''
|
||||||
}
|
}
|
||||||
|
this.confirmLoading = true
|
||||||
postAction('sys/user/queryDepartUserTreeList', {
|
postAction('sys/user/queryDepartUserTreeList', {
|
||||||
departId: this.departId,
|
departId: this.departId,
|
||||||
json: gData
|
json: gData
|
||||||
|
|||||||
Reference in New Issue
Block a user