右侧收缩展开/IT系统图禁用删除

This commit is contained in:
zhal 2022-08-11 19:17:36 +08:00
parent 30087a6d3b
commit 3787bace15
3 changed files with 225 additions and 198 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -14,8 +14,8 @@
<label v-if="i == repositoryPathData.length-1" style="font-size: 14px;color: #384148"> <label v-if="i == repositoryPathData.length-1" style="font-size: 14px;color: #384148">
<span class="cur-title"> <span class="cur-title">
<span @click="initData">{{item.name}}</span> <span @click="initData">{{item.name}}</span>
<!--面包屑 中文件文件夹的操作--> <!--面包屑 中文件文件夹的操作-->
<div v-if="undefined != mainRepository" style="width: 16px; margin-left: 10px;" class="cur-title-operate"> <div v-if="undefined != mainRepository" style="width: 16px; margin-left: 10px;" class="cur-title-operate">
<div class="operate-icon-display"> <div class="operate-icon-display">
<el-dropdown <el-dropdown
@ -32,16 +32,16 @@
<el-dropdown-item v-if="!mainRepository.folder" class="el-dropdown-row" @click.native="openDesigner(mainRepository.id)"> <el-dropdown-item v-if="!mainRepository.folder" class="el-dropdown-row" @click.native="openDesigner(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 v-if="(mainRepository.methodId =='default' && (isOlderVersion ? havingWritePerm : mainRepository.havingWritePerm)) || mainRepository.methodId !='default'" divided/> <el-dropdown-item v-if="(mainRepository.methodId =='default' && (isOlderVersion ? havingWritePerm : mainRepository.havingWritePerm)) || mainRepository.methodId !='default'" divided/>
<el-dropdown-item v-if="mainRepository.isFavorite" class="el-dropdown-row" @click.native="setFavorite('0', mainRepository.versionId, mainRepository.id)"> <el-dropdown-item v-if="mainRepository.isFavorite" class="el-dropdown-row" @click.native="setFavorite('0', mainRepository.versionId, mainRepository.id)">
<div style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"><i class="iconfont" style="font-size: 12px;color: #FFB800;">&#xe618;</i></span><span style="font-size: 12px;">取消收藏</span></div> <div style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"><i class="iconfont" style="font-size: 12px;color: #FFB800;">&#xe618;</i></span><span style="font-size: 12px;">取消收藏</span></div>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-else class="el-dropdown-row" @click.native="setFavorite('1', mainRepository.versionId, mainRepository.id)"> <el-dropdown-item v-else class="el-dropdown-row" @click.native="setFavorite('1', mainRepository.versionId, mainRepository.id)">
<div style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"><i class="iconfont" style="font-size: 12px;">&#xe630;</i></span><span style="font-size: 12px;">收藏</span></div> <div style="height: 100%;width: 100%;font-size: 14px;"><span style="display: inline-block;width: 20px;"><i class="iconfont" style="font-size: 12px;">&#xe630;</i></span><span style="font-size: 12px;">收藏</span></div>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="(isOlderVersion ? havingWritePerm : mainRepository.havingWritePerm)" class="el-dropdown-row" @click.native="moveFile(mainRepository.id)"> <el-dropdown-item v-if="(isOlderVersion ? havingWritePerm : mainRepository.havingWritePerm)" class="el-dropdown-row" @click.native="moveFile(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>
@ -54,7 +54,7 @@
<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>
@ -74,31 +74,31 @@
<div> <div>
<div ref="repositorysDiv" style="margin-left: 10px;margin-right: 10px;"> <div ref="repositorysDiv" style="margin-left: 10px;margin-right: 10px;">
<el-table <el-table
ref="table" ref="table"
:row-style="{height:'46px'}" :row-style="{height:'46px'}"
:cell-style="{padding:'0px'}" :cell-style="{padding:'0px'}"
v-loading="tableLoading" v-loading="tableLoading"
element-loading-text="拼命加载中" element-loading-text="拼命加载中"
:data="tableData" :data="tableData"
style="width: 100%;" style="width: 100%;"
:show-header=false :show-header=false
highlight-current-row highlight-current-row
@cell-mouse-enter="showCheckbox" @cell-mouse-enter="showCheckbox"
@cell-mouse-leave="hideCheckbox" @cell-mouse-leave="hideCheckbox"
:cell-class-name="hideCheckBoxCell" :cell-class-name="hideCheckBoxCell"
@row-click="clickTableRow" @row-click="clickTableRow"
@selection-change="handlecheckedRepositorysChange"> @selection-change="handlecheckedRepositorysChange">
<el-table-column <el-table-column
class-name="rowDropFilter el-table-column--selection" class-name="rowDropFilter el-table-column--selection"
type="selection" type="selection"
width="40" width="40"
align="left"> align="left">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="main" prop="main"
label="名称" label="名称"
class-name="row-repository-title" class-name="row-repository-title"
min-width="250px"> min-width="250px">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="!scope.row.folder" :style="{'background-color': scope.row.icon.color}" class="icon-div-repository rowDropFilter"> <div v-if="!scope.row.folder" :style="{'background-color': scope.row.icon.color}" class="icon-div-repository rowDropFilter">
<i class="awsui-iconfont icon-dynamic-repository" v-html="scope.row.icon.code"></i> <i class="awsui-iconfont icon-dynamic-repository" v-html="scope.row.icon.code"></i>
@ -115,11 +115,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="second" prop="second"
label="修改日期" label="修改日期"
width="300"> width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="div-update-date"> <div class="div-update-date" >
<p> <p>
{{scope.row.updateUser}} {{scope.row.updateDate}}修改 {{scope.row.updateUser}} {{scope.row.updateDate}}修改
<span :style="{'color': scope.row.versionStatus.stateColor}" style="margin-left: 12px;font-size: 13px;">( {{ scope.row.versionStatus.state }} )</span> <span :style="{'color': scope.row.versionStatus.stateColor}" style="margin-left: 12px;font-size: 13px;">( {{ scope.row.versionStatus.state }} )</span>
@ -128,11 +128,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
class-name="rowDropFilter" class-name="rowDropFilter"
prop="operate" prop="operate"
label="操作" label="操作"
align="right" align="right"
width="135"> width="135">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="width: 16px;display: inline-block;"> <div style="width: 16px;display: inline-block;">
<div class="operate-icon-display"> <div class="operate-icon-display">
@ -204,11 +204,15 @@
</div> </div>
</div> </div>
</el-main> </el-main>
<el-aside v-if="isShow" width="280px" :style="{'height': (parseInt(mainHeight) - 5) + 'px', 'background-color': '#FAFAFB','position': 'relative','top': '5px'}"> <el-aside v-if="isShow" width="280px" :style="{'width':newwidth, 'height': (parseInt(mainHeight) - 5) + 'px', 'background-color': '#FAFAFB','position': 'relative','top': '5px'}">
<div style="border-left: 1px solid #f2f2f2;width: 270px;height: 100%;"> <div @click="newwidthbind()">
<img :src="imgPath" style="border-radius: 4px;border:1px solid #F2F2F2;width:20px;">
<!--{{newtitle}}-->
</div>
<div style="border-left: 1px solid #f2f2f2;height: 100%;" v-if="newwidthtrue==false">
<!-- 名称和缩略图 --> <!-- 名称和缩略图 -->
<div> <div>
<div style="width:240px;min-height: 47px;margin-left:15px; margin-right:15px;"> <div style="min-height: 47px;margin-left:15px; margin-right:15px;">
<div style="position:relative;padding-top: 12px;"> <div style="position:relative;padding-top: 12px;">
<div v-if="!currRepositoryDetail.folder" class="icon-div-repository-detail" :style="{'background-color': currRepositoryDetail.iconColor}"> <div v-if="!currRepositoryDetail.folder" class="icon-div-repository-detail" :style="{'background-color': currRepositoryDetail.iconColor}">
<i class="awsui-iconfont icon-repository-detail" v-html="currRepositoryDetail.iconCode"></i> <i class="awsui-iconfont icon-repository-detail" v-html="currRepositoryDetail.iconCode"></i>
@ -272,12 +276,13 @@
</el-container> </el-container>
<el-footer id="operateFooter" v-show="showFooter" style="height: 45px;padding: 0;" key="operateFooter"> <el-footer id="operateFooter" v-show="showFooter" style="height: 45px;padding: 0;" key="operateFooter">
<div style="border-top: 1px solid #F2F2F2;height: 44px;"> <div style="border-top: 1px solid #F2F2F2;height: 44px;">
<div style="padding: 8px 8px 8px 34px;"> <!-- 如果分类为IT系统图 /角色模型/岗位模型则隐藏操作字段-->
<div style="padding: 8px 8px 8px 34px;" >
<el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange"></el-checkbox> <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange"></el-checkbox>
<awsui-button v-if="isOlderVersion ? havingWritePerm : true " style="width: 100px;margin-left: 15px;" class="button-general-color" type="primary" @click="moveFiles">移动至</awsui-button> <awsui-button v-if="isOlderVersion ? havingWritePerm : true " style="width: 100px;margin-left: 15px;" class="button-general-color" type="primary" @click="moveFiles">移动至</awsui-button>
<awsui-button v-if="isOlderVersion ? havingWritePerm : true" style="width: 100px;" class="button-general-color-reverse" plain @click="copyFiles()">创建副本</awsui-button> <awsui-button v-if="isOlderVersion ? havingWritePerm : true" style="width: 100px;" class="button-general-color-reverse" plain @click="copyFiles()">创建副本</awsui-button>
<awsui-button style="width: 100px;" class="button-general-color-reverse" plain @click="exportFiles()">导出</awsui-button> <awsui-button style="width: 100px;" class="button-general-color-reverse" plain @click="exportFiles()">导出</awsui-button>
<awsui-button v-if="isOlderVersion ? havingRemovePerm : true" style="width: 100px;" class="button-general-color-reverse2" plain @click="removeFiles()">删除</awsui-button> <awsui-button v-if="isOlderVersion ? havingRemovePerm : true && category != 'itsystem'" style="width: 100px;" class="button-general-color-reverse2" plain @click="removeFiles()">删除</awsui-button>
<awsui-button style="width: 100px;" class="button-general-color-reverse3" plain @click="closeFooter">取消</awsui-button> <awsui-button style="width: 100px;" class="button-general-color-reverse3" plain @click="closeFooter">取消</awsui-button>
</div> </div>
</div> </div>
@ -287,13 +292,13 @@
</el-container> </el-container>
<el-container id="repositoryListFolderDlg"> <el-container id="repositoryListFolderDlg">
<el-dialog <el-dialog
title="修改文件夹" title="修改文件夹"
:visible.sync="folderDialog.dialogVisible" :visible.sync="folderDialog.dialogVisible"
:modal-append-to-body=false :modal-append-to-body=false
:close-on-click-modal=false :close-on-click-modal=false
:close-on-press-escape=true :close-on-press-escape=true
:before-close="handleCloseFolder" :before-close="handleCloseFolder"
width="600px"> width="600px">
<div style="border: 1px solid #F2F2F2;padding: 0px 10px 10px 10px;"> <div style="border: 1px solid #F2F2F2;padding: 0px 10px 10px 10px;">
<awsui-form :model="folderDialog.folderForm" :rules="folderDialog.rules" ref="folderForm" label-position="top"> <awsui-form :model="folderDialog.folderForm" :rules="folderDialog.rules" ref="folderForm" label-position="top">
<awsui-form-item label="名称" prop="name"> <awsui-form-item label="名称" prop="name">
@ -385,6 +390,9 @@
data(){ data(){
return { return {
loading: false, loading: false,
newwidth:'280px',
newwidthtrue:false,
newtitle:'收起',
mainHeight: (parseInt(this.$store.getters.getTopMainHeightFn) - (this.showFooter ? 45 : 0)) + 'px', mainHeight: (parseInt(this.$store.getters.getTopMainHeightFn) - (this.showFooter ? 45 : 0)) + 'px',
tableLoading: false, tableLoading: false,
showFooter: false, showFooter: false,
@ -475,7 +483,8 @@
}, },
created() { created() {
}, },
mounted() { mounted(){
this.initData(); this.initData();
this.rowDrop(); this.rowDrop();
// initData 便 // initData 便
@ -493,6 +502,19 @@
}); });
}, },
methods: { methods: {
newwidthbind(){
if(this.newwidthtrue==false){
this.newwidthtrue = true;
this.newwidth ='28px';
//this.newtitle = '';
this.imgPath=require('@/assets/double-arrow-left.png');
}else{
this.newwidthtrue = false;
this.newwidth ='280px';
//this.newtitle = '';
this.imgPath=require('@/assets/double-arro-right.png');
}
},
handleCloseFolder(done) { handleCloseFolder(done) {
this.folderDialog.dialogVisible = false; this.folderDialog.dialogVisible = false;
done(); done();
@ -561,9 +583,11 @@
}, },
initData() { initData() {
const that = this; const that = this;
that.tableLoading = true; that.tableLoading = true;
const wsId = that.$store.getters.getWsIdFn; const wsId = that.$store.getters.getWsIdFn;
const teamId = that.$store.getters.getTeamIdFn; const teamId = that.$store.getters.getTeamIdFn;
const data = { const data = {
url:'jd', url:'jd',
data:{ data:{
@ -580,22 +604,22 @@
awsuiAxios.post(data).then(function (ro) { awsuiAxios.post(data).then(function (ro) {
if(ro.result == 'ok') { if(ro.result == 'ok') {
//isClickTreeRoot //isClickTreeRoot
// if(ro.data.mainRepository=="undefined"){ // if(ro.data.mainRepository=="undefined"){
// if(ro.data.mainRepository.folder==false){ // if(ro.data.mainRepository.folder==false){
// bus.$emit("getisDisabled",true); // bus.$emit("getisDisabled",true);
// }else{ // }else{
// bus.$emit("getisDisabled",false); // bus.$emit("getisDisabled",false);
// } // }
// } // }
if(ro.data.mainRepository!=undefined){ if(ro.data.mainRepository!=undefined){
if(ro.data.mainRepository.folder==false){ if(ro.data.mainRepository.folder==false){
bus.$emit("getisDisabled",true); bus.$emit("getisDisabled",true);
}else{ }else{
bus.$emit("getisDisabled",false); bus.$emit("getisDisabled",false);
} }
}else{ }else{
bus.$emit("getisDisabled",false); bus.$emit("getisDisabled",false);
} }
const repositoryPathData = ro.data.repositoryPathData; const repositoryPathData = ro.data.repositoryPathData;
@ -657,6 +681,9 @@
that.setCurrentRow(that.tableData[0]); that.setCurrentRow(that.tableData[0]);
} }
} }
that.imgPath=require("@/assets/double-arro-right.png");
} }
}).catch(error=>{ }).catch(error=>{
console.log(error); console.log(error);
@ -738,7 +765,7 @@
}; };
awsuiAxios.post(data).then(function (ro) { awsuiAxios.post(data).then(function (ro) {
if(ro.result == 'ok') { if(ro.result == 'ok') {
openDesigner(that.$store.getters.getTeamIdFn, id, that.$store.state.sessionId); openDesigner(that.$store.getters.getTeamIdFn, id, that.$store.state.sessionId);
}else{ }else{
that.$message.error(ro.msg); that.$message.error(ro.msg);
} }
@ -922,40 +949,40 @@
// //
awsuiAxios.post(param).then(function (ro) { awsuiAxios.post(param).then(function (ro) {
if(ro.result == 'ok') { if(ro.result == 'ok') {
let checkArr = ro.data.checkArr; let checkArr = ro.data.checkArr;
if(checkArr.length<=0){ if(checkArr.length<=0){
that.$message.error("无密级访问权限"); that.$message.error("无密级访问权限");
}else{ }else{
let tempArr = []; let tempArr = [];
for(let i=0; i<checkArr.length;i++){ for(let i=0; i<checkArr.length;i++){
for(let j=0; j<that.checkedRepositorys.length; j++){ for(let j=0; j<that.checkedRepositorys.length; j++){
if(checkArr[i] === that.checkedRepositorys[j].id){ if(checkArr[i] === that.checkedRepositorys[j].id){
tempArr.push(that.checkedRepositorys[j]); tempArr.push(that.checkedRepositorys[j]);
}
} }
} }
params.data.sourceData = JSON.stringify(tempArr);
//
awsuiAxios.post(params).then(function (ro) {
if(ro.result == 'ok') {
that.$message({
message: '移动成功',
type: 'success'
});
if (that.refreshTreeNode) {
that.refreshTreeNode(data[0].pid);
}
if (that.refreshTreeParentNode) {
that.refreshTreeParentNode(that.uuid);
}
that.initData();
} else {
that.$message({message: ro.msg,type: 'warning'});
}
}).catch(error=>{
console.log(error);
})
} }
params.data.sourceData = JSON.stringify(tempArr);
//
awsuiAxios.post(params).then(function (ro) {
if(ro.result == 'ok') {
that.$message({
message: '移动成功',
type: 'success'
});
if (that.refreshTreeNode) {
that.refreshTreeNode(data[0].pid);
}
if (that.refreshTreeParentNode) {
that.refreshTreeParentNode(that.uuid);
}
that.initData();
} else {
that.$message({message: ro.msg,type: 'warning'});
}
}).catch(error=>{
console.log(error);
})
}
}else{ }else{
that.$message(ro.msg); that.$message(ro.msg);
} }
@ -1120,49 +1147,49 @@
}; };
awsuiAxios.post(data).then(function (ro) { awsuiAxios.post(data).then(function (ro) {
if(ro.result == 'ok') { if(ro.result == 'ok') {
let checkArr = ro.data.checkArr; let checkArr = ro.data.checkArr;
if(checkArr.length<=0){ if(checkArr.length<=0){
that.loading = false;
that.$message.error("无密级访问权限");
}else{
params.data.repositoryIds = JSON.stringify(checkArr);
//
awsuiAxios.post(params).then(function (ro) {
that.loading = false; that.loading = false;
that.$message.error("无密级访问权限"); if(ro.result == 'ok') {
}else{ that.$message({
params.data.repositoryIds = JSON.stringify(checkArr); message: '导出完成,正在下载...',
// type: 'success'
awsuiAxios.post(params).then(function (ro) { });
that.loading = false; const exportTitle = ro.data.exportTitle;
if(ro.result == 'ok') { const exportCount = ro.data.exportCount;
that.$message({ const dcId = ro.data.dcId;
message: '导出完成,正在下载...', const params2 = {
type: 'success' url:'jd',
}); data:{
const exportTitle = ro.data.exportTitle; cmd: 'com.actionsoft.apps.coe.pal_pl_export',
const exportCount = ro.data.exportCount; exportTitle: exportTitle,
const dcId = ro.data.dcId; exportCount: exportCount,
const params2 = { dcId: dcId
url:'jd', }
data:{ };
cmd: 'com.actionsoft.apps.coe.pal_pl_export', //
exportTitle: exportTitle, awsuiAxios.post(params2).then(function (r) {
exportCount: exportCount, if(r.result == 'ok') {
dcId: dcId window.open(r.data.downLoadUrl);
} } else {
}; that.$message(r.msg);
// }
awsuiAxios.post(params2).then(function (r) { }).catch(error=>{
if(r.result == 'ok') { console.log(error);
window.open(r.data.downLoadUrl); })
} else { } else {
that.$message(r.msg); that.$message(ro.msg);
} }
}).catch(error=>{ }).catch(error=>{
console.log(error); console.log(error);
}) })
} else { }
that.$message(ro.msg);
}
}).catch(error=>{
console.log(error);
})
}
}else{ }else{
that.tableLoading = false; that.tableLoading = false;
that.$message(ro.msg); that.$message(ro.msg);
@ -1249,40 +1276,40 @@
}; };
awsuiAxios.post(param).then(function (ro) { awsuiAxios.post(param).then(function (ro) {
if(ro.result == 'ok') { if(ro.result == 'ok') {
let checkArr = ro.data.checkArr; let checkArr = ro.data.checkArr;
if(checkArr.length<=0){ if(checkArr.length<=0){
that.$message.error("无密级访问权限"); that.$message.error("无密级访问权限");
}else{ }else{
params.data.repositoryIds = JSON.stringify(checkArr); params.data.repositoryIds = JSON.stringify(checkArr);
// //
awsuiAxios.post(params).then(function (ro) { awsuiAxios.post(params).then(function (ro) {
if(ro.result == 'ok') { if(ro.result == 'ok') {
that.$message({ that.$message({
message: '已放入回收站', message: '已放入回收站',
type: 'success' type: 'success'
}); });
if (that.uuid.length < 36) { if (that.uuid.length < 36) {
if (that.refreshTreeNode) {
that.refreshTreeNode(that.uuid);
}
that.initData();
} else {
if(delId == that.mainRepository.id){
that.refreshTreeParentNode(that.uuid);
}else{
if (that.refreshTreeNode) { if (that.refreshTreeNode) {
that.refreshTreeNode(that.uuid); that.refreshTreeNode(that.uuid);
} }
that.initData(); that.initData();
} else {
if(delId == that.mainRepository.id){
that.refreshTreeParentNode(that.uuid);
}else{
if (that.refreshTreeNode) {
that.refreshTreeNode(that.uuid);
}
that.initData();
}
} }
} else {
that.$message(ro.msg);
} }
}).catch(error=>{ } else {
console.log(error); that.$message(ro.msg);
}) }
} }).catch(error=>{
console.log(error);
})
}
}else{ }else{
that.tableLoading = false; that.tableLoading = false;
that.$message(ro.msg); that.$message(ro.msg);
@ -1413,7 +1440,7 @@
}; };
awsuiAxios.post(data).then(function (ro) { awsuiAxios.post(data).then(function (ro) {
if(ro.result == 'ok') { if(ro.result == 'ok') {
newPageWin('cascadeAnalysis', that.$store.state.sessionId, 'com.actionsoft.apps.coe.pal.processlink_ete_analysis_home', {wsId: wsId, teamId: teamId, appId: appId, uuid: id}); newPageWin('cascadeAnalysis', that.$store.state.sessionId, 'com.actionsoft.apps.coe.pal.processlink_ete_analysis_home', {wsId: wsId, teamId: teamId, appId: appId, uuid: id});
}else{ }else{
that.$message.error(ro.msg); that.$message.error(ro.msg);
} }
@ -1447,30 +1474,30 @@
}; };
awsuiAxios.post(data).then(function (ro) { awsuiAxios.post(data).then(function (ro) {
if(ro.result == 'ok') { if(ro.result == 'ok') {
// //
awsuiAxios.post(params).then(function (ro) { awsuiAxios.post(params).then(function (ro) {
if(ro.result == 'ok') { if(ro.result == 'ok') {
const taskId = ro.data.taskId; const taskId = ro.data.taskId;
setTimeout(function(){ setTimeout(function(){
const params2 = { const params2 = {
url:'jd', url:'jd',
data:{ data:{
taskId: taskId, taskId: taskId,
cmd: 'com.actionsoft.apps.coe.pal_outputreport_output_process_preview' cmd: 'com.actionsoft.apps.coe.pal_outputreport_output_process_preview'
} }
}; };
awsuiAxios.post(params2).then(function (r) { awsuiAxios.post(params2).then(function (r) {
if(r.result == 'ok') { if(r.result == 'ok') {
window.open(r.data.url); window.open(r.data.url);
} }
}).catch(error=>{ }).catch(error=>{
console.log(error); console.log(error);
}) })
},2000); },2000);
} }
}).catch(error=>{ }).catch(error=>{
console.log(error); console.log(error);
}) })
}else{ }else{
that.$message.error(ro.msg); that.$message.error(ro.msg);
} }
@ -1518,7 +1545,7 @@
}; };
awsuiAxios.post(data).then(function (ro) { awsuiAxios.post(data).then(function (ro) {
if(ro.result == 'ok') { if(ro.result == 'ok') {
that.$refs.repositoryInfo.openRepositoryInfoDlg(that, that.currRepositoryDetail.id, that.currRepositoryDetail.version, type, that.currRepositoryDetail.isUse, that.currRepositoryDetail.isPublish, that.currRepositoryDetail.isStop, that.currRepositoryDetail.isApproval, that.currRepositoryDetail.methodId); that.$refs.repositoryInfo.openRepositoryInfoDlg(that, that.currRepositoryDetail.id, that.currRepositoryDetail.version, type, that.currRepositoryDetail.isUse, that.currRepositoryDetail.isPublish, that.currRepositoryDetail.isStop, that.currRepositoryDetail.isApproval, that.currRepositoryDetail.methodId);
}else{ }else{
that.$message.error(ro.msg); that.$message.error(ro.msg);
} }
@ -1618,9 +1645,9 @@
} }
}).catch(error =>{ }).catch(error =>{
that.$message({ that.$message({
showClose: false, showClose: false,
message: "服务调用失败", message: "服务调用失败",
type: 'error' type: 'error'
});o });o
}); });
} }
@ -1749,7 +1776,7 @@
#repositoryList >>> .row-repository-title .cell {/*IE错位问题*/ #repositoryList >>> .row-repository-title .cell {/*IE错位问题*/
position: relative; position: relative;
} }
/**当前title 样式 */ /**当前title 样式 */
.cur-title:hover { .cur-title:hover {
color: #4E7FF9; color: #4E7FF9;
cursor: pointer; cursor: pointer;