parent
e55f00ff7e
commit
336b4f463c
2 changed files with 5 additions and 6 deletions
|
@ -306,12 +306,10 @@
|
||||||
},
|
},
|
||||||
toggleSelect (_index) {
|
toggleSelect (_index) {
|
||||||
let data = {};
|
let data = {};
|
||||||
let index = -1;
|
|
||||||
|
|
||||||
for (let i in this.objData) {
|
for (let i in this.objData) {
|
||||||
if (parseInt(i) === _index) {
|
if (parseInt(i) === _index) {
|
||||||
data = this.objData[i];
|
data = this.objData[i];
|
||||||
index = i;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const status = !data._isChecked;
|
const status = !data._isChecked;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="margin: 50px">
|
<div style="margin: 150px">
|
||||||
<br>
|
<br>
|
||||||
<row>
|
<row>
|
||||||
<i-col span="4">
|
<i-col span="8">
|
||||||
<!--<i-button @click="setDate">set date</i-button>-->
|
<!--<i-button @click="setDate">set date</i-button>-->
|
||||||
<date-picker
|
<date-picker
|
||||||
style="width:200px"
|
style="width:200px"
|
||||||
|
@ -11,12 +11,13 @@
|
||||||
:options="options"
|
:options="options"
|
||||||
@on-change="change"
|
@on-change="change"
|
||||||
:format="format"
|
:format="format"
|
||||||
|
:editable="false"
|
||||||
@on-open-change="change2"></date-picker>
|
@on-open-change="change2"></date-picker>
|
||||||
</i-col>
|
</i-col>
|
||||||
<i-col span="4">
|
<i-col span="8">
|
||||||
<date-picker type="year" style="width:200px" placeholder="请选择日期" :value.sync="value" :options="options"></date-picker>
|
<date-picker type="year" style="width:200px" placeholder="请选择日期" :value.sync="value" :options="options"></date-picker>
|
||||||
</i-col>
|
</i-col>
|
||||||
<i-col span="4">
|
<i-col span="8">
|
||||||
<date-picker type="month" style="width:200px" placeholder="请选择日期" :value.sync="value" :options="options"></date-picker>
|
<date-picker type="month" style="width:200px" placeholder="请选择日期" :value.sync="value" :options="options"></date-picker>
|
||||||
</i-col>
|
</i-col>
|
||||||
</row>
|
</row>
|
||||||
|
|
Loading…
Add table
Reference in a new issue