Browse Source

添加loading、时间过滤bug

dev
jiangyy 4 years ago
parent
commit
00604273a6
  1. 8
      epmet-oper-web/src/views/modules/workPc/gridmemberStatic/gridmemberList.vue
  2. 7
      epmet-oper-web/src/views/modules/workPc/gridmemberStatic/patrolList.vue
  3. 7
      epmet-oper-web/src/views/modules/workPc/gridmemberStatic/projectList.vue
  4. 17
      epmet-oper-web/src/views/modules/workPc/gridmemberStatic/workList.vue

8
epmet-oper-web/src/views/modules/workPc/gridmemberStatic/gridmemberList.vue

@ -56,6 +56,7 @@
</el-form-item> </el-form-item>
<el-form-item style="margin-left:10px"> <el-form-item style="margin-left:10px">
<el-button @click="loadOutTableData()" <el-button @click="loadOutTableData()"
:loading="downloadLoading"
type="primary">导出</el-button> type="primary">导出</el-button>
</el-form-item> </el-form-item>
</div> </div>
@ -82,7 +83,7 @@
header-align="center"> header-align="center">
</el-table-column> </el-table-column>
<el-table-column prop="orgName" <el-table-column prop="orgName"
label="所属网格" label="所属组织"
align="center" align="center"
min-width="190px" min-width="190px"
header-align="center"> header-align="center">
@ -310,6 +311,7 @@ export default {
this.tableLoading = true this.tableLoading = true
if (this.staticType === 'end') { if (this.staticType === 'end') {
this.tableParams.startTime = '' this.tableParams.startTime = ''
this.timeArray[0] = ''
} }
const { data, code, msg } = await requestPost(url, this.tableParams) const { data, code, msg } = await requestPost(url, this.tableParams)
this.tableLoading = false this.tableLoading = false
@ -478,7 +480,7 @@ export default {
title = title + ' 工作 截止至' + this.endTimeShow + '累计值' title = title + ' 工作 截止至' + this.endTimeShow + '累计值'
} }
console.log(title) console.log(title)
this.downloadLoading = true
const url = "/data/aggregator/org/pcwork/gridmember-analysis/export" const url = "/data/aggregator/org/pcwork/gridmember-analysis/export"
console.log(this.tableParams) console.log(this.tableParams)
@ -488,9 +490,11 @@ export default {
(data, rspMsg) => { (data, rspMsg) => {
this.download(data, title + '.xls') this.download(data, title + '.xls')
this.downloadLoading = false
}, },
(rspMsg, data) => { (rspMsg, data) => {
this.$message.error(rspMsg); this.$message.error(rspMsg);
this.downloadLoading = false
} }
); );

7
epmet-oper-web/src/views/modules/workPc/gridmemberStatic/patrolList.vue

@ -17,6 +17,7 @@
<el-form-item style="margin-left:10px"> <el-form-item style="margin-left:10px">
<el-button @click="loadOutTableData()" <el-button @click="loadOutTableData()"
size="mini" size="mini"
:loading="downloadLoading"
type="primary">导出</el-button> type="primary">导出</el-button>
</el-form-item> </el-form-item>
@ -34,7 +35,7 @@
min-width="80"> min-width="80">
</el-table-column> </el-table-column>
<el-table-column prop="gridName" <el-table-column prop="gridName"
label="所属网格" label="所属组织"
align="center" align="center"
min-width="200"> min-width="200">
</el-table-column> </el-table-column>
@ -223,16 +224,18 @@ export default {
console.log(title) console.log(title)
const url = "/epmetuser/staffpatrol/pcwork/record-list/export" const url = "/epmetuser/staffpatrol/pcwork/record-list/export"
this.downloadLoading = true
app.ajax.exportFilePost( app.ajax.exportFilePost(
url, url,
this.tableParams, this.tableParams,
(data, rspMsg) => { (data, rspMsg) => {
this.download(data, title + '.xls') this.download(data, title + '.xls')
this.downloadLoading = false
}, },
(rspMsg, data) => { (rspMsg, data) => {
this.$message.error(rspMsg); this.$message.error(rspMsg);
this.downloadLoading = false
} }
); );

7
epmet-oper-web/src/views/modules/workPc/gridmemberStatic/projectList.vue

@ -17,6 +17,7 @@
<el-form-item style="margin-left:10px"> <el-form-item style="margin-left:10px">
<el-button @click="loadOutTableData()" <el-button @click="loadOutTableData()"
size="mini" size="mini"
:loading="downloadLoading"
type="primary">导出</el-button> type="primary">导出</el-button>
</el-form-item> </el-form-item>
@ -57,7 +58,7 @@
min-width="80"> min-width="80">
</el-table-column> </el-table-column>
<el-table-column prop="gridName" <el-table-column prop="gridName"
label="所属网格" label="所属组织"
align="center" align="center"
min-width="150"> min-width="150">
</el-table-column> </el-table-column>
@ -257,7 +258,7 @@ export default {
} }
console.log(title) console.log(title)
this.downloadLoading = true
const url = "/gov/project/trace/pcwork/approvaled-list/export" const url = "/gov/project/trace/pcwork/approvaled-list/export"
app.ajax.exportFilePost( app.ajax.exportFilePost(
@ -266,9 +267,11 @@ export default {
(data, rspMsg) => { (data, rspMsg) => {
this.download(data, title + '.xls') this.download(data, title + '.xls')
this.downloadLoading = false
}, },
(rspMsg, data) => { (rspMsg, data) => {
this.$message.error(rspMsg); this.$message.error(rspMsg);
this.downloadLoading = false
} }
); );

17
epmet-oper-web/src/views/modules/workPc/gridmemberStatic/workList.vue

@ -18,6 +18,7 @@
<el-form-item style="margin-left:10px"> <el-form-item style="margin-left:10px">
<el-button @click="loadOutTableData()" <el-button @click="loadOutTableData()"
size="mini" size="mini"
:loading="downloadLoading"
type="primary">导出</el-button> type="primary">导出</el-button>
</el-form-item> </el-form-item>
@ -38,6 +39,9 @@
label="事件类别" label="事件类别"
align="center" align="center"
min-width="200"> min-width="200">
<template slot-scope="scope">
<div class="span_onerow">{{scope.row.workTypeName}}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="isNormalShow" <el-table-column prop="isNormalShow"
label="有无异常" label="有无异常"
@ -60,14 +64,14 @@
min-width="80px"> min-width="80px">
</el-table-column> </el-table-column>
<el-table-column prop="gridName" <el-table-column prop="gridName"
label="所属网格" label="所属组织"
align="center" align="center"
min-width="190px"> min-width="190px">
</el-table-column> </el-table-column>
<el-table-column prop="createdTime" <el-table-column prop="createdTime"
label="提交日期" label="提交日期"
align="center" align="center"
min-width="140px"> min-width="150px">
</el-table-column> </el-table-column>
<el-table-column label="操作" <el-table-column label="操作"
@ -265,7 +269,7 @@ export default {
title = title + ' 例行工作 截止至' + this.endTimeShow + '累计值' title = title + ' 例行工作 截止至' + this.endTimeShow + '累计值'
} }
console.log(title) console.log(title)
this.downloadLoading = true
const url = "/epmetuser/patrolroutinework/pcwork/list/export" const url = "/epmetuser/patrolroutinework/pcwork/list/export"
app.ajax.exportFilePost( app.ajax.exportFilePost(
@ -274,9 +278,11 @@ export default {
(data, rspMsg) => { (data, rspMsg) => {
this.download(data, title + '.xls') this.download(data, title + '.xls')
this.downloadLoading = false
}, },
(rspMsg, data) => { (rspMsg, data) => {
this.$message.error(rspMsg); this.$message.error(rspMsg);
this.downloadLoading = false
} }
); );
@ -349,6 +355,11 @@ export default {
-webkit-line-clamp: 3; -webkit-line-clamp: 3;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.span_onerow {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* .register .el-table .el-table__header-wrapper { /* .register .el-table .el-table__header-wrapper {
position: absolute; position: absolute;
top: 0; top: 0;

Loading…
Cancel
Save