maxiaoxiao пре 11 месеци
родитељ
комит
158e87b533

+ 2 - 1
src/views/complianceAnalysis/components/lsjl.vue

@@ -145,13 +145,14 @@ export default {
       //   if (res.success) {
       // this.$emit("updateParent", "scjgObj=JSON.parse(JSON.stringify(res.data))
       // this.$emit("updateParent", "scjgObj=JSON.parse(JSON.stringify(res.data))
+      this.$emit("updateParent", "nowObj", item);
       let next = this.$props.type == "hgxfx" ? "scjg" : "xzjg";
       this.$emit("updateParent", "activeTabs", next);
       //   }
       // });
     },
     checkRz(item) {
-      this.$emit("updateParent", "rzMc", item.xmmc);
+      this.$emit("updateParent", "nowObj", item);
       this.$emit("updateParent", "rzBsm", item.bsm);
     },
 

+ 4 - 9
src/views/complianceAnalysis/components/scjg.vue

@@ -2,12 +2,12 @@
   <div class="scjg">
     <div>
       <div class="downloadDiv">
-        <span>项目名称:{{ ruleForm.name }}</span>
+        <span>项目名称:{{ scjgObj.xmmc }}</span>
         <el-button type="primary" size="mini" @click="download">
           导出报告
         </el-button>
       </div>
-      <div>分析面积:{{ ruleForm.xzmj }}平方千米</div>
+      <div>分析面积:{{ scjgObj.xzmj }}平方千米</div>
     </div>
 
     <div v-for="(eitem, i) in echarts" :key="i" class="echars">
@@ -63,8 +63,6 @@ export default {
     };
   },
   mounted() {
-    this.ruleForm.name = hgxfx.name;
-    this.ruleForm.xzmj = hgxfx.xzmj;
     hgxfx.treeData.forEach((e) => {
       if (e.label == "控制性详细规划") e.label = "详细规划分析";
       this.echarts.push({ ...e, iseyes: false, isshow: true });
@@ -159,13 +157,10 @@ export default {
     },
 
     download() {
-      window.open(this.$props.scjgObj.task.fxbg);
+      window.open(this.$props.scjgObj.fxbg); //this.$props.scjgObj.task.fxbg
     },
     viewReport() {
-      window.open(
-        this.$props.scjgObj.task.fxbg.replace(".docx", ".pdf"),
-        "_blank"
-      );
+      window.open(this.$props.scjgObj.fxbg.replace(".docx", ".pdf"), "_blank");
     },
     reset() {
       this.dataSources = {};

+ 7 - 28
src/views/complianceAnalysis/index.vue

@@ -28,11 +28,15 @@
           name="scjg"
           :disabled="activeTabs != 'scjg'"
         >
-          <Scjg v-loading="loading" :scjgObj="scjgObj" ref="scjg"></Scjg
+          <Scjg v-loading="loading" :scjgObj="nowObj" ref="scjg"></Scjg
         ></el-tab-pane>
       </el-tabs>
     </div>
-    <RzDtails :rzBsm="rzBsm" :rzMc="rzMc" @updateParent="changeData"></RzDtails>
+    <RzDtails
+      :rzBsm="rzBsm"
+      :rzMc="nowObj.xmmc"
+      @updateParent="changeData"
+    ></RzDtails>
   </div>
 </template>
 
@@ -53,36 +57,11 @@ export default {
   },
   data() {
     return {
-      // dialogVisible: false,
-      // selectVisible: false,
-      // mbVisible: false,
-      // projectVisible: false,
-      // activeNames: [],
       loading: false,
       activeTabs: "hgxsc",
-      // rwBsm: "",
       // 日志
       rzBsm: "",
-      rzMc: "",
-      // form: {
-      //   ydxz_bsm: "",
-      //   ydmjbegin: "",
-      //   ydmjend: "",
-      //   kddk: "",
-      //   zdpd: "",
-      //   yxyz: "",
-      //   xzmj: 0,
-      //   sjy: "",
-      //   xzfw: "",
-      //   xmmc: "",
-      //   jsdw: "",
-      //   yjydlx: "",
-      //   fwlx: 0,
-      // },
-      scjgObj: {
-        task: { fxbg: "@/../static/data/ghss/合规性分析报告.docx" },
-      },
-      current:{}
+      nowObj: {}, //当前点击对象
       // rwObj: {},
       // tableData: [],
     };

+ 2 - 5
static/data/ghss/data.js

@@ -1,13 +1,10 @@
 
 var data = {
-    name: '合规性测试',
-    // 面积
-    xzmj: 62.1,
     datalist: [{
-        xmmc: '合规性测试', xmlx: '合规性分析', jsdw: "建设单位", rwzt: 2, 
+        xmmc: '合规性测试', xzmj: 62.1, xmlx: '合规性分析', jsdw: "建设单位", rwzt: 2,
         bsm: '401148617e5c41bdbde176f7e45d791e',
         geojson: '/static/data/ghss/导入.geojson',
-        fxbg: "@/../static/data/ghss/合规性分析报告.docx"
+        fxbg: "@/../static/data/ghss/合规性分析报告.docx",
     }],
     treeData: [
         { id: "XZFX", label: "现状分析" },