| | |
| | | <!-- |
| | | * @Date: 2024-04-18 21:52:18 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-23 19:45:06 |
| | | * @LastEditTime: 2024-04-27 23:31:53 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/Shift.vue |
| | | --> |
| | | <template> |
| | |
| | | type: 'category', |
| | | }, |
| | | yAxis: { |
| | | type: 'value' |
| | | type: 'value', |
| | | axisLabel: { |
| | | formatter: (value) => { |
| | | return value + '%' |
| | | } |
| | | }, |
| | | }, |
| | | dataZoom: [ |
| | | { type: 'slider' } |
| | |
| | | } |
| | | option2.dataset.source = [['product', '班次1', '班次2']] |
| | | res.data.items.records.forEach(v => { |
| | | option2.dataset.source.push([v.workstationName, v.data[1] === '-' ? 0 : v.data[1], v.data[2] === '-' ? 0 : v.data[2]]) |
| | | option2.dataset.source.push([v.workstationName, v.data[1] === '-' ? 0 : v.data[1] * 100, v.data[2] === '-' ? 0 : v.data[2] * 100]) |
| | | }); |
| | | this.option2 = option2 |
| | | console.log(option2) |
| | |
| | | <!-- |
| | | * @Date: 2024-04-18 21:52:18 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-23 19:44:57 |
| | | * @LastEditTime: 2024-04-27 23:30:06 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/Time.vue |
| | | --> |
| | | <template> |
| | |
| | | xAxis: { |
| | | type: 'category', |
| | | axisLabel: { |
| | | interval: 'auto' |
| | | interval: 'auto', |
| | | } |
| | | }, |
| | | yAxis: { |
| | | type: 'value' |
| | | type: 'value', |
| | | axisLabel: { |
| | | formatter: (value) => { |
| | | return value + '%' |
| | | } |
| | | }, |
| | | }, |
| | | dataZoom: [ |
| | | { type: 'slider' } |
| | |
| | | res.data.items.records.forEach(v => { |
| | | let current = [v.id] |
| | | Object.keys(v.nameData).forEach(key => { |
| | | current.push(row.data[key] - 0) |
| | | current.push((v.data[key] - 0) * 100) |
| | | }) |
| | | option2.dataset.source.push(current) |
| | | }); |
| | |
| | | <!-- |
| | | * @Date: 2024-04-27 20:02:44 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-27 21:40:33 |
| | | * @LastEditTime: 2024-04-27 22:21:36 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/tpm/MachineGroup.vue |
| | | --> |
| | | <template> |
| | |
| | | <el-header> |
| | | <div class="left-panel"> |
| | | <el-button @click="addChild" type="primary" plain>新增下级</el-button> |
| | | <el-button @click="del" type="danger" plain>删除</el-button> |
| | | <el-button :disabled="!form.id" @click="del" type="danger" plain>删除</el-button> |
| | | </div> |
| | | </el-header> |
| | | <el-main class=""> |
| | |
| | | } |
| | | }, |
| | | addChild() { |
| | | if (!this.form.id) { |
| | | return |
| | | } |
| | | let { name, id, groupType, groupCategory } = this.form |
| | | this.form.id = '' |
| | | this.form.name = '' |