基本配置修改 优化
This commit is contained in:
parent
cb18f8232d
commit
4dccab085b
|
|
@ -84,13 +84,18 @@
|
||||||
width="900px"
|
width="900px"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
>
|
>
|
||||||
|
<!-- 新增装备名称显示区域 -->
|
||||||
|
<div class="equipment-title">
|
||||||
|
<span class="title-label">装备名称:</span>
|
||||||
|
<span class="title-value">{{ currentEquipmentName }}</span>
|
||||||
|
</div>
|
||||||
<el-form ref="configForm" :model="configForm" :rules="configRules">
|
<el-form ref="configForm" :model="configForm" :rules="configRules">
|
||||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addConfig" style="margin-bottom:10px;">
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addConfig" style="margin-bottom:10px;">
|
||||||
添加配置
|
添加配置
|
||||||
</el-button>
|
</el-button>
|
||||||
<div class="config-table-header">
|
<div class="config-table-header">
|
||||||
<span class="config-th" style="width:180px;">配置类型</span>
|
<span class="config-th" style="width:180px;">配置类型</span>
|
||||||
<span class="config-th" style="width:180px;">数字配置</span>
|
<span class="config-th" style="width:180px;">基本配置标准(台/套)</span>
|
||||||
<span class="config-th" style="width:180px;">装备配置率</span>
|
<span class="config-th" style="width:180px;">装备配置率</span>
|
||||||
<span class="config-th" style="width:180px;">配置说明</span>
|
<span class="config-th" style="width:180px;">配置说明</span>
|
||||||
<span class="config-th" style="width:80px;">操作</span>
|
<span class="config-th" style="width:80px;">操作</span>
|
||||||
|
|
@ -106,7 +111,7 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-input style="width: 180px;margin-left: 10px"
|
<el-input style="width: 180px;margin-left: 10px"
|
||||||
v-model="item.basicConfig"
|
v-model="item.basicConfig"
|
||||||
placeholder="请输入数字配置"
|
placeholder="请输入基本配置标准"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
<el-input style="width: 180px ;margin-left: 10px"
|
<el-input style="width: 180px ;margin-left: 10px"
|
||||||
|
|
@ -154,6 +159,9 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
// 新增两个数据项
|
||||||
|
dialogTitle: "编辑基本配置", // 弹窗标题
|
||||||
|
currentEquipmentName: "", // 当前编辑的装备名称
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
// 显示搜索条件
|
// 显示搜索条件
|
||||||
|
|
@ -243,6 +251,10 @@ export default {
|
||||||
},
|
},
|
||||||
/** 双击行事件 */
|
/** 双击行事件 */
|
||||||
handleRowDblClick(row) {
|
handleRowDblClick(row) {
|
||||||
|
// 在打开弹窗前设置当前装备名称
|
||||||
|
this.currentEquipmentName = row.equipmentName;
|
||||||
|
// 更新弹窗标题
|
||||||
|
this.dialogTitle = `编辑基本配置 - ${row.equipmentName}`;
|
||||||
this.configForm.deptId = this.currentDeptId;
|
this.configForm.deptId = this.currentDeptId;
|
||||||
this.configForm.equipmentId = row.equipmentId;
|
this.configForm.equipmentId = row.equipmentId;
|
||||||
this.configForm.configs =[]
|
this.configForm.configs =[]
|
||||||
|
|
@ -475,4 +487,23 @@ export default {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
/* 新增装备名称显示样式 */
|
||||||
|
.equipment-title {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding: 10px 15px;
|
||||||
|
background-color: #f0f7ff;
|
||||||
|
border-radius: 4px;
|
||||||
|
border-left: 4px solid #409EFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-label {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #606266;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-value {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #1a73e8;
|
||||||
|
margin-left: 8px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue