小组权限批处理权限与文件权限管理调整

This commit is contained in:
anhc 2022-07-11 10:22:21 +08:00
parent d051bd24c2
commit d510de5f82

View File

@ -73,7 +73,7 @@
</template>
</template>
<el-table-column
v-if="havingVersionManagePerm && tableData.length > 1"
v-if="(isOlderVersion ? havingVersionManagePerm : filePerm.havingVersionManagePerm ) && tableData.length > 1"
prop="name"
label="使用"
align="center"
@ -94,9 +94,9 @@
label="操作">
<template slot-scope="scope">
<!-- <el-tooltip content="以当前版本为模版创建新版本文件" placement="bottom" hide-after="3000">-->
<i v-if="havingWritePerm" class="iconfont icon-fuzhi operate-icon-display" style="cursor: pointer;" @click="createNewVersion(scope.row.id, scope.row.versionNo)"></i>
<i v-if="isOlderVersion ? havingWritePerm : filePerm.havingWritePerm" class="iconfont icon-fuzhi operate-icon-display" style="cursor: pointer;" @click="createNewVersion(scope.row.id, scope.row.versionNo)"></i>
<!-- </el-tooltip>-->
<i v-if="havingRemovePerm && !isCorrelatebpms && !scope.row.isUse && !scope.row.isPublish && !scope.row.isApproval" class="iconfont icon-lajitong1 operate-icon-display" style="cursor: pointer;padding-left: 5px;" @click="deleteRepository(scope.row.id, scope.row.versionNo)"></i>
<i v-if="(isOlderVersion ? havingRemovePerm : filePerm.havingRemovePerm )&& !isCorrelatebpms && !scope.row.isUse && !scope.row.isPublish && !scope.row.isApproval" class="iconfont icon-lajitong1 operate-icon-display" style="cursor: pointer;padding-left: 5px;" @click="deleteRepository(scope.row.id, scope.row.versionNo)"></i>
</template>
</el-table-column>
</el-table>
@ -157,7 +157,13 @@
addNewVersionVisible: false,
currentVersion: '',
currentId: '',
isLargeIteration: true
isLargeIteration: true,
isOlderVersion: true,
filePerm:{
havingRemovePerm:false,
havingVersionManagePerm: false,
havingWritePerm: false
}
}
},
created() {
@ -209,6 +215,10 @@
}
}
that.tableData = ro.data.tableData;
that.isOlderVersion = ro.data.isOlderVersion;
that.filePerm.havingWritePerm = ro.data.havingWritePerm;
that.filePerm.havingRemovePerm = ro.data.havingRemovePerm;
that.filePerm.havingVersionManagePerm = ro.data.havingVersionManagePerm;
} else {
that.$message.error(ro.msg);
}