ZaiZai 2 年之前
父节点
当前提交
5b84122def

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

@@ -361,48 +361,6 @@ export default [
                 meta: {title: '参数配置'},
                 component: () => import('~src/views/system/parameter.vue')
             },
-            {
-                path: '/system/parameter-pricetype',
-                name: 'system-parameter-pricetype',
-                meta: {title: '财务费用字典'},
-                component: () => import('~src/views/system/components/tab-pricetype')
-            },
-            {
-                path: '/system/parameter-tasktype',
-                name: 'system-parameter-tasktype',
-                meta: {title: '任务类型字典'},
-                component: () => import('~src/views/system/components/tab-tasktype')
-            },
-            {
-                path: '/system/parameter-price',
-                name: 'system-parameter-price',
-                meta: {title: '岗位类型字典'},
-                component: () => import('~src/views/system/components/tab-price')
-            },
-            {
-                path: '/system/parameter-reimbursement',
-                name: 'system-parameter-reimbursement',
-                meta: {title: '报销类型字典'},
-                component: () => import('~src/views/system/components/tab-reimbursement')
-            },
-            {
-                path: '/system/parameter-cost',
-                name: 'system-parameter-cost',
-                meta: {title: '成本测算类型'},
-                component: () => import('~src/views/system/components/tab-cost')
-            },
-            {
-                path: '/system/parameter-approve',
-                name: 'system-parameter-approve',
-                meta: {title: '审批流程'},
-                component: () => import('~src/views/system/components/tab-approve')
-            },
-            {
-                path: '/system/parameter-other',
-                name: 'system-parameter-other',
-                meta: {title: '其他'},
-                component: () => import('~src/views/system/components/tab-other')
-            },
             {
                 path: '/system/organization',
                 name: 'system-organization',

+ 0 - 0
src/views/system/components/tab-pricetype.vue → src/views/system/components/tab-price-type.vue


+ 0 - 0
src/views/system/components/tab-tasktype.vue → src/views/system/components/tab-task-type.vue


+ 15 - 15
src/views/system/parameter.vue

@@ -1,38 +1,38 @@
 <template>
     <HcTabsSimple :cur="tabsKey" :datas="tabsData" @tabClick="tabsClick">
         <template #tab-pricetype>
-            <TabPriceType :cur="tabsKey" :type="1"/>
+            <HcTabPriceType :cur="tabsKey" :type="1" v-if="tabsKey==='pricetype'"/>
         </template>
         <template #tab-tasktype>
-            <TabTaskType :cur="tabsKey" :type="2"/>
+            <HcTabTaskType :cur="tabsKey" :type="2" v-if="tabsKey==='tasktype'"/>
         </template>
         <template #tab-price>
-            <TabPrice :cur="tabsKey" :type="3"/>
+            <HcTabPrice :cur="tabsKey" :type="3" v-if="tabsKey==='price'"/>
         </template>
         <template #tab-reimbursement>
-            <TabReimbursement :cur="tabsKey" :type="4"/>
+            <HcTabReimbursement :cur="tabsKey" :type="4" v-if="tabsKey==='reimbursement'"/>
         </template>
         <template #tab-cost>
-            <TabCost :cur="tabsKey" :type="5"/>
+            <HcTabCost :cur="tabsKey" :type="5" v-if="tabsKey==='cost'"/>
         </template>
         <template #tab-approve>
-            <TabApprove :cur="tabsKey" :type="6"/>
+            <HcTabApprove :cur="tabsKey" :type="6" v-if="tabsKey==='approve'"/>
         </template>
         <template #tab-other>
-            <TabOther :cur="tabsKey" :type="11"/>
+            <HcTabOther :cur="tabsKey" :type="11" v-if="tabsKey==='other'"/>
         </template>
     </HcTabsSimple>
 </template>
 
 <script setup>
 import {ref, watch, onMounted} from "vue";
-import TabPriceType from "./components/tab-pricetype.vue";
-import TabTaskType from "./components/tab-tasktype.vue";
-import TabPrice from "./components/tab-price.vue";
-import TabReimbursement from "./components/tab-reimbursement.vue";
-import TabCost from "./components/tab-cost.vue";
-import TabApprove from "./components/tab-approve.vue";
-import TabOther from './components/tab-other.vue'
+import HcTabPriceType from "./components/tab-price-type.vue";
+import HcTabTaskType from "./components/tab-task-type.vue";
+import HcTabPrice from "./components/tab-price.vue";
+import HcTabReimbursement from "./components/tab-reimbursement.vue";
+import HcTabCost from "./components/tab-cost.vue";
+import HcTabApprove from "./components/tab-approve.vue";
+import HcTabOther from './components/tab-other.vue'
 
 
 //类型处理
@@ -45,7 +45,7 @@ const tabsData = ref([
     {icon: 'sun-cloudy', label: '成本测算类型', key: 'cost'},
     {icon: 'sun-cloudy', label: '审批流程', key: 'approve'},
     {icon: 'sun-cloudy', label: '其他', key: 'other'},
-   
+
 ])
 //渲染完成
 onMounted(() => {