diff --git a/src/views/iot/weihu/components/SendOrgDrawer.vue b/src/views/iot/weihu/components/SendOrgDrawer.vue
new file mode 100644
index 0000000..4c16887
--- /dev/null
+++ b/src/views/iot/weihu/components/SendOrgDrawer.vue
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/iot/weihu/index.vue b/src/views/iot/weihu/index.vue
new file mode 100644
index 0000000..5d4211a
--- /dev/null
+++ b/src/views/iot/weihu/index.vue
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+ 选择发往机构
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/iot/weihu/weihu.api.ts b/src/views/iot/weihu/weihu.api.ts
new file mode 100644
index 0000000..08db384
--- /dev/null
+++ b/src/views/iot/weihu/weihu.api.ts
@@ -0,0 +1,20 @@
+import { defHttp } from '/@/utils/http/axios';
+
+enum Api {
+ list = '/iot/weihu/deviceMaintain/list',
+ saveSendOrg = '/iot/weihu/deviceMaintain/saveSendOrg',
+}
+
+/**
+ * 接口
+ * @param params
+ */
+export const list = (params) => defHttp.get({ url: Api.list, params });
+
+/**
+ * 保存
+ * @param params
+ */
+export const saveSendOrg = (params) => {
+ return defHttp.post({ url: Api.saveSendOrg, params });
+};
diff --git a/src/views/iot/weihu/weihu.data.ts b/src/views/iot/weihu/weihu.data.ts
new file mode 100644
index 0000000..593ddc3
--- /dev/null
+++ b/src/views/iot/weihu/weihu.data.ts
@@ -0,0 +1,196 @@
+import {BasicColumn} from '/@/components/Table';
+import {FormSchema} from '/@/components/Table';
+
+//列表数据
+export const columns: BasicColumn[] = [
+ {
+ title: '设备类型',
+ align: "center",
+ dataIndex: 'type'
+ },
+ {
+ title: '设备编码',
+ align: "center",
+ dataIndex: 'deviceId'
+ },
+ {
+ title: 'SN',
+ align: "center",
+ dataIndex: 'sn'
+ },
+ {
+ title: '维修状态',
+ align: "center",
+ dataIndex: 'maintainStatus',
+ customRender:({record})=>{
+ if(record.maintainStatus==0){
+ return "正常";
+ }
+ if(record.maintainStatus==1){
+ return "报修";
+ }
+ if(record.maintainStatus==2){
+ return "报废";
+ }
+ },
+ },
+ {
+ title: '绑定区域',
+ align: "center",
+ dataIndex: 'nuId',
+ },
+ {
+ title: '绑定机构',
+ align: "center",
+ dataIndex: 'orgCode',
+ },
+ {
+ title: '绑定机构名',
+ align: "center",
+ dataIndex: 'departName',
+ },
+ {
+ title: '发往机构名',
+ align: "center",
+ dataIndex: 'reserveDepartName'
+ },
+ {
+ title: '更新时间',
+ align: "center",
+ dataIndex: 'updateDate'
+ },
+];
+
+export const searchFormSchema: FormSchema[] = [
+ {
+ label: '设备类型',
+ field: 'type',
+ component: 'JDictSelectTag',
+ componentProps: {
+ placeholder: '请选择类型',
+ options: [
+ { label: '摄像头', value: '摄像头' },
+ { label: '电表', value: '电表' },
+ { label: '水表', value: '水表' },
+ { label: '温湿度计', value: '温湿度计' },
+ ],
+ },
+ colProps: { span: 4 },
+ },
+ {
+ label: 'SN',
+ field: 'sn',
+ component: 'Input',
+ colProps: { span: 4 },
+ },
+ {
+ label: '维修状态',
+ field: 'maintainStatus',
+ component: 'JDictSelectTag',
+ componentProps: {
+ placeholder: '请选择类型',
+ options: [
+ { label: '正常', value: '0' },
+ { label: '报修', value: '1' },
+ { label: '报废', value: '2' },
+ ],
+ },
+ colProps: { span: 4 },
+ },
+ {
+ label: '在线状态',
+ field: 'online',
+ component: 'JDictSelectTag',
+ componentProps: {
+ placeholder: '请选择状态',
+ options: [
+ { label: '在线', value: 'true' },
+ { label: '离线', value: 'false' },
+ ],
+ },
+ colProps: { span: 4 },
+ },
+ {
+ label: '信号强度',
+ field: 'csq',
+ component: 'JDictSelectTag',
+ componentProps: {
+ placeholder: '请选择强度',
+ options: [
+ { label: '高', value: '1' },
+ { label: '中', value: '2' },
+ { label: '低', value: '3' },
+ ],
+ },
+ colProps: { span: 4 },
+ },
+ {
+ label: '机构',
+ field: 'departId',
+ component: 'JDictSelectTag',
+ componentProps: {
+ placeholder: '请选择机构',
+ dictCode: 'sys_depart,depart_name,id,org_category = 1 order by depart_name asc',
+ },
+ colProps: { span: 6 },
+ },
+ {
+ label: '区域',
+ field: 'nuId',
+ component: 'JDictSelectTag',
+ componentProps: {
+ placeholder: '请选择区域',
+ dictCode: 'nu_base_info,nu_name,id,del_flag = 0 order by nu_name asc',
+ },
+ colProps: { span: 6 },
+ },
+ {
+ label: '发往机构',
+ field: 'reserveDepartId',
+ component: 'JDictSelectTag',
+ componentProps: {
+ placeholder: '请选择区域',
+ dictCode: 'nu_base_info,nu_name,id,del_flag = 0 order by nu_name asc',
+ },
+ colProps: { span: 6 },
+ },
+];
+
+export const formSchema: FormSchema[] = [
+ {
+ label: '',
+ field: 'id',
+ component: 'Input',
+ show: false,
+ },
+ {
+ label: '选择机构',
+ field: 'reserveDepartId',
+ component: 'JSelectDept',
+ componentProps: {
+ //是否开启异步加载
+ sync: false,
+ //是否显示复选框
+ checkable: true,
+ //是否显示选择按钮
+ showButton: false,
+ //父子节点选中状态不再关联
+ checkStrictly: false,
+ //选择框标题
+ modalTitle: '请选择机构',
+ },
+ required: true
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ component: 'InputTextArea',
+ componentProps: {
+ showCount: true,
+ maxlength: 1000,
+ autosize:{
+ minRows: 5
+ },
+ }
+ },
+];