|
@@ -68,7 +68,6 @@
|
|
|
import { Add, GetScx, UpdateScx } from "@/api/ghss/hgxfx.js";
|
|
|
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 {
|
|
|
components: {
|
|
|
range,
|
|
@@ -78,18 +77,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
xz: [],
|
|
|
- treedata: [
|
|
|
- {
|
|
|
- id: 1,
|
|
|
- label: "一级控制线",
|
|
|
- children: [],
|
|
|
- },
|
|
|
- {
|
|
|
- id: 2,
|
|
|
- label: "二级控制线",
|
|
|
- children: [],
|
|
|
- },
|
|
|
- ],
|
|
|
+ treedata: [],
|
|
|
defaultProps: {
|
|
|
children: "children",
|
|
|
label: "ysmc",
|
|
@@ -131,7 +119,7 @@ export default {
|
|
|
//获取检查要素
|
|
|
getKzx() {
|
|
|
GetScx().then((res) => {
|
|
|
- if (res) {
|
|
|
+ if (res.data) {
|
|
|
this.treedata = this.tranListToTreeData(res.data, "0");
|
|
|
res.data.forEach((item) => {
|
|
|
if (item.kzxjb == 1) this.xz.push(item.bsm);
|
|
@@ -194,7 +182,7 @@ export default {
|
|
|
//更新范围
|
|
|
var _temp = this.$refs.range.getRange();
|
|
|
this.ruleForm.xzfw = _temp.xzfw;
|
|
|
- this.ruleForm.xzmj = _temp.xzmj || hgxfx.xzmj;
|
|
|
+ this.ruleForm.xzmj = _temp.xzmj;
|
|
|
this.$refs.ruleForm.validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.getCheckedNodes();
|