预警后台-部分勘误-d8
This commit is contained in:
parent
e9bd05f01f
commit
69b892c112
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue