Commit f212e12b authored by yf's avatar yf

修改详情页报错

parent 40f6b64c
...@@ -825,7 +825,7 @@ export default { ...@@ -825,7 +825,7 @@ export default {
this.$router.push({ this.$router.push({
name: "taskDetail", name: "taskDetail",
params: { params: {
inherntId: item.id, inherentId: item.id,
floorId: item.floorId floorId: item.floorId
} }
}); });
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
<van-field <van-field
readonly readonly
required required
name="projectId" name="projectName"
:value="form.projectId" :value="form.projectName"
label="所属项目" label="所属项目"
placeholder="请输入" placeholder="请输入"
/> />
......
...@@ -93,7 +93,7 @@ export default { ...@@ -93,7 +93,7 @@ export default {
TabDetail TabDetail
}, },
created() { created() {
this.inherentId = this.$route.params.id ||sessionStorage.getItem('inherntId') this.inherentId = this.$route.params.id ||sessionStorage.getItem('inherentId')
this.floorId = this.$route.params.floorId this.floorId = this.$route.params.floorId
}, },
mounted() { mounted() {
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
return timestampToTime(new Date(time), "DT1", true); return timestampToTime(new Date(time), "DT1", true);
}, },
goDetail(item){ goDetail(item){
sessionStorage.setItem('inherntId',this.inherentId) sessionStorage.setItem('inherentId',this.inherentId)
sessionStorage.setItem('existingId',item.id) sessionStorage.setItem('existingId',item.id)
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