|
@@ -0,0 +1,81 @@
|
|
1
|
+<template>
|
|
2
|
+ <div>
|
|
3
|
+ <el-dialog
|
|
4
|
+ title="使用登记系统自动录取数据开启提醒"
|
|
5
|
+ :visible.sync="dialogVisible"
|
|
6
|
+ width="30%"
|
|
7
|
+ center
|
|
8
|
+ >
|
|
9
|
+ <el-form :model="randerform" ref="randerform">
|
|
10
|
+ <el-row>
|
|
11
|
+ <el-form-item label="开启提醒:">
|
|
12
|
+ <el-radio-group v-model="randerform.run" @change="changeRun">
|
|
13
|
+ <el-radio
|
|
14
|
+ :label="gender.id"
|
|
15
|
+ :value="gender.id"
|
|
16
|
+ v-for="(gender, index) in Option"
|
|
17
|
+ :key="gender.id"
|
|
18
|
+ >{{ gender.name }}</el-radio
|
|
19
|
+ >
|
|
20
|
+ </el-radio-group>
|
|
21
|
+ </el-form-item>
|
|
22
|
+ </el-row>
|
|
23
|
+ </el-form>
|
|
24
|
+ </el-dialog>
|
|
25
|
+ </div>
|
|
26
|
+</template>
|
|
27
|
+
|
|
28
|
+<script>
|
|
29
|
+// eslint-disable-next-line no-unused-vars
|
|
30
|
+import { changeRun, getRemanderData } from '@/api/manage'
|
|
31
|
+export default {
|
|
32
|
+ name: 'RemanderForm',
|
|
33
|
+ data() {
|
|
34
|
+ return {
|
|
35
|
+ dialogVisible: false,
|
|
36
|
+ Option: [
|
|
37
|
+ { id: 1, name: '是' },
|
|
38
|
+ { id: 2, name: '否' }
|
|
39
|
+ ],
|
|
40
|
+ randerform: {
|
|
41
|
+ run: 2
|
|
42
|
+ }
|
|
43
|
+ }
|
|
44
|
+ },
|
|
45
|
+ methods: {
|
|
46
|
+ open: function() {
|
|
47
|
+ this.dialogVisible = true
|
|
48
|
+ },
|
|
49
|
+ changeRun(id) {
|
|
50
|
+ // eslint-disable-next-line no-undef
|
|
51
|
+ changeRun(id).then(response => {
|
|
52
|
+ if (response.data.state === 1) {
|
|
53
|
+ var id = response.data.data.id
|
|
54
|
+ // eslint-disable-next-line eqeqeq
|
|
55
|
+ if (id == 1) {
|
|
56
|
+ this.$message.success('开启成功')
|
|
57
|
+ }
|
|
58
|
+ // eslint-disable-next-line eqeqeq
|
|
59
|
+ if (id == 2) {
|
|
60
|
+ this.$message.success('关闭成功')
|
|
61
|
+ }
|
|
62
|
+ }
|
|
63
|
+ })
|
|
64
|
+ },
|
|
65
|
+ getRemanderData() {
|
|
66
|
+ getRemanderData().then(response => {
|
|
67
|
+ // eslint-disable-next-line eqeqeq
|
|
68
|
+ if (response.data.state == 1) {
|
|
69
|
+ var remander = response.data.data.remander
|
|
70
|
+ this.randerform.run = remander.is_run
|
|
71
|
+ }
|
|
72
|
+ })
|
|
73
|
+ }
|
|
74
|
+ },
|
|
75
|
+ created() {
|
|
76
|
+ this.getRemanderData()
|
|
77
|
+ }
|
|
78
|
+}
|
|
79
|
+</script>
|
|
80
|
+
|
|
81
|
+<style scoped></style>
|