|
@@ -61,7 +61,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { Add, GetScx, UpdateScx } from "@/api/ghss/hgxfx.js";
|
|
|
-import { ElMessage, ElMessageBox } from "element-ui";
|
|
|
+import { Message, MessageBox } from "element-ui";
|
|
|
import range from "@/components/mapview/range.vue"; ///mapview/range
|
|
|
import hgxfx from "../../../../static/data/ghss/data.js";
|
|
|
export default {
|
|
@@ -167,9 +167,9 @@ export default {
|
|
|
updateScx() {
|
|
|
UpdateScx().then((res) => {
|
|
|
if (res.statuscode == 200) {
|
|
|
- ElMessage.success(res.message);
|
|
|
+ Message.success(res.message);
|
|
|
} else {
|
|
|
- ElMessage.error(res.message);
|
|
|
+ Message.error(res.message);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -203,25 +203,24 @@ export default {
|
|
|
|
|
|
this.is_form()
|
|
|
.then((res) => {
|
|
|
- // ElMessageBox.confirm("是否开始进行合规性检查?", "合规性检查", {
|
|
|
- // confirmButtonText: "确定",
|
|
|
- // cancelButtonText: "取消",
|
|
|
- // type: "warning",
|
|
|
- // }).then(() => {
|
|
|
- this.$emit("updateParent", "loading", true);
|
|
|
- Add({ ...this.ruleForm }).then((res) => {
|
|
|
- if (res.success) {
|
|
|
- this.$emit("updateParent", "rzMc", this.ruleForm.xmmc);
|
|
|
- this.$emit("updateParent", "rzBsm", res.data);
|
|
|
- // this.$emit("updateParent", "rwBsm", res.data);
|
|
|
- }
|
|
|
- this.$emit("updateParent", "loading", false);
|
|
|
+ MessageBox.confirm("是否开始进行合规性检查?", "合规性检查", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ this.$emit("updateParent", "loading", true);
|
|
|
+ Add({ ...this.ruleForm }).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ this.$emit("updateParent", "rzMc", this.ruleForm.xmmc);
|
|
|
+ this.$emit("updateParent", "rzBsm", res.data);
|
|
|
+ // this.$emit("updateParent", "rwBsm", res.data);
|
|
|
+ }
|
|
|
+ this.$emit("updateParent", "loading", false);
|
|
|
+ });
|
|
|
});
|
|
|
- // });
|
|
|
})
|
|
|
.catch((res) => {
|
|
|
- console.log("RES", res);
|
|
|
- // ElMessage.warning(res);
|
|
|
+ Message.warning(res);
|
|
|
});
|
|
|
},
|
|
|
is_form() {
|