parent
9358a9ae27
commit
63e0444e55
3 changed files with 31 additions and 31 deletions
|
@ -78,6 +78,7 @@
|
|||
computed: {
|
||||
isSelectAll () {
|
||||
let isSelectAll = true;
|
||||
if (!this.data.length) isSelectAll = false;
|
||||
|
||||
for (let i = 0; i < this.data.length; i++) {
|
||||
if (!this.objData[this.data[i]._index]._isChecked) {
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
<template>
|
||||
<date-picker readonly confirm format="MM/dd/yy" :open="open" :value="value3" @on-change="handleChange" type="date" @on-open-change="c" @on-clear="clear" @on-ok="ok">
|
||||
<a href="javascript:void(0)" @click="handleClick">
|
||||
<Icon type="ios-calendar-outline"></Icon>
|
||||
<template v-if="value3 === ''">选择日期</template>
|
||||
<template v-else>{{ value3 }}</template>
|
||||
</a>
|
||||
</date-picker>
|
||||
<date-picker :open="true" type="date" placeholder="选择日期" style="width: 200px"><span></span></date-picker>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
|
|
@ -7,6 +7,11 @@
|
|||
data () {
|
||||
return {
|
||||
columns6: [
|
||||
{
|
||||
type: 'selection',
|
||||
width: 60,
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
title: '日期',
|
||||
key: 'date'
|
||||
|
@ -60,30 +65,30 @@
|
|||
}
|
||||
],
|
||||
data5: [
|
||||
{
|
||||
name: '王小明',
|
||||
age: 18,
|
||||
address: '北京市朝阳区芍药居',
|
||||
date: '2016-10-03'
|
||||
},
|
||||
{
|
||||
name: '张小刚',
|
||||
age: 25,
|
||||
address: '北京市海淀区西二旗',
|
||||
date: '2016-10-01'
|
||||
},
|
||||
{
|
||||
name: '李小红',
|
||||
age: 30,
|
||||
address: '上海市浦东新区世纪大道',
|
||||
date: '2016-10-02'
|
||||
},
|
||||
{
|
||||
name: '周小伟',
|
||||
age: 26,
|
||||
address: '深圳市南山区深南大道',
|
||||
date: '2016-10-04'
|
||||
}
|
||||
// {
|
||||
// name: '王小明',
|
||||
// age: 18,
|
||||
// address: '北京市朝阳区芍药居',
|
||||
// date: '2016-10-03'
|
||||
// },
|
||||
// {
|
||||
// name: '张小刚',
|
||||
// age: 25,
|
||||
// address: '北京市海淀区西二旗',
|
||||
// date: '2016-10-01'
|
||||
// },
|
||||
// {
|
||||
// name: '李小红',
|
||||
// age: 30,
|
||||
// address: '上海市浦东新区世纪大道',
|
||||
// date: '2016-10-02'
|
||||
// },
|
||||
// {
|
||||
// name: '周小伟',
|
||||
// age: 26,
|
||||
// address: '深圳市南山区深南大道',
|
||||
// date: '2016-10-04'
|
||||
// }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue