From a9f57ac414d427ae925166b7ac8470f6e12eda4e Mon Sep 17 00:00:00 2001
From: easy <1358086367@qq.com>
Date: Thu, 12 Jan 2023 18:30:07 +0800
Subject: [PATCH] =?UTF-8?q?update:=20=E9=A6=96=E9=A1=B5=E6=A0=B7=E5=BC=8F?=
=?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/menu.ts | 5 +++
src/views/home/components/StepCard.vue | 5 +++
.../components/dialogs/FuncTestDialog.vue | 34 +++++++++++--------
src/views/home/index.vue | 4 +--
.../system/apiPage/components/ApiDoes.vue | 10 +++---
5 files changed, 34 insertions(+), 24 deletions(-)
diff --git a/src/router/menu.ts b/src/router/menu.ts
index 6936fb5f..44b0662d 100644
--- a/src/router/menu.ts
+++ b/src/router/menu.ts
@@ -87,6 +87,11 @@ export default [
path: '/link/accessConfig/detail/add',
component: () => import('@/views/link/AccessConfig/Detail/index.vue')
},
+ // system 系统管理
+ {
+ path:'/system/api',
+ components: ()=>import('@/views/system/apiPage/index')
+ },
// 初始化
{
path: '/init-home',
diff --git a/src/views/home/components/StepCard.vue b/src/views/home/components/StepCard.vue
index a2c3883f..ccc87a5d 100644
--- a/src/views/home/components/StepCard.vue
+++ b/src/views/home/components/StepCard.vue
@@ -25,6 +25,10 @@
:open-number="openAccess"
@confirm="againJumpPage"
/>
+
@@ -35,6 +39,7 @@ import { QuestionCircleOutlined } from '@ant-design/icons-vue';
import { message } from 'ant-design-vue';
import AccessMethodDialog from './dialogs/AccessMethodDialog.vue';
+import FuncTestDialog from './dialogs/FuncTestDialog.vue';
import { recommendList } from '../index';
diff --git a/src/views/home/components/dialogs/FuncTestDialog.vue b/src/views/home/components/dialogs/FuncTestDialog.vue
index dc7f1b62..9f285087 100644
--- a/src/views/home/components/dialogs/FuncTestDialog.vue
+++ b/src/views/home/components/dialogs/FuncTestDialog.vue
@@ -3,7 +3,7 @@
-
+
-
+
搜索
-
+
重置
-
-
-
+
- 取消
- 确认
+ 取消
+ 确认
@@ -65,10 +62,10 @@ const handleOk = () => {
watch(
() => props.openNumber,
() => {
+ visible.value = true;
clickReset();
getOptions();
clickSearch();
- visible.value = true;
},
);
@@ -122,4 +119,11 @@ const selectItem: deviceInfo | {} = {};
const getList = () => {};
-
+
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index b0229d95..7129a745 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -6,8 +6,7 @@
-
-
+
@@ -17,7 +16,6 @@ import InitHome from './components/InitHome/index.vue';
import DeviceHome from './components/DeviceHome/index.vue';
import DevOpsHome from './components/DevOpsHome/index.vue';
import ComprehensiveHome from './components/ComprehensiveHome/index.vue';
-import ApiPage from '@/views/system/apiPage/index.vue'
diff --git a/src/views/system/apiPage/components/ApiDoes.vue b/src/views/system/apiPage/components/ApiDoes.vue
index 6935dd3b..85dfc5e0 100644
--- a/src/views/system/apiPage/components/ApiDoes.vue
+++ b/src/views/system/apiPage/components/ApiDoes.vue
@@ -28,7 +28,7 @@
model="TABLE"
>
- {{ slotProps.row.required + '' }}
+ {{ Boolean(slotProps.row.required) + '' }}
{{ slotProps.row.schema.type }}
@@ -178,7 +178,7 @@ const respParamsCard = reactive({
columns: [
{
title: '参数名称',
- dataIndex: 'name',
+ dataIndex: 'paramsName',
},
{
title: '参数说明',
@@ -186,7 +186,7 @@ const respParamsCard = reactive({
},
{
title: '类型',
- dataIndex: 'type',
+ dataIndex: 'paramsType',
},
],
tableData: [],
@@ -201,11 +201,9 @@ const respParamsCard = reactive({
const schemaName = responseStatusCard.tableData.find(
(item: any) => item.code === code,
).schema;
- console.log(1212, schemaName);
const schemas = toRaw(props.schemas);
function findData(schemaName: string) {
- if (!schemaName || schemas[schemaName]) {
- console.log(schemaName, schemas);
+ if (!schemaName || !schemas[schemaName]) {
return [];
}
const result: schemaObjType[] = [];