1
This commit is contained in:
@@ -136,6 +136,7 @@
|
||||
width="150"
|
||||
label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" size="small" @click="ck(scope.row.id)">充/扣花生币</el-button>
|
||||
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
|
||||
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
|
||||
</template>
|
||||
@@ -152,6 +153,29 @@
|
||||
</el-pagination>
|
||||
<!-- 弹窗, 新增 / 修改 -->
|
||||
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
||||
<el-dialog title="充/扣花生币" :close-on-click-modal="false" :visible.sync="adc" append-to-body width="30%">
|
||||
<el-form :model="pointForm">
|
||||
<el-form-item label="充值类型" label-width="15%">
|
||||
<!-- <el-input v-model="pointForm.pointType" placeholder="0-普通 1-vip"></el-input>
|
||||
-->
|
||||
<el-select v-model="pointForm.pointType" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="金额" label-width="15%">
|
||||
<el-input-number v-model="pointForm.pointType" placeholder=""></el-input-number>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="adc=false">取消</el-button>
|
||||
<el-button type="primary" >确定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -163,6 +187,17 @@
|
||||
dataForm: {
|
||||
key: ''
|
||||
},
|
||||
options: [{
|
||||
value: 0,
|
||||
label: '充花生币'
|
||||
}, {
|
||||
value: 1,
|
||||
label: '扣花生币'
|
||||
}],
|
||||
adc:false,
|
||||
pointForm:{
|
||||
pointType: 0,
|
||||
},
|
||||
dataList: [],
|
||||
pageIndex: 1,
|
||||
pageSize: 10,
|
||||
@@ -252,6 +287,9 @@
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
ck(){
|
||||
this.adc = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user