fix: bug#13946
This commit is contained in:
parent
1645f608b6
commit
33a70b8c79
|
@ -1,7 +1,7 @@
|
||||||
import server from '@/utils/request'
|
import server from '@/utils/request'
|
||||||
|
|
||||||
// 获取记录列表
|
// 获取记录列表
|
||||||
export const getList_api = (data: object): any => server.get(`/notifications/_query`, encodeParams(data))
|
export const getList_api = (data: object): any => server.post(`/notifications/_query`, data)
|
||||||
// 获取未读记录列表
|
// 获取未读记录列表
|
||||||
export const getListByUnRead_api = (data: object): any => server.post(`/notifications/_query`, data)
|
export const getListByUnRead_api = (data: object): any => server.post(`/notifications/_query`, data)
|
||||||
// 修改记录状态
|
// 修改记录状态
|
||||||
|
|
|
@ -14,8 +14,9 @@
|
||||||
model="TABLE"
|
model="TABLE"
|
||||||
:params="queryParams"
|
:params="queryParams"
|
||||||
:defaultParams="{
|
:defaultParams="{
|
||||||
'sorts[0].name': 'notifyTime',
|
sorts: [{
|
||||||
'sorts[0].order': 'desc',
|
name: 'notifyTime', order: 'desc'
|
||||||
|
}]
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template #topicProvider="slotProps">
|
<template #topicProvider="slotProps">
|
||||||
|
@ -95,6 +96,7 @@ import moment from 'moment';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
import { useUserInfo } from '@/store/userInfo';
|
import { useUserInfo } from '@/store/userInfo';
|
||||||
import { useRouterParams } from '@/utils/hooks/useParams';
|
import { useRouterParams } from '@/utils/hooks/useParams';
|
||||||
|
import dayjs from 'dayjs'
|
||||||
|
|
||||||
const { updateAlarm } = useUserInfo();
|
const { updateAlarm } = useUserInfo();
|
||||||
const columns = [
|
const columns = [
|
||||||
|
@ -132,7 +134,7 @@ const columns = [
|
||||||
dataIndex: 'notifyTime',
|
dataIndex: 'notifyTime',
|
||||||
key: 'notifyTime',
|
key: 'notifyTime',
|
||||||
search: {
|
search: {
|
||||||
type: 'date',
|
type: 'date'
|
||||||
},
|
},
|
||||||
scopedSlots: true,
|
scopedSlots: true,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
|
|
@ -94,9 +94,9 @@ export default defineConfig(({ mode}) => {
|
||||||
[env.VITE_APP_BASE_API]: {
|
[env.VITE_APP_BASE_API]: {
|
||||||
// target: 'http://192.168.32.226:8844',
|
// target: 'http://192.168.32.226:8844',
|
||||||
// target: 'http://192.168.32.244:8881',
|
// target: 'http://192.168.32.244:8881',
|
||||||
target: 'http://120.77.179.54:8844', // 120测试
|
// target: 'http://120.77.179.54:8844', // 120测试
|
||||||
// target: 'http://192.168.33.46:8844', // 本地开发环境
|
target: 'http://192.168.33.46:8844', // 本地开发环境
|
||||||
ws: 'ws://120.77.179.54:8844',
|
ws: 'ws://192.168.33.46:8844',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/api/, '')
|
rewrite: (path) => path.replace(/^\/api/, '')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue