Browse Source

智能提醒跳转

dlt_manageScope_0428
李素 1 year ago
parent
commit
ca40d95f1d
  1. 66
      src/views/modules/home/notice.vue

66
src/views/modules/home/notice.vue

@ -84,8 +84,53 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
handleClickNotice(item, index) { // handleClickNotice(item, index) {
// this.readClearOne(item); // // this.readClearOne(item);
// if (item.msgType == "community_house") {
// let { agencyId, gridId, gridName, houseId, houseName, targetId } = item
// this.$store.dispatch('saveDataH', { agencyId, gridId, gridName, houseId: targetId, houseName: '' });
// this.$router.push({ name: 'house-huaxiang' });
// this.$store.state.contentTabs = this.$store.state.contentTabs.map(item => {
// if (item.name === "house-huaxiang") {
// return { ...item, title: '' };
// }
// return item;
// });
// } else if (item.msgType == "resident_base_info") {
// let {
// agencyId,
// gridId,
// gridName,
// gender,
// homeId,
// homeName,
// name,
// targetId,
// deptName
// } = item;
// this.$store.dispatch("saveData", {
// agencyId,
// gridId,
// gridName,
// gender,
// homeId,
// homeName,
// name: '',
// resiId: targetId,
// });
// this.$router.push({ name: "jumin-huaxiang" });
// this.$store.state.contentTabs = this.$store.state.contentTabs.map(
// (item) => {
// if (item.name === "jumin-huaxiang") {
// return { ...item, title: name };
// }
// return item;
// }
// );
// }
// },
handleClickNotice(item) {
this.readClearOne(item);
if (item.msgType == "community_house") { if (item.msgType == "community_house") {
let { agencyId, gridId, gridName, houseId, houseName, targetId } = item let { agencyId, gridId, gridName, houseId, houseName, targetId } = item
this.$store.dispatch('saveDataH', { agencyId, gridId, gridName, houseId: targetId, houseName: '房屋详情' }); this.$store.dispatch('saveDataH', { agencyId, gridId, gridName, houseId: targetId, houseName: '房屋详情' });
@ -127,7 +172,24 @@ export default {
return item; return item;
} }
); );
} else if (item.msgType == "resident_category") {
let obj = {
PARTY_FLAG: '/main/communityParty-members-memberList',
SUBSISTENCE_ALLOWANCE_FLAG: '/main/base-residentManagement-subsistenceAllowance-subsistenceAllowance',
ENSURE_HOUSE_FLAG: '/main/base-residentManagement-housingNature-housingNature',
VETERAN_FLAG: '/main/base-residentManagement-veteran-veteran',
OLD_PEOPLE_FLAG: '/main/base-residentManagement-oldPeople-oldPeople',
SPECIAL_SUPPORT_FLAG: '/main/base-residentManagement-tefu-tefuList',
DISABILITY_FLAG: '/main/base-residentManagement-resiDisability-resiDisability',
SERIOUS_ILLNESS_FLAG: '大病',
CHRONIC_DISEASE_FLAG: '慢病',
SPECIAL_CROWD_FLAG: '特殊人群',
} }
this.$router.push({
path: obj[item.category],
});
}
this.getNoticeData()
}, },
async read(item, index) { async read(item, index) {

Loading…
Cancel
Save