From 0b803f46bffb4b59b5618c49eb81f1c16db672cf Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期日, 12 十一月 2023 10:09:46 +0800 Subject: [PATCH] 油烟统计 --- src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/evidence/index.vue | 76 +++++++++++++++++++------------------ 1 files changed, 39 insertions(+), 37 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 c105120..77e36f7 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 @@ -52,7 +52,7 @@ <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-form-item label="绫诲瀷:" prop="illegalType" :disabled="true"> <el-input v-model="user.illegalType"></el-input> </el-form-item> <!-- 濮撳悕銆佹墜鏈哄彿 --> @@ -271,20 +271,20 @@ } }, async created() { - await this.getCardTypeList(); - await this.getSchoolList(); - await this.getNationList(); - if (this.evidenceData) { + 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.userInfo = this.evidence.partyInfo.name; - this.user.illegalType = JSON.parse(JSON.stringify(this.mytype)); } }, methods: { handleSuccess2(res, file, filelist) { - const baseUrl = 'http://140.143.152.226:8410/'; + const baseUrl = ''; if (this.evidence.pic.length < 4) { this.evidence.pic.push(baseUrl + res.data.url1) } @@ -300,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('璇锋鏌ュ繀濉」'); } }) }, @@ -339,18 +341,18 @@ }, // 璁剧疆涓婁紶鎴愬姛涔嬪悗鐨勫浘鐗囧湴鍧� setPicUrl({ url }) { - const baseUrl = 'http://140.143.152.226:8410/'; + const baseUrl = ''; if (this.evidence.pic.length < 4) { this.evidence.pic.push(baseUrl + url); } }, //鍒犻櫎鍥剧墖 delPicUrl({url}){ - const baseUrl = 'http://140.143.152.226:8410/'; + const baseUrl = ''; this.evidence.pic.splice(this.evidence.pic.indexOf(baseUrl + url),1); } }, - props:['mytype','mycode', 'evidenceData'] + props:['evidenceData', 'illegalType'] } </script> <style lang="scss" scoped> @@ -457,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 { @@ -481,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