部分样式,图片上传,

This commit is contained in:
Zy
2026-06-04 14:24:46 +08:00
parent 85c24af489
commit a3361916c2
10 changed files with 60 additions and 39 deletions

View File

@@ -54,12 +54,12 @@
<script setup lang="ts">
import { ref, computed } from 'vue'
import TabsComponents from '@/components/tabs/tabs.vue'
import { onShow } from '@dcloudio/uni-app'
import { getInspectionList } from '@/api/insepction.js'
import { onShow, onLoad } from '@dcloudio/uni-app'
import { InspectionListType, getInspectionList } from '@/api/insepction.js'
import { parseTime } from '@/utils/time.js'
// tabs =========================================================
const activeValue = ref(0)
const activeValue = ref(2)
const tabslist = ref([
{
name: '全部',
@@ -86,7 +86,7 @@ const isComputed = (status: string) => {
const awaitlist = ['未完成', '待执行', '执行中']
return !awaitlist.includes(status)
}
const list = ref([])
const list = ref<InspectionListType[]>([])
const queryParmas = ref({
date: '',
status: 2,
@@ -133,7 +133,7 @@ function getlist() {
})
}
/** 跳转到巡检上传页面 */
function handleTap(ite) {
function handleTap(ite: InspectionListType) {
if (isComputed(ite.taskStatus)) {
uni.navigateTo({
url: '/pageSubPack/inspection/inspection_main?id=' + ite.id
@@ -151,8 +151,13 @@ function init() {
getlist()
}
onLoad(options => {
activeValue.value = Number(options.type)
console.log(activeValue.value)
})
onShow(() => {
init()
handleTabs(activeValue.value)
})
</script>