Browse Source

修改bug

v1.1
战立标 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>
</div> </div>
</el-col> </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>
<el-row v-if="isSelect"> <el-row v-if="isSelect">
@ -116,16 +160,17 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<template v-if="detail.assignFlag != '1'">
<div v-if="!isSelect" class="btn-group"> <div v-if="!isSelect" class="btn-group">
<el-button class="green" plain round type="success" @click="handleDispatch">资源调度</el-button> <el-button class="green" plain round type="success" @click="handleDispatch">资源调度</el-button>
</div> </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-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>
</div> </div>
</el-dialog> </el-dialog>
@ -315,13 +360,13 @@ export default {
} }
}); });
this.form.serviceScopeList = arr; this.form.serviceScopeList = arr;
let params = { let params = {
...this.detail, ...this.detail,
assignFlag: 1, assignFlag: 1,
assignInfo: { assignInfo: {
serviceScopeList: this.form.serviceScopeList, 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], serviceTimeStart: this.form.date[0],
serviceTimeEnd: this.form.date[1], serviceTimeEnd: this.form.date[1],
serverOrgType: this.form.serverOrgType, serverOrgType: this.form.serverOrgType,
@ -474,8 +519,9 @@ export default {
border-bottom: solid 1px #006cff; border-bottom: solid 1px #006cff;
} }
} }
/deep/ .el-cascader__tags .el-tag { /deep/ .el-cascader__tags .el-tag {
color: #fff !important;
background-color: rgba(#409eff, .5) !important; background-color: rgba(#409eff, .5) !important;
color: #fff!important;
} }
</style> </style>

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

@ -198,7 +198,8 @@
</el-col> </el-col>
</el-row> </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="green" plain round type="success" @click="handleDispatch">资源调度</el-button>
<el-button class="orange" plain round type="warning" @click="handleSupervision">催办督办</el-button> <el-button class="orange" plain round type="warning" @click="handleSupervision">催办督办</el-button>
</div> </div>
@ -259,7 +260,8 @@ export default {
loading: false, loading: false,
loading1: false, loading1: false,
activities: [], 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="score"/>
<el-table-column v-if="type === 1" label="状态" prop="statusName"/> <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="serviceName"/>
<el-table-column v-if="type !== 1" label="来自" prop="sourceName"/> <el-table-column v-if="type !== 1" label="来自" prop="sourceName"/>
<el-table-column v-if="type !== 1" label="服务时间" prop="serviceTimeStart"/> <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 class="value">{{ detail.serviceShowName }}</div>
</div> </div>
</el-col> </el-col>
<!-- <el-col :span="12"> <template v-if="detail.status == 'finished' && detail.reportType != 'self_help'">
<div class="items"> <el-col :span="12">
<div class="label">服务方联系电话</div> <div class="items">
<div class="value">缺字段</div> <div class="label">完成情况</div>
<CallPhone icon="el-icon-phone"/> <div class="value">{{
</div> detail.finishResult === 'resolved' ? '已解决' : detail.finishResult === 'unresolved' ? '未解决' : '--'
</el-col>--> }}
</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>
<el-row v-else> <el-row v-else>
<el-col :span="24"> <el-col :span="24">
@ -137,16 +157,18 @@
</el-col> </el-col>
</el-row> </el-row>
<div v-if="!isSelect" class="btn-group"> <template v-if="detail.status !== 'finished'">
<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"> <div v-if="!isSelect" class="btn-group">
<el-button class="cancel" plain round type="success" @click="handleCancel">取消</el-button> <el-button class="green" plain round type="success" @click="handleDispatch">资源调度</el-button>
<el-button class="sure" plain round type="warning" @click="handleSure">确定</el-button> <el-button class="orange" plain round type="warning" @click="handleSupervision">催办督办</el-button>
</div> </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>
</div> </div>
</el-dialog> </el-dialog>
@ -207,14 +229,14 @@ export default {
this.$refs.ResourceScheduling.open() this.$refs.ResourceScheduling.open()
}, },
handleSupervision() { handleSupervision() {
this.$refs.supervision.open(this.detail, this.demandRecId,'services') this.$refs.supervision.open(this.detail, this.demandRecId, 'services')
}, },
handleCancel() { handleCancel() {
this.isSelect = false; this.isSelect = false;
this.form = {} this.form = {}
}, },
handleSure() { handleSure() {
this.$http.post('/governance/userdemand/assign',{ this.$http.post('/governance/userdemand/assign', {
...this.form, ...this.form,
demandRecId: this.demandRecId demandRecId: this.demandRecId
}).then(res => { }).then(res => {

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

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

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

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

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

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

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

@ -2,34 +2,34 @@
<div class="g-pgi"> <div class="g-pgi">
<!-- 组织路由 --> <!-- 组织路由 -->
<cpt-bread <cpt-bread
:separator="'/'" :breadList="breadList"
@tap="handleClickBreadItem" :separator="'/'"
:breadList="breadList" @tap="handleClickBreadItem"
></cpt-bread> ></cpt-bread>
<div class="m-title"> <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="tip_title">{{ tableTitle }}</div>
<div class="title_line"></div> <div class="title_line"></div>
</div> </div>
<div class="g-listbox"> <div class="g-listbox">
<cpt-tb <cpt-tb
:col-list="colList" :col-list="colList"
:loading="loading" :header="header"
:header="header" :list="list"
:list="list" :loading="loading"
:total="total" :total="total"
@handleSizeChange="handleSizeChange" @handlePageNoChange="handlePageNoChange"
@handlePageNoChange="handlePageNoChange" @handleSizeChange="handleSizeChange"
@operate="showInfo" @operate="showInfo"
></cpt-tb> ></cpt-tb>
</div> </div>
<resi-details <resi-details
@close="displayedResiId = ''" v-if="displayedResiId"
:resi-id="displayedResiId" :popupShow="popupShow"
:popupShow="popupShow" :resi-id="displayedResiId"
v-if="displayedResiId" @close="displayedResiId = ''"
/> />
</div> </div>
</template> </template>
@ -80,8 +80,7 @@ export default {
srcTableData: [], srcTableData: [],
list: [], list: [],
query: { query: {},
},
colList: [ colList: [
{ {
@ -135,7 +134,8 @@ export default {
], ],
displayedResiId: "", displayedResiId: "",
popupShow: false popupShow: false,
key: 'type'
}; };
}, },
@ -143,26 +143,37 @@ export default {
this.org_id = getQueryPara("org_id"); this.org_id = getQueryPara("org_id");
this.resiType = getQueryPara("type"); this.resiType = getQueryPara("type");
const type_name = getQueryPara("type_name"); const type_name = getQueryPara("type_name");
const type_category = getQueryPara("type_category");
this.breadList[1].meta.title = type_name + "居民列表"; this.breadList[1].meta.title = type_name + "居民列表";
this.tableTitle = 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.pageNo = 1;
this.getList(); this.getList();
}, },
methods: { methods: {
handleClickBreadItem({ item }) { handleClickBreadItem({item}) {
if (item.type == "back") { if (item.type == "back") {
this.$router.back(); this.$router.back();
} }
}, },
handleSearch() {}, handleSearch() {
},
showInfo(index) { showInfo(index) {
this.popupShow = true // this.popupShow = true
let item = this.srcTableData[index]; 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) { handlePageNoChange(pageNo) {
@ -177,7 +188,7 @@ export default {
}, },
async getList() { async getList() {
const { org_id, resiType, pageNo, pageSize } = this; const {org_id, resiType, pageNo, pageSize} = this;
this.loading = true; this.loading = true;
const url = "/actual/base/residentBaseInfo/page"; const url = "/actual/base/residentBaseInfo/page";
@ -186,17 +197,18 @@ export default {
this.getQueryByResiType(resiType); this.getQueryByResiType(resiType);
this.query = { this.query = {
...this.query, ...this.query,
agencyId:org_id, [this.key]: this.resiType,
pageNo, agencyId: org_id,
pageSize, pageNo,
}; pageSize,
};
const { data, code, msg } = await requestPost(
url,this.query, const {data, code, msg} = await requestPost(
{ url, this.query,
// mockId: 60069169, {
} // mockId: 60069169,
}
); );
this.loading = false; this.loading = false;
@ -204,7 +216,7 @@ export default {
if (code === 0) { if (code === 0) {
this.srcTableData = data.list; this.srcTableData = data.list;
this.total = data.total; this.total = data.total;
this.list = data.list.map((item, index) => { this.list = data.list.map((item, index) => {
return [ return [
index + 1, index + 1,
@ -215,7 +227,7 @@ export default {
item.idNum ? item.idNum : "--", item.idNum ? item.idNum : "--",
item.gender === "1" ? "男" : (item.gender === "2" ? "女" : "--"), item.gender === "1" ? "男" : (item.gender === "2" ? "女" : "--"),
item.birthday ? item.birthday : "--", item.birthday ? item.birthday : "--",
{ type: "operate", list: ["查看"] }, {type: "operate", list: ["查看"]},
]; ];
}); });
} else { } else {
@ -223,67 +235,67 @@ export default {
} }
}, },
getQueryByResiType(resiType){ getQueryByResiType(resiType) {
if(resiType == "male_count"){ if (resiType == "male_count") {
this.query = {gender:"1" }; this.query = {gender: "1"};
}else if (resiType == "female_count") { } else if (resiType == "female_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "local_count") { } else if (resiType == "local_count") {
this.query = {localResidenceFlag:"1" }; this.query = {localResidenceFlag: "1"};
}else if (resiType == "field_count") { } else if (resiType == "field_count") {
this.query = {localResidenceFlag:"0" }; this.query = {localResidenceFlag: "0"};
}else if (resiType == "resi_y_house_y_count") { } else if (resiType == "resi_y_house_y_count") {
this.query = {householdSituation:"rhyz" }; this.query = {householdSituation: "rhyz"};
}else if (resiType == "resi_y_house_n_count") { } else if (resiType == "resi_y_house_n_count") {
this.query = {householdSituation:"rzhbz" }; this.query = {householdSituation: "rzhbz"};
}else if (resiType == "resi_n_house_y_count") { } else if (resiType == "resi_n_house_y_count") {
this.query = {householdSituation:"hzrbz" }; this.query = {householdSituation: "hzrbz"};
}else if (resiType == "age50_count") { } else if (resiType == "age50_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "age5059_count") { } else if (resiType == "age5059_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "age6069_count") { } else if (resiType == "age6069_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "age7079_count") { } else if (resiType == "age7079_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "age80_count") { } else if (resiType == "age80_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "culture_count") { } else if (resiType == "culture_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "committee_count") { } else if (resiType == "committee_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "capable_count") { } else if (resiType == "capable_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "friend_count") { } else if (resiType == "friend_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "agent_count") { } else if (resiType == "agent_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "mediator_count") { } else if (resiType == "mediator_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "collector_count") { } else if (resiType == "collector_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "security_count") { } else if (resiType == "security_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "party_mem_count") { } else if (resiType == "party_mem_count") {
this.query = {gender:"2" }; this.query = {gender: "2"};
}else if (resiType == "primary_count") { } else if (resiType == "primary_count") {
this.query = {cultureLevel:"0",categoryKey:"PARTY_FLAG"}; this.query = {cultureLevel: "0", categoryKey: "PARTY_FLAG"};
}else if (resiType == "junior_high_count") { } else if (resiType == "junior_high_count") {
this.query = {cultureLevel:"1",categoryKey:"PARTY_FLAG"}; this.query = {cultureLevel: "1", categoryKey: "PARTY_FLAG"};
}else if (resiType == "second_speci_count") { } else if (resiType == "second_speci_count") {
this.query = {cultureLevel:"2",categoryKey:"PARTY_FLAG"}; this.query = {cultureLevel: "2", categoryKey: "PARTY_FLAG"};
}else if (resiType == "high_school_count") { } else if (resiType == "high_school_count") {
this.query = {cultureLevel:"3",categoryKey:"PARTY_FLAG"}; this.query = {cultureLevel: "3", categoryKey: "PARTY_FLAG"};
}else if (resiType == "junior_college_count") { } else if (resiType == "junior_college_count") {
this.query = {cultureLevel:"4",categoryKey:"PARTY_FLAG"}; this.query = {cultureLevel: "4", categoryKey: "PARTY_FLAG"};
}else if (resiType == "undergrad_count") { } else if (resiType == "undergrad_count") {
this.query = {cultureLevel:"5",categoryKey:"PARTY_FLAG"}; this.query = {cultureLevel: "5", categoryKey: "PARTY_FLAG"};
}else if (resiType == "master_count") { } else if (resiType == "master_count") {
this.query = {cultureLevel:"6",categoryKey:"PARTY_FLAG"}; this.query = {cultureLevel: "6", categoryKey: "PARTY_FLAG"};
}else if (resiType == "doctor_count") { } else if (resiType == "doctor_count") {
this.query = {cultureLevel:"7",categoryKey:"PARTY_FLAG"}; this.query = {cultureLevel: "7", categoryKey: "PARTY_FLAG"};
} }
}, },
}, },
destroyed() { destroyed() {
@ -292,4 +304,4 @@ export default {
}; };
</script> </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="workOrderNum" show-overflow-tooltip/>
<el-table-column label="所属社区" prop="gridName"></el-table-column> <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="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="happenTime"></el-table-column>
<el-table-column label="联系人" prop="name"></el-table-column> <el-table-column label="联系人" prop="name"></el-table-column>
<el-table-column label="联系电话" prop="mobile"> <el-table-column label="联系电话" prop="mobile">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-if="scope.row.reportUserId != null && scope.row.reportUserId != ''" v-if="scope.row.reportUserId != null && scope.row.reportUserId != ''"
@click="handleLook(scope.row)" size="small"
type="text" type="text"
size="small" @click="handleLook(scope.row)"
> >
{{ $sensitive(scope.row.mobile, 3, 7) }} {{ $sensitive(scope.row.mobile, 3, 7) }}
</el-button> </el-button>
<span v-else> <span v-else>
{{ $sensitive(scope.row.mobile, 3, 7) }} {{ $sensitive(scope.row.mobile, 3, 7) }}
</span> </span>
</template> </template>
@ -78,10 +78,10 @@ export default {
path: "/dataBoard/satisfactionEval/index", path: "/dataBoard/satisfactionEval/index",
name: "满意度评价", name: "满意度评价",
}, },
/* { /* {
path: "/dataBoard/satisfactionEval/Problem/tddtlxsj", path: "/dataBoard/satisfactionEval/Problem/tddtlxsj",
name: "同地点同类型重复投诉问题列表", name: "同地点同类型重复投诉问题列表",
},*/ },*/
{ {
path: "", path: "",
name: "详情", name: "详情",
@ -98,6 +98,34 @@ export default {
}, },
activated() { activated() {
// this.breadcrumbList[2].name = this.address + '' // 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.recId = this.$route.query.recId;
this.departId = this.$route.query.departId; this.departId = this.$route.query.departId;
this.address = this.$route.query.address; this.address = this.$route.query.address;
@ -109,30 +137,30 @@ export default {
this.queryParams.pageNo = 1; this.queryParams.pageNo = 1;
this.getList(); this.getList();
}, },
async getList() { async getList() {
this.loading = true; this.loading = true;
let params = { let params = {
...this.queryParams, ...this.queryParams,
} }
try { try {
const url = "/governance/dwdEvent/list"; const url = "/governance/dwdEvent/list";
if(this.recId){ if (this.recId) {
params.secondIdList = [this.recId]; params.secondIdList = [this.recId];
} }
if(this.departId){ if (this.departId) {
params.departId = this.departId; params.departId = this.departId;
} }
if(this.address){ if (this.address) {
params.content = this.address; params.content = this.address;
} }
if(this.mobile){ if (this.mobile) {
params.mobile = this.mobile; params.mobile = this.mobile;
} }
const { data, code, msg } = await requestPost(url, { const {data, code, msg} = await requestPost(url, {
...params, ...params,
}); });
if (code == 0) { if (code == 0) {
@ -152,14 +180,14 @@ export default {
}, },
// //
handleLook(row) { handleLook(row) {
let { reportUserId } = row let {reportUserId} = row
this.$router.push({ this.$router.push({
path: "/dataBoard/overview/resident", path: "/dataBoard/overview/resident",
query: { query: {
user_id: reportUserId, user_id: reportUserId,
type:'renfang' type: 'renfang'
}, },
}); });
}, },
}, },
}; };

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

@ -121,36 +121,36 @@ export default {
...this.timeChange(this.typeCondition) ...this.timeChange(this.typeCondition)
} }
requestPost('/governance/dwdEvent/eventList',params).then(({data}) => { requestPost('/governance/dwdEvent/eventList',params).then(({data}) => {
this.total = data.total; this.total = data?data.total : 0;
this.list = data.list; this.list = data?data.list : [];
this.loading = false; this.loading = false;
}); });
}, },
timeChange(type) { timeChange(type) {
let startTime = "", let queryDateStart = "",
endTime = ""; queryDateEnd = "";
if (type == 1) { if (type == 1) {
startTime = this.$moment().startOf("month").format("YYYY-MM-DD"); queryDateStart = this.$moment().startOf("month").format("YYYY-MM-DD");
} }
if (type == 2) { 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) { 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) { 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) { 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) { 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 { } 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) { handleView(row) {
let params = { let params = {
@ -158,7 +158,7 @@ export default {
address: row.address 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="workOrderNum" show-overflow-tooltip/>
<el-table-column label="所属社区" prop="gridName"></el-table-column> <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="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="happenTime"></el-table-column>
<el-table-column label="联系人" prop="name"></el-table-column> <el-table-column label="联系人" prop="name"></el-table-column>
<el-table-column label="联系电话" prop="mobile"> <el-table-column label="联系电话" prop="mobile">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-if="scope.row.reportUserId != null && scope.row.reportUserId != ''" v-if="scope.row.reportUserId != null && scope.row.reportUserId != ''"
@click="handleLook(scope.row)" size="small"
type="text" type="text"
size="small" @click="handleLook(scope.row)"
> >
{{ $sensitive(scope.row.mobile, 3, 7) }} {{ $sensitive(scope.row.mobile, 3, 7) }}
</el-button> </el-button>
<span v-else> <span v-else>
{{ $sensitive(scope.row.mobile, 3, 7) }} {{ $sensitive(scope.row.mobile, 3, 7) }}
</span> </span>
</template> </template>
@ -78,10 +78,10 @@ export default {
path: "/dataBoard/satisfactionEval/index", path: "/dataBoard/satisfactionEval/index",
name: "满意度评价", name: "满意度评价",
}, },
/* { /* {
path: "/dataBoard/satisfactionEval/Problem/tyqybtlx", path: "/dataBoard/satisfactionEval/Problem/tyqybtlx",
name: "同一区域不同类型重复投诉问题列表", name: "同一区域不同类型重复投诉问题列表",
},*/ },*/
{ {
path: "", path: "",
name: "详情", name: "详情",
@ -98,6 +98,34 @@ export default {
}, },
activated() { activated() {
// this.breadcrumbList[2].name = this.address + '' // 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.recId = this.$route.query.recId;
this.departId = this.$route.query.departId; this.departId = this.$route.query.departId;
this.address = this.$route.query.address; this.address = this.$route.query.address;
@ -116,23 +144,23 @@ export default {
} }
try { try {
const url = "/governance/dwdEvent/list"; const url = "/governance/dwdEvent/list";
if(this.recId){ if (this.recId) {
params.secondIdList = [this.recId]; params.secondIdList = [this.recId];
} }
if(this.departId){ if (this.departId) {
params.departId = this.departId; params.departId = this.departId;
} }
if(this.address){ if (this.address) {
params.content = this.address; params.content = this.address;
} }
if(this.mobile){ if (this.mobile) {
params.mobile = this.mobile; params.mobile = this.mobile;
} }
const { data, code, msg } = await requestPost(url, { const {data, code, msg} = await requestPost(url, {
...params, ...params,
}); });
if (code == 0) { if (code == 0) {
@ -152,14 +180,14 @@ export default {
}, },
// //
handleLook(row) { handleLook(row) {
let { reportUserId } = row let {reportUserId} = row
this.$router.push({ this.$router.push({
path: "/dataBoard/overview/resident", path: "/dataBoard/overview/resident",
query: { query: {
user_id: reportUserId, user_id: reportUserId,
type:'renfang' type: 'renfang'
}, },
}); });
}, },
}, },
}; };

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

@ -161,39 +161,39 @@ export default {
...this.timeChange(this.typeCondition) ...this.timeChange(this.typeCondition)
} }
requestPost('/governance/dwdEvent/eventList',params).then(({data}) => { requestPost('/governance/dwdEvent/eventList',params).then(({data}) => {
this.total = data.total; this.total = data?data.total : 0;
this.data = data.list; this.list = data?data.list : [];
this.loading = false; this.loading = false;
}); });
}, },
timeChange(type) { timeChange(type) {
let startTime = "", let queryDateStart = "",
endTime = ""; queryDateEnd = "";
if (type == 1) { if (type == 1) {
startTime = this.$moment().startOf("month").format("YYYY-MM-DD"); queryDateStart = this.$moment().startOf("month").format("YYYY-MM-DD");
} }
if (type == 2) { 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) { 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) { 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) { 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) { 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 { } 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}) { 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() { activated() {
// this.breadcrumbList[2].name = this.address + '' // 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.recId = this.$route.query.recId;
this.departId = this.$route.query.departId; this.departId = this.$route.query.departId;
this.address = this.$route.query.address; 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) ...this.timeChange(this.typeCondition)
} }
requestPost('/governance/dwdEvent/eventList',params).then(({data}) => { requestPost('/governance/dwdEvent/eventList',params).then(({data}) => {
this.total = data.total; this.total = data?data.total : 0;
this.list = data.list; this.list = data?data.list : [];
this.loading = false; this.loading = false;
}); });
}, },
timeChange(type) { timeChange(type) {
let startTime = "", let queryDateStart = "",
endTime = ""; queryDateEnd = "";
if (type == 1) { if (type == 1) {
startTime = this.$moment().startOf("month").format("YYYY-MM-DD"); queryDateStart = this.$moment().startOf("month").format("YYYY-MM-DD");
} }
if (type == 2) { 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) { 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) { 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) { 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) { 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 { } 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) { 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) { handleLook(row) {

Loading…
Cancel
Save