|
@@ -94,7 +94,7 @@
|
|
|
<script setup>
|
|
|
import {getCurrentInstance, ref} from "vue";
|
|
|
import mainApi from '~api/tasks/data';
|
|
|
-import {onReady} from '@dcloudio/uni-app'
|
|
|
+import {onShow, onReady} from '@dcloudio/uni-app'
|
|
|
import {errorToast, querySelect, successToast} from "@/utils/tools";
|
|
|
import {arrToKey, getArrValue, getObjValue} from "js-fast-way";
|
|
|
import {useAppStore} from "@/store";
|
|
@@ -104,10 +104,18 @@ const store = useAppStore()
|
|
|
const projectId = ref(store.projectId);
|
|
|
const contractId = ref(store.contractId);
|
|
|
const instance = getCurrentInstance().proxy
|
|
|
+const isNodes = ref(false)
|
|
|
const pageRef = ref(null)
|
|
|
|
|
|
onReady(() => {
|
|
|
setPagingStyle()
|
|
|
+ isNodes.value = true
|
|
|
+})
|
|
|
+
|
|
|
+onShow(() => {
|
|
|
+ if (isNodes.value) {
|
|
|
+ searchClick()
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
//内容区域
|
|
@@ -243,6 +251,7 @@ const getTaskList = async (pageNo, pageSize) => {
|
|
|
res = getObjValue(data)
|
|
|
}
|
|
|
uni.hideLoading();
|
|
|
+ isNodes.value = true
|
|
|
pageRef.value?.complete(getArrValue(res?.records));
|
|
|
if (isAllCheck.value) {
|
|
|
isAllCheck.value = itemCheckIndex.value === taskList.value.length
|