ソースを参照

修改设备标签

ZZJ 2 年 前
コミット
26a4d073db
1 ファイル変更6 行追加2 行削除
  1. 6 2
      src/views/system/jbdScan/goods/deviceTag.vue

+ 6 - 2
src/views/system/jbdScan/goods/deviceTag.vue

@@ -161,7 +161,7 @@ export default {
             Promise.all([curdPost("sql", sql),curdPost("sql", personSql)]).then(([res1,res2])=>{
                 const { data } = res1.variables || []
                 const personData = res2.variables.data || []
-                // console.log(data)
+                console.log(data)
                 // console.log(personData)
                 let list = []
                 data.forEach(item => {
@@ -169,7 +169,7 @@ export default {
                         prove: this.switchProve(item.she_bei_zhuang_ta),
                         slogan: this.switchSlogan(item.she_bei_zhuang_ta),
                         deviceStatus: item.she_bei_zhuang_ta,
-                        range: item.cai_gou_he_tong_,
+                        range: this.judgementVal(item.cai_gou_he_tong_)?item.cai_gou_he_tong_:"",
 
                         name: item.she_bei_ming_cheng_,
                         serial: item.she_bei_shi_bie_h,
@@ -178,11 +178,15 @@ export default {
                         verificationDate:item.bi_xu_she_shi_
                     }
                     list.push(o)
+                    console.log(o)
                 })
                 this.list = list
 
             })
         },
+        judgementVal(value){
+            return value != null && value != undefined
+        },
         switchProve(status) {
             switch (status) {
                 case '使用':