Browse Source

修改任务过滤警告

wms3.0_pda
lijuncheng 12 months ago
parent
commit
a557178c51
  1. 24
      mycomponents/job/jobFilter.vue
  2. 25
      mycomponents/request/requestFilter.vue

24
mycomponents/job/jobFilter.vue

@ -8,14 +8,14 @@
只看当天
</view>
<u-switch v-model="checkedToday" active-color="#4DD865" inactive-color="#eee" size="35" @change="switchChangeToday"></u-switch>
<u-switch v-model="checkedTodayModel" active-color="#4DD865" inactive-color="#eee" size="35" @change="switchChangeToday"></u-switch>
</view>
<view class="uni-flex space-between u-col-center" style="width: 100%;margin-top: 30rpx;">
<view class="" style="font-size: 32rpx;">
只看待处理
</view>
<u-switch v-model="checkedWaitTask" active-color="#4DD865" inactive-color="#eee" size="35" @change="switchChangeWait"></u-switch>
<u-switch v-model="checkedWaitModel" active-color="#4DD865" inactive-color="#eee" size="35" @change="switchChangeWait"></u-switch>
</view>
<view class="">
<view class="uni-flex u-row-center" style="margin-top: 30rpx;" v-if="isShowAsn">
@ -69,15 +69,27 @@
data() {
return {
dataContent: {},
checkedToday:'',
checkedWaitTask:'',
checkedTodayModel:false,
checkedWaitModel:false,
}
},
watch: {
checkedToday: {
handler(newName, oldName) {
this.checkedTodayModel = this.checkedToday
},
immediate: true,
deep: true
},
checkedWaitTask: {
handler(newName, oldName) {
this.checkedWaitModel = this.checkedWaitTask
},
immediate: true,
deep: true
}
},
mounted() {
this.checkedToday = this.checkedToday
this.checkedWaitTask = this.checkedWaitTask
},
methods: {
//

25
mycomponents/request/requestFilter.vue

@ -3,11 +3,18 @@
<view class="maskbox" @tap="maskClick"></view>
<view class="uni-flex uni-column center"
style="background-color: white;width: 200px; height:auto;padding: 20rpx;z-index: 99;position: relative;">
<!-- <view class="uni-flex space-between u-col-center" style="width: 100%;">
<view class="" style="font-size: 32rpx;">
只看当天
</view>
<u-switch v-model="checkedTodayModel" active-color="#4DD865" inactive-color="#eee" size="35" @change="switchChangeToday"></u-switch>
</view> -->
<view class="uni-flex space-between u-col-center" style="width: 100%;margin-top: 30rpx;">
<view class="" style="font-size: 32rpx;">
只看处理中
</view>
<u-switch v-model="checkedWaitTask" active-color="#4DD865" inactive-color="#eee" size="35" @change="switchChangeWait"></u-switch>
<u-switch v-model="checkedWaitModel" active-color="#4DD865" inactive-color="#eee" size="35" @change="switchChangeWait"></u-switch>
</view>
<view class="">
<view class="uni-flex u-row-center" style="margin-top: 30rpx;">
@ -35,6 +42,8 @@
data() {
return {
dataContent: {},
checkedTodayModel:false,
checkedWaitModel:false
}
},
props: {
@ -56,6 +65,20 @@
}
},
watch: {
checkedToday: {
handler(newName, oldName) {
this.checkedTodayModel = this.checkedToday
},
immediate: true,
deep: true
},
checkedWaitTask: {
handler(newName, oldName) {
this.checkedWaitModel = this.checkedWaitTask
},
immediate: true,
deep: true
}
},
mounted() {

Loading…
Cancel
Save