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