fix:mlogbw样式调整

This commit is contained in:
shijing 2025-01-21 11:07:06 +08:00
parent dfdecc01bd
commit c5d6e6fcf7
2 changed files with 156 additions and 146 deletions

View File

@ -130,7 +130,9 @@ export default {
font-weight: bold;
color: #008000;
}
#mlogbwList .el-table--default .cell{
padding: 0 5px !important;
}
#table1.el-table,
#table1.el-table tr,
#table1.el-table .el-table__body-wrapper,

View File

@ -2,13 +2,15 @@
<el-drawer
:title="headTitle[mode]"
v-model="visible"
:size="'80%'"
:size="'90%'"
destroy-on-close
@closed="$emit('closed')"
>
<el-container>
<el-main>
<sc-form-table
hideDelete
:tableHeight="500"
id="mlogbwList"
v-model="mlogbwlist"
:addTemplate="addTemplate"
placeholder="暂无数据"
@ -100,7 +102,7 @@
</el-select>
</template>
</el-table-column>
<el-table-column prop="note" :label="item.defect_name" v-for="item in qct_defects" :key="item.id" width="80px">
<el-table-column prop="note" :label="item.defect_name" v-for="item in qct_defects" :key="item.id" width="70px">
<template #default="scope">
<el-switch
:disabled="!scope.row.isEdit"
@ -110,13 +112,13 @@
></el-switch>
</template>
</el-table-column>
<el-table-column prop="note" label="备注">
<el-table-column prop="note" label="备注" width="80px">
<template #default="scope">
<span v-if="!scope.row.isEdit">{{ scope.row.note }}</span>
<el-input v-else v-model="scope.row.note" placeholder="备注"></el-input>
</template>
</el-table-column>
<el-table-column prop="open" label="操作" width="120" align="center">
<el-table-column prop="open" label="操作" width="60" align="center">
<template #default="scope">
<el-button
v-if="scope.row.isEdit"
@ -153,6 +155,9 @@
</template>
</el-table-column>
</sc-form-table>
</el-main>
</el-container>
</el-drawer>
</template>
<script>
@ -475,4 +480,7 @@ export default {
.width-100{
width: 100%;
}
#mlogbwList .el-table--default .cell{
padding: 0 5px !important;
}
</style>