|
@@ -57,7 +57,8 @@
|
|
<button v-if="clock=='add'" type="primary" formType="submit" @click="add()" class="button">
|
|
<button v-if="clock=='add'" type="primary" formType="submit" @click="add()" class="button">
|
|
<p class="p1">添加</p>
|
|
<p class="p1">添加</p>
|
|
</button>
|
|
</button>
|
|
- <button v-if="clock!='add'" v-show="ushow" type="primary" formType="submit" @click="update()" class="button">
|
|
|
|
|
|
+ <button v-if="clock!='add'" v-show="ushow" type="primary" formType="submit" @click="update()"
|
|
|
|
+ class="button">
|
|
<p class="p1">修改</p>
|
|
<p class="p1">修改</p>
|
|
</button>
|
|
</button>
|
|
<button v-if="clock!='add'" v-show="ushow" type="warn" formType="submit" @click="delet()" class="button">
|
|
<button v-if="clock!='add'" v-show="ushow" type="warn" formType="submit" @click="delet()" class="button">
|
|
@@ -102,7 +103,7 @@
|
|
Thursday: true,
|
|
Thursday: true,
|
|
Friday: true,
|
|
Friday: true,
|
|
Saturday: true,
|
|
Saturday: true,
|
|
- week: '',
|
|
|
|
|
|
+ week: '1,2,3,4,5,6,7,',
|
|
searchClientId: null,
|
|
searchClientId: null,
|
|
equipmentName: null,
|
|
equipmentName: null,
|
|
equipmentNameList: [],
|
|
equipmentNameList: [],
|
|
@@ -110,16 +111,24 @@
|
|
equipmentIds: [],
|
|
equipmentIds: [],
|
|
clock: null,
|
|
clock: null,
|
|
status: true,
|
|
status: true,
|
|
- ushow:false
|
|
|
|
|
|
+ ushow: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
this.globalUser = uni.getStorageSync("globalUser");
|
|
this.globalUser = uni.getStorageSync("globalUser");
|
|
this.clock = uni.getStorageSync("clock");
|
|
this.clock = uni.getStorageSync("clock");
|
|
var token = uni.getStorageSync("token");
|
|
var token = uni.getStorageSync("token");
|
|
|
|
+ if (this.clock == "add") {
|
|
|
|
+ this.Sunday = false;
|
|
|
|
+ this.Monday = false;
|
|
|
|
+ this.Tuesday = false;
|
|
|
|
+ this.Wednesday = false;
|
|
|
|
+ this.Thursday = false;
|
|
|
|
+ this.Friday = false;
|
|
|
|
+ this.Saturday = false;
|
|
|
|
+ }
|
|
if (token.length > 1) {
|
|
if (token.length > 1) {
|
|
this.getEquipmentListData();
|
|
this.getEquipmentListData();
|
|
-
|
|
|
|
} else {
|
|
} else {
|
|
uni.reLaunch({
|
|
uni.reLaunch({
|
|
url: '../../../pages/Login/Login',
|
|
url: '../../../pages/Login/Login',
|
|
@@ -129,6 +138,15 @@
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
let that = this
|
|
let that = this
|
|
|
|
+ // if (that.clock == "add") {
|
|
|
|
+ // this.Sunday = false;
|
|
|
|
+ // this.Monday = false;
|
|
|
|
+ // this.Tuesday = false;
|
|
|
|
+ // this.Wednesday = false;
|
|
|
|
+ // this.Thursday = false;
|
|
|
|
+ // this.Friday = false;
|
|
|
|
+ // this.Saturday = false;
|
|
|
|
+ // }
|
|
// 回显
|
|
// 回显
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
if (that.clock != "add") {
|
|
if (that.clock != "add") {
|
|
@@ -141,7 +159,7 @@
|
|
that.ushow = true;
|
|
that.ushow = true;
|
|
}
|
|
}
|
|
}, 4000)
|
|
}, 4000)
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapActions('chart', ['getEquipmentListByUser', 'addAlarmClock', 'addAlarmClockItem', 'updateAlarmClock']),
|
|
...mapActions('chart', ['getEquipmentListByUser', 'addAlarmClock', 'addAlarmClockItem', 'updateAlarmClock']),
|
|
@@ -486,12 +504,12 @@
|
|
// url: 'alarmClockList',
|
|
// url: 'alarmClockList',
|
|
// });
|
|
// });
|
|
uni.navigateBack({
|
|
uni.navigateBack({
|
|
- url:'alarmClockList'
|
|
|
|
|
|
+ url: 'alarmClockList'
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
uni.stopPullDownRefresh();
|
|
uni.stopPullDownRefresh();
|
|
}, _ => void uni.stopPullDownRefresh());
|
|
}, _ => void uni.stopPullDownRefresh());
|
|
},
|
|
},
|
|
@@ -558,7 +576,7 @@
|
|
// url: 'alarmClockList',
|
|
// url: 'alarmClockList',
|
|
// });
|
|
// });
|
|
uni.navigateBack({
|
|
uni.navigateBack({
|
|
- url:'alarmClockList'
|
|
|
|
|
|
+ url: 'alarmClockList'
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|