|
|
@@ -76,6 +76,12 @@
|
|
|
<el-table-column prop="today_fund" label="今日资产(万元)"/>
|
|
|
<el-table-column prop="today_income" label="今日盈亏"/>
|
|
|
<el-table-column prop="total_income" label="总盈亏" width="100"/>
|
|
|
+ <el-table-column prop="date" label="是否开超市" width="150">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.is_markt">是</span>
|
|
|
+ <span v-else>否</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="date" label="今日持股" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<p v-for="(item,index) in scope.row.today_stock" :key='index'>
|
|
|
@@ -204,9 +210,9 @@ export default {
|
|
|
today_fund: [
|
|
|
{ required: true, message: '请输入今日资产', trigger: 'blur' }
|
|
|
],
|
|
|
- today_stock: [
|
|
|
- { required: true, message: '请添加股票', trigger: 'blur' }
|
|
|
- ],
|
|
|
+ // today_stock: [
|
|
|
+ // { required: true, message: '请添加股票', trigger: 'blur' }
|
|
|
+ // ],
|
|
|
today_stock_img: [
|
|
|
{ required: true, message: '请输入股票截图', trigger: 'blur' }
|
|
|
],
|
|
|
@@ -298,13 +304,14 @@ export default {
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
+ console.log(this.form)
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
if(this.form.today_stock.length<=0){
|
|
|
this.msgError('请添加股票');
|
|
|
return
|
|
|
}else{
|
|
|
- if(!this.form.today_stock[0].name || !this.form.today_stock[0].fund){
|
|
|
+ if((!this.form.today_stock[0].name || !this.form.today_stock[0].fund) && !this.form.is_markt){
|
|
|
this.msgError('请选择股票并输入资金额');
|
|
|
return
|
|
|
}
|