补充缺失内容
31
com.actionsoft.apps.coe.pal/AWSDevParams.js
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
module.exports = {
|
||||||
|
AWSPortalUrl: "http://localhost:8088/portal/",//aws平台启动地址,用于开发时获取平台静态资源,请求数据等(注意最后的/,不要删)
|
||||||
|
AWSReleasePath: "D:/worktools/6.4.2/release/", /*C:/work/workspace/release/*/ //aws的平台路径,暂时写绝对路径,用于build生成的主文件位置(注意最后的/,不要删)
|
||||||
|
moduleTemplateInAWS: "apps/install/com.actionsoft.apps.coe.pal/template/page/main.htm", /*apps/install/_bpm.platform/template/page/console.m.dw.design.vue.htm*/ //build后生成到平台的模板位置及名称
|
||||||
|
outputDir: "/apps/install/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/main", /*webserver/webapps/portal/apps/_bpm.platform/dw/designer/main*/ //build后js或css生成到平台的位置
|
||||||
|
publicPath: "../apps/com.actionsoft.apps.coe.pal/main", /*../apps/_bpm.platform/dw/designer/main*/ //build到平台后生成到模板中,引入js文件的相对平台的位置
|
||||||
|
AWSJSAndCSSImport: [ //引入平台的js或css,在portal目录开始,开发或build通用
|
||||||
|
/*
|
||||||
|
// 示例
|
||||||
|
{
|
||||||
|
type: "js",
|
||||||
|
path: "commons/js/util/Base64.js"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "css",
|
||||||
|
path: "commons/css/font/iconfont.css"
|
||||||
|
},
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
type: 'js',
|
||||||
|
path: 'commons/awsui/js/icon.array.js'
|
||||||
|
},
|
||||||
|
|
||||||
|
],
|
||||||
|
devUserInfo: {//开发时通过用户名及密码获取sessionId,!!前提必须需要安装并启动app:com.actionsoft.apps.getsession.app
|
||||||
|
userid: "admin", //具有后台管理的用户名
|
||||||
|
pwd: "123456", //密码
|
||||||
|
deviceType: "pc",
|
||||||
|
systemType: "C"
|
||||||
|
}
|
||||||
|
}
|
||||||
31
com.actionsoft.apps.coe.pal/AWSDevParams.js.bak
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
module.exports = {
|
||||||
|
AWSPortalUrl: "http://localhost:8088/portal/",//aws平台启动地址,用于开发时获取平台静态资源,请求数据等(注意最后的/,不要删)
|
||||||
|
AWSReleasePath: "/Users/sunlh/idea-workspace-aws6.4.1.1008.standard/release/", /*C:/work/workspace/release/*/ //aws的平台路径,暂时写绝对路径,用于build生成的主文件位置(注意最后的/,不要删)
|
||||||
|
moduleTemplateInAWS: "apps/install/com.actionsoft.apps.coe.pal/template/page/main.htm", /*apps/install/_bpm.platform/template/page/console.m.dw.design.vue.htm*/ //build后生成到平台的模板位置及名称
|
||||||
|
outputDir: "apps/install/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/main", /*webserver/webapps/portal/apps/_bpm.platform/dw/designer/main*/ //build后js或css生成到平台的位置
|
||||||
|
publicPath: "../apps/com.actionsoft.apps.coe.pal/main", /*../apps/_bpm.platform/dw/designer/main*/ //build到平台后生成到模板中,引入js文件的相对平台的位置
|
||||||
|
AWSJSAndCSSImport: [ //引入平台的js或css,在portal目录开始,开发或build通用
|
||||||
|
/*
|
||||||
|
// 示例
|
||||||
|
{
|
||||||
|
type: "js",
|
||||||
|
path: "commons/js/util/Base64.js"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "css",
|
||||||
|
path: "commons/css/font/iconfont.css"
|
||||||
|
},
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
type: 'js',
|
||||||
|
path: 'commons/awsui/js/icon.array.js'
|
||||||
|
},
|
||||||
|
|
||||||
|
],
|
||||||
|
devUserInfo: {//开发时通过用户名及密码获取sessionId,!!前提必须需要安装并启动app:com.actionsoft.apps.getsession.app
|
||||||
|
userid: "admin", //具有后台管理的用户名
|
||||||
|
pwd: "admin", //密码
|
||||||
|
deviceType: "pc",
|
||||||
|
systemType: "C"
|
||||||
|
}
|
||||||
|
}
|
||||||
24
com.actionsoft.apps.coe.pal/README.md
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# dataviewsetting
|
||||||
|
|
||||||
|
## Project setup
|
||||||
|
```
|
||||||
|
yarn install
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compiles and hot-reloads for development
|
||||||
|
```
|
||||||
|
yarn serve
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compiles and minifies for production
|
||||||
|
```
|
||||||
|
yarn build
|
||||||
|
```
|
||||||
|
|
||||||
|
### Lints and fixes files
|
||||||
|
```
|
||||||
|
yarn lint
|
||||||
|
```
|
||||||
|
|
||||||
|
### Customize configuration
|
||||||
|
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||||
10
com.actionsoft.apps.coe.pal/babel.config.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
module.exports = {
|
||||||
|
presets: [
|
||||||
|
[
|
||||||
|
'@vue/app',
|
||||||
|
{
|
||||||
|
useBuiltIns: 'entry'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
96593
com.actionsoft.apps.coe.pal/lib/awsui-vue.common.js
Normal file
1
com.actionsoft.apps.coe.pal/lib/awsui-vue.css
Normal file
96603
com.actionsoft.apps.coe.pal/lib/awsui-vue.umd.js
Normal file
22
com.actionsoft.apps.coe.pal/lib/awsui-vue.umd.min.js
vendored
Normal file
10
com.actionsoft.apps.coe.pal/lib/demo.html
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<meta charset="utf-8">
|
||||||
|
<title>awsui-vue demo</title>
|
||||||
|
<script src="./awsui-vue.umd.js"></script>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./awsui-vue.css">
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
console.log(awsui-vue)
|
||||||
|
</script>
|
||||||
BIN
com.actionsoft.apps.coe.pal/lib/src/fonts/iconfont.3420a3a6.ttf
Normal file
BIN
com.actionsoft.apps.coe.pal/lib/src/fonts/iconfont.392a0f97.eot
Normal file
BIN
com.actionsoft.apps.coe.pal/lib/src/fonts/iconfont.51373027.woff
Normal file
2447
com.actionsoft.apps.coe.pal/lib/src/img/iconfont.ce1b01d3.svg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
52
com.actionsoft.apps.coe.pal/package.json
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"name": "com.actionsoft.apps.coe.pal",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"serve": "vue-cli-service serve",
|
||||||
|
"build": "vue-cli-service build",
|
||||||
|
"lint": "vue-cli-service lint"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"awsui-vue": "^1.0.0",
|
||||||
|
"axios": "^0.20.0",
|
||||||
|
"babel-polyfill": "^6.26.0",
|
||||||
|
"core-js": "^3.8.1",
|
||||||
|
"element-ui": "^2.14.1",
|
||||||
|
"vee-validate": "^3.4.5",
|
||||||
|
"vue": "^2.6.12",
|
||||||
|
"vue-router": "^3.4.9",
|
||||||
|
"vuedraggable": "^2.24.3",
|
||||||
|
"vuex": "^3.6.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vue/cli-plugin-babel": "~4.4.0",
|
||||||
|
"@vue/cli-plugin-eslint": "~4.4.0",
|
||||||
|
"@vue/cli-plugin-router": "~4.4.0",
|
||||||
|
"@vue/cli-plugin-vuex": "~4.4.0",
|
||||||
|
"@vue/cli-service": "~4.4.0",
|
||||||
|
"babel-eslint": "^10.1.0",
|
||||||
|
"eslint": "^7.16.0",
|
||||||
|
"eslint-plugin-vue": "^6.2.2",
|
||||||
|
"vue-template-compiler": "^2.6.12"
|
||||||
|
},
|
||||||
|
"eslintConfig": {
|
||||||
|
"root": true,
|
||||||
|
"env": {
|
||||||
|
"node": true
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"plugin:vue/essential",
|
||||||
|
"eslint:recommended"
|
||||||
|
],
|
||||||
|
"parserOptions": {
|
||||||
|
"parser": "babel-eslint"
|
||||||
|
},
|
||||||
|
"rules": {}
|
||||||
|
},
|
||||||
|
"browserslist": [
|
||||||
|
"> 1%",
|
||||||
|
"last 2 versions",
|
||||||
|
"not dead"
|
||||||
|
]
|
||||||
|
}
|
||||||
63
com.actionsoft.apps.coe.pal/public/index.html
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
|
<!-- <title><%= htmlWebpackPlugin.options.title %></title>-->
|
||||||
|
<title>CoE PAL流程资产库</title>
|
||||||
|
<%= htmlWebpackPlugin.options.AWSJSAndCSSImport %>
|
||||||
|
<!--
|
||||||
|
其它的js或css引用方式示例(<%= htmlWebpackPlugin.options.awsjsandcsspath%>)
|
||||||
|
<link rel="stylesheet" type="text/css" href="<%= htmlWebpackPlugin.options.awsjsandcsspath%>apps/_bpm.platform/css/model/console.m.dw.design.css"/>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const settingParam = <%= htmlWebpackPlugin.options.settingParam %>;
|
||||||
|
const axiosBaseUrl = "<%= htmlWebpackPlugin.options.axiosBaseUrl %>";
|
||||||
|
const production = <%= htmlWebpackPlugin.options.isproduction %>;
|
||||||
|
</script>
|
||||||
|
<% if(!htmlWebpackPlugin.options.isproduction) {%>
|
||||||
|
<script>
|
||||||
|
const devUserInfo = <%= JSON.stringify(htmlWebpackPlugin.options.devUserInfo) %>;
|
||||||
|
</script>
|
||||||
|
<% }%>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
<% if(!htmlWebpackPlugin.options.isproduction) {%>
|
||||||
|
var notificationSoundTips = false; // 是否开启消息到达声音提醒
|
||||||
|
var notificationMsgLoadFrequency = 60; // 通知消息检查频率
|
||||||
|
var isSecurityPwdChange = true; // 是否允许用户修改口令
|
||||||
|
var forceChangePwd = false; // 默认口令验证,是否强制修改默认密码
|
||||||
|
var isSecurityPwdComplexity = 10; // 密码强度
|
||||||
|
var securityMinPwdLength = 0; // 允许账户口令最小长度,0表示无限制
|
||||||
|
var securityMaxPwdLength = 32; // 允许账户口令最大长度,最多32位长度
|
||||||
|
var isSecAdminUser = false;// 是否安全保密员,开启三员且该用户为安全保密员为true
|
||||||
|
var isManage = true;
|
||||||
|
var mainType = '1';// 0:左侧显示资产库文字,中间无输入框,右侧显示所有,1:左侧显示资产库下拉菜单,中间显示输入框,右侧显示所有,2:左侧显示小组文字,中间无输入框,右侧显示所有,3:左侧显示小组下拉菜单,中甲显示输入框,右侧显示所有,4:管理中心
|
||||||
|
var uid = "admin";
|
||||||
|
var wHref = "http://localhost:8088/portal/r/w";
|
||||||
|
var jdHref = "http://localhost:8088/portal/r/jd";
|
||||||
|
<%}else {%>
|
||||||
|
var isNoticeActive = <#isNoticeActive>; //是否启用通知中心
|
||||||
|
var notificationSoundTips = false; // 是否开启消息到达声音提醒
|
||||||
|
var notificationMsgLoadFrequency = 60; // 通知消息检查频率
|
||||||
|
var isSecurityPwdChange = <#isSecurityPwdChange>; // 是否允许用户修改口令
|
||||||
|
var forceChangePwd = <#forceChangePwd>; // 默认口令验证,是否强制修改默认密码
|
||||||
|
var isSecurityPwdComplexity = <#isSecurityPwdComplexity>; // 密码强度
|
||||||
|
var securityMinPwdLength = <#securityMinPwdLength>; // 允许账户口令最小长度,0表示无限制
|
||||||
|
var securityMaxPwdLength = <#securityMaxPwdLength>; // 允许账户口令最大长度,最多32位长度
|
||||||
|
var isSecAdminUser = <#isSecAdminUser>;// 是否安全保密员,开启三员且该用户为安全保密员为true
|
||||||
|
var isManage = <#isManage>;// 是否资产库管理员
|
||||||
|
var mainType = "<#mainType>";
|
||||||
|
var uid = "<#uid>";
|
||||||
|
var wHref = "./w";
|
||||||
|
var jdHref = "./jd";
|
||||||
|
<%}%>
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body style="margin:0;">
|
||||||
|
<div id="app"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 158 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 350 B |
@ -552,13 +552,17 @@
|
|||||||
};
|
};
|
||||||
// 查询数据
|
// 查询数据
|
||||||
awsuiAxios.post(data).then(function (ro) {
|
awsuiAxios.post(data).then(function (ro) {
|
||||||
|
debugger;
|
||||||
if(ro.result == 'ok') {
|
if(ro.result == 'ok') {
|
||||||
|
//isClickTreeRoot
|
||||||
|
if(ro.data.mainRepository=="undefined"){
|
||||||
if(ro.data.mainRepository.folder==false){
|
if(ro.data.mainRepository.folder==false){
|
||||||
bus.$emit("getisDisabled",true);
|
bus.$emit("getisDisabled",true);
|
||||||
}else{
|
}else{
|
||||||
bus.$emit("getisDisabled",false);
|
bus.$emit("getisDisabled",false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const repositoryPathData = ro.data.repositoryPathData;
|
const repositoryPathData = ro.data.repositoryPathData;
|
||||||
that.repositoryPathData = repositoryPathData;
|
that.repositoryPathData = repositoryPathData;
|
||||||
42
com.actionsoft.apps.coe.pal/static/common/common.css
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
* {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
color: #4a4a4a;
|
||||||
|
font-family: PingFangSC-Light;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div,span,section,i,button {
|
||||||
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radius3 {
|
||||||
|
-moz-border-radius: 3px 3px 3px 3px;
|
||||||
|
-webkit-border-radius: 3px 3px 3px 3px;
|
||||||
|
border-radius: 3px 3px 3px 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tree-content-icon {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
.tree-content-icon-padding {
|
||||||
|
padding-right: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-input__inner {
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
|
.el-textarea__inner {
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
244
com.actionsoft.apps.coe.pal/static/common/theme1.css
Normal file
@ -0,0 +1,244 @@
|
|||||||
|
/*设计颜色规范*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
通用鼠标悬浮色
|
||||||
|
所有悬浮状态的底色,包括下拉列表项、表格、卡片等。
|
||||||
|
*/
|
||||||
|
.general-bgcolor-hover:hover {
|
||||||
|
background-color: #F5F7FA !important;
|
||||||
|
}
|
||||||
|
.general-bgcolor-text-hover:hover {
|
||||||
|
background-color: #F5F7FA !important;
|
||||||
|
color : #4E7FF9 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*通用分隔线*/
|
||||||
|
.general-dividing-line {
|
||||||
|
color: #F2F2F2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********************下拉菜单覆盖*************************/
|
||||||
|
/*下拉菜单定义悬浮颜色和悬浮字体色*/
|
||||||
|
.el-dropdown-menu__item:not(.is-disabled):hover{
|
||||||
|
background-color: #F5F7FA !important;
|
||||||
|
color: #333333 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********************导航菜单栏颜色设置*************************/
|
||||||
|
.el-menu-item:hover{
|
||||||
|
color: #4E7FF9;
|
||||||
|
background-color: #F5F7FA !important;
|
||||||
|
}
|
||||||
|
.el-submenu__title:hover{
|
||||||
|
background-color: #F5F7FA !important;
|
||||||
|
}
|
||||||
|
.el-menu-item.is-active {
|
||||||
|
color: #4E7FF9;
|
||||||
|
background-color: #F5F7FA !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********************文字*************************/
|
||||||
|
|
||||||
|
/*主要字体颜色,通用字体颜色,系统普遍使用的字体颜色*/
|
||||||
|
.text-general-color {
|
||||||
|
color : #606266;
|
||||||
|
}
|
||||||
|
.text-general-bgcolor {
|
||||||
|
background-color : #606266;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
次要字体颜色
|
||||||
|
1 次要标注性信息 如,管理员 于2020年2月23日 19:30 修改
|
||||||
|
2 非重要按钮 如,“取消”按钮文本
|
||||||
|
3 列表表头 如,“流程清单”编号、流程名称
|
||||||
|
*/
|
||||||
|
.text-second-color {
|
||||||
|
color : #909399;
|
||||||
|
}
|
||||||
|
.text-second-bgcolor {
|
||||||
|
background-color : #909399;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*链接、可点击文本、icon颜色*/
|
||||||
|
.text-linker-color {
|
||||||
|
color : #4E7FF9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-linker-bgcolor {
|
||||||
|
background-color : #4E7FF9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*重要文本颜色*/
|
||||||
|
.text-important-color {
|
||||||
|
color : #D9001B;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-important-bgcolor {
|
||||||
|
background-color : #D9001B;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*el-link颜色*/
|
||||||
|
.el-link.el-link--primary {
|
||||||
|
color: #4E7FF9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********************表格*************************/
|
||||||
|
|
||||||
|
/*表头文字颜色*/
|
||||||
|
.table-head-text-color {
|
||||||
|
color: #909399;
|
||||||
|
}
|
||||||
|
/*表头背景颜色*/
|
||||||
|
.table-head-bgcolor {
|
||||||
|
|
||||||
|
}
|
||||||
|
/*表头文字颜色*/
|
||||||
|
.table-body-text-color {
|
||||||
|
|
||||||
|
}
|
||||||
|
/*表格表体背景颜色*/
|
||||||
|
.table-body-bgcolor {
|
||||||
|
|
||||||
|
}
|
||||||
|
/*表格表体行鼠标悬浮色*/
|
||||||
|
.table-body-row-bgcolor:hover {
|
||||||
|
background-color: #F5F7FA !important;
|
||||||
|
}
|
||||||
|
/*表格表体行下划线颜色*/
|
||||||
|
.el-table td {
|
||||||
|
border-bottom: 1px solid #F2F2F2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*表格筛选的表头选中颜色*/
|
||||||
|
.el-table th>.cell.highlight {
|
||||||
|
color: #4E7FF9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*表格筛选的表头选项筛选和重置按钮悬浮颜色*/
|
||||||
|
.el-table-filter__bottom button:hover {
|
||||||
|
color:#4E7FF9
|
||||||
|
}
|
||||||
|
|
||||||
|
/*表格筛选排序上下箭头*/
|
||||||
|
.el-table .descending .sort-caret.descending {
|
||||||
|
border-top-color: #4E7FF9;
|
||||||
|
}
|
||||||
|
.el-table .ascending .sort-caret.ascending {
|
||||||
|
border-bottom-color: #4E7FF9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********************按钮*************************/
|
||||||
|
|
||||||
|
/*通用按钮1,例如窗口确定按钮,新建按钮等设计颜色*/
|
||||||
|
.button-general-color {
|
||||||
|
background-color: #4E7FF9 !important;
|
||||||
|
border-color: #4E7FF9 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-general-color-reverse {
|
||||||
|
border-color: #4E7FF9 !important;
|
||||||
|
color: #4E7FF9 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*通用按钮2,例如重要操作类按钮*/
|
||||||
|
.button-general-color2 {
|
||||||
|
background-color: #D9001B !important;
|
||||||
|
border-color: #D9001B !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-general-color-reverse2 {
|
||||||
|
border-color: #D9001B !important;
|
||||||
|
color: #D9001B !important;
|
||||||
|
}
|
||||||
|
/*通用按钮3,例如取消等灰色按钮*/
|
||||||
|
.button-general-color3 {
|
||||||
|
background-color: #909399 !important;
|
||||||
|
border-color: #909399 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-general-color-reverse3 {
|
||||||
|
border-color: #909399 !important;
|
||||||
|
color: #909399 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/********************多选框***********************/
|
||||||
|
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
|
||||||
|
background-color: #4E7FF9;
|
||||||
|
border-color: #4E7FF9;
|
||||||
|
}
|
||||||
|
.el-checkbox__input.is-checked+.el-checkbox__label {
|
||||||
|
color: #4E7FF9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/********************单选框***********************/
|
||||||
|
.el-radio__input.is-checked .el-radio__inner {
|
||||||
|
border-color: #4E7FF9;
|
||||||
|
background: #4E7FF9;
|
||||||
|
}
|
||||||
|
.el-radio__input.is-checked+.el-radio__label {
|
||||||
|
color: #4E7FF9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/********************列表***********************/
|
||||||
|
.li-general-hover-bgcolor:hover {
|
||||||
|
background-color: #F5F7FA;
|
||||||
|
}
|
||||||
|
.el-table__body tr.current-row>td {
|
||||||
|
background-color: #F5F7FA;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*******************加载中颜色********************/
|
||||||
|
.el-loading-spinner .path {
|
||||||
|
stroke: #4E7FF9;
|
||||||
|
}
|
||||||
|
.el-loading-spinner .el-loading-text {
|
||||||
|
color: #4E7FF9;
|
||||||
|
}
|
||||||
|
/******************下拉框文字选中颜色*************/
|
||||||
|
.el-select-dropdown__item.selected {
|
||||||
|
color: #4E7FF9 !important;
|
||||||
|
}
|
||||||
|
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
|
||||||
|
color: #4E7FF9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************步骤条**********************/
|
||||||
|
.el-step__title.is-process {
|
||||||
|
color: #909399;
|
||||||
|
}
|
||||||
|
.el-step__title.is-finish {
|
||||||
|
color: #4E7FF9;
|
||||||
|
}
|
||||||
|
.el-step__head.is-process {
|
||||||
|
color: #909399;
|
||||||
|
border-color: #909399;
|
||||||
|
}
|
||||||
|
.el-step__head.is-finish {
|
||||||
|
color: #4E7FF9;
|
||||||
|
border-color: #4E7FF9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*********************Popover 弹出框***********************/
|
||||||
|
.el-popover__title {
|
||||||
|
color : #606266;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*********************树***********************/
|
||||||
|
.el-tree-node__content {
|
||||||
|
height: 30px;
|
||||||
|
}
|
||||||
|
/*树展开关闭图标大小*/
|
||||||
|
.el-tree-node__expand-icon {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
/*树展开关闭图标的padding*/
|
||||||
|
.el-tree-node__content>.el-tree-node__expand-icon {
|
||||||
|
padding: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-table__empty-text {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
124
com.actionsoft.apps.coe.pal/vue.config.js
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||||
|
const AWSDevParams = require('./AWSDevParams');
|
||||||
|
const AWSReleasePath = AWSDevParams.AWSReleasePath;
|
||||||
|
const AWSPortalUrl = AWSDevParams.AWSPortalUrl;
|
||||||
|
//开发时通过用户名及密码获取sessionId
|
||||||
|
const devUserInfo =AWSDevParams.devUserInfo;
|
||||||
|
const AWSproxyPath = "/AWSDEVURL/r/"; //防止跨域的地址
|
||||||
|
|
||||||
|
const moduleTemplateInAWS = AWSDevParams.moduleTemplateInAWS;//平台的模板路径
|
||||||
|
const outputDir = AWSDevParams.outputDir;
|
||||||
|
const publicPath = AWSDevParams.publicPath;//决定生成在平台的js或css的相对路径,与build配置的路径要对应
|
||||||
|
|
||||||
|
//判断是否开发
|
||||||
|
const isproduction = process.env.NODE_ENV === 'production';
|
||||||
|
//开发时路径和build到平台路径
|
||||||
|
let AWSJSAndCSSPath = isproduction ? "../" : AWSproxyPath.replace("r/","");
|
||||||
|
let AWSJSAndCSSImport = AWSDevParams.AWSJSAndCSSImport == null ? [] : AWSDevParams.AWSJSAndCSSImport;
|
||||||
|
let AWSJSAndCSSImportArray = [];
|
||||||
|
for(let k of AWSJSAndCSSImport){
|
||||||
|
if(k.type == "css"){
|
||||||
|
AWSJSAndCSSImportArray.push("<link type='text/css' rel='stylesheet' href='"+AWSJSAndCSSPath + k.path +"'/>");
|
||||||
|
}else if(k.type == "js"){
|
||||||
|
AWSJSAndCSSImportArray.push("<script type='text/javascript' src='"+AWSJSAndCSSPath + k.path + "'></script>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const getAWSFileRelativePath = ()=>{
|
||||||
|
let index = "./";
|
||||||
|
if(isproduction){
|
||||||
|
index = publicPath;
|
||||||
|
}
|
||||||
|
return index;
|
||||||
|
}
|
||||||
|
const getIndexPath = ()=>{
|
||||||
|
let index = "index.html";
|
||||||
|
if(isproduction){
|
||||||
|
index = AWSReleasePath+moduleTemplateInAWS;
|
||||||
|
}
|
||||||
|
return index;
|
||||||
|
}
|
||||||
|
module.exports = {
|
||||||
|
// 基本路径 build后文件路径../apps/_bpm.platform/test2 ,开发运行时文件路径./
|
||||||
|
publicPath: getAWSFileRelativePath(),
|
||||||
|
|
||||||
|
//生成入口的html文件位置
|
||||||
|
indexPath: getIndexPath(),
|
||||||
|
|
||||||
|
outputDir : AWSReleasePath+outputDir,
|
||||||
|
|
||||||
|
// eslint-loader 是否在保存的时候检查
|
||||||
|
lintOnSave: true,
|
||||||
|
|
||||||
|
productionSourceMap: false, //打包不使用源码(false后在平台无法调试)
|
||||||
|
// use the full build with in-browser compiler?
|
||||||
|
// https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only
|
||||||
|
// compiler: false,
|
||||||
|
// webpack配置
|
||||||
|
// see https://github.com/vuejs/vue-cli/blob/dev/docs/webpack.md
|
||||||
|
chainWebpack: (config) => {
|
||||||
|
config.plugin('html')
|
||||||
|
.tap(args => {
|
||||||
|
let buildVar = args[0];
|
||||||
|
buildVar.AWSJSAndCSSImport = AWSJSAndCSSImportArray.join("\n");
|
||||||
|
buildVar.AWSJSAndCSSPath = AWSJSAndCSSPath;
|
||||||
|
buildVar.devUserInfo = devUserInfo;
|
||||||
|
buildVar.isproduction = isproduction;
|
||||||
|
buildVar.axiosBaseUrl = isproduction ? "./" : AWSproxyPath;
|
||||||
|
buildVar.settingParam = isproduction ? "<#settingParam>" : "{}";
|
||||||
|
return args;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
configureWebpack: config => {
|
||||||
|
config.entry.app=["babel-polyfill","./src/main.js"];
|
||||||
|
if (isproduction) {
|
||||||
|
// 为生产环境修改配置...
|
||||||
|
config.mode = 'production'
|
||||||
|
} else {
|
||||||
|
// 为开发环境修改配置...
|
||||||
|
config.mode = 'development'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
devServer: {
|
||||||
|
proxy: {
|
||||||
|
//配置跨域
|
||||||
|
"/AWSDEVURL": {
|
||||||
|
target: AWSPortalUrl,
|
||||||
|
ws: true,
|
||||||
|
changOrigin: true, //允许跨域
|
||||||
|
pathRewrite: {
|
||||||
|
"^/AWSDEVURL": "" //请求的时候使用这个URL就可以
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// css相关配置
|
||||||
|
css: {
|
||||||
|
loaderOptions: {}
|
||||||
|
},
|
||||||
|
|
||||||
|
// 是否启用dll
|
||||||
|
// See https://github.com/vuejs/vue-cli/blob/dev/docs/cli-service.md#dll-mode
|
||||||
|
// dll: false,
|
||||||
|
// PWA 插件相关配置
|
||||||
|
// see https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-pwa
|
||||||
|
pwa: {},
|
||||||
|
|
||||||
|
// webpack-dev-server 相关配置
|
||||||
|
// devServer: {
|
||||||
|
// open: process.platform === 'darwin',
|
||||||
|
// disableHostCheck: true,
|
||||||
|
// host: 'www.test.com',//如果是真机测试,就使用这个IP
|
||||||
|
// port: 1234,
|
||||||
|
// https: false,
|
||||||
|
// hotOnly: false,
|
||||||
|
// before: app => {}
|
||||||
|
// },
|
||||||
|
|
||||||
|
// 第三方插件配置
|
||||||
|
pluginOptions: {
|
||||||
|
},
|
||||||
|
transpileDependencies: ["*"]
|
||||||
|
}
|
||||||
128
com.actionsoft.apps.coe.pal/vue.config.js.bak
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||||
|
const AWSDevParams = require('./AWSDevParams');
|
||||||
|
const AWSReleasePath = AWSDevParams.AWSReleasePath;
|
||||||
|
const AWSPortalUrl = AWSDevParams.AWSPortalUrl;
|
||||||
|
//开发时通过用户名及密码获取sessionId
|
||||||
|
const devUserInfo =AWSDevParams.devUserInfo;
|
||||||
|
const AWSproxyPath = "/AWSDEVURL/r/"; //防止跨域的地址
|
||||||
|
|
||||||
|
const moduleTemplateInAWS = AWSDevParams.moduleTemplateInAWS;//平台的模板路径
|
||||||
|
const outputDir = AWSDevParams.outputDir;
|
||||||
|
const publicPath = AWSDevParams.publicPath;//决定生成在平台的js或css的相对路径,与build配置的路径要对应
|
||||||
|
|
||||||
|
//判断是否开发
|
||||||
|
const isproduction = process.env.NODE_ENV === 'production';
|
||||||
|
//开发时路径和build到平台路径
|
||||||
|
let AWSJSAndCSSPath = isproduction ? "../" : AWSproxyPath.replace("r/","");
|
||||||
|
let AWSJSAndCSSImport = AWSDevParams.AWSJSAndCSSImport == null ? [] : AWSDevParams.AWSJSAndCSSImport;
|
||||||
|
let AWSJSAndCSSImportArray = [];
|
||||||
|
for(let k of AWSJSAndCSSImport){
|
||||||
|
if(k.type == "css"){
|
||||||
|
AWSJSAndCSSImportArray.push("<link type='text/css' rel='stylesheet' href='"+AWSJSAndCSSPath + k.path +"'/>");
|
||||||
|
}else if(k.type == "js"){
|
||||||
|
AWSJSAndCSSImportArray.push("<script type='text/javascript' src='"+AWSJSAndCSSPath + k.path + "'></script>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const getAWSFileRelativePath = ()=>{
|
||||||
|
let index = "./";
|
||||||
|
if(isproduction){
|
||||||
|
index = publicPath;
|
||||||
|
}
|
||||||
|
return index;
|
||||||
|
}
|
||||||
|
const getIndexPath = ()=>{
|
||||||
|
let index = "index.html";
|
||||||
|
if(isproduction){
|
||||||
|
index = AWSReleasePath+moduleTemplateInAWS;
|
||||||
|
}
|
||||||
|
return index;
|
||||||
|
}
|
||||||
|
module.exports = {
|
||||||
|
// 基本路径 build后文件路径../apps/_bpm.platform/test2 ,开发运行时文件路径./
|
||||||
|
publicPath: getAWSFileRelativePath(),
|
||||||
|
|
||||||
|
//生成入口的html文件位置
|
||||||
|
indexPath: getIndexPath(),
|
||||||
|
|
||||||
|
outputDir : AWSReleasePath+outputDir,
|
||||||
|
|
||||||
|
// eslint-loader 是否在保存的时候检查
|
||||||
|
lintOnSave: true,
|
||||||
|
|
||||||
|
productionSourceMap: false, //打包不使用源码(false后在平台无法调试)
|
||||||
|
// use the full build with in-browser compiler?
|
||||||
|
// https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only
|
||||||
|
// compiler: false,
|
||||||
|
// webpack配置
|
||||||
|
// see https://github.com/vuejs/vue-cli/blob/dev/docs/webpack.md
|
||||||
|
chainWebpack: (config) => {
|
||||||
|
config.plugin('html')
|
||||||
|
.tap(args => {
|
||||||
|
let buildVar = args[0];
|
||||||
|
buildVar.AWSJSAndCSSImport = AWSJSAndCSSImportArray.join("\n");
|
||||||
|
debugger
|
||||||
|
buildVar.AWSJSAndCSSPath = AWSJSAndCSSPath;
|
||||||
|
buildVar.devUserInfo = devUserInfo;
|
||||||
|
buildVar.isproduction = isproduction;
|
||||||
|
buildVar.axiosBaseUrl = isproduction ? "./" : AWSproxyPath;
|
||||||
|
buildVar.settingParam = isproduction ? "<#settingParam>" : "{}";
|
||||||
|
return args;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
configureWebpack: config => {
|
||||||
|
config.entry.app=["babel-polyfill","./src/main.js"];
|
||||||
|
if (isproduction) {
|
||||||
|
// 为生产环境修改配置...
|
||||||
|
config.mode = 'production'
|
||||||
|
} else {
|
||||||
|
// 为开发环境修改配置...
|
||||||
|
config.mode = 'development'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
devServer: {
|
||||||
|
proxy: {
|
||||||
|
//配置跨域
|
||||||
|
"/AWSDEVURL": {
|
||||||
|
target: AWSPortalUrl,
|
||||||
|
ws: true,
|
||||||
|
changOrigin: true, //允许跨域
|
||||||
|
pathRewrite: {
|
||||||
|
"^/AWSDEVURL": "" //请求的时候使用这个URL就可以
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// css相关配置
|
||||||
|
css: {
|
||||||
|
loaderOptions: {}
|
||||||
|
},
|
||||||
|
|
||||||
|
// 是否启用dll
|
||||||
|
// See https://github.com/vuejs/vue-cli/blob/dev/docs/cli-service.md#dll-mode
|
||||||
|
// dll: false,
|
||||||
|
// PWA 插件相关配置
|
||||||
|
// see https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-pwa
|
||||||
|
pwa: {},
|
||||||
|
|
||||||
|
// webpack-dev-server 相关配置
|
||||||
|
// devServer: {
|
||||||
|
// open: process.platform === 'darwin',
|
||||||
|
// disableHostCheck: true,
|
||||||
|
// host: 'www.test.com',//如果是真机测试,就使用这个IP
|
||||||
|
// port: 1234,
|
||||||
|
// https: false,
|
||||||
|
// hotOnly: false,
|
||||||
|
// before: app => {}
|
||||||
|
// },
|
||||||
|
devServer: {
|
||||||
|
host: '192.168.3.12',//如果是真机测试,就使用这个IP
|
||||||
|
port: 8081,
|
||||||
|
},
|
||||||
|
// 第三方插件配置
|
||||||
|
pluginOptions: {
|
||||||
|
},
|
||||||
|
transpileDependencies: ["*"]
|
||||||
|
}
|
||||||