This commit is contained in:
shijingjing
2022-09-14 17:46:36 +08:00
parent 16238142f4
commit 7d697c6932
4 changed files with 26 additions and 18 deletions

View File

@@ -103,17 +103,25 @@ export default {
pictres: [],
options: '',
approver: [], //审批人
type: '',
}
},
onLoad(o) {
this.id = o.id
this.type = o.type
},
computed: {
...mapState(['user'])
},
methods: {
getDetail() {
this.$http.post(`/app/appmasssendingtask/queryDetailById?id=${this.id}`).then(res=> {
let url = ''
if(this.type == 'ResidentsGroup') {
url = `/app/appmasssendingtask/queryDetailById?id=${this.id}`
} else {
url = `/app/whchatmomentstask/queryDetailById?id=${this.id}`
}
this.$http.post(url).then(res=> {
if (res?.data) {
this.data = res.data
this.content = res.data.contents.filter(v=> v.msgType == 0)?.[0].content
@@ -159,7 +167,14 @@ export default {
})
},
examine() {
this.$http.post(`/app/appmasssendingtask/examine`,null,{
// /app/whchatmomentstask/examine
let url = ''
if(this.type == 'ResidentsGroup') {
url = `/app/appmasssendingtask/examine`
} else {
url = `/app/whchatmomentstask/examine`
}
this.$http.post(url,null,{
params: {
pass: this.pass,
id: this.id,