CzRger пре 1 месец
родитељ
комит
e815a1a80c
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 0 1
      src/views/manage/home/cloud-g2.vue
  2. 3 1
      src/views/manage/home/index.vue

+ 0 - 1
src/views/manage/home/cloud-g2.vue

@@ -17,7 +17,6 @@ const state: any = reactive({
 })
 const initChart = () => {
   const data = props.data.map(v => {
-    console.log(v.name)
     v.value = v.count
     v.text = v.name
     return v

+ 3 - 1
src/views/manage/home/index.vue

@@ -95,7 +95,9 @@ const onPage = (pageNum, pageSize) => {
   }
   //  添加表单参数
   if (state.query.formReal.dateType != 0) {
-    params.dateType = state.query.formReal.dateType
+    const now = new Date().getTime()
+    params.startTime = proxy.$util.YMDHms(now - 1000 * 60 * 60 * 24 * Number(state.query.formReal.dateType))
+    params.endTime = proxy.$util.YMDHms(now)
   } else {
     params.startTime = state.query.formReal.dateArea[0]
     params.endTime = state.query.formReal.dateArea[1]