修改组件中store的调用方式
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
@click="
|
@click="
|
||||||
isActive(item.query.identification)
|
isActive(item.query.identification)
|
||||||
? ''
|
? ''
|
||||||
: (useStatusStore().appLoadingCompleted = false)
|
: (statusStore.appLoadingCompleted = false)
|
||||||
"
|
"
|
||||||
v-for="(item, index) in topNavMap"
|
v-for="(item, index) in topNavMap"
|
||||||
:key="index"
|
:key="index"
|
||||||
@@ -39,6 +39,8 @@
|
|||||||
|
|
||||||
// 获取钩子函数
|
// 获取钩子函数
|
||||||
const { topNavMap, isActive } = useIndex();
|
const { topNavMap, isActive } = useIndex();
|
||||||
|
|
||||||
|
const statusStore = useStatusStore();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -31,8 +31,8 @@
|
|||||||
<!-- 左侧按钮组件 -->
|
<!-- 左侧按钮组件 -->
|
||||||
<LeftButtonComponent
|
<LeftButtonComponent
|
||||||
v-if="
|
v-if="
|
||||||
useStatusStore().appLoadingCompleted &&
|
statusStore.appLoadingCompleted &&
|
||||||
useStatusStore().uiComponents.leftButton.loading
|
statusStore.uiComponents.leftButton.loading
|
||||||
"
|
"
|
||||||
:button-list="leftButtonInfo"
|
:button-list="leftButtonInfo"
|
||||||
/>
|
/>
|
||||||
@@ -40,8 +40,8 @@
|
|||||||
<!-- 右侧按钮组件 -->
|
<!-- 右侧按钮组件 -->
|
||||||
<RightButtonComponent
|
<RightButtonComponent
|
||||||
v-if="
|
v-if="
|
||||||
useStatusStore().appLoadingCompleted &&
|
statusStore.appLoadingCompleted &&
|
||||||
useStatusStore().uiComponents.rightButton.loading
|
statusStore.uiComponents.rightButton.loading
|
||||||
"
|
"
|
||||||
:button-list="rightButtonInfo"
|
:button-list="rightButtonInfo"
|
||||||
/>
|
/>
|
||||||
@@ -83,6 +83,8 @@
|
|||||||
changeCurrentPage,
|
changeCurrentPage,
|
||||||
} = useEarthquakeDisasterChain();
|
} = useEarthquakeDisasterChain();
|
||||||
|
|
||||||
|
const statusStore = useStatusStore();
|
||||||
|
|
||||||
// 监听条件变化
|
// 监听条件变化
|
||||||
watch(
|
watch(
|
||||||
conditions,
|
conditions,
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
<!-- 灾害链影响列表组件 -->
|
<!-- 灾害链影响列表组件 -->
|
||||||
<DisasterChainPointComponent
|
<DisasterChainPointComponent
|
||||||
v-if="
|
v-if="
|
||||||
useStatusStore().appLoadingCompleted &&
|
statusStore.appLoadingCompleted &&
|
||||||
useStatusStore().uiComponents.disasterChainPointShow.loading
|
statusStore.uiComponents.disasterChainPointShow.loading
|
||||||
"
|
"
|
||||||
:select-options="selectOptions"
|
:select-options="selectOptions"
|
||||||
:table-data-list="tableDatas"
|
:table-data-list="tableDatas"
|
||||||
@@ -23,8 +23,8 @@
|
|||||||
<!-- 左侧按钮组件 -->
|
<!-- 左侧按钮组件 -->
|
||||||
<LeftButtonComponent
|
<LeftButtonComponent
|
||||||
v-if="
|
v-if="
|
||||||
useStatusStore().appLoadingCompleted &&
|
statusStore.appLoadingCompleted &&
|
||||||
useStatusStore().uiComponents.leftButton.loading
|
statusStore.uiComponents.leftButton.loading
|
||||||
"
|
"
|
||||||
:button-list="leftButtonInfo"
|
:button-list="leftButtonInfo"
|
||||||
/>
|
/>
|
||||||
@@ -32,16 +32,16 @@
|
|||||||
<!-- 左侧图例组件 -->
|
<!-- 左侧图例组件 -->
|
||||||
<LeftLegendComponent
|
<LeftLegendComponent
|
||||||
v-if="
|
v-if="
|
||||||
useStatusStore().appLoadingCompleted &&
|
statusStore.appLoadingCompleted &&
|
||||||
useStatusStore().uiComponents.leftLegend.loading
|
statusStore.uiComponents.leftLegend.loading
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 右侧按钮组件 -->
|
<!-- 右侧按钮组件 -->
|
||||||
<RightButtonComponent
|
<RightButtonComponent
|
||||||
v-if="
|
v-if="
|
||||||
useStatusStore().appLoadingCompleted &&
|
statusStore.appLoadingCompleted &&
|
||||||
useStatusStore().uiComponents.rightButton.loading
|
statusStore.uiComponents.rightButton.loading
|
||||||
"
|
"
|
||||||
:button-list="rightButtonInfo"
|
:button-list="rightButtonInfo"
|
||||||
/>
|
/>
|
||||||
@@ -88,6 +88,8 @@
|
|||||||
changeConditions,
|
changeConditions,
|
||||||
changeCurrentPage,
|
changeCurrentPage,
|
||||||
} = useRainDisasterChain();
|
} = useRainDisasterChain();
|
||||||
|
|
||||||
|
const statusStore = useStatusStore();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
|||||||
Reference in New Issue
Block a user