1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
| <template>
| <el-dialog title="设置积分" :visible.sync="dialogVisible" @close='dialogFormVisible' :close-on-click-modal="false"
| :close-on-press-escape="false">
| <el-form size="small">
| <el-form-item :label-width="formLabelWidth" v-for="(item,index) in gradeList" :key="index" :label="item.name+'的兑换积分:'">
| <el-input v-model="grade_point[index]" placeholder="请输入积分" class="max-w460" type="number"></el-input>
| </el-form-item>
| </el-form>
| <div slot="footer" class="dialog-footer">
| <el-button @click="dialogFormVisible">取 消</el-button>
| <el-button type="primary" @click="dialogFormVisible(true)" :loading="loading">确 定</el-button>
| </div>
| </el-dialog>
| </template>
|
| <script>
| export default {
| data() {
| return {
| /*左边长度*/
| formLabelWidth: '200px',
| /*是否显示*/
| loading: false,
| dialogVisible: false,
| };
| },
| props: ['open_point', 'gradeList','grade_point'],
| created() {
| this.dialogVisible = this.open_point;
| },
| methods: {
| /*关闭弹窗*/
| dialogFormVisible(e) {
| if (e) {
| this.$emit('returnPoint', {
| type: 'success',
| grade_point: this.grade_point,
| })
| } else {
| this.$emit('returnPoint', {
| type: 'error',
| })
| }
| }
|
| }
| };
| </script>
|
| <style></style>
|
|