|
@@ -27,7 +27,7 @@
|
|
|
<div class="treeDiv">
|
|
|
<el-table :data="anaModels" style="width: 100%" :show-header="false">
|
|
|
<el-table-column type="selection" width="33"> </el-table-column>
|
|
|
- <el-table-column prop="name" show-overflow-tooltip> </el-table-column>
|
|
|
+ <el-table-column prop="bsmmc" show-overflow-tooltip> </el-table-column>
|
|
|
<el-table-column width="50">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <span>编辑</span> -->
|
|
@@ -55,6 +55,7 @@ import range from "@/components/mapview/range.vue"; //绘制范围
|
|
|
import zdyModelPop from "./zdyModelPop.vue"; //自定义模型面板
|
|
|
import moment from "moment";
|
|
|
import { Message } from "element-ui";
|
|
|
+import { GetMxList } from "../../../api/ghss/gdbh.js";
|
|
|
export default {
|
|
|
components: {
|
|
|
range,
|
|
@@ -121,11 +122,11 @@ export default {
|
|
|
console.log(item, "暂时使用");
|
|
|
this.zdyModel();
|
|
|
},
|
|
|
- reset(){
|
|
|
- this.ruleForm={
|
|
|
+ reset() {
|
|
|
+ this.ruleForm = {
|
|
|
xzmj: 0,
|
|
|
xmmc: "耕地保护项目_" + this.getCurrentDateTime(),
|
|
|
- }
|
|
|
+ };
|
|
|
this.$refs.ruleForm.resetFields();
|
|
|
this.$refs.range.reset();
|
|
|
},
|
|
@@ -150,25 +151,25 @@ export default {
|
|
|
spinner: "el-icon-loading",
|
|
|
background: "rgba(0, 0, 0, 0.7)",
|
|
|
});
|
|
|
- setTimeout(()=>{
|
|
|
- loading.close();
|
|
|
- this.activeTabs = "lsju";
|
|
|
- this.$emit("updateParent", "activeTabs", "lsju");
|
|
|
- },1000)
|
|
|
- // AddFzxz(obj)
|
|
|
- // .then((res) => {
|
|
|
- // loading.close();
|
|
|
- // this.activeTabs = "lsju";
|
|
|
- // this.$emit("updateParent", "activeTabs", "lsju");
|
|
|
- // this.$message({
|
|
|
- // message: res.message,
|
|
|
- // type: res.success ? "success" : "warning",
|
|
|
- // });
|
|
|
- // this.reset();
|
|
|
- // }).catch((error) => {
|
|
|
- // loading.close();
|
|
|
- // Message.error(error)
|
|
|
- // });
|
|
|
+ setTimeout(() => {
|
|
|
+ loading.close();
|
|
|
+ this.activeTabs = "lsju";
|
|
|
+ this.$emit("updateParent", "activeTabs", "lsju");
|
|
|
+ }, 1000);
|
|
|
+ // AddFzxz(obj)
|
|
|
+ // .then((res) => {
|
|
|
+ // loading.close();
|
|
|
+ // this.activeTabs = "lsju";
|
|
|
+ // this.$emit("updateParent", "activeTabs", "lsju");
|
|
|
+ // this.$message({
|
|
|
+ // message: res.message,
|
|
|
+ // type: res.success ? "success" : "warning",
|
|
|
+ // });
|
|
|
+ // this.reset();
|
|
|
+ // }).catch((error) => {
|
|
|
+ // loading.close();
|
|
|
+ // Message.error(error)
|
|
|
+ // });
|
|
|
} else {
|
|
|
loading.close();
|
|
|
console.log("error submit!!");
|
|
@@ -176,7 +177,20 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ GetMxList() {
|
|
|
+ GetMxList()
|
|
|
+ .then((res) => {
|
|
|
+ console.log(res, ":res");
|
|
|
+ this.anaModels = res.data
|
|
|
+ })
|
|
|
+ .catch((erro) => {
|
|
|
+ console.log(erro);
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
+ mounted(){
|
|
|
+ this.GetMxList()
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|