no message
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<div class="item" v-if="data.enableExamine == 1">
|
||||
<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>
|
||||
</div>
|
||||
<div class="item">
|
||||
@@ -85,7 +85,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapActions } from "vuex";
|
||||
import { mapState ,mapActions } from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -98,12 +98,16 @@ export default {
|
||||
webpage: [],
|
||||
miniapp: [],
|
||||
pictres: [],
|
||||
options: ''
|
||||
options: '',
|
||||
approver: [], //审批人
|
||||
}
|
||||
},
|
||||
onLoad(o) {
|
||||
this.id = o.id
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user'])
|
||||
},
|
||||
methods: {
|
||||
getDetail() {
|
||||
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.webpage = res.data.contents.filter(v=> v.msgType == 4)
|
||||
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
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user