@@ -1066,7 +1066,7 @@ export function filedownload(query) { | |||||
//选择楼盘后 | //选择楼盘后 | ||||
export function addLoginCount(data) { | export function addLoginCount(data) { | ||||
return request({ | return request({ | ||||
url: 'admin/log/admin/log/addLoginCount', | |||||
url: 'admin/log/addLoginCount', | |||||
method:'post', | method:'post', | ||||
data | data | ||||
}) | }) | ||||
@@ -384,10 +384,18 @@ export default { | |||||
localStorage.setItem("agentId", ''); | localStorage.setItem("agentId", ''); | ||||
localStorage.setItem("topName", item.propertyName); | localStorage.setItem("topName", item.propertyName); | ||||
localStorage.setItem("houseId", item.id); | localStorage.setItem("houseId", item.id); | ||||
this.addLoginCount(item.id) | |||||
} | } | ||||
this.$router.push({ path: "/wel" }); | this.$router.push({ path: "/wel" }); | ||||
localStorage.setItem('allClose',true) | localStorage.setItem('allClose',true) | ||||
}, | }, | ||||
addLoginCount(houseId){ | |||||
this.$api.api.addLoginCount({ | |||||
houseId | |||||
}).then(res=>{ | |||||
console.log(res); | |||||
}) | |||||
}, | |||||
goback() { | goback() { | ||||
this.$router.back(); | this.$router.back(); | ||||
localStorage.setItem('allClose',false) | localStorage.setItem('allClose',false) | ||||
@@ -173,6 +173,13 @@ export default { | |||||
this.zkhousePage(); | this.zkhousePage(); | ||||
}); | }); | ||||
}, | }, | ||||
addLoginCount(houseId){ | |||||
this.$api.api.addLoginCount({ | |||||
houseId | |||||
}).then(res=>{ | |||||
console.log(res); | |||||
}) | |||||
}, | |||||
zkhousePage() { | zkhousePage() { | ||||
let obj = { | let obj = { | ||||
current: 1, | current: 1, | ||||
@@ -200,6 +207,7 @@ export default { | |||||
localStorage.setItem("orgCode", res.data.records[0].orgCode); | localStorage.setItem("orgCode", res.data.records[0].orgCode); | ||||
localStorage.setItem("agentId", ""); | localStorage.setItem("agentId", ""); | ||||
localStorage.setItem("houseId", res.data.records[0].id); | localStorage.setItem("houseId", res.data.records[0].id); | ||||
this.addLoginCount(res.data.records[0].id) | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -229,6 +237,7 @@ export default { | |||||
localStorage.setItem("orgCode", res.data.records[0].orgCode); | localStorage.setItem("orgCode", res.data.records[0].orgCode); | ||||
localStorage.setItem("houseId", res.data.records[0].id); | localStorage.setItem("houseId", res.data.records[0].id); | ||||
localStorage.setItem("agentId", ""); | localStorage.setItem("agentId", ""); | ||||
this.addLoginCount(res.data.records[0].id) | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -266,6 +266,7 @@ export default { | |||||
localStorage.setItem("orgCode", res.data.records[0].orgCode); | localStorage.setItem("orgCode", res.data.records[0].orgCode); | ||||
localStorage.setItem("agentId", ""); | localStorage.setItem("agentId", ""); | ||||
localStorage.setItem("houseId", res.data.records[0].id); | localStorage.setItem("houseId", res.data.records[0].id); | ||||
this.addLoginCount(res.data.records[0].id) | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -295,10 +296,18 @@ export default { | |||||
localStorage.setItem("orgCode", res.data.records[0].orgCode); | localStorage.setItem("orgCode", res.data.records[0].orgCode); | ||||
localStorage.setItem("houseId", res.data.records[0].id); | localStorage.setItem("houseId", res.data.records[0].id); | ||||
localStorage.setItem("agentId", ""); | localStorage.setItem("agentId", ""); | ||||
this.addLoginCount(res.data.records[0].id) | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
addLoginCount(houseId){ | |||||
this.$api.api.addLoginCount({ | |||||
houseId | |||||
}).then(res=>{ | |||||
console.log(res); | |||||
}) | |||||
}, | |||||
}, | }, | ||||
}; | }; | ||||
</script> | </script> | ||||