@@ -213,6 +213,15 @@ Component({
const {
value
} = e.detail;
+ if (value == 0) {
+ let dataList = this.data.dataList;
+ for (let i = 0; i < dataList.length; i++) {
+ dataList[i].checked = true;
+ }
+ this.setData({
+ dataList
+ })
+ };
this.setData({
isAll: value,
manual: value
@@ -288,9 +288,10 @@ Page({
radioChange({
detail
}) {
- console.log(detail)
+ let ftype = (detail.length!=0) ? detail : this.data.ftype;
+ console.log(ftype)
- ftype: detail,
+ ftype,
popups: false,
'errTips.ftype': false
})