diff --git a/src/api/dictionary/index.ts b/src/api/dictionary/index.ts index 23ca588..6968f53 100644 --- a/src/api/dictionary/index.ts +++ b/src/api/dictionary/index.ts @@ -377,6 +377,17 @@ export async function getizstatusList() { url: `/static/admin/web/distionary/bytypecode/izstatus`, method: 'get', }) + return res.data[0].distionaryList +} +/** + * 获取审核状态字典(任务审核) + * @returns + */ +export async function getizApprovalStatusList() { + const res = await http.request({ + url: `/static/admin/web/distionary/bytypecode/izApprovalStatus`, + method: 'get', + }) return res.data[0].distionaryList } diff --git a/src/api/final/index.ts b/src/api/final/index.ts index 857eeb2..d5eae04 100644 --- a/src/api/final/index.ts +++ b/src/api/final/index.ts @@ -74,10 +74,10 @@ export async function getRepeatList(params: FinalParam) { params, }) - const { data: { records, totalPage, totalCount } } = res + const { data: { records, total, pages } } = res return { - pageCount: 3, + pageCount: pages, data: records, - totalCount: 20, + totalCount: total, } } diff --git a/src/config/final.ts b/src/config/final.ts index fcc931d..2b6a2e5 100644 --- a/src/config/final.ts +++ b/src/config/final.ts @@ -1,5 +1,5 @@ import type { AsideEntity } from './aside' -import { IzProjectVue, IzStatus, IztaskrromVue, PictureDownloadVue, PlanVue, ReportUserVue, TimeVue, IzCustomname, IzCustomtype, IzVisitcity, IzCustomlevel, IzProjecttype, IzProductVue, IzvisitproVue, IzfirmVue } from '@/views/home/aside/comp/items' +import { IzApprovalStatus, IzProjectVue, IzStatus, IztaskrromVue, PictureDownloadVue, PlanVue, ReportUserVue, TimeVue, IzCustomname, IzCustomtype, IzVisitcity, IzCustomlevel, IzProjecttype, IzProductVue, IzvisitproVue, IzfirmVue } from '@/views/home/aside/comp/items' export interface RowData { id: string @@ -137,8 +137,8 @@ export const asideTaskMap: Recordable = { label: '审批状态', defaultValue: null, isDefaultFilter: true, - key: 'izstatus', - component: IzStatus, // todo + key: 'izApprovalStatus', + component: IzApprovalStatus, // todo }, izuptime: { label: '提报时间', diff --git a/src/layout/components/Header/RecycleModal.vue b/src/layout/components/Header/RecycleModal.vue index c9d2d99..f24faff 100644 --- a/src/layout/components/Header/RecycleModal.vue +++ b/src/layout/components/Header/RecycleModal.vue @@ -460,7 +460,7 @@ function refreshHandler() { class="wrapper-content-item-img" :class="{ 'wrapper-content-item-img-fit': viewMode !== 'masonry' }" :src="item.imgUrl" > --> - diff --git a/src/store/modules/dictonary.ts b/src/store/modules/dictonary.ts index e54fb1b..c43121e 100644 --- a/src/store/modules/dictonary.ts +++ b/src/store/modules/dictonary.ts @@ -1,6 +1,6 @@ import { defineStore } from 'pinia' import { store } from '@/store' -import { getBackList, getBusinessList, getIzShowList, getIztaskstatusList, getPictureTypeList, getRegionList, getRejectList, getRelationTypeList, getTFList, getizstatusList } from '@/api/dictionary' +import { getBackList, getBusinessList, getIzShowList, getIztaskstatusList, getPictureTypeList, getRegionList, getRejectList, getRelationTypeList, getTFList, getizstatusList, getizApprovalStatusList } from '@/api/dictionary' export interface DictionaryState { regionList: any @@ -24,6 +24,7 @@ export interface DictionaryState { backList: any relationTypeList: any izstatusList: any + izApprovalStatusList: any } export const useDictionaryStore = defineStore({ @@ -50,6 +51,7 @@ export const useDictionaryStore = defineStore({ backList: null, relationTypeList: null, izstatusList: null, + izApprovalStatusList: null, }), getters: { getRegionList: (state) => { @@ -100,8 +102,35 @@ export const useDictionaryStore = defineStore({ getizstatus: (state) => { return state.izstatusList }, + getizApprovalStatus: (state) => { + return state.izApprovalStatusList + } }, actions: { + initData(){ + this.fetchRegionList(); + this.fetchPictureTypeList(); + this.fetchPersionList(); + this.fetchPlanList(); + this.fetchTFList(); + this.fetchIzShowList(); + this.fetchIzProjectList(); + this.fetchIztaskrromList(); + this.fetchIztaskstatusList(); + this.fetchIzvisitproList(); + this.fetchIzfirmList(); + this.fetchIzproductnameList(); + this.fetchizcustomnameList(); + this.fetchIzCustomtypeList(); + this.fetchIzcustomlevelList(); + this.fetchizizprojecttypeList(); + this.fetchizvisitcityList(); + this.fetchRejectList(); + this.fetchBackList(); + this.fetchRelationTypeList(); + this.fetchizstatusListt(); + this.fetchizApprovalStatusList(); + }, settfList(config) { this.tfList = config }, @@ -231,6 +260,12 @@ export const useDictionaryStore = defineStore({ this.izstatusList = generateOptions2(list, 'codeno', 'name') return this.izstatusList }, + // 审核状态(任务审核模块) + async fetchizApprovalStatusList() { + const list = await getizApprovalStatusList() + this.izApprovalStatusList = generateOptions2(list, 'codeno', 'name') + return this.izApprovalStatusList + }, }, }) diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue index 1bbccb6..75e3945 100644 --- a/src/views/final/content/Content.vue +++ b/src/views/final/content/Content.vue @@ -1,6 +1,6 @@