diff --git a/src/api/sys/other.ts b/src/api/sys/other.ts index 83e023b5..2204d4bc 100644 --- a/src/api/sys/other.ts +++ b/src/api/sys/other.ts @@ -74,7 +74,7 @@ export function deleteDevice(device, mode: ErrorMessageMode = 'modal') { * @description:基地数据列表 */ export function getAgriculturalBasic( - params = { per_page: 999999, page: 1 }, + params: any = { per_page: 999999, page: 1, parent_id: 0, type: 2 }, mode: ErrorMessageMode = 'modal', ) { return defHttp.get( @@ -115,3 +115,63 @@ export function getCropYieldCategoryStatics(params, mode: ErrorMessageMode = 'mo }, ) } +/** + * @description:城镇年产值折线图 + * 柱状图 + */ +export function getCropYieldTotalChart(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: '/api/crop-yield-total-chart', + params, + }, + { + errorMessageMode: mode, + }, + ) +} +/** + * @description:城镇年产值折线图 + * 柱状图 + */ +export function getCropYieldTotalListt(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: '/api/crop-yield-total-list', + params, + }, + { + errorMessageMode: mode, + }, + ) +} +/** + * @description:设备数据-基地+设备类型 + * + */ +export function getDeviceBaseDataStatics(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: '/api/device-base-data-statics', + params, + }, + { + errorMessageMode: mode, + }, + ) +} +/** + * @description:获取指定设备下面的基地 + * + */ +export function getAgriculturalDeviceBasic(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: '/api/agricultural-device-basic', + params, + }, + { + errorMessageMode: mode, + }, + ) +} diff --git a/src/design/index.less b/src/design/index.less index 77275869..ca7ffdc4 100644 --- a/src/design/index.less +++ b/src/design/index.less @@ -42,3 +42,28 @@ svg, span { outline: none; } + +.dropdownClass { + .ant-dropdown-menu { + border: 1px solid rgba(57, 102, 132, 1); + color: #fff; + background: rgba(28, 44, 52, .9); + max-height: 200px; + overflow-y: auto; + .ant-dropdown-menu-item{ + color: white; + &:hover{ + background:rgba(62, 97, 114, 0.6); + } + } + } + + .ant-popover-arrow { + right: 42px; + + .ant-popover-arrow-content { + display: none; + background-color: rgba(57, 102, 132, 1) !important; + } + } +} diff --git a/src/views/visualization/components/CZNYCY.vue b/src/views/visualization/components/CZNYCY.vue index 80134b87..6ddf34ad 100644 --- a/src/views/visualization/components/CZNYCY.vue +++ b/src/views/visualization/components/CZNYCY.vue @@ -1,18 +1,143 @@ diff --git a/src/views/visualization/components/JK.vue b/src/views/visualization/components/JK.vue index d2563f58..cd044488 100644 --- a/src/views/visualization/components/JK.vue +++ b/src/views/visualization/components/JK.vue @@ -1,17 +1,32 @@ diff --git a/src/views/visualization/components/NYQK.vue b/src/views/visualization/components/NYQK.vue index a024c797..63837eb0 100644 --- a/src/views/visualization/components/NYQK.vue +++ b/src/views/visualization/components/NYQK.vue @@ -147,8 +147,7 @@ for (const key in list) { if (Object.prototype.hasOwnProperty.call(list, key)) { arr.push({ - // value: list[key], - value: parseInt(Math.random() * 100), + value: list[key], name: key, }) } diff --git a/src/views/visualization/components/QXSZ.vue b/src/views/visualization/components/QXSZ.vue index 34189da6..9d9e1b25 100644 --- a/src/views/visualization/components/QXSZ.vue +++ b/src/views/visualization/components/QXSZ.vue @@ -1,5 +1,19 @@ - + + diff --git a/src/views/visualization/components/SBYXZT.vue b/src/views/visualization/components/SBYXZT.vue index 90036b1d..c2c1d908 100644 --- a/src/views/visualization/components/SBYXZT.vue +++ b/src/views/visualization/components/SBYXZT.vue @@ -1,17 +1,35 @@