搜索模型后增加版本管理
This commit is contained in:
parent
ef1ec3312a
commit
47f2acdb30
@ -51,10 +51,15 @@
|
|||||||
<el-dropdown-item class="el-dropdown-row" @click.native="exportFiles(mainRepository.id)">
|
<el-dropdown-item class="el-dropdown-row" @click.native="exportFiles(mainRepository.id)">
|
||||||
<div style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"></span><span style="font-size: 12px;">导出</span></div>
|
<div style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"></span><span style="font-size: 12px;">导出</span></div>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
|
<el-dropdown-item class="el-dropdown-row" @click.native="openRepositoryInfoById('version',mainRepository)">
|
||||||
|
<div style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"></span><span style="font-size: 12px;">版本管理</span></div>
|
||||||
|
</el-dropdown-item>
|
||||||
<el-dropdown-item v-if="(isOlderVersion ? havingWritePerm : mainRepository.havingWritePerm)" divided style="height: 30px;line-height: 30px;" @click.native="removeFiles(mainRepository.id)">
|
<el-dropdown-item v-if="(isOlderVersion ? havingWritePerm : mainRepository.havingWritePerm)" divided style="height: 30px;line-height: 30px;" @click.native="removeFiles(mainRepository.id)">
|
||||||
<div class="text-important-color" style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"><i class="iconfont icon-lajitong1" style="font-size: 12px;"></i></span><span style="font-size: 12px;">删除模型</span></div>
|
<div class="text-important-color" style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"><i class="iconfont icon-lajitong1" style="font-size: 12px;"></i></span><span style="font-size: 12px;">删除模型</span></div>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
@ -189,6 +194,9 @@
|
|||||||
<el-dropdown-item class="el-dropdown-row" @click.native="exportFiles(scope.row.id)">
|
<el-dropdown-item class="el-dropdown-row" @click.native="exportFiles(scope.row.id)">
|
||||||
<div style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"></span><span style="font-size: 12px;">导出</span></div>
|
<div style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"></span><span style="font-size: 12px;">导出</span></div>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
|
<el-dropdown-item class="el-dropdown-row" @click.native="openRepositoryInfo('version')">
|
||||||
|
<div style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"></span><span style="font-size: 12px;">版本管理</span></div>
|
||||||
|
</el-dropdown-item>
|
||||||
<el-dropdown-item v-if="(isOlderVersion ? havingWritePerm : scope.row.havingWritePerm)" divided style="height: 30px;line-height: 30px;" @click.native="removeFiles(scope.row.id)">
|
<el-dropdown-item v-if="(isOlderVersion ? havingWritePerm : scope.row.havingWritePerm)" divided style="height: 30px;line-height: 30px;" @click.native="removeFiles(scope.row.id)">
|
||||||
<div class="text-important-color" style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"><i class="iconfont icon-lajitong1" style="font-size: 12px;"></i></span><span style="font-size: 12px;">删除模型</span></div>
|
<div class="text-important-color" style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"><i class="iconfont icon-lajitong1" style="font-size: 12px;"></i></span><span style="font-size: 12px;">删除模型</span></div>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
@ -1535,7 +1543,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
openRepositoryInfo(type) {// 打开文件属性、版本管理、附件管理
|
openRepositoryInfo(type) {// 打开文件属性、版本管理、附件管理'
|
||||||
let that = this;
|
let that = this;
|
||||||
//三员管理
|
//三员管理
|
||||||
if(that.isHighSecurity && that.isFileSecurity){
|
if(that.isHighSecurity && that.isFileSecurity){
|
||||||
@ -1560,6 +1568,38 @@
|
|||||||
this.$refs.repositoryInfo.openRepositoryInfoDlg(this, this.currRepositoryDetail.id, this.currRepositoryDetail.version, type, this.currRepositoryDetail.isUse, this.currRepositoryDetail.isPublish, this.currRepositoryDetail.isStop, this.currRepositoryDetail.isApproval, this.currRepositoryDetail.methodId);
|
this.$refs.repositoryInfo.openRepositoryInfoDlg(this, this.currRepositoryDetail.id, this.currRepositoryDetail.version, type, this.currRepositoryDetail.isUse, this.currRepositoryDetail.isPublish, this.currRepositoryDetail.isStop, this.currRepositoryDetail.isApproval, this.currRepositoryDetail.methodId);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重新打开版本管理
|
||||||
|
* @param currRepositoryDetailId
|
||||||
|
*/
|
||||||
|
openRepositoryInfoById(type,mainRepository) {// 打开文件属性、版本管理、附件管理
|
||||||
|
let that = this;
|
||||||
|
//三员管理
|
||||||
|
if(that.isHighSecurity && that.isFileSecurity){
|
||||||
|
const data = {
|
||||||
|
url:'jd',
|
||||||
|
data:{
|
||||||
|
cmd: 'com.actionsoft.apps.coe.pal_pl_file_permission_query',
|
||||||
|
uuid: mainRepository.id,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
awsuiAxios.post(data).then(function (ro) {
|
||||||
|
if(ro.result == 'ok') {
|
||||||
|
that.$refs.repositoryInfo.openRepositoryInfoDlg(that, mainRepository.id, mainRepository.version, type, mainRepository.isUse, mainRepository.isPublish, mainRepository.isStop, mainRepository.isApproval, mainRepository.methodId);
|
||||||
|
}else{
|
||||||
|
that.$message.error(ro.msg);
|
||||||
|
}
|
||||||
|
}).catch(error=>{
|
||||||
|
console.log(error);
|
||||||
|
that.$message.error(error.msg);
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
this.$refs.repositoryInfo.openRepositoryInfoDlg(this, mainRepository.id, mainRepository.version, type, mainRepository.isUse, mainRepository.isPublish, mainRepository.isStop, mainRepository.isApproval, mainRepository.methodId);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
positionRepositoryPath(id, versionId) {// 路径定位模型文件
|
positionRepositoryPath(id, versionId) {// 路径定位模型文件
|
||||||
const arr = [];
|
const arr = [];
|
||||||
for (let i = 0; i < this.repositoryPathData.length; i++) {
|
for (let i = 0; i < this.repositoryPathData.length; i++) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user