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 style="margin-left:10px">
<el-button @click="loadOutTableData()"
:loading="downloadLoading"
type="primary">导出</el-button>
</el-form-item>
</div>
@ -82,7 +83,7 @@
header-align="center">
</el-table-column>
<el-table-column prop="orgName"
label="所属网格"
label="所属组织"
align="center"
min-width="190px"
header-align="center">
@ -310,6 +311,7 @@ export default {
this.tableLoading = true
if (this.staticType === 'end') {
this.tableParams.startTime = ''
this.timeArray[0] = ''
}
const { data, code, msg } = await requestPost(url, this.tableParams)
this.tableLoading = false
@ -478,7 +480,7 @@ export default {
title = title + ' 工作 截止至' + this.endTimeShow + '累计值'
}
console.log(title)
this.downloadLoading = true
const url = "/data/aggregator/org/pcwork/gridmember-analysis/export"
console.log(this.tableParams)
@ -488,9 +490,11 @@ export default {
(data, rspMsg) => {
this.download(data, title + '.xls')
this.downloadLoading = false
},
(rspMsg, data) => {
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-button @click="loadOutTableData()"
size="mini"
:loading="downloadLoading"
type="primary">导出</el-button>
</el-form-item>
@ -34,7 +35,7 @@
min-width="80">
</el-table-column>
<el-table-column prop="gridName"
label="所属网格"
label="所属组织"
align="center"
min-width="200">
</el-table-column>
@ -223,16 +224,18 @@ export default {
console.log(title)
const url = "/epmetuser/staffpatrol/pcwork/record-list/export"
this.downloadLoading = true
app.ajax.exportFilePost(
url,
this.tableParams,
(data, rspMsg) => {
this.download(data, title + '.xls')
this.downloadLoading = false
},
(rspMsg, data) => {
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-button @click="loadOutTableData()"
size="mini"
:loading="downloadLoading"
type="primary">导出</el-button>
</el-form-item>
@ -57,7 +58,7 @@
min-width="80">
</el-table-column>
<el-table-column prop="gridName"
label="所属网格"
label="所属组织"
align="center"
min-width="150">
</el-table-column>
@ -257,7 +258,7 @@ export default {
}
console.log(title)
this.downloadLoading = true
const url = "/gov/project/trace/pcwork/approvaled-list/export"
app.ajax.exportFilePost(
@ -266,9 +267,11 @@ export default {
(data, rspMsg) => {
this.download(data, title + '.xls')
this.downloadLoading = false
},
(rspMsg, data) => {
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-button @click="loadOutTableData()"
size="mini"
:loading="downloadLoading"
type="primary">导出</el-button>
</el-form-item>
@ -38,6 +39,9 @@
label="事件类别"
align="center"
min-width="200">
<template slot-scope="scope">
<div class="span_onerow">{{scope.row.workTypeName}}</div>
</template>
</el-table-column>
<el-table-column prop="isNormalShow"
label="有无异常"
@ -60,14 +64,14 @@
min-width="80px">
</el-table-column>
<el-table-column prop="gridName"
label="所属网格"
label="所属组织"
align="center"
min-width="190px">
</el-table-column>
<el-table-column prop="createdTime"
label="提交日期"
align="center"
min-width="140px">
min-width="150px">
</el-table-column>
<el-table-column label="操作"
@ -265,7 +269,7 @@ export default {
title = title + ' 例行工作 截止至' + this.endTimeShow + '累计值'
}
console.log(title)
this.downloadLoading = true
const url = "/epmetuser/patrolroutinework/pcwork/list/export"
app.ajax.exportFilePost(
@ -274,9 +278,11 @@ export default {
(data, rspMsg) => {
this.download(data, title + '.xls')
this.downloadLoading = false
},
(rspMsg, data) => {
this.$message.error(rspMsg);
this.downloadLoading = false
}
);
@ -349,6 +355,11 @@ export default {
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.span_onerow {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* .register .el-table .el-table__header-wrapper {
position: absolute;
top: 0;

Loading…
Cancel
Save