Merge branch 'develop-business-css' of http://121.37.111.42:3000/ThbTech/JavaProjectRepo into development-business-css

This commit is contained in:
wanxiaoli 2026-01-19 14:55:47 +08:00
commit 09a05c70c1
8 changed files with 442 additions and 930 deletions

View File

@ -3,7 +3,7 @@ import request from '@/utils/request';
//获取所有项目列表 //获取所有项目列表
export function searchAlgorithmsPage(queryParams:any){ export function searchAlgorithmsPage(queryParams:any){
return request({ return request({
url: '/api/algorithms/search' , url: '/algorithms/search' ,
method: 'get', method: 'get',
params:queryParams params:queryParams
}); });
@ -15,7 +15,7 @@ export function searchAlgorithmsPage(queryParams:any){
//新增项目 //新增项目
export function addAlgorithms(data:any){ export function addAlgorithms(data:any){
return request({ return request({
url:'/api/algorithms' , url:'/algorithms' ,
method: 'Post', method: 'Post',
data: data data: data
}); });
@ -25,7 +25,7 @@ export function addAlgorithms(data:any){
//更新项目信息 //更新项目信息
export function updateAlgorithms (queryParams:any){ export function updateAlgorithms (queryParams:any){
return request({ return request({
url:'/api/algorithms' , url:'/algorithms' ,
method: 'PUT', method: 'PUT',
data: queryParams data: queryParams
}); });
@ -35,7 +35,7 @@ export function updateAlgorithms (queryParams:any){
//单个删除项目 //单个删除项目
export function deleteAlgorithms (queryParams:any){ export function deleteAlgorithms (queryParams:any){
return request({ return request({
url:'/api/algorithms/'+queryParams.id , url:'/algorithms/'+queryParams.id ,
method: 'delete' method: 'delete'
// params: queryParams // params: queryParams
}); });
@ -43,7 +43,7 @@ export function deleteAlgorithms (queryParams:any){
//多选删除项目 //多选删除项目
export function deleteBatchAlgorithms (queryParams:any){ export function deleteBatchAlgorithms (queryParams:any){
return request({ return request({
url:'/api/algorithms', url:'/algorithms',
method: 'delete', method: 'delete',
data: queryParams data: queryParams
}); });

View File

@ -9,6 +9,13 @@ export function searchProjectsLsit(queryParams:any){
}); });
} }
export function projectsById(queryParams:any){
return request({
url: '/projects/'+ queryParams.projectId ,
method: 'get'
});
}

View File

@ -57,3 +57,12 @@ export function getActiveAlgorithms(){
}); });
} }
//获取所有项目列表
export function getByScenario(queryParams:any){
return request({
url: '/scenario-results/by-scenario' ,
method: 'get',
params: queryParams
});
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 B

View File

@ -0,0 +1,129 @@
<script lang="ts">
export default {
name: "x6查看结果数据",
};
</script>
<script setup lang="ts">
import { onMounted, ref, nextTick } from "vue";
import { ElForm, ElMessage, ElMessageBox } from "element-plus";
import { getByScenario } from "@/api/business/scenario";
const emit = defineEmits([ 'closeEditdevice']);
const props = defineProps({
deviceId: {
required: false,
type: String,
default: ''
},
scenarioId: {
required: false,
type: String,
default: ''
},
})
const scenarioResultData:any = ref([])
function getScenarioResults(){
scenarioResultData.value = []
getByScenario({
scenarioId: props.scenarioId,
deviceId: props.deviceId,
pageNum:1,
pageSize:999
}).then((res:any) => {
scenarioResultData.value = res.data.records
})
}
onMounted(() => {
getScenarioResults()
});
</script>
<template>
<div class="editdevice-box">
</div>
</template>
<style scoped>
.editdevice-box{
width: 100%;
height: calc(100vh - 200px);
}
.editdevice_navigation_left{
width: 110px;
height: 32px;
line-height: 32px;
text-align: center;
cursor: pointer;
font-family: 'Arial Normal', 'Arial';
font-weight: 400;
font-style: normal;
font-size: 14px;
color: #363636;
background-image: url('@/assets/x6/navleft.png');
}
.editdevice_navigation_left:hover{
color: #266fff ;
}
.editdevice_navigation_activeleft{
background-image: url('@/assets/x6/navleft_active.png');
color: #fff !important;
}
.editdevice_navigation_right{
width: 110px;
height: 32px;
line-height: 32px;
text-align: center;
cursor: pointer;
font-family: 'Arial Normal', 'Arial';
font-weight: 400;
font-style: normal;
font-size: 14px;
color: #363636;
background-image: url('@/assets/x6/navright.png');
}
.editdevice_navigation_right:hover{
color: #266fff ;
}
.editdevice_navigation_activeright{
background-image: url('@/assets/x6/navright_active.png');
color: #fff !important;
}
</style>
<style>
.el-table .el-table--enable-row-hover .el-table__body tr:hover > td{
background-color: #194764 !important;
}
.editdevice-box .el-table .el-table__row.current-row td{
background-color: #f3faff !important;
border-top:1px solid #14aaff;
border-bottom:1px solid #14aaff
}
.editdevice-box .el-table .el-table__row.current-row td:last-child{
border-right:1px solid #14aaff;
}
.editdevice-box .el-table .el-table__row.current-row td:first-child{
border-left:1px solid #14aaff;
}
.editdevice-box .el-table .el-table__row.current-row:last-child td{
border-bottom:1px solid #14aaff
}
.el-table__inner-wrapper:before{
background-color: transparent !important;
border-top: 1px solid var(--el-table-border-color);
}
.el-table--border:before{
background-color: transparent !important;
border-top: 1px solid var(--el-table-border-color);
}
</style>

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,12 @@ export const constantRoutes: RouteRecordRaw[] = [
component: () => import('@/views/error-page/404.vue'), component: () => import('@/views/error-page/404.vue'),
meta: { hidden: true } meta: { hidden: true }
}, },
{
name: '图形化分析',
path: '/viewanalysis',
component: () => import('@/components/antvx6/viewx6.vue'),
meta: { hidden: true }
},
{ {
path: '/', path: '/',
component: Layout, component: Layout,