ZaiZai před 1 rokem
rodič
revize
37c88e89dc

+ 21 - 0
src/router/modules/base.js

@@ -33,6 +33,27 @@ export default [
             },
         ],
     },
+    {
+        path: '/manager/projectinfo',
+        name: 'projectinfo1',
+        redirect: '/manager/projectinfo/list',
+        meta: { title: '项目管理' },
+        component: Layout,
+        children: [
+            {
+                path: '/manager/projectinfo/list',
+                name: 'projectinfo/list',
+                meta: { title: '项目列表' },
+                component: () => import('~src/views/project/list.vue'),
+            },
+            {
+                path: '/manager/projectinfo/archivetreeconfig',
+                name: 'projectinfo_archivetreeconfig',
+                meta: { title: '项目归档树' },
+                component: () => import('~src/views/project/tree.vue'),
+            },
+        ],
+    },
     {
         path: '/certificate',
         name: 'certificate',

+ 4 - 0
src/views/authority/api.vue

@@ -34,6 +34,10 @@ import menuApi from '~api/system/menu'
 const router = useRouter()
 const useRoutes = useRoute()
 
+defineOptions({
+    name: 'ApiScope',
+})
+
 //激活
 onActivated(() => {
 //获取参数

+ 4 - 0
src/views/authority/data.vue

@@ -34,6 +34,10 @@ import menuApi from '~api/system/menu'
 const router = useRouter()
 const useRoutes = useRoute()
 
+defineOptions({
+    name: 'DataScope',
+})
+
 //激活
 onActivated(() => {
 //获取参数

+ 4 - 0
src/views/authority/role.vue

@@ -65,6 +65,10 @@ import HcRoleAuth from './modules/role/auth.vue'
 import tenantApi from '~api/system/tenant'
 import mainApi from '~api/authority/role'
 
+defineOptions({
+    name: 'Role',
+})
+
 //激活
 onActivated(() => {
     getDataApi()

+ 4 - 0
src/views/certificate/admin.vue

@@ -28,6 +28,10 @@ import { getArrValue } from 'js-fast-way'
 import HcAdminSee from './modules/admin/see.vue'
 import mainApi from '~api/certificate/admin'
 
+defineOptions({
+    name: 'CertificateAdmin',
+})
+
 //激活
 onActivated(() => {
     getDataApi()

+ 4 - 0
src/views/certificate/list.vue

@@ -39,6 +39,10 @@ import HcListForm from './modules/list/form.vue'
 import adminApi from '~api/certificate/admin'
 import mainApi from '~api/certificate/list'
 
+defineOptions({
+    name: 'CertificateList',
+})
+
 //激活
 onActivated(() => {
     getProjectData()

+ 4 - 0
src/views/error/403.vue

@@ -19,6 +19,10 @@
 import router from '~src/router/index'
 import svg403 from '~src/assets/view/403.svg'
 
+defineOptions({
+    name: '403',
+})
+
 const goToHome = () => {
     router.push({ path: '/' })
 }

+ 5 - 1
src/views/error/404.vue

@@ -19,8 +19,12 @@
 import router from '~src/router/index'
 import svg404 from '~src/assets/view/404.svg'
 
+defineOptions({
+    name: '404',
+})
+
 const goToHome = () => {
-    router.push({ path: '/' }) 
+    router.push({ path: '/' })
 }
 </script>
 

+ 4 - 0
src/views/error/500.vue

@@ -19,6 +19,10 @@
 import router from '~src/router/index'
 import svg500 from '~src/assets/view/500.svg'
 
+defineOptions({
+    name: '500',
+})
+
 const goToHome = () => {
     router.push({ path: '/' })
 }

+ 4 - 0
src/views/home/index.vue

@@ -64,6 +64,10 @@ import HcChartType from './modules/chart-type.vue'
 import { getArrValue, getObjValue } from 'js-fast-way'
 import mainApi from '~api/home/index'
 
+defineOptions({
+    name: 'Index',
+})
+
 //激活
 onActivated(() => {
     getChartData()

+ 13 - 0
src/views/project/list.vue

@@ -0,0 +1,13 @@
+<template>
+    <div>项目列表</div>
+</template>
+
+<script setup>
+defineOptions({
+    name: 'ProjectList',
+})
+</script>
+
+<style scoped lang="scss">
+
+</style>

+ 13 - 0
src/views/project/tree.vue

@@ -0,0 +1,13 @@
+<template>
+    <div>项目树</div>
+</template>
+
+<script setup>
+defineOptions({
+    name: 'ProjectTree',
+})
+</script>
+
+<style scoped lang="scss">
+
+</style>

+ 4 - 0
src/views/resource/attach.vue

@@ -53,6 +53,10 @@ import { delMessage, getHeader } from 'hc-vue3-ui'
 import { arrToId, filterSize, getArrValue } from 'js-fast-way'
 import mainApi from '~api/resource/attach'
 
+defineOptions({
+    name: 'Attach',
+})
+
 //激活
 onActivated(() => {
     searchClick()

+ 4 - 0
src/views/resource/oss.vue

@@ -126,6 +126,10 @@ import mainApi from '~api/resource/oss'
 import { actionConfirm, delMessage, getDictionaryData } from '~uti/tools'
 import { arrToId, formValidate, getArrValue, isNullES } from 'js-fast-way'
 
+defineOptions({
+    name: 'Oss',
+})
+
 //激活
 onActivated(() => {
     getDataApi()

+ 4 - 0
src/views/resource/sms.vue

@@ -146,6 +146,10 @@ import { actionConfirm, delMessage, getDictionaryData } from '~uti/tools'
 import { arrToId, formValidate, getArrValue, isNullES } from 'js-fast-way'
 import mainApi from '~api/resource/sms'
 
+defineOptions({
+    name: 'Sms',
+})
+
 //激活
 onActivated(() => {
     getDataApi()

+ 5 - 0
src/views/system/app.vue

@@ -139,6 +139,11 @@ import { delMessage } from '~uti/tools'
 import mainApi from '~api/system/app'
 import { getHeader } from 'hc-vue3-ui'
 
+defineOptions({
+    name: 'App',
+})
+
+
 //激活
 onActivated(() => {
     searchForm.value.current = 1

+ 4 - 0
src/views/system/client.vue

@@ -106,6 +106,10 @@ import { arrToId, formValidate, getArrValue } from 'js-fast-way'
 import { delMessage, reloadPage } from '~uti/tools'
 import mainApi from '~api/system/client'
 
+defineOptions({
+    name: 'Client',
+})
+
 //激活
 onActivated(() => {
     searchForm.value.current = 1

+ 4 - 0
src/views/system/dept.vue

@@ -90,6 +90,10 @@ import tenantApi from '~api/system/tenant'
 import { delMessage, getDictionaryData, reloadPage } from '~uti/tools'
 import { arrToId, formValidate, getArrValue, isNullES } from 'js-fast-way'
 
+defineOptions({
+    name: 'Dept',
+})
+
 //激活
 onActivated(() => {
     getDataApi()

+ 4 - 0
src/views/system/dict.vue

@@ -73,6 +73,10 @@ import HcChildDict from './modules/dict/dict.vue'
 import { delMessage } from '~uti/tools'
 import mainApi from '~api/system/dict'
 
+defineOptions({
+    name: 'Dict',
+})
+
 //激活
 onActivated(() => {
     searchForm.value.current = 1

+ 4 - 0
src/views/system/dictbiz.vue

@@ -73,6 +73,10 @@ import HcChildDictbiz from './modules/dictbiz/dictbiz.vue'
 import { delMessage } from '~uti/tools'
 import mainApi from '~api/system/dictbiz'
 
+defineOptions({
+    name: 'Dictbiz',
+})
+
 //激活
 onActivated(() => {
     searchForm.value.current = 1

+ 4 - 0
src/views/system/menu-top.vue

@@ -63,6 +63,10 @@ import { arrToId, formValidate, getArrValue } from 'js-fast-way'
 import { delMessage, reloadPage } from '~uti/tools'
 import mainApi from '~api/system/menu-top'
 
+defineOptions({
+    name: 'TopMenu',
+})
+
 //激活
 onActivated(() => {
     searchClick()

+ 6 - 2
src/views/system/menu.vue

@@ -3,7 +3,7 @@
         <template #header>
             <div class="w-40">
                 <el-select v-model="searchForm.sysId" filterable clearable block placeholder="选择所属系统">
-                    <el-option v-for="item in clinets" :key="item.id" :label="item.name" :value="item.id" />
+                    <el-option v-for="item in clinets" :key="item.id" :label="item.name ?? item.clientId" :value="item.id" />
                 </el-select>
             </div>
             <div class="ml-3 w-60">
@@ -64,7 +64,7 @@
                     <el-col :span="8">
                         <el-form-item label="所属系统:" prop="sysId">
                             <el-select v-model="formModel.sysId" placeholder="选择所属系统" filterable clearable block>
-                                <el-option v-for="item in clinets" :key="item.id" :label="item.name" :value="item.id" />
+                                <el-option v-for="item in clinets" :key="item.id" :label="item.name ?? item.clientId" :value="item.id" />
                             </el-select>
                         </el-form-item>
                     </el-col>
@@ -189,6 +189,10 @@ import mainApi from '~api/system/menu'
 const router = useRouter()
 const useRoutes = useRoute()
 
+defineOptions({
+    name: 'Menu',
+})
+
 //激活
 onActivated(() => {
     //获取参数

+ 4 - 0
src/views/system/param.vue

@@ -50,6 +50,10 @@ import { arrToId, formValidate, getArrValue } from 'js-fast-way'
 import { delMessage, reloadPage } from '~uti/tools'
 import mainApi from '~api/system/param'
 
+defineOptions({
+    name: 'Param',
+})
+
 //激活
 onActivated(() => {
     searchForm.value.current = 1

+ 4 - 0
src/views/system/post.vue

@@ -88,6 +88,10 @@ import { delMessage, getDictionaryData } from '~uti/tools'
 import tenantApi from '~api/system/tenant'
 import mainApi from '~api/system/post'
 
+defineOptions({
+    name: 'Post',
+})
+
 //激活
 onActivated(() => {
     searchForm.value.current = 1

+ 4 - 0
src/views/system/tenant.vue

@@ -123,6 +123,10 @@ import { delMessage } from '~uti/tools'
 import { getHeader } from 'hc-vue3-ui'
 import mainApi from '~api/system/tenant'
 
+defineOptions({
+    name: 'Tenant',
+})
+
 //激活
 onActivated(() => {
     searchClick()

+ 4 - 0
src/views/system/user.vue

@@ -9,6 +9,10 @@ import { delMessage, reloadPage } from '~uti/tools'
 import roleApi from '~api/system/role'
 import mainApi from '~api/system/user'
 
+defineOptions({
+    name: 'User',
+})
+
 //激活
 onActivated(() => {
     getTableData()

+ 3 - 1
src/views/user/index.vue

@@ -5,7 +5,9 @@
 </template>
 
 <script setup>
-
+defineOptions({
+    name: 'UserInfo',
+})
 </script>
 
 <style scoped lang="scss">