| | |
| | |
|
| | | transformPlatId: '', // 转移记录月台id
|
| | | transformId: '', // 转移记录任务id
|
| | | wmsInfo: {}
|
| | | wmsInfo: {}, |
| | | timer: null
|
| | | }
|
| | | },
|
| | | onLoad() {
|
| | | this.getPlatformGroup()
|
| | | setInterval(() => {
|
| | | this.getPlatformGroup()
|
| | | }, 1000 * 30)
|
| | | // setInterval(() => {
|
| | | // this.getPlatformGroup()
|
| | | // }, 1000 * 30)
|
| | | },
|
| | | methods: {
|
| | | getPlatformGroup() {
|
| | | getPlatformGroupList({
|
| | | queryData: 1,
|
| | | queryType: 0
|
| | | queryType: 1
|
| | | }).then(res => {
|
| | | this.platformGroupList = res.data || []
|
| | | if (this.platformGroupList.length > 0) {
|
| | | this.activePlatformGroup = this.platformGroupList[0]
|
| | | if (this.activePlatformGroup.platformList && this.activePlatformGroup.platformList.length > 0) {
|
| | | this.activePlatform = this.activePlatformGroup.platformList[0]
|
| | | this.getPlatformTask()
|
| | | this.activePlatform = this.activePlatformGroup.platformList[0] |
| | | this.getPlatformTask() |
| | | this.timer = setInterval(() => { |
| | | this.getPlatformTask() |
| | | },60 * 1000)
|
| | | }
|
| | | }
|
| | | })
|
| | |
| | | }
|
| | | },
|
| | | platConfirm(e) {
|
| | | const index = e.indexs[0]
|
| | | const index = e.indexs[0] |
| | | console.log(index); |
| | | console.log(this.activePlatformGroup);
|
| | | this.activePlatformGroup = this.platformGroupList[index]
|
| | | if (this.activePlatformGroup.platformList && this.activePlatformGroup.platformList.length > 0) {
|
| | | this.activePlatform = this.activePlatformGroup.platformList[0]
|
| | | this.getPlatformTask()
|
| | | this.activePlatform = this.activePlatformGroup.platformList[0] |
| | | this.getPlatformTask() |
| | | this.timer = setInterval(() => { |
| | | this.getPlatformTask() |
| | | }, 60 * 1000)
|
| | | }
|
| | | this.showPlatformgroup = false
|
| | | },
|