From d781ed83857aa3d72badc52b5953f22ae451e798 Mon Sep 17 00:00:00 2001
From: zhangyue <82248909@qq.com>
Date: Thu, 23 Jul 2026 19:11:35 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=89=E5=8E=BF=E5=A2=9E=E5=8A=A0=E5=90=8E?=
=?UTF-8?q?=E5=8F=B0=E8=8F=9C=E5=8D=95=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 4 +-
.../SurvTransdataLivestockwater.api.ts | 72 +++++
.../SurvTransdataLivestockwater.data.ts | 133 +++++++++
.../SurvTransdataLivestockwaterList.vue | 279 ++++++++++++++++++
.../SurvTransdataLivestockwaterForm.vue | 193 ++++++++++++
.../SurvTransdataLivestockwaterModal.vue | 75 +++++
.../orient/SurvTransdataOrientwater.api.ts | 72 +++++
.../orient/SurvTransdataOrientwater.data.ts | 161 ++++++++++
.../orient/SurvTransdataOrientwaterList.vue | 278 +++++++++++++++++
.../SurvTransdataOrientwaterForm.vue | 240 +++++++++++++++
.../SurvTransdataOrientwaterModal.vue | 75 +++++
.../SurvTransdataLivestockwater.data.ts | 24 +-
.../SurvTransdataLivestockwaterForm.vue | 62 ++--
.../appmana/zhibiao/ScEquZhibiao.data.ts | 43 ++-
.../appmana/zhibiao/ScEquZhibiaoList.vue | 107 ++++---
.../zhibiao/components/ScEquZhibiaoForm.vue | 53 ++--
.../Analysis/components/VisitAnalysis.vue | 128 ++++----
17 files changed, 1802 insertions(+), 197 deletions(-)
create mode 100644 src/views/appmana/jixian/realtime/livestock/SurvTransdataLivestockwater.api.ts
create mode 100644 src/views/appmana/jixian/realtime/livestock/SurvTransdataLivestockwater.data.ts
create mode 100644 src/views/appmana/jixian/realtime/livestock/SurvTransdataLivestockwaterList.vue
create mode 100644 src/views/appmana/jixian/realtime/livestock/components/SurvTransdataLivestockwaterForm.vue
create mode 100644 src/views/appmana/jixian/realtime/livestock/components/SurvTransdataLivestockwaterModal.vue
create mode 100644 src/views/appmana/jixian/realtime/orient/SurvTransdataOrientwater.api.ts
create mode 100644 src/views/appmana/jixian/realtime/orient/SurvTransdataOrientwater.data.ts
create mode 100644 src/views/appmana/jixian/realtime/orient/SurvTransdataOrientwaterList.vue
create mode 100644 src/views/appmana/jixian/realtime/orient/components/SurvTransdataOrientwaterForm.vue
create mode 100644 src/views/appmana/jixian/realtime/orient/components/SurvTransdataOrientwaterModal.vue
diff --git a/.env.development b/.env.development
index e4a1d61..b0855a0 100644
--- a/.env.development
+++ b/.env.development
@@ -6,7 +6,7 @@ VITE_PUBLIC_PATH = /
# 跨域代理,您可以配置多个 ,请注意,没有换行符
VITE_PROXY = [["/jeecgboot","http://192.168.2.110:9999"],["/upload","http://192.168.2.110:3300/upload"]]
-VITE_PROXY = [["/jeecgboot","https://fxnsp.sxcooh.com/lh-api/"],["/upload","http://192.168.2.111:3300/upload"]]
+#VITE_PROXY = [["/jeecgboot","https://fxnsp.sxcooh.com/lh-api/"],["/upload","http://192.168.2.111:3300/upload"]]
# 控制台不输出
VITE_DROP_CONSOLE = false
@@ -16,7 +16,7 @@ VITE_GLOB_API_URL=/jeecgboot
#后台接口全路径地址(必填)
VITE_GLOB_DOMAIN_URL=http://192.168.2.110:9999
-VITE_GLOB_DOMAIN_URL=https://fxnsp.sxcooh.com
+#VITE_GLOB_DOMAIN_URL=https://fxnsp.sxcooh.com
# 接口前缀
VITE_GLOB_API_URL_PREFIX=
diff --git a/src/views/appmana/jixian/realtime/livestock/SurvTransdataLivestockwater.api.ts b/src/views/appmana/jixian/realtime/livestock/SurvTransdataLivestockwater.api.ts
new file mode 100644
index 0000000..f55c597
--- /dev/null
+++ b/src/views/appmana/jixian/realtime/livestock/SurvTransdataLivestockwater.api.ts
@@ -0,0 +1,72 @@
+import { defHttp } from '/@/utils/http/axios';
+import { useMessage } from "/@/hooks/web/useMessage";
+
+const { createConfirm } = useMessage();
+
+enum Api {
+ list = '/appmana/survTransdataLivestockwater/list',
+ save='/appmana/survTransdataLivestockwater/add',
+ edit='/appmana/survTransdataLivestockwater/edit',
+ deleteOne = '/appmana/survTransdataLivestockwater/delete',
+ deleteBatch = '/appmana/survTransdataLivestockwater/deleteBatch',
+ importExcel = '/appmana/survTransdataLivestockwater/importExcel',
+ exportXls = '/appmana/survTransdataLivestockwater/exportXls',
+}
+
+/**
+ * 导出api
+ * @param params
+ */
+export const getExportUrl = Api.exportXls;
+
+/**
+ * 导入api
+ */
+export const getImportUrl = Api.importExcel;
+
+/**
+ * 列表接口
+ * @param params
+ */
+export const list = (params) => defHttp.get({ url: Api.list, params });
+
+/**
+ * 删除单个
+ * @param params
+ * @param handleSuccess
+ */
+export const deleteOne = (params,handleSuccess) => {
+ return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+}
+
+/**
+ * 批量删除
+ * @param params
+ * @param handleSuccess
+ */
+export const batchDelete = (params, handleSuccess) => {
+ createConfirm({
+ iconType: 'warning',
+ title: '确认删除',
+ content: '是否删除选中数据',
+ okText: '确认',
+ cancelText: '取消',
+ onOk: () => {
+ return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+ }
+ });
+}
+
+/**
+ * 保存或者更新
+ * @param params
+ * @param isUpdate
+ */
+export const saveOrUpdate = (params, isUpdate) => {
+ let url = isUpdate ? Api.edit : Api.save;
+ return defHttp.post({ url: url, params }, { isTransformResponse: false });
+}
diff --git a/src/views/appmana/jixian/realtime/livestock/SurvTransdataLivestockwater.data.ts b/src/views/appmana/jixian/realtime/livestock/SurvTransdataLivestockwater.data.ts
new file mode 100644
index 0000000..a58dac5
--- /dev/null
+++ b/src/views/appmana/jixian/realtime/livestock/SurvTransdataLivestockwater.data.ts
@@ -0,0 +1,133 @@
+import {BasicColumn} from '/@/components/Table';
+import {FormSchema} from '/@/components/Table';
+import { rules} from '/@/utils/helper/validator';
+import { render } from '/@/utils/common/renderUtils';
+//列表数据
+export const columns: BasicColumn[] = [
+ {
+ title: '站点名称',
+ align: 'center',
+ dataIndex: 'stationName',
+ },
+ {
+ title: '设备编号',
+ align: 'center',
+ dataIndex: 'deployCode',
+ },
+ {
+ title: '数据更新时间',
+ align: 'center',
+ dataIndex: 'dataDateTime',
+ },
+ // {
+ // title: '数据ID',
+ // align: "center",
+ // dataIndex: 'dataId'
+ // },
+ {
+ title: '总磷(mg/L)',
+ align: 'center',
+ dataIndex: 'dataWaterTpSy',
+ },
+ {
+ title: '总氮(mg/L)',
+ align: 'center',
+ dataIndex: 'dataWaterTnSy',
+ },
+ {
+ title: '氨氮(mg/L)',
+ align: 'center',
+ dataIndex: 'dataWaterNhSy',
+ },
+ {
+ title: '化学需氧量(mg/L)',
+ align: 'center',
+ dataIndex: 'dataWaterCodSy',
+ },
+
+ // {
+ // title: '数据获取类型;realTime=实时,dayTime=日数据,month=月数据,year=年数据',
+ // align: "center",
+ // dataIndex: 'dataGatherType'
+ // },
+];
+
+//查询数据
+export const searchFormSchema: FormSchema[] = [
+];
+
+//表单数据
+export const formSchema: FormSchema[] = [
+ {
+ label: '租户号',
+ field: 'tenantId',
+ component: 'Input',
+ },
+ {
+ label: '乐观锁',
+ field: 'reVision',
+ component: 'InputNumber',
+ },
+ {
+ label: '创建人',
+ field: 'createdBy',
+ component: 'Input',
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ component: 'DatePicker',
+ },
+ {
+ label: '更新人',
+ field: 'updatedBy',
+ component: 'Input',
+ },
+ {
+ label: '逻辑删除',
+ field: 'isDel',
+ component: 'InputNumber',
+ },
+ {
+ label: '更新时间',
+ field: 'updatedTime',
+ component: 'DatePicker',
+ },
+ {
+ label: '数据ID',
+ field: 'dataId',
+ component: 'Input',
+ },
+ {
+ label: '总磷',
+ field: 'dataWaterTp',
+ component: 'Input',
+ },
+ {
+ label: '总氮',
+ field: 'dataWaterTn',
+ component: 'Input',
+ },
+ {
+ label: '硝态氮',
+ field: 'dataWaterNo',
+ component: 'Input',
+ },
+ {
+ label: '数据更新时间',
+ field: 'dataDateTime',
+ component: 'DatePicker',
+ },
+ {
+ label: '数据获取类型;realTime=实时,dayTime=日数据,month=月数据,year=年数据',
+ field: 'dataGatherType',
+ component: 'Input',
+ },
+ // TODO 主键隐藏字段,目前写死为ID
+ {
+ label: '',
+ field: 'id',
+ component: 'Input',
+ show: false,
+ },
+];
diff --git a/src/views/appmana/jixian/realtime/livestock/SurvTransdataLivestockwaterList.vue b/src/views/appmana/jixian/realtime/livestock/SurvTransdataLivestockwaterList.vue
new file mode 100644
index 0000000..3b3a8f7
--- /dev/null
+++ b/src/views/appmana/jixian/realtime/livestock/SurvTransdataLivestockwaterList.vue
@@ -0,0 +1,279 @@
+
+
+
+
+
+
+
+
+
+ 导出
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ getAreaTextByCode(text) }}
+
+
+ 无文件
+ 下载
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/appmana/jixian/realtime/livestock/components/SurvTransdataLivestockwaterForm.vue b/src/views/appmana/jixian/realtime/livestock/components/SurvTransdataLivestockwaterForm.vue
new file mode 100644
index 0000000..9d3f368
--- /dev/null
+++ b/src/views/appmana/jixian/realtime/livestock/components/SurvTransdataLivestockwaterForm.vue
@@ -0,0 +1,193 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/appmana/jixian/realtime/livestock/components/SurvTransdataLivestockwaterModal.vue b/src/views/appmana/jixian/realtime/livestock/components/SurvTransdataLivestockwaterModal.vue
new file mode 100644
index 0000000..3451d8b
--- /dev/null
+++ b/src/views/appmana/jixian/realtime/livestock/components/SurvTransdataLivestockwaterModal.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/appmana/jixian/realtime/orient/SurvTransdataOrientwater.api.ts b/src/views/appmana/jixian/realtime/orient/SurvTransdataOrientwater.api.ts
new file mode 100644
index 0000000..20f9afd
--- /dev/null
+++ b/src/views/appmana/jixian/realtime/orient/SurvTransdataOrientwater.api.ts
@@ -0,0 +1,72 @@
+import { defHttp } from '/@/utils/http/axios';
+import { useMessage } from "/@/hooks/web/useMessage";
+
+const { createConfirm } = useMessage();
+
+enum Api {
+ list = '/appmana/survTransdataOrientwater/list',
+ save='/appmana/survTransdataOrientwater/add',
+ edit='/appmana/survTransdataOrientwater/edit',
+ deleteOne = '/appmana/survTransdataOrientwater/delete',
+ deleteBatch = '/appmana/survTransdataOrientwater/deleteBatch',
+ importExcel = '/appmana/survTransdataOrientwater/importExcel',
+ exportXls = '/appmana/survTransdataOrientwater/exportXls',
+}
+
+/**
+ * 导出api
+ * @param params
+ */
+export const getExportUrl = Api.exportXls;
+
+/**
+ * 导入api
+ */
+export const getImportUrl = Api.importExcel;
+
+/**
+ * 列表接口
+ * @param params
+ */
+export const list = (params) => defHttp.get({ url: Api.list, params });
+
+/**
+ * 删除单个
+ * @param params
+ * @param handleSuccess
+ */
+export const deleteOne = (params,handleSuccess) => {
+ return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+}
+
+/**
+ * 批量删除
+ * @param params
+ * @param handleSuccess
+ */
+export const batchDelete = (params, handleSuccess) => {
+ createConfirm({
+ iconType: 'warning',
+ title: '确认删除',
+ content: '是否删除选中数据',
+ okText: '确认',
+ cancelText: '取消',
+ onOk: () => {
+ return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+ }
+ });
+}
+
+/**
+ * 保存或者更新
+ * @param params
+ * @param isUpdate
+ */
+export const saveOrUpdate = (params, isUpdate) => {
+ let url = isUpdate ? Api.edit : Api.save;
+ return defHttp.post({ url: url, params }, { isTransformResponse: false });
+}
diff --git a/src/views/appmana/jixian/realtime/orient/SurvTransdataOrientwater.data.ts b/src/views/appmana/jixian/realtime/orient/SurvTransdataOrientwater.data.ts
new file mode 100644
index 0000000..66a4fa8
--- /dev/null
+++ b/src/views/appmana/jixian/realtime/orient/SurvTransdataOrientwater.data.ts
@@ -0,0 +1,161 @@
+import {BasicColumn} from '/@/components/Table';
+import {FormSchema} from '/@/components/Table';
+import { rules} from '/@/utils/helper/validator';
+import { render } from '/@/utils/common/renderUtils';
+//列表数据
+export const columns: BasicColumn[] = [
+ {
+ title: '站点名称',
+ align: "center",
+ dataIndex: 'stationName',
+ },
+ {
+ title: '设备编号',
+ align: "center",
+ dataIndex: 'deployCode',
+ },
+ {
+ title: '数据更新时间',
+ align: "center",
+ dataIndex: 'dataDateTime',
+ },
+ // {
+ // title: '数据ID',
+ // align: "center",
+ // dataIndex: 'dataId'
+ // },
+ {
+ title: '总磷(mg/L)',
+ align: "center",
+ dataIndex: 'dataWaterTpSy'
+ },
+ {
+ title: '总氮(mg/L)',
+ align: "center",
+ dataIndex: 'dataWaterTnSy'
+ },
+ {
+ title: '硝态氮(mg/L)',
+ align: "center",
+ dataIndex: 'dataWaterNoSy'
+ },
+ // {
+ // title: '化学需氧量(mg/L)',
+ // align: "center",
+ // dataIndex: 'dataWaterCod'
+ // },
+ // {
+ // title: '1#球阀状态',
+ // align: "center",
+ // dataIndex: 'firstValveStatus',
+ // customRender: ({ text }) => {
+ // if (!text || text == '00') {
+ // return '开';
+ // } else if (text == '01') {
+ // return '关';
+ // }
+ // },
+ // },
+ // {
+ // title: '2#球阀状态',
+ // align: "center",
+ // dataIndex: 'secondValveStatus',
+ // customRender: ({ text }) => {
+ // if (!text || text == '00') {
+ // return '开';
+ // } else if (text == '01') {
+ // return '关';
+ // }
+ // },
+ // },
+ // {
+ // title: '数据类型;realTime=实时,dayTime=日数据,month=月数据,year=年数据',
+ // align: "center",
+ // dataIndex: 'dataGatherType'
+ // },
+];
+
+//查询数据
+export const searchFormSchema: FormSchema[] = [
+];
+
+//表单数据
+export const formSchema: FormSchema[] = [
+ {
+ label: '租户号',
+ field: 'tenantId',
+ component: 'Input',
+ },
+ {
+ label: '乐观锁',
+ field: 'reVision',
+ component: 'InputNumber',
+ },
+ {
+ label: '创建人',
+ field: 'createdBy',
+ component: 'Input',
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ component: 'DatePicker',
+ },
+ {
+ label: '更新人',
+ field: 'updatedBy',
+ component: 'Input',
+ },
+ {
+ label: '逻辑删除',
+ field: 'isDel',
+ component: 'InputNumber',
+ },
+ {
+ label: '更新时间',
+ field: 'updatedTime',
+ component: 'DatePicker',
+ },
+ {
+ label: '数据ID',
+ field: 'dataId',
+ component: 'Input',
+ },
+ {
+ label: '总磷',
+ field: 'dataWaterTp',
+ component: 'Input',
+ },
+ {
+ label: '总氮',
+ field: 'dataWaterTn',
+ component: 'Input',
+ },
+ {
+ label: '氨氮',
+ field: 'dataWaterNh',
+ component: 'Input',
+ },
+ {
+ label: '化学需氧量',
+ field: 'dataWaterCod',
+ component: 'Input',
+ },
+ {
+ label: '数据更新时间',
+ field: 'dataDateTime',
+ component: 'DatePicker',
+ },
+ {
+ label: '数据类型;realTime=实时,dayTime=日数据,month=月数据,year=年数据',
+ field: 'dataGatherType',
+ component: 'Input',
+ },
+ // TODO 主键隐藏字段,目前写死为ID
+ {
+ label: '',
+ field: 'id',
+ component: 'Input',
+ show: false,
+ },
+];
diff --git a/src/views/appmana/jixian/realtime/orient/SurvTransdataOrientwaterList.vue b/src/views/appmana/jixian/realtime/orient/SurvTransdataOrientwaterList.vue
new file mode 100644
index 0000000..3ceb6ce
--- /dev/null
+++ b/src/views/appmana/jixian/realtime/orient/SurvTransdataOrientwaterList.vue
@@ -0,0 +1,278 @@
+
+
+
+
+
+
+
+
+
+ 导出
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ getAreaTextByCode(text) }}
+
+
+ 无文件
+ 下载
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/appmana/jixian/realtime/orient/components/SurvTransdataOrientwaterForm.vue b/src/views/appmana/jixian/realtime/orient/components/SurvTransdataOrientwaterForm.vue
new file mode 100644
index 0000000..b52b83f
--- /dev/null
+++ b/src/views/appmana/jixian/realtime/orient/components/SurvTransdataOrientwaterForm.vue
@@ -0,0 +1,240 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/appmana/jixian/realtime/orient/components/SurvTransdataOrientwaterModal.vue b/src/views/appmana/jixian/realtime/orient/components/SurvTransdataOrientwaterModal.vue
new file mode 100644
index 0000000..e370e5d
--- /dev/null
+++ b/src/views/appmana/jixian/realtime/orient/components/SurvTransdataOrientwaterModal.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/appmana/livestockwater/realtime/SurvTransdataLivestockwater.data.ts b/src/views/appmana/livestockwater/realtime/SurvTransdataLivestockwater.data.ts
index 9fb76f8..a6842bc 100644
--- a/src/views/appmana/livestockwater/realtime/SurvTransdataLivestockwater.data.ts
+++ b/src/views/appmana/livestockwater/realtime/SurvTransdataLivestockwater.data.ts
@@ -6,17 +6,17 @@ import { render } from '/@/utils/common/renderUtils';
export const columns: BasicColumn[] = [
{
title: '站点名称',
- align: "center",
+ align: 'center',
dataIndex: 'stationName',
},
{
title: '设备编号',
- align: "center",
- dataIndex: 'deviceCode',
+ align: 'center',
+ dataIndex: 'deployCode',
},
{
title: '数据更新时间',
- align: "center",
+ align: 'center',
dataIndex: 'dataDateTime',
},
// {
@@ -26,23 +26,23 @@ export const columns: BasicColumn[] = [
// },
{
title: '总磷(mg/L)',
- align: "center",
- dataIndex: 'dataWaterTp'
+ align: 'center',
+ dataIndex: 'dataWaterTp',
},
{
title: '总氮(mg/L)',
- align: "center",
- dataIndex: 'dataWaterTn'
+ align: 'center',
+ dataIndex: 'dataWaterTn',
},
{
title: '氨氮(mg/L)',
- align: "center",
- dataIndex: 'dataWaterNh'
+ align: 'center',
+ dataIndex: 'dataWaterNh',
},
{
title: '化学需氧量(mg/L)',
- align: "center",
- dataIndex: 'dataWaterCod'
+ align: 'center',
+ dataIndex: 'dataWaterCod',
},
// {
diff --git a/src/views/appmana/livestockwater/realtime/components/SurvTransdataLivestockwaterForm.vue b/src/views/appmana/livestockwater/realtime/components/SurvTransdataLivestockwaterForm.vue
index a93682d..9d3f368 100644
--- a/src/views/appmana/livestockwater/realtime/components/SurvTransdataLivestockwaterForm.vue
+++ b/src/views/appmana/livestockwater/realtime/components/SurvTransdataLivestockwaterForm.vue
@@ -8,8 +8,8 @@
-
-
+
+
@@ -45,7 +45,14 @@
-
+
+
+
+
+
+
@@ -11,37 +36,38 @@
- 新增
- 导出
- 导入
+
+
+
-
-
- 删除
-
+
+
+
+
- 批量操作
+ 批量操作
-
+
-
+
-
+
{{ getAreaTextByCode(text) }}
-
- 无文件
+
+ 无文件
下载
@@ -57,7 +83,10 @@
import { columns } from './ScEquZhibiao.data';
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './ScEquZhibiao.api';
import { downloadFile } from '/@/utils/common/renderUtils';
- import ScEquZhibiaoModal from './components/ScEquZhibiaoModal.vue'
+ import ScEquZhibiaoModal from './components/ScEquZhibiaoModal.vue';
+ import { getStationList } from '/@/views/appmana/station/SurvStationInfo.api';
+ import { ApiSelect } from '/@/components/Form';
+ import { getDeviceCateList } from '/@/views/appmana/deploy/SurvDeviceDeploy.api';
const formRef = ref();
const queryParam = reactive({});
@@ -69,7 +98,7 @@
title: 'sc_equ_zhibiao',
api: list,
columns,
- canResize:false,
+ canResize: false,
useSearchForm: false,
actionColumn: {
width: 120,
@@ -80,16 +109,17 @@
},
},
exportConfig: {
- name: "sc_equ_zhibiao",
+ name: 'sc_equ_zhibiao',
url: getExportUrl,
params: queryParam,
},
- importConfig: {
- url: getImportUrl,
- success: handleSuccess
- },
+ importConfig: {
+ url: getImportUrl,
+ success: handleSuccess,
+ },
});
- const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
+ const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] =
+ tableContext;
const labelCol = reactive({
xs: { span: 24 },
sm: { span: 7 },
@@ -106,7 +136,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.add();
}
-
+
/**
* 编辑事件
*/
@@ -114,7 +144,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.edit(record);
}
-
+
/**
* 详情
*/
@@ -122,28 +152,28 @@
registerModal.value.disableSubmit = true;
registerModal.value.edit(record);
}
-
+
/**
* 删除事件
*/
async function handleDelete(record) {
await deleteOne({ id: record.id }, handleSuccess);
}
-
+
/**
* 批量删除事件
*/
async function batchHandleDelete() {
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
}
-
+
/**
* 成功回调
*/
function handleSuccess() {
(selectedRowKeys.value = []) && reload();
}
-
+
/**
* 操作栏
*/
@@ -155,7 +185,7 @@
},
];
}
-
+
/**
* 下拉操作栏
*/
@@ -164,14 +194,15 @@
{
label: '详情',
onClick: handleDetail.bind(null, record),
- }, {
+ },
+ {
label: '删除',
popConfirm: {
title: '是否确认删除',
confirm: handleDelete.bind(null, record),
- }
- }
- ]
+ },
+ },
+ ];
}
/**
@@ -180,7 +211,7 @@
function searchQuery() {
reload();
}
-
+
/**
* 重置
*/
@@ -190,10 +221,6 @@
//刷新数据
reload();
}
-
-
-
-
diff --git a/src/views/appmana/zhibiao/components/ScEquZhibiaoForm.vue b/src/views/appmana/zhibiao/components/ScEquZhibiaoForm.vue
index 7f288ee..755e9ba 100644
--- a/src/views/appmana/zhibiao/components/ScEquZhibiaoForm.vue
+++ b/src/views/appmana/zhibiao/components/ScEquZhibiaoForm.vue
@@ -3,23 +3,13 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -29,12 +19,12 @@
-
+
-
+
@@ -54,48 +44,46 @@
import { getValueType } from '/@/utils';
import { saveOrUpdate } from '../ScEquZhibiao.api';
import { Form } from 'ant-design-vue';
-
+
const props = defineProps({
formDisabled: { type: Boolean, default: false },
- formData: { type: Object, default: ()=>{} },
- formBpm: { type: Boolean, default: true }
+ formData: { type: Object, default: () => {} },
+ formBpm: { type: Boolean, default: true },
});
const formRef = ref();
const useForm = Form.useForm;
const emit = defineEmits(['register', 'ok']);
const formData = reactive>({
id: '',
- createId: '',
- updateId: '',
- equId: '',
- code: '',
- name: '',
+ createId: '',
+ updateId: '',
+ equId: '',
+ code: '',
+ name: '',
valLow: undefined,
valHeight: undefined,
- nuit: '',
+ nuit: '',
});
const { createMessage } = useMessage();
const labelCol = ref({ xs: { span: 24 }, sm: { span: 5 } });
const wrapperCol = ref({ xs: { span: 24 }, sm: { span: 16 } });
const confirmLoading = ref(false);
//表单验证
- const validatorRules = {
- };
+ const validatorRules = {};
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });
// 表单禁用
- const disabled = computed(()=>{
- if(props.formBpm === true){
- if(props.formData.disabled === false){
+ const disabled = computed(() => {
+ if (props.formBpm === true) {
+ if (props.formData.disabled === false) {
return false;
- }else{
+ } else {
return true;
}
}
return props.formDisabled;
});
-
/**
* 新增
*/
@@ -142,7 +130,6 @@
});
}
-
defineExpose({
add,
edit,
diff --git a/src/views/dashboard/Analysis/components/VisitAnalysis.vue b/src/views/dashboard/Analysis/components/VisitAnalysis.vue
index 806acb0..767d447 100644
--- a/src/views/dashboard/Analysis/components/VisitAnalysis.vue
+++ b/src/views/dashboard/Analysis/components/VisitAnalysis.vue
@@ -95,6 +95,76 @@
summaryNoDataList.value = res.result[0].NOSummry;
summaryNhDataList.value = res.result[0].NHSummry;
summaryCodDataList.value = res.result[0].CODSummry;
+
+ let seriesData = [];
+ if (summaryTpDataList.value && summaryTpDataList.value.length > 0) {
+ seriesData.push({
+ smooth: true,
+ name: '总磷',
+ stack: 'mg/L',
+ data: summaryTpDataList.value,
+ type: 'line',
+ areaStyle: {},
+ itemStyle: {
+ color: '#5ab1ef',
+ },
+ });
+ }
+ if (summaryTnDataList.value && summaryTnDataList.value.length > 0) {
+ seriesData.push({
+ smooth: true,
+ name: '总氮',
+ stack: 'mg/L',
+ data: summaryTnDataList.value,
+ type: 'line',
+ areaStyle: {},
+ itemStyle: {
+ color: '#019680',
+ },
+ });
+ }
+ if (summaryNoDataList.value && summaryNoDataList.value.length > 0) {
+ seriesData.push({
+ smooth: true,
+ name: '硝态氮',
+ stack: 'mg/L',
+ data: summaryNoDataList.value,
+ type: 'line',
+ areaStyle: {},
+ itemStyle: {
+ color: '#019634',
+ },
+ });
+ }
+
+ if (summaryNhDataList.value && summaryNhDataList.value.length > 0) {
+ seriesData.push({
+ smooth: true,
+ name: '氨氮',
+ stack: 'mg/L',
+ data: summaryNhDataList.value,
+ type: 'line',
+ areaStyle: {},
+ itemStyle: {
+ color: '#075ca6',
+ },
+ });
+ }
+
+ if (summaryCodDataList.value && summaryCodDataList.value.length > 0) {
+ seriesData.push({
+ smooth: true,
+ name: '化学需氧量',
+ stack: 'mg/L',
+ data: summaryCodDataList.value,
+ type: 'line',
+ areaStyle: {},
+ itemStyle: {
+ color: '#a65107',
+ },
+ });
+ }
+
setOptions({
tooltip: {
trigger: 'axis',
@@ -150,63 +220,7 @@
right: 20,
top: 20,
},
- series: [
- {
- smooth: true,
- name: '总磷',
- stack: 'mg/L',
- data: summaryTpDataList.value,
- type: 'line',
- areaStyle: {},
- itemStyle: {
- color: '#5ab1ef',
- },
- },
- {
- smooth: true,
- name: '总氮',
- stack: 'mg/L',
- data: summaryTnDataList.value,
- type: 'line',
- areaStyle: {},
- itemStyle: {
- color: '#019680',
- },
- },
- // {
- // smooth: true,
- // name: '硝态氮',
- // stack: 'mg/L',
- // data: summaryNoDataList.value,
- // type: 'line',
- // areaStyle: {},
- // itemStyle: {
- // color: '#019634',
- // },
- // },
- {
- smooth: true,
- name: '化学需氧量',
- stack: 'mg/L',
- data: summaryCodDataList.value,
- type: 'line',
- areaStyle: {},
- itemStyle: {
- color: '#a65107',
- },
- },
- // {
- // smooth: true,
- // name: '氨氮',
- // stack: 'mg/L',
- // data: summaryNhDataList.value,
- // type: 'line',
- // areaStyle: {},
- // itemStyle: {
- // color: '#075ca6',
- // },
- // },
- ],
+ series: seriesData,
});
} else {
}