浏览代码

凌云集团更改公司

peiguo 5 年之前
父节点
当前提交
fb585ad08d
共有 2 个文件被更改,包括 16 次插入3 次删除
  1. 8 2
      admin-ui/app/whepi/lingyun/dialogDetail.js
  2. 8 1
      admin-ui/app/whepi/lingyun/lingyunUser.js

+ 8 - 2
admin-ui/app/whepi/lingyun/dialogDetail.js

@@ -68,8 +68,14 @@ define(function (require) {
               }
             },
             {field: 'tripDetDesc', title: '出行详细', align: 'left'},
-            {field: 'isContactDesc', title: '家人确诊或接触', align: 'left'}
-
+            {field: 'isContactDesc', title: '家人确诊或接触', align: 'left',formatter: function (value) {
+                if (value == "否") {
+                  return "<span style='color: green;'>否<span>";
+                } else {
+                  return "<span style='color: red;'>是<span>";
+                }
+              }
+            },
           ]],
         }
       },

+ 8 - 1
admin-ui/app/whepi/lingyun/lingyunUser.js

@@ -231,7 +231,14 @@ define(function (require) {
                     {field: 'autoAddr', title: '定位地址', maxWidth: 200, align: 'left',},
                     {field: 'isTripDesc', title: '是否出行', maxWidth: 200, align: 'left',},
                     {field: 'tripDetDesc', title: '出行详细', align: 'left',},
-                    {field: 'isContactDesc', title: '家人确诊或接触', align: 'left',},
+                    {field: 'isContactDesc', title: '家人确诊或接触', align: 'left',formatter: function (value) {
+                        if (value == "否") {
+                          return "<span style='color: green;'>否<span>";
+                        } else {
+                          return "<span style='color: red;'>是<span>";
+                        }
+                      }
+                    },
                   ]
                 ]
             }