From 1d100868d755062854671a85f677530147ebeaed Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期二, 03 一月 2023 10:10:29 +0800
Subject: [PATCH] 包二ifream嵌套

---
 src/views/PackageTwo/TaskStatus.vue          |   36 ++++
 src/views/PackageTwo/CoordinateTransform.vue |   37 ++++
 src/store/index.js                           |    1 
 src/router/index.js                          |   94 ++++++++++
 src/views/PackageTwo/DataDistribut.vue       |   37 ++++
 src/views/PackageTwo/WareInspection.vue      |   46 +++++
 src/api/api.js                               |    2 
 src/views/PackageTwo/MyResources.vue         |   36 ++++
 src/views/Synthesis/index.vue                |    2 
 src/views/PackageTwo/AchieveInspection.vue   |   36 ++++
 public/config/config.js                      |   25 ++
 src/views/PackageTwo/ResourceAudit.vue       |   37 ++++
 src/components/navMenu.vue                   |   59 +++---
 src/views/PackageTwo/DataGovernance.vue      |   37 ++++
 src/views/PackageTwo/FormatConversion.vue    |   37 ++++
 15 files changed, 489 insertions(+), 33 deletions(-)

diff --git a/public/config/config.js b/public/config/config.js
index 5edfa68..2818ff5 100644
--- a/public/config/config.js
+++ b/public/config/config.js
@@ -28,7 +28,6 @@
   // 鏈嶅姟鍦板潃
   baseURL: 'http://183.162.245.49:8888/',
   positionBtn: [],
-
 };
 var gaoDeBaseUrl = [
   {
@@ -44,3 +43,27 @@
     label: '楂樺痉褰卞儚鏍囨敞',
   },
 ];
+//鍖呬簩鍦板潃
+var packageUrl = "http://10.7.0.186:88";
+var packageUrll = packageUrl + '/dataxdi';
+var packageUrl2 = packageUrl + '/resm';
+var packageTwo = {
+  //鍏ュ簱璐ㄦ锛�
+  url1: packageUrll + '/#/schema/list?tags=鍏ュ簱璐ㄦ&embed=true&token=43117d00-b8e4-4406-9707-131109723a5a',
+  //鎴愭灉璐ㄦ
+  url2: packageUrll + '/#/schema/list?tags=鎴愭灉璐ㄦ&embed=true&token=43117d00-b8e4-4406-9707-131109723a5a',
+  //浠诲姟鐘舵��
+  url3: packageUrll + '/#/task/list?embed=true&token=43117d00-b8e4-4406-9707-131109723a5a',
+  //鏍煎紡杞崲
+  url4: packageUrll + '/#/schema/list?tags=鏁版嵁浜ゆ崲&embed=true&token=43117d00-b8e4-4406-9707-131109723a5a',
+  //鍧愭爣杞崲
+  url5: packageUrll + '/#/schema/list?tags=鍧愭爣杞崲&embed=true&token=43117d00-b8e4-4406-9707-131109723a5a',
+  //鏁版嵁鍒嗗彂
+  url6: packageUrll + '/#/schema/list?tags=鏁版嵁鍒嗗彂&embed=true&token=43117d00-b8e4-4406-9707-131109723a5a',
+  //鏁版嵁娌荤悊
+  url7: packageUrll + '/#/schema/list?tags=鏁版嵁娌荤悊&embed=true&token=43117d00-b8e4-4406-9707-131109723a5a',
+  //鎴戠殑璧勬簮
+  url8: packageUrl2 + '/#/resourceManage?embed=true&token=43117d00-b8e4-4406-9707-131109723a5a',
+  //璧勬簮瀹℃牳
+  url9: packageUrl2 + '/resm/#/resapproval?embed=true&token=43117d00-b8e4-4406-9707-131109723a5a',
+}
\ No newline at end of file
diff --git a/src/api/api.js b/src/api/api.js
index 69a498e..a6d29c3 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -207,7 +207,7 @@
 
 //鑿滃崟閫掑綊鏌ヨ鏁版嵁
 export function selectMenuRecursive(params) {
-  return request.get('/menu/selectMenuRecursive', { params: params });
+  return request.get('/menu/selectMenuAll', { params: params });
 }
 //鏂板鍗曟潯鑿滃崟
 export function insertMenu(params) {
diff --git a/src/components/navMenu.vue b/src/components/navMenu.vue
index 3eac16e..69a1267 100644
--- a/src/components/navMenu.vue
+++ b/src/components/navMenu.vue
@@ -109,26 +109,7 @@
       changeSelectStyle: null,
       changeliSelect: null,
       changeSelectdiv: false,
-      listMenu: [
-        {
-          cnName: '鏁版嵁璐ㄦ',
-          css: 'm1',
-          checkClass: 'm11',
-          url: '',
-        },
-        {
-          cnName: '鏁版嵁浜ゆ崲',
-          css: 'm2',
-          checkClass: 'm21',
-          url: '',
-        },
-        {
-          cnName: '鏈嶅姟绠$悊',
-          css: 'm4',
-          checkClass: 'm41',
-          url: '',
-        },
-      ],
+      listMenu: [],
       showFlag: null,
     };
   },
@@ -164,10 +145,16 @@
     },
     //涓婚鍒囨崲
     setThemeColors() { },
+    closeAllChildren() {
+      for (var i in this.listMenu) {
+        let newItem = this.listMenu[i];
+        newItem.show = false;
+        Vue.set(this.listMenu, i, newItem);
+      }
+    },
     //榧犳爣绉诲叆鑿滃崟浜嬩欢
     setMenuMove(index, item) {
-      var that = this;
-
+      this.closeAllChildren();
       if (item.perms != null) {
         this.$router.push(item.url);
         if (this.showFlag != null) {
@@ -181,7 +168,7 @@
           this.setShowFalseDiv(true);
         } else {
           let newItem = this.listMenu[index];
-          newItem.show = !this.listMenu[index].show;
+          newItem.show = !newItem.show;
           Vue.set(this.listMenu, index, newItem);
         }
       }
@@ -196,10 +183,20 @@
       Vue.set(this.listMenu, index, newItem);
     },
     setLiClick(res) {
-      this.setShowFalseDiv(false);
       this.changeliSelect = res.cnName;
-      this.$router.push(res.url);
-      this.$store.commit('currentPerms', res.perms);
+      if (res.url.indexOf('http') != -1) {
+        if (this.$store.reporturl == null) {
+          this.$store.reporturl = res.url;
+          this.$router.push('/WareInspection');
+        } else {
+          this.$bus.$emit('changeNaveUrl', res.url);
+        }
+      } else {
+        this.$store.reporturl = null;
+        this.$router.push(res.url);
+        this.$store.commit('currentPerms', res.perms);
+      }
+   this.closeAllChildren();
     },
     async getMenuTree() {
       this.getCookies();
@@ -219,6 +216,7 @@
       }
     },
     async setMenuTree(res) {
+
       for (var i in res) {
         res[i].checkClass = res[i].css + '1';
         res[i].show = false; //鎺у埗鏄鹃殣
@@ -229,10 +227,10 @@
           });
           this.listMenu.push(res[i]);
           this.changeSelectStyle = this.listMenu.length - 1;
-          var strartMneu = res[i].children[0];
-          this.$store.commit('currentPerms', strartMneu.perms);
-          this.changeliSelect = strartMneu.cnName;
-          this.$bus.$emit('currentPerms', strartMneu.perms);
+          // var strartMneu = res[i].children[0];
+          // this.$store.commit('currentPerms', strartMneu.perms);
+          // this.changeliSelect = strartMneu.cnName;
+          // this.$bus.$emit('currentPerms', strartMneu.perms);
         } else {
           this.listMenu.push(res[i]);
         }
@@ -325,6 +323,7 @@
     },
   },
   created() {
+   this.$store.reporturl=null;
     let str = this.$route.path;
     if (str[0] == '/') {
       this.activeIndex = str.slice(1);
diff --git a/src/router/index.js b/src/router/index.js
index bf98b92..14a847a 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -43,11 +43,22 @@
 import authorityManage from '@/views/userManage/authorityManage.vue'; //鐢ㄦ埛绠$悊-鏉冮檺绠$悊
 import resourceManage from '@/views/userManage/resourceManage.vue'; //鐢ㄦ埛绠$悊-璧勬簮绠$悊
 import userRoleAuthorization from '@/views/AuthorizationManagement/userRoleAuthorization.vue'; //绯荤粺绠$悊-鐢ㄦ埛瑙掕壊鎺堟潈
-
 import menuRoleAuthorization from '@/views/AuthorizationManagement/menuRoleAuthorization.vue'; //绯荤粺绠$悊-鑿滃崟鏉冮檺鎺堟潈
 import roleResAuthorization from '@/views/AuthorizationManagement/roleResAuthorization.vue'; //绯荤粺绠$悊-瑙掕壊璧勬簮鎺堟潈
 import roleMenuAuthorization from '@/views/AuthorizationManagement/roleMenuAuthorization.vue'; //绯荤粺绠$悊-瑙掕壊鑿滃崟鎺堟潈
 
+//鍖呬簩
+import WareInspection from '@/views/PackageTwo/WareInspection.vue'; //鏁版嵁璐ㄦ-鍏ュ簱璐ㄦ
+import AchieveInspection from '@/views/PackageTwo/AchieveInspection.vue'; //鏁版嵁璐ㄦ-鎴愭灉璐ㄦ
+import TaskStatus from '@/views/PackageTwo/TaskStatus.vue'; //鏁版嵁璐ㄦ-浠诲姟鐘舵��
+
+import FormatConversion from '@/views/PackageTwo/FormatConversion.vue'; //鏁版嵁浜ゆ崲-鏍煎紡杞崲
+import CoordinateTransform from '@/views/PackageTwo/CoordinateTransform.vue'; //鏁版嵁浜ゆ崲-鍧愭爣杞崲
+import DataDistribut from '@/views/PackageTwo/DataDistribut.vue'; //鏁版嵁浜ゆ崲-鏁版嵁鍒嗗彂
+import DataGovernance from '@/views/PackageTwo/DataGovernance.vue'; //鏁版嵁浜ゆ崲-鏁版嵁娌荤悊
+
+import MyResources from '@/views/PackageTwo/MyResources.vue'; //鏈嶅姟绠$悊-鎴戠殑璧勬簮
+import ResourceAudit from '@/views/PackageTwo/ResourceAudit.vue'; //鏈嶅姟绠$悊-璧勬簮瀹℃牳
 const originalPush = VueRouter.prototype.push;
 
 VueRouter.prototype.push = function push(location) {
@@ -70,6 +81,87 @@
     redirect: '/Synthesis',
     children: [
       {
+        path: '/ResourceAudit',
+        component: ResourceAudit,
+        name: 'ResourceAudit',
+        meta: {
+          title: '璧勬簮瀹℃牳',
+          requireAuth: true, // 鏍囪瘑璇ヨ矾鐢辨槸鍚﹂渶瑕佺櫥褰�
+        },
+      },
+      {
+        path: '/MyResources',
+        component: MyResources,
+        name: 'MyResources',
+        meta: {
+          title: '鎴戠殑璧勬簮',
+          requireAuth: true, // 鏍囪瘑璇ヨ矾鐢辨槸鍚﹂渶瑕佺櫥褰�
+        },
+      },
+      {
+        path: '/DataGovernance',
+        component: DataGovernance,
+        name: 'DataGovernance',
+        meta: {
+          title: '鏁版嵁娌荤悊',
+          requireAuth: true, // 鏍囪瘑璇ヨ矾鐢辨槸鍚﹂渶瑕佺櫥褰�
+        },
+      },
+      {
+        path: '/DataDistribut',
+        component: DataDistribut,
+        name: 'DataDistribut',
+        meta: {
+          title: '鏁版嵁鍒嗗彂',
+          requireAuth: true, // 鏍囪瘑璇ヨ矾鐢辨槸鍚﹂渶瑕佺櫥褰�
+        },
+      },
+      {
+        path: '/CoordinateTransform',
+        component: CoordinateTransform,
+        name: 'CoordinateTransform',
+        meta: {
+          title: '鍧愭爣杞崲',
+          requireAuth: true, // 鏍囪瘑璇ヨ矾鐢辨槸鍚﹂渶瑕佺櫥褰�
+        },
+      },
+      {
+        path: '/FormatConversion',
+        component: FormatConversion,
+        name: 'FormatConversion',
+        meta: {
+          title: '鏍煎紡杞崲',
+          requireAuth: true, // 鏍囪瘑璇ヨ矾鐢辨槸鍚﹂渶瑕佺櫥褰�
+        },
+      },
+      {
+        path: '/TaskStatus',
+        component: TaskStatus,
+        name: 'TaskStatus',
+        meta: {
+          title: '浠诲姟鐘舵��',
+          requireAuth: true, // 鏍囪瘑璇ヨ矾鐢辨槸鍚﹂渶瑕佺櫥褰�
+        },
+      },
+      {
+        path: '/AchieveInspection',
+        component: AchieveInspection,
+        name: 'AchieveInspection',
+        meta: {
+          title: '鎴愭灉璐ㄦ',
+          requireAuth: true, // 鏍囪瘑璇ヨ矾鐢辨槸鍚﹂渶瑕佺櫥褰�
+        },
+      },
+      {
+        path: '/WareInspection',
+        component: WareInspection,
+        name: 'WareInspection',
+        meta: {
+          title: '鍏ュ簱璐ㄦ',
+          requireAuth: true, // 鏍囪瘑璇ヨ矾鐢辨槸鍚﹂渶瑕佺櫥褰�
+        },
+      },
+      {
         path: '/mochaitmo',
         component: mochaitmo,
         name: 'mochaitmo',
diff --git a/src/store/index.js b/src/store/index.js
index 35398c1..7c4d991 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -49,6 +49,7 @@
     primitLayer:null,
     loading:false,
     pipelineEntity:[],
+    reporturl:null,
   },
   mutations: {
     //鑾峰彇鏉冮檺鍚堥泦
diff --git a/src/views/PackageTwo/AchieveInspection.vue b/src/views/PackageTwo/AchieveInspection.vue
new file mode 100644
index 0000000..acc9db8
--- /dev/null
+++ b/src/views/PackageTwo/AchieveInspection.vue
@@ -0,0 +1,36 @@
+<!--鎴愭灉璐ㄦ璐ㄦ--->
+<template>
+  <div class="wareBox">
+    <iframe
+      style="border:none"
+      width="100%"
+      height="100%"
+      v-bind:src="reportUrl"
+    ></iframe>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      reportUrl: ''
+    }
+  },
+  mounted() {
+    this.reportUrl = packageTwo.url2;
+    console.log(this.reportUrl)
+  }
+
+}
+</script>
+
+<style lang="less" scoped>
+.wareBox {
+  width: 100%;
+  height: 100%;
+  margin: 0;
+  padding: 0;
+  overflow: hidden;
+}
+</style>
\ No newline at end of file
diff --git a/src/views/PackageTwo/CoordinateTransform.vue b/src/views/PackageTwo/CoordinateTransform.vue
new file mode 100644
index 0000000..3c3b6da
--- /dev/null
+++ b/src/views/PackageTwo/CoordinateTransform.vue
@@ -0,0 +1,37 @@
+
+<!--鍧愭爣杞崲--->
+<template>
+  <div class="wareBox">
+    <iframe
+      style="border:none"
+      width="100%"
+      height="100%"
+      v-bind:src="reportUrl"
+    ></iframe>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      reportUrl: ''
+    }
+  },
+  mounted() {
+    this.reportUrl = packageTwo.url5;
+     console.log(this.reportUrl)
+  }
+
+}
+</script>
+
+<style lang="less" scoped>
+.wareBox {
+  width: 100%;
+  height: 100%;
+  margin: 0;
+  padding: 0;
+  overflow: hidden;
+}
+</style>
\ No newline at end of file
diff --git a/src/views/PackageTwo/DataDistribut.vue b/src/views/PackageTwo/DataDistribut.vue
new file mode 100644
index 0000000..f618cf1
--- /dev/null
+++ b/src/views/PackageTwo/DataDistribut.vue
@@ -0,0 +1,37 @@
+
+<!--鏁版嵁鍒嗗彂--->
+<template>
+  <div class="wareBox">
+    <iframe
+      style="border:none"
+      width="100%"
+      height="100%"
+      v-bind:src="reportUrl"
+    ></iframe>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      reportUrl: ''
+    }
+  },
+  mounted() {
+    this.reportUrl = packageTwo.url6;
+    console.log(this.reportUrl)
+  }
+
+}
+</script>
+
+<style lang="less" scoped>
+.wareBox {
+  width: 100%;
+  height: 100%;
+  margin: 0;
+  padding: 0;
+  overflow: hidden;
+}
+</style>
\ No newline at end of file
diff --git a/src/views/PackageTwo/DataGovernance.vue b/src/views/PackageTwo/DataGovernance.vue
new file mode 100644
index 0000000..f675276
--- /dev/null
+++ b/src/views/PackageTwo/DataGovernance.vue
@@ -0,0 +1,37 @@
+
+<!--鏁版嵁娌荤悊--->
+<template>
+  <div class="wareBox">
+    <iframe
+      style="border:none"
+      width="100%"
+      height="100%"
+      v-bind:src="reportUrl"
+    ></iframe>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      reportUrl: ''
+    }
+  },
+  mounted() {
+    this.reportUrl = packageTwo.url7;
+    console.log(this.reportUrl)
+  }
+
+}
+</script>
+
+<style lang="less" scoped>
+.wareBox {
+  width: 100%;
+  height: 100%;
+  margin: 0;
+  padding: 0;
+  overflow: hidden;
+}
+</style>
\ No newline at end of file
diff --git a/src/views/PackageTwo/FormatConversion.vue b/src/views/PackageTwo/FormatConversion.vue
new file mode 100644
index 0000000..8ab9be0
--- /dev/null
+++ b/src/views/PackageTwo/FormatConversion.vue
@@ -0,0 +1,37 @@
+
+<!--鏍煎紡杞崲--->
+<template>
+  <div class="wareBox">
+    <iframe
+      style="border:none"
+      width="100%"
+      height="100%"
+      v-bind:src="reportUrl"
+    ></iframe>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      reportUrl: ''
+    }
+  },
+  mounted() {
+    this.reportUrl = packageTwo.url4;
+     console.log(this.reportUrl)
+  }
+
+}
+</script>
+
+<style lang="less" scoped>
+.wareBox {
+  width: 100%;
+  height: 100%;
+  margin: 0;
+  padding: 0;
+  overflow: hidden;
+}
+</style>
\ No newline at end of file
diff --git a/src/views/PackageTwo/MyResources.vue b/src/views/PackageTwo/MyResources.vue
new file mode 100644
index 0000000..d5d3478
--- /dev/null
+++ b/src/views/PackageTwo/MyResources.vue
@@ -0,0 +1,36 @@
+<!--鎴戠殑璧勬簮--->
+<template>
+  <div class="wareBox">
+    <iframe
+      style="border:none"
+      width="100%"
+      height="100%"
+      v-bind:src="reportUrl"
+    ></iframe>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      reportUrl: ''
+    }
+  },
+  mounted() {
+    this.reportUrl = packageTwo.url8;
+    console.log(this.reportUrl)
+  }
+
+}
+</script>
+
+<style lang="less" scoped>
+.wareBox {
+  width: 100%;
+  height: 100%;
+  margin: 0;
+  padding: 0;
+  overflow: hidden;
+}
+</style>
\ No newline at end of file
diff --git a/src/views/PackageTwo/ResourceAudit.vue b/src/views/PackageTwo/ResourceAudit.vue
new file mode 100644
index 0000000..39d4f36
--- /dev/null
+++ b/src/views/PackageTwo/ResourceAudit.vue
@@ -0,0 +1,37 @@
+
+<!--璧勬簮瀹℃牳--->
+<template>
+  <div class="wareBox">
+    <iframe
+      style="border:none"
+      width="100%"
+      height="100%"
+      v-bind:src="reportUrl"
+    ></iframe>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      reportUrl: ''
+    }
+  },
+  mounted() {
+    this.reportUrl = packageTwo.url9;
+    console.log(this.reportUrl)
+  }
+
+}
+</script>
+
+<style lang="less" scoped>
+.wareBox {
+  width: 100%;
+  height: 100%;
+  margin: 0;
+  padding: 0;
+  overflow: hidden;
+}
+</style>
\ No newline at end of file
diff --git a/src/views/PackageTwo/TaskStatus.vue b/src/views/PackageTwo/TaskStatus.vue
new file mode 100644
index 0000000..d7a54e9
--- /dev/null
+++ b/src/views/PackageTwo/TaskStatus.vue
@@ -0,0 +1,36 @@
+<!--浠诲姟鐘舵��--->
+<template>
+  <div class="wareBox">
+    <iframe
+      style="border:none"
+      width="100%"
+      height="100%"
+      v-bind:src="reportUrl"
+    ></iframe>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      reportUrl: ''
+    }
+  },
+  mounted() {
+    this.reportUrl = packageTwo.url3;
+     console.log(this.reportUrl)
+  }
+
+}
+</script>
+
+<style lang="less" scoped>
+.wareBox {
+  width: 100%;
+  height: 100%;
+  margin: 0;
+  padding: 0;
+  overflow: hidden;
+}
+</style>
\ No newline at end of file
diff --git a/src/views/PackageTwo/WareInspection.vue b/src/views/PackageTwo/WareInspection.vue
new file mode 100644
index 0000000..4e1ff19
--- /dev/null
+++ b/src/views/PackageTwo/WareInspection.vue
@@ -0,0 +1,46 @@
+<!--鍏ュ簱璐ㄦ--->
+<template>
+  <div class="wareBox">
+    <iframe
+      style="border:none"
+      width="100%"
+      height="100%"
+      v-bind:src="reportUrl"
+    ></iframe>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      reportUrl: ''
+    }
+  },
+  methods: {
+    showChangeIfream(res) {
+      this.$store.state.reporturl = res;
+      this.reportUrl = res;
+      // console.log("2", this.reportUrl)
+    }
+  },
+  mounted() {
+    this.reportUrl = this.$store.reporturl;
+    // console.log("1", this.reportUrl)
+    this.$bus.$on('changeNaveUrl', (res) => {
+      this.showChangeIfream(res)
+    });
+  }
+
+}
+</script>
+
+<style lang="less" scoped>
+.wareBox {
+  width: 100%;
+  height: 100%;
+  margin: 0;
+  padding: 0;
+  overflow: hidden;
+}
+</style>
\ No newline at end of file
diff --git a/src/views/Synthesis/index.vue b/src/views/Synthesis/index.vue
index 522141b..111b2f3 100644
--- a/src/views/Synthesis/index.vue
+++ b/src/views/Synthesis/index.vue
@@ -141,6 +141,7 @@
     },
     //鍒濆鍖栬彍鍗曟巿鏉�
     async getPermsMenu() {
+    
       if (this.$store.state.currentPerms == '') {
         this.$store.state.currentPerms = '/comprehensive';
       }
@@ -150,6 +151,7 @@
       }
       var val = this.$store.state.currentPerms;
       var permsEntity = this.$store.state.permsEntity;
+      debugger
       for (var i = 0; i < permsEntity.length; i++) {
         if (permsEntity[i].perms == val) {
           this.showMenuChange(permsEntity[i], permsEntity);

--
Gitblit v1.9.3