maxiaoxiao 11 hónapja
szülő
commit
c544f958d8

+ 3 - 15
src/views/complianceAnalysis/components/hgxsc.vue

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

+ 0 - 2
src/views/complianceAnalysis/components/rzDtails.vue

@@ -39,7 +39,6 @@
 
 
 <script>
 <script>
 import { GetLog } from "@/api/ghss/hgxfx.js";
 import { GetLog } from "@/api/ghss/hgxfx.js";
-import hgxfx from "../../../../static/data/ghss/data.js";
 export default {
 export default {
   props: {
   props: {
     rzBsm: {
     rzBsm: {
@@ -59,7 +58,6 @@ export default {
   },
   },
   mounted() {
   mounted() {
     clearTimeout(this.timer);
     clearTimeout(this.timer);
-    this.logsdata = hgxfx.rzfxlist;
   },
   },
   methods: {
   methods: {
     handleClose() {
     handleClose() {