禅道bug修复
This commit is contained in:
parent
ce82e83f28
commit
104f98ed59
|
|
@ -395,9 +395,10 @@ const onHandleSeniorSearch = () => {
|
|||
const onHandleSearch = () => {
|
||||
queryParams.value.searchType = 3
|
||||
queryParams.value.keyWord = innerKeyWord.value
|
||||
queryParams.value.pageNum = 1
|
||||
getImgListData(true)
|
||||
rightPopupShow.value = false
|
||||
resetForm()
|
||||
// resetForm()
|
||||
}
|
||||
|
||||
// 重置
|
||||
|
|
@ -506,7 +507,7 @@ const getImgListData = async (isTap = false) => {
|
|||
|
||||
const res = await getImgListApi(queryParamsNew)
|
||||
// 更新总数
|
||||
total.value = res.data.total
|
||||
total.value = res?.data?.total
|
||||
console.log(
|
||||
'%c🔍 获取照片列表出参 %c',
|
||||
'background: linear-gradient(90deg, #FF6B6B, #4ECDC4); color: white; padding: 5px 10px; border-radius: 5px; font-weight: bold;',
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
text="修改"
|
||||
type="primary"
|
||||
@tap="onHandleEditRecord(item.id)"
|
||||
v-if="!isExpire(item.rectDate)"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -178,6 +179,15 @@ const onHandleViewDetails = (id) => {
|
|||
})
|
||||
}
|
||||
|
||||
const isExpire = (rectDate) => {
|
||||
const targetDate = new Date(rectDate)
|
||||
const currentDate = new Date()
|
||||
// 去掉时间部分,只比较日期
|
||||
targetDate.setHours(0, 0, 0, 0)
|
||||
currentDate.setHours(0, 0, 0, 0)
|
||||
return targetDate < currentDate
|
||||
}
|
||||
|
||||
// 点击轮播图
|
||||
const onClickSwiper = (e) => {}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
text="修改"
|
||||
type="primary"
|
||||
@tap="onHandleEditRecord(item.id)"
|
||||
v-if="!isExpire(item.rectDate)"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -185,6 +186,15 @@ const onClickSwiper = (e) => {}
|
|||
|
||||
// 点击返回顶部
|
||||
const onHandleBackTop = () => {}
|
||||
|
||||
const isExpire = (rectDate) => {
|
||||
const targetDate = new Date(rectDate)
|
||||
const currentDate = new Date()
|
||||
// 去掉时间部分,只比较日期
|
||||
targetDate.setHours(0, 0, 0, 0)
|
||||
currentDate.setHours(0, 0, 0, 0)
|
||||
return targetDate < currentDate
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
|||
|
|
@ -8,10 +8,11 @@ export default defineConfig({
|
|||
proxy: {
|
||||
// 在此处编写代理规则
|
||||
'/api': {
|
||||
target: 'http://192.168.0.133:11997', // 梁超
|
||||
// target: 'http://192.168.0.133:11997', // 梁超
|
||||
// target: 'http://192.168.0.137:11997', // 方亮
|
||||
// target: 'http://192.168.0.60:11997', // 赵福海
|
||||
// target: 'http://192.168.0.39:11997', // 陈长文
|
||||
target: 'http://192.168.0.14:11997', // 测试环境
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => {
|
||||
return path.replace(/\/api/, '')
|
||||
|
|
|
|||
Loading…
Reference in New Issue