785834757 6 месяцев назад
Родитель
Сommit
781b9733ee

+ 0 - 2
src/router/modules/appConfig.ts

@@ -17,7 +17,6 @@ const routes: RouteRecordRaw = {
       component: () => import('@/views/productConfiguration/appConfig/appManagement.vue'),
       meta: {
         title: '应用管理',
-        auth: ['paymentCodeConfig.view','paymentCodeConfig.add','paymentCodeConfig.edit','paymentCodeConfig.delete']
       },
     },
     {
@@ -26,7 +25,6 @@ const routes: RouteRecordRaw = {
       component: () => import('@/views/productConfiguration/appConfig/versionManagement.vue'),
       meta: {
         title: '版本管理',
-        auth: ['paymentCodeConfig.view','paymentCodeConfig.add','paymentCodeConfig.edit','paymentCodeConfig.delete'],
         menu: false,
         activeMenu: '/productConfiguration/appConfig/appManagement',
       },

+ 0 - 3
src/router/modules/insuranceCompany.ts

@@ -17,7 +17,6 @@ const routes: RouteRecordRaw = {
       component: () => import('@/views/insuranceCompanyConfiguration/insuranceCompanyConfig.vue'),
       meta: {
         title: '保险公司',
-        auth: ['insuranceCompanyConfig.add', 'insuranceCompanyConfig.view', 'insuranceCompanyConfig.delete', 'insuranceCompanyConfig.edit']
       },
     },
     {
@@ -26,7 +25,6 @@ const routes: RouteRecordRaw = {
       component: () => import('@/views/insuranceCompanyConfiguration/paymentCodeConfig.vue'),
       meta: {
         title: '支付码配置',
-        auth: ['paymentCodeConfig.add', 'paymentCodeConfig.view', 'paymentCodeConfig.delete', 'paymentCodeConfig.edit']
       },
     },
     {
@@ -35,7 +33,6 @@ const routes: RouteRecordRaw = {
       component: () => import('@/views/insuranceCompanyConfiguration/accountOwnershipConfig.vue'),
       meta: {
         title: '账号归属配置',
-        auth: ['accountOwnershipConfig.add', 'accountOwnershipConfig.view', 'accountOwnershipConfig.delete', 'accountOwnershipConfig.edit']
       },
     },
     {

+ 0 - 2
src/router/modules/organization.ts

@@ -17,7 +17,6 @@ const routes: RouteRecordRaw = {
       redirect: '/organizationManagement/organization/organizationlist',
       meta: {
         title: '租户列表',
-        auth: ['organizationlist.add', 'organizationlist.view', 'organizationlist.delete', 'organizationlist.edit']
       },
       children: [
         {
@@ -67,7 +66,6 @@ const routes: RouteRecordRaw = {
       component: () => import('@/views/organizationManagement/tenantPermissions.vue'),
       meta: {
         title: '租户权限',
-        auth: ['tenantPermissions.edit']
       },
     },
     {

+ 0 - 2
src/router/modules/personnel.ts

@@ -18,7 +18,6 @@ const routes: RouteRecordRaw = {
       redirect: '/personnel/memberManagement',
       meta: {
         title: '成员管理',
-        auth:['member.add','member.view','member.delete','member.edit']
 
       },
       children: [
@@ -49,7 +48,6 @@ const routes: RouteRecordRaw = {
       component: () => import('@/views/personnel/roleManagement.vue'),
       meta: {
         title: '角色管理',
-        auth:['role.add','role.view','role.delete','role.edit']
       },
     },
   ],

+ 0 - 2
src/router/modules/product.ts

@@ -17,7 +17,6 @@ const routes: RouteRecordRaw = {
       redirect: '/productConfiguration/drivingInsurance/index',
       meta: {
         title: '驾意险配置',
-        auth: ['drivingInsurance.add', 'drivingInsurance.view', 'drivingInsurance.delete', 'drivingInsurance.edit']
       },
       children: [
         {
@@ -49,7 +48,6 @@ const routes: RouteRecordRaw = {
       redirect: '/productConfiguration/specialClause/specialClauseindex',
       meta: {
         title: '特约管理',
-        auth: ['specialClause.add', 'specialClause.view', 'specialClause.delete', 'specialClause.edit']
       },
       children: [
         {

+ 3 - 3
src/views/insuranceCompanyConfiguration/accountOwnershipConfig.vue

@@ -8,7 +8,7 @@
               <ElInput v-model="companyName" placeholder="输入保险公司名称查找" type="text" tabindex="1" clearable
                 style="width: 100%;" @clear="companyQuery">
                 <template #append >
-                  <el-button :icon="Search" @click="companyQuery" v-auth="'accountOwnershipConfig.view'"  />
+                  <el-button :icon="Search" @click="companyQuery"  />
                 </template>
               </ElInput>
             </ElFormItem>
@@ -25,7 +25,7 @@
         </ElCol>
         <ElCol :md="19">
           <ElCol :md="24" :lg="24" :offset="23" v-if="companyactiveID">
-            <el-button type="primary" v-auth="'accountOwnershipConfig.add'" @click="parametervalidate(productFormRef)">保存</el-button>
+            <el-button type="primary"  @click="parametervalidate(productFormRef)">保存</el-button>
           </ElCol>
           <ElCol :md="24" :lg="24">
             <el-tabs v-model="editableTabsValue" type="card" editable class="demo-tabs" @edit="handleTabsEdit"
@@ -94,7 +94,7 @@
                 <ElDivider style="margin: 0;"></ElDivider>
                 <ElCol :md="24" :lg="24" style="margin: 10px 0;font-size: 14px;">
                   <span class="strong" style="margin-right: 10px;">基本信息</span>
-                  <el-button type="primary" @click="addParameter(index)" v-auth="'accountOwnershipConfig.add'">
+                  <el-button type="primary" @click="addParameter(index)" >
                     <template #icon>
                       <ElIcon>
                         <plus />

+ 3 - 3
src/views/insuranceCompanyConfiguration/insuranceCompanyConfig.vue

@@ -7,7 +7,7 @@
           <el-input v-model="formInline.name" placeholder="输入保险公司查找" clearable />
         </el-form-item>
         <el-form-item>
-          <el-button type="primary" @click="companyQuery" v-auth="'insuranceCompanyConfig.view'">
+          <el-button type="primary" @click="companyQuery" >
             <template #icon>
               <SvgIcon name="i-ep:search" />
             </template>
@@ -15,7 +15,7 @@
         </el-form-item>
       </el-form>
       <div>
-        <el-button type="primary" @click="companyAdd" v-auth="'insuranceCompanyConfig.add'">
+        <el-button type="primary" @click="companyAdd" >
           <template #icon>
             <el-icon>
               <Plus />
@@ -30,7 +30,7 @@
                 <template #cell="scope">
                   <div v-if="scope.column.key == 'option'" class="flex j-s a-c">
                     <el-button type="primary" link @click="addSubsidiary(scope.rowData)"
-                      v-auth="'insuranceCompanyConfig.add'"> 添加子公司
+                     > 添加子公司
                     </el-button>
                     <el-dropdown placement="bottom-start">
                       <span class="el-dropdown-link">

+ 2 - 2
src/views/insuranceCompanyConfiguration/paymentCodeConfig.vue

@@ -9,7 +9,7 @@
             </ElFormItem>
           </ElCol>
           <ElCol :md="4">
-            <el-button type="primary" v-auth="'paymentCodeConfig.view'" @click="findpage">
+            <el-button type="primary" @click="findpage">
               <template #icon>
                 <SvgIcon name="i-ep:search" />
               </template>
@@ -21,7 +21,7 @@
       <Table :tableData="tableData" :columns="columns" :showIndex="false" :columnwidth="200" :showSelect="false"
         :pageInfo="pageInfo" @getList="getList">
         <template v-slot:table-title-btn>
-          <el-button type="primary" @click="companyAdd" v-auth="'paymentCodeConfig.add'">
+          <el-button type="primary" @click="companyAdd">
             添加保险公司
             <template #icon>
               <el-icon>

+ 5 - 5
src/views/organizationManagement/organization/organizationlist.vue

@@ -30,12 +30,12 @@
           <ElCol :md="6" :offset="10">
             <ElFormItem>
               <div class="flex j-end" style="width: 100%;">
-                <el-button type="primary" v-auth="'organizationlist.view'" @click="roleQuery">
+                <el-button type="primary" @click="roleQuery">
                   <template #icon>
                     <SvgIcon name="i-ep:search" />
                   </template>
                   查询</el-button>
-                <el-button type="default" v-auth="'organizationlist.view'" @click="resetForm">重置</el-button>
+                <el-button type="default" @click="resetForm">重置</el-button>
               </div>
             </ElFormItem>
           </ElCol>
@@ -45,7 +45,7 @@
         :pageInfo="pageInfo" @getList="getList" @selectionChange="selectionChange">
         <template v-slot:table-title-btn>
           <RouterLink :to="{ name: 'OrganizationAdd' }">
-            <el-button type="primary" v-auth="'organizationlist.add'">
+            <el-button type="primary">
               添加租户
               <template #icon>
                 <el-icon>
@@ -54,7 +54,7 @@
               </template>
             </el-button>
           </RouterLink>
-          <el-dropdown placement="bottom-start" v-auth="'organizationlist.delete'">
+          <el-dropdown placement="bottom-start">
             <el-button> 批量操作<el-icon>
                 <arrow-down />
               </el-icon>
@@ -69,7 +69,7 @@
           </el-dropdown>
         </template>
         <template v-slot:operation="scope">
-          <el-button type="primary" link @click="tenantUpdate(scope.operationData)" v-auth="'organizationlist.edit'"> 编辑
+          <el-button type="primary" link @click="tenantUpdate(scope.operationData)"> 编辑
           </el-button>
           <el-dropdown placement="bottom-start">
             <span class="el-dropdown-link">

+ 1 - 1
src/views/organizationManagement/tenantPermissions.vue

@@ -29,7 +29,7 @@
           <div class="flex j-s a-c">
             <span class="strong">操作权限</span>
             <div>
-              <ElButton v-if="roleInfo.systemCode" type="default" @click="roleSubmit" v-auth="'tenantPermissions.edit'">
+              <ElButton v-if="roleInfo.systemCode" type="default" @click="roleSubmit">
                 保存
               </ElButton>
             </div>

+ 6 - 6
src/views/personnel/memberManagement.vue

@@ -20,12 +20,12 @@
           <ElCol :md="8">
             <ElFormItem>
               <div class="flex j-end" style="width: 100%;">
-                <el-button type="primary" @click="memberQuery" v-auth="'member.view'" @keydown.enter="handleEnter">
+                <el-button type="primary" @click="memberQuery" @keydown.enter="handleEnter">
                   <template #icon>
                     <SvgIcon name="i-ep:search" />
                   </template>
                   查询</el-button>
-                <el-button type="default" @click="resetForm" v-auth="'member.view'">重置</el-button>
+                <el-button type="default" @click="resetForm" >重置</el-button>
               </div>
             </ElFormItem>
           </ElCol>
@@ -36,7 +36,7 @@
         :pageInfo="pageInfo" @getList="getList" @selectAllChange="handleSelectionChange"
         @selectionChange="selectionChange">
         <template v-slot:table-title-btn>
-          <el-button type="primary" @click="userAdd" v-auth="'member.add'">
+          <el-button type="primary" @click="userAdd" >
             添加成员
             <template #icon>
               <el-icon>
@@ -44,7 +44,7 @@
               </el-icon>
             </template>
           </el-button>
-          <el-dropdown placement="bottom-start" v-auth="'member.delete'">
+          <el-dropdown placement="bottom-start" >
             <el-button> 批量管理<el-icon>
                 <arrow-down />
               </el-icon>
@@ -59,9 +59,9 @@
           </el-dropdown>
         </template>
         <template v-slot:operation="scope">
-          <el-button type="primary" link @click="tenantUpdate(scope.operationData.id)" v-auth="'member.edit'"> 编辑
+          <el-button type="primary" link @click="tenantUpdate(scope.operationData.id)" > 编辑
           </el-button>
-          <el-dropdown placement="bottom-start" v-auth="'member.delete'">
+          <el-dropdown placement="bottom-start">
             <span class="el-dropdown-link">
               更 多
             </span>

+ 5 - 5
src/views/personnel/roleManagement.vue

@@ -10,7 +10,7 @@
                   <SvgIcon name="i-ri:user-3-fill" />
                 </template>
                 <template #append>
-                  <el-button :icon="Search" class="ElInputSearch" @click="rolequery" v-auth="'role.view'" />
+                  <el-button :icon="Search" class="ElInputSearch" @click="rolequery"/>
                 </template>
               </ElInput>
             </ElFormItem>
@@ -22,7 +22,7 @@
               </div>
             </div>
             <div class="flex a-c j-c footer">
-              <el-button type="primary" plain style="margin: auto;" @click="resetForm" v-auth="'role.add'">
+              <el-button type="primary" plain style="margin: auto;" @click="resetForm">
                 <el-icon>
                   <Plus />
                 </el-icon>
@@ -37,9 +37,9 @@
           <div class="flex j-s a-c">
             <span class="strong">角色管理</span>
             <div>
-              <ElButton v-if="roleInfo.id" type="primary" @click="roleSubmit" v-auth="'role.add'">编辑</ElButton>
-              <ElButton v-else type="default" @click="roleSubmit" v-auth="'role.add'">保存</ElButton>
-              <ElButton v-if="roleInfo.id" type="default" @click="roleDelClick" v-auth="'role.delete'">删除</ElButton>
+              <ElButton v-if="roleInfo.id" type="primary" @click="roleSubmit">编辑</ElButton>
+              <ElButton v-else type="default" @click="roleSubmit">保存</ElButton>
+              <ElButton v-if="roleInfo.id" type="default" @click="roleDelClick">删除</ElButton>
             </div>
           </div>
           <ElDivider style="margin-top: 10px;"></ElDivider>

+ 2 - 2
src/views/productConfiguration/appConfig/appManagement.vue

@@ -9,7 +9,7 @@
             </ElFormItem>
           </ElCol>
           <ElCol :md="4">
-            <el-button type="primary" v-auth="'paymentCodeConfig.view'" @click="findpage">
+            <el-button type="primary" @click="findpage">
               <template #icon>
                 <SvgIcon name="i-ep:search" />
               </template>
@@ -21,7 +21,7 @@
       <Table :tableData="tableData" :columns="columns" :showIndex="false" :columnwidth="250" :showSelect="false"
         :pageInfo="pageInfo" @getList="getList">
         <template v-slot:table-title-btn>
-          <el-button type="primary" @click="companyAdd" v-auth="'paymentCodeConfig.add'">
+          <el-button type="primary" @click="companyAdd">
             添加应用
             <template #icon>
               <el-icon>

+ 2 - 2
src/views/productConfiguration/appConfig/versionManagement.vue

@@ -9,7 +9,7 @@
             </ElFormItem>
           </ElCol>
           <ElCol :md="4">
-            <el-button type="primary" v-auth="'paymentCodeConfig.view'" @click="findpage">
+            <el-button type="primary" @click="findpage">
               <template #icon>
                 <SvgIcon name="i-ep:search" />
               </template>
@@ -29,7 +29,7 @@
               </el-icon>
             </template>
           </el-button>
-          <el-button type="primary" @click="companyAdd" v-auth="'paymentCodeConfig.add'">
+          <el-button type="primary" @click="companyAdd">
             发布新版本
             <template #icon>
               <el-icon>

+ 4 - 4
src/views/productConfiguration/drivingInsurance/drivingInsuranceindex.vue

@@ -8,7 +8,7 @@
               <ElInput v-model="companyName" placeholder="输入保险公司名称查找" type="text" tabindex="1" clearable
                 style="width: 100%;" @clear="companyQuery">
                 <template #append>
-                  <el-button :icon="Search" @click="companyQuery" v-auth="'drivingInsurance.add'" />
+                  <el-button :icon="Search" @click="companyQuery" />
                 </template>
               </ElInput>
             </ElFormItem>
@@ -28,7 +28,7 @@
             <span class="strong">驾意险配置</span>
             <RouterLink
               :to="{ name: 'DrivingInsuranceAdd', query: { companyID: companyactiveID, companyName: companyactiveName } }">
-              <ElButton type="default" v-if="companyactiveID" v-auth="'drivingInsurance.add'">
+              <ElButton type="default" v-if="companyactiveID">
                 <template #icon>
                   <el-icon>
                     <Plus />
@@ -53,7 +53,7 @@
                 </el-input>
               </el-form-item>
               <el-form-item>
-                <el-button type="primary" @click="findpage" v-auth="'drivingInsurance.view'">
+                <el-button type="primary" @click="findpage">
                   <template #icon>
                     <SvgIcon name="i-ep:search" />
                   </template>
@@ -67,7 +67,7 @@
             :showSelect="false">
             <template v-slot:operation="scope">
               <el-button type="primary" link style="margin-right: 15px;" v-if="scope.operationData.parentId == '0'"
-                @click="add(scope.operationData)" v-auth="'drivingInsurance.add'"> 添加
+                @click="add(scope.operationData)"> 添加
               </el-button>
               <el-button type="primary" link style="margin-right: 15px;" @click="edit(scope.operationData.id)"
                 v-auth="'drivingInsurance.edit'"> 编辑

+ 3 - 3
src/views/productConfiguration/specialClause/specialClauseindex.vue

@@ -35,7 +35,7 @@
           </ElCol>
           <ElCol :md="8">
             <div class="flex a-c j-end" style="width: 100%;">
-              <el-button type="primary" @click="findpage" v-auth="'specialClause.view'">
+              <el-button type="primary" @click="findpage">
                 <template #icon>
                   <SvgIcon name="i-ep:search" />
                 </template>
@@ -50,7 +50,7 @@
         :pageInfo="pageInfo" @getList="getList" @selectionChange="selectionChange" @customEventClick="customEventClick">
         <template v-slot:table-title-btn>
           <RouterLink :to="{ name: 'SpecialClauseAdd' }">
-            <el-button type="primary" v-auth="'specialClause.add'">
+            <el-button type="primary">
               添加特约
               <template #icon>
                 <el-icon>
@@ -60,7 +60,7 @@
             </el-button>
           </RouterLink>
 
-          <el-button type="default" @click="batchDel" v-auth="'specialClause.delete'"
+          <el-button type="default" @click="batchDel"
             :disabled="!sysUpAndDownList.length">
             批量删除
           </el-button>