1.安全承诺书冲突修改

dev
guoyuepeng 2024-05-10 19:32:52 +08:00
parent 93666ae7e7
commit 3eb3b8f28c
1 changed files with 140 additions and 206 deletions

View File

@ -6,105 +6,54 @@
itemStyle="height:80upx;padding-bottom:10upx;background-color: #fff;" itemStyle="height:80upx;padding-bottom:10upx;background-color: #fff;"
@click="tabsClick" @click="tabsClick"
></u-tabs> ></u-tabs>
<<<<<<< HEAD <view class="container">
<view class="container"> <u-sticky offset-top="200">
<u-sticky offset-top="200"> <u-button type="primary" text="高级搜索" @click="popupOpen" style="height: 30px;"></u-button>
<u-button type="primary" text="高级搜索" @click="popupOpen" style="height: 30px;"></u-button> </u-sticky>
</u-sticky> </view>
</view> <u-popup :show="popupShow" mode="right" :overlay="true" customStyle='width: 300px;' :safeAreaInsetTop="true" @close="popupClose" @open="popupOpen">
<u-popup :show="popupShow" mode="right" :overlay="true" customStyle='width: 300px;' :safeAreaInsetTop="true" @close="popupClose" @open="popupOpen"> <view>
<view> <u-datetime-picker
<u-datetime-picker :show="addStartPickBarShow"
:show="addStartPickBarShow" v-model="addTimeStart"
v-model="addTimeStart" mode="date"
mode="date" @close="addPickBarOnClose('start')"
@close="addPickBarOnClose('start')" @cancel="addPickBarOnCancel('start')"
@cancel="addPickBarOnCancel('start')" @confirm="addPickBarOnConfirm"
@confirm="addPickBarOnConfirm" ></u-datetime-picker>
></u-datetime-picker> <u-button @click="addStartPickBarShow = true">起始时间{{ addTimeStartStr == '' ? '请选择起始时间...' : addTimeStartStr }}</u-button>
<u-button @click="addStartPickBarShow = true">起始时间{{ addTimeStartStr == '' ? '请选择起始时间...' : addTimeStartStr }}</u-button> <u-datetime-picker
<u-datetime-picker :show="addEndPickBarShow"
:show="addEndPickBarShow" v-model="addTimeEnd"
v-model="addTimeEnd" mode="date"
mode="date" @close="addPickBarOnClose('end')"
@close="addPickBarOnClose('end')" @cancel="addPickBarOnCancel('end')"
@cancel="addPickBarOnCancel('end')" @confirm="addPickBarOnConfirm"
@confirm="addPickBarOnConfirm" ></u-datetime-picker>
></u-datetime-picker> <u-button @click="addEndPickBarShow = true">结束时间{{ addTimeEndStr == '' ? '请选择结束时间...' : addTimeEndStr }}</u-button>
<u-button @click="addEndPickBarShow = true">结束时间{{ addTimeEndStr == '' ? '请选择结束时间...' : addTimeEndStr }}</u-button> <u-toast ref="uToast"></u-toast>
<u-toast ref="uToast"></u-toast> <view class="u-page">
<view class="u-page"> <view class="u-demo-block">
<view class="u-demo-block"> <view class="u-demo-block__content">
<view class="u-demo-block__content"> <u-row customStyle="margin-bottom: 10px">
<u-row customStyle="margin-bottom: 10px"> <u-col span="6">
<u-col span="6"> <view class="demo-layout bg-purple-light">
<view class="demo-layout bg-purple-light"> <u-button @click="resetAdvancedParam"></u-button>
<u-button @click="resetAdvancedParam"></u-button> </view>
</view> </u-col>
</u-col> <u-col span="6">
<u-col span="6"> <view class="demo-layout bg-purple">
<view class="demo-layout bg-purple"> <u-button @click="advancedSearch"></u-button>
<u-button @click="advancedSearch"></u-button> </view>
</view> </u-col>
</u-col> </u-row>
</u-row>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</u-popup> </u-popup>
=======
<view class="container">
<u-sticky offset-top="200">
<u-button type="primary" text="高级搜索" @click="popupOpen" style="height: 30px;"></u-button>
</u-sticky>
</view>
<u-popup :show="popupShow" mode="right" :overlay="true" customStyle='width: 300px;' :safeAreaInsetTop="true" @close="popupClose" @open="popupOpen">
<view>
<u-datetime-picker
:show="addStartPickBarShow"
v-model="addTimeStart"
mode="date"
@close="addPickBarOnClose('start')"
@cancel="addPickBarOnCancel('start')"
@confirm="addPickBarOnConfirm"
></u-datetime-picker>
<u-button @click="addStartPickBarShow = true">起始时间{{ addTimeStartStr == '' ? '请选择起始时间...' : addTimeStartStr }}</u-button>
<u-datetime-picker
:show="addEndPickBarShow"
v-model="addTimeEnd"
mode="date"
@close="addPickBarOnClose('end')"
@cancel="addPickBarOnCancel('end')"
@confirm="addPickBarOnConfirm"
></u-datetime-picker>
<u-button @click="addEndPickBarShow = true">结束时间{{ addTimeEndStr == '' ? '请选择结束时间...' : addTimeEndStr }}</u-button>
<u-toast ref="uToast"></u-toast>
<view class="u-page">
<view class="u-demo-block">
<view class="u-demo-block__content">
<u-row customStyle="margin-bottom: 10px">
<u-col span="6">
<view class="demo-layout bg-purple-light">
<u-button @click="resetAdvancedParam"></u-button>
</view>
</u-col>
<u-col span="6">
<view class="demo-layout bg-purple">
<u-button @click="advancedSearch"></u-button>
</view>
</u-col>
</u-row>
</view>
</view>
</view>
</view>
</u-popup>
>>>>>>> remotes/origin/pet
<view class="message_list"> <view class="message_list">
<u-list @scrolltolower="scrolltolower" v-if="list.length > 0"> <u-list @scrolltolower="scrolltolower" v-if="list.length > 0">
<u-list-item v-for="(item, index) in list" :key="index"> <u-list-item v-for="(item, index) in list" :key="index">
@ -150,13 +99,13 @@ export default {
currentPage: 1, currentPage: 1,
totalPage: 0, totalPage: 0,
list: [], list: [],
popupShow: false, // popupShow: false, //
addStartPickBarShow: false, // addStartPickBarShow: false, //
addEndPickBarShow: false, // addEndPickBarShow: false, //
addTimeStart: Number(new Date()), // - addTimeStart: Number(new Date()), // -
addTimeEnd: Number(new Date()), // - addTimeEnd: Number(new Date()), // -
addTimeStartStr: '', // -- addTimeStartStr: '', // --
addTimeEndStr: '', // -- addTimeEndStr: '', // --
} }
}, },
computed: { computed: {
@ -173,8 +122,8 @@ export default {
USER_ID: this.userInfo.USER_ID, USER_ID: this.userInfo.USER_ID,
showCount: this.pageSize, showCount: this.pageSize,
currentPage: this.currentPage, currentPage: this.currentPage,
ADDSTART: this.addTimeStartStr, ADDSTART: this.addTimeStartStr,
ADDEND: this.addTimeEndStr ADDEND: this.addTimeEndStr
}) })
this.list = [...this.list, ...resData.varList] this.list = [...this.list, ...resData.varList]
this.totalPage = resData.page.totalPage this.totalPage = resData.page.totalPage
@ -184,8 +133,8 @@ export default {
USER_ID: this.userInfo.USER_ID, USER_ID: this.userInfo.USER_ID,
showCount: this.pageSize, showCount: this.pageSize,
currentPage: this.currentPage, currentPage: this.currentPage,
ADDSTART: this.addTimeStartStr, ADDSTART: this.addTimeStartStr,
ADDEND: this.addTimeEndStr ADDEND: this.addTimeEndStr
}) })
this.list = [...this.list, ...resData.varList] this.list = [...this.list, ...resData.varList]
}, },
@ -205,7 +154,7 @@ export default {
}, },
tabsClick(e) { tabsClick(e) {
this.TYPE = e.id this.TYPE = e.id
this.resetAllAddTime() this.resetAllAddTime()
this.resetList() this.resetList()
}, },
fnNavigator(item) { fnNavigator(item) {
@ -218,95 +167,80 @@ export default {
} }
}) })
}, },
// //
popupOpen() { popupOpen() {
this.popupShow = true this.popupShow = true
},
//
<<<<<<< HEAD
popupClose() {
this.popupShow = false
}, },
======= //
popupClose() { popupClose() {
this.popupShow = false this.popupShow = false
}, },
>>>>>>> remotes/origin/pet //
// addPickBarOnClose(type) {
addPickBarOnClose(type) { switch (type) {
switch (type) { case 'start':
case 'start': this.addStartPickBarShow = false;
this.addStartPickBarShow = false; break;
break; case 'end':
case 'end': this.addEndPickBarShow = false;
this.addEndPickBarShow = false; break;
break; default:
default: this.$refs.uToast.show({message:'日期选择参数错误',duration:1000})
this.$refs.uToast.show({message:'日期选择参数错误',duration:1000}) }
} },
}, //
// addPickBarOnCancel(type) {
addPickBarOnCancel(type) { this.addPickBarOnClose(type)
this.addPickBarOnClose(type) },
}, //
// addPickBarOnConfirm(value) {
addPickBarOnConfirm(value) { // alert(value.value)
// alert(value.value) switch (this.addStartPickBarShow) {
switch (this.addStartPickBarShow) { case true:
case true: // start type
// start type this.addTimeStartStr = uni.$u.timeFormat(value.value, 'yyyy-mm-dd')
this.addTimeStartStr = uni.$u.timeFormat(value.value, 'yyyy-mm-dd') this.addPickBarOnClose('start')
this.addPickBarOnClose('start') break;
break; case false:
case false: // end type
// end type this.addTimeEndStr = uni.$u.timeFormat(value.value, 'yyyy-mm-dd')
this.addTimeEndStr = uni.$u.timeFormat(value.value, 'yyyy-mm-dd') this.addPickBarOnClose('end')
this.addPickBarOnClose('end') break;
break; default:
default: this.$refs.uToast.show({message:'日期选择参数错误',duration:1000})
this.$refs.uToast.show({message:'日期选择参数错误',duration:1000}) }
} },
}, //
<<<<<<< HEAD resetAllAddTime() {
// this.addTimeStart = Number(new Date())
======= this.addTimeEnd = Number(new Date())
// this.addTimeStartStr = ''
>>>>>>> remotes/origin/pet this.addTimeEndStr = ''
resetAllAddTime() { },
this.addTimeStart = Number(new Date()) //
this.addTimeEnd = Number(new Date()) resetAdvancedParam() {
this.addTimeStartStr = '' this.resetAllAddTime()
this.addTimeEndStr = '' this.resetList()
}, },
// //
resetAdvancedParam() { advancedSearch(){
this.resetAllAddTime() const toast = uni.$u.toast
this.resetList() //
}, if (this.addTimeStartStr > this.addTimeEndStr){
// // casecase1 > case2
advancedSearch(){ this.$refs.uToast.show({message:'日期不合法',duration:1000})
const toast = uni.$u.toast return
// }
if (this.addTimeStartStr > this.addTimeEndStr){ if (this.addTimeEndStr != '' && this.addTimeStartStr == ''){
<<<<<<< HEAD //
// casecase1 > case2 this.$refs.uToast.show({message:'日期不合法',duration:1000})
======= return
// casecase1 > case2 }
>>>>>>> remotes/origin/pet this.resetList()
this.$refs.uToast.show({message:'日期不合法',duration:1000}) this.popupClose()
return }
}
if (this.addTimeEndStr != '' && this.addTimeStartStr == ''){
//
this.$refs.uToast.show({message:'日期不合法',duration:1000})
return
}
this.resetList()
this.popupClose()
}
} }
} }
@ -318,23 +252,23 @@ export default {
height: 100vh; height: 100vh;
} }
.wrap { .wrap {
padding: 12px; padding: 12px;
} }
.demo-layout { .demo-layout {
height: 25px; height: 25px;
border-radius: 4px; border-radius: 4px;
} }
.bg-purple { .bg-purple {
background: #CED7E1; background: #CED7E1;
} }
.bg-purple-light { .bg-purple-light {
background: #e5e9f2; background: #e5e9f2;
} }
.bg-purple-dark { .bg-purple-dark {
background: #99a9bf; background: #99a9bf;
} }
</style> </style>