Browse Source

改错的一个地方

dev
tianq 2 years ago
parent
commit
cbdc6f0e73
  1. 33
      src/views/modules/census/census-accountList.vue
  2. 106
      src/views/modules/census/census-houseList.vue

33
src/views/modules/census/census-accountList.vue

@ -122,16 +122,29 @@
</div> </div>
<el-dialog :title="title" :visible.sync="dialogVisible" width="30%" :before-close="handleClose"> <el-dialog :title="title" :visible.sync="dialogVisible" width="30%" :before-close="handleClose">
<el-table :data="tableDataView" border v-loading="tableLoading2" :header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" class="table" style="width: 100%"> <el-table :data="tableDataView" border v-loading="tableLoading2" :header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" class="table" style="width: 100%">
<el-table-column label="序号" fixed="left" type="index" align="center" width="50" /> <template v-if="orgType == 'district'">
<el-table-column label="序号" fixed="left" type="index" align="center" width="50" />
<el-table-column prop="streetName" label="镇街" align="center" :show-overflow-tooltip="true" /> <el-table-column prop="agencyName" align="center" label="社区名称" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="districtName" label="区县" align="center" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="streetName" label="所属街道" align="center" :show-overflow-tooltip="true" />
<el-table-column prop="agencyName" align="center" label="社区" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="districtName" label="所属区县" align="center" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="agencyName" align="center" label="网格" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="count" align="center" width="110" label="登录次数" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="agencyName" align="center" label="房屋名称" :show-overflow-tooltip="true"></el-table-column> </template>
<el-table-column prop="agencyName" align="center" label="房屋用途" :show-overflow-tooltip="true"></el-table-column> <template v-if="orgType == 'street'">
<el-table-column prop="agencyName" align="center" label="房屋状态" :show-overflow-tooltip="true"></el-table-column> <el-table-column label="序号" fixed="left" type="index" align="center" width="50" />
<el-table-column prop="count" align="center" width="110" label="操作" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="streetName" label="镇街名称" align="center" :show-overflow-tooltip="true" />
<el-table-column prop="districtName" label="所属区县" align="center" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="count" align="center" width="110" label="登录次数" :show-overflow-tooltip="true"></el-table-column>
</template>
<template v-if="orgType == 'community'">
<el-table-column label="序号" fixed="left" type="index" align="center" width="50" />
<el-table-column prop="districtName" label="区县名称" align="center" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="count" align="center" width="110" label="登录次数" :show-overflow-tooltip="true"></el-table-column>
</template>
<template v-if="orgType == 'sub'">
<el-table-column label="序号" fixed="left" type="index" align="center" width="50" />
<el-table-column prop="districtName" label="区县名称" align="center" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="count" align="center" width="110" label="登录次数" :show-overflow-tooltip="true"></el-table-column>
</template>
</el-table> </el-table>
<el-pagination <el-pagination

106
src/views/modules/census/census-houseList.vue

@ -43,54 +43,70 @@
</div> </div>
</el-form> </el-form>
</div> </div>
<el-row :gutter="20"> <div class="div_table">
<el-col :span="12"> <el-row :gutter="20">
<div class="div_table"> <el-col :span="12">
<div class="div_table_title">房屋用途统计</div> <div class="div_table_title">房屋用途统计</div>
<div :style="'height:' + TableHeight + 'px;margin-top:20px'">
<screen-echarts-frame
</div> @handelClickMyPei="handelClickMyPei"
</el-col> :style="{ width: '100%', height: '100%' }"
<el-col :span="12"> @myChartMethod="pieInitOk"
<div class="div_table"> ref="pieChart"
></screen-echarts-frame>
</div>
</el-col>
<el-col :span="12">
<div class="div_table_title">房屋状态统计</div> <div class="div_table_title">房屋状态统计</div>
<div :style="'height:' + TableHeight + 'px;margin-top:20px'">
<screen-echarts-frame2
@handelClickMyPei2="handelClickMyPei"
</div> :style="{ width: '100%', height: '100%' }"
</el-col> @myChartMethod2="pieInitOk"
</el-row> ref="pieChart2"
></screen-echarts-frame2>
<el-table </div>
:data="tableData" </el-col>
border <el-col :span="24">
v-loading="tableLoading" <el-table
:header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" :data="tableData"
class="table" border
style="width: 100%" v-loading="tableLoading"
:height="maxTableHeight" :header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }"
> class="table"
<el-table-column label="序号" fixed="left" type="index" align="center" width="50" /> style="width: 100%"
<el-table-column prop="agencyName" align="center" label="组织名称" :show-overflow-tooltip="true"></el-table-column> :height="maxTableHeight"
<el-table-column prop="streetName" label="登录次数" min-width="140" align="center" :show-overflow-tooltip="true" /> >
<el-table-column prop="districtName" label="活跃账号数" align="center" :show-overflow-tooltip="true"></el-table-column> <el-table-column label="序号" fixed="left" type="index" align="center" width="50" />
<el-table-column prop="count" align="center" width="110" label="总账号数" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="streetName" label="镇街" align="center" :show-overflow-tooltip="true" />
</el-table> <el-table-column prop="districtName" label="区县" align="center" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="agencyName" align="center" label="社区" :show-overflow-tooltip="true"></el-table-column>
<el-pagination <el-table-column prop="agencyName" align="center" label="网格" :show-overflow-tooltip="true"></el-table-column>
@size-change="handleSizeChange" <el-table-column prop="agencyName" align="center" label="房屋名称" :show-overflow-tooltip="true"></el-table-column>
@current-change="handleCurrentChange" <el-table-column prop="agencyName" align="center" label="房屋用途" :show-overflow-tooltip="true"></el-table-column>
:current-page.sync="pageNo" <el-table-column prop="agencyName" align="center" label="房屋状态" :show-overflow-tooltip="true"></el-table-column>
:page-sizes="[20, 50, 100, 200]" <el-table-column prop="count" align="center" width="110" label="操作" :show-overflow-tooltip="true"></el-table-column>
:page-size="parseInt(pageSize)" </el-table>
layout="sizes, prev, pager, next, total"
:total="total" <el-pagination
></el-pagination> @size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="pageNo"
:page-sizes="[20, 50, 100, 200]"
:page-size="parseInt(pageSize)"
layout="sizes, prev, pager, next, total"
:total="total"
></el-pagination>
</el-col>
</el-row>
</div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import screenEchartsFrame from './chart';
import screenEchartsFrame2 from './chart';
import { requestPost } from '@/js/dai/request'; import { requestPost } from '@/js/dai/request';
import nextTick from 'dai-js/tools/nextTick'; import nextTick from 'dai-js/tools/nextTick';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
@ -98,7 +114,7 @@ import { mapGetters } from 'vuex';
import axios from 'axios'; import axios from 'axios';
export default { export default {
components: {}, components: { screenEchartsFrame, screenEchartsFrame2 },
data() { data() {
let endDisabledDate = time => { let endDisabledDate = time => {
@ -165,14 +181,15 @@ export default {
showVoice: false, showVoice: false,
selVoiceUrl: '', selVoiceUrl: '',
multipleSelection: [] multipleSelection: [],
TableHeight: ''
}; };
}, },
computed: { computed: {
maxTableHeight() { maxTableHeight() {
return this.$store.state.inIframe ? this.clientHeight - 440 + this.iframeHeigh : this.clientHeight - 440; return this.$store.state.inIframe ? this.clientHeight - 440 + this.iframeHeigh : this.clientHeight - 440;
}, },
...mapGetters(['clientHeight', 'iframeHeight']) ...mapGetters(['clientHeight', 'iframeHeight'])
}, },
watch: { watch: {
@ -190,7 +207,6 @@ export default {
this.agencyId = this.user.agencyId; this.agencyId = this.user.agencyId;
this.getOrgTreeList(); this.getOrgTreeList();
this.getTableData(); this.getTableData();
}, },
methods: { methods: {
handleChangeAgency(val) { handleChangeAgency(val) {

Loading…
Cancel
Save