Browse Source

Merge remote-tracking branch 'upstream/dev' into dev

pull/2/head
baoliang 6 years ago
parent
commit
bd5201406f
  1. 21
      CONTRIBUTING.md
  2. 4
      README.md
  3. 4
      docs/zh_CN/README.md
  4. 2
      docs/zh_CN/SUMMARY.md
  5. 10
      docs/zh_CN/前端部署文档.md
  6. 4
      docs/zh_CN/升级文档.md
  7. 4
      escheduler-api/src/main/java/cn/escheduler/api/controller/UsersController.java
  8. 2
      escheduler-ui/.env
  9. 2
      escheduler-ui/dist/index.html
  10. 1
      escheduler-ui/dist/js/20.15ed1ee.js.map
  11. 4
      escheduler-ui/dist/js/20.ef7f230.js
  12. 1
      escheduler-ui/dist/js/20.ef7f230.js.map
  13. 2
      escheduler-ui/dist/js/33.6f78a15.js
  14. 1
      escheduler-ui/dist/js/33.6f78a15.js.map
  15. 2
      escheduler-ui/dist/js/33.d41356b.js
  16. 1
      escheduler-ui/dist/js/33.d41356b.js.map
  17. 2
      escheduler-ui/dist/js/35.39a1f26.js
  18. 1
      escheduler-ui/dist/js/35.39a1f26.js.map
  19. 2
      escheduler-ui/dist/js/35.54f8ec4.js
  20. 1
      escheduler-ui/dist/js/35.54f8ec4.js.map
  21. 2
      escheduler-ui/dist/js/8.af1dc8f.js
  22. 1
      escheduler-ui/dist/js/8.af1dc8f.js.map
  23. 2
      escheduler-ui/dist/js/8.b18bb5d.js
  24. 1
      escheduler-ui/dist/js/8.b18bb5d.js.map
  25. 4
      escheduler-ui/dist/js/common.6428411.js
  26. 2
      escheduler-ui/dist/js/common.6428411.js.map
  27. 2
      escheduler-ui/dist/view/login/index.html
  28. 0
      escheduler-ui/install-escheduler-ui.sh
  29. 9
      escheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js
  30. 4
      escheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue
  31. 5
      escheduler-ui/src/js/conf/home/pages/projects/pages/definition/timing/_source/list.vue
  32. 2
      escheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue
  33. 3
      escheduler-ui/src/js/conf/home/pages/user/pages/password/_source/info.vue
  34. 4
      escheduler-ui/src/js/conf/home/store/dag/mutations.js
  35. 2
      escheduler-ui/src/lib/external/config.js

21
CONTRIBUTING.md

@ -4,8 +4,13 @@ EasyScheduler提交代码流程
* 远端仓库中目前有三个分支:
* master 正常交付分支
* dev 日常开发分支
发布稳定版本以后,将稳定版本分支的代码合并到master上。
* dev 日常开发分支
日常dev开发分支,新提交的代码都可以pull request到这个分支上。
* branch-1.0.0 发布版本分支
发布版本分支,后续会有2.0...等版本分支,版本分支只修改bug,不增加新功能。
* 把自己仓库clone到本地
@ -38,7 +43,13 @@ git pull upstream dev
```
git checkout origin/dev
git merge --no-ff upstream/dev
```
如果远端分支有新加的分支`dev-1.0`,需要同步这个分支到本地仓库
```
git checkout -b dev-1.0 upstream/dev-1.0
git push --set-upstream origin dev1.0
```
* 在本地修改代码以后,提交到自己仓库:
@ -60,11 +71,3 @@ git pull upstream dev
* 接下来由管理员负责将**Merge**完成此次pull request

4
README.md

@ -41,7 +41,9 @@ Easy Scheduler
- [**使用手册**](https://analysys.github.io/easyscheduler_docs_cn/系统使用手册.html?_blank "系统使用手册")
- <a href="http://52.82.13.76:8888" target="_blank">我要体验</a> 普通用户登录:demo/demo123
- [**升级文档**](https://analysys.github.io/easyscheduler_docs_cn/升级文档.html?_blank "升级文档")
- <a href="http://52.82.13.76:8888" target="_blank">我要体验</a>
更多文档请参考 <a href="https://analysys.github.io/easyscheduler_docs_cn/" target="_blank">easyscheduler中文在线文档</a>

4
docs/zh_CN/README.md

@ -41,7 +41,9 @@ Easy Scheduler
- [**使用手册**](https://analysys.github.io/easyscheduler_docs_cn/系统使用手册.html?_blank "系统使用手册")
- <a href="http://52.82.13.76:8888" target="_blank">我要体验</a> 普通用户登录:demo/demo123
- [**升级文档**](https://analysys.github.io/easyscheduler_docs_cn/升级文档.html?_blank "升级文档")
- <a href="http://52.82.13.76:8888" target="_blank">我要体验</a>
更多文档请参考 <a href="https://analysys.github.io/easyscheduler_docs_cn/" target="_blank">easyscheduler中文在线文档</a>

2
docs/zh_CN/SUMMARY.md

@ -22,6 +22,8 @@
* [开发环境搭建](后端开发文档.md#项目编译)
* [自定义任务插件文档](任务插件开发.md#任务插件开发)
* 系统版本升级文档
* [版本升级](升级文档.md)
* 历次版本发布内容
* [1.0.2 release](1.0.2-release.md)
* [1.0.1 release](1.0.1-release.md)

10
docs/zh_CN/前端部署文档.md

@ -7,8 +7,8 @@
目前最新安装包版本是1.0.2,下载地址: [码云下载](https://gitee.com/easyscheduler/EasyScheduler/attach_files/)
下载escheduler-ui-1.0.2.tar.gz后,解压后会产生dist目录,进入dist目录
> cd dist
下载 escheduler-ui-1.0.2.tar.gz 后,解压`tar -zxvf escheduler-ui-1.0.2.tar.gz ./`后,进入`escheduler-ui`目录
@ -16,7 +16,7 @@
以下两种方式任选其一部署即可,推荐自动化部署
### 2.1 自动化部署
在`escheduler-ui`目录下编辑安装文件`vi install(线上环境).sh`(执行时,最好修改install(线上环境).sh为install-ui.sh,跟后端部署区分)
在`escheduler-ui`目录下编辑安装文件`vi install-escheduler-ui.sh`
更改前端访问端口和后端代理接口地址
@ -28,9 +28,9 @@ esc_proxy="8888"
esc_proxy_port="http://192.168.xx.xx:12345"
```
前端自动部署基于linux系统`yum`操作,部署之前请先安装更新`yum`
>前端自动部署基于linux系统`yum`操作,部署之前请先安装更新`yum`
`escheduler-ui`目录下执行`./install(线上环境).sh` 或者改名后的 `./install-ui.sh`
该目录下执行`./install-escheduler-ui.sh`
### 2.2 手动部署

4
docs/zh_CN/升级文档.md

@ -1,9 +1,9 @@
# EasyScheduler升级文档
## 1. 备份上一版本文件和数据库
## 1. 备份上一版本文件和数据库
## 2. 停止escheduler所有服务.
## 2. 停止escheduler所有服务
`sh ./script/stop_all.sh`

4
escheduler-api/src/main/java/cn/escheduler/api/controller/UsersController.java

@ -64,7 +64,7 @@ public class UsersController extends BaseController{
@RequestParam(value = "userName") String userName,
@RequestParam(value = "userPassword") String userPassword,
@RequestParam(value = "tenantId") int tenantId,
@RequestParam(value = "queue") String queue,
@RequestParam(value = "queue",required = false,defaultValue = "") String queue,
@RequestParam(value = "email") String email,
@RequestParam(value = "phone", required = false) String phone) {
logger.info("login user {}, create user, userName: {}, email: {}, tenantId: {}, userPassword: {}, phone: {}, user queue: {}",
@ -128,7 +128,7 @@ public class UsersController extends BaseController{
@RequestParam(value = "id") int id,
@RequestParam(value = "userName") String userName,
@RequestParam(value = "userPassword") String userPassword,
@RequestParam(value = "queue") String queue,
@RequestParam(value = "queue",required = false,defaultValue = "") String queue,
@RequestParam(value = "email") String email,
@RequestParam(value = "tenantId") int tenantId,
@RequestParam(value = "phone", required = false) String phone) {

2
escheduler-ui/.env

@ -1,6 +1,6 @@
# 后端接口地址
API_BASE = http://192.168.220.247:12345
API_BASE = http://192.168.xx.xx:12345
# 本地开发如需ip访问项目把"#"号去掉
#DEV_HOST = 192.168.xx.xx

2
escheduler-ui/dist/index.html vendored

@ -4,4 +4,4 @@
d="M37.3496987939662 -7 L47.3496987939662 -7 L47.3496987939662 7 L37.3496987939662 7 A38 38 0 0 1 31.359972760794346 21.46047782418268 L31.359972760794346 21.46047782418268 L38.431040572659825 28.531545636048154 L28.531545636048154 38.431040572659825 L21.46047782418268 31.359972760794346 A38 38 0 0 1 7.0000000000000036 37.3496987939662 L7.0000000000000036 37.3496987939662 L7.000000000000004 47.3496987939662 L-6.999999999999999 47.3496987939662 L-7 37.3496987939662 A38 38 0 0 1 -21.46047782418268 31.35997276079435 L-21.46047782418268 31.35997276079435 L-28.531545636048154 38.431040572659825 L-38.43104057265982 28.531545636048158 L-31.359972760794346 21.460477824182682 A38 38 0 0 1 -37.3496987939662 7.000000000000007 L-37.3496987939662 7.000000000000007 L-47.3496987939662 7.000000000000008 L-47.3496987939662 -6.9999999999999964 L-37.3496987939662 -6.999999999999997 A38 38 0 0 1 -31.35997276079435 -21.460477824182675 L-31.35997276079435 -21.460477824182675 L-38.431040572659825 -28.531545636048147 L-28.53154563604818 -38.4310405726598 L-21.4604778241827 -31.35997276079433 A38 38 0 0 1 -6.999999999999992 -37.3496987939662 L-6.999999999999992 -37.3496987939662 L-6.999999999999994 -47.3496987939662 L6.999999999999977 -47.3496987939662 L6.999999999999979 -37.3496987939662 A38 38 0 0 1 21.460477824182686 -31.359972760794342 L21.460477824182686 -31.359972760794342 L28.531545636048158 -38.43104057265982 L38.4310405726598 -28.53154563604818 L31.35997276079433 -21.4604778241827 A38 38 0 0 1 37.3496987939662 -6.999999999999995 M0 -23A23 23 0 1 0 0 23 A23 23 0 1 0 0 -23"
fill="#0097e0"></path></g></g><g transform="translate(19 19) scale(0.6)"><g transform="rotate(229.634)"><animateTransform attributeName="transform" type="rotate" values="360;0" keyTimes="0;1" dur="1s" begin="-0.0625s" repeatCount="indefinite"></animateTransform><path
d="M37.3496987939662 -7 L47.3496987939662 -7 L47.3496987939662 7 L37.3496987939662 7 A38 38 0 0 1 31.359972760794346 21.46047782418268 L31.359972760794346 21.46047782418268 L38.431040572659825 28.531545636048154 L28.531545636048154 38.431040572659825 L21.46047782418268 31.359972760794346 A38 38 0 0 1 7.0000000000000036 37.3496987939662 L7.0000000000000036 37.3496987939662 L7.000000000000004 47.3496987939662 L-6.999999999999999 47.3496987939662 L-7 37.3496987939662 A38 38 0 0 1 -21.46047782418268 31.35997276079435 L-21.46047782418268 31.35997276079435 L-28.531545636048154 38.431040572659825 L-38.43104057265982 28.531545636048158 L-31.359972760794346 21.460477824182682 A38 38 0 0 1 -37.3496987939662 7.000000000000007 L-37.3496987939662 7.000000000000007 L-47.3496987939662 7.000000000000008 L-47.3496987939662 -6.9999999999999964 L-37.3496987939662 -6.999999999999997 A38 38 0 0 1 -31.35997276079435 -21.460477824182675 L-31.35997276079435 -21.460477824182675 L-38.431040572659825 -28.531545636048147 L-28.53154563604818 -38.4310405726598 L-21.4604778241827 -31.35997276079433 A38 38 0 0 1 -6.999999999999992 -37.3496987939662 L-6.999999999999992 -37.3496987939662 L-6.999999999999994 -47.3496987939662 L6.999999999999977 -47.3496987939662 L6.999999999999979 -37.3496987939662 A38 38 0 0 1 21.460477824182686 -31.359972760794342 L21.460477824182686 -31.359972760794342 L28.531545636048158 -38.43104057265982 L38.4310405726598 -28.53154563604818 L31.35997276079433 -21.4604778241827 A38 38 0 0 1 37.3496987939662 -6.999999999999995 M0 -23A23 23 0 1 0 0 23 A23 23 0 1 0 0 -23"
fill="#7f8b95"></path></g></g></g></svg> <span class="sp1">Loading ...</span></div></div><script src="/combo/1.0.0/3rd.js?v1.0.0.1"></script><script src="/js/common.467dcfa.js"></script><script src="/js/home/index.1b09c2f.js"></script></body></html>
fill="#7f8b95"></path></g></g></g></svg> <span class="sp1">Loading ...</span></div></div><script src="/combo/1.0.0/3rd.js?v1.0.0.1"></script><script src="/js/common.6428411.js"></script><script src="/js/home/index.1b09c2f.js"></script></body></html>

1
escheduler-ui/dist/js/20.15ed1ee.js.map vendored

File diff suppressed because one or more lines are too long

4
escheduler-ui/dist/js/20.15ed1ee.js → escheduler-ui/dist/js/20.ef7f230.js vendored

File diff suppressed because one or more lines are too long

1
escheduler-ui/dist/js/20.ef7f230.js.map vendored

File diff suppressed because one or more lines are too long

2
escheduler-ui/dist/js/33.6f78a15.js vendored

File diff suppressed because one or more lines are too long

1
escheduler-ui/dist/js/33.6f78a15.js.map vendored

File diff suppressed because one or more lines are too long

2
escheduler-ui/dist/js/33.d41356b.js vendored

File diff suppressed because one or more lines are too long

1
escheduler-ui/dist/js/33.d41356b.js.map vendored

File diff suppressed because one or more lines are too long

2
escheduler-ui/dist/js/35.39a1f26.js vendored

File diff suppressed because one or more lines are too long

1
escheduler-ui/dist/js/35.39a1f26.js.map vendored

File diff suppressed because one or more lines are too long

2
escheduler-ui/dist/js/35.54f8ec4.js vendored

File diff suppressed because one or more lines are too long

1
escheduler-ui/dist/js/35.54f8ec4.js.map vendored

File diff suppressed because one or more lines are too long

2
escheduler-ui/dist/js/8.af1dc8f.js vendored

File diff suppressed because one or more lines are too long

1
escheduler-ui/dist/js/8.af1dc8f.js.map vendored

File diff suppressed because one or more lines are too long

2
escheduler-ui/dist/js/8.b18bb5d.js vendored

File diff suppressed because one or more lines are too long

1
escheduler-ui/dist/js/8.b18bb5d.js.map vendored

File diff suppressed because one or more lines are too long

4
escheduler-ui/dist/js/common.467dcfa.js → escheduler-ui/dist/js/common.6428411.js vendored

File diff suppressed because one or more lines are too long

2
escheduler-ui/dist/js/common.467dcfa.js.map → escheduler-ui/dist/js/common.6428411.js.map vendored

File diff suppressed because one or more lines are too long

2
escheduler-ui/dist/view/login/index.html vendored

@ -1,3 +1,3 @@
<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta http-equiv="Cache-Control" content="no-siteapp"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-title" content="标题"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="format-detection" content="telphone=no, email=no"><meta name="screen-orientation" content="portrait"><meta name="x5-orientation" content="portrait"><meta name="theme-color" content="#4a8dee"><meta name="msapplication-navbutton-color" content="#4a8dee"><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><link rel="shortcut icon" href="/images/favicon.ico"><link href="/combo/1.0.0/base.css?v1.0.0.1" rel="stylesheet"><link href="/combo/1.0.0/3rd.css?v1.0.0.1" rel="stylesheet"><!--[if lt IE 9]>
<script src="/combo/1.0.0/es5.js"></script>
<![endif]--><script>let NODE_ENV = 'true'</script><title>Login - EasyScheduler</title><link href="/css/common.8ba9af7.css" rel="stylesheet"><link href="/css/login/index.5866c64.css" rel="stylesheet"></head><body><div id="app"></div><div class="login-bg"></div><script src="/combo/1.0.0/3rd.js?v1.0.0.1"></script><script src="/js/common.467dcfa.js"></script><script src="/js/login/index.97eaebb.js"></script></body></html>
<![endif]--><script>let NODE_ENV = 'true'</script><title>Login - EasyScheduler</title><link href="/css/common.8ba9af7.css" rel="stylesheet"><link href="/css/login/index.5866c64.css" rel="stylesheet"></head><body><div id="app"></div><div class="login-bg"></div><script src="/combo/1.0.0/3rd.js?v1.0.0.1"></script><script src="/js/common.6428411.js"></script><script src="/js/login/index.97eaebb.js"></script></body></html>

0
escheduler-ui/install(线上环境).sh → escheduler-ui/install-escheduler-ui.sh

9
escheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js

@ -489,6 +489,9 @@ JSP.prototype.removeNodes = function ($id) {
})
// delete node
this.JspInstance.remove($id)
// delete dom
$(`#${$id}`).remove()
}
/**
@ -557,7 +560,7 @@ JSP.prototype.copyNodes = function ($id) {
// Add new node
store.commit('dag/addTasks', newNodeInfo)
// Add node location information
store.commit('dag/setLocations', {
store.commit('dag/addLocations', {
[newId]: {
name: newName,
targetarr: '',
@ -642,6 +645,8 @@ JSP.prototype.saveStore = function () {
})
})
console.log(tasksAll())
_.map(tasksAll(), v => {
locations[v.id] = {
name: v.name,
@ -651,6 +656,8 @@ JSP.prototype.saveStore = function () {
}
})
console.log(locations)
// Storage node
store.commit('dag/setTasks', tasks)
// Store coordinate information

4
escheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue

@ -9,7 +9,7 @@
</div>
<div class="cont">
<x-datepicker
style="width: 300px;"
style="width: 360px;"
:panel-num="2"
placement="bottom-start"
@on-change="_datepicker"
@ -32,7 +32,7 @@
</div>
<template slot="reference">
<x-input
style="width: 300px;"
style="width: 360px;"
type="text"
readonly
:value="crontab"

5
escheduler-ui/src/js/conf/home/pages/projects/pages/definition/timing/_source/list.vue

@ -160,7 +160,10 @@
pageNo: this.pageNo,
pageSize: this.pageSize
}).then(res => {
this.list = res.data.totalList
this.list = []
setTimeout(() => {
this.list = res.data.totalList
})
this.total = res.data.total
this.isLoading = false
}).catch(e => {

2
escheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue

@ -39,7 +39,7 @@
</x-select>
</template>
</m-list-box-f>
<m-list-box-f>
<m-list-box-f v-if="isADMIN">
<template slot="name"><b>*</b>{{$t('Queue')}}</template>
<template slot="content">
<x-select v-model="queueName">

3
escheduler-ui/src/js/conf/home/pages/user/pages/password/_source/info.vue

@ -31,7 +31,7 @@
<m-list-box-f>
<template slot="name">&nbsp;</template>
<template slot="content">
<x-button type="primary" shape="circle" @click="_edit()" :loading="spinnerLoading">{{spinnerLoading ? 'Loading...' : 'Edit'}}</x-button>
<x-button type="primary" shape="circle" @click="_edit()" :loading="spinnerLoading">{{spinnerLoading ? 'Loading...' : $t('Edit')}}</x-button>
</template>
</m-list-box-f>
</div>
@ -80,6 +80,7 @@
}, 1500)
}).catch(e => {
this.$message.error(e.msg || '')
this.spinnerLoading = false
})
}
},

4
escheduler-ui/src/js/conf/home/store/dag/mutations.js

@ -32,13 +32,13 @@ export default {
* set locations
* */
setLocations (state, payload) {
state.locations = Object.assign(state.locations, {}, payload)
state.locations = payload
},
/**
* add locations
* */
addLocations (state, payload) {
state.locations = payload
state.locations = Object.assign(state.locations, {}, payload)
},
/**
* set connects

2
escheduler-ui/src/lib/external/config.js vendored

@ -3,5 +3,5 @@
*/
export default {
// qianfan task record switch
recordSwitch:true
recordSwitch:false
}
Loading…
Cancel
Save