Browse Source

功能修改20250321-02

zhiyuan-007 1 month ago
parent
commit
617e86ddfa
1 changed files with 12 additions and 8 deletions
  1. 12 8
      src/views/home/cpns/PanelHxhs.vue

+ 12 - 8
src/views/home/cpns/PanelHxhs.vue

@@ -621,6 +621,7 @@ function handleInspect(level) {
 
 //查询网格
 function queryCube() {
+	layoutStore.toggleGlobalLoading(true)
 	getPathCube({
 		status: 'show',
 		paths: [currentPath],
@@ -873,14 +874,17 @@ watch(
 	}
 )
 
-// watch(
-// 	() => mapStore.cubeResult,
-// 	(val) => {
-// 		formatResult(val.data)
-// 		layoutStore.toggleGlobalLoading(false)
-// 	},
-// 	{ deep: true }
-// )
+watch(
+	() => mapStore.cubeResult,
+	(val) => {
+		debugger
+		if (val.data == 'error') {
+			ElMessage({ type: 'error', message: '核查结果为空' })
+		}
+		layoutStore.toggleGlobalLoading(false)
+	},
+	{ deep: true }
+)
 
 onBeforeUnmount(() => {
 	toPrev()