You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
579 B
45 lines
579 B
<template>
|
|
<view style="margin: 10rpx;">
|
|
<text :class="statusStyle(status)">
|
|
{{ statusInfo.label}}
|
|
</text>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
getRequestStateInfo
|
|
} from '@/common/directory.js';
|
|
|
|
export default {
|
|
components: {
|
|
|
|
},
|
|
data() {
|
|
return {
|
|
statusInfo: {}
|
|
};
|
|
},
|
|
watch: {},
|
|
|
|
props: {
|
|
status: {
|
|
type: String,
|
|
default: ""
|
|
}
|
|
},
|
|
|
|
mounted() {},
|
|
|
|
methods: {
|
|
statusStyle(value) {
|
|
this.statusInfo = getRequestStateInfo(value);
|
|
return getRequestStateInfo(value).remark
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
|
|
<style>
|
|
</style>
|
|
|