fix: 修复侧边栏激活样式和表单字段类型问题

- 移除侧边栏菜单项多余的`.submenu-title-noDropdown`类名
- 将表单字段`porIdx`和`trIdx`转换为字符串类型
- 调整侧边栏菜单的文本对齐格式
This commit is contained in:
砂糖
2025-11-05 16:57:57 +08:00
parent 7f7bb489b5
commit 5fa6eae333
3 changed files with 5 additions and 4 deletions

View File

@@ -148,7 +148,7 @@
}
}
.el-menu-item.is-active.submenu-title-noDropdown {
.el-menu-item.is-active {
background: #657b96; // 激活背景
color: #000; // 激活文字白色
font-weight: 600;

View File

@@ -3,7 +3,7 @@
<logo v-if="showLogo" :collapse="isCollapse" />
<el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper">
<el-menu
active-text-color="#000"
active-text-color="#000"
:default-active="activeMenu"
:collapse="isCollapse"
:background-color="settings.sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground"

View File

@@ -379,9 +379,10 @@ export default {
// 打开操作对话框
handleOperate(row, operation) {
this.$refs.operateForm?.resetFields()
console.log(this.selectCard, row.posIdx)
this.operateMatForm = {
porIdx: row.posIdx || null,
trIdx: row.posIdx || null,
porIdx: row.posIdx.toString() || '',
trIdx: row.posIdx.toString() || '',
planId: row.planId || '',
entryMatId: row.matId || '',
planNo: row.planNo || '',