eaf00331 by cheliming

添加宗地删除

1 parent 04b57908
VUE_APP_api = 'http://192.168.2.108:8000'
VUE_APP_api1 = 'http://192.168.2.76:8000'
VUE_APP_api2 = 'http://192.168.2.108:8006'
VUE_APP_api = 'http://192.168.2.48:8006'
VUE_APP_api1 = 'http://127.0.0.1:8006'
VUE_APP_api2 = 'http://192.168.2.9:8006'
VUE_APP_name = '开发环境'
NODE_ENV="development"
VUE_APP_VERSION = 'psh'
\ No newline at end of file
......
......@@ -141,4 +141,15 @@ export function jzxsbatchModify(data) {
})
}
/**x
*根据宗地Bsm删除宗地信息
*/
export function deleteZdInfoByBsm(data){
return request({
url: '/zd/qjZdjbxx/deleteZdjbxxByBsm',
method: 'delete',
data: data
})
}
......
......@@ -98,6 +98,7 @@ export default {
this.$emit("changeTop", y);
this.$emit("changeLeft", x);
this.$emit("changeVisible", true);
this.$emit("changeZdData",item);
} else if (item.zrzbsm) {
var x = e.pageX;
var y = e.pageY;
......
......@@ -35,6 +35,7 @@
v-if="item.expand && item.children.length > 0"
v-on="$listeners"
@changeTop="changeTop"
@changeZdData="changeZdData"
@changeLeft="changeLeft"
@changeVisible="changeVisible"
@changeIsZD="changeIsZD"
......@@ -56,11 +57,13 @@
<li v-show="!isZD">导入楼盘</li>
<li>重叠分析</li>
<li v-show="isZD">添加定着物</li>
<li @click="deleteByBsm()">删除</li>
</ul>
</div>
</template>
<script>
import lineItem from "./lineItem.vue";
import {deleteZdInfoByBsm} from "../../api/zd";
export default {
inheritAttrs: false,
props: {
......@@ -80,6 +83,7 @@ export default {
top: 0,
left: 0,
isZD: true,
zdData:{}
};
},
watch: {
......@@ -99,6 +103,9 @@ export default {
changeVisible(data) {
this.visible = data;
},
changeZdData(data) {
this.zdData = data
},
changeTop(data) {
this.top = data;
},
......@@ -151,6 +158,26 @@ export default {
this.selectedDetail = data;
this.$emit("detailDoubleClick", data);
},
deleteByBsm(){
var zdBsm = this.zdData.zdbsm;
console.log(zdBsm);
deleteZdInfoByBsm(zdBsm)
.then((res) => {
if(res.code=200){
this.$message({
message: res.message,
type: "success",
});
} else {
this.$message({
message: res.message,
type: "warning",
});
}
})
.catch((error) => {});
},
},
};
</script>
......
......@@ -44,12 +44,13 @@ module.exports = {
},
devServer: {
host: "127.0.0.1",
port: 8006,
port: 8008,
https: false,
hotOnly: false,
proxy: {
"/api": {
target: process.env.VUE_APP_api2,
//target: process.env.VUE_APP_api, //巍巍
target: process.env.VUE_APP_api1, //本地
changeOrigin: true,
pathRewrite: {
"^/api": "/",
......