mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
perf: 优化工单,处理人去掉关闭的按钮,只能同意或拒绝
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user