e4e28473 by 杨威
2 parents 31935291 2e2c3b13
...@@ -101,12 +101,16 @@ ...@@ -101,12 +101,16 @@
101 } 101 }
102 }, 102 },
103 methods: { 103 methods: {
104 lodding:function(){
105 this.$emit('lodding')
106 },
104 save: function () { 107 save: function () {
105 this.qlcData['bsms'] = this.bsms 108 this.qlcData['bsms'] = this.bsms
106 updatePlc(this.qlcData).then(res => { 109 updatePlc(this.qlcData).then(res => {
107 console.log(res) 110 console.log(res)
108 if (res.success) { 111 if (res.success) {
109 Message.success("保存成功") 112 Message.success("保存成功")
113 this.lodding()
110 this.close() 114 this.close()
111 } else { 115 } else {
112 Message.error(res.message) 116 Message.error(res.message)
......
...@@ -313,6 +313,9 @@ ...@@ -313,6 +313,9 @@
313 } 313 }
314 }, 314 },
315 methods: { 315 methods: {
316 lodding:function(){
317 this.$emit('lodding')
318 },
316 addYtInfo(){ 319 addYtInfo(){
317 this.form.fwytList.push({ 320 this.form.fwytList.push({
318 glbsm:'', 321 glbsm:'',
...@@ -367,6 +370,7 @@ ...@@ -367,6 +370,7 @@
367 console.log(this.form) 370 console.log(this.form)
368 batchUpdateQjH(this.form).then((res)=>{ 371 batchUpdateQjH(this.form).then((res)=>{
369 if(res.code===200){ 372 if(res.code===200){
373 this.lodding()
370 this.$message.success("保存成功!") 374 this.$message.success("保存成功!")
371 } 375 }
372 }) 376 })
......
...@@ -133,6 +133,9 @@ ...@@ -133,6 +133,9 @@
133 } 133 }
134 }, 134 },
135 methods: { 135 methods: {
136 lodding:function(){
137 this.$emit('lodding')
138 },
136 xl: function () { 139 xl: function () {
137 this.xlVisible = true; 140 this.xlVisible = true;
138 }, 141 },
...@@ -157,7 +160,9 @@ ...@@ -157,7 +160,9 @@
157 console.log(this.plshData) 160 console.log(this.plshData)
158 updateSh(this.plshData).then(res => { 161 updateSh(this.plshData).then(res => {
159 if (res.success) { 162 if (res.success) {
163 this.lodding();
160 this.close(); 164 this.close();
165
161 } else { 166 } else {
162 Message.error(res.message) 167 Message.error(res.message)
163 } 168 }
......
...@@ -196,10 +196,14 @@ ...@@ -196,10 +196,14 @@
196 } 196 }
197 }, 197 },
198 methods: { 198 methods: {
199 lodding:function(){
200 this.$emit('lodding')
201 },
199 save: function () { 202 save: function () {
200 this.plzlData['bsms'] = this.bsms; 203 this.plzlData['bsms'] = this.bsms;
201 updateZl(this.plzlData).then(res => { 204 updateZl(this.plzlData).then(res => {
202 if (res.success) { 205 if (res.success) {
206 this.lodding()
203 this.close(); 207 this.close();
204 } else { 208 } else {
205 Message.error(res.message) 209 Message.error(res.message)
......
...@@ -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"
...@@ -236,10 +236,10 @@ ...@@ -236,10 +236,10 @@
236 </div> 236 </div>
237 </el-dialog> 237 </el-dialog>
238 <!-- 批量操作弹出框 --> 238 <!-- 批量操作弹出框 -->
239 <pl-h :plh-visible="plhVisible" :bsms="bsms" @close="plhClose"></pl-h> 239 <pl-h :plh-visible="plhVisible" :bsms="bsms" @close="plhClose" @lodding="lodding"></pl-h>
240 <pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" @close="plZlClose"></pl-zl> 240 <pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" @close="plZlClose" @lodding="lodding"></pl-zl>
241 <pl-c :plc-visible="plcVisible" :bsms="bsms" @close="plcClose"></pl-c> 241 <pl-c :plc-visible="plcVisible" :bsms="bsms" @close="plcClose" @lodding="lodding"></pl-c>
242 <pl-sh :plShVisible="plShVisible" :bsms="bsms" @close="plshClose"></pl-sh> 242 <pl-sh :plShVisible="plShVisible" :bsms="bsms" @close="plshClose" @lodding="lodding"></pl-sh>
243 <h-cxlz 243 <h-cxlz
244 :h-cxlz-visble="hcxlzVisible" 244 :h-cxlz-visble="hcxlzVisible"
245 :bsms="bsms" 245 :bsms="bsms"
...@@ -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,
...@@ -392,6 +393,29 @@ export default { ...@@ -392,6 +393,29 @@ export default {
392 }, 100); 393 }, 100);
393 }, 394 },
394 methods: { 395 methods: {
396 openPl(val){
397 if (this.bsms.length <= 0) {
398 Message.warning("请选择操作户")
399 return
400 }
401 switch (val) {
402 case 'h':
403 this.plhVisible=true;
404 break;
405 case 'zl':
406 this.plzlVisible=true;
407 break;
408 case 'sh':
409 this.plShVisible=true;
410 break;
411 default:
412 break;
413 }
414 },
415 lodding(){
416 let zrzbsm=this.$store.state.zrzbsm;
417 this.$refs.lpbContent.getLpb(zrzbsm);
418 },
395 hcxlzClose() { 419 hcxlzClose() {
396 this.hcxlzVisible = false; 420 this.hcxlzVisible = false;
397 }, 421 },
......
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
260 </el-date-picker> 260 </el-date-picker>
261 </td> 261 </td>
262 </tr> 262 </tr>
263 263
264 </table> 264 </table>
265 <div style="min-height: 40px;text-align: center;margin-top: 10px"> 265 <div style="min-height: 40px;text-align: center;margin-top: 10px">
266 <el-button type="success" @click="onSave">保存</el-button> 266 <el-button type="success" @click="onSave">保存</el-button>
...@@ -631,4 +631,4 @@ ...@@ -631,4 +631,4 @@
631 } 631 }
632 } 632 }
633 } 633 }
634 </style>
...\ No newline at end of file ...\ No newline at end of file
634 </style>
......