xjc 2 anni fa
parent
commit
06d4b9d2b4
6 ha cambiato i file con 569 aggiunte e 190 eliminazioni
  1. 1 1
      public/index.html
  2. 13 185
      src/router.js
  3. 1 1
      src/views/Home.vue
  4. 4 3
      src/views/Login.vue
  5. 275 0
      src/views/doctor/Index.vue
  6. 275 0
      src/views/patient/Index.vue

+ 1 - 1
public/index.html

@@ -6,7 +6,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-    <title>顽举杯</title>
+    <title>贝安欣PK检测管理后台</title>
     <!-- <script src="https://api.map.baidu.com/api?v=1.0&type=webgl&ak=uscumpiG2CkippMbzaC7njksj7OuL7hj"></script> -->
 </head>
 

+ 13 - 185
src/router.js

@@ -11,208 +11,36 @@ export default new Router({
             show: 0,
         },
         {
-            path: '/data',
-            name: '参赛数据',
-            icon: 'el-icon-s-home',
-            component: () =>
-                import ('./views/Home.vue'),
-            show: 1,
-            isLeaf: 0,
-            children: [{
-                    path: '/data',
-                    component: () =>
-                        import ('./views/data/index.vue'),
-                    name: '数据统计'
-                },
-                {
-                    path: '/fundinout',
-                    component: () =>
-                        import ('./views/data/fundInOut.vue'),
-                    name: '资金出入'
-                }
-            ]
-        },
-        {
-            path: '/comments',
-            name: '咨询顽主',
-            icon: 'el-icon-s-comment',
-            component: () =>
-                import ('./views/Home.vue'),
-            show: 1,
-            isLeaf: 1,
-            children: [
-                {
-                    path: '/comments',
-                    component: () =>
-                        import ('./views/comments/consult.vue'),
-                    name: '咨询顽主'
-                }
-            ]
-        },
-        {
-            path: '/signup',
-            name: '订单管理',
-            icon: 'el-icon-s-finance',
-            component: () =>
-                import ('./views/Home.vue'),
-            show: 1,
-            isLeaf: 1,
-            children: [{
-                path: '/signup',
-                component: () =>
-                    import ('./views/signup/index.vue'),
-                name: '订单管理'
-            }, ]
-        },
-        {
-            path: '/player',
-            name: '选手管理',
-            icon: 'el-icon-user',
-            component: () =>
-                import ('./views/Home.vue'),
-            show: 1,
-            isLeaf: 1,
-            children: [{
-                path: '/player',
-                component: () =>
-                    import ('./views/player/index.vue'),
-                name: '参赛选手'
-            }]
-        },
-        {
-            path: '/user',
-            name: '用户管理',
-            icon: 'el-icon-s-custom',
-            component: () =>
-                import ('./views/Home.vue'),
-            show: 1,
-            isLeaf: 1,
-            children: [{
-                path: '/user',
-                component: () =>
-                    import ('./views/user/index.vue'),
-                name: '用户管理'
-            }, ]
-        },
-        {
-            path: '/baike',
-            name: '短线百科',
-            icon: 'el-icon-s-grid',
-            component: () =>
-                import ('./views/Home.vue'),
-            show: 1,
-            isLeaf: 0,
-            children: [
-                {
-                    path: '/baike/term',
-                    component: () =>
-                        import ('./views/baike/Index.vue'),
-                    name: '百科词条'
-                }
-            ]
-        },
-        
-        {
-            path: '/comments',
-            name: '留言管理',
+            path: '/doctor',
+            name: '医生管理',
             icon: 'el-icon-tickets',
             component: () =>
                 import ('./views/Home.vue'),
             show: 1,
             isLeaf: 0,
-            children: [{
-                    path: '/stock/comments/list',
-                    component: () =>
-                        import ('./views/comments/stockComments.vue'),
-                    name: '股票留言'
-                },
-                {
-                    path: '/record/comments/list',
-                    component: () =>
-                        import ('./views/comments/recordComments.vue'),
-                    name: '作业留言'
-                },
+            children: [
                 {
-                    path: '/stock/nbcomments/list',
+                    path: '/doctor/list',
                     component: () =>
-                        import ('./views/comments/stockNBComments.vue'),
-                    name: '牛人点评'
+                        import ('./views/doctor/Index.vue'),
+                    name: '医生列表'
                 },
-                {
-                    path: '/famous/list',
-                    component: () =>
-                        import ('./views/comments/famousUserList.vue'),
-                    name: '名人堂'
-                }
             ]
         },
         {
-            path: '/match',
-            name: '赛事管理',
-            icon: 'el-icon-trophy-1',
+            path: '/patient',
+            name: '患者管理',
+            icon: 'el-icon-tickets',
             component: () =>
                 import ('./views/Home.vue'),
             show: 1,
             isLeaf: 0,
-            children: [{
-                    path: '/match',
-                    component: () =>
-                        import ('./views/match/index.vue'),
-                    name: '赛事管理'
-                }, {
-                    path: '/group',
-                    component: () =>
-                        import ('./views/match/group.vue'),
-                    name: '赛事分组'
-                }, {
-                    path: '/notice',
-                    component: () =>
-                        import ('./views/match/notice.vue'),
-                    name: '赛事公告'
-                },
-                {
-                    path: '/addNotice',
-                    component: () =>
-                        import ('./views/match/addArticle.vue'),
-                    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
-                },
+            children: [
                 {
-                    path: '/stock',
-                    component: () =>
-                        import ('./views/match/stock.vue'),
-                    name: '股票仓库'
-                }
-            ]
-        },
-        {
-            path: '/sys',
-            name: '系统管理',
-            icon: 'el-icon-mobile',
-            component: () =>
-                import ('./views/Home.vue'),
-            show: 1,
-            isLeaf: 0,
-            children: [{
-                    path: '/sys/version',
+                    path: '/patient/list',
                     component: () =>
-                        import ('./views/sys/Version.vue'),
-                    name: '版本管理'
+                        import ('./views/patient/Index.vue'),
+                    name: '病例列表'
                 }
             ]
         }

+ 1 - 1
src/views/Home.vue

@@ -19,7 +19,7 @@
 						<el-dropdown-item @click.native="changePsw">修改密码</el-dropdown-item>
 					</el-dropdown-menu>
 				</el-dropdown>
-				<div class="siteTitle">顽主杯实盘大赛后台</div>
+				<div class="siteTitle">贝安欣PK检测管理后台</div>
 				
 			</div>	
 		</el-header>

+ 4 - 3
src/views/Login.vue

@@ -89,7 +89,8 @@
 <template>
   <div class="login">
       <div class="login-div">
-        <h1><img width="345" src="../assets/title.png" alt=""></h1>
+        <!-- <h1><img width="345" src="../assets/title.png" alt=""></h1> -->
+        <h1>贝安欣PK检测管理后台</h1>
         <form>
             <div class="input_div">
               <label>用户名</label>
@@ -107,7 +108,7 @@
             <el-button @click="login" @keyup.enter="login" class="login-btn" type="primary">登  录</el-button>
         </form>
       </div>
-      <p class="footer">Copyright © {{copyrightdate}} 湖南顽主杯 版权所有&nbsp;&nbsp;<a style="text-decoration:none;color:#000;font-weight:bold;" href="https://beian.miit.gov.cn">湘ICP备2021013011号-1</a></p>
+      <p class="footer">Copyright © {{copyrightdate}} 贝安欣 版权所有</p>
   </div>
 </template>
 
@@ -143,7 +144,7 @@ export default {
             this.$api.login(parms).then((res)=>{
                 let data=res.data
                   if(res.data.code == 0){
-                      window.location.hash='/data';
+                      window.location.hash='/doctor/list';
                   }else{
                       this.$message.error(res.data.message);
                   } 

+ 275 - 0
src/views/doctor/Index.vue

@@ -0,0 +1,275 @@
+<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" class="filter-form">
+      <el-row>
+        <el-col :span="6">
+          <el-form-item label="股票名称">
+            <el-input clearable @clear="getData()" v-model="queryParams.stock_name" placeholder="请输入股票名称/代码"
+              size="mini"></el-input>
+          </el-form-item>
+        </el-col>
+        <el-col :span="6">
+          <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-button
+              type="primary"
+              icon="el-icon-plus"
+              size="mini"
+              @click="handleFastAdd"
+              >新增选手</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="stock_name" label="股票名称" />
+      <el-table-column align="center" prop="stock_code" label="股票代码" />
+      <el-table-column label="图片">
+        <template slot-scope="scope">
+          <el-image style="width: 80px; height: 60px" :src="scope.row.img" :preview-src-list="[scope.row.img]">
+          </el-image>
+        </template>
+      </el-table-column>
+      <el-table-column align="center" prop="content" label="点评内容">
+        <template slot-scope="scope">
+          {{scope.row.content.substring(0,20)}}...
+        </template>
+      </el-table-column>
+      <el-table-column align="center" prop="ctime" label="创建时间" />
+      <el-table-column align="center" prop="date" label="操作" width="320">
+        <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="stock_id">
+          <el-select @change="changeStock" v-model="form.stock_id" placeholder="请输入股票名称" filterable remote
+            :remote-method="remoteMethod">
+            <el-option v-for="item in stockList" :key="item.value" :label="item.label" :value="item.id">
+            </el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="图片" prop="">
+          <el-upload class="avatar-uploader" action="/api/admin/uploadfile" :data="{watermark:0}"
+            :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="点评内容" prop="content">
+          <el-input clearable v-model="form.content" placeholder="请输入点评内容" type="textarea" rows=10></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: {},
+        form2: {},
+        list: [{}, {}],
+        total: 0,
+        title: "新增用户",
+        open: false,
+        stockList: [],
+        rules: {
+          username: [{
+            required: true,
+            message: "请输入用户名",
+            trigger: "blur"
+          }, ],
+          player_type: [{
+            required: true,
+            message: "请选择用户类型",
+            trigger: "change"
+          }, ],
+          phone: [{
+            required: true,
+            message: "请输入用户手机号",
+            trigger: "blur"
+          }, ],
+          avatar: [{
+            required: true,
+            message: "请输入用户手机号",
+            trigger: "change"
+          }, ],
+        }
+      };
+    },
+    methods: {
+      del(id) {
+        this.$confirm("删除用户会删除相关数据,确定删除吗?", "提示", {
+          type: "warning",
+        }).then(() => {
+          this.$api.delStockNBComments({
+            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.$api.getStockNBCommentsList(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 = {};
+      },
+      edit(id) {
+        this.title = "编辑牛人点评";
+        this.$api.getStockNBCommentsInfo({
+          id: id
+        }).then((res) => {
+          this.form = res.data.data;
+          this.open = true;
+        });
+      },
+      black(row) {
+        this.$api.commentsBlack({
+          id: row.id
+        }).then(res => {
+          this.getData()
+        })
+      },
+      handleAvatarSuccess(res, file) {
+        this.form.img = res.data.url;
+        console.log(this.form.img)
+      },
+      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;
+      },
+      /** 提交按钮 */
+      submitForm() {
+        this.$refs["form"].validate((valid) => {
+          if (valid) {
+            if (this.form.id != null) {
+              this.$api.editStockNBComments(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.addStockNBComments(this.form).then((res) => {
+                if (res.data.code == 0) {
+                  this.msgSuccess("成功!");
+                  this.open = false;
+                  this.getData();
+                } else {
+                  this.msgError(res.data.message);
+                }
+              });
+            }
+          }
+        });
+      },
+      remoteMethod(query) {
+        if (query !== '') {
+          this.loading = true;
+          this.$api.getStockSearchList({
+            name: query
+          }).then(res => {
+            this.stockList = res.data.data
+            this.$set(this.stockList, res.data.data)
+            this.loading = false;
+          })
+        } else {
+          this.stockList = [];
+        }
+      },
+      changeStock(val) {
+        var obj = {}
+        obj = this.stockList.find(function(item){
+            return item.id === val;
+          })
+          this.form.stock_name = obj.name
+          this.form.stock_code = obj.code
+        }
+    },
+    created() {
+      this.getData();
+    },
+  };
+</script>

+ 275 - 0
src/views/patient/Index.vue

@@ -0,0 +1,275 @@
+<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" class="filter-form">
+      <el-row>
+        <el-col :span="6">
+          <el-form-item label="股票名称">
+            <el-input clearable @clear="getData()" v-model="queryParams.stock_name" placeholder="请输入股票名称/代码"
+              size="mini"></el-input>
+          </el-form-item>
+        </el-col>
+        <el-col :span="6">
+          <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-button
+              type="primary"
+              icon="el-icon-plus"
+              size="mini"
+              @click="handleFastAdd"
+              >新增选手</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="stock_name" label="股票名称" />
+      <el-table-column align="center" prop="stock_code" label="股票代码" />
+      <el-table-column label="图片">
+        <template slot-scope="scope">
+          <el-image style="width: 80px; height: 60px" :src="scope.row.img" :preview-src-list="[scope.row.img]">
+          </el-image>
+        </template>
+      </el-table-column>
+      <el-table-column align="center" prop="content" label="点评内容">
+        <template slot-scope="scope">
+          {{scope.row.content.substring(0,20)}}...
+        </template>
+      </el-table-column>
+      <el-table-column align="center" prop="ctime" label="创建时间" />
+      <el-table-column align="center" prop="date" label="操作" width="320">
+        <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="stock_id">
+          <el-select @change="changeStock" v-model="form.stock_id" placeholder="请输入股票名称" filterable remote
+            :remote-method="remoteMethod">
+            <el-option v-for="item in stockList" :key="item.value" :label="item.label" :value="item.id">
+            </el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="图片" prop="">
+          <el-upload class="avatar-uploader" action="/api/admin/uploadfile" :data="{watermark:0}"
+            :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="点评内容" prop="content">
+          <el-input clearable v-model="form.content" placeholder="请输入点评内容" type="textarea" rows=10></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: {},
+        form2: {},
+        list: [{}, {}],
+        total: 0,
+        title: "新增用户",
+        open: false,
+        stockList: [],
+        rules: {
+          username: [{
+            required: true,
+            message: "请输入用户名",
+            trigger: "blur"
+          }, ],
+          player_type: [{
+            required: true,
+            message: "请选择用户类型",
+            trigger: "change"
+          }, ],
+          phone: [{
+            required: true,
+            message: "请输入用户手机号",
+            trigger: "blur"
+          }, ],
+          avatar: [{
+            required: true,
+            message: "请输入用户手机号",
+            trigger: "change"
+          }, ],
+        }
+      };
+    },
+    methods: {
+      del(id) {
+        this.$confirm("删除用户会删除相关数据,确定删除吗?", "提示", {
+          type: "warning",
+        }).then(() => {
+          this.$api.delStockNBComments({
+            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.$api.getStockNBCommentsList(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 = {};
+      },
+      edit(id) {
+        this.title = "编辑牛人点评";
+        this.$api.getStockNBCommentsInfo({
+          id: id
+        }).then((res) => {
+          this.form = res.data.data;
+          this.open = true;
+        });
+      },
+      black(row) {
+        this.$api.commentsBlack({
+          id: row.id
+        }).then(res => {
+          this.getData()
+        })
+      },
+      handleAvatarSuccess(res, file) {
+        this.form.img = res.data.url;
+        console.log(this.form.img)
+      },
+      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;
+      },
+      /** 提交按钮 */
+      submitForm() {
+        this.$refs["form"].validate((valid) => {
+          if (valid) {
+            if (this.form.id != null) {
+              this.$api.editStockNBComments(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.addStockNBComments(this.form).then((res) => {
+                if (res.data.code == 0) {
+                  this.msgSuccess("成功!");
+                  this.open = false;
+                  this.getData();
+                } else {
+                  this.msgError(res.data.message);
+                }
+              });
+            }
+          }
+        });
+      },
+      remoteMethod(query) {
+        if (query !== '') {
+          this.loading = true;
+          this.$api.getStockSearchList({
+            name: query
+          }).then(res => {
+            this.stockList = res.data.data
+            this.$set(this.stockList, res.data.data)
+            this.loading = false;
+          })
+        } else {
+          this.stockList = [];
+        }
+      },
+      changeStock(val) {
+        var obj = {}
+        obj = this.stockList.find(function(item){
+            return item.id === val;
+          })
+          this.form.stock_name = obj.name
+          this.form.stock_code = obj.code
+        }
+    },
+    created() {
+      this.getData();
+    },
+  };
+</script>