修改禅道已知bug
This commit is contained in:
@@ -81,7 +81,7 @@
|
|||||||
watch: {
|
watch: {
|
||||||
$route: function(val) {
|
$route: function(val) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$watermark.set(this.userInfo().updateBy + ' ' + this.userInfo().username)
|
this.$watermark.set(this.userInfo().username + ' ' + this.userInfo().realname)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,18 +9,20 @@
|
|||||||
@close="handleCancel"
|
@close="handleCancel"
|
||||||
: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-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"
|
||||||
style="margin-bottom: 60px;height: 600px"
|
style="margin-bottom: 60px;height: 600px"
|
||||||
checkable
|
checkable
|
||||||
:loading="loading"
|
|
||||||
:tree-data="gData"
|
:tree-data="gData"
|
||||||
@select="onSelect"
|
@select="onSelect"
|
||||||
|
@check="checkChange"
|
||||||
>
|
>
|
||||||
</a-tree>
|
</a-tree>
|
||||||
</div>
|
</div>
|
||||||
|
</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="confirmLoading">{{$t('submit')}}</a-button>
|
||||||
@@ -43,43 +45,25 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: true,
|
gData: [],
|
||||||
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' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
autoExpandParent: true,
|
autoExpandParent: true,
|
||||||
expandedKeys: [],
|
expandedKeys: [],
|
||||||
visible: false,
|
visible: false,
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
selectedKey: [],
|
selectedKey: [],
|
||||||
tableKey:[],
|
tableKey: [],
|
||||||
|
userIds: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.queryDepartUserTreeList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getPush(data) {
|
||||||
|
this.tableKey = data
|
||||||
|
this.visible = true
|
||||||
|
this.queryDepartUserTreeList()
|
||||||
|
},
|
||||||
onSelect(selectedKeys) {
|
onSelect(selectedKeys) {
|
||||||
this.selectedKey = selectedKeys
|
this.selectedKey = selectedKeys
|
||||||
},
|
},
|
||||||
@@ -88,10 +72,19 @@
|
|||||||
},
|
},
|
||||||
//String departIds,String userIds,String documentIds
|
//String departIds,String userIds,String documentIds
|
||||||
handleSubmit() {
|
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) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
this.userIds = []
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
this.$emit('clearSelected')
|
||||||
eventBUs.$emit('searchReset')
|
eventBUs.$emit('searchReset')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -99,7 +92,21 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
onChange(e) {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,6 +111,7 @@
|
|||||||
})
|
})
|
||||||
eventBUs.$on('searchReset', target => {
|
eventBUs.$on('searchReset', target => {
|
||||||
this.searchParmes = {}
|
this.searchParmes = {}
|
||||||
|
this.selectedRowKeys = []
|
||||||
this.getData()
|
this.getData()
|
||||||
this.getTableList()
|
this.getTableList()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -61,6 +61,7 @@
|
|||||||
<libraryPush
|
<libraryPush
|
||||||
:url="url"
|
:url="url"
|
||||||
ref="libraryPushRef"
|
ref="libraryPushRef"
|
||||||
|
@clearSelected="clearSelected"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</a-card>
|
</a-card>
|
||||||
@@ -201,8 +202,7 @@
|
|||||||
handleCompare() {
|
handleCompare() {
|
||||||
if (this.idList.length > 0) {
|
if (this.idList.length > 0) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.libraryPushRef.visible = true
|
this.$refs.libraryPushRef.getPush(this.idList)
|
||||||
this.$refs.libraryPushRef.tableKey = this.idList
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
@@ -292,6 +292,9 @@
|
|||||||
query: item
|
query: item
|
||||||
})
|
})
|
||||||
window.open(newUrl.href, '_blank')
|
window.open(newUrl.href, '_blank')
|
||||||
|
},
|
||||||
|
clearSelected() {
|
||||||
|
this.idList = []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user