From 1e07cfd8ac6c3e31e94c0ea98dcff61db51e49d1 Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期一, 09 一月 2023 16:54:39 +0800 Subject: [PATCH] fix: 单选框展示 --- src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/evidence/index.vue | 85 +++++++++++++++++++++--------------------- 1 files changed, 43 insertions(+), 42 deletions(-) diff --git a/src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/evidence/index.vue b/src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/evidence/index.vue index b4327cb..009da8f 100644 --- a/src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/evidence/index.vue +++ b/src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/evidence/index.vue @@ -15,7 +15,7 @@ </div> <!-- 鏃堕棿 --> <el-form-item label="鏃堕棿:" prop="investigationTime"> - <el-date-picker v-model="evidence.investigationTime" type="datetime" placeholder="閫夋嫨鏃堕棿"> + <el-date-picker v-model="evidence.investigationTime" value-format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="閫夋嫨鏃堕棿"> </el-date-picker> </el-form-item> <!-- 鍦板潃 --> @@ -52,8 +52,8 @@ <div class="user-form-content"> <el-form ref="userForm" label-width="120px" :model="user" :rules="userRules" autoComplete="on"> <!-- 绫诲瀷 --> - <el-form-item label="绫诲瀷:" prop="illegalType"> - <el-input v-model="basecase"></el-input> + <el-form-item label="绫诲瀷:" prop="illegalType" :disabled="true"> + <el-input v-model="user.illegalType"></el-input> </el-form-item> <!-- 濮撳悕銆佹墜鏈哄彿 --> <div class="user-item"> @@ -131,8 +131,8 @@ </div> </template> <script> -import { getTypeList } from '@/utils/helper' -import {validateName,validatePhone,validateCardId} from '@/utils/validate' +import { deepClone, getTypeList } from '@/utils/helper' +import { validateName, validatePhone, validateCardId } from '@/utils/validate' import MyUpload from "@/components/myUpload" export default { components: { @@ -271,15 +271,14 @@ } }, async created() { - await this.getCardTypeList(); - await this.getSchoolList(); - await this.getNationList(); - this.user.illegalType = JSON.parse(JSON.stringify(this.mytype)); - if (this.evienceData) { - this.evidence = this.evienceData; - this.evidence.pic = this.evidence.pic.split(','); + await this.getCardTypeList(); + await this.getSchoolList(); + await this.getNationList(); + this.$set(this.user, 'illegalType', this.illegalType); + if (this.evidenceData) { + this.evidence = deepClone(this.evidenceData); + this.evidence.pic = this.evidenceData.pic.split(','); this.user = this.evidence.partyInfo; - this.evidence.investigationTime = this.evidence.createTime; this.evidence.userInfo = this.evidence.partyInfo.name; } }, @@ -301,15 +300,17 @@ openDialog(e) { this.userFlag = true; this.userInfo = true; + this.$set(this.user, 'illegalType', this.illegalType); }, // 妫�楠寀ser checkUser() { this.$refs.userForm.validate((valid) => { if (valid) { - this.userFlag = false; + this.evidence.userInfo = this.user.name + '...'; + this.userFlag = false; } else { - this.evidence.userInfo = false; - return false; + this.evidence.userInfo = null; + this.$message.warning('璇锋鏌ュ繀濉」'); } }) }, @@ -342,7 +343,7 @@ setPicUrl({ url }) { const baseUrl = 'http://140.143.152.226:8410/'; if (this.evidence.pic.length < 4) { - this.evidence.pic.push(baseUrl + url) + this.evidence.pic.push(baseUrl + url); } }, //鍒犻櫎鍥剧墖 @@ -351,7 +352,7 @@ this.evidence.pic.splice(this.evidence.pic.indexOf(baseUrl + url),1); } }, - props:['mytype','mycode', 'evienceData'] + props:['evidenceData', 'illegalType'] } </script> <style lang="scss" scoped> @@ -458,23 +459,23 @@ } } - ::v-deep .el-textarea__inner { - background-color: #09152f; - border: 1px solid #17324c; - } + // ::v-deep .el-textarea__inner { + // // background-color: #09152f; + // border: 1px solid #17324c; + // } - ::v-deep .el-input__count { - background-color: #09152f; - } + // ::v-deep .el-input__count { + // // background-color: #09152f; + // } - ::v-deep .el-form-item__label { - color: #4b9bb7; - } + // ::v-deep .el-form-item__label { + // color: #4b9bb7; + // } - ::v-deep .el-input__inner { - background-color: #09152f; - border: 1px solid #17324c; - } + // ::v-deep .el-input__inner { + // background-color: #09152f; + // border: 1px solid #17324c; + // } } .user-form-footer { @@ -482,18 +483,18 @@ justify-content: flex-end; } -::v-deep .el-textarea__inner { - background-color: #09152f; - border: 1px solid #17324c; -} +// ::v-deep .el-textarea__inner { +// // background-color: #09152f; +// border: 1px solid #17324c; +// } -::v-deep .el-input__count { - background-color: #09152f; -} +// ::v-deep .el-input__count { +// // background-color: #09152f; +// } -::v-deep .el-form-item__label { - color: #4b9bb7; -} +// ::v-deep .el-form-item__label { +// color: #4b9bb7; +// } ::v-deep .el-dialog__header, ::v-deep .el-dialog__body { -- Gitblit v1.8.0