ll
liukangdong
2024-10-24 6139494798e7f91d7864fff4ed09ce9a08395ece
pda/pages/index/center.vue
@@ -184,7 +184,7 @@
            <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" />
@@ -259,12 +259,15 @@
      },
      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 || []
               }
            })
         },
@@ -287,18 +290,15 @@
            })
         },
         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() {