预警后台-部分勘误-d8
This commit is contained in:
parent
e9bd05f01f
commit
69b892c112
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@
|
|||
<el-button
|
||||
@click="handleExportData(
|
||||
exportList,
|
||||
'base/tbPeople/export',
|
||||
'人员清单',
|
||||
'base/tbTeam/export',
|
||||
'班组清单',
|
||||
queryParams
|
||||
)"
|
||||
icon="el-icon-upload2"
|
||||
|
|
|
|||
Loading…
Reference in New Issue