This commit is contained in:
limqhz
2021-09-21 18:10:13 +08:00
parent c72e50c5e4
commit aa5faaaa2e
318 changed files with 44583 additions and 59 deletions

View File

@@ -0,0 +1,36 @@
<template>
<el-tag :type="type">{{statusName}}</el-tag>
</template>
<script>
export default {
props: {
status: {
type: Number,
required: true
}
},
computed: {
statusName() {
if (this.status === 0) {
return this.$t('message.nouse')
} else if (this.status === 1) {
return this.$t('message.used')
} else if (this.status === 2) {
return this.$t('message.canceld')
} else {
return this.$t('message.nosign')
}
},
type() {
if (this.status === 1) {
return 'success'
} else if (this.status === 0) {
return 'warning'
} else {
return 'danger'
}
}
}
}
</script>