diff --git a/packages/conv/AppReportAiWill/AppReportAtWill.vue b/packages/conv/AppReportAiWill/AppReportAtWill.vue
index 4f6f38eb..6de9b38c 100644
--- a/packages/conv/AppReportAiWill/AppReportAtWill.vue
+++ b/packages/conv/AppReportAiWill/AppReportAtWill.vue
@@ -1,72 +1,54 @@
-
-
-
-
-
+
diff --git a/packages/conv/AppReportAiWill/components/Detail.vue b/packages/conv/AppReportAiWill/components/Detail.vue
index ec1c45b4..63df74e0 100644
--- a/packages/conv/AppReportAiWill/components/Detail.vue
+++ b/packages/conv/AppReportAiWill/components/Detail.vue
@@ -99,7 +99,7 @@
- 选择
+ isShowUser=true )">选择
@@ -157,7 +157,7 @@ import {mapState} from 'vuex'
export default {
name: 'Detail',
- props: ['dict', 'instance', 'params'],
+ props: ['dict', 'instance'],
data() {
return {
@@ -179,7 +179,6 @@ export default {
processList: [],
dictList: [],
defaultProps: {
- children: 'girdList',
label: 'girdName'
},
isShowForward: false,
@@ -201,7 +200,6 @@ export default {
created() {
this.getDict()
- this.getGirdList()
this.dict.load('clapEventStatus').then(() => {
this.getDetail()
})
@@ -210,7 +208,7 @@ export default {
methods: {
getDetail() {
this.instance.post('/app/appclapeventinfo/queryDetailById', null, {
- params: {id: this.params.id}
+ params: {id: this.$route.query.id}
}).then(res => {
if (res?.data) {
this.detail = res.data
@@ -228,9 +226,9 @@ export default {
},
getGirdList() {
- this.instance.post(`/app/appgirdinfo/listAllByTop`).then(res => {
+ return this.instance.post(`/app/appgirdinfo/listAllByTop`).then(res => {
if (res?.data) {
- this.tree = this.formatList([res.data])
+ return this.tree = this.formatList([res.data])
}
})
},
@@ -250,29 +248,16 @@ export default {
},
formatList(list) {
- let arr = []
for (let item of list) {
- if (item.girdMemberList && item.girdMemberList.length) {
- let userList = JSON.parse(JSON.stringify(item.girdMemberList)).map(v => {
- return {
- ...v,
- isUser: true,
- girdName: item.girdName,
- girdId: item.id
- }
- })
-
- item.girdList = [
- ...userList
- ]
- delete item.girdMemberList
- }
- if (item.girdList && item.girdList.length) {
+ item.children = [item.girdList, item.girdMemberList?.map(e => ({
+ ...e, isUser: true, girdName: item.girdName,
+ girdId: item.id
+ })) || []].flat()
+ if (item.girdList?.length > 0) {
this.formatList(item.girdList)
}
- arr.push(item)
}
- return arr
+ return list
},
filterNode(value, data) {
@@ -290,7 +275,7 @@ export default {
if (v) {
this.instance.post('/app/appclapeventinfo/transferByManager', {
...this.forwardForm,
- id: this.params.id
+ id: this.$route.query.id
}).then(res => {
if (res?.code == 0) {
this.isShowForward = false
@@ -330,7 +315,7 @@ export default {
close() {
this.$confirm('确定关闭该事件?').then(() => {
- this.instance.post(`/app/appmininotice/delete?ids=${this.params.id}`).then(res => {
+ this.instance.post(`/app/appmininotice/delete?ids=${this.$route.query.id}`).then(res => {
if (res.code == 0) {
this.$message.success('删除成功!')
this.getList()
@@ -380,7 +365,7 @@ export default {
this.instance.post('/app/appclapeventinfo/finishByManager', {
...this.form,
groupName: this.dictList.filter(v => v.dictValue === this.form.groupId)[0].dictName,
- id: this.params.id
+ id: this.$route.query.id
}).then(res => {
if (res?.code == 0) {
this.isShowAdd = false