| | |
| | | </el-row> |
| | | <el-row /> |
| | | </el-tabs> |
| | | <!-- {{ time_data }}--> |
| | | <!-- {{ bm_data }}--> |
| | | <div class="container" style="margin: 30px;"> |
| | | <v-gantt-chart |
| | | |
| | | :start-time="time_data[0]" |
| | | :end-time="time_data[1]" |
| | | :cell-width="cellWidth" |
| | |
| | | @scrollLeft="scrollLeftA" |
| | | > |
| | | <template slot="block" slot-scope="{data,item}"> |
| | | <Test |
| | | <Scheduling |
| | | :data="data" |
| | | :update-time-lines="updateTimeLines" |
| | | :cell-height="cellHeight" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import Test from '@/components/Test' |
| | | import Scheduling from '@/components/Scheduling' |
| | | import dayjs from 'dayjs' |
| | | |
| | | const scaleList = `30,60,240,360`.split(',').map(n => parseInt(n)) |
| | | const timeList = `0,30,60,120,240,480`.split(',').map(n => parseInt(n)) |
| | | |
| | | export default { |
| | | components: { Test }, |
| | | components: { Scheduling }, |
| | | data() { |
| | | return { |
| | | show: false, |
| | |
| | | }, |
| | | 'rows': [ |
| | | { |
| | | 'YearDate': '2022-09-24', |
| | | 'YearDate': '2022-11-29', |
| | | 'children': [ |
| | | { |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | |
| | | ] |
| | | }, |
| | | { |
| | | 'YearDate': '2022-09-25', |
| | | 'YearDate': '2022-11-30', |
| | | 'children': [ |
| | | { |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | |
| | | ] |
| | | }, |
| | | { |
| | | 'YearDate': '2022-09-26', |
| | | 'YearDate': '2022-12-01', |
| | | 'children': [ |
| | | { |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | |
| | | ] |
| | | }, |
| | | { |
| | | 'YearDate': '2022-09-27', |
| | | 'YearDate': '2022-12-02', |
| | | 'children': [ |
| | | { |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | |
| | | ] |
| | | }, |
| | | { |
| | | 'YearDate': '2022-09-28', |
| | | 'YearDate': '2022-12-03', |
| | | 'children': [ |
| | | { |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | |
| | | ] |
| | | }, |
| | | { |
| | | 'YearDate': '2022-09-29', |
| | | 'YearDate': '2022-12-04', |
| | | 'children': [ |
| | | { |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | | 'AdvaDevicName': '金鼎数控车床029', |
| | | 'AdvaDevicCropMob': '78', |
| | | 'AdvaDevicCropMob': '30', |
| | | 'AdvaDevicRhythm': '10', |
| | | 'OneStartDate': '08:00~11:30', |
| | | 'TwoStartDate': '12:30~17:00', |
| | |
| | | } |
| | | } |
| | | } |
| | | console.log(newList, 321) |
| | | for (const i in list) { |
| | | this.pushTiem(newList, list[i].id, list[i].gtArray) |
| | | } |
| | |
| | | for (const i in this.bm_data) { |
| | | const newArr = [] |
| | | for (const j in this.bm_data[i].gtArray) { |
| | | if (this.bm_data[i].gtArray[j].type != 'schedule') { |
| | | if (this.bm_data[i].gtArray[j].type !== 'schedule') { |
| | | newArr.push(this.bm_data[i].gtArray[j]) |
| | | } |
| | | } |