|
@@ -47,7 +47,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import {ref, getCurrentInstance} from "vue";
|
|
|
-import {onLoad, onReady} from '@dcloudio/uni-app'
|
|
|
+import {onLoad, onReady, onShow} from '@dcloudio/uni-app'
|
|
|
import mainApi from '~api/ledger/index';
|
|
|
import {useAppStore} from "@/store";
|
|
|
import {deepClone, getArrValue, isString} from "js-fast-way";
|
|
@@ -56,6 +56,7 @@ import dayjs from "dayjs";
|
|
|
|
|
|
//初始变量
|
|
|
const store = useAppStore()
|
|
|
+const isNodes = ref(false)
|
|
|
const instance = getCurrentInstance().proxy
|
|
|
const contractInfo = ref(store.contractInfo);
|
|
|
const userInfo = ref(store.userInfo);
|
|
@@ -73,6 +74,12 @@ onReady(() => {
|
|
|
setContentStyle()
|
|
|
})
|
|
|
|
|
|
+onShow(() => {
|
|
|
+ if (isNodes.value) {
|
|
|
+ getDataApi()
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
//设置样式
|
|
|
const bottomStyle = ref({}) // 距离底部
|
|
|
const setContentStyle = async () => {
|
|
@@ -108,6 +115,7 @@ const getDataApi= async () => {
|
|
|
await queryLogList()
|
|
|
queryLogTimeTreeList().then()
|
|
|
getSubmitLogDateList().then()
|
|
|
+ isNodes.value = true
|
|
|
}
|
|
|
|
|
|
//获取tab数据
|