|
@@ -14,10 +14,10 @@
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-upload :action="webHost + '/common/upload'" :headers="headers" :on-success="handleSuccess"
|
|
<el-upload :action="webHost + '/common/upload'" :headers="headers" :on-success="handleSuccess"
|
|
:on-exceed="handleExceed" :before-upload="beforeUpload" :show-file-list="false">
|
|
: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-button>
|
|
</el-upload>
|
|
</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-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -29,11 +29,11 @@
|
|
<el-table-column label="图纸" prop="drawingName" align="center" />
|
|
<el-table-column label="图纸" prop="drawingName" align="center" />
|
|
<el-table-column fixed="right" label="操作" align="center" width="140px">
|
|
<el-table-column fixed="right" label="操作" align="center" width="140px">
|
|
<template #default="scope">
|
|
<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>
|
|
- <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>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|