fix: record

This commit is contained in:
zzc
2026-01-25 13:33:08 +08:00
parent 0ec5aa2228
commit 718fdd7826
5 changed files with 22 additions and 22 deletions

View File

@@ -7,19 +7,3 @@ export function getList(data) {
params: data,
})
}
export function getShareList(data) {
return request({
url: '/management/api/spring/blessing/share-record/list',
method: 'get',
params: data,
})
}
export function getViewList(data) {
return request({
url: '/management/api/spring/blessing/view-record/list',
method: 'get',
params: data,
})
}

View File

@@ -7,3 +7,19 @@ export function getUserList(data) {
params: data,
})
}
export function getShareList(data) {
return request({
url: '/management/api/spring/system/share-record/list',
method: 'get',
params: data,
})
}
export function getViewList(data) {
return request({
url: '/management/api/spring/system/view-record/list',
method: 'get',
params: data,
})
}

View File

@@ -192,13 +192,13 @@ export const asyncRoutes = [
{
path: 'shareRecord',
name: 'ShareRecord',
component: () => import('@/views/spring/blessing/shareRecord/index'),
component: () => import('@/views/spring/user/shareRecord/index'),
meta: { title: '分享记录' },
},
{
path: 'viewRecord',
name: 'ViewRecord',
component: () => import('@/views/spring/blessing/viewRecord/index'),
component: () => import('@/views/spring/user/viewRecord/index'),
meta: { title: '查看记录' },
},
],

View File

@@ -108,7 +108,7 @@
</template>
<script>
import { getShareList } from '@/api/spring/blessing/generateRecord'
import { getShareList } from '@/api/spring/user'
import { formatTime } from '@/utils'
export default {

View File

@@ -124,11 +124,11 @@
</template>
<script>
import { getList } from '@/api/spring/blessing/generateRecord'
import { getViewList } from '@/api/spring/user'
import { formatTime } from '@/utils'
export default {
name: 'GenerateRecord',
name: 'ViewRecord',
data() {
return {
host: 'https://file.lihailezzc.com/',
@@ -209,7 +209,7 @@
},
async fetchData() {
this.listLoading = true
const { data } = await getList(this.queryForm)
const { data } = await getViewList(this.queryForm)
this.list = data.list
this.total = data.totalCount
this.timeOutID = setTimeout(() => {