新增导出项目方法
This commit is contained in:
parent
93062e9f8c
commit
cba4cff69a
@ -83,3 +83,14 @@ export function simulationRun(projectId:string,scenarioId:string, data:any){
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
//新增项目
|
||||
export function exportAllExports(){
|
||||
return request({
|
||||
url:'/projects/exportAllExports' ,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -792,6 +792,7 @@ function preWork() {
|
||||
#graph-container {
|
||||
width: calc(100% - 180px);
|
||||
height: 100%;
|
||||
background-color: #f1f3fe;
|
||||
}
|
||||
.x6-widget-stencil {
|
||||
background-color: #fff;
|
||||
@ -1191,7 +1192,8 @@ function saveDesign() { // 保存设计
|
||||
<img src="@/assets/x6/del.png" alt="图标" title="删除" style="cursor: pointer;"
|
||||
@click="deleteNode">
|
||||
</div>
|
||||
<div class="line-style-box">
|
||||
<!-- <div class="line-style-box">
|
||||
<div class="DisplaySettingsButton">显示设置</div>
|
||||
<div class="expansionandcontraction-box" v-if="isExpansionandcontraction == false" @click="isExpansionandcontraction = true">
|
||||
<img src="@/assets/x6/expansionandcontraction-left.png">
|
||||
</div>
|
||||
@ -1204,7 +1206,7 @@ function saveDesign() { // 保存设计
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<Createscenario v-if="dialogVisible" :projectInfo="projectInfo" @closeCreatescenario ="closeCreatescenario"/>
|
||||
<el-dialog v-model="isScenario" :close-on-click-modal="false"
|
||||
@ -1368,6 +1370,7 @@ function saveDesign() { // 保存设计
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
}
|
||||
|
||||
/* Drag and drop visual feedback */
|
||||
@ -1515,4 +1518,25 @@ function saveDesign() { // 保存设计
|
||||
border-bottom:1px solid rgba(238, 238, 238, 1);
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
.DisplaySettingsButton{
|
||||
position: absolute;
|
||||
left: -100px;
|
||||
top: 20px;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
font-family: 'Arial Negreta', 'Arial Normal', 'Arial';
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-size: 14px;
|
||||
color: #282828;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
@ -11,6 +11,7 @@ import { searchProjectsLsit,addProjects,updateProjects,deleteProjects,deleteBatc
|
||||
import Page from '@/components/Pagination/page.vue'
|
||||
import ScenarioModel from '@/views/component/scenario/index.vue'
|
||||
import Antvx6 from '@/components/antvx6/index.vue'
|
||||
const apiUrl = import.meta.env.VITE_APP_BASE_API; // 基础路径
|
||||
const isShowAntvx6 = ref(false); // 是否展示分析设计弹窗
|
||||
const isScenario = ref(false) //是否展示历史模拟场景
|
||||
// 搜索框
|
||||
@ -209,10 +210,13 @@ function closeAntvx6() {
|
||||
<el-button type="primary" style="margin-left: 10px" @click="gettableData">搜索</el-button>
|
||||
</div>
|
||||
<div>
|
||||
<el-button type="primary" @click="addClick">
|
||||
|
||||
<el-button type="primary" @click="addClick" style="margin-right: 10px">
|
||||
新增</el-button>
|
||||
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''"
|
||||
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
|
||||
<a :href=" apiUrl + '/projects/exportAllExports'" target="_blank" rel="noopener noreferrer">
|
||||
<el-button type="primary">导出</el-button> </a>
|
||||
<el-button type="primary"
|
||||
:disabled="multipleSelection.length <= 0" @click="delClick" style="margin-left: 10px">删除</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-table v-loading="loading" :data="tableData" style="width: 100%; height: calc(100vh - 260px);margin-bottom: 10px;" border
|
||||
@ -240,8 +244,11 @@ function closeAntvx6() {
|
||||
<img src="@/assets/table/simulation.png" alt="" title="模拟分析"
|
||||
@click="simulationClick(scope.row)"
|
||||
style="cursor: pointer; ">
|
||||
<a :href=" apiUrl + '/projects/' + scope.row.projectId + '/exportProject'" target="_blank" rel="noopener noreferrer">
|
||||
<img src="@/assets/table/export.png" alt="" title="导出项目工程"
|
||||
style="cursor: pointer; ">
|
||||
</a>
|
||||
|
||||
<img src="@/assets/table/del.png" alt="" title="删除"
|
||||
@click="delAloneClick(scope.row)" style="cursor: pointer; ">
|
||||
</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user