fix(文件管理): 编辑页面权限控制及样式调整
--bug=1016005 --user=赵勇 【项目设置】文件管理只有查询权限的时候,查看详情窗口中可以下载和删除文件 https://www.tapd.cn/55049933/s/1227482
This commit is contained in:
parent
971d0e4d80
commit
4bfbeade77
|
@ -3,8 +3,8 @@
|
||||||
@close="saveAndClose" destroy-on-close ref="editFile">
|
@close="saveAndClose" destroy-on-close ref="editFile">
|
||||||
<span slot="title" class="dialog-footer">
|
<span slot="title" class="dialog-footer">
|
||||||
<span>{{ data.name }}</span>
|
<span>{{ data.name }}</span>
|
||||||
<i class="el-icon-download ms-header-menu" @click="download"/>
|
<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"/>
|
<i class="el-icon-delete ms-header-menu" @click="deleteData" v-permission="['PROJECT_FILE:READ+DELETE+JAR']"/>
|
||||||
</span>
|
</span>
|
||||||
<el-row align="center" v-loading="loading">
|
<el-row align="center" v-loading="loading">
|
||||||
<el-col style="margin: 10px" :span="10">
|
<el-col style="margin: 10px" :span="10">
|
||||||
|
@ -84,7 +84,8 @@
|
||||||
action="#"
|
action="#"
|
||||||
:before-upload="beforeUploadFile"
|
:before-upload="beforeUploadFile"
|
||||||
:http-request="handleUpload"
|
: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-button icon="el-icon-plus" size="mini"/>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -97,6 +98,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getCurrentProjectID, operationConfirm} from "@/common/js/utils";
|
import {getCurrentProjectID, operationConfirm} from "@/common/js/utils";
|
||||||
|
import {hasPermission} from "../../../../../../common/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "MsEditFileMetadata",
|
name: "MsEditFileMetadata",
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
<ms-table-column
|
<ms-table-column
|
||||||
sortable
|
sortable
|
||||||
prop="type"
|
prop="type"
|
||||||
|
:min-width="120"
|
||||||
:filters="typeFilters"
|
:filters="typeFilters"
|
||||||
:label="$t('load_test.file_type')">
|
:label="$t('load_test.file_type')">
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
|
@ -72,16 +73,19 @@
|
||||||
<ms-table-column
|
<ms-table-column
|
||||||
sortable
|
sortable
|
||||||
prop="createUser"
|
prop="createUser"
|
||||||
|
:min-width="120"
|
||||||
:label="$t('commons.create_user')">
|
:label="$t('commons.create_user')">
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
<ms-table-column
|
<ms-table-column
|
||||||
sortable
|
sortable
|
||||||
prop="updateUser"
|
prop="updateUser"
|
||||||
|
:min-width="120"
|
||||||
:label="$t('ui.update_user')">
|
:label="$t('ui.update_user')">
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
<ms-table-column
|
<ms-table-column
|
||||||
sortable
|
sortable
|
||||||
:label="$t('commons.create_time')"
|
:label="$t('commons.create_time')"
|
||||||
|
:min-width="120"
|
||||||
prop="createTime">
|
prop="createTime">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
|
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
|
||||||
|
@ -90,6 +94,7 @@
|
||||||
|
|
||||||
<ms-table-column
|
<ms-table-column
|
||||||
sortable
|
sortable
|
||||||
|
:min-width="120"
|
||||||
:label="$t('commons.update_time')"
|
:label="$t('commons.update_time')"
|
||||||
prop="updateTime">
|
prop="updateTime">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
|
|
Loading…
Reference in New Issue