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.

47 lines
683 B

10 months ago
<template>
<view class="">
<text :class="statusStyle(type)" style="padding-top: 5rpx;padding-bottom: 5rpx;padding-left: 15rpx;padding-right: 15rpx;">{{statusDesc(type)}}</text>
</view>
</template>
<script>
import {
getLocationTypeInfo
} from '@/common/directory.js';
export default {
components: {
},
data() {
return {
};
},
props: {
dataContent: {
type: Object,
default: {},
},
type: {
type: String,
default: "",
},
},
methods: {
statusDesc(code) {
return getLocationTypeInfo(code).label
},
statusStyle(code) {
return getLocationTypeInfo(code).remark;
},
}
}
</script>
<style>
</style>