begmoon 1 year ago
parent
commit
47b6263ebd
1 changed files with 10 additions and 4 deletions
  1. 10 4
      src/views/comments/consult.vue

+ 10 - 4
src/views/comments/consult.vue

@@ -113,7 +113,11 @@ p {
       style="width: 100%; margin-top: 10px"
       v-loading="loading"
     >
-      <el-table-column prop="user_name" label="选手名称" width="150" />
+      <el-table-column prop="user_name" label="选手名称" width="150">
+        <template slot-scope="scope">
+            <div style="text-decoration:underline" @click="pushData(scope.row.user_code)">{{scope.row.user_name}}</div>
+        </template>
+      </el-table-column>
       <el-table-column prop="user_code" label="选手代码" width="100">
         <template slot-scope="scope">
             <div style="text-decoration:underline" @click="pushOrder(scope.row.phone)">{{scope.row.user_code}}</div>
@@ -324,7 +328,6 @@ export default {
         is_markt: [{ required: false, message: "请选择", trigger: "change" }],
       },
       matchList: [],
-      playerList: [],
       groupList: [],
       stockList: [],
       missDayList: [
@@ -384,7 +387,7 @@ export default {
         let file_name = decodeURIComponent(
           res.headers["content-disposition"].split("=")[1]
         );
-        console.log(file_name);
+        // console.log(file_name);
         elink.download = "参赛数据";
         elink.style.display = "none";
         elink.href = objUrl;
@@ -467,7 +470,7 @@ export default {
       this.form.today_stock.push({ code: "", name: "", fund: "" });
     },
     handleSuccess(res, file) {
-      console.log(res);
+      // console.log(res);
       this.form.today_stock_img.push(res.data.url);
     },
     triggerClick() {
@@ -525,6 +528,9 @@ export default {
     pushOrder(user_phone){
       this.$router.push({path:'/signup',query:{phone:user_phone}})
     },
+    pushData(user_code){
+      this.$router.push({path:'/data',query:{usercode:user_code}})
+    },
   },
   created() {
     this.$api.getMatchList().then((res) => {