Commit b7e6cbbc authored by 高滢's avatar 高滢

feat(概览): 70960

parent 27abf3e3
......@@ -734,9 +734,7 @@
<div class="tip-navigation">
<div class="tip"></div>
<div class="tip-title">
{{
'整车样品信息 (' + taskForm.completeVehicleSample.length + ')'
}}
{{ '整车样品信息 (' + completeVehicleSampleTotal + ')' }}
</div>
</div>
<div style="display: flex; flex-wrap: wrap">
......@@ -858,7 +856,7 @@
<div class="tip-navigation">
<div class="tip"></div>
<div class="tip-title">
{{ '零部件样品信息 (' + taskForm.partVehicleSample.length + ')' }}
{{ '零部件样品信息 (' + partVehicleSampleTotal + ')' }}
</div>
</div>
<div style="display: flex; flex-wrap: wrap">
......@@ -975,6 +973,8 @@ export default {
dicts: ['system_task_status', 'confidentiality_level', 'inspection_item'],
data() {
return {
completeVehicleSampleTotal: 0,
partVehicleSampleTotal: 0,
taskList: [],
taskId: '',
dialogVisible: false,
......@@ -1021,6 +1021,17 @@ export default {
getTaskInfo() {
selectTaskInfo({ id: this.taskId }).then(res => {
this.taskForm = res.data
if (res.data.partVehicleSample) {
this.partVehicleSampleTotal = res.data.partVehicleSample.length
} else {
this.taskForm.partVehicleSample = []
}
if (res.data.completeVehicleSample) {
this.completeVehicleSampleTotal =
res.data.completeVehicleSample.length
} else {
this.taskForm.completeVehicleSample = []
}
if (res.data.taskList) {
this.taskList = this.taskForm.taskList.split(',')
this.taskList.forEach((item, index) => {
......
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