From 35c30ecf074b292e955d96df7a713a2166daff0e Mon Sep 17 00:00:00 2001 From: luobisheng <727299681@qq.com> Date: 星期二, 22 十一月 2022 18:32:06 +0800 Subject: [PATCH] 上传处置结果处理 --- src/views/operate/disposal/casepool/dispatch/index.vue | 64 ++++++++++---------------------- 1 files changed, 20 insertions(+), 44 deletions(-) diff --git a/src/views/operate/disposal/casepool/dispatch/index.vue b/src/views/operate/disposal/casepool/dispatch/index.vue index 3c0252b..7b5c19e 100644 --- a/src/views/operate/disposal/casepool/dispatch/index.vue +++ b/src/views/operate/disposal/casepool/dispatch/index.vue @@ -81,14 +81,14 @@ <!-- 璇︽儏椤靛睍绀� --> <el-dialog :visible.sync="dialogView" width="80%" title="鍩虹淇℃伅(浜哄伐)" v-if="dialogView" :before-close="handleClose"> - <MyDetail :info=info v-if="mystatus==1 ? true:false"></MyDetail> + <MyDetail :info=info v-if="mystatus===1"></MyDetail> <MyIllDetail :info=info v-else></MyIllDetail> </el-dialog> <!-- 涓婁紶椤甸潰 --> <el-dialog :visible.sync="dialogUpload" width="80%" title="涓婁紶澶勭疆缁撴灉" v-if="dialogUpload" :before-close="handleClose"> - <uploadVio v-if="mystatus === 1" :caseId="caseId" :mycode="caseCode" @closeDialog="closeDialog"></uploadVio> - <uploadIll v-else :caseId="caseId" :mycode="caseCode" @closeDialog="closeDialog"></uploadIll> + <uploadVio v-if="mystatus === 1" :caseId="caseId" :mycode="caseCode" :vioData="vioData" @closeDialog="closeDialog"></uploadVio> + <uploadIll v-else :caseId="caseId" :mycode="caseCode" @closeDialog="closeDialog" :illData="illData"></uploadIll> </el-dialog> <!-- tools --> <div class="tools"> @@ -109,8 +109,7 @@ </div> <div class="pagination"> <el-pagination background :current-page="currentPage" layout="prev, pager, next" - :total="totalNum" :page-size="pageSize" @current-change="changeCurrentPage" - @prev-click="handlePrev" @next-click="handleNext"> + :total="totalNum" :page-size="pageSize" @current-change="changeCurrentPage"> </el-pagination> </div> </div> @@ -123,10 +122,10 @@ import uploadIll from "./updateUser/uploadResult/ill" import MyDetail from '@/components/detail' import MyIllDetail from '@/components/illdetail' +import casequery from "@/api/operate/casequery"; import helper from '@/utils/mydate' export default { components: { - // updateUser, uploadVio, uploadIll, MyDetail,MyIllDetail }, data() { @@ -134,7 +133,6 @@ tableData: [], context: "", dialogUpload: false, - // dialogUpdate: false, dialogView: false, info: {}, totalNum: null, @@ -179,7 +177,9 @@ statusArr: [], mystatus: 1, caseId: '', - caseCode:null, + caseCode: null, + vioData: null, + illData: null } }, created() { @@ -194,14 +194,12 @@ methods: { // 椤堕儴涓嬫媺妗� setMystatus(value) { - console.log(value); this.statusArr[1] = value; this.changeTypeChecked(value - 1); this.getUserList(); }, // 鎵归噺鍒犻櫎 mulDelete(idArr) { - console.log(idArr); this.$axios({ method: 'delete', url: 'sccg/violations/batch_delete?ids=' + idArr, @@ -215,7 +213,6 @@ }, // 鎵ц涓嬫媺妗嗘搷浣� selectChange(list) { - console.log(this.tempList); if (this.tempList.length !== 0) { if (list === 3) { this.preMyIdx = list; @@ -235,11 +232,7 @@ list.forEach(item => { this.tempList.push(item.code); }) - if (list.length === this.tableData.length) { - this.all = true; - } else { - this.all = false - } + this.all = list.length === this.tableData.length; }, // 鍏ㄩ�� selectAll() { @@ -253,10 +246,8 @@ }, // 鍒犻櫎鍗曟潯鏁版嵁 handleDelete({ number }) { - console.log(number); this.$confirm('纭鍒犻櫎锛�') .then(_ => { - console.log(1); this.$axios({ method: 'delete', url: `sccg/violations/delete?id=${number}`, @@ -286,38 +277,22 @@ // 鏇存敼杩濊/杩濆缓 changeTypeChecked(idx) { this.typeList.forEach((item, index) => { - if (index === idx) { - item.checked = true; - } else { - item.checked = false; - } + item.checked = index === idx; }) this.mystatus = idx + 1; - console.log(this.mystatus); this.statusArr[1] = this.typeList[idx].value; this.getUserList(); }, // 璁剧疆琛ㄦ牸鏂戦┈绾� tableRowClassName({ row, rowIndex }) { - if ((rowIndex + 1) % 2 == 0) { + if ((rowIndex + 1) % 2 === 0) { return 'warning-row'; } else { return 'success-row'; } - return ''; }, // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠� changeCurrentPage(page) { - this.currentPage = page; - this.getUserList(); - }, - // 涓婁竴椤电偣鍑讳簨浠� - handlePrev(page) { - this.currentPage = page; - this.getUserList(); - }, - // 涓嬩竴椤电偣鍑讳簨浠� - handleNext(page) { this.currentPage = page; this.getUserList(); }, @@ -325,7 +300,6 @@ this.$confirm('纭鍏抽棴锛�') .then(_ => { this.dialogUpload = false; - // this.dialogUpdate = false; done(); }) .catch(_ => { }); @@ -344,11 +318,15 @@ this.dialogView = true; }) }, - opernDialog(data) { - this.dialogUpload = true; - this.caseId = data.id; - this.caseCode = data.code - // console.log(data); + async opernDialog(data) { + await casequery.getBaseCaseDetail(data.code) + .then(({ baseCase, currentSitVo, filesPictureVo, handlePassVo }) => { + this.vioData = currentSitVo; + }) + .catch(err => this.$message.error(err)) + this.dialogUpload = true; + this.caseId = data.id; + this.caseCode = data.code; }, // 鍏抽棴涓婁紶鐣岄潰 closeDialog({ flag }) { @@ -370,7 +348,6 @@ header { background-color: #09152f; - border: 1pox solid #fff; .headerContent { padding: 0 40px; @@ -430,7 +407,6 @@ background-color: #09152f; margin-top: 20px; padding-bottom: 50px; - border: 1pox solid #fff; .btn span:hover { cursor: pointer; -- Gitblit v1.8.0