Commit bed8349e authored by wei's avatar wei

四色图详情

parent ebd1de3f
...@@ -758,7 +758,8 @@ export default { ...@@ -758,7 +758,8 @@ export default {
this.$router.push({ this.$router.push({
name: "taskDetail", name: "taskDetail",
params: { params: {
id: item.id id: item.id,
floorId:item.floorId
} }
}); });
} }
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</div> </div>
</van-tab> </van-tab>
<van-tab title="四色图" name="c"> <van-tab title="四色图" name="c">
<drawCanvas :isView="true"/> <drawCanvas :isView="true" :floorId="floorId"/>
</van-tab> </van-tab>
</van-tabs> </van-tabs>
</div> </div>
...@@ -72,7 +72,8 @@ export default { ...@@ -72,7 +72,8 @@ export default {
activeName: 'a', activeName: 'a',
quoRiskList: [],//现状风险列表 quoRiskList: [],//现状风险列表
InherentRisk: {},//固有风险 InherentRisk: {},//固有风险
inherentId: '' inherentId: '',
floorId:'',
} }
}, },
components: { components: {
...@@ -82,6 +83,7 @@ export default { ...@@ -82,6 +83,7 @@ export default {
}, },
created() { created() {
this.inherentId = this.$route.params.id ||sessionStorage.getItem('inherntId') this.inherentId = this.$route.params.id ||sessionStorage.getItem('inherntId')
this.floorId = this.$route.params.floorId
}, },
mounted() { mounted() {
this.getInherentRiskList(this.inherentId) this.getInherentRiskList(this.inherentId)
...@@ -102,7 +104,6 @@ export default { ...@@ -102,7 +104,6 @@ export default {
return timestampToTime(new Date(time), "DT1", true); return timestampToTime(new Date(time), "DT1", true);
}, },
goDetail(item){ goDetail(item){
console.log(item,'???')
sessionStorage.setItem('inherntId',this.inherentId) sessionStorage.setItem('inherntId',this.inherentId)
this.$router.push({ this.$router.push({
name:'presentDetail', name:'presentDetail',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment