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

资料库权限查看

lipenghui 3 hónapja
szülő
commit
45f371a8b6

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

@@ -276,7 +276,6 @@ const getList = async () => {
 }
 const successList = async (id) => {
   queryParams.classId = id
-  debugger
   await getList()
   // queryParams.classId = ''
 }

+ 2 - 1
src/views/pms/device/monitor/TdDeviceInfo.vue

@@ -243,6 +243,7 @@ input[type="datetime-local"]:focus {
 //  margin-top: 20px;
 //}
 .custom-label{
-  font-size: 15px;
+  font-size: 17px;
+  font-weight: bold;
 }
 </style>

+ 2 - 1
src/views/system/tree/PmsTree.vue

@@ -196,6 +196,7 @@ const getTreeInfo = async () => {
   treeList.value = []
   treeList.value.push(...handleTree(res))
   firstLevelKeys.value = treeList.value.map(node => node.id);
+  emits('success', treeList.value[0].id)
 }
 
 /** 基于名字过滤 */
@@ -209,7 +210,7 @@ const handleNodeClick = async (row: { [key: string]: any }) => {
   console.log(row)
   emits('node-click', row)
 }
-const emits = defineEmits(['node-click'])
+const emits = defineEmits(['node-click', 'success'])
 
 /** 监听deptName */
 watch(deptName, (val) => {

+ 7 - 3
src/views/system/tree/index.vue

@@ -3,7 +3,7 @@
   <el-row >
     <div class="left-tree" :style="{ width: leftWidth + 'px' }">
       <ContentWrapNoBottom >
-        <PmsTree @node-click="handleFileNodeClick" :deviceId="id" />
+        <PmsTree @node-click="handleFileNodeClick" @success="successList" :deviceId="id" />
       </ContentWrapNoBottom>
     </div>
 <!--    </el-col>-->
@@ -136,7 +136,11 @@ const startDrag = (e) => {
   document.addEventListener('mousemove', onDrag)
   document.addEventListener('mouseup', stopDrag)
 }
-
+const successList = async (id) => {
+  queryParams.classId = id
+  await getList()
+  // queryParams.classId = ''
+}
 const onDrag = (e) => {
   if (!isDragging) return
 
@@ -290,7 +294,7 @@ const { wsCache } = useCache()
 onMounted(async () => {
   // await getDetail()
   // queryParams.deptId = wsCache.get(CACHE_KEY.USER).user.deptId;
-  await getList()
+  // await getList()
   // deviceId.value = params.id as unknown as number
 })
 </script>