fix: 修复bug
This commit is contained in:
parent
197617997d
commit
605c6e3a85
@ -17,8 +17,8 @@
|
||||
<ToolBarRight />
|
||||
</el-header>
|
||||
<el-container class="classic-content">
|
||||
<el-aside>
|
||||
<!-- <div class="menu" :style="{ width: isCollapse ? '65px' : '210px' }"> 根据屏幕自动收缩 -->
|
||||
<el-aside>
|
||||
<div class="menu">
|
||||
<el-scrollbar>
|
||||
<el-menu
|
||||
@ -29,7 +29,7 @@
|
||||
:unique-opened="true"
|
||||
background-color="#ffffff"
|
||||
text-color="#333333"
|
||||
style="--el-menu-hover-bg-color: #fff"
|
||||
style="--el-menu-hover-bg-color: #ffffff"
|
||||
>
|
||||
<SubMenu :menuList="menuList" />
|
||||
</el-menu>
|
||||
@ -141,13 +141,14 @@ onMounted(async () => {});
|
||||
}
|
||||
|
||||
@mixin title {
|
||||
padding-left: 5px;
|
||||
font-family: "Source Han Sans CN-Regular", "Source Han Sans CN";
|
||||
font-size: 16px;
|
||||
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
border-left: 2px solid #008bff;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
// .classic {
|
||||
// .classic-content {
|
||||
// // margin-top: 10px;
|
||||
@ -197,16 +198,16 @@ onMounted(async () => {});
|
||||
height: 18px;
|
||||
}
|
||||
> span {
|
||||
margin-right: auto;
|
||||
margin-left: 5px;
|
||||
font-family: "Source Han Sans CN-Regular", "Source Han Sans CN";
|
||||
font-size: 18px;
|
||||
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
||||
font-weight: 400;
|
||||
color: var(--el-menu-text-color);
|
||||
margin-left: 5px;
|
||||
margin-right: auto;
|
||||
}
|
||||
:deep(.el-icon) {
|
||||
cursor: pointer;
|
||||
color: #a8abb2;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.detail-table {
|
||||
@ -227,38 +228,40 @@ onMounted(async () => {});
|
||||
:deep() {
|
||||
.overview {
|
||||
.el-dialog__body {
|
||||
padding-top: 0px;
|
||||
padding-bottom: 0px;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.el-table__empty-text {
|
||||
min-height: 200px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 200px;
|
||||
}
|
||||
td.el-table__cell {
|
||||
background-color: transparent !important;
|
||||
font-size: 20px !important;
|
||||
|
||||
// border-bottom: 0 !important;
|
||||
color: var(--el-menu-text-color);
|
||||
font-size: 20px !important;
|
||||
background-color: transparent !important;
|
||||
border-right: 2px solid #252526;
|
||||
}
|
||||
th.el-table__cell {
|
||||
background-color: transparent;
|
||||
|
||||
// border-bottom: 0 !important;
|
||||
border-right: 2px solid #252526;
|
||||
}
|
||||
.el-table__inner-wrapper::before {
|
||||
height: 0px;
|
||||
height: 0;
|
||||
}
|
||||
.el-table--border::before {
|
||||
width: 0px;
|
||||
width: 0;
|
||||
}
|
||||
.el-table--border .el-table__inner-wrapper::after {
|
||||
height: 0px;
|
||||
height: 0;
|
||||
}
|
||||
.el-table--border::after {
|
||||
width: 0px;
|
||||
width: 0;
|
||||
}
|
||||
.el-table__border-left-patch {
|
||||
width: 0;
|
||||
|
||||
@ -107,7 +107,7 @@ onMounted(async () => {
|
||||
});
|
||||
});
|
||||
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;
|
||||
}
|
||||
formConfig.formData = formData.value[active.value];
|
||||
|
||||
@ -192,7 +192,8 @@ const removeEngineeringMainPerson = (row: EngineeringMainPerson, ind: number) =>
|
||||
!index >= 0 && formData.value[ind].engineeringMainPersonList?.splice(index, 1);
|
||||
};
|
||||
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;
|
||||
};
|
||||
onMounted(async () => {
|
||||
|
||||
@ -410,9 +410,11 @@ onMounted(async () => {
|
||||
structuralStyle.value = res1.result;
|
||||
if (store.Message) {
|
||||
form.value = store.Message;
|
||||
if (store.Message.longitude && store.Message.latitude) {
|
||||
form.value.position = "经度:" + store.Message.longitude + " 纬度:" + store.Message.latitude;
|
||||
}
|
||||
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" });
|
||||
engineeringState.value = res2.result;
|
||||
@ -451,9 +453,9 @@ watch(
|
||||
text-align: center;
|
||||
}
|
||||
:deep(.el-table__empty-text) {
|
||||
min-height: 200px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 200px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user