jinhui.wang

按钮权限修改

...@@ -116,18 +116,20 @@ ...@@ -116,18 +116,20 @@
116 <template slot="optionColumn"> 116 <template slot="optionColumn">
117 <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> 117 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
118 <template slot-scope="scope"> 118 <template slot-scope="scope">
119 - <el-button class="mr5" v-if="scope.row.serviceCodeMapperList" size="mini" type="text" 119 + <div v-hasPermi="['system:dictionary:add']">
120 - icon="el-icon-plus" 120 + <el-button class="mr5" v-if="scope.row.serviceCodeMapperList" size="mini" type="text"
121 - @click="addDic({ status: 'childrenAdd', data: scope.row.chineseName })" 121 + icon="el-icon-plus"
122 - v-hasPermi="['system:dictionary:add']">新增子集 122 + @click="addDic({ status: 'childrenAdd', data: scope.row.chineseName })">新增子集
123 - </el-button> 123 + </el-button>
124 + </div>
124 <!-- <el-button class="mr5" size="mini" type="text" icon="el-icon-edit" 125 <!-- <el-button class="mr5" size="mini" type="text" icon="el-icon-edit"
125 @click="upDate({ status: 'update', data: scope.row })">修改 126 @click="upDate({ status: 'update', data: scope.row })">修改
126 </el-button> --> 127 </el-button> -->
127 - <el-button v-if="!scope.row.serviceCodeMapperList" size="mini" type="text" 128 + <div v-hasPermi="['system:dictionary:delete']">
128 - style="color:#ff4949" icon="el-icon-delete" @click="delDict(scope.row)" 129 + <el-button v-if="!scope.row.serviceCodeMapperList" size="mini" type="text"
129 - v-hasPermi="['system:dictionary:delete']">删除 130 + style="color:#ff4949" icon="el-icon-delete" @click="delDict(scope.row)">删除
130 - </el-button> 131 + </el-button>
132 + </div>
131 </template> 133 </template>
132 </el-table-column> 134 </el-table-column>
133 </template> 135 </template>
......