修复周多选时文字显示及表达数值问题
This commit is contained in:
parent
cfdd623179
commit
730151b13f
@ -42,7 +42,7 @@
|
|||||||
指定
|
指定
|
||||||
<el-select clearable v-model="checkboxDescribeList" placeholder="可多选" multiple style="width:100%"
|
<el-select clearable v-model="checkboxDescribeList" placeholder="可多选" multiple style="width:100%"
|
||||||
@change="selectChange">
|
@change="selectChange">
|
||||||
<el-option v-for="(item,index) of weekList" :key="index" :value="index+1">{{ item }}</el-option>
|
<el-option v-for="(item,index) of weekList" :key="index" :value="item">{{ item }}</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -70,15 +70,11 @@ export default {
|
|||||||
props: ['check', 'cron'],
|
props: ['check', 'cron'],
|
||||||
methods: {
|
methods: {
|
||||||
selectChange(data) {
|
selectChange(data) {
|
||||||
console.log(data);
|
|
||||||
this.radioValue = 6
|
this.radioValue = 6
|
||||||
this.checkboxList = []
|
this.checkboxList = []
|
||||||
this.checkboxDescribeList = []
|
|
||||||
data.forEach(value => {
|
data.forEach(value => {
|
||||||
this.weekList.forEach((item,index) => {
|
this.weekList.forEach((item,index) => {
|
||||||
if (index+1 === value) {
|
if (item === value) {
|
||||||
console.log((item));
|
|
||||||
this.checkboxDescribeList.push(this.weekList[index])
|
|
||||||
this.checkboxList.push(index + 1)
|
this.checkboxList.push(index + 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user