转交
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<template #rightBtn>
|
||||
<div class="title-btns">
|
||||
<el-button type="primary" icon="iconfont iconPerson_Transfered" @click="isShowForward = true" v-if="detail.rightType == 2 || detail.rightType == 3">指派事件</el-button>
|
||||
<el-button type="primary" icon="iconfont iconRegister" @click="handelClick" v-if="detail.rightType < 4 && detail.rightType != null">处理事件</el-button>
|
||||
<el-button type="primary" icon="iconfont iconRegister" @click="handelClick" v-if="detail.rightType < 3 && detail.rightType != null">处理事件</el-button>
|
||||
<!-- <el-button type="primary" icon="iconfont iconRegister" @click="isShowTalk = true" v-if="detail.eventStatus < 2">事件研判</el-button>
|
||||
<el-button type="primary" icon="iconfont iconRegister" @click="isShowMediate = true" v-if="detail.eventStatus < 2">矛盾调解</el-button> -->
|
||||
</div>
|
||||
@@ -373,7 +373,7 @@ export default {
|
||||
getGirdList() {
|
||||
return this.instance.post(`/app/appclapeventinfoqujing/listGirdInfoByTransfer?id=${this.$route.query.id}`).then(res => {
|
||||
if (res?.data) {
|
||||
return this.tree = this.formatList([res.data])
|
||||
return this.tree = this.formatList(res.data)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -429,8 +429,9 @@ export default {
|
||||
},
|
||||
|
||||
formatList(list) {
|
||||
console.log(list)
|
||||
for (let item of list) {
|
||||
item.children = [item.girdList, item.girdMemberList?.map(e => ({
|
||||
item.children = [item.girdList? item.girdList: [], item.girdMemberList?.map(e => ({
|
||||
...e, isUser: true, girdName: item.girdName,
|
||||
girdId: item.id
|
||||
})) || []].flat()
|
||||
@@ -438,6 +439,7 @@ export default {
|
||||
this.formatList(item.girdList)
|
||||
}
|
||||
}
|
||||
console.log(list)
|
||||
return list
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user