sasp-admin 0.2.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/index.js +227 -0
  2. package/package.json +19 -0
  3. package/router.js +83 -0
  4. package/src/assets/font/iconfont.css +1346 -0
  5. package/src/assets/font/iconfont.eot +0 -0
  6. package/src/assets/font/iconfont.js +1 -0
  7. package/src/assets/font/iconfont.svg +827 -0
  8. package/src/assets/font/iconfont.ttf +0 -0
  9. package/src/assets/font/iconfont.woff +0 -0
  10. package/src/assets/images/loading-bar.gif +0 -0
  11. package/src/assets/js/adminInstall.js +36 -0
  12. package/src/assets/js/api/apiAdmin.js +613 -0
  13. package/src/assets/js/global/dataGlobal.js +260 -0
  14. package/src/assets/js/global/logGlobal.js +22 -0
  15. package/src/assets/js/global/paramGlobal.js +67 -0
  16. package/src/assets/js/global/resGlobal.js +91 -0
  17. package/src/assets/js/global/userGlobal.js +283 -0
  18. package/src/components/complexViewRendering.vue +601 -0
  19. package/src/components/ifmLink.vue +71 -0
  20. package/src/components/public/data/plDataCascader.vue +85 -0
  21. package/src/components/public/data/plDataRadio.vue +73 -0
  22. package/src/components/public/data/plDataRadioGroup.vue +70 -0
  23. package/src/components/public/data/plDataSelect.vue +856 -0
  24. package/src/components/public/data/plDatePicker.vue +159 -0
  25. package/src/components/public/org/bg.png +0 -0
  26. package/src/components/public/org/sysOrgPosUserSelect.vue +1237 -0
  27. package/src/components/public/org/sysOrgPosUserSelectDark.vue +1402 -0
  28. package/src/components/public/org/sysOrgPosUserSelectNew.vue +1527 -0
  29. package/src/components/public/upload/images/compress.png +0 -0
  30. package/src/components/public/upload/images/emipty.png +0 -0
  31. package/src/components/public/upload/images/excel.png +0 -0
  32. package/src/components/public/upload/images/file.png +0 -0
  33. package/src/components/public/upload/images/pdf.png +0 -0
  34. package/src/components/public/upload/images/powerpoint.png +0 -0
  35. package/src/components/public/upload/images/project.png +0 -0
  36. package/src/components/public/upload/images/sound.png +0 -0
  37. package/src/components/public/upload/images/txt.png +0 -0
  38. package/src/components/public/upload/images/video.png +0 -0
  39. package/src/components/public/upload/images/visio.png +0 -0
  40. package/src/components/public/upload/images/word.png +0 -0
  41. package/src/components/public/upload/plImage.vue +287 -0
  42. package/src/components/public/upload/plImgUpload.vue +137 -0
  43. package/src/components/public/upload/plUpload.vue +1124 -0
  44. package/src/components/public/upload/uploadImg.js +8 -0
  45. package/src/main.js +0 -0
  46. package/src/views/VueMenuView.vue +143 -0
  47. package/src/views/cloudMenuView.vue +125 -0
  48. package/src/views/complex/config/complex.vue +501 -0
  49. package/src/views/complex/config/complexSetting.vue +1250 -0
  50. package/src/views/complex/rendering/complexShow.vue +16 -0
  51. package/src/views/data/dataManage.vue +560 -0
  52. package/src/views/data/sysData.vue +292 -0
  53. package/src/views/event/eventManager/vueEventDiy.vue +1184 -0
  54. package/src/views/event/eventManager/vueEventMain.vue +108 -0
  55. package/src/views/event/eventManager/vueEventSys.vue +296 -0
  56. package/src/views/event/js/apiEvent.js +22 -0
  57. package/src/views/fileLog/fileDownloadLog.vue +437 -0
  58. package/src/views/initData/initData.vue +4316 -0
  59. package/src/views/log/dblog/logdbDevelop.vue +306 -0
  60. package/src/views/log/dblog/logdbEnt.vue +331 -0
  61. package/src/views/log/dblog/logdbGov.vue +395 -0
  62. package/src/views/log/error/logError.vue +553 -0
  63. package/src/views/log/loginlog/logManageDevOrSup.vue +357 -0
  64. package/src/views/log/loginlog/logManageEnt.vue +343 -0
  65. package/src/views/log/loginlog/logManageGov.vue +328 -0
  66. package/src/views/log/sms/logSms.vue +308 -0
  67. package/src/views/menu/component/menuManageComponent.vue +2402 -0
  68. package/src/views/menu/component/menuModule.vue +449 -0
  69. package/src/views/menu/menuLocal.vue +223 -0
  70. package/src/views/menu/menuManage.vue +1135 -0
  71. package/src/views/menu/tenantMenuManage.vue +1132 -0
  72. package/src/views/menuRouter/cview/cviewShow.vue +18 -0
  73. package/src/views/menuRouter/cviewMenuRouter.vue +183 -0
  74. package/src/views/menuRouter/menuView.vue +132 -0
  75. package/src/views/menuRouter/urlMenuRouter.vue +160 -0
  76. package/src/views/org/entOrgTree.vue +1050 -0
  77. package/src/views/org/ownerMenu/ownerMenuTree.vue +269 -0
  78. package/src/views/org/safeValidate/safeValidate.vue +469 -0
  79. package/src/views/org/sysEntOrgUserDetail.vue +3390 -0
  80. package/src/views/org/sysOrgDimension.vue +832 -0
  81. package/src/views/org/sysOrgPosUserDetail.vue +1648 -0
  82. package/src/views/org/sysOrgPosUserTree.vue +1101 -0
  83. package/src/views/org/sysOrgTree.vue +864 -0
  84. package/src/views/param/sysParam.vue +987 -0
  85. package/src/views/preview/pdfViewer.vue +82 -0
  86. package/src/views/resources/js/resourcesCommon.js +137 -0
  87. package/src/views/resources/resRouter/resView.vue +161 -0
  88. package/src/views/resources/resourcesTabs.vue +82 -0
  89. package/src/views/resources/tabs/comp/pageResPreview.vue +309 -0
  90. package/src/views/resources/tabs/comp/pageResRegister.vue +1120 -0
  91. package/src/views/resources/tabs/dataResources.vue +843 -0
  92. package/src/views/resources/tabs/pageResources.vue +970 -0
  93. package/src/views/role/allowMenu.vue +148 -0
  94. package/src/views/role/authRole/authRole.vue +427 -0
  95. package/src/views/role/authRole/component/allocateSetting.vue +1056 -0
  96. package/src/views/role/authRole/component/authSetting.vue +1196 -0
  97. package/src/views/role/commonRole/commonRole.vue +677 -0
  98. package/src/views/role/commonRole/compoment/allocateRoleMenuSetting.vue +335 -0
  99. package/src/views/role/commonRole/compoment/authLinkMenuTree.vue +55 -0
  100. package/src/views/role/commonRole/compoment/authSettingNew.vue +190 -0
  101. package/src/views/role/commonRole/compoment/commonSetting.vue +1576 -0
  102. package/src/views/role/commonRole/compoment/commonSettingAdjust.vue +584 -0
  103. package/src/views/role/commonRole/compoment/commonSettingNew.vue +572 -0
  104. package/src/views/role/commonRole/compoment/roleMenuPower.vue +226 -0
  105. package/src/views/role/commonRole/compoment/roleMenuPowerSetting.vue +69 -0
  106. package/src/views/role/commonRole/compoment/roleMenuSetting.vue +365 -0
  107. package/src/views/role/commonRole/compoment/roleSourceSetting.vue +229 -0
  108. package/src/views/role/commonRole/tenantCommonRole.vue +768 -0
  109. package/src/views/role/role.vue +135 -0
  110. package/src/views/role/roleMenuOption.vue +898 -0
  111. package/src/views/role/roleSynchroRemind.vue +399 -0
  112. package/src/views/role/sysRole.vue +1525 -0
  113. package/src/views/role/viewMenuOptDetail.vue +182 -0
  114. package/src/views/sms/sendSms.vue +164 -0
  115. package/src/views/station/orgStation.vue +561 -0
  116. package/src/views/tenant/appContentManager.vue +938 -0
  117. package/src/views/tenant/appManager.vue +642 -0
  118. package/src/views/tenant/tenantRoleManager.vue +670 -0
  119. package/src/views/tenant/tenantUserManager.vue +615 -0
  120. package/src/views/threeinone/compoment/safeCascadeSelect.vue +327 -0
  121. package/src/views/threeinone/init/safeInitRegion.vue +203 -0
  122. package/src/views/threeinone/safeManager.vue +927 -0
  123. package/src/views/threeinone/safeMenuManage.vue +565 -0
  124. package/src/views/threeinone/safeOrgSpv.vue +364 -0
  125. package/src/views/threeinone/safeSpv/safeSpvLeftTree.vue +109 -0
  126. package/src/views/threeinone/safeSpv/safeSpvMain.vue +335 -0
  127. package/src/views/threeinone/safeSpvEconView.vue +569 -0
  128. package/src/views/threeinone/safeValidateRegion.vue +328 -0
  129. package/src/views/urlResource/urlResource.vue +856 -0
  130. package/src/views/user/empowerUser/empowerEntUserManage.vue +415 -0
  131. package/src/views/user/empowerUser/empowerOrgTree.vue +167 -0
  132. package/src/views/user/empowerUser/empowerUserList.vue +633 -0
  133. package/src/views/user/empowerUser/empowerUserListMenuDeatil.vue +656 -0
  134. package/src/views/user/empowerUser/empowerUserListViewMenuTree.vue +257 -0
  135. package/src/views/user/empowerUser/empowerUserManage.vue +99 -0
  136. package/src/views/user/stationUserManage.vue +934 -0
  137. package/src/views/user/userManage.vue +737 -0
  138. package/src/views/user/userMangement.vue +938 -0
  139. package/src/views/user/viewMenu/viewMenu.vue +113 -0
  140. package/src/views/versionupdatetool/versionUpdateTool.vue +225 -0
  141. package/src/views/versionupdatetool/versioninfomation/verisonInfomationManagement.vue +68 -0
@@ -0,0 +1,18 @@
1
+ <template>
2
+ <complex-view-rendering :resource-id="this.$route.query.resourceId"
3
+ :operate-permis="this.$route.query.operatePermis"
4
+ :data-permis="this.$route.query.dataPermis">
5
+ </complex-view-rendering>
6
+ </template>
7
+
8
+ <script>
9
+ import ComplexViewRendering from '../../../components/complexViewRendering'
10
+ export default {
11
+ name: "cview-show",
12
+ components: {ComplexViewRendering},
13
+ }
14
+ </script>
15
+
16
+ <style scoped>
17
+
18
+ </style>
@@ -0,0 +1,183 @@
1
+ <!--复合视图 菜单类型跳转-->
2
+ <template>
3
+ <complex-view-rendering v-if="isShowView"
4
+ :resource-id="resourceId"
5
+ :operate-permis="operatePermis"
6
+ :data-permis="dataPermis">
7
+ </complex-view-rendering>
8
+
9
+ </template>
10
+
11
+ <script>
12
+ import ComplexViewRendering from "../../components/complexViewRendering";
13
+ export default {
14
+ name: "cviewMenuRouter",
15
+ components: {ComplexViewRendering},
16
+ props:{
17
+ cresourceId: { //资源id
18
+ type: String,
19
+ default: ''
20
+ },
21
+ cmenuId:{//菜单id
22
+ type: String,
23
+ default: ''
24
+ },
25
+ isCloudView:{
26
+ type: Boolean,
27
+ default: false
28
+ }
29
+ },
30
+ data(){
31
+ return{
32
+ isShowView:false,
33
+ resourceId:this.$route.params.resourceId,
34
+ optType:this.$route.query.optType,
35
+ menuId:this.$route.query.menuId,
36
+ operatePermis: '', //操作权限
37
+ dataPermis: '', //数据权限
38
+ resourceObj:{},
39
+ menuObj:{},
40
+
41
+ }
42
+ },
43
+ created(){
44
+ if(!this.resourceId){
45
+ this.resourceId = this.cresourceId;
46
+ }
47
+ if((!this.menuId) || (this.menuId == "0")){
48
+ this.menuId = this.cmenuId;
49
+ }
50
+ //删除 全局变量menuid
51
+ this.getResources().then(() => { //获取资源池
52
+ this.executShow();
53
+ })
54
+ },
55
+ methods:{
56
+ async executShow(){
57
+ this.isShowView = false;
58
+ this.getMenuObj().then(() => {
59
+ let resourceObj = this.resourceObj;
60
+ let loginUser = this.USER_GLOBAL.getLoginUser(); //获取当前用户
61
+ if(loginUser.userType == 'sup' || this.isCloudView){ //开发者
62
+ //查询数据权限和操作权限
63
+ //操作权限
64
+ //获取菜单中的操作权限
65
+ this.operatePermis = (this.menuObj || {}).operatePermis || ''; //操作权限
66
+ this.dataPermis = (this.menuObj || {}).dataPermis || '';//数据权限
67
+ this.isShowView = true;
68
+ }else{
69
+ this.RES_GLOBAL.getUserOwnMenuOpt().then(datas =>{
70
+ let roleOptArr = [];
71
+ (datas || []).forEach(item =>{
72
+ // if(this.optType == 'source'){
73
+ // if(this.resourceId == item.menuId){ //数据资源
74
+ // roleOptArr.push(item);
75
+ // }
76
+ // }else if(this.optType == 'menu'){
77
+
78
+ if(this.menuId == item.menuId){
79
+ roleOptArr.push(item);
80
+ }
81
+ // }
82
+ });
83
+ if(roleOptArr.length > 0){
84
+ //遍历权限
85
+ let optPowerArr = []; //操作权限
86
+ let dataPowerArr = []; //数据权限
87
+ roleOptArr.forEach(item =>{
88
+ if(item.optPower){
89
+ optPowerArr = optPowerArr.concat(item.optPower.split(",") || []);
90
+ }
91
+ if (item.dataPower){
92
+ dataPowerArr = dataPowerArr.concat(item.dataPower.split(",") || []);
93
+ }
94
+ });
95
+ //去重
96
+ let optPowerSet = new Set(optPowerArr);
97
+ optPowerArr = Array.from(optPowerSet);
98
+ //去重
99
+ let dataPowerSet = new Set(dataPowerArr);
100
+ dataPowerArr = Array.from(dataPowerSet);
101
+ let optPowerKeyArr = [];
102
+ let operatePermisList = ((this.menuObj || {}).operatePermis || '').split(","); //菜单操作权限
103
+ (resourceObj.operatePermisList || []).forEach(item =>{
104
+ // 菜单与角色权限同时存在时可以显示
105
+ if((optPowerArr || []) .indexOf(item.id) > -1 && operatePermisList.indexOf(item.id) > -1){
106
+ optPowerKeyArr.push(item.id);
107
+ }
108
+ });
109
+ let dataPowerKeyArr = [];
110
+ let dataPermisList = ((this.menuObj || {}).dataPermis || '').split(",");//菜单数据权限
111
+ (resourceObj.dataPermisList || []).forEach(item =>{ //数据权限
112
+ if((dataPowerArr || []) .indexOf(item.id) > -1 && dataPermisList.indexOf(item.id) > -1){
113
+ dataPowerKeyArr.push(item.id); //数据权限 arr
114
+ }
115
+ });
116
+ this.operatePermis = optPowerKeyArr.join(",");
117
+ this.dataPermis = dataPowerKeyArr.join(",");
118
+ }else{
119
+ //强制跳转到首页
120
+ let url = "/commonHome/welcome";
121
+ this.routerPush(url);
122
+ }
123
+ this.isShowView = true;
124
+ });
125
+ }
126
+ })
127
+ },
128
+
129
+ /**
130
+ * 获取菜单对象
131
+ */
132
+ getMenuObj(){
133
+ return new Promise(resolve => {
134
+ if(window.menuIdToMenuObj){
135
+ this.menuObj = window.menuIdToMenuObj[this.menuId];
136
+ resolve();
137
+ }else{
138
+ //新窗口打开时查询菜单信息
139
+ this.axios.post(this.api.menu.getById,{id:this.menuId}).then(res => {
140
+ if(res && res.data){
141
+ this.menuObj = res.data;
142
+ }
143
+ resolve();
144
+ });
145
+ }
146
+ })
147
+ },
148
+
149
+ /**
150
+ * router 跳转到 请求跳转
151
+ *
152
+ *
153
+ * 获取资源池对象
154
+ */
155
+ getResources(){
156
+ return new Promise(resolve => {
157
+ this.RES_GLOBAL.getById(this.resourceId).then(resData => {
158
+ this.resourceObj = resData; //当前资源池
159
+ resolve();
160
+ });
161
+ })
162
+ // let res = await this.axios.post(this.api.resources.findResources,{id:this.resourceId}); //查询自定义表单中资源池数据
163
+ // if(res.data && res.data.operateObj){
164
+ // }
165
+ },
166
+
167
+ /**
168
+ * 请求跳转
169
+ */
170
+ routerPush(url) {
171
+ this.$router.push({
172
+ path: url
173
+ });
174
+
175
+ },
176
+
177
+ }
178
+ }
179
+ </script>
180
+
181
+ <style scoped>
182
+
183
+ </style>
@@ -0,0 +1,132 @@
1
+ <template>
2
+ <ifm-link :link-url="linkUrl" v-if="isIfm">
3
+ </ifm-link>
4
+ </template>
5
+
6
+ <script>
7
+ import IfmLink from "../../components/ifmLink";
8
+ export default {
9
+ name: "menuView",
10
+ components: {IfmLink},
11
+ data(){
12
+ return{
13
+ oldFullPath:this.$route.fullPath,
14
+ resourceId:this.$route.params.resourceId,
15
+ menuId:this.$route.query.menuId,
16
+ menuResourceUrl:{},
17
+ linkUrl:'', //外部链接地址
18
+ isIfm:false
19
+ }
20
+ },
21
+ created(){
22
+ this.initRouter();
23
+ },
24
+ watch: {
25
+ '$route.fullPath'() {
26
+ window.menuViewWatch = window.menuViewWatch || {};
27
+ if (window.menuViewWatch[this.$route.fullPath] && new Date().getTime() - window.menuViewWatch[this.$route.fullPath] < 10) {
28
+ return;
29
+ }
30
+ window.menuViewWatch[this.$route.fullPath] = new Date().getTime();
31
+ // console.log("...oldFullPath...", this.oldFullPath);
32
+ // console.log("...fullPath...", this.$route.fullPath);
33
+ this.menuId = this.$route.query.menuId;
34
+ if (this.$route.params.resourceId && this.resourceId != this.$route.params.resourceId) {
35
+ this.resourceId = this.$route.params.resourceId;
36
+ }
37
+ this.initRouter();
38
+ },
39
+ },
40
+ methods: {
41
+ initRouter() { //初始化跳转
42
+ this.linkUrl = '';
43
+ this.isIfm = false;
44
+ // 会涉及到同异步问题,所以需要多次判断
45
+ if (this.$route.fullPath.indexOf("/menuView/") == -1) {
46
+ this.routerPush(this.$route.fullPath);
47
+ return;
48
+ }
49
+ if (this.menuResourceUrl[this.menuId]) {
50
+ if(this.menuResourceUrl[this.menuId].indexOf("http://") > -1 || this.menuResourceUrl[this.menuId].indexOf("https://") > -1||
51
+ this.menuResourceUrl[this.menuId].indexOf(".jsp")>-1||this.menuResourceUrl[this.menuId].indexOf(".html")>-1){
52
+ this.linkUrl = this.menuResourceUrl[this.menuId];
53
+ this.isIfm = true;
54
+ return false;
55
+ }else{
56
+ this.routerPush(this.menuResourceUrl[this.menuId]);
57
+ }
58
+ return;
59
+ }
60
+
61
+ this.RES_GLOBAL.getById(this.resourceId).then(resData => {
62
+ let url = "";
63
+ if (resData) {
64
+ if(resData.rstatus == '0'){
65
+ this.$message({
66
+ message: "该资源已禁用,无法访问!",
67
+ type: 'warning'
68
+ });
69
+ return false;
70
+ }
71
+ let firstUrl = this.$route.fullPath;
72
+
73
+ // 会涉及到同异步问题,所以需要多次判断
74
+ if (firstUrl.indexOf("/menuView/") == -1) {
75
+ url = this.$route.fullPath;
76
+ }else if (resData.rsource == "url") {
77
+ url = resData.ragentUrl;
78
+ } else if(this.VIEW_COMPONENTS[resData.rsource]){
79
+ firstUrl = firstUrl.substring(0, firstUrl.indexOf("/menuView/"));
80
+ url = firstUrl + "/" + this.VIEW_COMPONENTS[resData.rsource].menu + "/" + this.resourceId;
81
+ } else {
82
+ let resourceKey = "";
83
+ this.QIANKUN_ACTIVE_RULES.forEach(item => {
84
+ if (resData.rsource.indexOf(item) > -1) {
85
+ resourceKey = item;
86
+ }
87
+ if (this.VIEW_COMPONENTS[resourceKey]) {
88
+ firstUrl = firstUrl.substring(0, firstUrl.indexOf("/menuView/"));
89
+ url = firstUrl + "/" + this.VIEW_COMPONENTS[resourceKey].menu + "/" + this.resourceId;
90
+ }
91
+ });
92
+ }
93
+ }
94
+ this.menuId&&(this.menuResourceUrl[this.menuId] = url);
95
+ //执行跳转
96
+ if(url.indexOf("http://") > -1 || url.indexOf("https://") > -1){
97
+ this.linkUrl = url;
98
+ this.isIfm = true;
99
+ // window.open(url);
100
+ return false;
101
+ }else if(url.indexOf(".jsp")>-1||url.indexOf(".html")>-1){
102
+ this.$message("暂无功能!");
103
+ return false;
104
+ }
105
+
106
+ this.$nextTick(() => {
107
+ // 执行跳转
108
+ this.routerPush(url);
109
+ })
110
+
111
+ });
112
+ },
113
+
114
+ /**
115
+ * 请求跳转
116
+ */
117
+ routerPush(url,param) {
118
+ this.$router.push({
119
+ path: url,
120
+ query: {resourceId: this.resourceId,menuId:this.menuId}
121
+ });
122
+
123
+ },
124
+
125
+ }
126
+ }
127
+
128
+ </script>
129
+
130
+ <style scoped>
131
+
132
+ </style>
@@ -0,0 +1,160 @@
1
+ <!--url 菜单类型跳转-->
2
+ <template>
3
+ <el-container style="height: 100%">
4
+ <keep-alive v-if="showInsideLink">
5
+ <!--内部链接赋值操作权限和数据权限 -->
6
+ <component :is="activeIndex"
7
+ :optArr="operatePermisArr"
8
+ :dataArr="dataPermisArr"
9
+ style="height: 100%" >
10
+ </component>
11
+ </keep-alive>
12
+
13
+ </el-container>
14
+
15
+ </template>
16
+
17
+ <script>
18
+ export default {
19
+ name: "urlMenuRouter",
20
+ props:{
21
+ isRefresh:{type:Boolean,default:false},
22
+ paramResourceId: {type:String,default:""}
23
+ },
24
+ data(){
25
+ return{
26
+ resourceObj:{}, //资源池总对象
27
+ resourceId:this.$route.query.resourceId||this.paramResourceId,
28
+ menuId:this.$route.query.menuId,
29
+ operatePermis:this.$route.query.operatePermis,
30
+ dataPermis:this.$route.query.dataPermis,
31
+ linkUrl: '',
32
+ activeIndex:{},
33
+ showInsideLink:false,
34
+ allRouterArr:this.$router.options.routes || [], //所有router配置
35
+ operatePermisArr:[],//操作权限 powerCode arr
36
+ dataPermisArr:[], //数据权限 powerCode arr
37
+ userType:'', //登录用户类型
38
+ }
39
+ },
40
+ created(){
41
+ let loginUser = this.USER_GLOBAL.getLoginUser() || {};
42
+ this.userType = loginUser.userType;
43
+ this.getResources().then(() =>{
44
+ this.executRouter();
45
+ });
46
+ },
47
+ watch:{
48
+ resourceId(){
49
+ this.executRouter();
50
+ },
51
+ isRefresh(){
52
+ this.executRouter();
53
+ },
54
+ },
55
+ methods:{
56
+ /**
57
+ * 获取资源池对象
58
+ */
59
+ getResources(){
60
+ return new Promise(resolve => {
61
+ this.RES_GLOBAL.getById(this.resourceId,this.userType).then(res =>{
62
+ this.resourceObj[res.id] = res;
63
+ resolve();
64
+ });
65
+ })
66
+ },
67
+
68
+ /**
69
+ * 执行url解析和跳转
70
+ */
71
+ executRouter(){
72
+ this.showInsideLink = false;
73
+ if(this.resourceId && this.resourceObj[this.resourceId]){
74
+ let resourceObj = this.resourceObj[this.resourceId];
75
+ let url = resourceObj.ragentUrl || '';
76
+ //解析操作权限和数据权限
77
+ let operateKeysArr = (this.operatePermis || '').split(",");
78
+ let dataKeysArr = (this.dataPermis || '').split(",");
79
+ this.operatePermisArr = [];
80
+ this.dataPermisArr = [];
81
+ (resourceObj.operatePermisList || []).forEach(item =>{
82
+ if(operateKeysArr.indexOf(item.id) > -1){
83
+ this.operatePermisArr.push(item.powerCode);//操作权限
84
+ }
85
+ });
86
+ (resourceObj.dataPermisList || []).forEach(item =>{
87
+ if(dataKeysArr.indexOf(item.id) > -1){
88
+ this.dataPermisArr.push(item.powerCode); //数据权限
89
+ }
90
+ });
91
+ if(url){
92
+ if(url.indexOf("http://") > -1||url.indexOf("https://") > -1){ //外部链接直接 open跳转
93
+ window.open(url); //外部链接不存在数据权限和操作权限
94
+ return;
95
+ }else {
96
+ /* // 操作权限和数据权限
97
+ this.linkUrl = url;
98
+ // 操作权限和数据权限
99
+
100
+ this.activeIndex =() => Promise.resolve(require(url + '.vue').default);*/
101
+ // this.activeIndex =() => import('../framework/' + url + '.vue');
102
+ let urlArr = url.split("/");
103
+ this.eachRouterSet(this.allRouterArr,urlArr,0);
104
+ this.showInsideLink = true;
105
+ }
106
+
107
+ }
108
+
109
+ }
110
+ },
111
+ eachRouterSet(allRouterArr,urlArr,index){
112
+ allRouterArr.forEach(item =>{
113
+ if(urlArr[index + 1]){
114
+ if(urlArr[index +1] == (item.name ? item.name : item.path)){
115
+ //当前匹配
116
+ //判断 urlArr是否存在下级
117
+ if(index+2 >= urlArr.length){ //则当前地址为我需要的实际地址
118
+ let componentString = item.component.toString();
119
+ let arr = componentString.split("\"");
120
+ this.activeUrl = arr[arr.length - 2] || '';
121
+ this.activeIndex = item.component;
122
+ }else if(item.children && item.children.length > 0) {
123
+ //如果存在下级
124
+ allRouterArr = item.children || [];
125
+ index = index + 1;
126
+ this.eachRouterSet(allRouterArr,urlArr,index);
127
+ }
128
+ }
129
+ }
130
+
131
+ })
132
+ },
133
+ /**
134
+ * router 请求跳转
135
+ */
136
+ routerPush(url,menuId) {
137
+ this.menuIsIfm = (url && (url.indexOf(".jsp") > -1 || url.indexOf(".html") > -1));
138
+ if (this.menuIsIfm) {
139
+ this.$nextTick(() => {
140
+ this.$router.push({
141
+ name: "ifmPage", query: {menuId: menuId}
142
+ });
143
+ });
144
+ } else {
145
+ if(url.indexOf("/") == -1){
146
+ url = "/"+ url;
147
+ }
148
+ this.$router.push({
149
+ path: '/commonHome/role', query: {menuId: menuId}
150
+ });
151
+ }
152
+ },
153
+
154
+ }
155
+ }
156
+ </script>
157
+
158
+ <style scoped>
159
+
160
+ </style>