34ca01fe by weimo934

merge(plzl):对接批量坐落接口

1 parent 3e745cf5
......@@ -103,3 +103,14 @@ export function updateSh(data) {
data: data
})
}
/**
* 批量坐落
*/
export function updateZl(data) {
return request({
url: '/system/qjH/batchZl',
method: 'put',
data: data
})
}
......
......@@ -102,6 +102,9 @@
</template>
<script>
import {updateZl} from './../../api/zrz'
import {Message} from 'element-ui'
export default {
name: "plZl",
props: {
......@@ -111,9 +114,6 @@
},
bsms: {
type: Array
},
measureType: {
type: String
}
},
data() {
......@@ -198,8 +198,13 @@
methods: {
save: function () {
this.plzlData['bsms'] = this.bsms;
this.plzlData['measureType'] = this.measureType;
console.log("save......", this.plzlData)
updateZl(this.plzlData).then(res => {
if (res.success) {
this.close();
} else {
Message.error(res.message)
}
})
},
cancel: function () {
console.log("cancel......")
......
......@@ -111,7 +111,7 @@
</el-dialog>
<!-- 批量操作弹出框 -->
<pl-h :plh-visible="plhVisible" :bsms="bsms" @close="plhClose"></pl-h>
<pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" :measureType="tabPosition" @close="plZlClose"></pl-zl>
<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>
<!-- 双击户的弹出框 -->
......@@ -325,7 +325,7 @@ export default {
this.hbsm = this.bsms[this.bsms.length-1];
this.hbjVisible = true;
setTimeout(() => {
this.$refs.hbj.getHInfo(this.hbsm);
this.$refs.hbj.getHInfo(this.hbsm);
}, 0);
}else{
//单击 TO DO
......@@ -347,7 +347,7 @@ export default {
},
//户保存
hbjSaveInfo(){
this.$refs.hbj.onSave(this.bsms[this.bsms.length-1],this.tabPosition);
this.$refs.hbj.onSave(this.bsms[this.bsms.length-1],this.tabPosition);
},
//户编辑表单重置
hbjResetInfo(){
......