Commit 31b1c1b2 authored by jiaxu.yan's avatar jiaxu.yan

fix: 70885 70890 70882

parent a7517071
...@@ -196,7 +196,14 @@ export default { ...@@ -196,7 +196,14 @@ export default {
loading: false loading: false
} }
}, },
async created() { async mounted() {
if (this.$route.query.id) {
this.taskId = this.$route.query.id
}
await this.getTask()
this.openAll()
},
async activated() {
if (this.$route.query.id) { if (this.$route.query.id) {
this.taskId = this.$route.query.id this.taskId = this.$route.query.id
} }
......
...@@ -361,6 +361,13 @@ export default { ...@@ -361,6 +361,13 @@ export default {
await this.getTask() await this.getTask()
this.openAll() this.openAll()
}, },
async activated() {
if (this.$route.query.id) {
this.taskId = this.$route.query.id
}
await this.getTask()
this.openAll()
},
methods: { methods: {
openAll() { openAll() {
this.activeNames = this.model.carReviewTask.standard.map(i => { this.activeNames = this.model.carReviewTask.standard.map(i => {
......
...@@ -369,6 +369,13 @@ export default { ...@@ -369,6 +369,13 @@ export default {
await this.getTask() await this.getTask()
this.openAll() this.openAll()
}, },
async activated() {
if (this.$route.query.id) {
this.taskId = this.$route.query.id
}
await this.getTask()
this.openAll()
},
methods: { methods: {
/** /**
* 获取任务详情 * 获取任务详情
......
...@@ -327,7 +327,10 @@ ...@@ -327,7 +327,10 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<div v-else class="empty-message">-暂无未完成条目-</div> <div v-else class="empty-message">
<iconpark-icon name="wutiaomu" size="120px"></iconpark-icon>
<span> 无未完成条目 </span>
</div>
</div> </div>
<div class="bottom-btn"> <div class="bottom-btn">
<footer-button <footer-button
...@@ -463,6 +466,14 @@ export default { ...@@ -463,6 +466,14 @@ export default {
await this.getTask() await this.getTask()
this.handleCircle(0) this.handleCircle(0)
}, },
async activated() {
this.taskId = this.$route.query.id
this.$store.dispatch('processing/getCompanyFiles', {
taskId: this.$route.query.taskId
})
await this.getTask()
this.handleCircle(0)
},
methods: { methods: {
/** /**
* 企业文件保存回调 * 企业文件保存回调
......
...@@ -260,6 +260,10 @@ export default { ...@@ -260,6 +260,10 @@ export default {
this.getTest() this.getTest()
this.getTestDetail() this.getTestDetail()
}, },
activated() {
this.getTest()
this.getTestDetail()
},
methods: { methods: {
getRows3, getRows3,
/* 返回跳转*/ /* 返回跳转*/
......
...@@ -48,6 +48,11 @@ export default { ...@@ -48,6 +48,11 @@ export default {
this.dialogManger.dialogEditId = this.$route.query.taskid this.dialogManger.dialogEditId = this.$route.query.taskid
this.url = `https://10.12.48.78:8090/car/complianceTestingCenter/projectOverView/${id}` this.url = `https://10.12.48.78:8090/car/complianceTestingCenter/projectOverView/${id}`
}, },
activated() {
const id = this.$route.query.id
this.dialogManger.dialogEditId = this.$route.query.taskid
this.url = `https://10.12.48.78:8090/car/complianceTestingCenter/projectOverView/${id}`
},
methods: { methods: {
handlePreview() { handlePreview() {
this.dialogManger.dialogVisible = true this.dialogManger.dialogVisible = true
......
...@@ -143,6 +143,12 @@ export default { ...@@ -143,6 +143,12 @@ export default {
} }
}, },
mounted() { mounted() {
console.log('mounted')
this.getTestDetail()
this.getTest()
},
activated() {
console.log('activated')
this.getTestDetail() this.getTestDetail()
this.getTest() this.getTest()
}, },
......
...@@ -332,6 +332,13 @@ export default { ...@@ -332,6 +332,13 @@ export default {
await this.getTask() await this.getTask()
this.openAll() this.openAll()
}, },
async activated() {
if (this.$route.query.id) {
this.taskId = this.$route.query.id
}
await this.getTask()
this.openAll()
},
methods: { methods: {
async getTask() { async getTask() {
this.loading = true this.loading = true
......
...@@ -214,6 +214,13 @@ export default { ...@@ -214,6 +214,13 @@ export default {
await this.getTask() await this.getTask()
this.openAll() this.openAll()
}, },
async activated() {
if (this.$route.query.id) {
this.taskId = this.$route.query.id
}
await this.getTask()
this.openAll()
},
methods: { methods: {
/** /**
* 获取任务详情 * 获取任务详情
......
...@@ -374,6 +374,13 @@ export default { ...@@ -374,6 +374,13 @@ export default {
await this.getTask() await this.getTask()
this.openAll() this.openAll()
}, },
async activated() {
if (this.$route.query.id) {
this.taskId = this.$route.query.id
}
await this.getTask()
this.openAll()
},
methods: { methods: {
/** /**
* 获取子任务详情 * 获取子任务详情
......
...@@ -485,6 +485,14 @@ export default { ...@@ -485,6 +485,14 @@ export default {
await this.getTask() await this.getTask()
this.handleCircle(0) this.handleCircle(0)
}, },
async activated() {
this.taskId = this.$route.query.id
this.$store.dispatch('processing/getCompanyFiles', {
taskId: this.$route.query.taskId
})
await this.getTask()
this.handleCircle(0)
},
methods: { methods: {
/** /**
* 企业文件保存回调 * 企业文件保存回调
......
...@@ -314,7 +314,7 @@ ...@@ -314,7 +314,7 @@
<el-progress <el-progress
class="cell-progress" class="cell-progress"
:stroke-width="12" :stroke-width="12"
:percentage="item.systemReview" :percentage="item.systemReview || 0"
></el-progress> ></el-progress>
</div> </div>
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
<el-progress <el-progress
class="cell-progress" class="cell-progress"
:stroke-width="12" :stroke-width="12"
:percentage="item.carReview" :percentage="item.carReview || 0"
></el-progress> ></el-progress>
</div> </div>
<div <div
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
<el-progress <el-progress
class="cell-progress" class="cell-progress"
:stroke-width="12" :stroke-width="12"
:percentage="item.test" :percentage="item.test || 0"
></el-progress> ></el-progress>
</div> </div>
</div> </div>
......
...@@ -307,7 +307,7 @@ ...@@ -307,7 +307,7 @@
<el-progress <el-progress
class="cell-progress" class="cell-progress"
:stroke-width="12" :stroke-width="12"
:percentage="item.systemReview" :percentage="item.systemReview || 0"
></el-progress> ></el-progress>
</div> </div>
...@@ -318,7 +318,7 @@ ...@@ -318,7 +318,7 @@
<el-progress <el-progress
class="cell-progress" class="cell-progress"
:stroke-width="12" :stroke-width="12"
:percentage="item.carReview" :percentage="item.carReview || 0"
></el-progress> ></el-progress>
</div> </div>
<div <div
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
<el-progress <el-progress
class="cell-progress" class="cell-progress"
:stroke-width="12" :stroke-width="12"
:percentage="item.test" :percentage="item.test || 0"
></el-progress> ></el-progress>
</div> </div>
</div> </div>
......
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