From 9530e7c7687f5032e58419954185f2e3b1fd77c9 Mon Sep 17 00:00:00 2001 From: mg <maokecheng@163.com> Date: 星期五, 28 十月 2022 18:31:55 +0800 Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_ui --- src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/evidence/index.vue | 36 +++++++++++++++++++++++++++--------- 1 files changed, 27 insertions(+), 9 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 1781109..9a9a94f 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 @@ -27,7 +27,7 @@ <el-input v-model="evidence.caseAction" placeholder="璇疯緭鍏ユ鐢�"></el-input> </el-form-item> <!-- 褰撲簨浜轰俊鎭� --> - <el-form-item label="褰撲簨浜轰俊鎭�:" prop="userInfo"> + <el-form-item label="褰撲簨浜轰俊鎭�:" prop="userInfo" class="sp-user-info"> <el-input suffix-icon="el-icon-s-order" v-model="evidence.userInfo" @focus="openDialog"></el-input> </el-form-item> <!-- 鎯呭喌鎻忚堪 --> @@ -66,11 +66,7 @@ <el-form ref="userForm" label-width="120px" :model="user" :rules="userRules" autoComplete="on"> <!-- 绫诲瀷 --> <el-form-item label="绫诲瀷:" prop="illegalType"> - <el-select v-model="user.illegalType" placeholder="璇烽�夋嫨"> - <el-option v-for="item in typeOptions" :key="item.value" :label="item.label" - :value="item.value"> - </el-option> - </el-select> + <el-input v-model="basecase"></el-input> </el-form-item> <!-- 濮撳悕銆佹墜鏈哄彿 --> <div class="user-item"> @@ -459,7 +455,8 @@ label: '澶у鍙婁互涓�', value: 4 }, - ] + ], + basecase:"" } }, created() { @@ -468,8 +465,25 @@ this.getNationList(); console.log(this.mytype); this.user.illegalType = JSON.parse(JSON.stringify(this.mytype)); + const {mycode}=this; + this.getEventInfo(mycode) }, methods: { + // 鑾峰彇妗堜欢淇℃伅 + async getEventInfo(mycode) { + await this.$axios({ + method: 'get', + url: `sccg/base_case/baseCaseDetail/${mycode}` + }) + .then(res => { + if(this.mytype == 1){ + this.basecase = res.data.baseCase.violations.typeText; + }else{ + this.basecase = res.data.baseCase.illegalBuilding.categoryText; + } + console.log(this.basecase) + }) + }, handleSuccess2(res, file, filelist) { const baseUrl = 'http://140.143.152.226:8410/'; console.log(res); @@ -558,7 +572,7 @@ deep: true, } }, - props:['mytype'] + props:['mytype','mycode'] } </script> <style lang="scss" scoped> @@ -640,7 +654,11 @@ padding-bottom: 60px; } - +.sp-user-info{ + ::v-deep .el-input{ + width: 200px; + } +} .user-form-content { padding-top: 20px; -- Gitblit v1.8.0