Browse Source

新增作业票选中隔离点列表未渲染修复

pm 10 tháng trước cách đây
mục cha
commit
7e3c92ab8f
1 tập tin đã thay đổi với 16 bổ sung1 xóa
  1. 16 1
      src/views/mes/job/jobm/NewMarsJob.vue

+ 16 - 1
src/views/mes/job/jobm/NewMarsJob.vue

@@ -641,7 +641,7 @@
                 </template>
               </el-table-column>
             </el-table>
-      
+
       <div slot="footer" class="dialog-footer">
         <el-button v-no-more-click @click="cancel">关 闭</el-button>
       </div>
@@ -898,6 +898,21 @@ export default {
             this.EightStepForm = res.data
             console.log(res, '作业票-详细信息')
           })
+          // 获取设备工艺图
+          getTechnologyInfo(this.machineryId).then((res) => {
+            this.machineryImg = res.data.machineryImg
+            // 获取电柜选中隔离点
+            const lotoId = res.data.lotoId
+            const selectPointsIds = res.data.pointIdList
+
+            getLotoMapInfo(lotoId).then((response) => {
+              console.log(response, '电柜信息--NewMarsJob')
+              this.selectPointList = response.data.filter((item) =>
+                selectPointsIds.includes(item.pointId)
+              )
+              console.log(this.selectPointList, '拿到的选中隔离点数据')
+            })
+          })
         })
       }
     },