| | |
| | | // æå¡å°å |
| | | baseURL: 'http://183.162.245.49:8888/', |
| | | positionBtn: [], |
| | | |
| | | }; |
| | | var gaoDeBaseUrl = [ |
| | | { |
| | |
| | | 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', |
| | | } |
| | |
| | | |
| | | //èåé彿¥è¯¢æ°æ® |
| | | export function selectMenuRecursive(params) { |
| | | return request.get('/menu/selectMenuRecursive', { params: params }); |
| | | return request.get('/menu/selectMenuAll', { params: params }); |
| | | } |
| | | //æ°å¢åæ¡èå |
| | | export function insertMenu(params) { |
| | |
| | | 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, |
| | | }; |
| | | }, |
| | |
| | | }, |
| | | //主é¢åæ¢ |
| | | 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) { |
| | |
| | | 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); |
| | | } |
| | | } |
| | |
| | | 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(); |
| | |
| | | } |
| | | }, |
| | | async setMenuTree(res) { |
| | | |
| | | for (var i in res) { |
| | | res[i].checkClass = res[i].css + '1'; |
| | | res[i].show = false; //æ§å¶æ¾é |
| | |
| | | }); |
| | | 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]); |
| | | } |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | this.$store.reporturl=null; |
| | | let str = this.$route.path; |
| | | if (str[0] == '/') { |
| | | this.activeIndex = str.slice(1); |
| | |
| | | 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) { |
| | |
| | | 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', |
| | |
| | | primitLayer:null, |
| | | loading:false, |
| | | pipelineEntity:[], |
| | | reporturl:null, |
| | | }, |
| | | mutations: { |
| | | //è·åæéåé |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--ææè´¨æ£è´¨æ£---> |
| | | <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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | <!--åæ è½¬æ¢---> |
| | | <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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | <!--æ°æ®åå---> |
| | | <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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | <!--æ°æ®æ²»ç---> |
| | | <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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | <!--æ ¼å¼è½¬æ¢---> |
| | | <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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--æçèµæº---> |
| | | <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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | <!--èµæºå®¡æ ¸---> |
| | | <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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--ä»»å¡ç¶æ---> |
| | | <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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--å
¥åºè´¨æ£---> |
| | | <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> |
| | |
| | | }, |
| | | //åå§åèåææ |
| | | async getPermsMenu() { |
| | | |
| | | if (this.$store.state.currentPerms == '') { |
| | | this.$store.state.currentPerms = '/comprehensive'; |
| | | } |
| | |
| | | } |
| | | 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); |