预警后台-部分勘误-d8

This commit is contained in:
FrancisHu 2024-09-23 17:07:04 +08:00
parent e9bd05f01f
commit 69b892c112
3 changed files with 10 additions and 6 deletions

View File

@ -418,10 +418,10 @@ export default {
if (res.code === 200) { if (res.code === 200) {
if (res.data) { if (res.data) {
this.tableList = res.data.rows || res.data; this.tableList = res.data.rows || res.data;
this.total = res.data.total; this.total = res.data.total || res.data.length
} else { } else {
this.tableList = res.rows || res.data; this.tableList = res.rows || res.data;
this.total = res.total; this.total = res.total || res.rows.length;
} }
} }
} }

View File

@ -134,9 +134,10 @@ export default {
mixins: [commonMixin], mixins: [commonMixin],
components: { }, components: { },
created() { created() {
// this.getRanges()
}, },
mounted() { async mounted() {
this.getRanges() this.open = true
if (this.crewParams) { if (this.crewParams) {
this.crewParams.proId = Number(this.crewParams.proId) this.crewParams.proId = Number(this.crewParams.proId)
this.ableSelect = this.crewParams.relId this.ableSelect = this.crewParams.relId
@ -145,10 +146,13 @@ export default {
} else { } else {
this.subSort = 1 this.subSort = 1
} }
await this.getRanges()
this.open = false
}, },
data() { data() {
return { return {
columnsListCrew, columnsListCrew,
open: false,
exportList: [], exportList: [],
subSort: '', // 1 / 2 subSort: '', // 1 / 2
ableSelect: undefined, ableSelect: undefined,

View File

@ -16,8 +16,8 @@
<el-button <el-button
@click="handleExportData( @click="handleExportData(
exportList, exportList,
'base/tbPeople/export', 'base/tbTeam/export',
'人员清单', '班组清单',
queryParams queryParams
)" )"
icon="el-icon-upload2" icon="el-icon-upload2"