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.
48 lines
679 B
48 lines
679 B
12 months ago
|
<template>
|
||
|
<view class="">
|
||
|
<text :class="statusStyle(status)"
|
||
|
style="padding-top: 5rpx;padding-bottom: 5rpx;padding-left: 15rpx;padding-right: 15rpx;">{{statusDesc(status)}}</text>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
|
||
|
|
||
|
<script>
|
||
|
import {
|
||
|
getItemStateInfo
|
||
|
} from '@/common/directory.js';
|
||
|
export default {
|
||
|
components: {
|
||
|
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
|
||
|
|
||
|
};
|
||
|
},
|
||
|
props: {
|
||
|
dataContent: {
|
||
|
type: Object,
|
||
|
default: {},
|
||
|
},
|
||
|
status: {
|
||
|
type: String,
|
||
|
default: "",
|
||
|
},
|
||
|
},
|
||
|
|
||
|
methods: {
|
||
|
statusDesc(value) {
|
||
|
return getItemStateInfo(value).label
|
||
|
},
|
||
|
statusStyle(value) {
|
||
|
return getItemStateInfo(value).remark;
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
</style>
|