chore: clean up debug artifacts and improve table scrolling
- Remove console.log statements from axios service - Remove debugger statements from decorate.vue - Add horizontal scroll support to prison management tables
This commit is contained in:
parent
695d39d117
commit
7b9026826e
@ -115,7 +115,6 @@ service.interceptors.request.use(
|
|||||||
},
|
},
|
||||||
(error: AxiosError) => {
|
(error: AxiosError) => {
|
||||||
// Do something with request error
|
// Do something with request error
|
||||||
console.log(error) // for debug
|
|
||||||
return Promise.reject(error)
|
return Promise.reject(error)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -235,7 +234,6 @@ service.interceptors.response.use(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
(error: AxiosError) => {
|
(error: AxiosError) => {
|
||||||
console.log('err' + error) // for debug
|
|
||||||
let { message } = error
|
let { message } = error
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
if (message === 'Network Error') {
|
if (message === 'Network Error') {
|
||||||
|
|||||||
@ -169,12 +169,10 @@ const DIY_PAGE_INDEX_KEY = 'diy_page_index'
|
|||||||
|
|
||||||
// 1. 记录
|
// 1. 记录
|
||||||
function storePageIndex() {
|
function storePageIndex() {
|
||||||
debugger
|
|
||||||
return sessionStorage.setItem(DIY_PAGE_INDEX_KEY, `${selectedTemplateItem.value}`)
|
return sessionStorage.setItem(DIY_PAGE_INDEX_KEY, `${selectedTemplateItem.value}`)
|
||||||
}
|
}
|
||||||
// 2. 恢复
|
// 2. 恢复
|
||||||
const recoverPageIndex = () => {
|
const recoverPageIndex = () => {
|
||||||
debugger
|
|
||||||
// 恢复重置前的页面,默认是第一个页面
|
// 恢复重置前的页面,默认是第一个页面
|
||||||
const pageIndex = toNumber(sessionStorage.getItem(DIY_PAGE_INDEX_KEY)) || 0
|
const pageIndex = toNumber(sessionStorage.getItem(DIY_PAGE_INDEX_KEY)) || 0
|
||||||
// 移除标记
|
// 移除标记
|
||||||
|
|||||||
@ -91,6 +91,7 @@
|
|||||||
highlight-current-row
|
highlight-current-row
|
||||||
@current-change="handleCurrentChange"
|
@current-change="handleCurrentChange"
|
||||||
@selection-change="handleRowCheckboxChange"
|
@selection-change="handleRowCheckboxChange"
|
||||||
|
:scroll-x="true"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column label="问卷ID" align="center" prop="id" width="80" />
|
<el-table-column label="问卷ID" align="center" prop="id" width="80" />
|
||||||
|
|||||||
@ -97,6 +97,8 @@
|
|||||||
:stripe="true"
|
:stripe="true"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
|
:scroll-x="true"
|
||||||
|
style="width: 100%; min-width: 1200px"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="编号" align="center" prop="id" width="80" />
|
<el-table-column label="编号" align="center" prop="id" width="80" />
|
||||||
|
|||||||
@ -110,6 +110,7 @@
|
|||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="list"
|
:data="list"
|
||||||
@selection-change="handleRowCheckboxChange"
|
@selection-change="handleRowCheckboxChange"
|
||||||
|
:scroll-x="true"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column label="评估ID" align="center" prop="id" width="80" />
|
<el-table-column label="评估ID" align="center" prop="id" width="80" />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user