Browse Source

智能提醒跳转

dlt_manageScope_0428
mk 2 years ago
parent
commit
d13f9cebba
  1. 47
      src/views/modules/home/index.vue
  2. 50
      src/views/modules/home/notice.vue
  3. 1
      src/views/modules/portrayal/house/index.vue

47
src/views/modules/home/index.vue

@ -332,12 +332,47 @@ export default {
} }
}, },
handleClickNotice(item) { handleClickNotice(item) {
const { msgType, targetId } = item; if (item.msgType == "community_house") {
this.readClearOne(item); let { agencyId, gridId, gridName, houseId, houseName, targetId } = item
if (msgType == "community_house") { this.$store.dispatch('saveDataH', { agencyId, gridId, gridName, houseId: targetId, houseName:'房屋详情' });
this.$refs.fastcall.showHouseInfo(targetId); this.$router.push({ name: 'house-huaxiang' });
} else if (msgType == "resident_base_info") { this.$store.state.contentTabs = this.$store.state.contentTabs.map(item => {
this.$refs.fastcall.showResiInfo(targetId); 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;
}
);
} }
}, },

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

@ -85,15 +85,49 @@ export default {
}, },
methods: { methods: {
handleClickNotice(item, index) { handleClickNotice(item, index) {
console.log("zheli") // this.readClearOne(item);
const { msgType, targetId } = item; if (item.msgType == "community_house") {
this.readClearOne(item) let { agencyId, gridId, gridName, houseId, houseName, targetId } = item
if (msgType == "community_house") { this.$store.dispatch('saveDataH', { agencyId, gridId, gridName, houseId: targetId, houseName:'房屋详情' });
this.$refs.fastcall.showHouseInfo(targetId); this.$router.push({ name: 'house-huaxiang' });
} else if (msgType == "resident_base_info") { this.$store.state.contentTabs = this.$store.state.contentTabs.map(item => {
this.$refs.fastcall.showResiInfo(targetId); 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;
}
);
} }
this.read(item, index);
}, },
async read(item, index) { async read(item, index) {

1
src/views/modules/portrayal/house/index.vue

@ -252,7 +252,6 @@ export default {
this.showCheckPassword = true; this.showCheckPassword = true;
}, },
updataHouseIds(val){ updataHouseIds(val){
console.log(val);
this.houseIds= val this.houseIds= val
}, },
handelCLickShowCheckPassword(type) { handelCLickShowCheckPassword(type) {

Loading…
Cancel
Save