Browse Source

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

shibei_master
13176889840 3 years ago
parent
commit
8c4cb2f8d1
  1. 20
      src/assets/scss/modules/visual/houseStatic.scss
  2. 50
      src/views/modules/base/community/buildTable.vue
  3. 23
      src/views/modules/visual/basicinfo/houseStatic/houseStatic.vue

20
src/assets/scss/modules/visual/houseStatic.scss

@ -165,16 +165,18 @@
justify-content: flex-start; justify-content: flex-start;
margin-top: 30px; margin-top: 30px;
.cz-tip-dot { .cz-tip-dot {
margin-top:2px; margin-top:1px;
width: 20px; width: 18px;
height: 10px; height: 8px;
background: #ff7800; background: #ff7800;
border-radius: 4px; border-radius: 4px;
} }
>span{ >span{
margin-left:10px; margin-left:10px;
font-size: 10px;
} }
} }
@ -184,14 +186,15 @@
margin-top: 30px; margin-top: 30px;
.ld-tip-dot{ .ld-tip-dot{
margin-top:2px; margin-top:1px;
width: 20px; width: 18px;
height: 10px; height: 8px;
background: #00E5ED; background: #00E5ED;
border-radius: 4px; border-radius: 4px;
} }
>span{ >span{
margin-left:10px; margin-left:10px;
font-size: 10px;
} }
} }
@ -269,6 +272,11 @@
} }
} }
.table_item:hover{
background: url('../../../img/modules/visual/hover-bac.png') no-repeat
center;
background-size: 100% 100%;
}
.item_dark{ .item_dark{
background: #082586; background: #082586;

50
src/views/modules/base/community/buildTable.vue

@ -59,6 +59,7 @@
:data="tableData" :data="tableData"
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}" :header-cell-style="{background:'#2195FE',color:'#FFFFFF'}"
border border
@sort-change="handleSortChange"
:height="tableHeight" :height="tableHeight"
v-loading="tableLoading" v-loading="tableLoading"
style="width: 100%" style="width: 100%"
@ -106,6 +107,24 @@
<el-table-column prop="totalHouseNum" <el-table-column prop="totalHouseNum"
label="总户数"> label="总户数">
</el-table-column> </el-table-column>
<el-table-column prop="sort"
sortable="custom"
min-width="120"
label="序号">
<template slot-scope="scope">
<div @click="handleEditSort(scope.row)">
<span v-if="!scope.row.isChange">{{scope.row.sort}}</span>
<el-input-number v-else
@blur="onInputBlur(scope.row)"
v-model="scope.row.sort"
class="item_width_4"
:min="1"
:max="99"
label="描述文字"></el-input-number>
</div>
</template>
</el-table-column>
<el-table-column label="操作" <el-table-column label="操作"
fixed="right" fixed="right"
@ -212,6 +231,23 @@ export default {
}, },
methods: { methods: {
handleSortChange () {
},
handleEditSort (row) {
if (!row.isChange) {
row.isChange = true
}
},
onInputBlur (row) {
row.isChange = false
console.log(row.sort)
},
checkSelect (row, index) { checkSelect (row, index) {
let isChecked = false; let isChecked = false;
@ -252,6 +288,7 @@ export default {
this.validTableDataNum = 0 this.validTableDataNum = 0
this.total = data.total this.total = data.total
data.list.forEach(item => { data.list.forEach(item => {
item.isChange = false
if (item.agencyId === this.staffAgencyId) { if (item.agencyId === this.staffAgencyId) {
item.showBtn = true item.showBtn = true
this.validTableDataNum++ this.validTableDataNum++
@ -649,4 +686,17 @@ export default {
</script> </script>
<style lang="scss" scoped > <style lang="scss" scoped >
@import "@/assets/scss/modules/visual/communityManage.scss"; @import "@/assets/scss/modules/visual/communityManage.scss";
.item_width_4 {
width: 100px;
}
/deep/.el-input-number--medium .el-input-number__decrease,
/deep/.el-input-number--medium .el-input-number__increase {
width: 26px;
}
/deep/.el-input-number--medium .el-input__inner {
padding-left: 0px;
padding-right: 0px;
}
</style> </style>

23
src/views/modules/visual/basicinfo/houseStatic/houseStatic.vue

@ -281,21 +281,25 @@ export default {
}; };
}, },
async mounted () { async mounted () {
this.dataLoading = true
await this.getApiData() await this.getApiData()
this.dataLoading = false
}, },
methods: { methods: {
async getApiData () { async getApiData () {
this.dataLoading = true
this.housePieInitState = false this.housePieInitState = false
this.userPieInitState = false this.userPieInitState = false
this.getHousechart() this.getHousechart()
this.getUserchart() this.getUserchart()
this.getSubuserhouselist()
this.getHousePie() this.getHousePie()
this.getUserPie() this.getUserPie()
await this.getSubuserhouselist()
this.dataLoading = false
}, },
housePieInitOk (dom) { housePieInitOk (dom) {
console.log('pie准备好了', dom) console.log('pie准备好了', dom)
@ -310,7 +314,6 @@ export default {
}, },
async getHousechart (node, resolve) { async getHousechart (node, resolve) {
if (this.$refs.housePieChart) { if (this.$refs.housePieChart) {
this.$refs.housePieChart.showLoading() this.$refs.housePieChart.showLoading()
@ -567,16 +570,19 @@ export default {
// this.getTable() // this.getTable()
}, },
handleToSubAgency (item) { async handleToSubAgency (item) {
if (!this.dataLoading) {
this.toSubAgency(item) this.toSubAgency(item)
await this.getApiData()
}
this.getApiData()
}, },
// type:polygon / people //
async toSubAgency (item) { async toSubAgency (item) {
this.runNum++ this.runNum++
@ -586,6 +592,7 @@ export default {
orgName: this.orgName, orgName: this.orgName,
} }
this.runAgencyArray.push(obj) this.runAgencyArray.push(obj)
this.orgId = item.orgId this.orgId = item.orgId

Loading…
Cancel
Save