index.vue
4.08 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<template>
<div class="template-box content_div_main">
<div class="setting-box">
<el-row class="mb10">
<el-col :span="2">
<el-checkbox v-model="daychecked">天计划</el-checkbox>
</el-col>
<el-col :span="10">
<el-time-select
v-model="timer"
:picker-options="{
start: '08:00',
step: '01:00',
end: '18:00'
}"
placeholder="选择时间">
</el-time-select>
</el-col>
</el-row>
<el-row class="mb10">
<el-col :span="2">
<el-checkbox v-model="weekchecked">周计划</el-checkbox>
</el-col>
<el-col :span="10">
<el-select v-model="week" placeholder="请选择">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-col>
</el-row>
<el-row class="mb10">
<el-col :span="2">
<el-checkbox v-model="monthchecked">月计划</el-checkbox>
</el-col>
<el-col :span="10">
<el-select v-model="month" placeholder="请选择">
<el-option
v-for="item in 31"
:key="item"
:label="item"
:value="item">
</el-option>
</el-select>
<span class="month-title">不满31天月份将按照当月月底进行调整</span>
</el-col>
</el-row>
<div class="persion-box">
<el-transfer v-model="user"
:titles="['成员列表', '选中成员']"
:data="sysData"></el-transfer>
</div>
<div class="btn-box">
<el-button type="primary">保存设置</el-button>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
radio:3,
userdata:[],
daychecked:false,
weekchecked:false,
monthchecked:false,
value:[1,4],
options:[{
value: '1',
label: '星期一'
},{
value: '2',
label: '星期二'
},{
value: '3',
label: '星期三'
},{
value: '4',
label: '星期四'
},{
value: '5',
label: '星期五'
},{
value: '6',
label: '星期六'
},{
value: '7',
label: '星期日'
}],
week:'',
timer:'',
month:'',
user:[],
sysData:[]
}
},
methods: {
saveSet(){
let data = {
day:"09:00",
week:1,
month:12,
openState:'day'
}
this.axios.post('',data).then(res => {
console.log(res.data);
})
},
getSysUser() {
var Vthis = this;
this.axios
.get(this.API.auth.user, {
params: {
limit: 10000,
offset: 0,
is_active: true,
user_type: "user",
norm_type: "login"
}
}).then((response) => {
let resdata = response.data.list_data;
let sysArr = []
resdata.forEach(ele => {
let obj = {
key:ele.user_unid,
label:ele.name
}
sysArr.push(obj)
});
this.sysData = sysArr
});
},
},
created() {
this.getSysUser()
},
};
</script>
<style lang="stylus" scoped>
.setting-box{
margin 20px 40px
color #333
.el-checkbox{
color #666
}
}
.sysuser{
background #fff
}
.importas {
.el-form-item {
background: red;
}
}
.el-checkbox {
color: #fff;
}
.role-box {
max-height 500px;
overflow auto;
padding: 0px 0 60px 0;
}
.left-box,.right-box
width 90%
height 300px
overflow auto
border 1px solid #999
position relative
text-align left
.claer-float
clear both
.editrolebtn-box
position absolute
bottom 5px
right 10px
button
float right
.mb10
margin-bottom 10px
.persion-box{
margin-top 30px
}
.btn-box{
margin-top 20px
}
.month-title{
font-size 12px
color #e4393c
}
</style>