| | |
| | | <script> |
| | | import HdwLight from "@/components/HdwLight.vue"; |
| | | import {getLabelByValue} from "../../../assets/js/tools"; |
| | | import { getLabelByValue } from "../../../assets/js/tools"; |
| | | |
| | | export default { |
| | | name: "IntelDevStateTools", |
| | | methods: {getLabelByValue}, |
| | | components: {HdwLight}, |
| | | methods: { getLabelByValue }, |
| | | components: { HdwLight }, |
| | | props: { |
| | | list: { |
| | | type: Array, |
| | | default() { |
| | | return []; |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | }, |
| | | data() { |
| | | return {} |
| | | } |
| | | } |
| | | return {}; |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | <td>DCDC1</td> |
| | | <td>DCDC2</td> |
| | | </tr> |
| | | <tr v-for="(item, key) in list" :key="'key'+key"> |
| | | <tr v-for="(item, key) in list" :key="'key' + key"> |
| | | <td class="item-label">{{ item.label }}</td> |
| | | <td> |
| | | <hdw-light v-if="item.type === 'light'" :type="item.value1"></hdw-light> |
| | | <hdw-light |
| | | v-if="item.type === 'light'" |
| | | :type="item.value1" |
| | | ></hdw-light> |
| | | <span v-else> |
| | | {{ getLabelByValue(item.value1, item.list) }} |
| | | </span> |
| | | </td> |
| | | <td> |
| | | <hdw-light v-if="item.type === 'light'" :type="item.value1"></hdw-light> |
| | | <hdw-light |
| | | v-if="item.type === 'light'" |
| | | :type="item.value2" |
| | | ></hdw-light> |
| | | <span v-else> |
| | | {{ getLabelByValue(item.value2, item.list) }} |
| | | </span> |