diff --git a/src/views/appmana/hj/air/hisdata/SurvHisdataAir.api.ts b/src/views/appmana/hj/air/hisdata/SurvHisdataAir.api.ts new file mode 100644 index 0000000..e7f6699 --- /dev/null +++ b/src/views/appmana/hj/air/hisdata/SurvHisdataAir.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/survHisdataAir/list', + save='/appmana/survHisdataAir/add', + edit='/appmana/survHisdataAir/edit', + deleteOne = '/appmana/survHisdataAir/delete', + deleteBatch = '/appmana/survHisdataAir/deleteBatch', + importExcel = '/appmana/survHisdataAir/importExcel', + exportXls = '/appmana/survHisdataAir/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/hj/air/hisdata/SurvHisdataAir.data.ts b/src/views/appmana/hj/air/hisdata/SurvHisdataAir.data.ts new file mode 100644 index 0000000..5eca593 --- /dev/null +++ b/src/views/appmana/hj/air/hisdata/SurvHisdataAir.data.ts @@ -0,0 +1,171 @@ +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: '大气温度(℃)', + align: "center", + dataIndex: 'dataAirTemp' + }, + { + title: '大气湿度(%RH)', + align: "center", + dataIndex: 'dataAirWet' + }, + { + title: '大气压力(hPa)', + align: "center", + dataIndex: 'dataAirPress' + }, + { + title: '雨量(mm)', + align: "center", + dataIndex: 'dataRainFall' + }, + { + title: '风速(m/s)', + align: "center", + dataIndex: 'dataWindSpeed' + }, + { + title: '风向(°)', + align: "center", + dataIndex: 'dataWindDirection' + }, + { + title: '太阳全辐射(W/m2)', + align: "center", + dataIndex: 'dataSunFallout' + }, + + // { + // title: '数据类型', + // align: "center", + // dataIndex: 'dataGatherType' + // }, + // { + // title: '转储时间', + // align: "center", + // dataIndex: 'transDate', + // customRender:({text}) =>{ + // return !text?"":(text.length>10?text.substr(0,10):text); + // }, + // }, +]; + +//查询数据 +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: '大气温度', + field: 'dataAirTemp', + component: 'Input', + }, + { + label: '大气湿度', + field: 'dataAirWet', + component: 'Input', + }, + { + label: '大气压力', + field: 'dataAirPress', + component: 'Input', + }, + { + label: '雨量', + field: 'dataRainFall', + component: 'Input', + }, + { + label: '风速', + field: 'dataWindSpeed', + component: 'Input', + }, + { + label: '风向', + field: 'dataWindDirection', + component: 'Input', + }, + { + label: '太阳全辐射', + field: 'dataSunFallout', + component: 'Input', + }, + { + label: '数据更新时间', + field: 'dataDateTime', + component: 'DatePicker', + }, + { + label: '数据类型;realTime=实时,dayTime=日数据,month=月数据,year=年数据', + field: 'dataGatherType', + component: 'Input', + }, + { + label: '转储时间', + field: 'transDate', + component: 'DatePicker', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/appmana/hj/air/hisdata/SurvHisdataAirList.vue b/src/views/appmana/hj/air/hisdata/SurvHisdataAirList.vue new file mode 100644 index 0000000..41da199 --- /dev/null +++ b/src/views/appmana/hj/air/hisdata/SurvHisdataAirList.vue @@ -0,0 +1,279 @@ + + + + + diff --git a/src/views/appmana/hj/air/hisdata/components/SurvHisdataAirForm.vue b/src/views/appmana/hj/air/hisdata/components/SurvHisdataAirForm.vue new file mode 100644 index 0000000..f7b5f52 --- /dev/null +++ b/src/views/appmana/hj/air/hisdata/components/SurvHisdataAirForm.vue @@ -0,0 +1,220 @@ + + + + + diff --git a/src/views/appmana/hj/air/hisdata/components/SurvHisdataAirModal.vue b/src/views/appmana/hj/air/hisdata/components/SurvHisdataAirModal.vue new file mode 100644 index 0000000..55c1d05 --- /dev/null +++ b/src/views/appmana/hj/air/hisdata/components/SurvHisdataAirModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/appmana/hj/air/realtime/SurvTransdataAir.api.ts b/src/views/appmana/hj/air/realtime/SurvTransdataAir.api.ts new file mode 100644 index 0000000..2ac9ba5 --- /dev/null +++ b/src/views/appmana/hj/air/realtime/SurvTransdataAir.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/survTransdataAir/list', + save='/appmana/survTransdataAir/add', + edit='/appmana/survTransdataAir/edit', + deleteOne = '/appmana/survTransdataAir/delete', + deleteBatch = '/appmana/survTransdataAir/deleteBatch', + importExcel = '/appmana/survTransdataAir/importExcel', + exportXls = '/appmana/survTransdataAir/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/hj/air/realtime/SurvTransdataAir.data.ts b/src/views/appmana/hj/air/realtime/SurvTransdataAir.data.ts new file mode 100644 index 0000000..6ba7a97 --- /dev/null +++ b/src/views/appmana/hj/air/realtime/SurvTransdataAir.data.ts @@ -0,0 +1,157 @@ +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: '大气温度(℃)', + align: 'center', + dataIndex: 'dataAirTemp', + }, + { + title: '大气湿度(%RH)', + align: 'center', + dataIndex: 'dataAirWet', + }, + { + title: '大气压力(hPa)', + align: 'center', + dataIndex: 'dataAirPress', + }, + { + title: '雨量(mm)', + align: 'center', + dataIndex: 'dataRainFall', + }, + { + title: '风速(m/s)', + align: 'center', + dataIndex: 'dataWindSpeed', + }, + { + title: '风向(°)', + align: 'center', + dataIndex: 'dataWindDirection', + }, + { + title: '太阳全辐射(W/m2)', + align: 'center', + dataIndex: 'dataSunFallout', + }, + // { + // title: '数据类型', + // 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: '大气温度', + field: 'dataAirTemp', + component: 'Input', + }, + { + label: '大气湿度', + field: 'dataAirWet', + component: 'Input', + }, + { + label: '大气压力', + field: 'dataAirPress', + component: 'Input', + }, + { + label: '雨量', + field: 'dataRainFall', + component: 'Input', + }, + { + label: '风速', + field: 'dataWindSpeed', + component: 'Input', + }, + { + label: '风向', + field: 'dataWindDirection', + component: 'Input', + }, + { + label: '太阳全辐射', + field: 'dataSunFallout', + 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/hj/air/realtime/SurvTransdataAirList.vue b/src/views/appmana/hj/air/realtime/SurvTransdataAirList.vue new file mode 100644 index 0000000..148b2b8 --- /dev/null +++ b/src/views/appmana/hj/air/realtime/SurvTransdataAirList.vue @@ -0,0 +1,274 @@ + + + + + diff --git a/src/views/appmana/hj/air/realtime/components/SurvTransdataAirForm.vue b/src/views/appmana/hj/air/realtime/components/SurvTransdataAirForm.vue new file mode 100644 index 0000000..053c50f --- /dev/null +++ b/src/views/appmana/hj/air/realtime/components/SurvTransdataAirForm.vue @@ -0,0 +1,214 @@ + + + + + diff --git a/src/views/appmana/hj/air/realtime/components/SurvTransdataAirModal.vue b/src/views/appmana/hj/air/realtime/components/SurvTransdataAirModal.vue new file mode 100644 index 0000000..8a89283 --- /dev/null +++ b/src/views/appmana/hj/air/realtime/components/SurvTransdataAirModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/appmana/hj/livestockwater/hisdata/SurvHisdataLivestockwater.api.ts b/src/views/appmana/hj/livestockwater/hisdata/SurvHisdataLivestockwater.api.ts new file mode 100644 index 0000000..597d8e2 --- /dev/null +++ b/src/views/appmana/hj/livestockwater/hisdata/SurvHisdataLivestockwater.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/survHisdataLivestockwater/list', + save='/appmana/survHisdataLivestockwater/add', + edit='/appmana/survHisdataLivestockwater/edit', + deleteOne = '/appmana/survHisdataLivestockwater/delete', + deleteBatch = '/appmana/survHisdataLivestockwater/deleteBatch', + importExcel = '/appmana/survHisdataLivestockwater/importExcel', + exportXls = '/appmana/survHisdataLivestockwater/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/hj/livestockwater/hisdata/SurvHisdataLivestockwater.data.ts b/src/views/appmana/hj/livestockwater/hisdata/SurvHisdataLivestockwater.data.ts new file mode 100644 index 0000000..f0ccc77 --- /dev/null +++ b/src/views/appmana/hj/livestockwater/hisdata/SurvHisdataLivestockwater.data.ts @@ -0,0 +1,143 @@ +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: 'dataWaterTp', + }, + { + title: '总氮(mg/L)', + align: 'center', + dataIndex: 'dataWaterTn', + }, + { + title: '氨氮(mg/L)', + align: 'center', + dataIndex: 'dataWaterNh', + }, + { + title: '化学需氧量(mg/L)', + align: 'center', + dataIndex: 'dataWaterCod', + }, + + // { + // title: '数据类型;realTime=实时,dayTime=日数据,month=月数据,year=年数据', + // align: "center", + // dataIndex: 'dataGatherType' + // }, + // { + // title: '转储时间', + // align: "center", + // dataIndex: 'transDate', + // }, +]; + +//查询数据 +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', + }, + { + label: '转储时间', + field: 'transDate', + component: 'DatePicker', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/appmana/hj/livestockwater/hisdata/SurvHisdataLivestockwaterList.vue b/src/views/appmana/hj/livestockwater/hisdata/SurvHisdataLivestockwaterList.vue new file mode 100644 index 0000000..dc945dc --- /dev/null +++ b/src/views/appmana/hj/livestockwater/hisdata/SurvHisdataLivestockwaterList.vue @@ -0,0 +1,274 @@ + + + + + diff --git a/src/views/appmana/hj/livestockwater/hisdata/components/SurvHisdataLivestockwaterForm.vue b/src/views/appmana/hj/livestockwater/hisdata/components/SurvHisdataLivestockwaterForm.vue new file mode 100644 index 0000000..0389b42 --- /dev/null +++ b/src/views/appmana/hj/livestockwater/hisdata/components/SurvHisdataLivestockwaterForm.vue @@ -0,0 +1,199 @@ + + + + + diff --git a/src/views/appmana/hj/livestockwater/hisdata/components/SurvHisdataLivestockwaterModal.vue b/src/views/appmana/hj/livestockwater/hisdata/components/SurvHisdataLivestockwaterModal.vue new file mode 100644 index 0000000..d6de60c --- /dev/null +++ b/src/views/appmana/hj/livestockwater/hisdata/components/SurvHisdataLivestockwaterModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/appmana/hj/livestockwater/realtime/SurvTransdataLivestockwater.api.ts b/src/views/appmana/hj/livestockwater/realtime/SurvTransdataLivestockwater.api.ts new file mode 100644 index 0000000..f55c597 --- /dev/null +++ b/src/views/appmana/hj/livestockwater/realtime/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/hj/livestockwater/realtime/SurvTransdataLivestockwater.data.ts b/src/views/appmana/hj/livestockwater/realtime/SurvTransdataLivestockwater.data.ts new file mode 100644 index 0000000..a6842bc --- /dev/null +++ b/src/views/appmana/hj/livestockwater/realtime/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: 'dataWaterTp', + }, + { + title: '总氮(mg/L)', + align: 'center', + dataIndex: 'dataWaterTn', + }, + { + title: '氨氮(mg/L)', + align: 'center', + dataIndex: 'dataWaterNh', + }, + { + title: '化学需氧量(mg/L)', + align: 'center', + dataIndex: 'dataWaterCod', + }, + + // { + // 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/hj/livestockwater/realtime/SurvTransdataLivestockwaterList.vue b/src/views/appmana/hj/livestockwater/realtime/SurvTransdataLivestockwaterList.vue new file mode 100644 index 0000000..b096d6c --- /dev/null +++ b/src/views/appmana/hj/livestockwater/realtime/SurvTransdataLivestockwaterList.vue @@ -0,0 +1,274 @@ + + + + + diff --git a/src/views/appmana/hj/livestockwater/realtime/components/SurvTransdataLivestockwaterForm.vue b/src/views/appmana/hj/livestockwater/realtime/components/SurvTransdataLivestockwaterForm.vue new file mode 100644 index 0000000..911cd4b --- /dev/null +++ b/src/views/appmana/hj/livestockwater/realtime/components/SurvTransdataLivestockwaterForm.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/src/views/appmana/hj/livestockwater/realtime/components/SurvTransdataLivestockwaterModal.vue b/src/views/appmana/hj/livestockwater/realtime/components/SurvTransdataLivestockwaterModal.vue new file mode 100644 index 0000000..3451d8b --- /dev/null +++ b/src/views/appmana/hj/livestockwater/realtime/components/SurvTransdataLivestockwaterModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/appmana/hj/orientwater/hisdata/SurvHisdataOrientwater.api.ts b/src/views/appmana/hj/orientwater/hisdata/SurvHisdataOrientwater.api.ts new file mode 100644 index 0000000..eb01cc2 --- /dev/null +++ b/src/views/appmana/hj/orientwater/hisdata/SurvHisdataOrientwater.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/survHisdataOrientwater/list', + save='/appmana/survHisdataOrientwater/add', + edit='/appmana/survHisdataOrientwater/edit', + deleteOne = '/appmana/survHisdataOrientwater/delete', + deleteBatch = '/appmana/survHisdataOrientwater/deleteBatch', + importExcel = '/appmana/survHisdataOrientwater/importExcel', + exportXls = '/appmana/survHisdataOrientwater/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/hj/orientwater/hisdata/SurvHisdataOrientwater.data.ts b/src/views/appmana/hj/orientwater/hisdata/SurvHisdataOrientwater.data.ts new file mode 100644 index 0000000..90e7445 --- /dev/null +++ b/src/views/appmana/hj/orientwater/hisdata/SurvHisdataOrientwater.data.ts @@ -0,0 +1,167 @@ +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: 'dataWaterTp', + }, + { + title: '总氮(mg/L)', + align: 'center', + dataIndex: 'dataWaterTn', + }, + { + title: '硝态氮(mg/L)', + align: 'center', + dataIndex: 'dataWaterNo', + }, + { + 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' + // }, + // { + // title: '转储时间', + // align: "center", + // dataIndex: 'transDate', + // }, +]; + +//查询数据 +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', + }, + { + label: '转储时间', + field: 'transDate', + component: 'DatePicker', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/appmana/hj/orientwater/hisdata/SurvHisdataOrientwaterList.vue b/src/views/appmana/hj/orientwater/hisdata/SurvHisdataOrientwaterList.vue new file mode 100644 index 0000000..ab505d5 --- /dev/null +++ b/src/views/appmana/hj/orientwater/hisdata/SurvHisdataOrientwaterList.vue @@ -0,0 +1,274 @@ + + + + + diff --git a/src/views/appmana/hj/orientwater/hisdata/components/SurvHisdataOrientwaterForm.vue b/src/views/appmana/hj/orientwater/hisdata/components/SurvHisdataOrientwaterForm.vue new file mode 100644 index 0000000..6e65d24 --- /dev/null +++ b/src/views/appmana/hj/orientwater/hisdata/components/SurvHisdataOrientwaterForm.vue @@ -0,0 +1,242 @@ + + + + + diff --git a/src/views/appmana/hj/orientwater/hisdata/components/SurvHisdataOrientwaterModal.vue b/src/views/appmana/hj/orientwater/hisdata/components/SurvHisdataOrientwaterModal.vue new file mode 100644 index 0000000..f861981 --- /dev/null +++ b/src/views/appmana/hj/orientwater/hisdata/components/SurvHisdataOrientwaterModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/appmana/hj/orientwater/realtime/SurvTransdataOrientwater.api.ts b/src/views/appmana/hj/orientwater/realtime/SurvTransdataOrientwater.api.ts new file mode 100644 index 0000000..20f9afd --- /dev/null +++ b/src/views/appmana/hj/orientwater/realtime/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/hj/orientwater/realtime/SurvTransdataOrientwater.data.ts b/src/views/appmana/hj/orientwater/realtime/SurvTransdataOrientwater.data.ts new file mode 100644 index 0000000..9602755 --- /dev/null +++ b/src/views/appmana/hj/orientwater/realtime/SurvTransdataOrientwater.data.ts @@ -0,0 +1,156 @@ +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: 'dataWaterTp', + }, + { + title: '总氮(mg/L)', + align: 'center', + dataIndex: 'dataWaterTn', + }, + { + title: '硝态氮(mg/L)', + align: 'center', + dataIndex: 'dataWaterNo', + }, + { + 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/hj/orientwater/realtime/SurvTransdataOrientwaterList.vue b/src/views/appmana/hj/orientwater/realtime/SurvTransdataOrientwaterList.vue new file mode 100644 index 0000000..97d1a19 --- /dev/null +++ b/src/views/appmana/hj/orientwater/realtime/SurvTransdataOrientwaterList.vue @@ -0,0 +1,274 @@ + + + + + diff --git a/src/views/appmana/hj/orientwater/realtime/components/SurvTransdataOrientwaterForm.vue b/src/views/appmana/hj/orientwater/realtime/components/SurvTransdataOrientwaterForm.vue new file mode 100644 index 0000000..b8a9552 --- /dev/null +++ b/src/views/appmana/hj/orientwater/realtime/components/SurvTransdataOrientwaterForm.vue @@ -0,0 +1,236 @@ + + + + + diff --git a/src/views/appmana/hj/orientwater/realtime/components/SurvTransdataOrientwaterModal.vue b/src/views/appmana/hj/orientwater/realtime/components/SurvTransdataOrientwaterModal.vue new file mode 100644 index 0000000..e370e5d --- /dev/null +++ b/src/views/appmana/hj/orientwater/realtime/components/SurvTransdataOrientwaterModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/appmana/hj/soil/hisdata/SurvHisdataSoil.api.ts b/src/views/appmana/hj/soil/hisdata/SurvHisdataSoil.api.ts new file mode 100644 index 0000000..6d77d40 --- /dev/null +++ b/src/views/appmana/hj/soil/hisdata/SurvHisdataSoil.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/survHisdataSoil/list', + save='/appmana/survHisdataSoil/add', + edit='/appmana/survHisdataSoil/edit', + deleteOne = '/appmana/survHisdataSoil/delete', + deleteBatch = '/appmana/survHisdataSoil/deleteBatch', + importExcel = '/appmana/survHisdataSoil/importExcel', + exportXls = '/appmana/survHisdataSoil/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/hj/soil/hisdata/SurvHisdataSoil.data.ts b/src/views/appmana/hj/soil/hisdata/SurvHisdataSoil.data.ts new file mode 100644 index 0000000..9b32423 --- /dev/null +++ b/src/views/appmana/hj/soil/hisdata/SurvHisdataSoil.data.ts @@ -0,0 +1,128 @@ +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: '20CM土壤温度(℃)', + align: 'center', + dataIndex: 'dataSoilTemp', + }, + { + title: '20CM土壤湿度(%)', + align: 'center', + dataIndex: 'dataSoilWet', + }, + { + title: '20CM土壤盐分(uS/cm)', + align: 'center', + dataIndex: 'dataSoilDdl', + }, + + // { + // title: '数据类型', + // align: "center", + // dataIndex: 'dataGatherType' + // }, + // { + // title: '转储时间', + // align: "center", + // dataIndex: 'transDate', + // }, +]; + +//查询数据 +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: '土壤温度;106', + field: 'dataSoilTemp', + component: 'Input', + }, + { + label: '土壤湿度;107', + field: 'dataSoilWet', + component: 'Input', + }, + { + label: '土壤盐分;198', + field: 'dataSoilSalt', + component: 'Input', + }, + { + label: '数据更新时间', + field: 'dataDateTime', + component: 'DatePicker', + }, + { + label: '数据类型;realTime=实时,dayTime=日数据,month=月数据,year=年数据', + field: 'dataGatherType', + component: 'Input', + }, + { + label: '转储时间', + field: 'transDate', + component: 'DatePicker', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/appmana/hj/soil/hisdata/SurvHisdataSoilList.vue b/src/views/appmana/hj/soil/hisdata/SurvHisdataSoilList.vue new file mode 100644 index 0000000..5deccf8 --- /dev/null +++ b/src/views/appmana/hj/soil/hisdata/SurvHisdataSoilList.vue @@ -0,0 +1,274 @@ + + + + + diff --git a/src/views/appmana/hj/soil/hisdata/components/SurvHisdataSoilForm.vue b/src/views/appmana/hj/soil/hisdata/components/SurvHisdataSoilForm.vue new file mode 100644 index 0000000..7f7311f --- /dev/null +++ b/src/views/appmana/hj/soil/hisdata/components/SurvHisdataSoilForm.vue @@ -0,0 +1,209 @@ + + + + + diff --git a/src/views/appmana/hj/soil/hisdata/components/SurvHisdataSoilModal.vue b/src/views/appmana/hj/soil/hisdata/components/SurvHisdataSoilModal.vue new file mode 100644 index 0000000..7ec667f --- /dev/null +++ b/src/views/appmana/hj/soil/hisdata/components/SurvHisdataSoilModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/appmana/hj/soil/realtime/SurvTransdataSoil.api.ts b/src/views/appmana/hj/soil/realtime/SurvTransdataSoil.api.ts new file mode 100644 index 0000000..c0c2428 --- /dev/null +++ b/src/views/appmana/hj/soil/realtime/SurvTransdataSoil.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/survTransdataSoil/list', + save='/appmana/survTransdataSoil/add', + edit='/appmana/survTransdataSoil/edit', + deleteOne = '/appmana/survTransdataSoil/delete', + deleteBatch = '/appmana/survTransdataSoil/deleteBatch', + importExcel = '/appmana/survTransdataSoil/importExcel', + exportXls = '/appmana/survTransdataSoil/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/hj/soil/realtime/SurvTransdataSoil.data.ts b/src/views/appmana/hj/soil/realtime/SurvTransdataSoil.data.ts new file mode 100644 index 0000000..ae32a19 --- /dev/null +++ b/src/views/appmana/hj/soil/realtime/SurvTransdataSoil.data.ts @@ -0,0 +1,118 @@ +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: '20CM土壤温度(℃)', + align: 'center', + dataIndex: 'dataSoilTemp', + }, + { + title: '20CM土壤湿度(%)', + align: 'center', + dataIndex: 'dataSoilWet', + }, + { + title: '20CM土壤盐分(uS/cm)', + align: 'center', + dataIndex: 'dataSoilDdl', + }, + + // { + // title: '数据类型', + // 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: '土壤温度;106', + field: 'dataSoilTemp', + component: 'Input', + }, + { + label: '土壤湿度;107', + field: 'dataSoilWet', + component: 'Input', + }, + { + label: '土壤盐分;198', + field: 'dataSoilSalt', + 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/hj/soil/realtime/SurvTransdataSoilList.vue b/src/views/appmana/hj/soil/realtime/SurvTransdataSoilList.vue new file mode 100644 index 0000000..a14174d --- /dev/null +++ b/src/views/appmana/hj/soil/realtime/SurvTransdataSoilList.vue @@ -0,0 +1,274 @@ + + + + + diff --git a/src/views/appmana/hj/soil/realtime/components/SurvTransdataSoilForm.vue b/src/views/appmana/hj/soil/realtime/components/SurvTransdataSoilForm.vue new file mode 100644 index 0000000..55b1fb9 --- /dev/null +++ b/src/views/appmana/hj/soil/realtime/components/SurvTransdataSoilForm.vue @@ -0,0 +1,203 @@ + + + + + diff --git a/src/views/appmana/hj/soil/realtime/components/SurvTransdataSoilModal.vue b/src/views/appmana/hj/soil/realtime/components/SurvTransdataSoilModal.vue new file mode 100644 index 0000000..5ce85b2 --- /dev/null +++ b/src/views/appmana/hj/soil/realtime/components/SurvTransdataSoilModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/appmana/userinfo/UserInfo.data.ts b/src/views/appmana/userinfo/UserInfo.data.ts index a70e76b..4cf4b7a 100644 --- a/src/views/appmana/userinfo/UserInfo.data.ts +++ b/src/views/appmana/userinfo/UserInfo.data.ts @@ -38,12 +38,12 @@ export const columns: BasicColumn[] = [ } } }, - { - title: '头像', - align: "center", - dataIndex: 'avatar', - customRender: render.renderAvatar, - }, + // { + // title: '头像', + // align: "center", + // dataIndex: 'avatar', + // customRender: render.renderAvatar, + // }, ]; //查询数据