d5e04be9 by weimo934

fix(lpb):批量之后加载数据

1 parent e8d5b821
...@@ -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)
......
...@@ -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"
...@@ -391,6 +391,10 @@ export default { ...@@ -391,6 +391,10 @@ export default {
391 }, 100); 391 }, 100);
392 }, 392 },
393 methods: { 393 methods: {
394 lodding(){
395 let zrzbsm=this.$store.state.zrzbsm;
396 this.$refs.lpbContent.getLpb(zrzbsm);
397 },
394 hcxlzClose() { 398 hcxlzClose() {
395 this.hcxlzVisible = false; 399 this.hcxlzVisible = false;
396 }, 400 },
......
...@@ -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>
......