diff --git a/src/views/system/cards/cards.vue b/src/views/system/cards/cards.vue new file mode 100644 index 000000000..d57e47feb --- /dev/null +++ b/src/views/system/cards/cards.vue @@ -0,0 +1,172 @@ + + + + + {{ deviceInfo.name }} + + {{ deviceInfo.statusText }} + + + + + 设备ID: + {{ deviceInfo.id }} + + + 类型: + {{ deviceInfo.type }} + + + 位置: + {{ deviceInfo.location }} + + + + + + 启用 + + + 停用 + + + 设置 + + + 详情 + + + + + + + + + diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 70e8dd117..86d8035e1 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -101,6 +101,17 @@ + + + @@ -111,6 +122,7 @@ import { handleTree } from '@/utils/tree' import * as DeptApi from '@/api/system/dept' import DeptForm from './DeptForm.vue' import * as UserApi from '@/api/system/user' +import DeviceCard from '../cards/cards.vue' defineOptions({ name: 'SystemDept' }) @@ -130,6 +142,34 @@ const isExpandAll = ref(true) // 是否展开,默认全部展开 const refreshTable = ref(true) // 重新渲染表格状态 const userList = ref([]) // 用户列表 +// 测试设备数据 +// const deviceList = ref([ +// { +// id: 'Blood001', +// name: '血压仪', +// type: '血压仪', +// location: '天津市/西青区/精武镇', +// status: 'normal', +// statusText: '正常' +// }, +// { +// id: 'Glucose001', +// name: '血糖仪', +// type: '血糖仪', +// location: '河北省/廊坊市/安次区', +// status: 'warning', +// statusText: '警告' +// }, +// { +// id: 'Oxygen001', +// name: '血氧仪', +// type: '血氧仪', +// location: '四川省/绵阳市/涪城区', +// status: 'error', +// statusText: '故障' +// } +// ]) + /** 查询机构列表 */ const getList = async () => { loading.value = true @@ -188,3 +228,12 @@ onMounted(async () => { userList.value = await UserApi.getSimpleUserList() }) + +
+ {{ deviceInfo.statusText }} +
+ 设备ID: + {{ deviceInfo.id }} +
+ 类型: + {{ deviceInfo.type }} +
+ 位置: + {{ deviceInfo.location }} +