|
@@ -52,9 +52,9 @@
|
52
|
52
|
</div>
|
53
|
53
|
|
54
|
54
|
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :before-close="handleDialogClose" center>
|
55
|
|
- <el-tabs v-model="activeName" @tab-click="handleClick">
|
|
55
|
+ <el-tabs v-model="activeName" @tab-click="handleClick" type="card">
|
56
|
56
|
<el-tab-pane label="上下分" name="deposit">
|
57
|
|
- <el-form :rules="rules" ref="dataForm" :model="temp" label-position="left" label-width="100px" style='width: 400px; margin-left:50px;'>
|
|
57
|
+ <el-form :rules="rules" ref="depositForm" :model="temp" label-position="left" label-width="100px" style='width: 400px; margin-left:50px;'>
|
58
|
58
|
<el-form-item label="ID" prop="id">
|
59
|
59
|
<el-input v-model="temp.id" :disabled="true"></el-input>
|
60
|
60
|
</el-form-item>
|
|
@@ -70,7 +70,7 @@
|
70
|
70
|
</el-form>
|
71
|
71
|
</el-tab-pane>
|
72
|
72
|
<el-tab-pane label="獎懲" name="reward">
|
73
|
|
- <el-form :rules="rules" ref="dataForm" :model="temp" label-position="left" label-width="100px" style='width: 400px; margin-left:50px;'>
|
|
73
|
+ <el-form :rules="rules" ref="rewardForm" :model="temp" label-position="left" label-width="100px" style='width: 400px; margin-left:50px;'>
|
74
|
74
|
<el-form-item label="ID" prop="id">
|
75
|
75
|
<el-input v-model="temp.id" :disabled="true"></el-input>
|
76
|
76
|
</el-form-item>
|
|
@@ -175,11 +175,12 @@ export default {
|
175
|
175
|
this.dialogStatus = 'deposit'
|
176
|
176
|
this.dialogFormVisible = true
|
177
|
177
|
this.$nextTick(() => {
|
178
|
|
- this.$refs['dataForm'].clearValidate()
|
|
178
|
+ this.$refs['depositForm'].clearValidate()
|
|
179
|
+ this.$refs['rewardForm'].clearValidate()
|
179
|
180
|
})
|
180
|
181
|
},
|
181
|
182
|
depositChips() {
|
182
|
|
- this.$refs['dataForm'].validate((valid) => {
|
|
183
|
+ this.$refs['depositForm'].validate((valid) => {
|
183
|
184
|
if (valid) {
|
184
|
185
|
const tempData = Object.assign({}, this.temp)
|
185
|
186
|
chipsDeposit(tempData).then(() => {
|
|
@@ -265,7 +266,7 @@ export default {
|
265
|
266
|
this.dialogFormVisible = false;
|
266
|
267
|
},
|
267
|
268
|
rewardChips() {
|
268
|
|
- this.$refs['dataForm'].validate((valid) => {
|
|
269
|
+ this.$refs['rewardForm'].validate((valid) => {
|
269
|
270
|
if (valid) {
|
270
|
271
|
const tempData = Object.assign({}, this.temp)
|
271
|
272
|
chipsReward(tempData).then(() => {
|