panhui před 5 roky
rodič
revize
4cd8ee932c

+ 1 - 1
src/main/h5/src/views/expert/expertDetail.vue

@@ -29,7 +29,7 @@
       </div>
       </div>
     </div>
     </div>
 
 
-    <template v-if="!rateInfo.status === 'REVIEW_PENDING'">
+    <template v-if="rateInfo.status === 'REVIEW_PENDING'">
       <div class="empty">
       <div class="empty">
         <img src="../../assets/img_cailiao_kong.svg" alt="" />
         <img src="../../assets/img_cailiao_kong.svg" alt="" />
         <div class="text">暂未上传考察材料</div>
         <div class="text">暂未上传考察材料</div>

+ 13 - 12
src/main/h5/src/views/expert/expertList.vue

@@ -31,7 +31,7 @@
             <img src="../../assets/icon_status.svg" alt="" />
             <img src="../../assets/icon_status.svg" alt="" />
             <van-tag
             <van-tag
               type="success"
               type="success"
-              v-if="!item.status === 'REVIEW_PENDING'"
+              v-if="item.status === 'REVIEW_PENDING'"
               size="large"
               size="large"
             >
             >
               未评分
               未评分
@@ -56,28 +56,28 @@ export default {
   name: "expertList",
   name: "expertList",
   metaInfo() {
   metaInfo() {
     return {
     return {
-      title: "评分列表"
+      title: "评分列表",
     };
     };
   },
   },
   data() {
   data() {
     return {
     return {
       tableData: [],
       tableData: [],
       status: {
       status: {
-        NORMAL: "正常"
+        NORMAL: "正常",
       },
       },
-      empty: false
+      empty: false,
     };
     };
   },
   },
   computed: {
   computed: {
-    ...mapState(["userInfo"])
+    ...mapState(["userInfo"]),
   },
   },
   methods: {
   methods: {
     handleEdit(row) {
     handleEdit(row) {
       this.$router.push({
       this.$router.push({
         name: "expertDetail",
         name: "expertDetail",
         query: {
         query: {
-          id: row.id
-        }
+          id: row.id,
+        },
       });
       });
     },
     },
     statusFormatter(row, column, cellValue) {
     statusFormatter(row, column, cellValue) {
@@ -86,7 +86,7 @@ export default {
     goLogin() {
     goLogin() {
       localStorage.removeItem("token");
       localStorage.removeItem("token");
       this.$router.push("/login");
       this.$router.push("/login");
-    }
+    },
   },
   },
   mounted() {
   mounted() {
     this.$http
     this.$http
@@ -95,16 +95,17 @@ export default {
         {
         {
           size: 20,
           size: 20,
           query: {
           query: {
-            expertUserId: this.$store.state.userInfo.id
-          }
+            expertUserId: this.$store.state.userInfo.id,
+            // status: ["SUBMIT_GRADE", "REVIEW_PENDING"],
+          },
         },
         },
         { body: "json" }
         { body: "json" }
       )
       )
-      .then(res => {
+      .then((res) => {
         this.empty = res.empty;
         this.empty = res.empty;
         this.tableData = res.content;
         this.tableData = res.content;
       });
       });
-  }
+  },
 };
 };
 </script>
 </script>
 <style lang="less" scoped>
 <style lang="less" scoped>