修改禅道已知bug

This commit is contained in:
qq787203167
2022-08-15 10:30:14 +08:00
parent 30c05a935d
commit 82a407dceb
3 changed files with 15 additions and 6 deletions
+10 -1
View File
@@ -69,7 +69,7 @@
methods: { methods: {
onSelect(obj) { onSelect(obj) {
this.$emit('menuSelect', obj) this.$emit('menuSelect', obj)
}, }
} }
} }
</script> </script>
@@ -201,5 +201,14 @@
left: 0 !important; left: 0 !important;
right: inherit !important; right: inherit !important;
} }
</style>
<style scoped>
::v-deep .ant-menu-item a {
overflow: hidden !important;
white-space: nowrap!important;
text-overflow: ellipsis!important;
-o-text-overflow: ellipsis!important;
}
</style> </style>
<!-- update_end author:sunjianlei date:20190530 for: 选中首页的时候不显示背景颜色 --> <!-- update_end author:sunjianlei date:20190530 for: 选中首页的时候不显示背景颜色 -->
+3 -3
View File
@@ -168,7 +168,7 @@
}, },
searchQueryList: { searchQueryList: {
type: Array, type: Array,
default: ()=>{ default: () => {
return [] return []
} }
}, },
@@ -223,7 +223,7 @@
// 将半年的时间单位换算成毫秒 // 将半年的时间单位换算成毫秒
var halfYear = 365 / 2 * 24 * 3600 * 1000 var halfYear = 365 / 2 * 24 * 3600 * 1000
// 半年前的时间(毫秒单位) // 半年前的时间(毫秒单位)
var pastResult = curDate - halfYear var pastResult = curDate + halfYear
// 日期函数,定义起点为半年前 // 日期函数,定义起点为半年前
var pastDate = new Date(pastResult) var pastDate = new Date(pastResult)
var pastYear = pastDate.getFullYear() var pastYear = pastDate.getFullYear()
@@ -235,7 +235,7 @@
if (pastDay >= 0 && pastDay <= 9) { if (pastDay >= 0 && pastDay <= 9) {
pastDay = '0' + pastDay pastDay = '0' + pastDay
} }
var endDate = pastYear + '-' + pastMonth + '-' + pastDay var endDate = pastYear + '-' + pastMonth + '-' + (pastDay + 1)
return endDate return endDate
}, },
dateChange(item) { dateChange(item) {
@@ -244,7 +244,7 @@
// 将半年的时间单位换算成毫秒 // 将半年的时间单位换算成毫秒
var halfYear = 365 / 2 * 24 * 3600 * 1000 var halfYear = 365 / 2 * 24 * 3600 * 1000
// 半年前的时间(毫秒单位) // 半年前的时间(毫秒单位)
var pastResult = curDate - halfYear var pastResult = curDate + halfYear
// 日期函数,定义起点为半年前 // 日期函数,定义起点为半年前
var pastDate = new Date(pastResult) var pastDate = new Date(pastResult)
var pastYear = pastDate.getFullYear() var pastYear = pastDate.getFullYear()
@@ -256,7 +256,7 @@
if (pastDay >= 0 && pastDay <= 9) { if (pastDay >= 0 && pastDay <= 9) {
pastDay = '0' + pastDay pastDay = '0' + pastDay
} }
var endDate = pastYear + '-' + pastMonth + '-' + pastDay var endDate = pastYear + '-' + pastMonth + '-' + (pastDay + 1)
return endDate return endDate
}, },
pageOnChange(page) { pageOnChange(page) {