Răsfoiți Sursa

产品管理、分销管理按钮权限

lihongxiao 2 ani în urmă
părinte
comite
8c944322b3

+ 1 - 1
src/views/DistributionManage/CarInsurance/DistributionManage.vue

@@ -42,7 +42,7 @@
           </el-row>
           </el-row>
 
 
 
 
-          <kt-common-table permsEdit="sys:user:edit" permsDelete="sys:user:delete" :data="pageResult" :columns="columns"
+          <kt-common-table permsEdit="sys:distributionManage:edit" permsDelete="sys:distributionManage:delete" :data="pageResult" :columns="columns"
             editButtonName="编辑" deleteButtonName="删除" :showBatchDelete="true" @findPage="findPage"
             editButtonName="编辑" deleteButtonName="删除" :showBatchDelete="true" @findPage="findPage"
             @handleEdit="handleTableEdit" @handleDeleteFlag="handleTableDeleteFlag"
             @handleEdit="handleTableEdit" @handleDeleteFlag="handleTableDeleteFlag"
             @handleDelete="handleTableBatchDelete">
             @handleDelete="handleTableBatchDelete">

+ 13 - 9
src/views/Esm/Esmcompany.vue

@@ -20,16 +20,16 @@
                 </el-form-item>
                 </el-form-item>
               </el-col>
               </el-col>
               <el-col :span="4" >
               <el-col :span="4" >
-                <el-button size="small" type="primary" style="background-color: #00bc70; border: 1px solid #00bc70"
-                  @click="searchInfor()">搜索</el-button>
+                <el-button size="small" type="primary"  @click="searchInfor()">搜索</el-button>
               </el-col>
               </el-col>
             </el-row>
             </el-row>
           </el-form>
           </el-form>
         </div>
         </div>
-        <div style="margin-bottom: 20px">
-          <el-button size="small" type="primary" plain icon="el-icon-plus" @click="handleAddType()">新增</el-button>
+          <kt-button style="margin-bottom: 20px;"
+          icon="fa fa-plus" label="新增" type="primary" perms="sys:esmcompany:add" @click="handleAddType()" />
+
+          <!-- <el-button size="small" type="primary"  icon="el-icon-plus" @click="handleAddType()">新增</el-button> -->
           <el-button size="small" type="info" plain icon="el-icon-sort" @click="fold()">展开折叠</el-button>
           <el-button size="small" type="info" plain icon="el-icon-sort" @click="fold()">展开折叠</el-button>
-        </div>
         <el-table ref="expandTable" :data="ztreeNodes" style="width: 100%" row-key="id" border
         <el-table ref="expandTable" :data="ztreeNodes" style="width: 100%" row-key="id" border
           :tree-props="{ children: 'children', hasChildren: 'hasChilkdren' }" :header-cell-style="{
           :tree-props="{ children: 'children', hasChildren: 'hasChilkdren' }" :header-cell-style="{
             background: '#F2F7FC',
             background: '#F2F7FC',
@@ -56,10 +56,14 @@
           </el-table-column> -->
           </el-table-column> -->
           <el-table-column label="操作" fixed="right">
           <el-table-column label="操作" fixed="right">
             <template slot-scope="scope">
             <template slot-scope="scope">
-              <el-button type="text" size="mini" icon="el-icon-edit" @click="handleTableEdit(scope.row)">修改</el-button>
-              <el-button type="text" size="mini" icon="el-icon-plus" @click="handleAddCompany(scope.row)">新增</el-button>
-              <el-button v-if="['0', '2'].includes(scope.row.type) || scope.row.childnode" type="text" size="mini"
-                icon="el-icon-delete" @click="handleTableBatchDelete(scope.row)">删除</el-button>
+              <kt-button icon="fa fa-edit" label="修改" type="text" perms="sys:esmcompany:edit"  @click="handleTableEdit(scope.row)" />
+              <kt-button icon="fa fa-plus" label="新增" type="text" perms="sys:esmcompany:goadd" @click="handleAddCompany(scope.row)" />
+              <kt-button icon="fa fa-delete" label="删除" type="text" perms="sys:esmcompany:delete" v-if="['0', '2'].includes(scope.row.type) || scope.row.childnode" @click="handleTableBatchDelete(scope.row)" />
+        
+              <!-- <el-button type="text" size="mini" icon="el-icon-edit" @click="handleTableEdit(scope.row)">修改</el-button>
+              <el-button type="text" size="mini" icon="el-icon-plus" @click="handleAddCompany(scope.row)">新增</el-button> -->
+              <!-- <el-button v-if="['0', '2'].includes(scope.row.type) || scope.row.childnode" type="text" size="mini"
+                icon="el-icon-delete" @click="handleTableBatchDelete(scope.row)">删除</el-button> -->
             </template>
             </template>
           </el-table-column>
           </el-table-column>
         </el-table>
         </el-table>

+ 4 - 4
src/views/ProductManage/CarInsurance/ProductEntry.vue

@@ -2,12 +2,12 @@
   <div>
   <div>
     <el-main ref="elMain" style="padding: 0px;">
     <el-main ref="elMain" style="padding: 0px;">
       <!-- 工具区域Start -->
       <!-- 工具区域Start -->
-      <el-row style="margin: 0px 20px;">
+      <el-row>
         <!-- <kt-button size="small" style="color: #409EFF;" icon="el-icon-circle-plus" label="添加车险产品" type="text" perms="sys:user:add" @click="handleAddProduct" /> -->
         <!-- <kt-button size="small" style="color: #409EFF;" icon="el-icon-circle-plus" label="添加车险产品" type="text" perms="sys:user:add" @click="handleAddProduct" /> -->
-        <kt-button style="background-color: #52C578;border:#52C578;margin-left: 15px;margin-bottom: 20px;"
-          icon="fa fa-plus" label="添加产品" type="primary" perms="sys:dept:add" @click="handleAddProduct" />
+        <kt-button style="margin-bottom: 20px;"
+          icon="fa fa-plus" label="添加产品" type="primary" perms="sys:productEntry:add" @click="handleAddProduct" />
       </el-row>
       </el-row>
-      <kt-common-table permsEdit="product:product:edit" permsDelete="product:product:delete" :data="pageResult"
+      <kt-common-table permsEdit="sys:productEntry:edit" permsDelete="sys:productEntry:delete" :data="pageResult"
         :columns="columns" editButtonName="编辑" deleteButtonName="删除" :showBatchDelete="true" @findPage="findPage"
         :columns="columns" editButtonName="编辑" deleteButtonName="删除" :showBatchDelete="true" @findPage="findPage"
         @handleEdit="handleTableEdit" @handleDeleteFlag="handleTableDeleteFlag" @handleDelete="handleTableBatchDelete">
         @handleEdit="handleTableEdit" @handleDeleteFlag="handleTableDeleteFlag" @handleDelete="handleTableBatchDelete">
       </kt-common-table>
       </kt-common-table>

+ 4 - 10
src/views/ProductManage/Carverificationcode/ValidateEntry.vue

@@ -2,24 +2,18 @@
     <div>
     <div>
       <el-main ref="elMain" style="padding: 0px">
       <el-main ref="elMain" style="padding: 0px">
         <!-- 工具区域Start -->
         <!-- 工具区域Start -->
-        <el-row style="margin: 0px 20px">
+        <el-row style="margin-bottom: 20px">
           <kt-button
           <kt-button
-            style="
-              background-color: #52c578;
-              border: #52c578;
-              margin-left: 15px;
-              margin-bottom: 20px;
-            "
             icon="fa fa-plus"
             icon="fa fa-plus"
             label="添加"
             label="添加"
             type="primary"
             type="primary"
-            perms="sys:dept:add"
+            perms="sys:validateEntry:add"
             @click="handleAddjudgeRule"
             @click="handleAddjudgeRule"
           />
           />
         </el-row>
         </el-row>
         <kt-common-table
         <kt-common-table
-          permsEdit="judgeRule:judgeRule:edit"
-          permsDelete="judgeRule:judgeRule:delete"
+          permsEdit="sys:validateEntry:edit"
+          permsDelete="sys:validateEntry:delete"
           :data="pageResult"
           :data="pageResult"
           :columns="columns"
           :columns="columns"
           editButtonName="编辑"
           editButtonName="编辑"

+ 4 - 10
src/views/ProductManage/Newcarrule/MaintenanceRule.vue

@@ -2,24 +2,18 @@
   <div>
   <div>
     <el-main ref="elMain" style="padding: 0px">
     <el-main ref="elMain" style="padding: 0px">
       <!-- 工具区域Start -->
       <!-- 工具区域Start -->
-      <el-row style="margin: 0px 20px">
+      <el-row style="margin-bottom: 20px">
         <kt-button
         <kt-button
-          style="
-            background-color: #52c578;
-            border: #52c578;
-            margin-left: 15px;
-            margin-bottom: 20px;
-          "
           icon="fa fa-plus"
           icon="fa fa-plus"
           label="添加"
           label="添加"
           type="primary"
           type="primary"
-          perms="sys:dept:add"
+          perms="sys:maintenanceRule:add"
           @click="handleAddjudgeRule"
           @click="handleAddjudgeRule"
         />
         />
       </el-row>
       </el-row>
       <kt-common-table
       <kt-common-table
-        permsEdit="judgeRule:judgeRule:edit"
-        permsDelete="judgeRule:judgeRule:delete"
+        permsEdit="sys:maintenanceRule:edit"
+        permsDelete="sys:maintenanceRule:delete"
         :data="pageResult"
         :data="pageResult"
         :columns="columns"
         :columns="columns"
         editButtonName="编辑"
         editButtonName="编辑"

+ 3 - 3
src/views/ProductManage/OtherInsurance/AppSaleProductConfig.vue

@@ -7,7 +7,7 @@
 		</div>
 		</div>
 		<!-- 搜索区域 -->
 		<!-- 搜索区域 -->
 		<div class="com-pro-search">
 		<div class="com-pro-search">
-			<el-form label-position="left" ref="searchForm" size="medium" :model="searchForm" label-width="90px">
+			<el-form label-position="left" ref="searchForm" size="samll" :model="searchForm" label-width="90px">
 				<el-row>
 				<el-row>
 					<el-col :span="8">
 					<el-col :span="8">
 						<el-form-item  label="产品代码">
 						<el-form-item  label="产品代码">
@@ -62,8 +62,8 @@
 						</el-form-item>
 						</el-form-item>
 					</el-col>
 					</el-col>
 					<el-col :span="8" style="margin-top: 2px;">
 					<el-col :span="8" style="margin-top: 2px;">
-						<el-button size="medium" type="primary" style="background-color: #00bc70;border:1px solid #00bc70;">查询</el-button>
-						<el-button size="medium" style="background-color: #FFFFFF;border:1px solid c6e2ff;">重置</el-button>
+						<el-button size="samll" type="primary" >查询</el-button>
+						<el-button size="samll">重置</el-button>
 					</el-col>
 					</el-col>
 				</el-row>
 				</el-row>
 			</el-form>
 			</el-form>

+ 4 - 4
src/views/ProductManage/OtherInsurance/ProductEntry.vue

@@ -7,7 +7,7 @@
 		</div>
 		</div>
 		<!-- 搜索区域 -->
 		<!-- 搜索区域 -->
 		<div class="com-pro-search">
 		<div class="com-pro-search">
-			<el-form label-position="left" ref="searchForm" size="medium" :model="searchForm" label-width="90px">
+			<el-form label-position="left" ref="searchForm" size="small" :model="searchForm" label-width="90px">
 				<el-row>
 				<el-row>
 					<el-col :span="8">
 					<el-col :span="8">
 						<el-form-item  label="产品代码">
 						<el-form-item  label="产品代码">
@@ -71,15 +71,15 @@
 						</el-form-item>
 						</el-form-item>
 					</el-col>
 					</el-col>
 					<el-col :span="8" style="margin-top: 2px;">
 					<el-col :span="8" style="margin-top: 2px;">
-						<el-button size="medium" type="primary" style="background-color: #00bc70;border:1px solid #00bc70;">查询</el-button>
-						<el-button size="medium" style="background-color: #FFFFFF;border:1px solid c6e2ff;">重置</el-button>
+						<el-button size="small" type="primary" >查询</el-button>
+						<el-button size="small" >重置</el-button>
 					</el-col>
 					</el-col>
 				</el-row>
 				</el-row>
 			</el-form>
 			</el-form>
 		</div>
 		</div>
 		<!-- 操作按钮 -->
 		<!-- 操作按钮 -->
 		<div class="data-table-caption">
 		<div class="data-table-caption">
-			<el-button size="small" type="primary" icon="fa fa-plus" @click="handleCommand('1-新增产品-productId-'+null+'-proForm-'+null)" style="background-color: #00bc70;border:1px solid #00bc70;"> 新增</el-button>
+			<el-button size="small" v-permission="'sys:productEntry:add'" type="primary" icon="fa fa-plus" @click="handleCommand('1-新增产品-productId-'+null+'-proForm-'+null)" > 新增</el-button>
 			<el-button size="small">上架</el-button>
 			<el-button size="small">上架</el-button>
 			<el-button size="small">下架</el-button>
 			<el-button size="small">下架</el-button>
 		</div>
 		</div>

+ 20 - 19
src/views/ProductManage/OtherInsurance/ProductEntry1.vue

@@ -38,7 +38,7 @@
           <el-row>
           <el-row>
             <el-col :span="8">
             <el-col :span="8">
               <el-form-item label="保险公司">
               <el-form-item label="保险公司">
-                <el-cascader ref="insuranceCascaderRef1"   style="width: 100%;"
+                <el-cascader ref="insuranceCascaderRef1"   style="width: 85%;"
                              v-model="searchForm.companyId" :show-all-levels="false" :options="prodInsurance"
                              v-model="searchForm.companyId" :show-all-levels="false" :options="prodInsurance"
                              :props="optionProps" @change="prodhandleChange1" clearable filterable></el-cascader>
                              :props="optionProps" @change="prodhandleChange1" clearable filterable></el-cascader>
               </el-form-item>
               </el-form-item>
@@ -75,15 +75,13 @@
           <el-row type="flex"  justify="end">
           <el-row type="flex"  justify="end">
             <el-col :span="4"  style="margin-top: 2px">
             <el-col :span="4"  style="margin-top: 2px">
               <el-button
               <el-button
-                size="medium"
+                size="small"
                 type="primary"
                 type="primary"
-                style="background-color: #00bc70; border: 1px solid #00bc70"
                 @click="queryProduct"
                 @click="queryProduct"
               >查询</el-button>
               >查询</el-button>
               <el-button
               <el-button
-                size="medium"
+                size="small"
                 @click="resetQueryConditions"
                 @click="resetQueryConditions"
-                style="background-color: #ffffff; border: 1px solid c6e2ff"
               >重置</el-button>
               >重置</el-button>
             </el-col>
             </el-col>
           </el-row>
           </el-row>
@@ -91,13 +89,13 @@
       </div>
       </div>
       <!-- 操作按钮 -->
       <!-- 操作按钮 -->
       <div class="data-table-caption">
       <div class="data-table-caption">
-        <el-button
-          size="small"
-          type="primary"
+        <kt-button
           icon="fa fa-plus"
           icon="fa fa-plus"
-          style="background-color: #00bc70; border: 1px solid #00bc70"
+          label="添加产品"
+          type="primary"
+          perms="sys:productEntry1:add" 
           @click="addProduct"
           @click="addProduct"
-        >添加产品</el-button>
+        />
       </div>
       </div>
       <!-- 查询结果-->
       <!-- 查询结果-->
       <div class="table-wrap">
       <div class="table-wrap">
@@ -133,13 +131,13 @@
             <el-table-column prop="validEndDate" label="销售结束时间" min-width="140"></el-table-column>
             <el-table-column prop="validEndDate" label="销售结束时间" min-width="140"></el-table-column>
             <el-table-column fixed="right" label="操作" width="120">
             <el-table-column fixed="right" label="操作" width="120">
               <template slot-scope="scope">
               <template slot-scope="scope">
-                <el-button
-                  @click="editProduct(scope.$index, scope.row,'Edit')"
-                  type="primary"
-                  icon="el-icon-edit"
-                  style="background-color: #00bc70; border: 1px solid #00bc70"
-                  size="small"
-                >编辑明细</el-button>
+                <kt-button
+                icon="fa fa-edit"
+                label="编辑明细"
+                type="primary"
+                perms="sys:productEntry1:edit" 
+                @click="editProduct(scope.$index, scope.row,'Edit')"
+              />
               </template>
               </template>
             </el-table-column>
             </el-table-column>
           </el-table>
           </el-table>
@@ -504,10 +502,13 @@ import Cookies from "js-cookie";
 import tree from "@/components/ztree.vue"; //机构树组件
 import tree from "@/components/ztree.vue"; //机构树组件
 import { pathToBase64, base64ToPath } from "@/common/image-tools-base64.js";
 import { pathToBase64, base64ToPath } from "@/common/image-tools-base64.js";
 import Editor from "../../../components/Tinymce";
 import Editor from "../../../components/Tinymce";
+import KtButton from "@/views/Core/KtButton"; //按钮权限组件
+
 export default {
 export default {
   components: {
   components: {
     tree,
     tree,
-    Editor
+    Editor,
+    KtButton
   },
   },
   computed: {
   computed: {
     pickerOptionsEnd() {
     pickerOptionsEnd() {
@@ -1236,7 +1237,7 @@ export default {
     }
     }
   }
   }
   .com-pro-search {
   .com-pro-search {
-    margin-bottom: 10px;
+    margin: 10px 0;
     .el-form {
     .el-form {
       padding: 0px 20px;
       padding: 0px 20px;
       box-sizing: border-box;
       box-sizing: border-box;

+ 5 - 5
src/views/ProductManage/Package/PackageEntry.vue

@@ -2,19 +2,19 @@
   <div>
   <div>
     <el-main ref="elMain" style="padding: 0px;">
     <el-main ref="elMain" style="padding: 0px;">
       <!-- 工具区域Start -->
       <!-- 工具区域Start -->
-      <el-row style="margin: 0px 20px;">
+      <el-row >
         <kt-button
         <kt-button
-          style="background-color: #52C578;border:#52C578;margin-left: 15px;margin-bottom: 20px;"
+          style="margin-bottom: 20px;"
           icon="fa fa-plus"
           icon="fa fa-plus"
           label="添加产品"
           label="添加产品"
           type="primary"
           type="primary"
-          perms="sys:dept:add"
+          perms="sys:packageEntry:add" 
           @click="handleAddProduct"
           @click="handleAddProduct"
         />
         />
       </el-row>
       </el-row>
       <kt-common-table
       <kt-common-table
-        permsEdit="product:product:edit"
-        permsDelete="product:product:delete"
+        permsEdit="sys:packageEntry:edit"
+        permsDelete="sys:packageEntry:delete"
         :data="pageResult"
         :data="pageResult"
         :columns="columns"
         :columns="columns"
         editButtonName="编辑"
         editButtonName="编辑"