瀏覽代碼

运行项目评价等级展示优化

zhangliang2 2 年之前
父節點
當前提交
eb9c235e29

+ 16 - 1
src/views/workManagement/autoRunSubProjectList.vue

@@ -143,6 +143,20 @@ export default {
                 {
                     label: "评测等级",
                     prop: "evaluationLevelDict",
+                    formatter(row) {
+                        switch (row.evaluationLevelDict) {
+                            case "G":
+                                return "优秀(G)";
+                            case "A":
+                                return "良好(A)";
+                            case "M":
+                                return "一般(M)";
+                            case "P":
+                                return "较差(P)";
+                            default:
+                                return "";
+                        }
+                    },
                 },
                 {
                     label: "操作",
@@ -224,7 +238,8 @@ export default {
             }).then(() => {
                 this.$axios({
                     method: "post",
-                    url: this.$api.workManagement.deleteAutomaticSubProjectByIds,
+                    url: this.$api.workManagement
+                        .deleteAutomaticSubProjectByIds,
                     data: {
                         ids,
                     },

+ 14 - 0
src/views/workManagement/manualRunProjectList.vue

@@ -239,6 +239,20 @@ export default {
                 {
                     label: "评测等级",
                     prop: "evaluationLevelDict",
+                    formatter(row) {
+                        switch (row.evaluationLevelDict) {
+                            case "G":
+                                return "优秀(G)";
+                            case "A":
+                                return "良好(A)";
+                            case "M":
+                                return "一般(M)";
+                            case "P":
+                                return "较差(P)";
+                            default:
+                                return "";
+                        }
+                    },
                 },
                 // {
                 //     label: "停/启用",

+ 19 - 1
src/views/workManagement/projectInfo.vue

@@ -45,7 +45,7 @@
                     </div>
                     <div class="info">
                         <span>结果等级:</span>
-                        <b>{{ info.evaluationLevel }}</b>
+                        <b>{{ evaluationLevel }}</b>
                     </div>
                     <div class="info">
                         <span>场景测试包:</span>
@@ -232,6 +232,7 @@ export default {
             id: "",
             projectType: "", // 1手动 2自动
             info: {},
+            evaluationLevel: "",
             columns: [
                 {
                     label: "ID",
@@ -412,6 +413,20 @@ export default {
             let src = `${url}?objectName=${addr}&access_token=${token}`;
             return src;
         },
+        // 处理测试等级展示
+        evaluationLevelInfoShow(evaluationLevel) {
+            switch (evaluationLevel) {
+                case "G":
+                    return "优秀(G)";
+                case "A":
+                    return "良好(A)";
+                case "M":
+                    return "一般(M)";
+                case "P":
+                    return "较差(P)";
+                default:
+            }
+        },
     },
 
     mounted() {
@@ -430,6 +445,9 @@ export default {
             }).then((res) => {
                 if (res.code == 200 && res.info) {
                     this.info = res.info;
+                    this.evaluationLevel = this.evaluationLevelInfoShow(
+                        res.info.evaluationLevel
+                    );
                     this.configList.camera = res.info.sensorCameraList || [];
                     this.configList.ogt = res.info.sensorOgtList || [];
                     this.configList.lidar = res.info.sensorLidarList || [];

+ 3 - 0
vue.config.js

@@ -78,6 +78,7 @@ module.exports = {
         proxy: { // 配置跨域处理 可以设置多个
             '/simulation/oauth': {
                 target: 'http://10.12.10.70', // windowstest
+                // target: 'http://47.94.105.148:81',  // aliyun-new-dev
                 changeOrigin: true,
                 secure: false, // 如果是https接口,需要配置这个参数
                 pathRewrite: {
@@ -94,6 +95,7 @@ module.exports = {
                 // target: 'http://10.12.10.72:8001',  // 王晓峰
                 // target: 'http://192.168.30.75',  // gq
                 // target: 'http://47.94.105.148',  // aliyun
+                // target: 'http://47.94.105.148:81',  // aliyun-new-dev
                 // target: 'http://47.93.217.159',  // aliyun-dev
                 // target: 'http://10.12.10.74:8001',
                 changeOrigin: true,
@@ -110,6 +112,7 @@ module.exports = {
                 target: 'http://10.12.10.70',  // windowstest
                 // target: 'http://192.168.30.75',  // gq
                 // target: 'http://47.94.105.148',  // aliyun
+                // target: 'http://47.94.105.148:81',  // aliyun-new-dev
                 // target: 'http://47.93.217.159',  // aliyun-dev
                 // target: 'http://10.12.10.74:7003', // 孟令鑫
                 changeOrigin: true,