|
@@ -53,7 +53,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";
|
|
|
+import { GetMxList ,AddGdbh} from "../../../api/ghss/gdbh.js";
|
|
|
export default {
|
|
|
components: {
|
|
|
range,
|
|
@@ -170,8 +170,9 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
let obj = {
|
|
|
- xzmj: Number(this.ruleForm.xzmj),
|
|
|
+ xzfw: this.$refs.range.fileDataID,
|
|
|
xmmc: this.ruleForm.xmmc,
|
|
|
+ mxlist:this.anaModels
|
|
|
};
|
|
|
|
|
|
const loading = this.$loading({
|
|
@@ -185,20 +186,20 @@ export default {
|
|
|
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)
|
|
|
- // });
|
|
|
+ AddGdbh(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!!");
|