diff --git a/.env.production b/.env.production index 5b68348..67add94 100644 --- a/.env.production +++ b/.env.production @@ -2,7 +2,7 @@ VITE_USE_MOCK = false # 发布路径 -VITE_PUBLIC_PATH = /nu001 +VITE_PUBLIC_PATH = /nu0010507 # 是否启用gzip或brotli压缩 # 选项值: gzip | brotli | none @@ -13,10 +13,10 @@ VITE_BUILD_COMPRESS = 'gzip' VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false #后台接口父地址(必填) -VITE_GLOB_API_URL=/nursing-unit_001 +VITE_GLOB_API_URL=/nursingunit001 #后台接口全路径地址(必填) -VITE_GLOB_DOMAIN_URL=https://www.focusnu.com/nursing-unit_001 +VITE_GLOB_DOMAIN_URL=https://www.focusnu.com/nursingunit001 # 接口父路径前缀 VITE_GLOB_API_URL_PREFIX= diff --git a/src/design/ant/btn.less b/src/design/ant/btn.less index 48d2124..322f693 100644 --- a/src/design/ant/btn.less +++ b/src/design/ant/btn.less @@ -18,6 +18,7 @@ // position: relative; /* needed for pseudo-element */ overflow: hidden; /* clip the animated stripe */ border: 0px; + color: white; // height: 34px; } &.ant-btn-primary:not(.ant-btn-link)::before { diff --git a/src/views/iot/tq/electricity/apilog/ApiLogList.vue b/src/views/iot/tq/electricity/apilog/ApiLogList.vue new file mode 100644 index 0000000..03b2c83 --- /dev/null +++ b/src/views/iot/tq/electricity/apilog/ApiLogList.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/src/views/iot/tq/electricity/apilog/ApiLogModal.vue b/src/views/iot/tq/electricity/apilog/ApiLogModal.vue new file mode 100644 index 0000000..1a198b7 --- /dev/null +++ b/src/views/iot/tq/electricity/apilog/ApiLogModal.vue @@ -0,0 +1,66 @@ + + + + + + diff --git a/src/views/iot/tq/electricity/electricity.api.ts b/src/views/iot/tq/electricity/electricity.api.ts new file mode 100644 index 0000000..8ab7c1d --- /dev/null +++ b/src/views/iot/tq/electricity/electricity.api.ts @@ -0,0 +1,46 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/iot/tq/electricityMeter/list', + eleReset = '/iot/tq/electricityMeter/eleReset', + eleControl = '/iot/tq/electricityMeter/eleControl', + eleRead = '/iot/tq/electricityMeter/eleRead', + getAllMeter = '/iot/tq/common/device/getAllMeter', + getAllCollector = '/iot/tq/common/device/getAllCollector', +} + +/** + * 电表列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 电表清零 + * @param params + */ +export const eleReset = (params?) => defHttp.get({ url: Api.eleReset, params }); + +/** + * 拉合闸 + * @param params + */ +export const eleControl = (params?) => defHttp.get({ url: Api.eleControl, params }); + +/** + * 抄电表 + * @param params + */ +export const eleRead = (params?) => defHttp.get({ url: Api.eleRead, params }); + +/** + * 获取设备信息 + * @param params + */ +export const getAllMeter = (params?) => defHttp.get({ url: Api.getAllMeter, params }); + +/** + * 采集器设备信息 + * @param params + */ +export const getAllCollector = (params?) => defHttp.get({ url: Api.getAllCollector, params }); diff --git a/src/views/iot/tq/electricity/electricity.data.ts b/src/views/iot/tq/electricity/electricity.data.ts new file mode 100644 index 0000000..82bda7a --- /dev/null +++ b/src/views/iot/tq/electricity/electricity.data.ts @@ -0,0 +1,154 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; + +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '机构', + align: "center", + dataIndex: 'departName' + }, + { + title: '护理单元', + align: "center", + dataIndex: 'nuName' + }, + { + title: '表号', + align: "center", + dataIndex: 'address' + }, + { + title: '采集器号', + align: "center", + dataIndex: 'cid' + }, + { + title: '设备状态', + align: "center", + dataIndex: 'relayState', + customRender:({record})=>{ + return record.relayState?(record.relayState=='1'?'合闸':'拉闸'):''; + }, + }, + { + title: '在线状态', + align: "center", + dataIndex: 'online', + customRender:({record})=>{ + return record.online?(record.online=='true'?'在线':'离线'):''; + }, + }, + { + title: '信号强度', + align: "center", + dataIndex: 'csq', + customRender:({record})=>{ + if(record.csq){ + if(record.csq < 10){ + return '低'; + }else if(record.csq > 20){ + return '高'; + }else{ + return '中'; + } + }else{ + return ''; + } + } + }, + { + title: '用电量KWH', + align: "center", + dataIndex: 'eleValue' + }, + { + title: '上次抄表时间', + align: "center", + dataIndex: 'readTime' + }, + { + title: '上次上线时间', + align: "center", + dataIndex: 'connectTime' + }, + { + title: '上次掉线时间', + align: "center", + dataIndex: 'disconnectTime' + }, + { + title: '描述', + align: "center", + dataIndex: 'remark' + }, +]; + +export const searchFormSchema: FormSchema[] = [ + { + label: '机构', + field: 'deviceStatus', + component: 'JDictSelectTag', + componentProps: { + placeholder: '请选择机构', + dictCode: 'sys_depart,depart_name,id,org_category = 1 order by depart_name asc', + }, + colProps: { span: 6 }, + }, + { + label: '护理单元', + field: 'deviceStatus', + component: 'JDictSelectTag', + componentProps: { + placeholder: '请选择护理单元', + dictCode: 'nu_base_info,nu_name,id,del_flag = 0 order by nu_name asc', + }, + colProps: { span: 6 }, + }, + { + label: '表号', + field: 'address', + component: 'Input', + colProps: { span: 6 }, + }, + { + label: '设备状态', + field: 'relayState', + component: 'JDictSelectTag', + componentProps: { + placeholder: '请选择状态', + options: [ + { label: '合闸', value: '1' }, + { label: '拉闸', value: '0' }, + ], + }, + colProps: { span: 6 }, + }, + { + label: '在线状态', + field: 'online', + component: 'JDictSelectTag', + componentProps: { + placeholder: '请选择状态', + options: [ + { label: '在线', value: 'true' }, + { label: '离线', value: 'false' }, + ], + }, + colProps: { span: 6 }, + }, + { + label: '信号强度', + field: 'csq', + component: 'JDictSelectTag', + componentProps: { + placeholder: '请选择强度', + options: [ + { label: '高', value: '1' }, + { label: '中', value: '2' }, + { label: '低', value: '3' }, + ], + }, + colProps: { span: 6 }, + }, +]; diff --git a/src/views/iot/tq/electricity/index.vue b/src/views/iot/tq/electricity/index.vue new file mode 100644 index 0000000..756173a --- /dev/null +++ b/src/views/iot/tq/electricity/index.vue @@ -0,0 +1,218 @@ + + + + diff --git a/src/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLog.api.ts b/src/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLog.api.ts new file mode 100644 index 0000000..66086fb --- /dev/null +++ b/src/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLog.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/nuIotTqApiRequestLog/nuIotTqApiRequestLog/list', + save='/nuIotTqApiRequestLog/nuIotTqApiRequestLog/add', + edit='/nuIotTqApiRequestLog/nuIotTqApiRequestLog/edit', + deleteOne = '/nuIotTqApiRequestLog/nuIotTqApiRequestLog/delete', + deleteBatch = '/nuIotTqApiRequestLog/nuIotTqApiRequestLog/deleteBatch', + importExcel = '/nuIotTqApiRequestLog/nuIotTqApiRequestLog/importExcel', + exportXls = '/nuIotTqApiRequestLog/nuIotTqApiRequestLog/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/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLog.data.ts b/src/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLog.data.ts new file mode 100644 index 0000000..0c6787a --- /dev/null +++ b/src/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLog.data.ts @@ -0,0 +1,72 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '表号', + align: "center", + dataIndex: 'address' + }, + { + title: '类型', + align: "center", + dataIndex: 'type_dictText' + }, + { + title: '请求时的值', + align: "center", + dataIndex: 'requestValue' + }, + { + title: '请求时间', + align: "center", + dataIndex: 'requestTime' + }, + { + title: '请求状态', + align: "center", + dataIndex: 'requestStatus_dictText' + }, + { + title: '请求描述', + align: "center", + dataIndex: 'requestRemark' + }, + { + title: '反馈值', + align: "center", + dataIndex: 'resolveValue' + }, + { + title: '反馈时间', + align: "center", + dataIndex: 'resolveTime' + }, + { + title: '反馈状态', + align: "center", + dataIndex: 'resolveStatus_dictText' + }, + { + title: '反馈描述', + align: "center", + dataIndex: 'resolveRemark' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + address: {title: '表号',order: 0,view: 'text', type: 'string',}, + type: {title: '类型',order: 1,view: 'list', type: 'string',dictCode: 'dbsb_type',}, + requestValue: {title: '请求时的值',order: 2,view: 'text', type: 'string',}, + requestTime: {title: '请求时间',order: 3,view: 'text', type: 'string',}, + requestStatus: {title: '请求状态',order: 4,view: 'list', type: 'string',dictCode: '',}, + requestRemark: {title: '请求描述',order: 5,view: 'text', type: 'string',}, + resolveValue: {title: '反馈值',order: 6,view: 'text', type: 'string',}, + resolveTime: {title: '反馈时间',order: 7,view: 'text', type: 'string',}, + resolveStatus: {title: '反馈状态',order: 8,view: 'list', type: 'string',dictCode: 'dbsb_status',}, + resolveRemark: {title: '反馈描述',order: 9,view: 'text', type: 'string',}, +}; diff --git a/src/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLogList.vue b/src/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLogList.vue new file mode 100644 index 0000000..464a5fe --- /dev/null +++ b/src/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLogList.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/views/iot/tq/nuIotTqApiRequestLog/components/NuIotTqApiRequestLogForm.vue b/src/views/iot/tq/nuIotTqApiRequestLog/components/NuIotTqApiRequestLogForm.vue new file mode 100644 index 0000000..4fe0075 --- /dev/null +++ b/src/views/iot/tq/nuIotTqApiRequestLog/components/NuIotTqApiRequestLogForm.vue @@ -0,0 +1,200 @@ + + + + + diff --git a/src/views/iot/tq/nuIotTqApiRequestLog/components/NuIotTqApiRequestLogModal.vue b/src/views/iot/tq/nuIotTqApiRequestLog/components/NuIotTqApiRequestLogModal.vue new file mode 100644 index 0000000..200466a --- /dev/null +++ b/src/views/iot/tq/nuIotTqApiRequestLog/components/NuIotTqApiRequestLogModal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/src/views/iot/tq/nuIotTqElectricitySyncLog/NuIotTqElectricitySyncLog.api.ts b/src/views/iot/tq/nuIotTqElectricitySyncLog/NuIotTqElectricitySyncLog.api.ts new file mode 100644 index 0000000..ec2b2f8 --- /dev/null +++ b/src/views/iot/tq/nuIotTqElectricitySyncLog/NuIotTqElectricitySyncLog.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/nuIotTqElectricitySyncLog/nuIotTqElectricitySyncLog/list', + save='/nuIotTqElectricitySyncLog/nuIotTqElectricitySyncLog/add', + edit='/nuIotTqElectricitySyncLog/nuIotTqElectricitySyncLog/edit', + deleteOne = '/nuIotTqElectricitySyncLog/nuIotTqElectricitySyncLog/delete', + deleteBatch = '/nuIotTqElectricitySyncLog/nuIotTqElectricitySyncLog/deleteBatch', + importExcel = '/nuIotTqElectricitySyncLog/nuIotTqElectricitySyncLog/importExcel', + exportXls = '/nuIotTqElectricitySyncLog/nuIotTqElectricitySyncLog/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/iot/tq/nuIotTqElectricitySyncLog/NuIotTqElectricitySyncLog.data.ts b/src/views/iot/tq/nuIotTqElectricitySyncLog/NuIotTqElectricitySyncLog.data.ts new file mode 100644 index 0000000..92b0c18 --- /dev/null +++ b/src/views/iot/tq/nuIotTqElectricitySyncLog/NuIotTqElectricitySyncLog.data.ts @@ -0,0 +1,68 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '同步时间', + align: "center", + dataIndex: 'createTime' + }, + { + title: '同步类型', + align: "center", + dataIndex: 'syncType' + }, + { + title: '原机构名称', + align: "center", + dataIndex: 'orgName' + }, + { + title: '原机构编码', + align: "center", + dataIndex: 'orgCode', + defaultHidden: true + }, + { + title: '新机构名称', + align: "center", + dataIndex: 'newOrgName' + }, + { + title: '新机构编码', + align: "center", + dataIndex: 'newOrgCode', + defaultHidden: true + }, + { + title: '状态', + align: "center", + dataIndex: 'status' + }, + { + title: '备注', + align: "center", + dataIndex: 'content' + }, + { + title: '服务类型', + align: "center", + dataIndex: 'serverType' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + mainName: {title: '主表名称',order: 0,view: 'text', type: 'string',}, + syncType: {title: '同步类型',order: 1,view: 'text', type: 'string',}, + orgName: {title: '原机构名称',order: 2,view: 'text', type: 'string',}, + orgCode: {title: '原机构编码',order: 3,view: 'text', type: 'string',}, + newOrgName: {title: '新机构名称',order: 4,view: 'text', type: 'string',}, + newOrgCode: {title: '新机构编码',order: 5,view: 'text', type: 'string',}, + status: {title: '状态',order: 6,view: 'text', type: 'string',}, + content: {title: '备注',order: 7,view: 'text', type: 'string',}, + serverType: {title: '服务类型',order: 8,view: 'text', type: 'string',}, +}; diff --git a/src/views/iot/tq/nuIotTqElectricitySyncLog/NuIotTqElectricitySyncLogList.vue b/src/views/iot/tq/nuIotTqElectricitySyncLog/NuIotTqElectricitySyncLogList.vue new file mode 100644 index 0000000..93b8612 --- /dev/null +++ b/src/views/iot/tq/nuIotTqElectricitySyncLog/NuIotTqElectricitySyncLogList.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/src/views/iot/tq/nuIotTqElectricitySyncLog/NuIotTqElectricitySyncLogListModal.vue b/src/views/iot/tq/nuIotTqElectricitySyncLog/NuIotTqElectricitySyncLogListModal.vue new file mode 100644 index 0000000..131b9a4 --- /dev/null +++ b/src/views/iot/tq/nuIotTqElectricitySyncLog/NuIotTqElectricitySyncLogListModal.vue @@ -0,0 +1,66 @@ + + + + + + diff --git a/src/views/iot/tq/nuIotTqElectricitySyncLog/components/NuIotTqElectricitySyncLogForm.vue b/src/views/iot/tq/nuIotTqElectricitySyncLog/components/NuIotTqElectricitySyncLogForm.vue new file mode 100644 index 0000000..8606a52 --- /dev/null +++ b/src/views/iot/tq/nuIotTqElectricitySyncLog/components/NuIotTqElectricitySyncLogForm.vue @@ -0,0 +1,187 @@ + + + + + diff --git a/src/views/iot/tq/nuIotTqElectricitySyncLog/components/NuIotTqElectricitySyncLogModal.vue b/src/views/iot/tq/nuIotTqElectricitySyncLog/components/NuIotTqElectricitySyncLogModal.vue new file mode 100644 index 0000000..7d1c8ec --- /dev/null +++ b/src/views/iot/tq/nuIotTqElectricitySyncLog/components/NuIotTqElectricitySyncLogModal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/src/views/utils/departUtils/DepartUtils.api.ts b/src/views/utils/departUtils/DepartUtils.api.ts new file mode 100644 index 0000000..a13534d --- /dev/null +++ b/src/views/utils/departUtils/DepartUtils.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/sys/sysDepart/getDepartServerUrl', + save='/sys/sysDepart/add', + edit='/sys/sysDepart/edit', + deleteOne = '/sys/sysDepart/delete', + deleteBatch = '/sys/sysDepart/deleteBatch', + importExcel = '/sys/sysDepart/importExcel', + exportXls = '/sys/sysDepart/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/utils/departUtils/DepartUtils.data.ts b/src/views/utils/departUtils/DepartUtils.data.ts new file mode 100644 index 0000000..7c8600e --- /dev/null +++ b/src/views/utils/departUtils/DepartUtils.data.ts @@ -0,0 +1,60 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '机构/部门名称', + align: "center", + dataIndex: 'departName' + }, + { + title: '机构编码', + align: "center", + dataIndex: 'orgCode' + }, + { + title: '运营开始时间', + align: "center", + dataIndex: 'operationStartTime' + }, + { + title: '运营到期时间', + align: "center", + dataIndex: 'operationEndTime' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + parentId: {title: '父机构ID',order: 0,view: 'text', type: 'string',}, + departName: {title: '机构/部门名称',order: 1,view: 'text', type: 'string',}, + departNameEn: {title: '英文名',order: 2,view: 'text', type: 'string',}, + departNameAbbr: {title: '缩写',order: 3,view: 'text', type: 'string',}, + departOrder: {title: '排序',order: 4,view: 'number', type: 'number',}, + description: {title: '描述',order: 5,view: 'text', type: 'string',}, + orgCategory: {title: '机构类别 1机构,2区域',order: 6,view: 'text', type: 'string',}, + orgType: {title: '机构类型 1一级部门 2子部门',order: 7,view: 'text', type: 'string',}, + orgCode: {title: '机构编码',order: 8,view: 'text', type: 'string',}, + platType: {title: '机构对应平台类型 是否是试验机构(数据字典iz_test_site) ',order: 9,view: 'text', type: 'string',}, + operationStartTime: {title: '运营开始时间',order: 10,view: 'datetime', type: 'string',}, + operationEndTime: {title: '运营到期时间',order: 11,view: 'datetime', type: 'string',}, + contractStartTime: {title: '合同开始时间',order: 12,view: 'datetime', type: 'string',}, + contractEndTime: {title: '合同到期时间',order: 13,view: 'datetime', type: 'string',}, + mobile: {title: '手机号',order: 14,view: 'text', type: 'string',}, + fax: {title: '传真',order: 15,view: 'text', type: 'string',}, + address: {title: '地址',order: 16,view: 'text', type: 'string',}, + memo: {title: '备注',order: 17,view: 'text', type: 'string',}, + status: {title: '状态(1启用,0不启用)',order: 18,view: 'text', type: 'string',}, + qywxIdentifier: {title: '对接企业微信的ID',order: 20,view: 'text', type: 'string',}, + dingIdentifier: {title: '对接钉钉部门的ID',order: 21,view: 'text', type: 'string',}, + tenantId: {title: '租户ID',order: 22,view: 'number', type: 'number',}, + izLeaf: {title: '是否有叶子节点: 1是0否',order: 23,view: 'number', type: 'number',}, + serverUrl: {title: '服务器后台接口地址',order: 24,view: 'text', type: 'string',}, + picUrl: {title: '机构图片',order: 25,view: 'text', type: 'string',}, + province: {title: '省份 sys_category.id',order: 26,view: 'text', type: 'string',}, + city: {title: '城市 sys_category.id',order: 27,view: 'text', type: 'string',}, + district: {title: '区域 sys_category.id',order: 28,view: 'text', type: 'string',}, +}; diff --git a/src/views/utils/departUtils/DepartUtilsList.vue b/src/views/utils/departUtils/DepartUtilsList.vue new file mode 100644 index 0000000..e9efbf0 --- /dev/null +++ b/src/views/utils/departUtils/DepartUtilsList.vue @@ -0,0 +1,181 @@ + + + + + diff --git a/src/views/utils/departUtils/DepartUtilsModal.vue b/src/views/utils/departUtils/DepartUtilsModal.vue new file mode 100644 index 0000000..46972ba --- /dev/null +++ b/src/views/utils/departUtils/DepartUtilsModal.vue @@ -0,0 +1,66 @@ + + + + + + diff --git a/src/views/utils/nuUtils/HldyUtils.api.ts b/src/views/utils/nuUtils/HldyUtils.api.ts new file mode 100644 index 0000000..877293c --- /dev/null +++ b/src/views/utils/nuUtils/HldyUtils.api.ts @@ -0,0 +1,15 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/iot/cameraInfo/getNuBaseList', +} + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + diff --git a/src/views/utils/nuUtils/HldyUtils.data.ts b/src/views/utils/nuUtils/HldyUtils.data.ts new file mode 100644 index 0000000..d96fdd0 --- /dev/null +++ b/src/views/utils/nuUtils/HldyUtils.data.ts @@ -0,0 +1,55 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '护理单元名称', + align: "center", + dataIndex: 'nuName' + }, + { + title: '编码', + align: "center", + dataIndex: 'code' + }, + { + title: '创建时间', + align: "center", + dataIndex: 'createTime' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + parentId: {title: '父机构ID',order: 0,view: 'text', type: 'string',}, + departName: {title: '机构/部门名称',order: 1,view: 'text', type: 'string',}, + departNameEn: {title: '英文名',order: 2,view: 'text', type: 'string',}, + departNameAbbr: {title: '缩写',order: 3,view: 'text', type: 'string',}, + departOrder: {title: '排序',order: 4,view: 'number', type: 'number',}, + description: {title: '描述',order: 5,view: 'text', type: 'string',}, + orgCategory: {title: '机构类别 1机构,2区域',order: 6,view: 'text', type: 'string',}, + orgType: {title: '机构类型 1一级部门 2子部门',order: 7,view: 'text', type: 'string',}, + orgCode: {title: '机构编码',order: 8,view: 'text', type: 'string',}, + platType: {title: '机构对应平台类型 是否是试验机构(数据字典iz_test_site) ',order: 9,view: 'text', type: 'string',}, + operationStartTime: {title: '运营开始时间',order: 10,view: 'datetime', type: 'string',}, + operationEndTime: {title: '运营到期时间',order: 11,view: 'datetime', type: 'string',}, + contractStartTime: {title: '合同开始时间',order: 12,view: 'datetime', type: 'string',}, + contractEndTime: {title: '合同到期时间',order: 13,view: 'datetime', type: 'string',}, + mobile: {title: '手机号',order: 14,view: 'text', type: 'string',}, + fax: {title: '传真',order: 15,view: 'text', type: 'string',}, + address: {title: '地址',order: 16,view: 'text', type: 'string',}, + memo: {title: '备注',order: 17,view: 'text', type: 'string',}, + status: {title: '状态(1启用,0不启用)',order: 18,view: 'text', type: 'string',}, + qywxIdentifier: {title: '对接企业微信的ID',order: 20,view: 'text', type: 'string',}, + dingIdentifier: {title: '对接钉钉部门的ID',order: 21,view: 'text', type: 'string',}, + tenantId: {title: '租户ID',order: 22,view: 'number', type: 'number',}, + izLeaf: {title: '是否有叶子节点: 1是0否',order: 23,view: 'number', type: 'number',}, + serverUrl: {title: '服务器后台接口地址',order: 24,view: 'text', type: 'string',}, + picUrl: {title: '机构图片',order: 25,view: 'text', type: 'string',}, + province: {title: '省份 sys_category.id',order: 26,view: 'text', type: 'string',}, + city: {title: '城市 sys_category.id',order: 27,view: 'text', type: 'string',}, + district: {title: '区域 sys_category.id',order: 28,view: 'text', type: 'string',}, +}; diff --git a/src/views/utils/nuUtils/HldyUtilsList.vue b/src/views/utils/nuUtils/HldyUtilsList.vue new file mode 100644 index 0000000..2c54c64 --- /dev/null +++ b/src/views/utils/nuUtils/HldyUtilsList.vue @@ -0,0 +1,174 @@ + + + + + diff --git a/src/views/utils/nuUtils/HldyUtilsModal.vue b/src/views/utils/nuUtils/HldyUtilsModal.vue new file mode 100644 index 0000000..751ad0d --- /dev/null +++ b/src/views/utils/nuUtils/HldyUtilsModal.vue @@ -0,0 +1,66 @@ + + + + + +