houyaf 3 anos atrás
pai
commit
897bfda468

+ 3 - 15
src/router/modules/api.ts

@@ -10,7 +10,7 @@ const routes: RouteRecordRaw[] = [
     name: 'api',
     meta: {
       title: 'API管理',
-      icon: 'ri:function-line',
+      icon: 'ep:grape',
     },
     children: [
       {
@@ -24,18 +24,6 @@ const routes: RouteRecordRaw[] = [
           activeMenu: '/api',
         },
       },
-      {
-        path: 'api/trans/:moduleId/:apiId',
-        name: 'apiTrans',
-        component: () => import('@/views/paas/atu/index.vue'),
-        meta: {
-          title: 'Api事务配置',
-          sidebar: false,
-          activeMenu: '/api',
-          cache: true,
-          noCache: 'apiTrans',
-        },
-      },
     ],
   },
   {
@@ -44,8 +32,8 @@ const routes: RouteRecordRaw[] = [
     redirect: '/api/log/index',
     name: 'api_log',
     meta: {
-      title: '调用日志',
-      icon: 'bx:bxs-component',
+      title: 'API日志',
+      icon: 'ep:hot-water',
     },
     children: [
       {

+ 2 - 2
src/router/modules/biz.ts

@@ -10,7 +10,7 @@ const routes: RouteRecordRaw[] = [
     name: 'biz_object',
     meta: {
       title: '业务模型',
-      icon: 'ri:function-line',
+      icon: 'ep:element-plus',
     },
     children: [
       {
@@ -57,7 +57,7 @@ const routes: RouteRecordRaw[] = [
     name: 'rule',
     meta: {
       title: '业务规则',
-      icon: 'ep:element-plus',
+      icon: 'ep:promotion',
     },
     children: [
       {

+ 1 - 1
src/router/modules/database.ts

@@ -33,7 +33,7 @@ const routes: RouteRecordRaw[] = [
     name: 'database_access',
     meta: {
       title: '数据库接入',
-      icon: 'ep:coin',
+      icon: 'ep:link',
     },
     children: [
       {

+ 3 - 3
src/router/modules/model.ts

@@ -9,8 +9,8 @@ const routes: RouteRecordRaw[] = [
     redirect: '/model/index',
     name: 'model',
     meta: {
-      title: '模型管理',
-      icon: 'ep:coin',
+      title: '数据模型',
+      icon: 'bx:bxs-component',
     },
     children: [
       {
@@ -29,7 +29,7 @@ const routes: RouteRecordRaw[] = [
         name: 'modelObjectEdit',
         component: () => import('@/views/model/attr/index.vue'),
         meta: {
-          title: '对象编辑',
+          title: '数据对象',
           sidebar: false,
           activeMenu: '/model',
           cache: true,

+ 3 - 3
src/router/routes.ts

@@ -64,7 +64,7 @@ const systemRoutes: RouteRecordRaw[] = [
       },
       {
         path: 'personal/setting',
-        name: 'profileSetting',
+        name: 'personalSetting',
         component: () => import('@/views/personal/setting.vue'),
         meta: {
           title: '个人设置',
@@ -116,7 +116,7 @@ const asyncRoutes: Route.recordMainRaw[] = [
   },
   {
     meta: {
-      title: '规则',
+      title: '业务',
       icon: 'ep:element-plus',
     },
     children: [
@@ -126,7 +126,7 @@ const asyncRoutes: Route.recordMainRaw[] = [
   {
     meta: {
       title: 'API',
-      icon: 'ep:cpu',
+      icon: 'ep:grape',
     },
     children: [
       ...ApiEntries,

+ 7 - 6
src/views/api/api/components/Module.vue

@@ -68,6 +68,7 @@ function onCancel() {
 function resetFormData() {
   state.formData = {
     moduleId: -1,
+    moduleCode: '',
     moduleTitle: '',
     moduleDesc: '',
     isFixed: 0,
@@ -77,13 +78,13 @@ function resetFormData() {
 defineExpose({
   showAddModule() {
     resetFormData()
-    state.title = '新增API模块'
+    state.title = '新增模块'
     state.actionType = 1
     state.dialogVisible = true
   },
   showEditModule(moduleId: number) {
     resetFormData()
-    state.title = '编辑API模块'
+    state.title = '编辑模块'
     state.actionType = 2
     state.dialogVisible = true
     getData(moduleId)
@@ -96,16 +97,16 @@ defineExpose({
     <el-dialog v-model="state.dialogVisible" :title="state.title" width="600px" :close-on-click-modal="false" append-to-body destroy-on-close>
       <div v-loading="state.loading">
         <el-form ref="formRef" :model="state.formData" :rules="formRules" label-width="120px" label-suffix=":">
-          <el-form-item label="API模块名称" prop="moduleTitle">
-            <el-input v-model="state.formData.moduleTitle" placeholder="请输入标题" />
+          <el-form-item label="模块名称" prop="moduleTitle">
+            <el-input v-model="state.formData.moduleTitle" placeholder="请输入模块名称" />
           </el-form-item>
 
-          <el-form-item label="代码" prop="moduleCode">
+          <el-form-item label="模块代码" prop="moduleCode">
             <el-input v-model="state.formData.moduleCode" placeholder="请输入模块代码" />
           </el-form-item>
 
           <el-form-item label="简要说明" prop="moduleDesc">
-            <el-input v-model="state.formData.moduleDesc" type="textarea" rows="10" placeholder="请输入标题" />
+            <el-input v-model="state.formData.moduleDesc" type="textarea" rows="10" placeholder="请输入简要说明" />
           </el-form-item>
         </el-form>
       </div>

+ 3 - 3
src/views/api/api/index.vue

@@ -189,7 +189,7 @@ async function onChangeStatus(row: { moduleId: number; apiId: number; status: nu
   <div class="absolute-container">
     <tool-header title="API管理">
       <template #right>
-        <el-button plain @click="onModuleAdd">
+        <el-button type="primary" plain @click="onModuleAdd">
           <template #icon>
             <el-icon>
               <svg-icon name="i-ep:plus" />
@@ -201,7 +201,7 @@ async function onChangeStatus(row: { moduleId: number; apiId: number; status: nu
     </tool-header>
 
     <div class="page-main">
-      <LayoutContainer left-side-width="300px" hide-left-side-toggle>
+      <LayoutContainer left-side-width="250px" hide-left-side-toggle>
         <template #leftSide>
           <el-scrollbar class="tree">
             <ElTree ref="leftTreeRef" :data="state.modules" default-expand-all node-key="moduleId" @node-click="onTreeNodeClick">
@@ -251,7 +251,7 @@ async function onChangeStatus(row: { moduleId: number; apiId: number; status: nu
                 </template>
               </el-button>
 
-              <el-button plain size="default" @click.stop="onApiAdd">
+              <el-button type="primary" plain size="default" @click.stop="onApiAdd">
                 <template #icon>
                   <el-icon>
                     <svg-icon name="i-ep:plus" />

+ 3 - 3
src/views/api/log/index.vue

@@ -47,7 +47,7 @@ const getModuleData = async () => {
   })
   state.modules = [
     {
-      label: 'API模块列表',
+      label: '功能模块',
       isLeaf: false,
       moduleId: -1,
       children,
@@ -104,9 +104,9 @@ const onReqDel = async (data: { apiTitle: any; reqId: number }) => {
 
 <template>
   <div class="absolute-container">
-    <page-header title="Api日志管理" content="Api日志管理" />
+    <tool-header title="Api日志" />
     <div class="page-main">
-      <LayoutContainer left-side-width="300px" hide-left-side-toggle>
+      <LayoutContainer left-side-width="250px" hide-left-side-toggle>
         <template #leftSide>
           <el-scrollbar class="tree">
             <ElTree ref="leftTreeRef" :data="state.modules" default-expand-all node-key="moduleId" @node-click="onTreeNodeClick">

+ 7 - 7
src/views/biz/object/index.vue

@@ -66,7 +66,7 @@ const getBizData = async () => {
   })
   state.treeData = [
     {
-      label: '所有对象',
+      label: '业务模型库',
       isLeaf: false,
       bizId: -1,
       children,
@@ -206,21 +206,21 @@ const onObjectDelete = (row: any) => {
 
 <template>
   <div class="absolute-container">
-    <tool-header title="业务对象">
+    <tool-header title="业务模型">
       <template #right>
-        <el-button plain @click="onBizAdd">
+        <el-button type="primary" plain @click="onBizAdd">
           <template #icon>
             <el-icon>
               <svg-icon name="i-ep:plus" />
             </el-icon>
           </template>
-          新增业务
+          新增业务模型
         </el-button>
       </template>
     </tool-header>
 
     <div class="page-main">
-      <LayoutContainer left-side-width="300px" hide-left-side-toggle>
+      <LayoutContainer left-side-width="250px" hide-left-side-toggle>
         <template #leftSide>
           <el-scrollbar class="tree">
             <ElTree ref="leftTreeRef" :data="state.treeData" default-expand-all node-key="bizId" @node-click="onTreeNodeClick">
@@ -271,13 +271,13 @@ const onObjectDelete = (row: any) => {
                 </template>
               </el-button>
 
-              <el-button plain size="default" @click.stop="onObjectAdd">
+              <el-button type="primary" plain size="default" @click.stop="onObjectAdd">
                 <template #icon>
                   <el-icon>
                     <svg-icon name="i-ep:plus" />
                   </el-icon>
                 </template>
-                新增对象
+                新增业务对象
               </el-button>
             </template>
           </tool-bar>

+ 2 - 8
src/views/biz/rule/index.vue

@@ -28,14 +28,8 @@ onMounted(() => {
 </script>
 
 <template>
-  <div :class="{ 'absolute-container': state.tableAutoHeight }">
-    <page-header title="业务规则">
-      <template #content>
-        <div>
-          系统支持多种业务规则
-        </div>
-      </template>
-    </page-header>
+  <div class="absolute-container">
+    <tool-header title="业务规则" />
 
     <page-main>
       <el-table v-loading="state.loading" class="list-table" :data="state.dataList" border stripe highlight-current-row height="100%">

+ 1 - 1
src/views/database/data/index.vue

@@ -105,7 +105,7 @@ const onSearch = () => {
       </template>
     </tool-header>
     <div class="page-main">
-      <LayoutContainer left-side-width="300px" hide-left-side-toggle>
+      <LayoutContainer left-side-width="250px" hide-left-side-toggle>
         <template #leftSide>
           <el-scrollbar class="tree">
             <ElTree ref="leftTreeRef" :data="state.treeData" default-expand-all node-key="modelId" @node-click="onTreeNodeClick">

+ 6 - 6
src/views/model/object/index.vue

@@ -66,7 +66,7 @@ const getModelData = async () => {
   })
   state.treeData = [
     {
-      label: '模型库',
+      label: '数据模型库',
       isLeaf: false,
       modelId: -1,
       children,
@@ -208,18 +208,18 @@ const onObjectDelete = (row: any) => {
   <div class="absolute-container">
     <tool-header title="数据模型">
       <template #right>
-        <el-button plain @click="onModelAdd">
+        <el-button type="primary" plain @click="onModelAdd">
           <template #icon>
             <el-icon>
               <svg-icon name="i-ep:plus" />
             </el-icon>
           </template>
-          新增模型
+          新增数据模型
         </el-button>
       </template>
     </tool-header>
     <div class="page-main">
-      <LayoutContainer left-side-width="300px" hide-left-side-toggle>
+      <LayoutContainer left-side-width="250px" hide-left-side-toggle>
         <template #leftSide>
           <el-scrollbar class="tree">
             <ElTree ref="leftTreeRef" :data="state.treeData" default-expand-all node-key="modelId" @node-click="onTreeNodeClick">
@@ -270,13 +270,13 @@ const onObjectDelete = (row: any) => {
                 </template>
               </el-button>
 
-              <el-button plain size="default" @click.stop="onObjectAdd">
+              <el-button plain size="primary" @click.stop="onObjectAdd">
                 <template #icon>
                   <el-icon>
                     <svg-icon name="i-ep:plus" />
                   </el-icon>
                 </template>
-                新增对象
+                新增数据对象
               </el-button>
             </template>
           </tool-bar>