no message

This commit is contained in:
shijingjing
2022-07-27 11:53:13 +08:00
parent dddd934208
commit 03e760b5c9

View File

@@ -16,7 +16,7 @@
<div class="item" v-if="data.enableExamine == 1"> <div class="item" v-if="data.enableExamine == 1">
<span>审批人</span> <span>审批人</span>
<span> <span>
<AiOpenData v-for="(item, index) in data.examines" :key="index" type="userName" :openId="item.examineUserId"></AiOpenData> <AiOpenData v-for="(item, index) in data.approver" :key="index" type="userName" :openId="item.examineUserId"></AiOpenData>
</span> </span>
</div> </div>
<div class="item"> <div class="item">
@@ -85,7 +85,7 @@
</template> </template>
<script> <script>
import { mapActions } from "vuex"; import { mapState ,mapActions } from "vuex";
export default { export default {
data() { data() {
return { return {
@@ -98,12 +98,16 @@ export default {
webpage: [], webpage: [],
miniapp: [], miniapp: [],
pictres: [], pictres: [],
options: '' options: '',
approver: [], //审批人
} }
}, },
onLoad(o) { onLoad(o) {
this.id = o.id this.id = o.id
}, },
computed: {
...mapState(['user'])
},
methods: { methods: {
getDetail() { getDetail() {
this.$http.post(`/app/appmasssendingtask/queryDetailById?id=${this.id}`).then(res=> { this.$http.post(`/app/appmasssendingtask/queryDetailById?id=${this.id}`).then(res=> {
@@ -115,6 +119,11 @@ export default {
this.fileList = res.data.contents.filter(v=> v.msgType == 3) this.fileList = res.data.contents.filter(v=> v.msgType == 3)
this.webpage = res.data.contents.filter(v=> v.msgType == 4) this.webpage = res.data.contents.filter(v=> v.msgType == 4)
this.miniapp = res.data.contents.filter(v=> v.msgType == 5) this.miniapp = res.data.contents.filter(v=> v.msgType == 5)
if(data.status==1) { // 拒绝
this.approver = data.examines.filter(e=> e.examineUserId == user.openId)
} else { // 通过
this.approver = data.examines
}
} }
}) })
}, },