e4e28473 by 杨威
2 parents 31935291 2e2c3b13
......@@ -101,12 +101,16 @@
}
},
methods: {
lodding:function(){
this.$emit('lodding')
},
save: function () {
this.qlcData['bsms'] = this.bsms
updatePlc(this.qlcData).then(res => {
console.log(res)
if (res.success) {
Message.success("保存成功")
this.lodding()
this.close()
} else {
Message.error(res.message)
......
......@@ -313,6 +313,9 @@
}
},
methods: {
lodding:function(){
this.$emit('lodding')
},
addYtInfo(){
this.form.fwytList.push({
glbsm:'',
......@@ -367,6 +370,7 @@
console.log(this.form)
batchUpdateQjH(this.form).then((res)=>{
if(res.code===200){
this.lodding()
this.$message.success("保存成功!")
}
})
......
......@@ -133,6 +133,9 @@
}
},
methods: {
lodding:function(){
this.$emit('lodding')
},
xl: function () {
this.xlVisible = true;
},
......@@ -157,7 +160,9 @@
console.log(this.plshData)
updateSh(this.plshData).then(res => {
if (res.success) {
this.lodding();
this.close();
} else {
Message.error(res.message)
}
......
......@@ -196,10 +196,14 @@
}
},
methods: {
lodding:function(){
this.$emit('lodding')
},
save: function () {
this.plzlData['bsms'] = this.bsms;
updateZl(this.plzlData).then(res => {
if (res.success) {
this.lodding()
this.close();
} else {
Message.error(res.message)
......
......@@ -34,28 +34,28 @@
class="radioBtn"
label="3"
border
@click="plhVisible = true"
@click="openPl('h')"
>批量户</el-button
>
<el-button
class="radioBtn"
label="4"
border
@click="plcVisible = true"
@click="plcVisible"
>批量层</el-button
>
<el-button
class="radioBtn"
label="5"
border
@click="plShVisible = true"
@click="openPl('sh')"
>批量室号</el-button
>
<el-button
class="radioBtn"
label="6"
border
@click="plzlVisible = true"
@click="openPl('zl')"
>批量坐落</el-button
>
<el-button class="radioBtn" label="7" border @click="addBdcdyh"
......@@ -236,10 +236,10 @@
</div>
</el-dialog>
<!-- 批量操作弹出框 -->
<pl-h :plh-visible="plhVisible" :bsms="bsms" @close="plhClose"></pl-h>
<pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" @close="plZlClose"></pl-zl>
<pl-c :plc-visible="plcVisible" :bsms="bsms" @close="plcClose"></pl-c>
<pl-sh :plShVisible="plShVisible" :bsms="bsms" @close="plshClose"></pl-sh>
<pl-h :plh-visible="plhVisible" :bsms="bsms" @close="plhClose" @lodding="lodding"></pl-h>
<pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" @close="plZlClose" @lodding="lodding"></pl-zl>
<pl-c :plc-visible="plcVisible" :bsms="bsms" @close="plcClose" @lodding="lodding"></pl-c>
<pl-sh :plShVisible="plShVisible" :bsms="bsms" @close="plshClose" @lodding="lodding"></pl-sh>
<h-cxlz
:h-cxlz-visble="hcxlzVisible"
:bsms="bsms"
......@@ -258,6 +258,7 @@
</template>
<script>
import {Message} from "element-ui"
import HCxlz from "./../../../../components/hCxlz/hCxlz";
import PlC from "./../../../../components/plc/plC";
import PlSh from "./../../../../components/plsh/plSh";
......@@ -289,7 +290,7 @@ export default {
props: {},
data() {
return {
bsms: ["123", "321", "231"],
bsms: [],
hbsm: "",
dialogVisible: false,
plcVisible: false,
......@@ -392,6 +393,29 @@ export default {
}, 100);
},
methods: {
openPl(val){
if (this.bsms.length <= 0) {
Message.warning("请选择操作户")
return
}
switch (val) {
case 'h':
this.plhVisible=true;
break;
case 'zl':
this.plzlVisible=true;
break;
case 'sh':
this.plShVisible=true;
break;
default:
break;
}
},
lodding(){
let zrzbsm=this.$store.state.zrzbsm;
this.$refs.lpbContent.getLpb(zrzbsm);
},
hcxlzClose() {
this.hcxlzVisible = false;
},
......
......@@ -260,7 +260,7 @@
</el-date-picker>
</td>
</tr>
</table>
<div style="min-height: 40px;text-align: center;margin-top: 10px">
<el-button type="success" @click="onSave">保存</el-button>
......@@ -631,4 +631,4 @@
}
}
}
</style>
\ No newline at end of file
</style>
......