Browse Source

ATE良率样式调整低于97.5%显示红色

xiaost 2 years ago
parent
commit
14e765e6ab
2 changed files with 7 additions and 3 deletions
  1. 6 2
      src/views/bottomRight2.vue
  2. 1 1
      vue.config.js

+ 6 - 2
src/views/bottomRight2.vue

@@ -21,7 +21,7 @@ export default {
   data() {
     return {
       config: {
-        header: ['线别',  '良率'],
+        header: ['线别',  '良率%'],
         data: [/*
           ['组件1', 'dev-1', "<span  class='colorGrass'>↑75%</span>"],
           ['组件2', 'dev-2', "<span  class='colorRed'>↓33%</span>"],
@@ -72,7 +72,11 @@ export default {
                       const element = dataList[index];
                       let item = new Array();
                       item.push(element.linecode);
-                      item.push("<span  class='colorGrass'>"+element.value+"</span>");
+                      if(element.value<97.5) {
+                        item.push("<span  class='colorRed'>" + element.value + "</span>");
+                      }else{
+                        item.push("<span  class='colorGrass'>" + element.value + "</span>");
+                      }
                       resultList.push(item);
                     }
                     const scrollBoard = this.$refs['scroll-board'];

+ 1 - 1
vue.config.js

@@ -11,7 +11,7 @@ module.exports = {
   devServer: {
     proxy: {
       "/mes":{           // /proxy_url 这个用来和根路径 baseURL 进行匹配
-        target:'http://mes.ubtob.net:8099/mes/',  // 'http://localhost:8099/uas/' ,这个是填写跨域的请求域名+端口号,也就是要请求的URL(不包含URL路径)
+        target:'http://mes.ubtob.net:8099/mes/',   // target: 'http://mes.ubtob.net:8099/mes/', http://221.179.64.162:8099/mes/, 'http://localhost:8099/uas/' ,这个是填写跨域的请求域名+端口号,也就是要请求的URL(不包含URL路径)
         changeOrigin: true,  // 是否允许跨域请求,在本地会创建一个虚拟服务端,然后发送请求的数据,并同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题
         pathRewrite: {   // 路径重写
           '^/mes': '' // 替换target中的请求地址,原请求为 http://127.0.0.1:8000/kuayu 实际请求为 http://127.0.0.1:8000/proxy_url/kuayu