mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-04-22 22:22:51 +08:00
fix: 🐛 档案管理空列表loading状态
This commit is contained in:
parent
377c28c570
commit
ac4bb50b66
@ -338,17 +338,18 @@ export default {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
async mounted() {
|
||||||
this.pagerCount = document.body.clientWidth < 1000 ? 3 : 11
|
this.pagerCount = document.body.clientWidth < 1000 ? 3 : 11
|
||||||
//判断是否开启自定义列
|
//判断是否开启自定义列
|
||||||
if (this.column) {
|
if (this.column) {
|
||||||
this.getCustomColumn()
|
await this.getCustomColumn()
|
||||||
} else {
|
} else {
|
||||||
this.userColumn = this.column
|
this.userColumn = this.column
|
||||||
}
|
}
|
||||||
//判断是否静态数据
|
//判断是否静态数据
|
||||||
if (this.queryApi) {
|
if (this.queryApi) {
|
||||||
this.getData()
|
const res = await this.getData()
|
||||||
|
this.$emit('dataChange', res, this.tableData)
|
||||||
} else if (this.data) {
|
} else if (this.data) {
|
||||||
this.tableData = this.data
|
this.tableData = this.data
|
||||||
this.total = this.tableData.length
|
this.total = this.tableData.length
|
||||||
@ -519,7 +520,7 @@ export default {
|
|||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
this.$refs.scTable?.setScrollTop(0)
|
this.$refs.scTable?.setScrollTop(0)
|
||||||
this.$emit('dataChange', res, this.tableData)
|
return res
|
||||||
},
|
},
|
||||||
//清空数据
|
//清空数据
|
||||||
_clearData() {
|
_clearData() {
|
||||||
|
@ -163,7 +163,7 @@ export default {
|
|||||||
inject: ['reload'],
|
inject: ['reload'],
|
||||||
methods: {
|
methods: {
|
||||||
async getStatistics() {
|
async getStatistics() {
|
||||||
this.statistics.total = this.$refs.table?.total
|
this.statistics.total = this.$refs.table?.tableData?.length
|
||||||
const res = await Promise.all([
|
const res = await Promise.all([
|
||||||
this.$API.sys_dept.countBy.post({
|
this.$API.sys_dept.countBy.post({
|
||||||
dynamicFilter: {
|
dynamicFilter: {
|
||||||
|
@ -300,7 +300,13 @@ export default {
|
|||||||
}),
|
}),
|
||||||
this.$API.sys_job.countBy.post({
|
this.$API.sys_job.countBy.post({
|
||||||
dynamicFilter: {
|
dynamicFilter: {
|
||||||
filters: this.query.dynamicFilter.filters,
|
filters: [
|
||||||
|
...this.query.dynamicFilter.filters,
|
||||||
|
{
|
||||||
|
field: 'LastStatusCode',
|
||||||
|
operator: 'notEqual',
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
requiredFields: ['LastStatusCode'],
|
requiredFields: ['LastStatusCode'],
|
||||||
}),
|
}),
|
||||||
|
@ -139,7 +139,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('请求服务')" align="center">
|
<el-table-column :label="$t('请求服务')" align="center">
|
||||||
<el-table-column :label="$t('路径')" prop="apiPathCrc32" show-overflow-tooltip sortable="custom">
|
<el-table-column :label="$t('路径')" min-width="300" prop="apiPathCrc32" show-overflow-tooltip sortable="custom">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<p>
|
<p>
|
||||||
{{ apis?.find((x) => x.pathCrc32 === row.apiPathCrc32)?.id }}
|
{{ apis?.find((x) => x.pathCrc32 === row.apiPathCrc32)?.id }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user