diff --git a/src/views/iot/ConfigLog/SyncConfigLogList.vue b/src/views/iot/ConfigLog/SyncConfigLogList.vue new file mode 100644 index 0000000..d6c872f --- /dev/null +++ b/src/views/iot/ConfigLog/SyncConfigLogList.vue @@ -0,0 +1,131 @@ + + + + + diff --git a/src/views/iot/ConfigLog/configlog.api.ts b/src/views/iot/ConfigLog/configlog.api.ts new file mode 100644 index 0000000..95d6de4 --- /dev/null +++ b/src/views/iot/ConfigLog/configlog.api.ts @@ -0,0 +1,12 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + + list = '/iot/syncConfigLog/list', + +} +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); diff --git a/src/views/iot/ConfigLog/configlog.data.ts b/src/views/iot/ConfigLog/configlog.data.ts new file mode 100644 index 0000000..d6caa77 --- /dev/null +++ b/src/views/iot/ConfigLog/configlog.data.ts @@ -0,0 +1,77 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; + +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '机构编码', + align: "center", + dataIndex: 'orgCode', + width: 80 + }, + { + title: '机构名称', + align: "center", + dataIndex: 'orgName', + width: 220 + }, + { + title: '操作', + align: "center", + dataIndex: 'syncType', + width: 80 + }, + { + title: '同步状态', + align: "center", + dataIndex: 'status', + width: 80 + }, + { + title: '服务类型', + align: "center", + dataIndex: 'serverType', + width: 80 + }, + { + title: '创建时间', + align: "center", + dataIndex: 'createTime', + width: 160 + }, + { + title: '更新时间', + align: "center", + dataIndex: 'updateTime', + width: 160 + }, + { + title: '备注', + align: "center", + dataIndex: 'content' + }, +]; + +export const formSchema: FormSchema[] = [ + { + label: '机构编码', + field: 'orgCode', + component: 'Input', + componentProps: { + placeholder: '请输入机构编码', + }, + }, + { + label: '同步状态', + field: 'status', + component: 'JDictSelectTag', + componentProps: { + placeholder: '请选择状态', + options: [ + { label: '同步成功', value: '同步成功' }, + { label: '同步中', value: '同步中' }, + { label: '同步失败', value: '同步失败' }, + ], + }, + }, +]; diff --git a/src/views/iot/tplink/config/index.vue b/src/views/iot/tplink/config/index.vue index a54476e..3857a34 100644 --- a/src/views/iot/tplink/config/index.vue +++ b/src/views/iot/tplink/config/index.vue @@ -17,7 +17,7 @@ - + @@ -34,7 +34,8 @@ import { list } from './config.api'; import { useUserStore } from '/@/store/modules/user'; import { useDrawer } from "@/components/Drawer"; import { useRouter } from 'vue-router'; -import ConfigDrawer from './components/ConfigDrawer.vue' +import ConfigDrawer from './components/ConfigDrawer.vue'; +import SyncConfigLogList from '@/views/iot/ConfigLog/SyncConfigLogList.vue'; //注册drawer const [registerDrawer, { openDrawer }] = useDrawer(); @@ -42,6 +43,7 @@ let router = useRouter(); const formRef = ref(); const tableRef = ref(); const isShow = ref(false); +const serverType = ref('摄像头'); const queryParam = reactive({}); const userStore = useUserStore(); //注册table数据 diff --git a/src/views/iot/tq/config/index.vue b/src/views/iot/tq/config/index.vue index 5e4d0b2..1786caa 100644 --- a/src/views/iot/tq/config/index.vue +++ b/src/views/iot/tq/config/index.vue @@ -17,7 +17,7 @@ - + @@ -34,12 +34,14 @@ import { list } from './config.api'; import { useUserStore } from '/@/store/modules/user'; import { useDrawer } from "@/components/Drawer"; import { useRouter } from 'vue-router'; -import ConfigDrawer from './components/ConfigDrawer.vue' +import ConfigDrawer from './components/ConfigDrawer.vue'; +import SyncConfigLogList from '@/views/iot/ConfigLog/SyncConfigLogList.vue'; //注册drawer const [registerDrawer, { openDrawer }] = useDrawer(); let router = useRouter(); const formRef = ref(); +const serverType = ref('电水表'); const queryParam = reactive({}); const userStore = useUserStore(); //注册table数据 diff --git a/src/views/iot/yiweilian/config/index.vue b/src/views/iot/yiweilian/config/index.vue index 3eb8cc7..d0159a9 100644 --- a/src/views/iot/yiweilian/config/index.vue +++ b/src/views/iot/yiweilian/config/index.vue @@ -17,7 +17,7 @@ - + @@ -35,6 +35,7 @@ import { useUserStore } from '/@/store/modules/user'; import { useDrawer } from "@/components/Drawer"; import { useRouter } from 'vue-router'; import ConfigDrawer from './components/ConfigDrawer.vue' +import SyncConfigLogList from '@/views/iot/ConfigLog/SyncConfigLogList.vue'; //注册drawer const [registerDrawer, { openDrawer }] = useDrawer(); @@ -42,6 +43,7 @@ let router = useRouter(); const formRef = ref(); const tableRef = ref(); const isShow = ref(false); +const serverType = ref('温湿度计'); const queryParam = reactive({}); const userStore = useUserStore(); //注册table数据