|
|
@@ -19,7 +19,7 @@
|
|
|
<div class="one">
|
|
|
<div class="container">
|
|
|
<div
|
|
|
- :class="item.deviceStatus === '合格' ? 'triangle' : item.deviceStatus === '停用' ? 'triangleRed' : 'triangleYellow'"
|
|
|
+ :class="item.deviceStatus === '正常' ? 'triangle' : item.deviceStatus === '停用' ? 'triangleRed' : 'triangleYellow'"
|
|
|
>
|
|
|
<div class="label" style="border: 0;">{{ item.prove }}</div>
|
|
|
</div>
|
|
|
@@ -161,13 +161,13 @@ export default {
|
|
|
dj.cai_gou_he_tong_,
|
|
|
zx.shi_shi_ri_qi_,
|
|
|
zx.chu_chang_bian_ha,
|
|
|
- zx.jian_ding_dan_wei
|
|
|
+ zx.dan_wei_id
|
|
|
FROM
|
|
|
t_sbdj dj
|
|
|
RIGHT JOIN t_mjsbjdxzjhzb zx ON zx.bian_hao_zhong_we = dj.she_bei_shi_bie_h
|
|
|
WHERE
|
|
|
find_in_set( zx.id_, '${id}' )`
|
|
|
- // console.log(sql)
|
|
|
+ console.log(sql)
|
|
|
curdPost('sql', sql).then(res => {
|
|
|
const { data } = res.variables || []
|
|
|
// console.log(data)
|
|
|
@@ -183,7 +183,7 @@ export default {
|
|
|
serial: item.she_bei_shi_bie_h,
|
|
|
validTo: item.chu_chang_bian_ha,
|
|
|
model: item.gui_ge_xing_hao_,
|
|
|
- unit: item.jian_ding_dan_wei,
|
|
|
+ unit: item.dan_wei_id,
|
|
|
jiaoZhunTime: item.shi_shi_ri_qi_
|
|
|
}
|
|
|
list.push(o)
|
|
|
@@ -197,24 +197,24 @@ export default {
|
|
|
},
|
|
|
switchProve (status) {
|
|
|
switch (status) {
|
|
|
- case '合格':
|
|
|
+ case '正常':
|
|
|
return '合格证'
|
|
|
case '停用':
|
|
|
return '停用证'
|
|
|
- case '限用':
|
|
|
- return '限用证'
|
|
|
+ // case '限用':
|
|
|
+ // return '限用证'
|
|
|
default:
|
|
|
return '测试证'
|
|
|
}
|
|
|
},
|
|
|
switchSlogan (status) {
|
|
|
switch (status) {
|
|
|
- case '合格':
|
|
|
+ case '正常':
|
|
|
return 'PASS'
|
|
|
case '停用':
|
|
|
return 'STOP'
|
|
|
- case '限用':
|
|
|
- return 'RESTRICT'
|
|
|
+ // case '限用':
|
|
|
+ // return 'RESTRICT'
|
|
|
default:
|
|
|
return 'TEST'
|
|
|
}
|