Browse Source

调整样式和修改bug

feature
战立标 2 years ago
parent
commit
3f7da5aba5
  1. 6
      src/views/dataBoard/overview/components/DissatisfiedDetails.vue
  2. 64
      src/views/dataBoard/overview/components/EventDetail.vue
  3. 7
      src/views/dataBoard/overview/components/MapDialog/CommunityList.vue
  4. 5
      src/views/dataBoard/overview/components/MapDialog/DemandList.vue
  5. 6
      src/views/dataBoard/overview/components/MapDialog/DisputeDispatch.vue
  6. 7
      src/views/dataBoard/overview/components/MapDialog/List12345.vue
  7. 10
      src/views/dataBoard/overview/components/MapDialog/Njjwtqk.vue
  8. 7
      src/views/dataBoard/overview/components/MapDialog/SatisfactionList.vue
  9. 4
      src/views/dataBoard/overview/components/MapDialog/index.vue
  10. 11
      src/views/dataBoard/overview/components/MapResourceInfo.vue
  11. 11
      src/views/dataBoard/overview/index.vue
  12. 4
      src/views/dataBoard/satisfactionEval/components/Pagination/index.vue
  13. 88
      src/views/dataBoard/satisfactionEval/modules/eventAnalysis/index.vue

6
src/views/dataBoard/overview/components/DissatisfiedDetails.vue

@ -17,7 +17,7 @@
<el-col :span="10"> <el-col :span="10">
<div class="sub-title">事项详情</div> <div class="sub-title">事项详情</div>
<div class="detail"> <div class="detail">
<p> <p class="describe">
{{ unsatisfiedMattersModel.reason }} {{ unsatisfiedMattersModel.reason }}
</p> </p>
<ul> <ul>
@ -179,4 +179,8 @@ export default {
padding: 0 60px; padding: 0 60px;
} }
} }
.describe {
letter-spacing: 1px;
line-height: 30px;
}
</style> </style>

64
src/views/dataBoard/overview/components/EventDetail.vue

@ -32,45 +32,45 @@
/> />
</div> </div>
<div class="eventItem"> <div class="eventItem">
<span>所属组织</span> <div class="label">所属组织</div>
<span>{{ item.gridName }}</span> <div class="value">{{ item.gridName }}</div>
</div> </div>
<div class="eventItem"> <div class="eventItem">
<span>上报渠道</span> <div class="label">上报渠道</div>
<span>{{ item.sourceTypeName }}</span> <div class="value">{{ item.sourceTypeName }}</div>
</div> </div>
<div class="eventItem"> <div class="eventItem">
<span>事件类型</span> <div class="label">事件类型</div>
<span>{{ item.categoryName }}</span> <div class="value">{{ item.categoryName }}</div>
</div> </div>
<div class="eventItem"> <div class="eventItem" style="align-items: flex-start">
<span>事件描述</span> <div class="label">事件描述</div>
<span>{{ item.eventContent }}</span> <div class="value describe">{{ item.eventContent }}</div>
</div> </div>
<div class="eventItem"> <div class="eventItem">
<span>接收时间</span> <div class="label">接收时间</div>
<span>{{ item.happenTime }}</span> <div class="value">{{ item.happenTime }}</div>
</div> </div>
<div class="eventItem"> <div class="eventItem">
<span>联系人</span> <div class="label">联系人</div>
<span>{{ item.name }}</span> <div class="value">{{ item.name }}</div>
</div> </div>
<div class="eventItem"> <div class="eventItem">
<span>联系电话</span> <div class="label">联系电话</div>
<span>{{ item.mobile }}</span> <div class="value">{{ item.mobile }}</div>
<CallPhone icon="el-icon-phone"/> <CallPhone icon="el-icon-phone"/>
</div> </div>
<div class="eventItem"> <div class="eventItem">
<span>详细地址</span> <div class="label">详细地址</div>
<span>{{ item.address }}</span> <div class="value">{{ item.address }}</div>
</div> </div>
<div class="eventItem"> <div class="eventItem">
<span>办结时限</span> <div class="label">办结时限</div>
<span>{{ item.latestOperatedTime }}</span> <div class="value">{{ item.latestOperatedTime }}</div>
</div> </div>
<div class="eventItem"> <div class="eventItem">
<span>满意度评价</span> <div class="label">满意度评价</div>
<span>{{ item.satisfactionName }}</span> <div class="value">{{ item.satisfactionName }}</div>
</div> </div>
</div> </div>
</el-col> </el-col>
@ -447,4 +447,26 @@ export default {
} }
.eventItem {
font-size: 14px;
position: relative;
display: flex;
align-items: center;
margin-bottom: 17px;
.label {
color: #9CB4D3;
white-space: nowrap;
}
.value {
color: #FFFFFF;
}
}
.describe {
letter-spacing: 1px;
line-height: 30px;
margin-top: -8px;
}
</style> </style>

7
src/views/dataBoard/overview/components/MapDialog/CommunityList.vue

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="table"> <div class="table">
<el-table v-loading="loading" :data="list" height="600px" <el-table v-loading="loading" :data="list" height="750px"
element-loading-background="rgba(0, 0, 0, 0.3)"> element-loading-background="rgba(0, 0, 0, 0.3)">
<el-table-column label="序号" type="index" width="80"/> <el-table-column label="序号" type="index" width="80"/>
@ -40,7 +40,6 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<Pagination <Pagination
v-show="total > 0"
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
:page.sync="queryParams.pageNo" :page.sync="queryParams.pageNo"
:total="total" :total="total"
@ -70,10 +69,10 @@ export default {
}, },
data() { data() {
return { return {
total: 10, total: 0,
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 20,
}, },
list: [], list: [],
rowId: "", rowId: "",

5
src/views/dataBoard/overview/components/MapDialog/DemandList.vue

@ -4,7 +4,7 @@
<div v-if="type === '1'" class="table"> <div v-if="type === '1'" class="table">
<el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)" <el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)"
height="250px"> height="270px">
<el-table-column label="需求类别" prop="categoryAllName"/> <el-table-column label="需求类别" prop="categoryAllName"/>
<el-table-column label="需求内容" prop="content"/> <el-table-column label="需求内容" prop="content"/>
<el-table-column label="需求人" prop="reportUserName"/> <el-table-column label="需求人" prop="reportUserName"/>
@ -30,7 +30,7 @@
<div v-if="type === '2'" class="table"> <div v-if="type === '2'" class="table">
<el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)" <el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)"
height="250px"> height="270px">
<el-table-column label="需求类别" prop="commonServiceTypeName" show-overflow-tooltip/> <el-table-column label="需求类别" prop="commonServiceTypeName" show-overflow-tooltip/>
<el-table-column label="需求标题" prop="title" show-overflow-tooltip/> <el-table-column label="需求标题" prop="title" show-overflow-tooltip/>
<el-table-column label="指派服务" prop="assignFlag" width="100"> <el-table-column label="指派服务" prop="assignFlag" width="100">
@ -48,7 +48,6 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<Pagination <Pagination
v-show="total > 0"
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
:page.sync="queryParams.pageNo" :page.sync="queryParams.pageNo"
:total="total" :total="total"

6
src/views/dataBoard/overview/components/MapDialog/DisputeDispatch.vue

@ -3,7 +3,7 @@
<Tabs v-model="type" :list="typeList" @changeVal="typeChange"/> <Tabs v-model="type" :list="typeList" @changeVal="typeChange"/>
<div v-if="type === '4'" class="table"> <div v-if="type === '4'" class="table">
<el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)" <el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)"
height="250px"> height="280px">
<el-table-column label="资源类型" min-width="120" prop="serviceItem"> <el-table-column label="资源类型" min-width="120" prop="serviceItem">
<!-- <template slot-scope="{row}"> <!-- <template slot-scope="{row}">
社区自组织 社区自组织
@ -36,7 +36,7 @@
</div> </div>
<div v-if="type === '5'" class="table"> <div v-if="type === '5'" class="table">
<el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)" <el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)"
height="250px"> height="280px">
<el-table-column label="资源类型" min-width="100" prop="typeName"> <el-table-column label="资源类型" min-width="100" prop="typeName">
<!-- <template slot-scope="{row}"> <!-- <template slot-scope="{row}">
联建单位 联建单位
@ -70,7 +70,7 @@
<div v-if="type !== '4' && type !== '5'" class="table"> <div v-if="type !== '4' && type !== '5'" class="table">
<el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)" <el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)"
height="250px"> height="280px">
<el-table-column label="资源类型" min-width="120" prop="personnelType"> <el-table-column label="资源类型" min-width="120" prop="personnelType">
<template slot-scope="{row}"> <template slot-scope="{row}">
{{ {{

7
src/views/dataBoard/overview/components/MapDialog/List12345.vue

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="table"> <div class="table">
<el-table v-loading="loading" :data="list" height="600px" <el-table v-loading="loading" :data="list" height="750px"
element-loading-background="rgba(0, 0, 0, 0.3)"> element-loading-background="rgba(0, 0, 0, 0.3)">
<el-table-column label="序号" type="index" width="80"/> <el-table-column label="序号" type="index" width="80"/>
<el-table-column label="所属网格" show-overflow-tooltip prop="gridName" width="120"/> <el-table-column label="所属网格" show-overflow-tooltip prop="gridName" width="120"/>
@ -24,7 +24,6 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<Pagination <Pagination
v-show="total > 0"
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
:page.sync="queryParams.pageNo" :page.sync="queryParams.pageNo"
:total="total" :total="total"
@ -68,10 +67,10 @@ export default {
return { return {
showDialog: false, showDialog: false,
rowId: "", rowId: "",
total: 10, total: 0,
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 20,
}, },
list: [], list: [],
loading: false, loading: false,

10
src/views/dataBoard/overview/components/MapDialog/Njjwtqk.vue

@ -1,8 +1,9 @@
<template> <template>
<div> <div>
<div class="table"> <div class="table">
<el-table v-loading="loading" :data="list" :height="catVal === 1|| catVal === 2?'250px':'600px'" <el-table v-loading="loading" :data="list" :height="catVal === 1|| catVal === 2?'350px':'750px'"
element-loading-background="rgba(0, 0, 0, 0.3)"> element-loading-background="rgba(0, 0, 0, 0.3)">
<el-table-column label="序号" type="index" width="80" />
<el-table-column label="所属网格" prop="gridName" width="120"/> <el-table-column label="所属网格" prop="gridName" width="120"/>
<el-table-column label="接收时间" prop="happenTime" width="180"/> <el-table-column label="接收时间" prop="happenTime" width="180"/>
<el-table-column label="问题描述" prop="eventContent" width="120"/> <el-table-column label="问题描述" prop="eventContent" width="120"/>
@ -11,7 +12,7 @@
<el-table-column label="联系人" prop="name" width="120"/> <el-table-column label="联系人" prop="name" width="120"/>
<el-table-column label="联系电话" prop="mobile" width="120"/> <el-table-column label="联系电话" prop="mobile" width="120"/>
<el-table-column label="状态" prop="statusName" width="120"/> <el-table-column label="状态" prop="statusName" width="120"/>
<el-table-column label="操作" prop="op" width="200"> <el-table-column label="操作" prop="op" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<CallPhone text="拨打电话"/> <CallPhone text="拨打电话"/>
<span class="handle" @click="handleDispatch(scope.row)">处理</span> <span class="handle" @click="handleDispatch(scope.row)">处理</span>
@ -77,7 +78,8 @@ export default {
watch: { watch: {
catVal() { catVal() {
this.getList() this.getList()
} },
}, },
mounted() { mounted() {
this.getList() this.getList()
@ -88,7 +90,7 @@ export default {
this.catVal = 1; this.catVal = 1;
} }
console.log("----------:"+this.catVal); console.log("----------:"+this.catVal);
this.$http.post('/governance/icEventOld/list', {type: this.catVal}).then(({data: {data}}) => { this.$http.post('/governance/icEventOld/list', {type: this.catVal,agencyId: this.currentLevelData.orgId}).then(({data: {data}}) => {
this.list = data.list; this.list = data.list;
this.total = data.total; this.total = data.total;
}) })

7
src/views/dataBoard/overview/components/MapDialog/SatisfactionList.vue

@ -2,7 +2,7 @@
<div> <div>
<div class="table"> <div class="table">
<el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)" <el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)"
height="600px"> height="750px">
<el-table-column label="序号" type="index" width="80"/> <el-table-column label="序号" type="index" width="80"/>
<el-table-column label="月度" prop="month"/> <el-table-column label="月度" prop="month"/>
@ -34,7 +34,6 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<Pagination <Pagination
v-show="total > 0"
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
:page.sync="queryParams.pageNo" :page.sync="queryParams.pageNo"
:total="total" :total="total"
@ -65,11 +64,11 @@ export default {
}, },
data() { data() {
return { return {
total: 10, total: 0,
id: "", id: "",
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 20,
satisfactionSource: "satisfaction_province" satisfactionSource: "satisfaction_province"
}, },
list: [], list: [],

4
src/views/dataBoard/overview/components/MapDialog/index.vue

@ -144,6 +144,7 @@ export default {
methods: { methods: {
handleClose(done) { handleClose(done) {
this.dialogVisible = false; this.dialogVisible = false;
this.$emit('close')
}, },
open(data,type) { open(data,type) {
this.dialogVisible = true; this.dialogVisible = true;
@ -300,4 +301,7 @@ export default {
width: calc(100% - 200px); width: calc(100% - 200px);
flex: 0 0 calc(100% - 200px); flex: 0 0 calc(100% - 200px);
} }
.pagination-container {
padding-bottom: 0!important;
}
</style> </style>

11
src/views/dataBoard/overview/components/MapResourceInfo.vue

@ -28,9 +28,9 @@
<div class="label">分类</div> <div class="label">分类</div>
<div class="value">{{ detail.typeName }}</div> <div class="value">{{ detail.typeName }}</div>
</div> </div>
<div class="items"> <div class="items" style="align-items: flex-start">
<div class="label">服务事项</div> <div class="label">服务事项</div>
<div class="value">{{ detail.serviceMatterNameList ? detail.serviceMatterNameList.join('、') : '' }}</div> <div class="value describe">{{ detail.serviceMatterNameList ? detail.serviceMatterNameList.join('、') : '' }}</div>
</div> </div>
<div class="items"> <div class="items">
<div class="label">联系人</div> <div class="label">联系人</div>
@ -298,4 +298,11 @@ export default {
} }
.describe {
letter-spacing: 1px;
line-height: 30px;
margin-top: -8px;
}
</style> </style>

11
src/views/dataBoard/overview/index.vue

@ -73,7 +73,8 @@
-- bmysxqk = 不满意事项情况 -- bmysxqk = 不满意事项情况
-- xqwwcqk = 需求未完成情况 -- xqwwcqk = 需求未完成情况
--> -->
<MapDialog ref="MapDialog" :type="mapType"/> <MapDialog v-if="isShowMapDialog" ref="MapDialog" :currentLevelData="currentLevelData" :type="mapType"
@close="isShowMapDialog = false"/>
<cpt-loading v-show="false"/> <cpt-loading v-show="false"/>
<MapResourceInfo ref="MapResourceInfo" :currentLevelData="currentLevelData"/> <MapResourceInfo ref="MapResourceInfo" :currentLevelData="currentLevelData"/>
</div> </div>
@ -109,7 +110,7 @@ import {spliceIntoChunks} from "@/utils/index";
import MapResourceInfo from "@/views/dataBoard/overview/components/MapResourceInfo.vue"; import MapResourceInfo from "@/views/dataBoard/overview/components/MapResourceInfo.vue";
export default { export default {
name: "renfang", name: "overview",
components: { components: {
gridMap, gridMap,
@ -148,7 +149,7 @@ export default {
children: [], children: [],
}, // }, //
showMap: false, showMap: false,
isShowMapDialog: false,
orgId: "", orgId: "",
orgLevel: "", orgLevel: "",
currentLevel: "",//level currentLevel: "",//level
@ -444,11 +445,13 @@ export default {
this.mapType = "njjwtqk"; this.mapType = "njjwtqk";
break; break;
} }
this.isShowMapDialog = true
this.$nextTick(() => {
this.$refs.MapDialog.open({ this.$refs.MapDialog.open({
orgId: data.agencyId, orgId: data.agencyId,
orgLevel: data.level orgLevel: data.level
}, this.mapType) }, this.mapType)
})
} }
}, },
resourcesPointClick(data) { resourcesPointClick(data) {

4
src/views/dataBoard/satisfactionEval/components/Pagination/index.vue

@ -136,4 +136,8 @@ export default {
.pagination-container.hidden { .pagination-container.hidden {
display: none; display: none;
} }
.el-dialog .pagination-container {
padding-bottom: 0!important;
}
</style> </style>

88
src/views/dataBoard/satisfactionEval/modules/eventAnalysis/index.vue

@ -2,8 +2,8 @@
<div style="padding: 20px 10px;"> <div style="padding: 20px 10px;">
<title-small text="同地点同类型事件重复投诉问题"> <title-small text="同地点同类型事件重复投诉问题">
<template v-slot:time> <template v-slot:time>
<el-select v-model="typeCondition" class="select" placeholder="请选择" popper-class="selectPopClass" <el-select v-model="typeCondition1" class="select" placeholder="请选择" popper-class="selectPopClass"
@change="timeChange"> @change="value=> timeChange(value,1)">
<el-option v-for="item in typeConditionList" :key="item.value" :label="item.label" <el-option v-for="item in typeConditionList" :key="item.value" :label="item.label"
:value="item.value"></el-option> :value="item.value"></el-option>
</el-select> </el-select>
@ -19,7 +19,7 @@
<div>类型</div> <div>类型</div>
<div>投诉次数</div> <div>投诉次数</div>
</div> </div>
<div class="list-con" > <div v-if="list.length > 0" class="list-con" >
<div <div
v-if="list.length > 0" v-if="list.length > 0"
v-for="(item, index) in list" v-for="(item, index) in list"
@ -32,14 +32,14 @@
<div>{{ item.categoryName }}</div> <div>{{ item.categoryName }}</div>
<div>{{ item.amount }}</div> <div>{{ item.amount }}</div>
</div> </div>
<NoData v-else size="80"/>
</div> </div>
<NoData v-else size="80" />
</div> </div>
<title-small text="同一人员重复投诉问题"> <title-small text="同一人员重复投诉问题">
<template v-slot:time> <template v-slot:time>
<el-select v-model="typeCondition" class="select" placeholder="请选择" popper-class="selectPopClass" <el-select v-model="typeCondition2" class="select" placeholder="请选择" popper-class="selectPopClass"
@change="timeChange"> @change="value=> timeChange(value,2)">
<el-option v-for="item in typeConditionList" :key="item.value" :label="item.label" <el-option v-for="item in typeConditionList" :key="item.value" :label="item.label"
:value="item.value"></el-option> :value="item.value"></el-option>
</el-select> </el-select>
@ -54,7 +54,7 @@
<div>联系方式</div> <div>联系方式</div>
<div>投诉次数</div> <div>投诉次数</div>
</div> </div>
<div class="list-con"> <div v-if="list2.length > 0" class="list-con">
<div <div
v-for="(item, index) in list2" v-for="(item, index) in list2"
:key="index" :key="index"
@ -66,14 +66,15 @@
<div>{{ item.mobile }}</div> <div>{{ item.mobile }}</div>
<div>{{ item.amount }}</div> <div>{{ item.amount }}</div>
</div> </div>
<NoData v-else size="80"/>
</div> </div>
<NoData v-else size="80" />
</div> </div>
<title-small text="同一区域不同类型投诉问题"> <title-small text="同一区域不同类型投诉问题">
<template v-slot:time> <template v-slot:time>
<el-select v-model="typeCondition" class="select" placeholder="请选择" popper-class="selectPopClass" <el-select v-model="typeCondition3" class="select" placeholder="请选择" popper-class="selectPopClass"
@change="timeChange"> @change="value=> timeChange(value,3)">
<el-option v-for="item in typeConditionList" :key="item.value" :label="item.label" <el-option v-for="item in typeConditionList" :key="item.value" :label="item.label"
:value="item.value"></el-option> :value="item.value"></el-option>
</el-select> </el-select>
@ -92,6 +93,9 @@
<el-table-column label="地点" prop="address"></el-table-column> <el-table-column label="地点" prop="address"></el-table-column>
<el-table-column label="类型" prop="categoryName"></el-table-column> <el-table-column label="类型" prop="categoryName"></el-table-column>
<el-table-column label="投诉次数" prop="amount" width="120"></el-table-column> <el-table-column label="投诉次数" prop="amount" width="120"></el-table-column>
<template #empty>
<NoData size="80" />
</template>
</el-table> </el-table>
</div> </div>
</div> </div>
@ -99,14 +103,18 @@
<script> <script>
import titleSmall from "@/views/dataBoard/satisfactionEval/components/Title/titleSmall.vue"; import titleSmall from "@/views/dataBoard/satisfactionEval/components/Title/titleSmall.vue";
import NoData from "@/views/dataBoard/cpts/NoData";
export default { export default {
components: { components: {
titleSmall titleSmall,
NoData
}, },
data() { data() {
return { return {
typeCondition: 5, typeCondition1: 5,
typeCondition2: 5,
typeCondition3: 5,
startTime: '', startTime: '',
endTime: '', endTime: '',
list: [], list: [],
@ -143,12 +151,20 @@ export default {
spanArr: [], spanArr: [],
}; };
}, },
watch: {},
created() { created() {
},
watch: {
"$store.state.chooseArea.chooseName"(val) {
if (val.orgId) {
this.timeChange(5,'')
}
},
}, },
mounted() { mounted() {
this.timeChange() if (this.$store.state.chooseArea.chooseName.orgId) {
this.getList() this.timeChange(5,'')
}
}, },
computed: {}, computed: {},
methods: { methods: {
@ -175,26 +191,26 @@ export default {
} }
} }
}, },
timeChange() { timeChange(typeCondition,type) {
let startTime = "", let startTime = "",
endTime = ""; endTime = "";
if (this.typeCondition === 1) { if (typeCondition === 1) {
startTime = this.$moment().startOf("month").format("YYYY-MM-DD"); startTime = this.$moment().startOf("month").format("YYYY-MM-DD");
} }
if (this.typeCondition === 2) { if (typeCondition === 2) {
startTime = this.$moment().subtract(1, "months").startOf("month").format("YYYY-MM-DD"); startTime = this.$moment().subtract(1, "months").startOf("month").format("YYYY-MM-DD");
} }
if (this.typeCondition === 3) { if (typeCondition === 3) {
startTime = this.$moment().subtract(2, "months").startOf("month").format("YYYY-MM-DD"); startTime = this.$moment().subtract(2, "months").startOf("month").format("YYYY-MM-DD");
} }
if (this.typeCondition === 4) { if (typeCondition === 4) {
startTime = this.$moment().subtract(5, "months").startOf("month").format("YYYY-MM-DD"); startTime = this.$moment().subtract(5, "months").startOf("month").format("YYYY-MM-DD");
} }
if (this.typeCondition === 5) { if (typeCondition === 5) {
startTime = this.$moment().subtract(11, "months").startOf("month").format("YYYY-MM-DD"); startTime = this.$moment().subtract(11, "months").startOf("month").format("YYYY-MM-DD");
} }
if (this.typeCondition === 2) { if (typeCondition === 2) {
endTime = this.$moment().subtract(1, "months").endOf("month").format("YYYY-MM-DD"); endTime = this.$moment().subtract(1, "months").endOf("month").format("YYYY-MM-DD");
} else { } else {
endTime = this.$moment().endOf("month").format("YYYY-MM-DD"); endTime = this.$moment().endOf("month").format("YYYY-MM-DD");
@ -202,17 +218,23 @@ export default {
this.startTime = startTime; this.startTime = startTime;
this.endTime = endTime; this.endTime = endTime;
// this.getData(); // this.getData();
this.getList() this.getList(type)
}, },
getList() { getList(type) {
this.$http.post('/governance/dwdEvent/report', { this.$http.post('/governance/dwdEvent/report', {
"queryDateStart": this.startTime, "queryDateStart": this.startTime,
"queryDateEnd": this.endTime "queryDateEnd": this.endTime
}).then(({data: {data}}) => { }).then(({data: {data}}) => {
console.log(data) console.log(data)
if(type === ''|| type === 1) {
this.list = data?data.addressMobileEvents: [] || [] this.list = data?data.addressMobileEvents: [] || []
}
if(type === ''|| type === 2) {
this.list2 = data?data.mobileEvent: [] || [] this.list2 = data?data.mobileEvent: [] || []
}
if(type === ''|| type === 3) {
this.data = data?data.addressEvent: [] || [] this.data = data?data.addressEvent: [] || []
}
}) })
}, },
@ -262,19 +284,12 @@ export default {
margin-top: 15px; margin-top: 15px;
} }
.no-data {
display: flex;
align-items: center;
justify-content: center;
opacity: .6;
color: #fff;
}
.t-list { .t-list {
position: relative; position: relative;
flex: 1; flex: 1;
width: 100%; width: 100%;
margin-bottom: 20px; margin-bottom: 20px;
margin-top: 15px;
.item { .item {
display: flex; display: flex;
@ -334,4 +349,13 @@ export default {
overflow: auto; overflow: auto;
height: 200px; height: 200px;
} }
.no-data {
height: 200px;
}
.select {
width: 100px;
}
.table {
margin-top: 10px;
}
</style> </style>

Loading…
Cancel
Save