Commit b7e6cbbc authored by 高滢's avatar 高滢

feat(概览): 70960

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