|
@@ -74,7 +74,7 @@
|
|
|
<vxe-table
|
|
|
:loading="state.tableLoading"
|
|
|
:data="state.tableData"
|
|
|
- :row-config="{ isCurrent: true, isHover: true, height: 30,useKey:true }"
|
|
|
+ :row-config="{ isCurrent: true, isHover: true, height: 30, useKey: true }"
|
|
|
ref="tableRef"
|
|
|
height="auto"
|
|
|
auto-resize
|
|
@@ -112,7 +112,7 @@
|
|
|
</el-card>
|
|
|
</template>
|
|
|
<script setup lang="tsx">
|
|
|
-import { computed, defineAsyncComponent, onActivated, onMounted, reactive, ref } from 'vue';
|
|
|
+import { computed, defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
|
import { formatDate } from '@/utils/formatTime';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { getHomeData2 } from '@/api/home';
|
|
@@ -177,7 +177,8 @@ const getTableAndNum = async () => {
|
|
|
state.screenNum = result?.screenNum ?? 0; // 甄别待审批
|
|
|
state.sendBackAuditNum = result?.sendBackAuditNum ?? 0; // 退回待审批
|
|
|
state.tableLoading = false;
|
|
|
- } catch (error) {
|
|
|
+ } catch (error: any) {
|
|
|
+ console.log(error);
|
|
|
state.tableLoading = false;
|
|
|
}
|
|
|
};
|
|
@@ -352,6 +353,9 @@ onMounted(() => {
|
|
|
else if (nearlyExpired.value) activeName.value = 'nearlyExpired';
|
|
|
else if (screen.value) activeName.value = 'screen';
|
|
|
else if (sendBackAudit.value) activeName.value = 'sendBackAudit';
|
|
|
+ setTimeout(() => {
|
|
|
+ handleChange(activeName.value);
|
|
|
+ }, 300);
|
|
|
}
|
|
|
});
|
|
|
</script>
|