小组权限批处理权限与文件权限管理调整
This commit is contained in:
parent
d051bd24c2
commit
d510de5f82
@ -73,7 +73,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="havingVersionManagePerm && tableData.length > 1"
|
v-if="(isOlderVersion ? havingVersionManagePerm : filePerm.havingVersionManagePerm ) && tableData.length > 1"
|
||||||
prop="name"
|
prop="name"
|
||||||
label="使用"
|
label="使用"
|
||||||
align="center"
|
align="center"
|
||||||
@ -94,9 +94,9 @@
|
|||||||
label="操作">
|
label="操作">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <el-tooltip content="以当前版本为模版创建新版本文件" placement="bottom" hide-after="3000">-->
|
<!-- <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>-->
|
<!-- </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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -157,7 +157,13 @@
|
|||||||
addNewVersionVisible: false,
|
addNewVersionVisible: false,
|
||||||
currentVersion: '',
|
currentVersion: '',
|
||||||
currentId: '',
|
currentId: '',
|
||||||
isLargeIteration: true
|
isLargeIteration: true,
|
||||||
|
isOlderVersion: true,
|
||||||
|
filePerm:{
|
||||||
|
havingRemovePerm:false,
|
||||||
|
havingVersionManagePerm: false,
|
||||||
|
havingWritePerm: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -209,6 +215,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
that.tableData = ro.data.tableData;
|
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 {
|
} else {
|
||||||
that.$message.error(ro.msg);
|
that.$message.error(ro.msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user