fix: 修复bug

This commit is contained in:
jiayu 2024-11-25 09:16:00 +08:00
parent 197617997d
commit 605c6e3a85
4 changed files with 280 additions and 274 deletions

View File

@ -17,8 +17,8 @@
<ToolBarRight /> <ToolBarRight />
</el-header> </el-header>
<el-container class="classic-content"> <el-container class="classic-content">
<el-aside>
<!-- <div class="menu" :style="{ width: isCollapse ? '65px' : '210px' }"> 根据屏幕自动收缩 --> <!-- <div class="menu" :style="{ width: isCollapse ? '65px' : '210px' }"> 根据屏幕自动收缩 -->
<el-aside>
<div class="menu"> <div class="menu">
<el-scrollbar> <el-scrollbar>
<el-menu <el-menu
@ -29,7 +29,7 @@
:unique-opened="true" :unique-opened="true"
background-color="#ffffff" background-color="#ffffff"
text-color="#333333" text-color="#333333"
style="--el-menu-hover-bg-color: #fff" style="--el-menu-hover-bg-color: #ffffff"
> >
<SubMenu :menuList="menuList" /> <SubMenu :menuList="menuList" />
</el-menu> </el-menu>
@ -141,13 +141,14 @@ onMounted(async () => {});
} }
@mixin title { @mixin title {
padding-left: 5px;
font-family: "Source Han Sans CN-Regular", "Source Han Sans CN";
font-size: 16px; font-size: 16px;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
border-left: 2px solid #008bff; border-left: 2px solid #008bff;
padding-left: 5px;
} }
// .classic { // .classic {
// .classic-content { // .classic-content {
// // margin-top: 10px; // // margin-top: 10px;
@ -197,16 +198,16 @@ onMounted(async () => {});
height: 18px; height: 18px;
} }
> span { > span {
margin-right: auto;
margin-left: 5px;
font-family: "Source Han Sans CN-Regular", "Source Han Sans CN";
font-size: 18px; font-size: 18px;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400; font-weight: 400;
color: var(--el-menu-text-color); color: var(--el-menu-text-color);
margin-left: 5px;
margin-right: auto;
} }
:deep(.el-icon) { :deep(.el-icon) {
cursor: pointer;
color: #a8abb2; color: #a8abb2;
cursor: pointer;
} }
} }
.detail-table { .detail-table {
@ -227,38 +228,40 @@ onMounted(async () => {});
:deep() { :deep() {
.overview { .overview {
.el-dialog__body { .el-dialog__body {
padding-top: 0px; padding-top: 0;
padding-bottom: 0px; padding-bottom: 0;
} }
.el-table__empty-text { .el-table__empty-text {
min-height: 200px;
display: flex; display: flex;
justify-content: center;
align-items: center; align-items: center;
justify-content: center;
min-height: 200px;
} }
td.el-table__cell { td.el-table__cell {
background-color: transparent !important; font-size: 20px !important;
// border-bottom: 0 !important; // border-bottom: 0 !important;
color: var(--el-menu-text-color); color: var(--el-menu-text-color);
font-size: 20px !important; background-color: transparent !important;
border-right: 2px solid #252526; border-right: 2px solid #252526;
} }
th.el-table__cell { th.el-table__cell {
background-color: transparent; background-color: transparent;
// border-bottom: 0 !important; // border-bottom: 0 !important;
border-right: 2px solid #252526; border-right: 2px solid #252526;
} }
.el-table__inner-wrapper::before { .el-table__inner-wrapper::before {
height: 0px; height: 0;
} }
.el-table--border::before { .el-table--border::before {
width: 0px; width: 0;
} }
.el-table--border .el-table__inner-wrapper::after { .el-table--border .el-table__inner-wrapper::after {
height: 0px; height: 0;
} }
.el-table--border::after { .el-table--border::after {
width: 0px; width: 0;
} }
.el-table__border-left-patch { .el-table__border-left-patch {
width: 0; width: 0;

View File

@ -107,7 +107,7 @@ onMounted(async () => {
}); });
}); });
formConfig.datas.enterpriseSn = stepOptions.value[active.value].dictValue + "名称"; formConfig.datas.enterpriseSn = stepOptions.value[active.value].dictValue + "名称";
if (store.Message && store.Message.engineeringMains.length) { if (store.Message && store.Message.engineeringMains.length && store.Message.engineeringMains.flat().length) {
formData.value = store.Message.engineeringMains; formData.value = store.Message.engineeringMains;
} }
formConfig.formData = formData.value[active.value]; formConfig.formData = formData.value[active.value];

View File

@ -192,7 +192,8 @@ const removeEngineeringMainPerson = (row: EngineeringMainPerson, ind: number) =>
!index >= 0 && formData.value[ind].engineeringMainPersonList?.splice(index, 1); !index >= 0 && formData.value[ind].engineeringMainPersonList?.splice(index, 1);
}; };
const getMainData = async () => { const getMainData = async () => {
const data = await queryMainType({ mainType: formData.value[0].type }); console.info(formData.value, "formData");
const data = await queryMainType({ mainType: formData.value[0]?.type });
nameOptions.value = data.result; nameOptions.value = data.result;
}; };
onMounted(async () => { onMounted(async () => {

View File

@ -410,9 +410,11 @@ onMounted(async () => {
structuralStyle.value = res1.result; structuralStyle.value = res1.result;
if (store.Message) { if (store.Message) {
form.value = store.Message; form.value = store.Message;
if (store.Message.longitude && store.Message.latitude) {
form.value.position = "经度:" + store.Message.longitude + " 纬度:" + store.Message.latitude; form.value.position = "经度:" + store.Message.longitude + " 纬度:" + store.Message.latitude;
}
addressList.value = store.Message; addressList.value = store.Message;
form.value.projectSecondType = store.Message.projectSecondType.split(",").map((item: string) => Number(item)); form.value.projectSecondType = store.Message.projectSecondType?.split(",").map((item: string) => Number(item));
} }
const res2 = await getDicList({ dictType: "engineering_state" }); const res2 = await getDicList({ dictType: "engineering_state" });
engineeringState.value = res2.result; engineeringState.value = res2.result;
@ -451,9 +453,9 @@ watch(
text-align: center; text-align: center;
} }
:deep(.el-table__empty-text) { :deep(.el-table__empty-text) {
min-height: 200px;
display: flex; display: flex;
justify-content: center;
align-items: center; align-items: center;
justify-content: center;
min-height: 200px;
} }
</style> </style>