diff --git a/src/api/dictionary/index.ts b/src/api/dictionary/index.ts index 91bfe28..73fae5e 100644 --- a/src/api/dictionary/index.ts +++ b/src/api/dictionary/index.ts @@ -1,5 +1,5 @@ import { http } from '@/utils/http/axios' -import type { PageParam } from '/#/api' +import type { BusinessParam, PageParam } from '/#/api' /** * 获取地区列表 @@ -315,3 +315,23 @@ export async function getBackList() { const list = res.data return list } + +/** + * 业务字典查询接口 + * @returns + */ +export async function getBusinessList(field: string, page: PageParam = { pageNo: 1, pageSize: 200 }) { + const res = await http.request({ + url: `/ocr/dictionary/getDictionaryByField`, + method: 'get', + params: { ...page, field }, + }) + + const { otherMessage: { records } } = res + return records.map((record) => { + return { + label: record.lable || 'todo', + value: record.value || 'todo', + } + }) +} diff --git a/src/api/home/filter.ts b/src/api/home/filter.ts index 75ddbff..71e014a 100644 --- a/src/api/home/filter.ts +++ b/src/api/home/filter.ts @@ -65,10 +65,11 @@ export async function deleteCondition(params: { ids: string }) { * 获取设置为显示的筛选 * @returns */ -export async function getFilter(): Promise { +export async function getFilter(type: number): Promise { return http.request({ url: `/ocr/ocrSearchmanager/query`, method: 'get', + params: { type }, }) } diff --git a/src/api/login/login.ts b/src/api/login/login.ts index df61ae0..e6be625 100644 --- a/src/api/login/login.ts +++ b/src/api/login/login.ts @@ -42,3 +42,14 @@ export async function forgetPassword(params: any) { params, }) } + +/** + * 忘记密码第二步 + */ +export async function updateSUser(params: any) { + return http.request({ + url: `/ocr/sUser/updateSUser`, + method: 'post', + params, + }) +} diff --git a/src/api/message/message.ts b/src/api/message/message.ts index 6e1f835..7136fb5 100644 --- a/src/api/message/message.ts +++ b/src/api/message/message.ts @@ -1,11 +1,10 @@ import { http } from '@/utils/http/axios' -import type { PageParam, PictureSortParam, SetTFParam } from '/#/api' /** * 获系统消息 * @returns */ -export async function getMessageList(params: PageParam) { +export async function getMessageList(params) { const res = await http.request({ url: `/ocr/msg/systemPage`, method: 'get', @@ -14,3 +13,45 @@ export async function getMessageList(params: PageParam) { return res } + +/** + * 消息详情 + * @returns + */ +export async function msgOne(params) { + const res = await http.request({ + url: `/ocr/msg/msgOne`, + method: 'get', + params, + }) + + return res +} + +/** + * 消息未读单读 + * @returns + */ +export async function readMsg(params) { + const res = await http.request({ + url: `/ocr/msg/eliminateUnreadone`, + method: 'post', + params, + }) + + return res +} + +/** + * 消息未读全读 + * @returns + */ +export async function readAllMsg(params) { + const res = await http.request({ + url: `/ocr/msg/eliminateUnreadfull`, + method: 'post', + params, + }) + + return res +} diff --git a/src/assets/images/avatar.jpg b/src/assets/images/avatar.jpg new file mode 100644 index 0000000..428ae6e Binary files /dev/null and b/src/assets/images/avatar.jpg differ diff --git a/src/assets/images/message/arrow-down.png b/src/assets/images/message/arrow-down.png new file mode 100644 index 0000000..32d9241 Binary files /dev/null and b/src/assets/images/message/arrow-down.png differ diff --git a/src/config/1.json b/src/config/1.json new file mode 100644 index 0000000..911d159 --- /dev/null +++ b/src/config/1.json @@ -0,0 +1,52 @@ +export const asideMap: Recordable = { + izupuser: { + label: '提报人', + defaultValue: null, + isDefaultFilter: true, + key: 'izupuser', + component: ReportUserVue, + }, + izproject: { + label: '所属项目', + defaultValue: null, + isDefaultFilter: true, + key: 'izproject', + component: IzProjectVue, + }, + izplan: { + label: '所属计划', + defaultValue: null, + isDefaultFilter: true, + key: 'izplan', + component: PlanVue, + }, + izstatus: { + label: '审批状态', + defaultValue: null, + isDefaultFilter: false, + key: 'izstatus', + component: PlanVue, // todo + }, + izuptime: { + label: '提报时间', + defaultValue: null, + isDefaultFilter: false, + key: 'izuptime', + component: TimeVue, + }, + iztaskrrom: { + label: '任务来源', + defaultValue: null, + isDefaultFilter: false, + key: 'iztaskrrom', + component: IztaskrromVue, + }, + izshowall: { + label: '显示全部任务数据', + defaultValue: true, + isDefaultFilter: false, + key: 'izshowall', + component: PictureDownloadVue, + inFilterList: false, + }, +} diff --git a/src/config/aside.ts b/src/config/aside.ts index 96d5bc2..257039f 100644 --- a/src/config/aside.ts +++ b/src/config/aside.ts @@ -42,13 +42,13 @@ export const asideMap: Recordable = { key: 'izplan', component: PlanVue, }, - // izsimilarity: { - // label: '相似度阈值', - // defaultValue: [0,100], - // isDefaultFilter: false, - // key: 'izsimilarity', - // component: SimilarityVue, - // }, + izsimilarity: { + label: '相似度阈值', + defaultValue: [0, 100], + isDefaultFilter: false, + key: 'izsimilarity', + component: SimilarityVue, + }, izyear: { label: '年份', defaultValue: null, diff --git a/src/config/final.ts b/src/config/final.ts index 4edf17d..e338520 100644 --- a/src/config/final.ts +++ b/src/config/final.ts @@ -1,3 +1,6 @@ +import type { AsideEntity } from './aside' +import { IzProjectVue, IztaskrromVue, PictureDownloadVue, PlanVue, ReportUserVue, TimeVue } from '@/views/home/aside/comp/items' + export interface RowData { id: string fromtaskname: string @@ -72,3 +75,57 @@ export function findKey(columns: any[], header: string) { const item = columns.find((column) => { return (column as any).title === header }) return (item as any).key } + +// 终审左侧配置 +export const asideMap: Recordable = { + izupuser: { + label: '提报人', + defaultValue: null, + isDefaultFilter: true, + key: 'izupuser', + component: ReportUserVue, + }, + izproject: { + label: '所属项目', + defaultValue: null, + isDefaultFilter: true, + key: 'izproject', + component: IzProjectVue, + }, + izplan: { + label: '所属计划', + defaultValue: null, + isDefaultFilter: true, + key: 'izplan', + component: PlanVue, + }, + izstatus: { + label: '审批状态', + defaultValue: null, + isDefaultFilter: false, + key: 'izstatus', + component: PlanVue, // todo + }, + izuptime: { + label: '提报时间', + defaultValue: null, + isDefaultFilter: false, + key: 'izuptime', + component: TimeVue, + }, + iztaskrrom: { + label: '任务来源', + defaultValue: null, + isDefaultFilter: false, + key: 'iztaskrrom', + component: IztaskrromVue, + }, + izshowall: { + label: '显示全部任务数据', + defaultValue: true, + isDefaultFilter: false, + key: 'izshowall', + component: PictureDownloadVue, + inFilterList: false, + }, +} diff --git a/src/layout/components/Header/index.vue b/src/layout/components/Header/index.vue index 8797ee5..daf3bad 100644 --- a/src/layout/components/Header/index.vue +++ b/src/layout/components/Header/index.vue @@ -1,17 +1,17 @@