diff --git a/Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj b/Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj
index fb60b6f8..3d3c6e48 100644
--- a/Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj
+++ b/Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj
@@ -28,9 +28,9 @@
-
-
-
+
+
+
@@ -73,8 +73,8 @@
-
-
+
+
diff --git a/Web/openapi-ts-request.config.ts b/Web/openapi-ts-request.config.ts
new file mode 100644
index 00000000..816f66d6
--- /dev/null
+++ b/Web/openapi-ts-request.config.ts
@@ -0,0 +1,7 @@
+import type { GenerateServiceProps } from 'openapi-ts-request';
+
+export default {
+ schemaPath: 'http://localhost:5005/swagger/Default/swagger.json', // swagger.json 文件路径
+ serversPath: './src/apis', // 接口文件路径
+ requestLibPath: 'import request from "/@/utils/axios-utils"', // 请求方法路径
+} as GenerateServiceProps;
diff --git a/Web/package.json b/Web/package.json
index 00dd4ab0..9c5760ce 100644
--- a/Web/package.json
+++ b/Web/package.json
@@ -14,7 +14,8 @@
"build-api": "cd api_build/ && build.bat",
"build-approvalFlow-api": "cd api_build/ && build.bat approvalFlow",
"build-dingTalk-api": "cd api_build/ && build.bat dingTalk",
- "build-goView-api": "cd api_build/ && build.bat goView"
+ "build-goView-api": "cd api_build/ && build.bat goView",
+ "openapi": "openapi-ts"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
@@ -100,6 +101,7 @@
"eslint-plugin-vue": "^10.0.0",
"globals": "^16.0.0",
"less": "^4.2.2",
+ "openapi-ts-request": "^1.2.0",
"prettier": "^3.5.3",
"rollup-plugin-visualizer": "^5.14.0",
"sass": "^1.86.0",
diff --git a/Web/src/views/system/org/component/editOrg.vue b/Web/src/views/system/org/component/editOrg.vue
index 069c21fd..3398ceb5 100644
--- a/Web/src/views/system/org/component/editOrg.vue
+++ b/Web/src/views/system/org/component/editOrg.vue
@@ -97,7 +97,6 @@ const cascaderProps = { checkStrictly: true, emitPath: false, value: 'id', label
onMounted(async () => {
let resDicData = await getAPI(SysDictDataApi).apiSysDictDataDataListCodeGet('org_type');
state.orgTypeList = resDicData.data.result;
- console.log(state.orgTypeList);
});
// 打开弹窗
diff --git a/Web/src/views/system/org/index.vue b/Web/src/views/system/org/index.vue
index 00e2d106..867ed1cc 100644
--- a/Web/src/views/system/org/index.vue
+++ b/Web/src/views/system/org/index.vue
@@ -9,19 +9,19 @@
-
+
-
+
-
+
-
+