xjc преди 3 години
родител
ревизия
674ee41420
променени са 11 файла, в които са добавени 30576 реда и са изтрити 3 реда
  1. 29803 0
      package-lock.json
  2. 19 0
      src/api.js
  3. 19 1
      src/router.js
  4. 36 1
      src/views/data/index.vue
  5. 226 0
      src/views/match/addChampionSay.vue
  6. 211 0
      src/views/match/championSay.vue
  7. 1 0
      src/views/match/notice.vue
  8. 254 0
      src/views/match/stock.vue
  9. 1 0
      src/views/player/index.vue
  10. 4 0
      src/views/user/index.vue
  11. 2 1
      vue.config.js

Файловите разлики са ограничени, защото са твърде много
+ 29803 - 0
package-lock.json


+ 19 - 0
src/api.js

@@ -241,4 +241,23 @@ export default {
 	updateRank: params => {
 		return axios.get(`${baseURL}/api/admin/flushrank`, { params: params })
 	},
+	updateComment: params => {
+		return axios.put(`${baseURL}/api/admin/player/record/comment`, params);
+	},
+	// 股票
+	getStockList: params => {
+		return axios.get(`${baseURL}/api/admin/stock/list`, { params: params })
+	},
+	getStockInfo: params => {
+		return axios.get(`${baseURL}/api/admin/stock`, { params: params })
+	},
+	updateStock: params => {
+		return axios.put(`${baseURL}/api/admin/stock`, params)
+	},
+	addStock: params => {
+		return axios.post(`${baseURL}/api/admin/stock`, params)
+	},
+	delStock: params => {
+		return axios.delete(`${baseURL}/api/admin/stock`, { params: params });
+	},
 }

+ 19 - 1
src/router.js

@@ -48,7 +48,25 @@ export default new Router({
         name: '新增公告',
         hide:1,
         isLeaf:1
-      }]
+      },
+      {
+        path: '/championsay',
+        component: () => import('./views/match/championSay.vue'),
+        name: '冠军心得'
+      },
+      {
+        path: '/addChampionSay',
+        component: () => import('./views/match/addChampionSay.vue'),
+        name: '新增冠军心得',
+        hide:1,
+        isLeaf:1
+      },
+      {
+        path: '/stock',
+        component: () => import('./views/match/stock.vue'),
+        name: '股票仓库'
+      }
+    ]
     },
     {
       path: '/player',

+ 36 - 1
src/views/data/index.vue

@@ -133,9 +133,12 @@
                         </div>
                     </template>
                 </el-table-column>
+                <el-table-column prop="experience" label="操盘总结" width="160" show-overflow-tooltip />
+                <el-table-column prop="wanzhu_comment" label="顽主点评" width="160" show-overflow-tooltip />
                 <el-table-column prop="ctime" label="创建时间" width="160"/>
-                <el-table-column prop="date" label="操作" fixed="right" width="200">
+                <el-table-column prop="date" label="操作" fixed="right" width="220">
                     <template slot-scope="scope">
+                        <el-button @click="editComment(scope.row.id)" size="mini" type="primary">点评</el-button>
                         <el-button @click="edit(scope.row.id)" size="mini" type="warning">编辑</el-button>
                         <el-button @click="del(scope.row.id)" size="mini" type="danger">删除</el-button>
                     </template>
@@ -221,6 +224,18 @@
                 <el-button @click="open=false">取 消</el-button>
             </div>
         </el-dialog>
+        <!-- 点评 -->
+        <el-dialog :title="title" :visible.sync="open1" width="500px" append-to-body>
+            <el-form ref="form1" :model="form1" label-width="80px">
+                <el-form-item label="顽主点评">
+                    <el-input v-model="form1.wanzhu_comment" placeholder="" type="textarea" rows="10"></el-input>
+                </el-form-item>
+            </el-form>
+            <div slot="footer" class="dialog-footer">
+                <el-button type="primary" @click="saveComment" size="mini">确 定</el-button>
+                <el-button @click="open1=false" size="mini">取 消</el-button>
+            </div>
+        </el-dialog>
     </section>
 </template>
 <script>
@@ -240,10 +255,12 @@ export default {
             form:{
                 stock_date:this.getNowDate()
             },
+            form1:{},
             list:[{},{}],
             total:0,
             title:'新增用户',
             open:false,
+            open1:false,
             rules:{
                 match_id: [
                     { required: true, message: '请选择比赛', trigger: 'change' }
@@ -354,6 +371,24 @@ export default {
                 this.open = true
             })
         },
+        editComment(id){
+            this.title = "顽主点评"
+            this.$api.getRecordInfo({id:id}).then(res=>{
+                this.form1 = res.data.data
+                this.open1 = true
+            })
+        },
+        saveComment(){
+            this.$api.updateComment({id:this.form1.id,wanzhu_comment:this.form1.wanzhu_comment}).then(response => {
+                if(response.data.code != 0){
+                    this.msgError(response.data.message);
+                    return
+                }
+                this.msgSuccess("修改成功");
+                this.open1 = false;
+                this.getData();
+            });
+        },
         handleAdd(){
             this.open=true;
             this.title='新增数据';

+ 226 - 0
src/views/match/addChampionSay.vue

@@ -0,0 +1,226 @@
+<style lang="scss">
+.avatar-uploader .el-upload {
+    border: 1px dashed #d9d9d9;
+    border-radius: 6px;
+    cursor: pointer;
+    position: relative;
+    overflow: hidden;
+  }
+  .avatar-uploader .el-upload:hover {
+    border-color: #409EFF;
+  }
+  .avatar-uploader-icon {
+    font-size: 28px;
+    color: #8c939d;
+    width: 178px;
+    height: 178px;
+    line-height: 178px;
+    text-align: center;
+  }
+  .avatar {
+    width: 178px;
+    height: 178px;
+    display: block;
+  }
+</style>
+<template>
+  <section class="content">
+    <h4>新增冠军心得</h4>
+    <el-divider></el-divider>
+    <el-form label-width="80px">
+      <el-form-item label="标题">
+        <el-input placeholder="标题" v-model="form.name"></el-input>
+      </el-form-item>
+      <el-form-item label="封面图">
+        <el-upload
+          class="avatar-uploader"
+          action="/api/admin/uploadfile"
+          :show-file-list="false"
+          :on-success="handleAvatarSuccess"
+          :before-upload="beforeAvatarUpload"
+        >
+          <img v-if="form.img" :src="form.img" class="avatar" />
+          <i v-else class="el-icon-plus avatar-uploader-icon"></i>
+        </el-upload>
+      </el-form-item>
+      <el-form-item label="详情">
+        <fuEditor
+          v-model="form.content"
+          :isClear="isClear"
+          @change="change"
+        ></fuEditor>
+      </el-form-item>
+      <el-form-item label="状态" prop="status">
+        <el-select v-model="form.status" placeholder="请选择状态">
+          <el-option key="1" label="编辑中" :value="1"></el-option>
+          <el-option key="2" label="上线" :value="2"></el-option>
+          <el-option key="-1" label="下线" :value="-1"></el-option>
+        </el-select>
+      </el-form-item>
+      <el-form-item label="">
+        <el-button type="primary" @click="save">保存</el-button>
+      </el-form-item>
+    </el-form>
+  </section>
+</template>
+<script>
+import fuEditor from "@/components/fuEditor/index.vue";
+export default {
+  components: {
+    fuEditor,
+  },
+  data() {
+    return {
+      imageUrl:"",
+      test: "",
+      list: [],
+      form: {
+        title: "",
+        category_id: "",
+        content: "",
+        imgs: [],
+        address: "",
+        point: "",
+        status: 1,
+        img:""
+      },
+      isClear: false,
+      keyword: "",
+      point: {
+        lng: "",
+        lat: "",
+      },
+      BMap: null,
+    };
+  },
+  methods: {
+    getData() {
+      this.$api.getArticleById({ id: this.form.id }).then((res) => {
+        this.form = res.data.data;
+      });
+    },
+    getContent() {
+      this.$api.getContentList({ page: this.page }).then((res) => {
+        this.loading = false;
+        if (res.status == 200) {
+          this.list = res.data.data.list;
+        } else {
+          this.$message({
+            message: res.message,
+            type: "error",
+          });
+        }
+      });
+    },
+    change(val) {
+      this.form.content = val;
+    },
+    upload(type) {
+      var file = document.getElementById(type).files;
+      var data = new FormData();
+      data.append("file", file[0]);
+      this.$api.uploadFile(data).then((res) => {
+        if (res.data.code == 0) {
+          let imgs = this.form.imgs || [];
+          imgs.push(res.data.data.url);
+          this.form.imgs = imgs;
+          // this.$set(form,type,res.data.data.url)
+          this.$message({ message: "上传成功!", type: "success" });
+        } else {
+          this.$message.error(res.data.message);
+        }
+      });
+    },
+    save() {
+      var parm = this.form;
+      // parm.point=this.point.lng+','+this.point.lat
+      parm.type = "champion";
+      if (parm.id) {
+        // debugger;
+        this.$api.editArticle(parm).then((res) => {
+          if (res.data.code == 0) {
+            this.$message({ message: "修改成功!", type: "success" });
+            this.$router.push({ path: "/championsay" });
+          } else {
+            this.$message.error(res.data.message);
+          }
+        });
+      } else {
+        this.$api.addArticle(parm).then((res) => {
+          if (res.data.code == 0) {
+            this.$message({ message: "添加成功!", type: "success" });
+            this.$router.push({ path: "/championsay" });
+          } else {
+            this.$message.error(res.data.message);
+          }
+        });
+      }
+    },
+    handleAvatarSuccess(res, file) {
+      this.form.img = res.data.url;
+    },
+    beforeAvatarUpload(file) {
+      return 
+      const isJPG = file.type === "image/jpeg";
+      const isLt2M = file.size / 1024 / 1024 < 2;
+
+      if (!isJPG) {
+        this.$message.error("上传头像图片只能是 JPG 格式!");
+      }
+      if (!isLt2M) {
+        this.$message.error("上传头像图片大小不能超过 2MB!");
+      }
+      return isJPG && isLt2M;
+    },
+    onBaiduMapReady(e) {
+      // const that = this
+      this.BMap = e.BMap;
+    },
+    getClickInfo(e) {
+      // 调整地图中心位置
+      this.point = e.point;
+
+      // 此时已经可以获取到BMap类
+      if (this.BMap) {
+        const that = this;
+        // Geocoder() 类进行地址解析
+        // 创建地址解析器的实例
+        const geoCoder = new this.BMap.Geocoder();
+        // getLocation() 类--利用坐标获取地址的详细信息
+        // getPoint() 类--获取位置对应的坐标
+        geoCoder.getLocation(e.point, function (res) {
+          const addrComponent = res.addressComponents;
+          const surroundingPois = res.surroundingPois;
+          const province = addrComponent.province;
+          const city = addrComponent.city;
+          const district = addrComponent.district;
+          let addr = addrComponent.street;
+          if (surroundingPois.length > 0 && surroundingPois[0].title) {
+            if (addr) {
+              addr += `-${surroundingPois[0].title}`;
+            } else {
+              addr += `${surroundingPois[0].title}`;
+            }
+          } else {
+            addr += addrComponent.streetNumber;
+          }
+          that.form.address = province + city + district + addr;
+        });
+      }
+    },
+  },
+  created() {
+    // this.getContent()
+    if (this.$route.query.id) {
+      this.form.id = this.$route.query.id;
+      this.id = this.$route.query.id;
+      this.getData();
+    }
+  },
+};
+</script>
+
+
+
+
+

+ 211 - 0
src/views/match/championSay.vue

@@ -0,0 +1,211 @@
+<template>
+  <section class="content">
+    <h4>冠军心得</h4>
+    <el-divider></el-divider>
+    <el-form label-width="80px" class="filter-form">
+      <el-row>
+        <el-col :span="6">
+          <el-form-item label="标题">
+            <el-input
+              @clear="getData()"
+              clearable
+              v-model="queryParams.name"
+              placeholder="请输入标题"
+              size="mini"
+            ></el-input>
+          </el-form-item>
+        </el-col>
+        <el-col :span="4">
+          <el-form-item label-width="10" style="margin-left: 10px">
+            <el-button type="primary" @click="getData" size="mini"
+              >筛选</el-button
+            >
+            <el-button
+              type="primary"
+              plain
+              icon="el-icon-plus"
+              size="mini"
+              @click="handleAdd"
+              >新增冠军心得</el-button
+            >
+          </el-form-item>
+        </el-col>
+      </el-row>
+    </el-form>
+    <el-table
+      v-loading="loading"
+      :data="list"
+      style="width: 100%; margin-top: 10px"
+      height="50vh"
+    >
+      <el-table-column align="center" prop="name" label="标题" />
+      <el-table-column align="center" prop="name" label="标题">
+        <template slot-scope="scope">
+            <img :src="scope.row.img" width="180" height="80" alt="">
+        </template>
+      </el-table-column>
+      <el-table-column align="center" prop="date" label="状态">
+        <template slot-scope="scope">
+          <span v-if="scope.row.status == 1">编辑中</span>
+          <span v-if="scope.row.status == 2">上线</span>
+          <span v-if="scope.row.status == -1">下线</span>
+        </template>
+      </el-table-column>
+      <el-table-column align="center" prop="ctime" label="创建时间" />
+      <el-table-column align="center" prop="date" label="操作">
+        <template slot-scope="scope">
+          <el-button @click="handleEdit(scope.row)" size="mini" type="warning"
+            >编辑</el-button
+          >
+          <el-button @click="del(scope.row.id)" size="mini" type="danger"
+            >删除</el-button
+          >
+        </template>
+      </el-table-column>
+    </el-table>
+    <Page
+      ref="pageButton"
+      :current="form.page"
+      :page_size="form.page_size"
+      :total="total"
+      @pageChange="gopage"
+    />
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="比赛名称" prop="name">
+          <el-input
+            clearable
+            v-model="form.name"
+            placeholder="请输入比赛名称"
+          ></el-input>
+        </el-form-item>
+        <el-form-item label="开始时间" prop="start_time">
+          <el-date-picker
+            v-model="form.start_time"
+            type="date"
+            placeholder="选择日期"
+            format="yyyy-MM-dd"
+            value-format="yyyy-MM-dd"
+            size="mini"
+          >
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="结束时间" prop="end_time">
+          <el-date-picker
+            v-model="form.end_time"
+            type="date"
+            placeholder="选择日期"
+            format="yyyy-MM-dd"
+            value-format="yyyy-MM-dd"
+            size="mini"
+          >
+          </el-date-picker>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="open = false">取 消</el-button>
+      </div>
+    </el-dialog>
+  </section>
+</template>
+<script>
+import Page from "../../components/Page";
+export default {
+  components: {
+    Page,
+  },
+  data() {
+    return {
+      loading: false,
+      queryParams: {
+        page: 1,
+      },
+      form: {},
+      list: [{}, {}],
+      total: 0,
+      title: "新增赛事",
+      open: false,
+      rules: {
+        name: [{ required: true, message: "请输入比赛名称", trigger: "blur" }],
+        start_time: [
+          { required: true, message: "请输入开始时间", trigger: "blur" },
+        ],
+        end_time: [
+          { required: true, message: "请输入结束时间", trigger: "blur" },
+        ],
+      },
+      matchList: [],
+      groupList: [],
+      userList: [],
+    };
+  },
+  methods: {
+    del(id) {
+      this.$confirm("确定删除吗?", "提示", {
+        type: "warning",
+      }).then(() => {
+        this.$api.delArticle({ id: id }).then((res) => {
+          this.$message({
+            message: "删除成功",
+            type: "success",
+          });
+          this.getData();
+        });
+      });
+    },
+    gopage(size) {
+      if (size) {
+        this.queryParams.page_size = size;
+      }
+      this.queryParams.page = this.$refs.pageButton.page;
+      this.getData();
+    },
+    getData() {
+      this.loading = true;
+      //
+      this.queryParams.type = "champion";
+      this.$api.getArticleList(this.queryParams).then((res) => {
+        this.list = res.data.data.list;
+        this.total = res.data.data.total;
+        this.loading = false;
+      });
+    },
+    handleAdd() {
+      this.open = true;
+      this.title = "新增赛事";
+      this.form = {};
+      this.$router.push({ path: "/addChampionSay" });
+    },
+    handleEdit(row) {
+      this.open = true;
+      this.title = "新增赛事";
+      // this.form={}
+      this.$router.push({ path: "/addChampionSay", query: { id: row.id } });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate((valid) => {
+        if (valid) {
+          if (this.form.id != null) {
+            this.$api.updateMatch(this.form).then((response) => {
+              this.msgSuccess("修改成功");
+              this.open = false;
+              this.getData();
+            });
+          } else {
+            this.$api.addMatch(this.form).then((response) => {
+              this.msgSuccess("新增成功");
+              this.open = false;
+              this.getData();
+            });
+          }
+        }
+      });
+    },
+  },
+  created() {
+    this.getData();
+  },
+};
+</script>

+ 1 - 0
src/views/match/notice.vue

@@ -139,6 +139,7 @@ export default {
         getData(){
             this.loading = true;
             // 
+            this.queryParams.type = "notice"
             this.$api.getArticleList(this.queryParams).then(res=>{
                 this.list=res.data.data.list
                 this.total = res.data.data.total;

+ 254 - 0
src/views/match/stock.vue

@@ -0,0 +1,254 @@
+<template>
+  <section class="content">
+    <h4>股票仓库</h4>
+    <el-divider></el-divider>
+    <el-form label-width="40px" class="filter-form">
+      <el-row>
+        <el-col :span="4">
+          <el-form-item label="名称">
+            <el-input
+              clearable
+              @clear="getData()"
+              v-model="queryParams.username"
+              placeholder="请输入股票名称/代码"
+              size="mini"
+            ></el-input>
+          </el-form-item>
+        </el-col>
+        <el-col :span="8">
+          <el-form-item label-width="10" style="margin-left: 10px">
+            <el-button type="primary" @click="getData" size="mini"
+              >筛选</el-button
+            >
+            <el-button
+              type="primary"
+              plain
+              icon="el-icon-plus"
+              size="mini"
+              @click="handleAdd"
+              >新增股票</el-button
+            >
+          </el-form-item>
+        </el-col>
+      </el-row>
+    </el-form>
+    <el-table
+      v-loading="loading"
+      :data="list"
+      style="width: 100%; margin-top: 10px"
+      height="50vh"
+    >
+      <el-table-column align="center" prop="name" label="股票名称" />
+      <el-table-column align="center" prop="code" label="股票代码" />
+      <el-table-column align="center" prop="desc" label="简介" />
+      <el-table-column align="center" prop="date" label="操作">
+        <template slot-scope="scope">
+          <el-button @click="edit(scope.row.id)" size="mini" type="warning"
+            >编辑</el-button
+          >
+          <!-- <el-button @click="del(scope.row.id)" size="mini" type="danger"
+            >删除</el-button
+          > -->
+        </template>
+      </el-table-column>
+    </el-table>
+    <Page
+      ref="pageButton"
+      :current="form.page"
+      :page_size="form.page_size"
+      :total="total"
+      @pageChange="gopage"
+    />
+    <!-- 新增股票 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="股票名称" prop="name">
+          <el-input
+            clearable
+            v-model="form.name"
+            placeholder="请输入股票名称"
+          ></el-input>
+        </el-form-item>
+        <el-form-item label="股票代码" prop="code">
+          <el-input
+            clearable
+            v-model="form.code"
+            placeholder="请输入代码"
+          ></el-input>
+        </el-form-item>
+        <el-form-item label="股票简介" prop="desc">
+          <el-input
+            type="textarea"
+            clearable
+            v-model="form.code"
+            placeholder="请输入股票简介"
+          ></el-input>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="open = false">取 消</el-button>
+      </div>
+    </el-dialog>
+  </section>
+</template>
+<script>
+import Page from "../../components/Page";
+export default {
+  components: {
+    Page,
+  },
+  data() {
+    return {
+      loading: false,
+      queryParams: {
+        page: 1,
+      },
+      form: {},
+      form1: {},
+      list: [{}, {}],
+      total: 0,
+      title: "新增股票",
+      open: false,
+      open1: false,
+      stockList: [],
+      groupList: [],
+      rules: {
+        username: [
+          { required: true, message: "请输入用户名", trigger: "blur" },
+        ],
+      },
+      rules1: {
+        fund: [{ required: true, message: "请输入比赛资金", trigger: "blur" }],
+        match_id: [
+          { required: true, message: "请选择比赛", trigger: "change" },
+        ],
+        username: [
+          { required: true, message: "请输入用户名", trigger: "blur" },
+        ],
+        match_group: [
+          { required: true, message: "请选择分组", trigger: "change" },
+        ],
+        match_status: [
+          { required: true, message: "请选择参数状态", trigger: "change" },
+        ],
+      },
+    };
+  },
+  methods: {
+    del(id) {
+      this.$confirm("确定删除吗?", "提示", {
+        type: "warning",
+      }).then(() => {
+        this.$api.delStock({ id: id }).then((res) => {
+          if(res.data.code==0){
+            this.$message({
+              message: "删除成功",
+              type: "success",
+            });
+            this.getData();
+          }else{
+            this.$message.error(res.data.message);
+          }
+        });
+      });
+    },
+    gopage(size) {
+      if (size) {
+        this.queryParams.page_size = size;
+      }
+      this.queryParams.page = this.$refs.pageButton.page;
+      this.getData();
+    },
+    getData() {
+      this.loading = true;
+      this.$api.getStockList(this.queryParams).then((res) => {
+        console.log(res)
+        this.list = res.data.data.list;
+        this.total = res.data.data.total;
+        this.loading = false;
+      });
+    },
+    handleAdd() {
+      this.open = true;
+      this.title = "新增股票";
+      this.form = {};
+    },
+    handleFastAdd() {
+      this.open1 = true;
+      this.title = "新增选手";
+      this.form1 = {
+        match_status: 1,
+        match_id: this.matchList[0].id,
+      };
+    },
+    edit(id) {
+      this.title = "编辑股票信息";
+      this.$api.getStockInfo({ id: id }).then((res) => {
+        console.log(res)
+        this.form = res.data.data;
+        this.open = true;
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate((valid) => {
+        if (valid) {
+          if (this.form.id != null) {
+            this.$api.updateStock(this.form).then((res) => {
+              if (res.data.code == 0) {
+                this.msgSuccess("成功!");
+                this.open = false;
+                this.getData();
+              } else {
+                this.msgError(res.data.message);
+              }
+            });
+          } else {
+            this.$api.addStock(this.form).then((res) => {
+              if (res.data.code == 0) {
+                this.msgSuccess("成功!");
+                this.open = false;
+                this.getData();
+              } else {
+                this.msgError(res.data.message);
+              }
+            });
+          }
+        }
+      });
+    },
+    // 创建选手同时创建用户
+    fastSavePlayer() {
+      this.$refs["form1"].validate((valid) => {
+        if (valid) {
+          if (this.form1.id != null) {
+            this.$api.fastSavePlayer(this.form1).then((res) => {
+              if (res.data.code == 0) {
+                this.msgSuccess("成功!");
+                this.open = false;
+                this.getData();
+              } else {
+                this.msgError(res.data.message);
+              }
+            });
+          } else {
+            this.$api.fastSavePlayer(this.form1).then((res) => {
+              if (res.data.code == 0) {
+                this.msgSuccess("成功!");
+                this.open1 = false;
+                this.getData();
+              } else {
+                this.msgError(res.data.message);
+              }
+            });
+          }
+        }
+      });
+    },
+  },
+  created() {
+    this.getData();
+  },
+};
+</script>

+ 1 - 0
src/views/player/index.vue

@@ -45,6 +45,7 @@
                 <el-table-column align="center"  prop="match_name" label="比赛名称"/>
                 <el-table-column align="center"  prop="match_group_name" label="比赛分组"/>
                 <el-table-column align="center"  prop="fund" label="初始资金(万元)"/>
+                <el-table-column align="center"  prop="badge" label="徽章"/>
                 <el-table-column align="center"  prop="date" label="参赛状态">
                     <template slot-scope="scope">
                         <span v-if='scope.row.match_status==1'>参赛中</span>

+ 4 - 0
src/views/user/index.vue

@@ -47,6 +47,10 @@
     >
       <el-table-column align="center" prop="usercode" label="登录代码" />
       <el-table-column align="center" prop="username" label="用户名" />
+      <el-table-column align="center" prop="zq" label="周期" />
+      <el-table-column align="center" prop="cw" label="仓位" />
+      <el-table-column align="center" prop="df" label="打法" />
+      <!-- <el-table-column align="center" prop="pz" label="品种" /> -->
       <el-table-column align="center" prop="date" label="绑定">
         <template slot-scope="scope">
           <span v-if="scope.row.is_bind">已绑定</span>

+ 2 - 1
vue.config.js

@@ -3,8 +3,9 @@ module.exports={
         proxy:{
             '/api':{
                 // target:'http://39.107.246.59:81',
-                target:'https://www.hunanwanzhu.com',
+                // target:'https://www.hunanwanzhu.com',
                 // target:'http://caos.tederen.com',
+                target:'https://wx.scxjc.club',
                 changeOrigin: true,
             }
         }