|
@@ -60,8 +60,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { nextTick, onActivated, onMounted, ref } from 'vue'
|
|
|
+import { nextTick, onActivated, onMounted, ref, watch } from 'vue'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
+import { useRoute } from 'vue-router'
|
|
|
import { getArrValue, getObjValue, getRandom } from 'js-fast-way'
|
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
|
import { delMessage } from '~uti/tools'
|
|
@@ -71,7 +72,7 @@ import HcDetailsModal from './components/middlepay/detailsModal.vue'
|
|
|
|
|
|
import unitApi from '~api/project/debit/contract/unit'
|
|
|
import mainApi from '~api/debit-pay/admin/middlepay'
|
|
|
-
|
|
|
+const useRoutes = useRoute()
|
|
|
const useAppState = useAppStore()
|
|
|
const projectId = ref(useAppState.getProjectId || '')
|
|
|
const contractId = ref(useAppState.getContractId || '')
|
|
@@ -92,7 +93,12 @@ onActivated(async () => {
|
|
|
await getKey1Data()
|
|
|
getCurrentMeterMoney().then()
|
|
|
})
|
|
|
-
|
|
|
+const isReportDrawer = ref(false)
|
|
|
+watch(() => useRoutes, (val) => {
|
|
|
+if (val) {
|
|
|
+ isReportDrawer.value = false
|
|
|
+}
|
|
|
+}, { immediate: true, deep: true })
|
|
|
//初始化设置拖动分割线
|
|
|
const setSplitRef = () => {
|
|
|
//配置参考: https://split.js.org/#/?direction=vertical&snapOffset=0
|
|
@@ -315,5 +321,5 @@ const reportFinish = () => {
|
|
|
window.location.reload()
|
|
|
}
|
|
|
|
|
|
-const isReportDrawer = ref(false)
|
|
|
+// const isReportDrawer = ref(false)
|
|
|
</script>
|