0d0860e3 by 杨威

代码合并m:9090/renchao/CadastralSystem

2 parents 1a6132d1 34ca01fe
......@@ -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>
<!-- 双击户的弹出框 -->
......@@ -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(){
......