问题修改
This commit is contained in:
@@ -395,9 +395,15 @@ const confirmForm = () => {
|
||||
form.value.planId = props.planId
|
||||
let confirmFormData = JSON.parse(JSON.stringify(form.value))
|
||||
addPlanProblemFormData(confirmFormData).then(res => {
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
if (res.code == 'A0000') {
|
||||
ElMessage({
|
||||
message: '新增实施问题成功',
|
||||
type: 'success'
|
||||
})
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
console.log('表单验证失败')
|
||||
@@ -407,17 +413,3 @@ const confirmForm = () => {
|
||||
}
|
||||
defineExpose({ open })
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.fixed-dialog {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
max-height: calc(100% - 30px);
|
||||
}
|
||||
.el-form {
|
||||
}
|
||||
.dialog-footer {
|
||||
padding: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -205,76 +205,3 @@ const handleEdit = (row: any) => {
|
||||
onMounted(() => {})
|
||||
defineExpose({ open })
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.fixed-dialog {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
max-height: calc(100% - 30px);
|
||||
}
|
||||
.el-form {
|
||||
width: 96%;
|
||||
height: 400px;
|
||||
margin: 0 auto;
|
||||
overflow-y: auto;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.dialog-footer {
|
||||
padding: 10px;
|
||||
}
|
||||
/* 调整标签的换行行为 */
|
||||
.label_over_warp::v-deep .el-form-item__label {
|
||||
// white-space: pre-line !important;
|
||||
line-height: 16px !important;
|
||||
}
|
||||
::v-deep .el-form-item {
|
||||
padding: 0 10px;
|
||||
height: auto !important;
|
||||
}
|
||||
::v-deep .el-form-item__label {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
.form-label-left-align {
|
||||
text-align: left;
|
||||
}
|
||||
::v-deep .el-input-number .el-input__inner {
|
||||
text-align: left;
|
||||
}
|
||||
.no_required::v-deep .el-form-item__label {
|
||||
padding-left: 10px !important;
|
||||
}
|
||||
::v-deep .el-input {
|
||||
width: 200px !important;
|
||||
}
|
||||
::v-deep .el-select {
|
||||
width: 200px !important;
|
||||
}
|
||||
::v-deep .required_position {
|
||||
position: relative;
|
||||
.required_icon {
|
||||
position: absolute;
|
||||
left: -10px;
|
||||
margin-top: 8px;
|
||||
color: #f56c6c;
|
||||
margin-left: 20px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.required_icon_white {
|
||||
color: #fff;
|
||||
position: absolute;
|
||||
left: -10px;
|
||||
padding-left: 10px;
|
||||
margin: 8px 10px 0 10px;
|
||||
}
|
||||
.required_text {
|
||||
// padding-left: 20px;
|
||||
}
|
||||
.el-form-item__label {
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
// ::v-deep .tabs_form{
|
||||
// height:300px !important;
|
||||
// }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user