fix(文件管理): 编辑页面权限控制及样式调整

--bug=1016005 --user=赵勇 【项目设置】文件管理只有查询权限的时候,查看详情窗口中可以下载和删除文件 https://www.tapd.cn/55049933/s/1227482
This commit is contained in:
fit2-zhao 2022-08-19 10:26:18 +08:00 committed by f2c-ci-robot[bot]
parent 971d0e4d80
commit 4bfbeade77
2 changed files with 10 additions and 3 deletions

View File

@ -3,8 +3,8 @@
@close="saveAndClose" destroy-on-close ref="editFile">
<span slot="title" class="dialog-footer">
<span>{{ data.name }}</span>
<i class="el-icon-download ms-header-menu" @click="download"/>
<i class="el-icon-delete ms-header-menu" @click="deleteData"/>
<i class="el-icon-download ms-header-menu" @click="download" v-permission="['PROJECT_FILE:READ+DOWNLOAD+JAR']"/>
<i class="el-icon-delete ms-header-menu" @click="deleteData" v-permission="['PROJECT_FILE:READ+DELETE+JAR']"/>
</span>
<el-row align="center" v-loading="loading">
<el-col style="margin: 10px" :span="10">
@ -84,7 +84,8 @@
action="#"
:before-upload="beforeUploadFile"
:http-request="handleUpload"
:show-file-list="false">
:show-file-list="false"
v-permission="['PROJECT_FILE:READ+UPLOAD+JAR']">
<el-button icon="el-icon-plus" size="mini"/>
</el-upload>
</el-form-item>
@ -97,6 +98,7 @@
<script>
import {getCurrentProjectID, operationConfirm} from "@/common/js/utils";
import {hasPermission} from "../../../../../../common/js/utils";
export default {
name: "MsEditFileMetadata",

View File

@ -39,6 +39,7 @@
<ms-table-column
sortable
prop="type"
:min-width="120"
:filters="typeFilters"
:label="$t('load_test.file_type')">
</ms-table-column>
@ -72,16 +73,19 @@
<ms-table-column
sortable
prop="createUser"
:min-width="120"
:label="$t('commons.create_user')">
</ms-table-column>
<ms-table-column
sortable
prop="updateUser"
:min-width="120"
:label="$t('ui.update_user')">
</ms-table-column>
<ms-table-column
sortable
:label="$t('commons.create_time')"
:min-width="120"
prop="createTime">
<template v-slot="scope">
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
@ -90,6 +94,7 @@
<ms-table-column
sortable
:min-width="120"
:label="$t('commons.update_time')"
prop="updateTime">
<template v-slot="scope">