|
@@ -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>
|