|
@@ -17,13 +17,13 @@
|
|
|
<scroll-view scroll-y class="scroll-view" @scrolltolower="onreachBottom">
|
|
|
<view v-for="item in listData" :key="item.id" class="itemInfo">
|
|
|
<view class="itemName">
|
|
|
- <span class="name">{{listData.name}}</span>
|
|
|
- <u-switch size="40" v-model="listData.status"></u-switch>
|
|
|
+ <span class="name">{{item.name}}</span>
|
|
|
+ <u-switch size="40" :value="item.status==1"></u-switch>
|
|
|
</view>
|
|
|
<view class="itemName">
|
|
|
- <span>{{listData.startDate}}- {{listData.endDate}}</span>
|
|
|
+ <span>{{item.startDate}} 至 {{item.endDate}}</span>
|
|
|
<span>
|
|
|
- <u-button v-if="listData.status==1" type="warning" size="mini" style="margin-right: 15upx;" @click="handetail">查看</u-button>
|
|
|
+ <u-button v-if="item.status==1" type="warning" size="mini" style="margin-right: 15upx;" @click="handetail">查看</u-button>
|
|
|
<u-button type="primary" size="mini" style="margin-right: 15upx;" @click="handedit">编辑</u-button>
|
|
|
<u-button type="error" size="mini" @click="handelete(item)">删除</u-button>
|
|
|
</span>
|
|
@@ -45,12 +45,7 @@
|
|
|
},
|
|
|
status: 'loadmore',
|
|
|
noDataText: '暂无数据',
|
|
|
- listData:[
|
|
|
- // {name:'夏季活动',time:'2020-05-20',checked:true,controlStatus: false},
|
|
|
- // {name:'夏季活动',time:'2020-05-20',checked:false},
|
|
|
- // {name:'夏季活动',time:'2020-05-20',checked:true},
|
|
|
- // {name:'夏季活动',time:'2020-05-20',checked:false},
|
|
|
- ]
|
|
|
+ listData:[]
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -76,12 +71,8 @@
|
|
|
// 列表数据
|
|
|
getListData(){
|
|
|
getCheckTaskConfigList({pageNo:1,pageSize:10}).then(res=>{
|
|
|
- console.log(res)
|
|
|
if(res.status==200){
|
|
|
- this.listData=res.data[0].list[0]
|
|
|
- this.listData.startDate=this.listData.startDate.substring(0,11)
|
|
|
- this.listData.endDate=this.listData.endDate.substring(0,11)
|
|
|
- console.log(this.listData.startDate)
|
|
|
+ this.listData=res.data.list
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -118,6 +109,9 @@
|
|
|
// }
|
|
|
// }
|
|
|
});
|
|
|
+ },
|
|
|
+ onreachBottom(){
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|