Commit 0aa1f3e0 authored by 高滢's avatar 高滢

feat(任务概览): 样品

parent 025eb195
...@@ -507,7 +507,7 @@ ...@@ -507,7 +507,7 @@
:percentage=" :percentage="
percentageChange(dataStatistic.testDetailsUnderNum) percentageChange(dataStatistic.testDetailsUnderNum)
" "
:format="testStandards" :format="progressLine"
text-color="#fff" text-color="#fff"
></el-progress> ></el-progress>
<el-progress <el-progress
...@@ -516,7 +516,7 @@ ...@@ -516,7 +516,7 @@
:percentage=" :percentage="
percentageChange(dataStatistic.testStandardsPassNum) percentageChange(dataStatistic.testStandardsPassNum)
" "
:format="testStandards" :format="progressLine"
status="success" status="success"
text-color="#fff" text-color="#fff"
></el-progress> ></el-progress>
...@@ -526,7 +526,7 @@ ...@@ -526,7 +526,7 @@
:percentage=" :percentage="
percentageChange(dataStatistic.testStandardsNoPassNum) percentageChange(dataStatistic.testStandardsNoPassNum)
" "
:format="testStandards" :format="progressLine"
status="warning" status="warning"
text-color="#fff" text-color="#fff"
></el-progress> ></el-progress>
...@@ -536,7 +536,7 @@ ...@@ -536,7 +536,7 @@
:percentage=" :percentage="
percentageChange(dataStatistic.testStandardsUnderNum) percentageChange(dataStatistic.testStandardsUnderNum)
" "
:format="testStandards" :format="progressLine"
status="exception" status="exception"
color="#f98921" color="#f98921"
text-color="#fff" text-color="#fff"
...@@ -576,15 +576,23 @@ ...@@ -576,15 +576,23 @@
<div class="bottom">{{ item.sampleName }}</div> <div class="bottom">{{ item.sampleName }}</div>
</div> </div>
</div> </div>
<div style="margin-left: 4.8rem"> <div style="margin-left: 4.8rem; margin-top: 20px">
<div v-if="item.samplePhotos"> <div v-if="item.samplePhotos">
<image-preview <image-preview
v-for="(item, index) in returnArray(item.samplePhotos)"
:key="index"
width="32px" width="32px"
height="32px" height="32px"
:src="item.samplePhotos" style="margin-right: 10px"
:src="item"
></image-preview> ></image-preview>
</div> </div>
<div v-else>暂无样品照片</div> <div
v-else
style="font-size: 14px; font-weight: 400; color: #bababa"
>
暂无样品照片
</div>
</div> </div>
<el-divider></el-divider> <el-divider></el-divider>
<el-row :gutter="20" style="margin-bottom: 20px"> <el-row :gutter="20" style="margin-bottom: 20px">
...@@ -687,15 +695,23 @@ ...@@ -687,15 +695,23 @@
<div class="bottom">{{ item.sampleName }}</div> <div class="bottom">{{ item.sampleName }}</div>
</div> </div>
</div> </div>
<div style="margin-left: 4.8rem"> <div style="margin-left: 4.8rem; margin-top: 20px">
<div v-if="item.samplePhotos"> <div v-if="item.samplePhotos">
<image-preview <image-preview
v-for="(item, index) in returnArray(item.samplePhotos)"
:key="index"
width="32px" width="32px"
height="32px" height="32px"
:src="item.samplePhotos" :src="item"
style="margin-right: 10px"
></image-preview> ></image-preview>
</div> </div>
<div v-else>暂无样品照片</div> <div
v-else
style="font-size: 14px; font-weight: 400; color: #bababa"
>
暂无样品照片
</div>
</div> </div>
<el-divider></el-divider> <el-divider></el-divider>
<el-row :gutter="20" style="margin-bottom: 20px"> <el-row :gutter="20" style="margin-bottom: 20px">
...@@ -802,6 +818,9 @@ export default { ...@@ -802,6 +818,9 @@ export default {
console.log('任务详情', res) console.log('任务详情', res)
}) })
}, },
returnArray(data) {
return data.split(',')
},
tabClick() {}, tabClick() {},
formatTest(percentage) { formatTest(percentage) {
return (percentage = `测试通过率\n\n ${percentage}%`) return (percentage = `测试通过率\n\n ${percentage}%`)
......
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