| | |
| | | <!-- |
| | | * @Date: 2024-01-13 20:46:33 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-13 23:35:27 |
| | | * @LastEditTime: 2024-01-14 13:18:54 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/workshop/device.vue |
| | | --> |
| | | <template> |
| | |
| | | <li> |
| | | <img src="./img/sd.png" alt=""> |
| | | <div> |
| | | <p>{{ item.cycleCount || 0 }}</p> |
| | | <p>{{ efficiency}}</p> |
| | | <p>能力利用率</p> |
| | | </div> |
| | | </li> |
| | | <li> |
| | | <img src="./img/sd.png" alt=""> |
| | | <div> |
| | | <p>{{ item.cycleCount || 0 }}</p> |
| | | <p>{{ utilizationDaily}}</p> |
| | | <p>日利用率</p> |
| | | </div> |
| | | </li> |
| | | <li> |
| | | <img src="./img/sd.png" alt=""> |
| | | <div> |
| | | <p>{{ item.cycleCount || 0 }}</p> |
| | | <p>{{ info.cycleCount}}</p> |
| | | <p>完工件数</p> |
| | | </div> |
| | | </li> |
| | |
| | | <script> |
| | | import { getRequest,getUrl } from '@/api/Api' |
| | | export default { |
| | | props: ['id'], |
| | | props: { |
| | | id: { |
| | | type: [String,Number] |
| | | }, |
| | | info: { |
| | | type: Object, |
| | | default: function () { |
| | | return {} |
| | | } |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | care: false, |
| | | item: {} |
| | | } |
| | | }, |
| | | computed: { |
| | | efficiency () { |
| | | return this.info.efficiency || 0 |
| | | }, |
| | | utilizationDaily () { |
| | | return this.info.utilizationDaily || 0 |
| | | }, |
| | | cycleCount () { |
| | | return this.info.cycleCount || 0 |
| | | } |
| | | }, |
| | | methods: { |
| | | change (val) { |
| | | console.log(val) |
| | | getRequest('machineConcern',{concern: val ? 1 : 0,id: this.item.id}).then(res => { |
| | | getRequest('machineConcern',{concern: val ? 1 : 0,id: this.id}).then(res => { |
| | | console.log(res) |
| | | }) |
| | | }, |