f77c41c7 by weimo934

feat(lpb):批量前增加选择户提示

1 parent d5e04be9
...@@ -34,28 +34,28 @@ ...@@ -34,28 +34,28 @@
34 class="radioBtn" 34 class="radioBtn"
35 label="3" 35 label="3"
36 border 36 border
37 @click="plhVisible = true" 37 @click="openPl('h')"
38 >批量户</el-button 38 >批量户</el-button
39 > 39 >
40 <el-button 40 <el-button
41 class="radioBtn" 41 class="radioBtn"
42 label="4" 42 label="4"
43 border 43 border
44 @click="plcVisible = true" 44 @click="plcVisible"
45 >批量层</el-button 45 >批量层</el-button
46 > 46 >
47 <el-button 47 <el-button
48 class="radioBtn" 48 class="radioBtn"
49 label="5" 49 label="5"
50 border 50 border
51 @click="plShVisible = true" 51 @click="openPl('sh')"
52 >批量室号</el-button 52 >批量室号</el-button
53 > 53 >
54 <el-button 54 <el-button
55 class="radioBtn" 55 class="radioBtn"
56 label="6" 56 label="6"
57 border 57 border
58 @click="plzlVisible = true" 58 @click="openPl('zl')"
59 >批量坐落</el-button 59 >批量坐落</el-button
60 > 60 >
61 <el-button class="radioBtn" label="7" border @click="addBdcdyh" 61 <el-button class="radioBtn" label="7" border @click="addBdcdyh"
...@@ -258,6 +258,7 @@ ...@@ -258,6 +258,7 @@
258 </template> 258 </template>
259 259
260 <script> 260 <script>
261 import {Message} from "element-ui"
261 import HCxlz from "./../../../../components/hCxlz/hCxlz"; 262 import HCxlz from "./../../../../components/hCxlz/hCxlz";
262 import PlC from "./../../../../components/plc/plC"; 263 import PlC from "./../../../../components/plc/plC";
263 import PlSh from "./../../../../components/plsh/plSh"; 264 import PlSh from "./../../../../components/plsh/plSh";
...@@ -289,7 +290,7 @@ export default { ...@@ -289,7 +290,7 @@ export default {
289 props: {}, 290 props: {},
290 data() { 291 data() {
291 return { 292 return {
292 bsms: ["123", "321", "231"], 293 bsms: [],
293 hbsm: "", 294 hbsm: "",
294 dialogVisible: false, 295 dialogVisible: false,
295 plcVisible: false, 296 plcVisible: false,
...@@ -391,6 +392,25 @@ export default { ...@@ -391,6 +392,25 @@ export default {
391 }, 100); 392 }, 100);
392 }, 393 },
393 methods: { 394 methods: {
395 openPl(val){
396 if (this.bsms.length <= 0) {
397 Message.warning("请选择操作户")
398 return
399 }
400 switch (val) {
401 case 'h':
402 this.plhVisible=true;
403 break;
404 case 'zl':
405 this.plzlVisible=true;
406 break;
407 case 'sh':
408 this.plShVisible=true;
409 break;
410 default:
411 break;
412 }
413 },
394 lodding(){ 414 lodding(){
395 let zrzbsm=this.$store.state.zrzbsm; 415 let zrzbsm=this.$store.state.zrzbsm;
396 this.$refs.lpbContent.getLpb(zrzbsm); 416 this.$refs.lpbContent.getLpb(zrzbsm);
......