整理项目模块,数据管理,算法管理图标

This commit is contained in:
limengnan 2025-12-25 14:24:35 +08:00
parent 033579d549
commit 731f5fadad
11 changed files with 61 additions and 63 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 642 B

View File

@ -78,16 +78,8 @@ const title = ref("");
const info: any = ref({ const info: any = ref({
name: "", name: "",
description: "", description: "",
uConcentration: "", version: "",
uo2Density: "", principle: "",
uEnrichment: "",
puConcentration: "",
puo2Density: "",
puIsotope: "",
hno3Acidity: "",
h2c2o4Concentration: "",
organicRatio: "",
moistureContent: "",
}); });
const dialogVisible = ref(false); const dialogVisible = ref(false);
@ -96,16 +88,8 @@ function addClick() {
info.value = { info.value = {
name: "", name: "",
description: "", description: "",
uConcentration: "", version: "",
uo2Density: "", principle: "",
uEnrichment: "",
puConcentration: "",
puo2Density: "",
puIsotope: "",
hno3Acidity: "",
h2c2o4Concentration: "",
organicRatio: "",
moistureContent: "",
}; };
customAttrsData.value = [] customAttrsData.value = []
dialogVisible.value = true; dialogVisible.value = true;
@ -118,9 +102,11 @@ function confirmClick(formEl: any) {
if (!info.value.algorithmId) { if (!info.value.algorithmId) {
const params = { const params = {
projectId: -1, name: info.value.name,
...info.value, description: info.value.description,
customAttrs: JSON.stringify( customAttrsData.value) version: info.value.version,
principle: info.value.principle,
} }
addAlgorithms(params).then((res) => { addAlgorithms(params).then((res) => {
gettableData(); gettableData();
@ -128,9 +114,11 @@ function confirmClick(formEl: any) {
}); });
} else if (info.value.algorithmId) { } else if (info.value.algorithmId) {
const params = { const params = {
projectId: -1, algorithmId: info.value.algorithmId,
...info.value, name: info.value.name,
customAttrs: JSON.stringify( customAttrsData.value) description: info.value.description,
version: info.value.version,
principle: info.value.principle,
} }
updateAlgorithms(params).then((res) => { updateAlgorithms(params).then((res) => {
gettableData(); gettableData();
@ -284,8 +272,8 @@ onMounted(() => {
:header-cell-style="{ background: 'rgb(250 250 250)', color: '#383838', height: '50px' }"> :header-cell-style="{ background: 'rgb(250 250 250)', color: '#383838', height: '50px' }">
<el-table-column type="selection" width="50" align="center"></el-table-column> <el-table-column type="selection" width="50" align="center"></el-table-column>
<el-table-column type="index" label="序号" width="70" align="center"></el-table-column> <el-table-column type="index" label="序号" width="70" align="center"></el-table-column>
<el-table-column prop="name" label="算法名称" min-width="180"></el-table-column> <el-table-column prop="name" label="算法名称" width="180"></el-table-column>
<el-table-column prop="version" label="版本号" min-width="180"></el-table-column> <el-table-column prop="version" label="版本号" width="100"></el-table-column>
<el-table-column prop="description" label="算法描述" min-width="100"></el-table-column> <el-table-column prop="description" label="算法描述" min-width="100"></el-table-column>
<el-table-column prop="updatedAt" label="更新时间" width="200"> <el-table-column prop="updatedAt" label="更新时间" width="200">
<template #default="scope"> <template #default="scope">
@ -294,11 +282,11 @@ onMounted(() => {
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="80" align="center"> <el-table-column fixed="right" label="操作" width="80" align="center">
<template #default="scope"> <template #default="scope">
<span <span
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; "> style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
<img src="@/assets/MenuIcon/lbcz_xg.png" alt="" title="修改" <img src="@/assets/table/edit.png" alt="" title="修改"
@click="editClick(scope.row)" style="cursor: pointer; "> @click="editClick(scope.row)" style="cursor: pointer; ">
<img src="@/assets/MenuIcon/lbcz_sc.png" alt="" title="删除" <img src="@/assets/table/del.png" alt="" title="删除"
@click="delAloneClick(scope.row)" style="cursor: pointer; "> @click="delAloneClick(scope.row)" style="cursor: pointer; ">
</span> </span>
</template> </template>
@ -454,6 +442,9 @@ onMounted(() => {
.el-dialog .el-input{ .el-dialog .el-input{
--el-input-inner-height: 38px --el-input-inner-height: 38px
} }
.Algorithms-box .el-button{
height: 36px;
}
.el-dialog .el-button{ .el-dialog .el-button{
height: 40px; height: 40px;
} }

View File

@ -336,11 +336,11 @@ onMounted(() => {
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="80" align="center"> <el-table-column fixed="right" label="操作" width="80" align="center">
<template #default="scope"> <template #default="scope">
<span <span
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; "> style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
<img src="@/assets/MenuIcon/lbcz_xg.png" alt="" title="修改" <img src="@/assets/table/edit.png" alt="" title="修改"
@click="editClick(scope.row)" style="cursor: pointer; "> @click="editClick(scope.row)" style="cursor: pointer; ">
<img src="@/assets/MenuIcon/lbcz_sc.png" alt="" title="删除" <img src="@/assets/table/del.png" alt="" title="删除"
@click="delAloneClick(scope.row)" style="cursor: pointer; "> @click="delAloneClick(scope.row)" style="cursor: pointer; ">
</span> </span>
</template> </template>
@ -496,6 +496,9 @@ onMounted(() => {
.el-dialog .el-input{ .el-dialog .el-input{
--el-input-inner-height: 38px --el-input-inner-height: 38px
} }
.criticalData-box .el-button{
height: 36px;
}
.el-dialog .el-button{ .el-dialog .el-button{
height: 40px; height: 40px;
} }

View File

@ -300,7 +300,7 @@ onMounted(() => {
ref="upload" ref="upload"
accept=".xlsx,.xls" accept=".xlsx,.xls"
class="upload-demo" class="upload-demo"
:data="{"deviceType": queryParams.type}" :data="{deviceType: queryParams.type}"
:action=" url + '/devices/import' " :action=" url + '/devices/import' "
:headers="{ token: getToken() }" :headers="{ token: getToken() }"
:show-file-list="false" :show-file-list="false"
@ -319,7 +319,6 @@ onMounted(() => {
<el-table-column type="selection" width="50" align="center"></el-table-column> <el-table-column type="selection" width="50" align="center"></el-table-column>
<el-table-column type="index" label="序号" width="70" align="center"></el-table-column> <el-table-column type="index" label="序号" width="70" align="center"></el-table-column>
<el-table-column prop="name" label="设备名称" min-width="180"></el-table-column> <el-table-column prop="name" label="设备名称" min-width="180"></el-table-column>
<!-- <el-table-column prop="description" label="设备描述" min-width="100"></el-table-column> -->
<el-table-column prop="modifier" label="创建人" width="120"></el-table-column> <el-table-column prop="modifier" label="创建人" width="120"></el-table-column>
<el-table-column prop="updatedAt" label="创建时间" width="200"> <el-table-column prop="updatedAt" label="创建时间" width="200">
<template #default="scope"> <template #default="scope">
@ -330,9 +329,9 @@ onMounted(() => {
<template #default="scope"> <template #default="scope">
<span <span
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; "> style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
<img src="@/assets/MenuIcon/lbcz_xg.png" alt="" title="修改" <img src="@/assets/table/edit.png" alt="" title="修改"
@click="editClick(scope.row)" style="cursor: pointer; "> @click="editClick(scope.row)" style="cursor: pointer; ">
<img src="@/assets/MenuIcon/lbcz_sc.png" alt="" title="删除" <img src="@/assets/table/del.png" alt="" title="删除"
@click="delAloneClick(scope.row)" style="cursor: pointer; "> @click="delAloneClick(scope.row)" style="cursor: pointer; ">
</span> </span>
</template> </template>
@ -641,9 +640,13 @@ onMounted(() => {
.el-dialog .el-input{ .el-dialog .el-input{
--el-input-inner-height: 38px --el-input-inner-height: 38px
} }
.Device-box .el-button{
height: 36px;
}
.el-dialog .el-button{ .el-dialog .el-button{
height: 40px; height: 40px;
} }
.el-input-group__append { .el-input-group__append {
background-color: transparent !important; background-color: transparent !important;
border: none !important; border: none !important;

View File

@ -323,7 +323,7 @@ onMounted(() => {
:before-upload="handlePreview" :before-upload="handlePreview"
:on-success="handlesSuccess" :on-success="handlesSuccess"
:on-error="handleError"> :on-error="handleError">
<el-button type="primary" style="margin: 0 3px;">导入</el-button> <el-button type="primary" style="margin: 0 10px;">导入</el-button>
</el-upload> </el-upload>
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''" <el-button :type="multipleSelection.length > 0 ? 'primary' : ''"
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button> :disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
@ -344,11 +344,11 @@ onMounted(() => {
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="80" align="center"> <el-table-column fixed="right" label="操作" width="80" align="center">
<template #default="scope"> <template #default="scope">
<span <span
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; "> style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
<img src="@/assets/MenuIcon/lbcz_xg.png" alt="" title="修改" <img src="@/assets/table/edit.png" alt="" title="修改"
@click="editClick(scope.row)" style="cursor: pointer; "> @click="editClick(scope.row)" style="cursor: pointer; ">
<img src="@/assets/MenuIcon/lbcz_sc.png" alt="" title="删除" <img src="@/assets/table/del.png" alt="" title="删除"
@click="delAloneClick(scope.row)" style="cursor: pointer; "> @click="delAloneClick(scope.row)" style="cursor: pointer; ">
</span> </span>
</template> </template>
@ -534,6 +534,9 @@ onMounted(() => {
.el-dialog .el-input{ .el-dialog .el-input{
--el-input-inner-height: 38px --el-input-inner-height: 38px
} }
.Materials-box .el-button{
height: 36px;
}
.el-dialog .el-button{ .el-dialog .el-button{
height: 40px; height: 40px;
} }

View File

@ -184,7 +184,7 @@ onMounted(() => {
</script> </script>
<template> <template>
<div class="invalidcatalogue-box"> <div class="project-box">
<div class="conductproject-bg-box"> <div class="conductproject-bg-box">
<div <div
style="display: flex;display: -webkit-flex; justify-content: space-between; -webkit-justify-content: space-between;margin-bottom: 10px"> style="display: flex;display: -webkit-flex; justify-content: space-between; -webkit-justify-content: space-between;margin-bottom: 10px">
@ -194,12 +194,9 @@ onMounted(() => {
</div> </div>
<div> <div>
<el-button type="primary" @click="addClick"> <el-button type="primary" @click="addClick">
<img src="@/assets/MenuIcon/jscz_xz.png" alt="" style="margin-right: 3px">
新增</el-button> 新增</el-button>
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''" <el-button :type="multipleSelection.length > 0 ? 'primary' : ''"
:disabled="multipleSelection.length <= 0" @click="delClick"><el-icon> :disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
<Delete />
</el-icon> </el-button>
</div> </div>
</div> </div>
<el-table v-loading="loading" :data="tableData" style="width: 100%; height: calc(100vh - 260px);margin-bottom: 10px;" border <el-table v-loading="loading" :data="tableData" style="width: 100%; height: calc(100vh - 260px);margin-bottom: 10px;" border
@ -215,21 +212,20 @@ onMounted(() => {
{{ dateFormat(scope.row.updatedAt) }} {{ dateFormat(scope.row.updatedAt) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="200"> <el-table-column fixed="right" label="操作" width="190">
<template #default="scope"> <template #default="scope">
<span <span
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; "> style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
<img src="@/assets/MenuIcon/lbcz_xg.png" alt="" title="修改" <img src="@/assets/table/edit.png" alt="" title="修改"
@click="editClick(scope.row)" style="cursor: pointer; "> @click="editClick(scope.row)" style="cursor: pointer; ">
<!-- <img src="@/assets/MenuIcon/lbcz_zyw.png" alt="" title="业务范围" @click="businessclick(scope.row)" <img src="@/assets/table/design.png" alt="" title="分享设计"
style="cursor: pointer;"> style="cursor: pointer; ">
<img src="@/assets/MenuIcon/u343.png" alt="" title="组织范围" @click="organizeclick(scope.row)" <img src="@/assets/table/simulation.png" alt="" title="模拟分析"
style="cursor: pointer; "> style="cursor: pointer; ">
<img src="@/assets/MenuIcon/lbcz_qx.png" alt="" title="权限分配" @click="assignment(scope.row)" <img src="@/assets/table/export.png" alt="" title="导出项目工程"
style="cursor: pointer; "> style="cursor: pointer; ">
--> <img src="@/assets/table/del.png" alt="" title="删除"
<img src="@/assets/MenuIcon/lbcz_sc.png" alt="" title="删除"
@click="delAloneClick(scope.row)" style="cursor: pointer; "> @click="delAloneClick(scope.row)" style="cursor: pointer; ">
</span> </span>
</template> </template>
@ -263,7 +259,7 @@ onMounted(() => {
</template> </template>
<style scoped> <style scoped>
.invalidcatalogue-box { .project-box {
padding-right: 10px; padding-right: 10px;
} }
@ -342,7 +338,11 @@ onMounted(() => {
.el-dialog .el-input{ .el-dialog .el-input{
--el-input-inner-height: 38px --el-input-inner-height: 38px
} }
.el-dialog .el-button{ .project-box .el-button{
height: 40px; height: 40px;
} }
.el-dialog .el-button{
height: 38px;
}
</style> </style>

View File

@ -572,12 +572,10 @@ onMounted(() => {
<template> <template>
<div class="collectiontemplate-box"> <div class="collectiontemplate-box">
<section class="detail-box"> <section class="detail-box">
<el-menu style="margin-bottom:10px;" :default-active="activeIndex" class="el-menu-demo" mode="horizontal" <!-- <el-menu style="margin-bottom:10px;" :default-active="activeIndex" class="el-menu-demo" mode="horizontal"
@select="handleSelect"> @select="handleSelect">
<el-menu-item index="1">Web端</el-menu-item> <el-menu-item index="1">Web端</el-menu-item>
<el-menu-item index="2">手机App</el-menu-item> </el-menu> -->
<el-menu-item index="3">Pad端</el-menu-item>
</el-menu>
<div <div
style="display: flex;display: -webkit-flex; justify-content: space-between; -webkit-justify-content: space-between; margin-bottom:10px"> style="display: flex;display: -webkit-flex; justify-content: space-between; -webkit-justify-content: space-between; margin-bottom:10px">
<div style="display: flex;display: -webkit-flex;"> <div style="display: flex;display: -webkit-flex;">
@ -595,7 +593,7 @@ onMounted(() => {
</div> </div>
<div class="draggable"> <div class="draggable">
<el-table v-loading="loading" ref="multipleTable" :data="tableData" default-expand-all tooltip-effect="dark" <el-table v-loading="loading" ref="multipleTable" :data="tableData" default-expand-all tooltip-effect="dark"
style="width: 100%;height: calc(104vh - 290px)" row-key="id" border style="width: 100%;height: calc(104vh - 230px)" row-key="id" border
:header-cell-style="{ background: 'rgb(250 250 250)', color: '#383838', height: '50px' }"> :header-cell-style="{ background: 'rgb(250 250 250)', color: '#383838', height: '50px' }">
<el-table-column label="菜单标题" width="250" prop="name" show-overflow-tooltip> <el-table-column label="菜单标题" width="250" prop="name" show-overflow-tooltip>
<template #default="scope"> <template #default="scope">