Browse Source

Merge branch 'test' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into test

shibei_master
jiangyy 3 years ago
parent
commit
672e46e1bd
  1. 7
      src/router/index.js
  2. 49
      src/views/modules/importRecord/index.vue
  3. 15
      src/views/modules/visual/communityParty/party.vue

7
src/router/index.js

@ -320,6 +320,13 @@ router.beforeEach((to, from, next) => {
url: "visual/heart/index",
children: [],
},
{
icon: "icon-setting",
id: "2221321fefefaewfa122223",
name: "疫情防控",
url: "",
children: [],
},
{
icon: "icon-setting",
id: "44rq22222q2222",

49
src/views/modules/importRecord/index.vue

@ -1,12 +1,11 @@
<template>
<div class="resi-container">
<el-card class="resi-card-table">
<el-table
:data="tableData"
border
style="width: 100%"
:height="tableHeight"
:height="tableHeight"
class="resi-table"
>
<el-table-column label="序号" type="index" align="center" width="50" />
@ -15,23 +14,31 @@
<el-table-column prop="startTime" label="导入时间"> </el-table-column>
<el-table-column label="导入状态" align="center" width="180">
<template slot-scope="scope">
<span
v-if="scope.row.processStatus == 'processing'"
>导入中</span
>
<span
v-else-if="scope.row.processStatus == 'finished_success'"
<span v-if="scope.row.processStatus == 'processing'">导入中</span>
<span v-else-if="scope.row.processStatus == 'finished_success'"
>已完成</span
>
<a target="_blank"
<span v-else-if="scope.row.processStatus == 'finished_fail'"
>导入失败</span
>
</template>
</el-table-column>
<el-table-column label="结果说明" align="center" width="180">
<template slot-scope="scope">
<a
target="_blank"
:href="scope.row.resultDescFile"
style="color: #00a7a9;cursor:pointer;"
v-else-if="scope.row.processStatus == 'finished_fail' && scope.row.resultDescFile"
>下载失败说明</a
style="color: #00a7a9; cursor: pointer"
v-if="scope.row.resultDescFile"
>下载结果说明</a
>
<span
v-else-if="scope.row.processStatus == 'finished_fail' && !scope.row.resultDescFile"
>导入失败未知错误</span
style="color: #00a7a9; cursor: pointer"
v-else-if="
scope.row.processStatus == 'finished_fail' &&
!scope.row.resultDescFile
"
>未知错误</span
>
</template>
</el-table-column>
@ -82,13 +89,13 @@ export default {
};
},
computed: {
tableHeight () {
const h = this.clientHeight - 240 + this.iframeHeigh
const _h = this.clientHeight - 240
return this.$store.state.inIframe ? h : _h
tableHeight() {
const h = this.clientHeight - 240 + this.iframeHeigh;
const _h = this.clientHeight - 240;
return this.$store.state.inIframe ? h : _h;
},
...mapGetters(['clientHeight', 'iframeHeight'])
...mapGetters(["clientHeight", "iframeHeight"]),
},
watch: {},
mounted() {
@ -172,12 +179,8 @@ export default {
}
}
.resi-btns {
margin-top: 20px;
text-align: center;
}
</style>

15
src/views/modules/visual/communityParty/party.vue

@ -157,6 +157,8 @@ export default {
visibleLoading: true,
agencyId: '',
orgType: '',
ageCode: '',
eduCode: '',
pageNo: 1,
pageSize: 10,
agePageNo: 1,
@ -489,6 +491,7 @@ export default {
}
});
this.ageCode = isClick && _code || ''
this.pieAgeOptions.title.text = this.ageTotalCount
this.pieAgeOptions.series[1].data = this.ageItem
// this.$refs.pieChart.hideLoading()
@ -497,6 +500,7 @@ export default {
const _arr = this.selectAgency[this.selectAgency.length - 1].split('-')
const orgType = _arr[1] !== 'grid' ? 'agency': 'grid'
console.log('zlcm---isClick', isClick)
this.agePageNo = 1
this.getAgeList(_arr[0], orgType, isClick && _code || '')
}
this.noInit = true
@ -544,6 +548,7 @@ export default {
}
});
this.eduCode = isClick && _code || ''
this.pieEduOptions.title.text = this.eduTotalCount
this.pieEduOptions.series[1].data = this.eduItem
// this.$refs.pieChart.hideLoading()
@ -551,7 +556,7 @@ export default {
if (this.noEduInit) {
const _arr = this.selectAgency[this.selectAgency.length - 1].split('-')
const orgType = _arr[1] !== 'grid' ? 'agency': 'grid'
this.pageNo = 1
this.getEduList(_arr[0], orgType, isClick && _code || '')
}
this.noEduInit = true
@ -757,20 +762,20 @@ export default {
pageSizeChangeHandleAge(val) {
this.agePageNo = 1
this.agePageSize = val
this.getAgeList(this.agencyId, this.orgType)
this.getAgeList(this.agencyId, this.orgType, this.ageCode)
},
pageCurrentChangeHandleAge (val) {
this.agePageNo = val
this.getAgeList(this.agencyId, this.orgType)
this.getAgeList(this.agencyId, this.orgType, this.ageCode)
},
pageSizeChangeHandleNew(val) {
this.pageNo = 1;
this.pageSize = val;
this.getEduList(this.agencyId, this.orgType)
this.getEduList(this.agencyId, this.orgType, this.eduCode)
},
pageCurrentChangeHandleNew(val) {
this.pageNo = val;
this.getEduList(this.agencyId, this.orgType)
this.getEduList(this.agencyId, this.orgType, this.eduCode)
},
},
};

Loading…
Cancel
Save