Merge remote-tracking branch 'origin/master'
# Conflicts: # src/views/zrz/lpb/bjlp/index.vue
Showing
4 changed files
with
40 additions
and
8 deletions
| ... | @@ -199,10 +199,12 @@ export function getDetailInfo(zrzbsm,lx) { | ... | @@ -199,10 +199,12 @@ export function getDetailInfo(zrzbsm,lx) { |
| 199 | /** | 199 | /** |
| 200 | * 批量删除户基本信息表,data为一个数组List<String> | 200 | * 批量删除户基本信息表,data为一个数组List<String> |
| 201 | */ | 201 | */ |
| 202 | export function batchDeleteHByHbsms(data) { | 202 | export function batchDelete(data) { |
| 203 | return request({ | 203 | return request({ |
| 204 | url:'/system/qjH/batchDeleteHByBsms', | 204 | url:'/system/qjH/batchDeleteHByBsms', |
| 205 | method:'post', | 205 | method:'post', |
| 206 | data:data | 206 | data:{ |
| 207 | hbsms:data | ||
| 208 | } | ||
| 207 | }) | 209 | }) |
| 208 | } | 210 | } | ... | ... |
| ... | @@ -40,6 +40,10 @@ table{ | ... | @@ -40,6 +40,10 @@ table{ |
| 40 | table,tr,.el-col,.title{ | 40 | table,tr,.el-col,.title{ |
| 41 | border-color: #E6E6E6 !important; | 41 | border-color: #E6E6E6 !important; |
| 42 | } | 42 | } |
| 43 | //表格加边框 | ||
| 44 | .el-table{ | ||
| 45 | border: 1px solid #E6E6E6; | ||
| 46 | } | ||
| 43 | .el-table th{ | 47 | .el-table th{ |
| 44 | background-color: #FBFBFB; | 48 | background-color: #FBFBFB; |
| 45 | } | 49 | } | ... | ... |
| ... | @@ -78,6 +78,13 @@ | ... | @@ -78,6 +78,13 @@ |
| 78 | @click="batchCommit" | 78 | @click="batchCommit" |
| 79 | ><i class="iconfont iconhuzhongxinlazong"></i>批量提交</el-button | 79 | ><i class="iconfont iconhuzhongxinlazong"></i>批量提交</el-button |
| 80 | > | 80 | > |
| 81 | <el-button | ||
| 82 | class="radioBtn" | ||
| 83 | label="7" | ||
| 84 | border | ||
| 85 | @click="batchDelete" | ||
| 86 | ><i class="iconfont iconhuzhongxinlazong"></i>批量删除</el-button | ||
| 87 | > | ||
| 81 | </div> | 88 | </div> |
| 82 | </el-col> | 89 | </el-col> |
| 83 | </el-row> | 90 | </el-row> |
| ... | @@ -91,7 +98,7 @@ | ... | @@ -91,7 +98,7 @@ |
| 91 | ref="tabContent" | 98 | ref="tabContent" |
| 92 | :style="{ height: lpbContentHight + 'px' }" | 99 | :style="{ height: lpbContentHight + 'px' }" |
| 93 | v-loading="lpbloading" | 100 | v-loading="lpbloading" |
| 94 | v-if="bjztFlag" | 101 | v-show="bjztFlag" |
| 95 | > | 102 | > |
| 96 | <!-- 左侧树结构 --> | 103 | <!-- 左侧树结构 --> |
| 97 | <div class="lp-tree" :class="createFlag ? 'w260' : 'w0'"> | 104 | <div class="lp-tree" :class="createFlag ? 'w260' : 'w0'"> |
| ... | @@ -227,7 +234,7 @@ | ... | @@ -227,7 +234,7 @@ |
| 227 | </div> | 234 | </div> |
| 228 | </div> | 235 | </div> |
| 229 | 236 | ||
| 230 | <xxxx v-if="!bjztFlag"></xxxx> | 237 | <xxxx v-show="!bjztFlag"></xxxx> |
| 231 | 238 | ||
| 232 | <!-- 右键菜单弹出框 --> | 239 | <!-- 右键菜单弹出框 --> |
| 233 | <el-dialog v-dialogDrag :close-on-click-modal="false" :title="taskTitle" :visible.sync="dialogVisible" width="50%" > | 240 | <el-dialog v-dialogDrag :close-on-click-modal="false" :title="taskTitle" :visible.sync="dialogVisible" width="50%" > |
| ... | @@ -277,7 +284,7 @@ import addZdy from "./zdy/index"; | ... | @@ -277,7 +284,7 @@ import addZdy from "./zdy/index"; |
| 277 | import addCh from "./ch/index"; | 284 | import addCh from "./ch/index"; |
| 278 | import editCinfo from "./c/index"; | 285 | import editCinfo from "./c/index"; |
| 279 | import lpbContent from "./lpbContent/index"; | 286 | import lpbContent from "./lpbContent/index"; |
| 280 | import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit} from "@api/lpb"; | 287 | import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit,batchDelete} from "@api/lpb"; |
| 281 | import xxxx from '../xxxx/index' | 288 | import xxxx from '../xxxx/index' |
| 282 | 289 | ||
| 283 | export default { | 290 | export default { |
| ... | @@ -403,6 +410,7 @@ export default { | ... | @@ -403,6 +410,7 @@ export default { |
| 403 | }, 100); | 410 | }, 100); |
| 404 | }, | 411 | }, |
| 405 | methods: { | 412 | methods: { |
| 413 | //批量提交 | ||
| 406 | batchCommit(){ | 414 | batchCommit(){ |
| 407 | if (this.bsms.length <= 0) { | 415 | if (this.bsms.length <= 0) { |
| 408 | Message.warning("请选择操作户") | 416 | Message.warning("请选择操作户") |
| ... | @@ -422,9 +430,27 @@ export default { | ... | @@ -422,9 +430,27 @@ export default { |
| 422 | } | 430 | } |
| 423 | } | 431 | } |
| 424 | }, | 432 | }, |
| 433 | //批量删除 | ||
| 434 | batchDelete(){ if (this.bsms.length <= 0) { | ||
| 435 | Message.warning("请选择操作户") | ||
| 436 | return | ||
| 437 | }else{ | ||
| 438 | if (this.qsztList.indexOf('1') > -1) { | ||
| 439 | Message.warning("已提交的户无法继续操作") | ||
| 440 | }else{ | ||
| 441 | batchDelete(this.bsms).then(res=>{ | ||
| 442 | if(res.code === 200){ | ||
| 443 | Message.success("删除成功"); | ||
| 444 | this.getlpbData(); | ||
| 445 | }else { | ||
| 446 | this.$message.error(res.message); | ||
| 447 | } | ||
| 448 | }) | ||
| 449 | } | ||
| 450 | } | ||
| 451 | }, | ||
| 425 | loading(){ | 452 | loading(){ |
| 426 | //this.getLpbMenuTree(this.$store.state.zrzbsm); | 453 | this.getLpbMenuTree(this.$store.state.zrzbsm); |
| 427 | this.getlpbData(); | ||
| 428 | }, | 454 | }, |
| 429 | openPlC(){ | 455 | openPlC(){ |
| 430 | if (this.cbsmList.length <= 0) { | 456 | if (this.cbsmList.length <= 0) { | ... | ... |
| ... | @@ -297,7 +297,7 @@ | ... | @@ -297,7 +297,7 @@ |
| 297 | > | 297 | > |
| 298 | <li v-show="rightClickFlag == 'h'" @click="handleAddH">添加</li> | 298 | <li v-show="rightClickFlag == 'h'" @click="handleAddH">添加</li> |
| 299 | <li v-show="rightClickFlag == 'h'" @click="handleMoveH">移动</li> | 299 | <li v-show="rightClickFlag == 'h'" @click="handleMoveH">移动</li> |
| 300 | <li v-show="rightClickFlag == 'h'" @click="handleDeleteH">删除</li> | 300 | <!-- <li v-show="rightClickFlag == 'h'" @click="handleDeleteH">删除</li> --> |
| 301 | <li v-show="rightClickFlag == 'h'" @click="handleSyczh">实预测转换</li> | 301 | <li v-show="rightClickFlag == 'h'" @click="handleSyczh">实预测转换</li> |
| 302 | <li v-show="rightClickFlag == 'c'" @click="handleAddC('up')"> | 302 | <li v-show="rightClickFlag == 'c'" @click="handleAddC('up')"> |
| 303 | 向上添加层 | 303 | 向上添加层 | ... | ... |
-
Please register or sign in to post a comment