Browse Source

修改bug

feature
战立标 2 years ago
parent
commit
1579b916e4
  1. 68
      src/views/dataBoard/overview/components/Bmysxxq.vue
  2. 6
      src/views/dataBoard/overview/components/EventDetail.vue
  3. 3
      src/views/dataBoard/overview/components/MapResourceInfoMore.vue
  4. 56
      src/views/dataBoard/overview/components/ServiceDetails.vue
  5. 1
      src/views/dataBoard/overview/components/map-top.vue
  6. 14
      src/views/dataBoard/overview/index.vue
  7. 1
      src/views/dataBoard/renfang/cpts/rkfx.vue
  8. 210
      src/views/dataBoard/renfang/resi/analyze.vue
  9. 84
      src/views/dataBoard/satisfactionEval/Problem/tddtlxsj/detail.vue
  10. 26
      src/views/dataBoard/satisfactionEval/Problem/tddtlxsj/list.vue
  11. 82
      src/views/dataBoard/satisfactionEval/Problem/tyqybtlx/detail.vue
  12. 26
      src/views/dataBoard/satisfactionEval/Problem/tyqybtlx/list.vue
  13. 28
      src/views/dataBoard/satisfactionEval/Problem/tyry/detail.vue
  14. 26
      src/views/dataBoard/satisfactionEval/Problem/tyry/list.vue

68
src/views/dataBoard/overview/components/Bmysxxq.vue

@ -36,6 +36,50 @@
</div>
</div>
</el-col>
<template v-if="detail.assignFlag == '1'">
<el-col :span="12">
<div class="items">
<div class="label">指派服务</div>
<div class="value">{{
detail.assignFlag == "1"
? "已指派"
: detail.assignFlag == "0"
? "未指派"
: "--"
}}
</div>
</div>
</el-col>
<el-col :span="12">
<div v-if="detail.assignFlag == 1" class="items">
<div class="label">服务组织</div>
<div class="value">{{ detail.parentCategoryName }} - {{ detail.categoryName }}</div>
</div>
</el-col>
<el-col :span="12">
<div class="items">
<div class="label">服务范围</div>
<div v-for="item in detail.assignInfo.serviceScopeList"
:key="item.objectId"
class="value"
>
<span>{{ item.objectName }}</span>
</div>
</div>
</el-col>
<el-col :span="12">
<div class="items">
<div class="label">服务时间</div>
<div class="value">
<span>{{ detail.assignInfo.serviceTimeStart || "--" }}</span>
<span>{{ detail.assignInfo.serviceTimeEnd || "--" }}</span>
</div>
</div>
</el-col>
</template>
</el-row>
<el-row v-if="isSelect">
@ -116,16 +160,17 @@
</div>
</el-col>
</el-row>
<template v-if="detail.assignFlag != '1'">
<div v-if="!isSelect" class="btn-group">
<el-button class="green" plain round type="success" @click="handleDispatch">资源调度</el-button>
</div>
<div v-else class="btn-group">
<el-button class="cancel" plain round type="success" @click="handleCancel">取消</el-button>
<el-button class="sure" plain round type="warning" @click="handleSure">确定</el-button>
</div>
<div v-if="!isSelect" class="btn-group">
<el-button class="green" plain round type="success" @click="handleDispatch">资源调度</el-button>
</div>
<div v-else class="btn-group">
<el-button class="cancel" plain round type="success" @click="handleCancel">取消</el-button>
<el-button class="sure" plain round type="warning" @click="handleSure">确定</el-button>
</div>
</template>
</div>
</div>
</el-dialog>
@ -315,13 +360,13 @@ export default {
}
});
this.form.serviceScopeList = arr;
let params = {
...this.detail,
assignFlag: 1,
assignInfo: {
serviceScopeList: this.form.serviceScopeList,
noticeApproches: this.form.noticeApproches.length > 0? this.form.noticeApproches: 0,
noticeApproches: this.form.noticeApproches.length > 0 ? this.form.noticeApproches : 0,
serviceTimeStart: this.form.date[0],
serviceTimeEnd: this.form.date[1],
serverOrgType: this.form.serverOrgType,
@ -474,8 +519,9 @@ export default {
border-bottom: solid 1px #006cff;
}
}
/deep/ .el-cascader__tags .el-tag {
color: #fff !important;
background-color: rgba(#409eff, .5) !important;
color: #fff!important;
}
</style>

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

@ -198,7 +198,8 @@
</el-col>
</el-row>
<div class="btn-group">
<div class="btn-group" v-if="(item.status === 'processing' && item.operationId) || (item.status === 'closed_case' &&
(item.satisfactionName || (!item.satisfactionName && user.id != item.createdUserId)))">
<el-button class="green" plain round type="success" @click="handleDispatch">资源调度</el-button>
<el-button class="orange" plain round type="warning" @click="handleSupervision">催办督办</el-button>
</div>
@ -259,7 +260,8 @@ export default {
loading: false,
loading1: false,
activities: [],
isEventDispatchOrder: false
isEventDispatchOrder: false,
user: this.$store.state.user
};
},

3
src/views/dataBoard/overview/components/MapResourceInfoMore.vue

@ -200,7 +200,8 @@
<el-table-column v-if="type === 1" label="满意度" prop="score"/>
<el-table-column v-if="type === 1" label="状态" prop="statusName"/>
<el-table-column v-if="type !== 1" label="服务类型" prop="serviceTypeName"/>
<el-table-column v-if="type !== 1" label="服务类型" prop="categoryName"/>
<!-- <el-table-column v-if="type !== 1 && type !== 5" label="服务类型" prop="serviceTypeName"/>-->
<el-table-column v-if="type !== 1" label="服务事项" prop="serviceName"/>
<el-table-column v-if="type !== 1" label="来自" prop="sourceName"/>
<el-table-column v-if="type !== 1" label="服务时间" prop="serviceTimeStart"/>

56
src/views/dataBoard/overview/components/ServiceDetails.vue

@ -93,13 +93,33 @@
<div class="value">{{ detail.serviceShowName }}</div>
</div>
</el-col>
<!-- <el-col :span="12">
<div class="items">
<div class="label">服务方联系电话</div>
<div class="value">缺字段</div>
<CallPhone icon="el-icon-phone"/>
</div>
</el-col>-->
<template v-if="detail.status == 'finished' && detail.reportType != 'self_help'">
<el-col :span="12">
<div class="items">
<div class="label">完成情况</div>
<div class="value">{{
detail.finishResult === 'resolved' ? '已解决' : detail.finishResult === 'unresolved' ? '未解决' : '--'
}}
</div>
</div>
</el-col>
<el-col :span="12">
<div class="items">
<div class="label">评价</div>
<div class="value">{{ detail.score ? detail.score : '--' }}</div>
</div>
</el-col>
<el-col :span="24">
<div class="items">
<div class="label">备注</div>
<div class="value">{{ detail.finishDesc ? detail.finishDesc : '--' }}</div>
</div>
</el-col>
</template>
</el-row>
<el-row v-else>
<el-col :span="24">
@ -137,16 +157,18 @@
</el-col>
</el-row>
<div v-if="!isSelect" class="btn-group">
<el-button class="green" plain round type="success" @click="handleDispatch">资源调度</el-button>
<el-button class="orange" plain round type="warning" @click="handleSupervision">催办督办</el-button>
</div>
<template v-if="detail.status !== 'finished'">
<div v-else class="btn-group">
<el-button class="cancel" plain round type="success" @click="handleCancel">取消</el-button>
<el-button class="sure" plain round type="warning" @click="handleSure">确定</el-button>
</div>
<div v-if="!isSelect" class="btn-group">
<el-button class="green" plain round type="success" @click="handleDispatch">资源调度</el-button>
<el-button class="orange" plain round type="warning" @click="handleSupervision">催办督办</el-button>
</div>
<div v-else class="btn-group">
<el-button class="cancel" plain round type="success" @click="handleCancel">取消</el-button>
<el-button class="sure" plain round type="warning" @click="handleSure">确定</el-button>
</div>
</template>
</div>
</div>
</el-dialog>
@ -207,14 +229,14 @@ export default {
this.$refs.ResourceScheduling.open()
},
handleSupervision() {
this.$refs.supervision.open(this.detail, this.demandRecId,'services')
this.$refs.supervision.open(this.detail, this.demandRecId, 'services')
},
handleCancel() {
this.isSelect = false;
this.form = {}
},
handleSure() {
this.$http.post('/governance/userdemand/assign',{
this.$http.post('/governance/userdemand/assign', {
...this.form,
demandRecId: this.demandRecId
}).then(res => {

1
src/views/dataBoard/overview/components/map-top.vue

@ -148,6 +148,7 @@ export default {
console.log(this.searchUrl);
const {data} = await requestGet(this.searchUrl, params);
console.log(data, 'data');
this.$emit('search',data)
} catch (error) {
console.error('Error fetching suggestions:', error);
}

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

@ -20,7 +20,7 @@
<div class="g-center">
<div :class="listShow ? 'm-map' : 'g-center-open'" style="overflow: hidden">
<map-top :currentLevelData="currentLevelData" :level="currentLevel" :peopleType="peopleType"
@changeType="changeType"/>
@changeType="changeType" @search="search"/>
<div v-if="breadList.length > 1" class="go-back" @click="goBackMap">
<img src="~@/assets/images/shuju/overview/go-back.png"/>
</div>
@ -458,7 +458,17 @@ export default {
resourcesPointClick(data) {
this.$refs.MapResourceInfo.open(data.id, data.dataClass)
},
search(data) {
data = data.filter(item => item.latitude && item.longitude)
data = data.map(item => {
return {
...item,
latitude: item.latitude * 1,
longitude: item.longitude * 1
}
})
this.$refs.map.setResourcesPoint(data)
},
setResourcesPoint({agencyId}) {
this.$http.get('/actual/base/dataBoard/resource/search?keyword=&agencyId=' + agencyId).then(res => {
let data = res.data.data;

1
src/views/dataBoard/renfang/cpts/rkfx.vue

@ -135,6 +135,7 @@ export default {
type,
name
} = item.data;
console.log(item,'itemitemitemitem')
this.$router.push({
path: "/dataBoard/renfang/resi-analyze",
query: {

210
src/views/dataBoard/renfang/resi/analyze.vue

@ -2,34 +2,34 @@
<div class="g-pgi">
<!-- 组织路由 -->
<cpt-bread
:separator="'/'"
@tap="handleClickBreadItem"
:breadList="breadList"
:breadList="breadList"
:separator="'/'"
@tap="handleClickBreadItem"
></cpt-bread>
<div class="m-title">
<img class="title_img" src="@/assets/images/index/list-logo.png" alt />
<img alt class="title_img" src="@/assets/images/index/list-logo.png"/>
<div class="tip_title">{{ tableTitle }}</div>
<div class="title_line"></div>
</div>
<div class="g-listbox">
<cpt-tb
:col-list="colList"
:loading="loading"
:header="header"
:list="list"
:total="total"
@handleSizeChange="handleSizeChange"
@handlePageNoChange="handlePageNoChange"
@operate="showInfo"
:col-list="colList"
:header="header"
:list="list"
:loading="loading"
:total="total"
@handlePageNoChange="handlePageNoChange"
@handleSizeChange="handleSizeChange"
@operate="showInfo"
></cpt-tb>
</div>
<resi-details
@close="displayedResiId = ''"
:resi-id="displayedResiId"
:popupShow="popupShow"
v-if="displayedResiId"
v-if="displayedResiId"
:popupShow="popupShow"
:resi-id="displayedResiId"
@close="displayedResiId = ''"
/>
</div>
</template>
@ -80,8 +80,7 @@ export default {
srcTableData: [],
list: [],
query: {
},
query: {},
colList: [
{
@ -135,7 +134,8 @@ export default {
],
displayedResiId: "",
popupShow: false
popupShow: false,
key: 'type'
};
},
@ -143,26 +143,37 @@ export default {
this.org_id = getQueryPara("org_id");
this.resiType = getQueryPara("type");
const type_name = getQueryPara("type_name");
const type_category = getQueryPara("type_category");
this.breadList[1].meta.title = type_name + "居民列表";
this.tableTitle = type_name + "居民列表";
if(type_category === '年龄') {
this.key = 'ageType'
} else if(type_category === '志愿者类别') {
this.key = 'volunteerType'
} else {
this.key = 'type'
}
this.pageNo = 1;
this.getList();
},
methods: {
handleClickBreadItem({ item }) {
handleClickBreadItem({item}) {
if (item.type == "back") {
this.$router.back();
}
},
handleSearch() {},
handleSearch() {
},
showInfo(index) {
this.popupShow = true
// this.popupShow = true
let item = this.srcTableData[index];
this.displayedResiId = item.resiId;
this.$router.push('/dataBoard/renfang/resident?user_id='+item.resiId)
// this.displayedResiId = item.resiId;
},
handlePageNoChange(pageNo) {
@ -177,7 +188,7 @@ export default {
},
async getList() {
const { org_id, resiType, pageNo, pageSize } = this;
const {org_id, resiType, pageNo, pageSize} = this;
this.loading = true;
const url = "/actual/base/residentBaseInfo/page";
@ -186,17 +197,18 @@ export default {
this.getQueryByResiType(resiType);
this.query = {
...this.query,
agencyId:org_id,
pageNo,
pageSize,
};
const { data, code, msg } = await requestPost(
url,this.query,
{
// mockId: 60069169,
}
...this.query,
[this.key]: this.resiType,
agencyId: org_id,
pageNo,
pageSize,
};
const {data, code, msg} = await requestPost(
url, this.query,
{
// mockId: 60069169,
}
);
this.loading = false;
@ -204,7 +216,7 @@ export default {
if (code === 0) {
this.srcTableData = data.list;
this.total = data.total;
this.list = data.list.map((item, index) => {
return [
index + 1,
@ -215,7 +227,7 @@ export default {
item.idNum ? item.idNum : "--",
item.gender === "1" ? "男" : (item.gender === "2" ? "女" : "--"),
item.birthday ? item.birthday : "--",
{ type: "operate", list: ["查看"] },
{type: "operate", list: ["查看"]},
];
});
} else {
@ -223,67 +235,67 @@ export default {
}
},
getQueryByResiType(resiType){
if(resiType == "male_count"){
this.query = {gender:"1" };
}else if (resiType == "female_count") {
this.query = {gender:"2" };
}else if (resiType == "local_count") {
this.query = {localResidenceFlag:"1" };
}else if (resiType == "field_count") {
this.query = {localResidenceFlag:"0" };
}else if (resiType == "resi_y_house_y_count") {
this.query = {householdSituation:"rhyz" };
}else if (resiType == "resi_y_house_n_count") {
this.query = {householdSituation:"rzhbz" };
}else if (resiType == "resi_n_house_y_count") {
this.query = {householdSituation:"hzrbz" };
}else if (resiType == "age50_count") {
this.query = {gender:"2" };
}else if (resiType == "age5059_count") {
this.query = {gender:"2" };
}else if (resiType == "age6069_count") {
this.query = {gender:"2" };
}else if (resiType == "age7079_count") {
this.query = {gender:"2" };
}else if (resiType == "age80_count") {
this.query = {gender:"2" };
}else if (resiType == "culture_count") {
this.query = {gender:"2" };
}else if (resiType == "committee_count") {
this.query = {gender:"2" };
}else if (resiType == "capable_count") {
this.query = {gender:"2" };
}else if (resiType == "friend_count") {
this.query = {gender:"2" };
}else if (resiType == "agent_count") {
this.query = {gender:"2" };
}else if (resiType == "mediator_count") {
this.query = {gender:"2" };
}else if (resiType == "collector_count") {
this.query = {gender:"2" };
}else if (resiType == "security_count") {
this.query = {gender:"2" };
}else if (resiType == "party_mem_count") {
this.query = {gender:"2" };
}else if (resiType == "primary_count") {
this.query = {cultureLevel:"0",categoryKey:"PARTY_FLAG"};
}else if (resiType == "junior_high_count") {
this.query = {cultureLevel:"1",categoryKey:"PARTY_FLAG"};
}else if (resiType == "second_speci_count") {
this.query = {cultureLevel:"2",categoryKey:"PARTY_FLAG"};
}else if (resiType == "high_school_count") {
this.query = {cultureLevel:"3",categoryKey:"PARTY_FLAG"};
}else if (resiType == "junior_college_count") {
this.query = {cultureLevel:"4",categoryKey:"PARTY_FLAG"};
}else if (resiType == "undergrad_count") {
this.query = {cultureLevel:"5",categoryKey:"PARTY_FLAG"};
}else if (resiType == "master_count") {
this.query = {cultureLevel:"6",categoryKey:"PARTY_FLAG"};
}else if (resiType == "doctor_count") {
this.query = {cultureLevel:"7",categoryKey:"PARTY_FLAG"};
}
},
getQueryByResiType(resiType) {
if (resiType == "male_count") {
this.query = {gender: "1"};
} else if (resiType == "female_count") {
this.query = {gender: "2"};
} else if (resiType == "local_count") {
this.query = {localResidenceFlag: "1"};
} else if (resiType == "field_count") {
this.query = {localResidenceFlag: "0"};
} else if (resiType == "resi_y_house_y_count") {
this.query = {householdSituation: "rhyz"};
} else if (resiType == "resi_y_house_n_count") {
this.query = {householdSituation: "rzhbz"};
} else if (resiType == "resi_n_house_y_count") {
this.query = {householdSituation: "hzrbz"};
} else if (resiType == "age50_count") {
this.query = {gender: "2"};
} else if (resiType == "age5059_count") {
this.query = {gender: "2"};
} else if (resiType == "age6069_count") {
this.query = {gender: "2"};
} else if (resiType == "age7079_count") {
this.query = {gender: "2"};
} else if (resiType == "age80_count") {
this.query = {gender: "2"};
} else if (resiType == "culture_count") {
this.query = {gender: "2"};
} else if (resiType == "committee_count") {
this.query = {gender: "2"};
} else if (resiType == "capable_count") {
this.query = {gender: "2"};
} else if (resiType == "friend_count") {
this.query = {gender: "2"};
} else if (resiType == "agent_count") {
this.query = {gender: "2"};
} else if (resiType == "mediator_count") {
this.query = {gender: "2"};
} else if (resiType == "collector_count") {
this.query = {gender: "2"};
} else if (resiType == "security_count") {
this.query = {gender: "2"};
} else if (resiType == "party_mem_count") {
this.query = {gender: "2"};
} else if (resiType == "primary_count") {
this.query = {cultureLevel: "0", categoryKey: "PARTY_FLAG"};
} else if (resiType == "junior_high_count") {
this.query = {cultureLevel: "1", categoryKey: "PARTY_FLAG"};
} else if (resiType == "second_speci_count") {
this.query = {cultureLevel: "2", categoryKey: "PARTY_FLAG"};
} else if (resiType == "high_school_count") {
this.query = {cultureLevel: "3", categoryKey: "PARTY_FLAG"};
} else if (resiType == "junior_college_count") {
this.query = {cultureLevel: "4", categoryKey: "PARTY_FLAG"};
} else if (resiType == "undergrad_count") {
this.query = {cultureLevel: "5", categoryKey: "PARTY_FLAG"};
} else if (resiType == "master_count") {
this.query = {cultureLevel: "6", categoryKey: "PARTY_FLAG"};
} else if (resiType == "doctor_count") {
this.query = {cultureLevel: "7", categoryKey: "PARTY_FLAG"};
}
},
},
destroyed() {
@ -292,4 +304,4 @@ export default {
};
</script>
<style lang="scss" src="@/assets/scss/dataBoard/listBox.scss" scoped></style>
<style lang="scss" scoped src="@/assets/scss/dataBoard/listBox.scss"></style>

84
src/views/dataBoard/satisfactionEval/Problem/tddtlxsj/detail.vue

@ -14,20 +14,20 @@
<el-table-column label="工单号" prop="workOrderNum" show-overflow-tooltip/>
<el-table-column label="所属社区" prop="gridName"></el-table-column>
<el-table-column label="事件分类" prop="categoryName" show-overflow-tooltip></el-table-column>
<el-table-column label="投诉内容" prop="eventContent" show-overflow-tooltip min-width="220px"></el-table-column>
<el-table-column label="投诉内容" min-width="220px" prop="eventContent" show-overflow-tooltip></el-table-column>
<el-table-column label="接收时间" prop="happenTime"></el-table-column>
<el-table-column label="联系人" prop="name"></el-table-column>
<el-table-column label="联系电话" prop="mobile">
<template slot-scope="scope">
<el-button
v-if="scope.row.reportUserId != null && scope.row.reportUserId != ''"
@click="handleLook(scope.row)"
type="text"
size="small"
>
{{ $sensitive(scope.row.mobile, 3, 7) }}
</el-button>
<span v-else>
<el-button
v-if="scope.row.reportUserId != null && scope.row.reportUserId != ''"
size="small"
type="text"
@click="handleLook(scope.row)"
>
{{ $sensitive(scope.row.mobile, 3, 7) }}
</el-button>
<span v-else>
{{ $sensitive(scope.row.mobile, 3, 7) }}
</span>
</template>
@ -78,10 +78,10 @@ export default {
path: "/dataBoard/satisfactionEval/index",
name: "满意度评价",
},
/* {
path: "/dataBoard/satisfactionEval/Problem/tddtlxsj",
name: "同地点同类型重复投诉问题列表",
},*/
/* {
path: "/dataBoard/satisfactionEval/Problem/tddtlxsj",
name: "同地点同类型重复投诉问题列表",
},*/
{
path: "",
name: "详情",
@ -98,6 +98,34 @@ export default {
},
activated() {
// this.breadcrumbList[2].name = this.address + ''
let type = this.$route.query.type;
if (type === 'list') {
this.breadcrumbList = [
{
path: "/dataBoard/satisfactionEval/index",
name: "满意度评价",
},
{
path: "/dataBoard/satisfactionEval/Problem/tddtlxsj",
name: "同地点同类型重复投诉问题列表",
},
{
path: "",
name: "详情",
}
]
} else {
this.breadcrumbList = [
{
path: "/dataBoard/satisfactionEval/index",
name: "满意度评价",
},
{
path: "",
name: "详情",
}
]
}
this.recId = this.$route.query.recId;
this.departId = this.$route.query.departId;
this.address = this.$route.query.address;
@ -109,30 +137,30 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
async getList() {
async getList() {
this.loading = true;
let params = {
...this.queryParams,
}
try {
const url = "/governance/dwdEvent/list";
if(this.recId){
if (this.recId) {
params.secondIdList = [this.recId];
}
if(this.departId){
if (this.departId) {
params.departId = this.departId;
}
if(this.address){
if (this.address) {
params.content = this.address;
}
if(this.mobile){
if (this.mobile) {
params.mobile = this.mobile;
}
const { data, code, msg } = await requestPost(url, {
const {data, code, msg} = await requestPost(url, {
...params,
});
if (code == 0) {
@ -152,14 +180,14 @@ export default {
},
//
handleLook(row) {
let { reportUserId } = row
this.$router.push({
path: "/dataBoard/overview/resident",
query: {
user_id: reportUserId,
type:'renfang'
},
});
let {reportUserId} = row
this.$router.push({
path: "/dataBoard/overview/resident",
query: {
user_id: reportUserId,
type: 'renfang'
},
});
},
},
};

26
src/views/dataBoard/satisfactionEval/Problem/tddtlxsj/list.vue

@ -121,36 +121,36 @@ export default {
...this.timeChange(this.typeCondition)
}
requestPost('/governance/dwdEvent/eventList',params).then(({data}) => {
this.total = data.total;
this.list = data.list;
this.total = data?data.total : 0;
this.list = data?data.list : [];
this.loading = false;
});
},
timeChange(type) {
let startTime = "",
endTime = "";
let queryDateStart = "",
queryDateEnd = "";
if (type == 1) {
startTime = this.$moment().startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().startOf("month").format("YYYY-MM-DD");
}
if (type == 2) {
startTime = this.$moment().subtract(1, "months").startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().subtract(1, "months").startOf("month").format("YYYY-MM-DD");
}
if (type == 3) {
startTime = this.$moment().subtract(2, "months").startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().subtract(2, "months").startOf("month").format("YYYY-MM-DD");
}
if (type == 4) {
startTime = this.$moment().subtract(5, "months").startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().subtract(5, "months").startOf("month").format("YYYY-MM-DD");
}
if (type == 5) {
startTime = this.$moment().subtract(11, "months").startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().subtract(11, "months").startOf("month").format("YYYY-MM-DD");
}
if (type == 2) {
endTime = this.$moment().subtract(1, "months").endOf("month").format("YYYY-MM-DD");
queryDateEnd = this.$moment().subtract(1, "months").endOf("month").format("YYYY-MM-DD");
} else {
endTime = this.$moment().endOf("month").format("YYYY-MM-DD");
queryDateEnd = this.$moment().endOf("month").format("YYYY-MM-DD");
}
return {startTime, endTime};
return {queryDateStart, queryDateEnd};
},
handleView(row) {
let params = {
@ -158,7 +158,7 @@ export default {
address: row.address
}
this.$router.push('/dataBoard/satisfactionEval/Problem/tddtlxsj/detail?'+this.$paramsFormat(params))
this.$router.push('/dataBoard/satisfactionEval/Problem/tddtlxsj/detail?type=list&'+this.$paramsFormat(params))
},
},
};

82
src/views/dataBoard/satisfactionEval/Problem/tyqybtlx/detail.vue

@ -14,20 +14,20 @@
<el-table-column label="工单号" prop="workOrderNum" show-overflow-tooltip/>
<el-table-column label="所属社区" prop="gridName"></el-table-column>
<el-table-column label="事件分类" prop="categoryName" show-overflow-tooltip></el-table-column>
<el-table-column label="投诉内容" prop="eventContent" show-overflow-tooltip min-width="220px"></el-table-column>
<el-table-column label="投诉内容" min-width="220px" prop="eventContent" show-overflow-tooltip></el-table-column>
<el-table-column label="接收时间" prop="happenTime"></el-table-column>
<el-table-column label="联系人" prop="name"></el-table-column>
<el-table-column label="联系电话" prop="mobile">
<template slot-scope="scope">
<el-button
v-if="scope.row.reportUserId != null && scope.row.reportUserId != ''"
@click="handleLook(scope.row)"
type="text"
size="small"
>
{{ $sensitive(scope.row.mobile, 3, 7) }}
</el-button>
<span v-else>
<el-button
v-if="scope.row.reportUserId != null && scope.row.reportUserId != ''"
size="small"
type="text"
@click="handleLook(scope.row)"
>
{{ $sensitive(scope.row.mobile, 3, 7) }}
</el-button>
<span v-else>
{{ $sensitive(scope.row.mobile, 3, 7) }}
</span>
</template>
@ -78,10 +78,10 @@ export default {
path: "/dataBoard/satisfactionEval/index",
name: "满意度评价",
},
/* {
path: "/dataBoard/satisfactionEval/Problem/tyqybtlx",
name: "同一区域不同类型重复投诉问题列表",
},*/
/* {
path: "/dataBoard/satisfactionEval/Problem/tyqybtlx",
name: "同一区域不同类型重复投诉问题列表",
},*/
{
path: "",
name: "详情",
@ -98,6 +98,34 @@ export default {
},
activated() {
// this.breadcrumbList[2].name = this.address + ''
let type = this.$route.query.type
if (type === 'list') {
this.breadcrumbList = [
{
path: "/dataBoard/satisfactionEval/index",
name: "满意度评价",
},
{
path: "/dataBoard/satisfactionEval/Problem/tyqybtlx",
name: "同一区域不同类型重复投诉问题列表",
},
{
path: "",
name: "详情",
},
]
} else {
this.breadcrumbList = [
{
path: "/dataBoard/satisfactionEval/index",
name: "满意度评价",
},
{
path: "",
name: "详情",
},
]
}
this.recId = this.$route.query.recId;
this.departId = this.$route.query.departId;
this.address = this.$route.query.address;
@ -116,23 +144,23 @@ export default {
}
try {
const url = "/governance/dwdEvent/list";
if(this.recId){
if (this.recId) {
params.secondIdList = [this.recId];
}
if(this.departId){
if (this.departId) {
params.departId = this.departId;
}
if(this.address){
if (this.address) {
params.content = this.address;
}
if(this.mobile){
if (this.mobile) {
params.mobile = this.mobile;
}
const { data, code, msg } = await requestPost(url, {
const {data, code, msg} = await requestPost(url, {
...params,
});
if (code == 0) {
@ -152,14 +180,14 @@ export default {
},
//
handleLook(row) {
let { reportUserId } = row
this.$router.push({
path: "/dataBoard/overview/resident",
query: {
user_id: reportUserId,
type:'renfang'
},
});
let {reportUserId} = row
this.$router.push({
path: "/dataBoard/overview/resident",
query: {
user_id: reportUserId,
type: 'renfang'
},
});
},
},
};

26
src/views/dataBoard/satisfactionEval/Problem/tyqybtlx/list.vue

@ -161,39 +161,39 @@ export default {
...this.timeChange(this.typeCondition)
}
requestPost('/governance/dwdEvent/eventList',params).then(({data}) => {
this.total = data.total;
this.data = data.list;
this.total = data?data.total : 0;
this.list = data?data.list : [];
this.loading = false;
});
},
timeChange(type) {
let startTime = "",
endTime = "";
let queryDateStart = "",
queryDateEnd = "";
if (type == 1) {
startTime = this.$moment().startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().startOf("month").format("YYYY-MM-DD");
}
if (type == 2) {
startTime = this.$moment().subtract(1, "months").startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().subtract(1, "months").startOf("month").format("YYYY-MM-DD");
}
if (type == 3) {
startTime = this.$moment().subtract(2, "months").startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().subtract(2, "months").startOf("month").format("YYYY-MM-DD");
}
if (type == 4) {
startTime = this.$moment().subtract(5, "months").startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().subtract(5, "months").startOf("month").format("YYYY-MM-DD");
}
if (type == 5) {
startTime = this.$moment().subtract(11, "months").startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().subtract(11, "months").startOf("month").format("YYYY-MM-DD");
}
if (type == 2) {
endTime = this.$moment().subtract(1, "months").endOf("month").format("YYYY-MM-DD");
queryDateEnd = this.$moment().subtract(1, "months").endOf("month").format("YYYY-MM-DD");
} else {
endTime = this.$moment().endOf("month").format("YYYY-MM-DD");
queryDateEnd = this.$moment().endOf("month").format("YYYY-MM-DD");
}
return {startTime, endTime};
return {queryDateStart, queryDateEnd};
},
handleView({address}) {
this.$router.push('/dataBoard/satisfactionEval/Problem/tyqybtlx/detail?address=' + address)
this.$router.push('/dataBoard/satisfactionEval/Problem/tyqybtlx/detail?type=list&address=' + address)
},
},
};

28
src/views/dataBoard/satisfactionEval/Problem/tyry/detail.vue

@ -98,6 +98,34 @@ export default {
},
activated() {
// this.breadcrumbList[2].name = this.address + ''
let type = this.$route.query.type;
if(type === 'list') {
this.breadcrumbList = [
{
path: "/dataBoard/satisfactionEval/index",
name: "满意度评价",
},
{
path: "/dataBoard/satisfactionEval/Problem/tyry",
name: "同一人员重复投诉问题列表",
},
{
path: "",
name: "详情",
}
]
} else {
this.breadcrumbList = [
{
path: "/dataBoard/satisfactionEval/index",
name: "满意度评价",
},
{
path: "",
name: "详情",
}
]
}
this.recId = this.$route.query.recId;
this.departId = this.$route.query.departId;
this.address = this.$route.query.address;

26
src/views/dataBoard/satisfactionEval/Problem/tyry/list.vue

@ -136,40 +136,40 @@ export default {
...this.timeChange(this.typeCondition)
}
requestPost('/governance/dwdEvent/eventList',params).then(({data}) => {
this.total = data.total;
this.list = data.list;
this.total = data?data.total : 0;
this.list = data?data.list : [];
this.loading = false;
});
},
timeChange(type) {
let startTime = "",
endTime = "";
let queryDateStart = "",
queryDateEnd = "";
if (type == 1) {
startTime = this.$moment().startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().startOf("month").format("YYYY-MM-DD");
}
if (type == 2) {
startTime = this.$moment().subtract(1, "months").startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().subtract(1, "months").startOf("month").format("YYYY-MM-DD");
}
if (type == 3) {
startTime = this.$moment().subtract(2, "months").startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().subtract(2, "months").startOf("month").format("YYYY-MM-DD");
}
if (type == 4) {
startTime = this.$moment().subtract(5, "months").startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().subtract(5, "months").startOf("month").format("YYYY-MM-DD");
}
if (type == 5) {
startTime = this.$moment().subtract(11, "months").startOf("month").format("YYYY-MM-DD");
queryDateStart = this.$moment().subtract(11, "months").startOf("month").format("YYYY-MM-DD");
}
if (type == 2) {
endTime = this.$moment().subtract(1, "months").endOf("month").format("YYYY-MM-DD");
queryDateEnd = this.$moment().subtract(1, "months").endOf("month").format("YYYY-MM-DD");
} else {
endTime = this.$moment().endOf("month").format("YYYY-MM-DD");
queryDateEnd = this.$moment().endOf("month").format("YYYY-MM-DD");
}
return {startTime, endTime};
return {queryDateStart, queryDateEnd};
},
handleView(row) {
this.$router.push('/dataBoard/satisfactionEval/Problem/tyry/detail?mobile='+row.mobile)
this.$router.push('/dataBoard/satisfactionEval/Problem/tyry/detail?type=list&mobile='+row.mobile)
},
//
handleLook(row) {

Loading…
Cancel
Save