From 427c876d16ba2e310b90092ab65af40f96c672f4 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期五, 19 四月 2024 10:47:45 +0800 Subject: [PATCH] 接口权限精确到按钮补充 --- src/views/system/point/index.vue | 6 ++++++ src/views/system/unit/people/index.vue | 6 ++++++ src/views/system/region/index.vue | 6 ++++++ src/views/system/report/index.vue | 5 ++++- src/views/system/unit/index.vue | 6 ++++++ src/views/system/work-order/index.vue | 1 + 6 files changed, 29 insertions(+), 1 deletions(-) diff --git a/src/views/system/point/index.vue b/src/views/system/point/index.vue index 578d5c0..c8b775e 100644 --- a/src/views/system/point/index.vue +++ b/src/views/system/point/index.vue @@ -49,6 +49,7 @@ size="mini" :disabled="single" @click="handleUpdate" + v-hasPermi="['point:edit']" >淇敼</el-button> </el-col> <el-col :span="1.5"> @@ -59,6 +60,7 @@ size="mini" :disabled="multiple" @click="handleDelete" + v-hasPermi="['point:remove']" >鍒犻櫎</el-button> </el-col> <el-col :span="1.5"> @@ -68,6 +70,7 @@ icon="el-icon-top" size="mini" @click="handleImportPoint" + v-hasPermi="['point:import']" >瀵煎叆鐐逛綅</el-button> </el-col> <el-col :span="1.5"> @@ -77,6 +80,7 @@ icon="el-icon-receiving" size="mini" @click="handleEditBatch" + v-hasPermi="['point:edit']" >鎵归噺淇敼</el-button> </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> @@ -116,12 +120,14 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" + v-hasPermi="['point:edit']" >淇敼</el-button> <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" + v-hasPermi="['point:remove']" >鍒犻櫎</el-button> </template> </el-table-column> diff --git a/src/views/system/region/index.vue b/src/views/system/region/index.vue index 76c643d..e9027d9 100644 --- a/src/views/system/region/index.vue +++ b/src/views/system/region/index.vue @@ -45,6 +45,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" + v-hasPermi="['system:report:add']" >鏂板</el-button> </el-col> <el-col :span="1.5"> @@ -55,6 +56,7 @@ size="mini" :disabled="single" @click="handleUpdate" + v-hasPermi="['system:report:edit']" >淇敼</el-button> </el-col> <el-col :span="1.5"> @@ -65,6 +67,7 @@ size="mini" :disabled="multiple" @click="handleDelete" + v-hasPermi="['system:report:remove']" >鍒犻櫎</el-button> </el-col> <el-col :span="1.5"> @@ -74,6 +77,7 @@ icon="el-icon-download" size="mini" @click="handleExport" + v-hasPermi="['system:report:export']" >瀵煎嚭</el-button> </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> @@ -103,12 +107,14 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" + v-hasPermi="['system:report:edit']" >淇敼</el-button> <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" + v-hasPermi="['system:report:remove']" >鍒犻櫎</el-button> </template> </el-table-column> diff --git a/src/views/system/report/index.vue b/src/views/system/report/index.vue index 474fafb..f399ce2 100644 --- a/src/views/system/report/index.vue +++ b/src/views/system/report/index.vue @@ -52,6 +52,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" + v-hasPermi="['system:report:add']" >鏂板</el-button> </el-col> <!-- <el-col :span="1.5">--> @@ -72,6 +73,7 @@ size="mini" :disabled="multiple" @click="handleDelete" + v-hasPermi="['system:report:remove']" >鍒犻櫎</el-button> </el-col> <el-col :span="1.5"> @@ -81,6 +83,7 @@ icon="el-icon-download" size="mini" @click="handleExport" + v-hasPermi="['system:report:export']" >瀵煎嚭</el-button> </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> @@ -118,7 +121,7 @@ type="text" icon="el-icon-edit" @click="handleAuditing(scope.row)" - v-hasPermi="['system:report:audit']" + v-hasPermi="['system:report:edit']" v-if="scope.row.status === 0" >瀹℃牳</el-button> <el-button diff --git a/src/views/system/unit/index.vue b/src/views/system/unit/index.vue index 1cf35f6..1ec0f28 100644 --- a/src/views/system/unit/index.vue +++ b/src/views/system/unit/index.vue @@ -44,6 +44,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" + v-hasPermi="['unit:add']" >鏂板</el-button> </el-col> <el-col :span="1.5"> @@ -54,6 +55,7 @@ size="mini" :disabled="single" @click="handleUpdate" + v-hasPermi="['unit:edit']" >淇敼</el-button> </el-col> <el-col :span="1.5"> @@ -64,6 +66,7 @@ size="mini" :disabled="multiple" @click="handleDelete" + v-hasPermi="['unit:remove']" >鍒犻櫎</el-button> </el-col> <el-col :span="1.5"> @@ -73,6 +76,7 @@ icon="el-icon-download" size="mini" @click="handleExport" + v-hasPermi="['unit:export']" >瀵煎嚭</el-button> </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> @@ -94,12 +98,14 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" + v-hasPermi="['unit:edit']" >淇敼</el-button> <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" + v-hasPermi="['unit:remove']" >鍒犻櫎</el-button> </template> </el-table-column> diff --git a/src/views/system/unit/people/index.vue b/src/views/system/unit/people/index.vue index c78430f..65b6b0d 100644 --- a/src/views/system/unit/people/index.vue +++ b/src/views/system/unit/people/index.vue @@ -43,6 +43,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" + v-hasPermi="['unit:people:add']" >鏂板</el-button> </el-col> <el-col :span="1.5"> @@ -53,6 +54,7 @@ size="mini" :disabled="single" @click="handleUpdate" + v-hasPermi="['unit:people:edit']" >淇敼</el-button> </el-col> <el-col :span="1.5"> @@ -63,6 +65,7 @@ size="mini" :disabled="multiple" @click="handleDelete" + v-hasPermi="['unit:people:remove']" >鍒犻櫎</el-button> </el-col> <el-col :span="1.5"> @@ -72,6 +75,7 @@ icon="el-icon-download" size="mini" @click="handleExport" + v-hasPermi="['unit:people:export']" >瀵煎嚭</el-button> </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> @@ -92,12 +96,14 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" + v-hasPermi="['unit:people:edit']" >淇敼</el-button> <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" + v-hasPermi="['unit:people:remove']" >鍒犻櫎</el-button> </template> </el-table-column> diff --git a/src/views/system/work-order/index.vue b/src/views/system/work-order/index.vue index e43db29..f558e8b 100644 --- a/src/views/system/work-order/index.vue +++ b/src/views/system/work-order/index.vue @@ -84,6 +84,7 @@ size="mini" type="text" @click="handleReport(item)" + v-hasPermi="['system:report:add']" >浜嬪悗鎶ュ</el-button> </el-row> </div> -- Gitblit v1.8.0