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.
 
 
 
 
 
 

52 lines
1.0 KiB

<!--包装组件-->
<template>
<view class="device-detail">
<view class="list-style">
<view class="ljh_box nopad">
<view class="tit_ljh uni-flex">
<text class="mini-type-style" :class="itemdetail.status | statusStyle">
{{ itemdetail.status | statusColor}}
</text>
<text class="font_xl text_black text_bold">{{ itemdetail.code }}</text>
</view>
<view class="ljh_left">
<view class="font_xs text_lightblue">{{itemdetail.name}}</view>
<view class="font_xs text_lightblue">{{itemdetail.desc2}}</view>
</view>
</view>
</view>
</view>
</template>
<script>
import {
getItemTypeStyle,
getItemStatusDesc
} from '@/common/basic.js';
export default {
name: "comItem",
data() {
return {
};
},
filters: {
statusStyle: function(val) {
return getItemTypeStyle(val);
},
statusColor: function(val) {
return getItemStatusDesc(val);
},
},
// 此处定义传入的数据
props: {
itemdetail: {
type: Object,
value: null
}
}
}
</script>
<style>
</style>