From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期三, 16 十月 2024 15:59:38 +0800 Subject: [PATCH] 代码初始化 --- admin/src/components/business/OperaCarUseBookWindow.vue | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/admin/src/components/business/OperaCarUseBookWindow.vue b/admin/src/components/business/OperaCarUseBookWindow.vue index 607212d..8321ae4 100644 --- a/admin/src/components/business/OperaCarUseBookWindow.vue +++ b/admin/src/components/business/OperaCarUseBookWindow.vue @@ -122,9 +122,9 @@ :visible.sync="isShowProblem" width="480px" > - <el-form :model="dealForm" ref="dealForm" > + <el-form :model="dealForm" :rules="rules" ref="dealForm" > <!-- <el-form-item label="娲捐溅鍙告満" prop="driverId" required v-if="model.approveDateVO!=null && model.approveDateVO.driverParam === 1"> --> - <el-form-item label="娲捐溅鍙告満" prop="driverId" required v-if="model.approveDateVO!=null && model.approveDateVO.driverParam == 1"> + <el-form-item label="娲捐溅鍙告満" prop="driverId" v-if="model.approveDateVO!=null && model.approveDateVO.driverParam == 1"> <el-select v-model="dealForm.driverId" style="width: 300px" filterable clearable placeholder="璇烽�夋嫨娲鹃仯鍙告満"> <el-option v-for="item in memberList" @@ -200,6 +200,9 @@ }, backForm: { checkInfo: null + }, + rules: { + driverId: [{ required: true, message: '璇烽�夋嫨娲鹃仯鍙告満', trigger: 'blur' }] } } }, @@ -241,16 +244,12 @@ }, agreeOpen () { this.isShowProblem = true - this.dealForm = { - driveId: null, - checkInfo: null - } + this.$set(this.dealForm, 'checkInfo', '') this.loadMemberList() }, jectOpen () { this.isBackProblem = true - this.dealForm = { - driveId: null, + this.backForm = { checkInfo: null } }, @@ -263,7 +262,7 @@ objId: this.dataId, objType: this.model.type == 1 ? 4 : 3, status: 3, - checkInfo: this.dealForm.checkInfo + checkInfo: this.backForm.checkInfo }).then(res => { this.$tip.apiSuccess('閫�鍥炴垚鍔�') this.getDetail() @@ -372,6 +371,7 @@ } .value { + flex: 1; color: #111111; } } -- Gitblit v1.9.3