张含笑
2025-10-13 3d08674227b35c1dee6dbd26a3e011bbfaf1dddf
src/pages/work/index.vue
@@ -28,11 +28,15 @@
</template>
<script setup>
import { useUserStore } from '@/store/index.js'
import {getList,getstatusCount} from '/src/api/work/index.js'
   import dayjs from 'dayjs';
   const userStore = useUserStore()
   const userInfo = userStore.userInfo
   const dataList = ref([])
   const keyword = ref('')
   const currentTab=ref('myTickets')
   const tabList = ref([{
         name: '我的工单',
         key: 'myTickets',
@@ -99,7 +103,8 @@
         size: 9999,
         source: 1,
         status:listParams.value.status,
         event_name:listParams.value.keyword
         event_name:listParams.value.keyword,
         user_id:currentTab.value=== 'myTickets' ?userInfo.user_id : undefined
      }
      getList(params).then(res => {
      
@@ -127,6 +132,7 @@
      }
   const handleClick = (item) => {
      currentTab.value = item.key
   listParams.value.status = item.status
      getDataList()
   }