|
|
|
|
@ -1117,8 +1117,9 @@ const submitForm = () => {
|
|
|
|
|
form.value.ossId = form.value.file[0].ossId;
|
|
|
|
|
form.value.photoAddress = form.value.file[0].url;
|
|
|
|
|
} else {
|
|
|
|
|
form.value.ossId = undefined;
|
|
|
|
|
form.value.photoAddress = undefined;
|
|
|
|
|
// 显式清空图片字段,确保后端更新
|
|
|
|
|
form.value.ossId = '';
|
|
|
|
|
form.value.photoAddress = '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (form.value.machineId) {
|
|
|
|
|
@ -1741,18 +1742,25 @@ watch(selectedMachine, (newMachine) => {
|
|
|
|
|
grid-template-columns: repeat(5, 1fr); // 修改为一行5个
|
|
|
|
|
gap: 8px;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.machine-card-wrapper {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
|
|
.machine-card {
|
|
|
|
|
background: #fff;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
padding: 8px 8px 44px; // 预留底部操作区空间
|
|
|
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
position: relative;
|
|
|
|
|
height: 160px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
transform: translateY(-1px);
|
|
|
|
|
@ -1852,6 +1860,10 @@ watch(selectedMachine, (newMachine) => {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.quick-actions {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 8px;
|
|
|
|
|
right: 8px;
|
|
|
|
|
bottom: 8px;
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|