perf: 优化工单,处理人去掉关闭的按钮,只能同意或拒绝

This commit is contained in:
ibuler
2021-05-18 11:59:04 +08:00
committed by Jiangjie.Bai
parent d2aa4e99da
commit 703eadf292

View File

@@ -45,6 +45,7 @@
</el-button>
</template>
<el-button
v-if="isSelfTicket"
:disabled="object.status === 'closed'"
type="danger"
size="small"
@@ -103,6 +104,9 @@ export default {
computed: {
hasActionPerm() {
return this.object.assignees.indexOf(this.$store.state.users.profile.id) !== -1
},
isSelfTicket() {
return this.object.applicant === this.$store.state.users.profile.id
}
},
mounted() {