xjc 3 年之前
父节点
当前提交
339ab65454
共有 2 个文件被更改,包括 53 次插入1 次删除
  1. 8 0
      src/api.js
  2. 45 1
      src/views/data/index.vue

+ 8 - 0
src/api.js

@@ -336,4 +336,12 @@ export default {
     saveOldUser: params => {
         return axios.put(`${baseURL}/api/admin/signup/olduser`, params)
     },
+    // 资金出入
+    getFundInOut: params => {
+        return axios.get(`${baseURL}/api/admin/user/fundinout`, { params: params })
+    },
+    // 删除资金出入
+    delFundInOut: params => {
+        return axios.delete(`${baseURL}/api/admin/user/fundinout`, { params: params });
+    },
 }

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

@@ -133,6 +133,16 @@
                         </div>
                     </template>
                 </el-table-column>
+                <el-table-column
+                    header-align="center"
+                    align="center"
+                    prop="prop"
+                    label="资金出入" >
+                    <template slot-scope="scope">
+                        <el-button v-if="scope.row.fund_inout" type="primary" size="mini" @click="showFundInOut(scope.row)">查看</el-button>
+                        <span v-else>无</span>
+                    </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"/>
@@ -236,6 +246,26 @@
                 <el-button @click="open1=false" size="mini">取 消</el-button>
             </div>
         </el-dialog>
+        <!-- 资金出入 -->
+        <el-dialog :title="title" :visible.sync="open2" width="500px" append-to-body>
+            <el-form ref="form2" :model="form1" label-width="80px">
+                <el-form-item label="资金转出">
+                    <el-input v-model="form2.fundout" placeholder="" disabled></el-input>
+                </el-form-item>
+                <el-form-item label="资金转入">
+                    <el-input v-model="form2.fundin" placeholder="" disabled></el-input>
+                </el-form-item>
+                <el-form-item label="账号截图">
+                    <el-image
+                        style="width: 100px; height: 100px"
+                        :src="form2.account_img"></el-image>
+                </el-form-item>
+            </el-form>
+            <div slot="footer" class="dialog-footer">
+                <el-button type="danger" @click="delFundInOut" size="mini">删除</el-button>
+                <el-button @click="open1=false" size="mini">取 消</el-button>
+            </div>
+        </el-dialog>
     </section>
 </template>
 <script>
@@ -291,7 +321,9 @@ export default {
             missDayList:[
                 {id:0,name:"否"},
                 {id:1,name:"是"}
-            ]
+            ],
+            open2:false,
+            form2:{}
         }
     },
     methods:{
@@ -399,6 +431,18 @@ export default {
                 stock_date:this.getNowDate()
             }
         },
+        showFundInOut(row){
+            this.open2 = true;
+            this.$api.getFundInOut({"id":row.fund_inout.id}).then(res=>{
+                this.form2 = res.data.data;
+            })
+        },
+        delFundInOut(){
+            this.$api.delFundInOut(this.form2).then(res=>{
+                this.open2 = false
+                this.getData()
+            })
+        },
         addCode(){
              this.form.today_stock.push({code: "", name:"",fund:''})
         },