冀北需求变更整改

This commit is contained in:
GGJ
2025-01-07 16:32:42 +08:00
parent 7d90b6bfcc
commit 72f2c5d0f3
52 changed files with 536 additions and 254 deletions

View File

@@ -148,7 +148,7 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
})
})
}
} else if (response.data.code == 'A0024') {
} else if (response.data.code == 'A0024'||response.data.code == 'null') {
// // 登录失效
ElNotification({
type: 'error',

View File

@@ -13,6 +13,7 @@ interface TableStoreParams {
method?: Method // 请求方式
isWebPaging?: boolean // 是否前端分页
showPage?: boolean //是否需要分页
timeAll?: boolean //是否需要时间全部显示
paramsPOST?: boolean // post请求 params传参
publicHeight?: number //计算高度
resetCallback?: () => void // 重置
@@ -28,6 +29,7 @@ export default class TableStore {
public isWebPaging = false
public paramsPOST = true
public showPage = true
public timeAll = true
public table: CnTable = reactive({
ref: null,
selection: [],
@@ -57,6 +59,7 @@ export default class TableStore {
this.method = options.method || 'GET'
this.table.column = options.column
this.showPage = options.showPage !== false
this.table.publicHeight = options.publicHeight || 0
this.table.resetCallback = options.resetCallback || null
this.table.loadCallback = options.loadCallback || null
@@ -72,6 +75,15 @@ export default class TableStore {
// 重置用的数据数据
if (!this.initData) {
this.initData = JSON.parse(JSON.stringify(this.table.params))
}
if (!this.timeAll) {
delete this.table.params.startTime;
delete this.table.params.endTime;
delete this.table.params.searchBeginTime;
delete this.table.params.searchEndTime;
delete this.table.params.timeFlag;
}
createAxios(
Object.assign(