Explorar o código

0606电子图纸权限

ezhizao\ezhizao_zx hai 1 ano
pai
achega
2ca3f2fcfd

+ 5 - 5
src/views/business/product/drawingForm.vue

@@ -14,10 +14,10 @@
         <el-form-item>
           <el-upload :action="webHost + '/common/upload'" :headers="headers" :on-success="handleSuccess"
             :on-exceed="handleExceed" :before-upload="beforeUpload" :show-file-list="false">
-            <el-button type="success" icon="Plus">上传图纸
+            <el-button type="success" icon="Plus" v-hasPermi="['business:drawing:add']">上传图纸
             </el-button>
           </el-upload>
-          <el-button type="primary" icon="Search" @click="handleRecords" style="margin-left: 10px;">操作历史
+          <el-button type="primary" icon="Search"  v-hasPermi="['business:drawing:record']"  @click="handleRecords" style="margin-left: 10px;">操作历史
           </el-button>
         </el-form-item>
       </el-form>
@@ -29,11 +29,11 @@
           <el-table-column label="图纸" prop="drawingName" align="center" />
           <el-table-column fixed="right" label="操作" align="center" width="140px">
             <template #default="scope">
-              <el-button link type="primary" @click="handlePreview(scope.row)">预览
+              <el-button link type="primary" v-hasPermi="['business:drawing:preview']" @click="handlePreview(scope.row)">预览
               </el-button>
-              <el-button link type="success" plain @click="handleDownload(scope.row)">下载</el-button>
+              <el-button link type="success" plain v-hasPermi="['business:drawing:download']" @click="handleDownload(scope.row)">下载</el-button>
 
-              <el-button link type="danger" @click="handleDelete(scope.row.id)">删除
+              <el-button link type="danger" v-hasPermi="['business:drawing:remove']" @click="handleDelete(scope.row.id)">删除
               </el-button>
             </template>
           </el-table-column>

+ 1 - 1
src/views/business/product/index.vue

@@ -160,7 +160,7 @@
 							<el-table-column label="工序简称" align="center" prop="processAlias" />
 							<el-table-column v-if="!editStatus" label="操作" width="140px" align="center">
 								<template #default="scope">
-									<el-button link type="primary" @click="handleShowResourceGroupDetailForm(scope.row)"  v-hasPermi="['business:product:add']"> 图纸 </el-button>
+									<el-button link type="primary" @click="handleShowResourceGroupDetailForm(scope.row)"  v-hasPermi="['business:drawing:list']"> 图纸 </el-button>
 									<el-button v-show="false" v-if="scope.row.editStatus && !editStatus" link type="primary" icon="Check" @click="handleSaveTechnologicalProcessDetail(scope.row)" v-hasPermi="['business:product:add']"> 保存 </el-button>
 									<el-button v-show="false" v-else-if="!editStatus && !scope.row.editStatus" link type="warning" icon="Edit" @click.prevent="scope.row.editStatus = true" v-hasPermi="['business:product:edit']"> 编辑 </el-button>
 									<el-button v-show="false" link type="danger" icon="Delete" @click="handleDeleteTechnologicalProcessDetail(scope.row, scope.$index)" v-hasPermi="['business:product:remove']"> 删除 </el-button>