Forráskód Böngészése

bom记录详情及文件权限控制

lipenghui 3 hónapja
szülő
commit
fe3fbcd883

+ 0 - 1
src/views/pms/device/AllotLogList.vue

@@ -71,7 +71,6 @@ const loadDeviceAllots = async (deviceId) => {
   }
 }
 onMounted(() => {
-  debugger
   loadDeviceAllots(props.deviceId)
 })
 </script>

+ 3 - 2
src/views/pms/device/BomInfo.vue

@@ -140,7 +140,8 @@ const getList = async () => {
   }
 }
 const successList = async (id) => {
-  queryParams.classId = id
+  debugger
+  queryParams.bomId = id
   await getList()
 }
 /** 搜索按钮操作 */
@@ -157,7 +158,7 @@ const resetQuery = () => {
 /** 初始化 */
 onMounted(async () => {
   // await getDetail()
-  await getList()
+  // await getList()
   deviceId.value = params.id as unknown as number
 })
 </script>

+ 3 - 3
src/views/pms/device/BomTree.vue

@@ -151,9 +151,6 @@ const setHeight = () => {
 onMounted(async () => {
   await getTree()
   setHeight();
-  if (bomList.value.length > 0) {
-    emits('success', bomList.value[0].id)
-  }
   window.addEventListener('resize', setHeight);
 });
 
@@ -285,6 +282,9 @@ const getTree = async () => {
       // bomList.value = []
       // bomList.value.push(...handleTree(res))
       bomList.value = handleTree(res)
+      if (bomList.value.length > 0) {
+        emits('success', bomList.value[0].id)
+      }
     })
   })
 }

+ 3 - 2
src/views/pms/device/DeviceUpload.vue

@@ -276,8 +276,9 @@ const getList = async () => {
 }
 const successList = async (id) => {
   queryParams.classId = id
+  debugger
   await getList()
-  queryParams.classId = ''
+  // queryParams.classId = ''
 }
 /** 搜索按钮操作 */
 const handleQuery = () => {
@@ -293,7 +294,7 @@ const resetQuery = () => {
 /** 初始化 */
 onMounted(async () => {
   // await getDetail()
-  await getList()
+  //await getList()
   deviceId.value = params.id as unknown as number
 })
 </script>

+ 0 - 1
src/views/pms/device/InspectList.vue

@@ -133,7 +133,6 @@ const getList = async () => {
   try {
     queryParams.deviceIds = props.deviceId
     const data = await IotInspectOrderApi.getDeviceIotInspectOrderPage(queryParams)
-    debugger
     list.value = data.list
     total.value = data.total
   } finally {