From 12fd8f6b04b26ef02bccdf5fd0bcefb59541c7f6 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期三, 02 十一月 2022 17:04:23 +0800 Subject: [PATCH] :预警研判 --- src/views/operate/baseSetting/illegalBuild/index.vue | 116 +++++++++++----------------------------------------------- 1 files changed, 22 insertions(+), 94 deletions(-) diff --git a/src/views/operate/baseSetting/illegalBuild/index.vue b/src/views/operate/baseSetting/illegalBuild/index.vue index 11b5b3a..2e47ab5 100644 --- a/src/views/operate/baseSetting/illegalBuild/index.vue +++ b/src/views/operate/baseSetting/illegalBuild/index.vue @@ -16,7 +16,7 @@ <el-button class="addBtn" type="primary" @click="dialogCreate = true">鏂板杩濆缓</el-button> <el-dialog :visible.sync="dialogCreate" title="鏂板杩濆缓" width="45%" v-if="dialogCreate" :before-close="handleClose"> - <createUser :refresh="getUserList" /> + <createUser @changeDialog="changeDialog" /> </el-dialog> </div> </div> @@ -30,11 +30,11 @@ @selection-change="tableChange"> <el-table-column type="selection" min-width="5"> </el-table-column> - <el-table-column prop="number" label="缂栧彿" min-width="10"> + <el-table-column prop="number" label="缂栧彿" min-width="5"> </el-table-column> <el-table-column prop="typeFirst" label="鎵�灞炵被鍨�" min-width="10"> </el-table-column> - <el-table-column prop="type" label="鎵�灞炵被鍒�" min-width="10"> + <el-table-column prop="type" label="鎵�灞炵被鍒�" min-width="20"> </el-table-column> <el-table-column prop="operation" label="鎿嶄綔" min-width="10"> <template slot-scope="scope"> @@ -48,14 +48,13 @@ </el-table> <!-- 鏌ョ湅淇敼椤甸潰 --> <el-dialog :visible.sync="dialogUpdate" width="45%" :title="updateFlag ? '淇敼杩濆缓淇℃伅' :'鏌ョ湅杩濆缓淇℃伅'" - v-if="dialogUpdate" :before-close="handleClose"> - <updateUser :updateFlag="updateFlag" :userInfo=userInfo - :getUserList=" context ? getUserList : getUserList" @changeDialog="changeDialog" /> + v-if="dialogUpdate" :before-close="handleClose2"> + <updateUser :updateFlag="updateFlag" :userInfo=userInfo @changeDialog="changeDialog" /> </el-dialog> <!-- tools --> <div class="tools"> <div class="funs"> - <div class="funsItem"> + <!-- <div class="funsItem"> <el-checkbox v-model="all" @change="selectAll()">鍏ㄩ��</el-checkbox> </div> <div class="funsItem"> @@ -67,7 +66,7 @@ :value="item.value" :disabled="item.disabled"> </el-option> </el-select> - </div> + </div> --> </div> <div class="pagination"> <el-pagination background :current-page="currentPage" layout="prev, pager, next" @@ -242,9 +241,10 @@ this.currentPage = page; this.getUserList(); }, - changeDialog(val) { - this.dialogUpdate = val.dialogUpdate; - console.log(val); + changeDialog({flag}) { + this.dialogCreate = flag; + this.dialogUpdate = flag; + this.getUserList(); }, handleClose(done) { this.$confirm('纭鍏抽棴锛�') @@ -254,6 +254,17 @@ done(); }) .catch(_ => { }); + }, + handleClose2(done){ + if(this.updateFlag){ + this.$confirm('纭鍏抽棴锛�') + .then(_ => { + done(); + }) + .catch(_ => { }); + }else{ + done(); + } } } } @@ -290,11 +301,6 @@ .el-input { flex: 2; color: #1d3f57; - - &::v-deep .el-input__inner { - background-color: #09152f; - border: 1px solid #17324c; - } } } @@ -358,11 +364,6 @@ width: 120px; } - &::v-deep .el-input__inner { - border: none; - background-color: #09152f; - } - &:hover { border: 1px solid #4b9bb7; } @@ -406,15 +407,6 @@ white-space: nowrap; overflow: hidden; } - - &::v-deep .el-table__empty-block { - background-color: #09152f; - } - - &::v-deep .el-table__empty-block { - color: #4b9bb7; - } - .operation { display: flex; @@ -427,70 +419,6 @@ } } } - - .el-table::v-deep .warning-row { - background: #06122c; - } - - .el-table::v-deep .success-row { - background: #071f39; - } - - &::v-deep .switchStyle .el-switch__label { - position: absolute; - display: none; - color: #fff; - } - - &::v-deep .el-switch__core { - background-color: rgba(166, 166, 166, 1); - } - - &::v-deep .switchStyle .el-switch__label--left { - z-index: 9; - left: 20px; - } - - &::v-deep .switchStyle .el-switch__label--right { - z-index: 9; - left: 4px; - } - - &::v-deep .switchStyle .el-switch__label.is-active { - display: block; - } - - &::v-deep .switchStyle.el-switch .el-switch__core, - &::v-deep .el-switch .el-switch__label { - width: 50px !important; - } - } - - &::v-deep .el-dialog__header, - &::v-deep .el-dialog__body { - background-color: #06122c; - } - - &::v-deep .el-dialog__header { - display: flex; - align-items: center; - background-color: #fff; - padding: 20px; - line-height: 60px; - } - - &::v-deep .el-dialog__title { - color: #4b9bb7; - } - - &::v-deep .el-dialog__close { - width: 20px; - height: 20px; - // color: #fff; - } - - &::v-deep .el-dialog__body { - padding: 0; } } </style> \ No newline at end of file -- Gitblit v1.8.0