Commit 8b9abeac by wusiyi

fix: 质检样式调整

parent b7589f9b
...@@ -7,12 +7,13 @@ ...@@ -7,12 +7,13 @@
:destroy-on-close="true" :destroy-on-close="true"
@close="handleClose" @close="handleClose"
> >
<ElForm ref="formRef" :model="form" :rules="rules"> <div class="confirm-body">
<div v-if="qualityPassed"> <ElIcon class="confirm-tip__icon" :size="24">
<div style="margin: 5px 0 20px 0">确定质检通过吗?</div> <WarningFilled />
</div> </ElIcon>
<div v-else style="margin: 0 0 10px 0"> <ElForm ref="formRef" :model="form" :rules="rules" class="confirm-form">
<div>确定质检不通过吗?</div> <div class="confirm-tip">
{{ qualityPassed ? '确定质检通过吗?' : '确定质检不通过吗?' }}
</div> </div>
<ElFormItem <ElFormItem
v-if="!qualityPassed" v-if="!qualityPassed"
...@@ -47,6 +48,7 @@ ...@@ -47,6 +48,7 @@
/> />
</ElFormItem> </ElFormItem>
</ElForm> </ElForm>
</div>
<template #footer> <template #footer>
<div class="dialog-footer" style="text-align: center"> <div class="dialog-footer" style="text-align: center">
<ElButton @click="visible = false">取消</ElButton> <ElButton @click="visible = false">取消</ElButton>
...@@ -62,6 +64,7 @@ ...@@ -62,6 +64,7 @@
import { computed, reactive, ref } from 'vue' import { computed, reactive, ref } from 'vue'
import { ElMessage } from 'element-plus' import { ElMessage } from 'element-plus'
import type { FormInstance, FormRules } from 'element-plus' import type { FormInstance, FormRules } from 'element-plus'
import { WarningFilled } from '@element-plus/icons-vue'
import { import {
getQualityTypeApi, getQualityTypeApi,
qualityPodOrderOperationApi, qualityPodOrderOperationApi,
...@@ -176,3 +179,20 @@ const handleSubmit = async () => { ...@@ -176,3 +179,20 @@ const handleSubmit = async () => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scoped>
.confirm-form {
flex: 1;
min-width: 0;
}
.confirm-tip {
margin-bottom: 12px;
line-height: 24px;
}
.confirm-tip__icon {
flex-shrink: 0;
color: var(--el-color-warning);
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment