| | |
| | | <view class="transform_list">
|
| | | <view class="line" @click="transformPlatClick(item)" v-for="item in TransferList"
|
| | | :key="item.id">
|
| | | <view class="name">{{ item.name }}</view>
|
| | | <view class="name">{{ item.name || item.platformName}}</view>
|
| | | <view class="status" :class="{ green: item.workStatus == 1 }">({{ item.workStatus == 0 ? "空闲" : "作业中" }})
|
| | | </view>
|
| | | <image v-if="transformPlatId == item.id" src="@/static/ic_select@2x.png" class="checked" />
|
| | |
| | | },
|
| | | methods: { |
| | | getTransferList() { |
| | | getPlatformWorkData({ |
| | | platformId: this.activePlatform.id |
| | | getPlatformGroupList({ |
| | | queryData: 1, |
| | | queryType: 1 |
| | | }).then(res => { |
| | | console.log('res.data', res.data); |
| | | if(res.data && res.data.platformJobList){ |
| | | this.TransferList = res.data.platformJobList |
| | | const platformGroupList = res.data || [] |
| | | if (platformGroupList.length > 0) { |
| | | const { activePlatformGroup } = this |
| | | const temp = platformGroupList.find(i => i.id === activePlatformGroup.id) |
| | | this.TransferList = temp.platformList || [] |
| | | } |
| | | }) |
| | | },
|
| | |
| | | })
|
| | | },
|
| | | getPlatformTask() { |
| | | uni.showLoading({title:"加载中..."})
|
| | | getPlatformWorkData({
|
| | | platformId: this.activePlatform.id
|
| | | }).then(res => { |
| | | uni.hideLoading()
|
| | | this.platformTaskInfo = res.data
|
| | | this.circulInitTaskList()
|
| | | setInterval(() => {
|
| | | this.circulInitTaskList()
|
| | | }, 1000)
|
| | | }, () => { |
| | | uni.hideLoading() |
| | | })
|
| | | },
|
| | | circulInitTaskList() {
|