diff --git a/src/views/dataBasePlatform/dataService/apiManagement/index.vue b/src/views/dataBasePlatform/dataService/apiManagement/index.vue index 5a5903a..eba8b89 100644 --- a/src/views/dataBasePlatform/dataService/apiManagement/index.vue +++ b/src/views/dataBasePlatform/dataService/apiManagement/index.vue @@ -3,15 +3,37 @@
API管理
- 接口目录 + +
接口目录
+ + + + + + + + + +
- - - - + +
+ API名称 + + + +
+
+ 状态 + + + +
查询 @@ -38,18 +60,27 @@
{{ stationType.find(item => item.value == row.p1)?.label || row.p1 }}
--> - - + + + + + + + + - + @@ -151,22 +182,17 @@ { id: 1, value: 1, - label: '正常', + label: '待上线', }, { id: 2, value: 2, - label: '损坏', + label: '已上线', }, { id: 3, value: 3, - label: '使用中', - }, - { - id: 4, - value: 4, - label: '在建', + label: '已下线', }, ]); const stateType1 = ref([ @@ -231,6 +257,60 @@ const { dialogConfig, addForm, rules } = toRefs(dataList); +const searchTree = ref(''); +const treeData = [ + { + label: '排水', + children: [ + { + label: 'PS001', + children: [ + // { + // label: 'Level three 1-1-1', + // }, + ], + }, + { + label: 'PS002', + children: [ + // { + // label: 'Level three 1-1-1', + // }, + ], + }, + ], + }, + { + label: '桥梁', + children: [ + { + label: 'QL001', + children: [ + // { + // label: 'Level three 2-1-1', + // }, + ], + }, + { + label: 'QL002', + children: [ + // { + // label: 'Level three 2-2-1'1, + // }, + ], + }, + ], + }, +]; + +const defaultProps = { + children: 'children', + label: 'label', +}; + +const handleNodeClick = data => { + console.log(data); +}; // 新增和编辑 const addInfo = row => { dialogConfig.value.open = true; @@ -298,13 +378,13 @@ date: '2022-06-01 12:00:00', name: '桥梁名称', p1: '1', - p2: '2022-06-01 12:00:00', - p3: '2022-06-01 12:00:00', + p2: '001', + p3: '002', p4: 1, p5: 1, - p6: '2022-06-01 12:00:00', + p6: '12', p7: '34', - p8: '124', + p8: '2022-06-01 12:00:00', p9: '', info: '', handlePicList: [], @@ -315,13 +395,13 @@ date: '2022-06-01 12:00:00', name: '桥梁名称', p1: '1', - p2: '2022-06-01 12:00:00', - p3: '2022-06-01 12:00:00', + p2: '20', + p3: '2022', p4: 1, p5: 1, - p6: '2022-06-01 12:00:00', + p6: '202', p7: '34', - p8: '124', + p8: '2022-06-01 12:00:00', p9: '', info: '', handlePicList: [], @@ -366,6 +446,30 @@ align-items: center; justify-content: space-between; margin-bottom: 10px; + .dataLeft { + display: flex; + .dataBox { + margin-right: 20px; + } + } + } + .leftContent { + border-right: 1px solid #ccc; + background-color: #fff; + padding: 5px 10px; + margin: 0; + .leftTitle { + text-align: center; + border: 1px solid #ccc; + border-radius: 10px; + margin-bottom: 10px; + } + .treeBox { + // border: 1px solid red; + margin-top: 10px; + height: calc(100% - 90px); + overflow-y: auto; + } } } }