Browse Source

权限修改2

JXDS18FUJT 2 years ago
parent
commit
a80ee238ec

+ 2 - 2
src/views/price/engine/index.vue

@@ -277,8 +277,8 @@ emissionStandard">
       <el-table-column label="操作" align="center" width="150px" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <div style="display:flex">
-            <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button>
-            <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
+            <el-button v-hasPermi="['engine:info:update']" size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button>
+            <el-button v-hasPermi="['engine:info:remove']" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
             <el-button @click="() => {
               $router.push('/gallery?id=' + scope.row.id + '&type=2')
             

+ 2 - 2
src/views/price/generator/hz50/index.vue

@@ -157,13 +157,13 @@
                 <template slot-scope="scope">
                     <div style="display:inline-flex">
                         <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
-                            v-hasPermi="['fdj:info:edit']">修改</el-button>
+                            v-hasPermi="['price:generator:hz60:update']">修改</el-button>
                         <el-button @click="() => {
                             $router.push('/gallery?id=' + scope.row.id + '&type=4')
                         
                         }" size="mini" type="text" icon="el-icon-picture-outline">图片</el-button>
                         <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
-                            v-hasPermi="['fdj:info:remove']">删除</el-button>
+                            v-hasPermi="['price:generator:hz60:remove']">删除</el-button>
                     </div>
                 </template>
             </el-table-column>

+ 2 - 2
src/views/price/generator/hz60/index.vue

@@ -156,13 +156,13 @@
                 <template slot-scope="scope">
                     <div style="display:inline-flex">
                         <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
-                            v-hasPermi="['fdj:info:edit']">修改</el-button>
+                            v-hasPermi="['price:generator:hz60:update']">修改</el-button>
                         <el-button @click="() => {
                             $router.push('/gallery?id=' + scope.row.id + '&type=5')
                         
                         }" size="mini" type="text" icon="el-icon-picture-outline">图片</el-button>
                         <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
-                            v-hasPermi="['fdj:info:remove']">删除</el-button>
+                            v-hasPermi="['price:generator:hz60:remove']">删除</el-button>
                     </div>
                 </template>
             </el-table-column>