Browse Source

修改任务过滤警告

wms3.0_pda
lijuncheng 11 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> </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>
<view class="uni-flex space-between u-col-center" style="width: 100%;margin-top: 30rpx;"> <view class="uni-flex space-between u-col-center" style="width: 100%;margin-top: 30rpx;">
<view class="" style="font-size: 32rpx;"> <view class="" style="font-size: 32rpx;">
只看待处理 只看待处理
</view> </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>
<view class=""> <view class="">
<view class="uni-flex u-row-center" style="margin-top: 30rpx;" v-if="isShowAsn"> <view class="uni-flex u-row-center" style="margin-top: 30rpx;" v-if="isShowAsn">
@ -69,15 +69,27 @@
data() { data() {
return { return {
dataContent: {}, dataContent: {},
checkedToday:'', checkedTodayModel:false,
checkedWaitTask:'', checkedWaitModel:false,
} }
}, },
watch: { 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() { mounted() {
this.checkedToday = this.checkedToday
this.checkedWaitTask = this.checkedWaitTask
}, },
methods: { methods: {
// //

25
mycomponents/request/requestFilter.vue

@ -3,11 +3,18 @@
<view class="maskbox" @tap="maskClick"></view> <view class="maskbox" @tap="maskClick"></view>
<view class="uni-flex uni-column center" <view class="uni-flex uni-column center"
style="background-color: white;width: 200px; height:auto;padding: 20rpx;z-index: 99;position: relative;"> 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="uni-flex space-between u-col-center" style="width: 100%;margin-top: 30rpx;">
<view class="" style="font-size: 32rpx;"> <view class="" style="font-size: 32rpx;">
只看处理中 只看处理中
</view> </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>
<view class=""> <view class="">
<view class="uni-flex u-row-center" style="margin-top: 30rpx;"> <view class="uni-flex u-row-center" style="margin-top: 30rpx;">
@ -35,6 +42,8 @@
data() { data() {
return { return {
dataContent: {}, dataContent: {},
checkedTodayModel:false,
checkedWaitModel:false
} }
}, },
props: { props: {
@ -56,6 +65,20 @@
} }
}, },
watch: { 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() { mounted() {

Loading…
Cancel
Save