提交导出全部

This commit is contained in:
limengnan 2026-04-02 18:12:36 +08:00
parent eaf1910591
commit 674c32af90
2 changed files with 5 additions and 2 deletions

View File

@ -260,7 +260,7 @@ function closeAntvx6() {
</a>
<img src="@/assets/table/del.png" alt="" title="删除"
@click="delAloneClick(scope.row)" style="cursor: pointer;" v-if="username == scope.row.creator">
@click="delAloneClick(scope.row)" style="cursor: pointer;" v-if="username == scope.row.creator || username == 'admin'">
</span>
</template>
</el-table-column>

View File

@ -23,7 +23,7 @@ import Viewx6 from '@/components/antvx6/viewx6.vue';
import { useUserStore } from '@/store/modules/user';
const userStore = useUserStore();
const username = ref(userStore.username)
const apiUrl = import.meta.env.VITE_APP_BASE_API; //
const webUrl = import.meta.env.VITE_APP_BASE_HTTP; //
const algorithmTypeData: any = ref([]); //
@ -562,7 +562,10 @@ function initDeviceData(){
<div @click="changeShowResult(0)" class="adddevice_navigation_left" :class="{'adddevice_navigation_activeleft':isEchartsModel == 0}">图形化</div>
<div @click="changeShowResult(1)" class="adddevice_navigation_right" :class="{'adddevice_navigation_activeright':isEchartsModel == 1}">列表</div>
<div @click="changeShowResult(2)" class="adddevice_navigation_right" :class="{'adddevice_navigation_activeright':isEchartsModel == 2}">图形</div>
<a :href="apiUrl + '/scenario-results/export/by-scenario?scenarioId='+scenarioId" target="_blank" rel="noopener noreferrer">
<el-button v-if="isEchartsModel == 1" style="position: absolute;right: 50px;top: 5px;" type="primary">导出全部</el-button>
</a>
</div>
<Viewx6 v-if="isShowResult && isEchartsModel == 0 " :projectId="projectInfo.projectId"
:scenarioId="scenarioId"