|
@@ -35,7 +35,25 @@ let pageBoxPosition=reactive({
|
|
|
temLeft:0,
|
|
|
})
|
|
|
localStorage.setItem('hzyb-token',route.query.token)
|
|
|
-function pageChange(){}
|
|
|
+
|
|
|
+function pageChange(type){
|
|
|
+ const length = EdbList.value.length
|
|
|
+ if(type==='before'){
|
|
|
+ if(currentEdbIndex.value===0){
|
|
|
+ currentEdbIndex.value = length-1
|
|
|
+ }else{
|
|
|
+ currentEdbIndex.value = currentEdbIndex.value - 1
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(currentEdbIndex.value===length-1){
|
|
|
+ currentEdbIndex.value = 0
|
|
|
+ }else{
|
|
|
+ currentEdbIndex.value = currentEdbIndex.value + 1
|
|
|
+ }
|
|
|
+ }
|
|
|
+ currentEdbId.value = EdbList.value[currentEdbIndex.value].edbInfoId
|
|
|
+ getEdbDetail()
|
|
|
+}
|
|
|
const pageTouchmove=(e)=>{
|
|
|
const touchObj=e.touches[0]
|
|
|
let top=touchObj.clientY-82
|
|
@@ -61,7 +79,7 @@ const pageTouchmove=(e)=>{
|
|
|
|
|
|
//获取当月指标列表
|
|
|
async function getEdbList(){
|
|
|
- const {startDate,endDate,edbInfoId,matterType,permissionId} = route.query
|
|
|
+ const {startDate,endDate,edbInfoId,permissionId} = route.query
|
|
|
await apiGetCalendarEventList({
|
|
|
chart_permission_id:Number(permissionId),
|
|
|
start_date:startDate,
|