diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue index 9190c9e..6fcb43a 100644 --- a/src/components/table/header/index.vue +++ b/src/components/table/header/index.vue @@ -191,7 +191,7 @@ defineExpose({ onComSearch, areaRef, setDatePicker, setInterval, datePickerRef, background-color: var(--ba-bg-color-overlay); border-bottom: none; - padding: 13px 15px; + padding: 13px 15px 9px; font-size: 14px; .table-header-operate-text { diff --git a/src/utils/echartMethod.ts b/src/utils/echartMethod.ts index 367c655..b1e01a1 100644 --- a/src/utils/echartMethod.ts +++ b/src/utils/echartMethod.ts @@ -11,7 +11,11 @@ export const yMethod = (arr: any) => { if (maxValue > 1000) { max = Math.ceil(maxValue / 100) * 100 - min = (Math.floor(minValue / 100) - 1) * 100 + if (minValue == 0) { + min = 0 + } else { + min = (Math.floor(minValue / 100) - 1) * 100 + } } else { max = Math.ceil(maxValue / 10) * 10 min = Math.floor(minValue / 10) * 10 @@ -19,9 +23,9 @@ export const yMethod = (arr: any) => { if (maxValue > 0 && maxValue < 1) { max = 1 - } else if (max == 0 && minValue > -1 && minValue < 0) { + } else if (max == 0 && minValue > -1 && minValue < 0) { min = -1 - } + } return [min, max, interval] } diff --git a/src/utils/request.ts b/src/utils/request.ts index ae9e70d..6b82134 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -226,14 +226,16 @@ function getPendingKey(config: AxiosRequestConfig) { /** * 根据请求方法组装请求数据/参数 */ -export function requestPayload(method: Method, data: anyObj) { +export function requestPayload(method: Method, data: anyObj, paramsPOST: boolean) { if (method == 'GET') { return { params: data } } else if (method == 'POST') { - return { - data: data + if (paramsPOST) { + return { params: data } + } else { + return { data: data } } } } diff --git a/src/views/govern/device/planData/index.vue b/src/views/govern/device/planData/index.vue index 5fdef63..f595d72 100644 --- a/src/views/govern/device/planData/index.vue +++ b/src/views/govern/device/planData/index.vue @@ -15,19 +15,15 @@ {{ deviceData.describe ? deviceData.describe : '/' }} - +
- +