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.
- package/index.js +227 -0
- package/package.json +19 -0
- package/router.js +83 -0
- package/src/assets/font/iconfont.css +1346 -0
- package/src/assets/font/iconfont.eot +0 -0
- package/src/assets/font/iconfont.js +1 -0
- package/src/assets/font/iconfont.svg +827 -0
- package/src/assets/font/iconfont.ttf +0 -0
- package/src/assets/font/iconfont.woff +0 -0
- package/src/assets/images/loading-bar.gif +0 -0
- package/src/assets/js/adminInstall.js +36 -0
- package/src/assets/js/api/apiAdmin.js +613 -0
- package/src/assets/js/global/dataGlobal.js +260 -0
- package/src/assets/js/global/logGlobal.js +22 -0
- package/src/assets/js/global/paramGlobal.js +67 -0
- package/src/assets/js/global/resGlobal.js +91 -0
- package/src/assets/js/global/userGlobal.js +283 -0
- package/src/components/complexViewRendering.vue +601 -0
- package/src/components/ifmLink.vue +71 -0
- package/src/components/public/data/plDataCascader.vue +85 -0
- package/src/components/public/data/plDataRadio.vue +73 -0
- package/src/components/public/data/plDataRadioGroup.vue +70 -0
- package/src/components/public/data/plDataSelect.vue +856 -0
- package/src/components/public/data/plDatePicker.vue +159 -0
- package/src/components/public/org/bg.png +0 -0
- package/src/components/public/org/sysOrgPosUserSelect.vue +1237 -0
- package/src/components/public/org/sysOrgPosUserSelectDark.vue +1402 -0
- package/src/components/public/org/sysOrgPosUserSelectNew.vue +1527 -0
- package/src/components/public/upload/images/compress.png +0 -0
- package/src/components/public/upload/images/emipty.png +0 -0
- package/src/components/public/upload/images/excel.png +0 -0
- package/src/components/public/upload/images/file.png +0 -0
- package/src/components/public/upload/images/pdf.png +0 -0
- package/src/components/public/upload/images/powerpoint.png +0 -0
- package/src/components/public/upload/images/project.png +0 -0
- package/src/components/public/upload/images/sound.png +0 -0
- package/src/components/public/upload/images/txt.png +0 -0
- package/src/components/public/upload/images/video.png +0 -0
- package/src/components/public/upload/images/visio.png +0 -0
- package/src/components/public/upload/images/word.png +0 -0
- package/src/components/public/upload/plImage.vue +287 -0
- package/src/components/public/upload/plImgUpload.vue +137 -0
- package/src/components/public/upload/plUpload.vue +1124 -0
- package/src/components/public/upload/uploadImg.js +8 -0
- package/src/main.js +0 -0
- package/src/views/VueMenuView.vue +143 -0
- package/src/views/cloudMenuView.vue +125 -0
- package/src/views/complex/config/complex.vue +501 -0
- package/src/views/complex/config/complexSetting.vue +1250 -0
- package/src/views/complex/rendering/complexShow.vue +16 -0
- package/src/views/data/dataManage.vue +560 -0
- package/src/views/data/sysData.vue +292 -0
- package/src/views/event/eventManager/vueEventDiy.vue +1184 -0
- package/src/views/event/eventManager/vueEventMain.vue +108 -0
- package/src/views/event/eventManager/vueEventSys.vue +296 -0
- package/src/views/event/js/apiEvent.js +22 -0
- package/src/views/fileLog/fileDownloadLog.vue +437 -0
- package/src/views/initData/initData.vue +4316 -0
- package/src/views/log/dblog/logdbDevelop.vue +306 -0
- package/src/views/log/dblog/logdbEnt.vue +331 -0
- package/src/views/log/dblog/logdbGov.vue +395 -0
- package/src/views/log/error/logError.vue +553 -0
- package/src/views/log/loginlog/logManageDevOrSup.vue +357 -0
- package/src/views/log/loginlog/logManageEnt.vue +343 -0
- package/src/views/log/loginlog/logManageGov.vue +328 -0
- package/src/views/log/sms/logSms.vue +308 -0
- package/src/views/menu/component/menuManageComponent.vue +2402 -0
- package/src/views/menu/component/menuModule.vue +449 -0
- package/src/views/menu/menuLocal.vue +223 -0
- package/src/views/menu/menuManage.vue +1135 -0
- package/src/views/menu/tenantMenuManage.vue +1132 -0
- package/src/views/menuRouter/cview/cviewShow.vue +18 -0
- package/src/views/menuRouter/cviewMenuRouter.vue +183 -0
- package/src/views/menuRouter/menuView.vue +132 -0
- package/src/views/menuRouter/urlMenuRouter.vue +160 -0
- package/src/views/org/entOrgTree.vue +1050 -0
- package/src/views/org/ownerMenu/ownerMenuTree.vue +269 -0
- package/src/views/org/safeValidate/safeValidate.vue +469 -0
- package/src/views/org/sysEntOrgUserDetail.vue +3390 -0
- package/src/views/org/sysOrgDimension.vue +832 -0
- package/src/views/org/sysOrgPosUserDetail.vue +1648 -0
- package/src/views/org/sysOrgPosUserTree.vue +1101 -0
- package/src/views/org/sysOrgTree.vue +864 -0
- package/src/views/param/sysParam.vue +987 -0
- package/src/views/preview/pdfViewer.vue +82 -0
- package/src/views/resources/js/resourcesCommon.js +137 -0
- package/src/views/resources/resRouter/resView.vue +161 -0
- package/src/views/resources/resourcesTabs.vue +82 -0
- package/src/views/resources/tabs/comp/pageResPreview.vue +309 -0
- package/src/views/resources/tabs/comp/pageResRegister.vue +1120 -0
- package/src/views/resources/tabs/dataResources.vue +843 -0
- package/src/views/resources/tabs/pageResources.vue +970 -0
- package/src/views/role/allowMenu.vue +148 -0
- package/src/views/role/authRole/authRole.vue +427 -0
- package/src/views/role/authRole/component/allocateSetting.vue +1056 -0
- package/src/views/role/authRole/component/authSetting.vue +1196 -0
- package/src/views/role/commonRole/commonRole.vue +677 -0
- package/src/views/role/commonRole/compoment/allocateRoleMenuSetting.vue +335 -0
- package/src/views/role/commonRole/compoment/authLinkMenuTree.vue +55 -0
- package/src/views/role/commonRole/compoment/authSettingNew.vue +190 -0
- package/src/views/role/commonRole/compoment/commonSetting.vue +1576 -0
- package/src/views/role/commonRole/compoment/commonSettingAdjust.vue +584 -0
- package/src/views/role/commonRole/compoment/commonSettingNew.vue +572 -0
- package/src/views/role/commonRole/compoment/roleMenuPower.vue +226 -0
- package/src/views/role/commonRole/compoment/roleMenuPowerSetting.vue +69 -0
- package/src/views/role/commonRole/compoment/roleMenuSetting.vue +365 -0
- package/src/views/role/commonRole/compoment/roleSourceSetting.vue +229 -0
- package/src/views/role/commonRole/tenantCommonRole.vue +768 -0
- package/src/views/role/role.vue +135 -0
- package/src/views/role/roleMenuOption.vue +898 -0
- package/src/views/role/roleSynchroRemind.vue +399 -0
- package/src/views/role/sysRole.vue +1525 -0
- package/src/views/role/viewMenuOptDetail.vue +182 -0
- package/src/views/sms/sendSms.vue +164 -0
- package/src/views/station/orgStation.vue +561 -0
- package/src/views/tenant/appContentManager.vue +938 -0
- package/src/views/tenant/appManager.vue +642 -0
- package/src/views/tenant/tenantRoleManager.vue +670 -0
- package/src/views/tenant/tenantUserManager.vue +615 -0
- package/src/views/threeinone/compoment/safeCascadeSelect.vue +327 -0
- package/src/views/threeinone/init/safeInitRegion.vue +203 -0
- package/src/views/threeinone/safeManager.vue +927 -0
- package/src/views/threeinone/safeMenuManage.vue +565 -0
- package/src/views/threeinone/safeOrgSpv.vue +364 -0
- package/src/views/threeinone/safeSpv/safeSpvLeftTree.vue +109 -0
- package/src/views/threeinone/safeSpv/safeSpvMain.vue +335 -0
- package/src/views/threeinone/safeSpvEconView.vue +569 -0
- package/src/views/threeinone/safeValidateRegion.vue +328 -0
- package/src/views/urlResource/urlResource.vue +856 -0
- package/src/views/user/empowerUser/empowerEntUserManage.vue +415 -0
- package/src/views/user/empowerUser/empowerOrgTree.vue +167 -0
- package/src/views/user/empowerUser/empowerUserList.vue +633 -0
- package/src/views/user/empowerUser/empowerUserListMenuDeatil.vue +656 -0
- package/src/views/user/empowerUser/empowerUserListViewMenuTree.vue +257 -0
- package/src/views/user/empowerUser/empowerUserManage.vue +99 -0
- package/src/views/user/stationUserManage.vue +934 -0
- package/src/views/user/userManage.vue +737 -0
- package/src/views/user/userMangement.vue +938 -0
- package/src/views/user/viewMenu/viewMenu.vue +113 -0
- package/src/views/versionupdatetool/versionUpdateTool.vue +225 -0
- package/src/views/versionupdatetool/versioninfomation/verisonInfomationManagement.vue +68 -0
package/src/main.js
ADDED
|
File without changes
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
<!--菜单标签-->
|
|
2
|
+
<template>
|
|
3
|
+
<!--弹出自定义页面-->
|
|
4
|
+
<component v-if="openDialogVisible && menuType == 'url'"
|
|
5
|
+
v-bind="openDialogData.paramObj"
|
|
6
|
+
ref="diyPageRef"
|
|
7
|
+
:is="componentIndex">
|
|
8
|
+
</component>
|
|
9
|
+
|
|
10
|
+
<!--单表表单-->
|
|
11
|
+
<single-form-menu-router
|
|
12
|
+
v-else-if="openDialogVisible && menuType == 'singleForm'"
|
|
13
|
+
:cresourceId="resourceId"
|
|
14
|
+
isCloudView
|
|
15
|
+
:cmenuId="menuId">
|
|
16
|
+
</single-form-menu-router>
|
|
17
|
+
|
|
18
|
+
<!--智能建表-->
|
|
19
|
+
<form-menu-router
|
|
20
|
+
v-else-if="openDialogVisible && menuType == 'form'"
|
|
21
|
+
:cresourceId="resourceId"
|
|
22
|
+
isCloudView
|
|
23
|
+
:cmenuId="menuId">
|
|
24
|
+
</form-menu-router>
|
|
25
|
+
|
|
26
|
+
<!--复合视图-->
|
|
27
|
+
<cview-menu-router
|
|
28
|
+
v-else-if="openDialogVisible && menuType == 'cview'"
|
|
29
|
+
:cresourceId="resourceId"
|
|
30
|
+
isCloudView
|
|
31
|
+
:cmenuId="menuId">
|
|
32
|
+
</cview-menu-router>
|
|
33
|
+
|
|
34
|
+
<!--工作流-->
|
|
35
|
+
<flow-menu-router v-else-if="openDialogVisible && menuType == 'flow'"
|
|
36
|
+
:cresource-id="resourceId"
|
|
37
|
+
isCloudView
|
|
38
|
+
style="overflow: hidden;">
|
|
39
|
+
</flow-menu-router>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script>
|
|
43
|
+
import CviewMenuRouter from "./menuRouter/cviewMenuRouter"; //工作流预览
|
|
44
|
+
|
|
45
|
+
export default {
|
|
46
|
+
name: "vue-menu-view",
|
|
47
|
+
components: {CviewMenuRouter},
|
|
48
|
+
props:{
|
|
49
|
+
menuType:{required: true, default: ""},
|
|
50
|
+
resourceId:{required:true,default:''}, //资源id
|
|
51
|
+
menuId:{required:true,default:''}, //菜单id
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
data(){
|
|
55
|
+
return{
|
|
56
|
+
componentIndex:'', //获取页面实际路径
|
|
57
|
+
openDialogVisible:false,
|
|
58
|
+
openDialogData:{
|
|
59
|
+
paramObj:{'cloudResourceId':this.resourceId} //绑定参数
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
watch:{
|
|
64
|
+
resourceId(){
|
|
65
|
+
this.initMenuView();
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
created(){
|
|
69
|
+
this.initMenuView();
|
|
70
|
+
},
|
|
71
|
+
methods:{
|
|
72
|
+
/**
|
|
73
|
+
* 初始化菜单预览
|
|
74
|
+
*/
|
|
75
|
+
initMenuView(){
|
|
76
|
+
//根据资源id 获取
|
|
77
|
+
this.openDialogVisible = false;
|
|
78
|
+
this.RES_GLOBAL.getById(this.resourceId).then(resData => {
|
|
79
|
+
this.openDialogVisible = true;
|
|
80
|
+
if(this.menuType == 'url'){ //自定义页面
|
|
81
|
+
this.getIndex(resData.ragentUrl);
|
|
82
|
+
if (!window.resourceToMemu) {
|
|
83
|
+
window.resourceToMemu = {};
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//赋值权限
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* 获取自定义页面路径
|
|
92
|
+
*/
|
|
93
|
+
getIndex(componentUrl){
|
|
94
|
+
this.openDialogVisible = false;
|
|
95
|
+
if(!componentUrl){
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
let index = componentUrl.indexOf(".vue");
|
|
99
|
+
if(index > -1){
|
|
100
|
+
componentUrl = componentUrl.substring(0,index);
|
|
101
|
+
}
|
|
102
|
+
if(componentUrl.indexOf("/") == 0){
|
|
103
|
+
componentUrl = componentUrl.substring(1);
|
|
104
|
+
}
|
|
105
|
+
let urlArr = componentUrl.split("/");
|
|
106
|
+
let allRouterArr = this.$router.options.routes || []; //获取当前router中所有的
|
|
107
|
+
this.eachRouterSet(allRouterArr,urlArr,-1);
|
|
108
|
+
console.log("componentIndex....",this.componentIndex);
|
|
109
|
+
this.openDialogVisible = true;
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 遍历
|
|
114
|
+
* @param allRouterArr
|
|
115
|
+
* @param urlArr
|
|
116
|
+
* @param index
|
|
117
|
+
*/
|
|
118
|
+
eachRouterSet(allRouterArr,urlArr,index){
|
|
119
|
+
allRouterArr.forEach(item =>{
|
|
120
|
+
if(urlArr[index + 1]){
|
|
121
|
+
if((urlArr[index +1] == (item.name ? item.name : item.path))||((item.name ? item.name : item.path)).indexOf(urlArr[index +1]+"/:")>-1){
|
|
122
|
+
//当前匹配
|
|
123
|
+
//判断 urlArr是否存在下级
|
|
124
|
+
if(item.children && item.children.length > 0) {
|
|
125
|
+
//如果存在下级
|
|
126
|
+
allRouterArr = item.children || [];
|
|
127
|
+
index = index + 1;
|
|
128
|
+
this.eachRouterSet(allRouterArr,urlArr,index);
|
|
129
|
+
}else{
|
|
130
|
+
console.log("item....",item);
|
|
131
|
+
this.componentIndex = item.component;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
})
|
|
136
|
+
},
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
</script>
|
|
140
|
+
|
|
141
|
+
<style scoped>
|
|
142
|
+
|
|
143
|
+
</style>
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-tabs v-model="activeName" style="height: 100%;" class="cloud-tabs" @tab-click="clickTab">
|
|
3
|
+
<el-tab-pane v-for="(item,index) in tagArrs" :key="index" :name="item.id" style="height: 100%">
|
|
4
|
+
<template slot="label">
|
|
5
|
+
<div slot="reference">
|
|
6
|
+
{{item.name}}
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
<div class="p-tab-view">
|
|
10
|
+
<!--判断渲染对应组件-->
|
|
11
|
+
<keep-alive v-if="item.refreshTab">
|
|
12
|
+
<vue-menu-view :menu-type="item.resourceType"
|
|
13
|
+
:menu-id="item.id"
|
|
14
|
+
:resource-id="item.resourceId"></vue-menu-view>
|
|
15
|
+
</keep-alive>
|
|
16
|
+
<ifm-page
|
|
17
|
+
v-if="item.refreshTab && item.url && (item.url.indexOf('.jsp')>-1 || item.url.indexOf('.html')>-1)"
|
|
18
|
+
:menu-id="item.id" :menu-url="item.url"></ifm-page>
|
|
19
|
+
</div>
|
|
20
|
+
</el-tab-pane>
|
|
21
|
+
</el-tabs>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
import VueMenuView from "./VueMenuView";
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
name: "cloud-menu-view",
|
|
29
|
+
components: {VueMenuView},
|
|
30
|
+
props:{
|
|
31
|
+
installKey:{type:String,required:true},
|
|
32
|
+
},
|
|
33
|
+
data(){
|
|
34
|
+
return {
|
|
35
|
+
activeName:"0",
|
|
36
|
+
tagArrs:[],
|
|
37
|
+
menuIsIfm: false, // 当前点击的菜单是否是iframe
|
|
38
|
+
loadRouteSuccess: true, // 避免直接访问内部页面预先加载
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
watch:{
|
|
42
|
+
|
|
43
|
+
},
|
|
44
|
+
created() {
|
|
45
|
+
this.axios.post(this.api.menu.find,{id:this.installKey}).then(res => {
|
|
46
|
+
(res.data || []).forEach(menuObj => {
|
|
47
|
+
if(menuObj.menuType == 'resourcePool'){ //夫菜单不需要
|
|
48
|
+
let bindSource = JSON.parse(menuObj.bindSource);
|
|
49
|
+
let resourceId = bindSource[bindSource.length - 1];
|
|
50
|
+
let resourceType = bindSource[0];
|
|
51
|
+
this.$set(menuObj,'menuUrl',"/commonHome/menuView/" + resourceId);
|
|
52
|
+
let newMenu = {
|
|
53
|
+
name: menuObj.menuName,
|
|
54
|
+
id: menuObj.id,
|
|
55
|
+
url: menuObj.menuUrl,
|
|
56
|
+
visible: false,
|
|
57
|
+
menuUrl: menuObj.menuUrl,
|
|
58
|
+
resourceType:resourceType,
|
|
59
|
+
resourceId:resourceId, //资源池id
|
|
60
|
+
refreshTab: false,
|
|
61
|
+
operatePermis:menuObj.operatePermis,
|
|
62
|
+
};
|
|
63
|
+
this.tagArrs.push(newMenu);
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
if(this.tagArrs.length > 0){
|
|
67
|
+
this.activeName = this.tagArrs[0].id;
|
|
68
|
+
this.showMenu(this.tagArrs[0]);
|
|
69
|
+
this.refreshTab(this.tagArrs[0]);
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
},
|
|
73
|
+
methods:{
|
|
74
|
+
clickTab(select){
|
|
75
|
+
let menuInfo = this.tagArrs[select.index];
|
|
76
|
+
//点击
|
|
77
|
+
// this.activeName = select.name;
|
|
78
|
+
this.showMenu(menuInfo);
|
|
79
|
+
this.refreshTab(menuInfo);
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
refreshTab(tab) {
|
|
83
|
+
tab.refreshTab = false;
|
|
84
|
+
this.$nextTick(() => {
|
|
85
|
+
tab.refreshTab = true;
|
|
86
|
+
});
|
|
87
|
+
tab.visible = false;
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 请求跳转
|
|
92
|
+
*/
|
|
93
|
+
showMenu(menuObj) {
|
|
94
|
+
this.menuIsIfm = (menuObj.menuUrl && (menuObj.menuUrl.indexOf(".jsp") > -1 || menuObj.menuUrl.indexOf(".html") > -1));
|
|
95
|
+
if (this.menuIsIfm) {
|
|
96
|
+
this.$nextTick(() => {
|
|
97
|
+
this.$router.push({
|
|
98
|
+
name: "ifmPage", query: {menuId: menuObj.id}
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
</script>
|
|
107
|
+
|
|
108
|
+
<style scoped lang="scss">
|
|
109
|
+
.cloud-tabs /deep/ .el-tabs__content{
|
|
110
|
+
height: calc(100% - 70px);
|
|
111
|
+
overflow-y: auto;
|
|
112
|
+
}
|
|
113
|
+
.cloud-tabs /deep/ .el-tabs__nav-wrap::after{
|
|
114
|
+
height: 1px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.p-tab-view {
|
|
118
|
+
height: 100%;
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
padding: 3px;
|
|
121
|
+
position: relative;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
</style>
|