预警后台-部分勘误-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.data) {
this.tableList = res.data.rows || res.data;
this.total = res.data.total;
this.total = res.data.total || res.data.length
} else {
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],
components: { },
created() {
// this.getRanges()
},
mounted() {
this.getRanges()
async mounted() {
this.open = true
if (this.crewParams) {
this.crewParams.proId = Number(this.crewParams.proId)
this.ableSelect = this.crewParams.relId
@ -145,10 +146,13 @@ export default {
} else {
this.subSort = 1
}
await this.getRanges()
this.open = false
},
data() {
return {
columnsListCrew,
open: false,
exportList: [],
subSort: '', // 1 / 2
ableSelect: undefined,

View File

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