Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
ab7c23f3
Commit
ab7c23f3
authored
Dec 25, 2019
by
Elune
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 2.5dev
parents
060e3e20
f7c65d67
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
16 deletions
+8
-16
.env.production
+3
-2
src/views/monitor/online/index.vue
+0
-5
src/views/system/dept/index.vue
+1
-1
src/views/system/menu/index.vue
+1
-1
src/views/system/role/index.vue
+1
-1
src/views/system/timing/index.vue
+1
-1
src/views/system/user/index.vue
+1
-5
No files found.
.env.production
View file @
ab7c23f3
ENV = 'production'
ENV = 'production'
# 接口地址
# 接口地址
,注意协议,如果你没有配置 ssl,需要将 https 改为 http
VUE_APP_BASE_API = 'https://api.auauz.net'
VUE_APP_BASE_API = 'https://api.auauz.net'
VUE_APP_WS_API = 'ws://api.auauz.net'
# 如果接口是 http 形式, wss 需要改为 ws
VUE_APP_WS_API = 'wss://api.auauz.net'
src/views/monitor/online/index.vue
View file @
ab7c23f3
...
@@ -86,11 +86,6 @@ export default {
...
@@ -86,11 +86,6 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
// 获取数据前设置好接口地址
beforeInit
()
{
this
.
url
=
'auth/online'
return
true
},
doDelete
(
datas
)
{
doDelete
(
datas
)
{
this
.
$confirm
(
`确认强退选中的
${
datas
.
length
}
个用户?`
,
'提示'
,
{
this
.
$confirm
(
`确认强退选中的
${
datas
.
length
}
个用户?`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
...
...
src/views/system/dept/index.vue
View file @
ab7c23f3
...
@@ -123,7 +123,7 @@ export default {
...
@@ -123,7 +123,7 @@ export default {
},
},
// 提交前的验证
// 提交前的验证
[
CRUD
.
HOOK
.
afterValidateCU
]()
{
[
CRUD
.
HOOK
.
afterValidateCU
]()
{
if
(
!
this
.
form
.
pid
)
{
if
(
!
this
.
form
.
pid
&&
this
.
form
.
id
!==
1
)
{
this
.
$message
({
this
.
$message
({
message
:
'上级部门不能为空'
,
message
:
'上级部门不能为空'
,
type
:
'warning'
type
:
'warning'
...
...
src/views/system/menu/index.vue
View file @
ab7c23f3
...
@@ -157,7 +157,7 @@ import udOperation from '@crud/UD.operation'
...
@@ -157,7 +157,7 @@ import udOperation from '@crud/UD.operation'
// crud交由presenter持有
// crud交由presenter持有
const
defaultCrud
=
CRUD
({
title
:
'菜单'
,
url
:
'api/menus'
,
crudMethod
:
{
...
crudMenu
}})
const
defaultCrud
=
CRUD
({
title
:
'菜单'
,
url
:
'api/menus'
,
crudMethod
:
{
...
crudMenu
}})
const
defaultForm
=
{
name
:
null
,
sort
:
999
,
path
:
null
,
component
:
null
,
componentName
:
null
,
iframe
:
false
,
roles
:
[],
pid
:
0
,
icon
:
null
,
cache
:
false
,
hidden
:
false
,
type
:
0
,
permission
:
null
}
const
defaultForm
=
{
id
:
null
,
name
:
null
,
sort
:
999
,
path
:
null
,
component
:
null
,
componentName
:
null
,
iframe
:
false
,
roles
:
[],
pid
:
0
,
icon
:
null
,
cache
:
false
,
hidden
:
false
,
type
:
0
,
permission
:
null
}
export
default
{
export
default
{
name
:
'Menu'
,
name
:
'Menu'
,
components
:
{
Treeselect
,
IconSelect
,
crudOperation
,
rrOperation
,
udOperation
},
components
:
{
Treeselect
,
IconSelect
,
crudOperation
,
rrOperation
,
udOperation
},
...
...
src/views/system/role/index.vue
View file @
ab7c23f3
...
@@ -135,7 +135,7 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css'
...
@@ -135,7 +135,7 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css'
// crud交由presenter持有
// crud交由presenter持有
const
defaultCrud
=
CRUD
({
title
:
'角色'
,
url
:
'api/roles'
,
sort
:
'level,asc'
,
crudMethod
:
{
...
crudRoles
}})
const
defaultCrud
=
CRUD
({
title
:
'角色'
,
url
:
'api/roles'
,
sort
:
'level,asc'
,
crudMethod
:
{
...
crudRoles
}})
const
defaultForm
=
{
name
:
null
,
depts
:
[],
remark
:
null
,
dataScope
:
'全部'
,
level
:
3
,
permission
:
null
}
const
defaultForm
=
{
id
:
null
,
name
:
null
,
depts
:
[],
remark
:
null
,
dataScope
:
'全部'
,
level
:
3
,
permission
:
null
}
export
default
{
export
default
{
name
:
'Role'
,
name
:
'Role'
,
components
:
{
Treeselect
,
pagination
,
crudOperation
,
rrOperation
,
udOperation
},
components
:
{
Treeselect
,
pagination
,
crudOperation
,
rrOperation
,
udOperation
},
...
...
src/views/system/timing/index.vue
View file @
ab7c23f3
...
@@ -119,7 +119,7 @@ import pagination from '@crud/Pagination'
...
@@ -119,7 +119,7 @@ import pagination from '@crud/Pagination'
// crud交由presenter持有
// crud交由presenter持有
const
defaultCrud
=
CRUD
({
title
:
'定时任务'
,
url
:
'api/jobs'
,
crudMethod
:
{
...
crudJob
}})
const
defaultCrud
=
CRUD
({
title
:
'定时任务'
,
url
:
'api/jobs'
,
crudMethod
:
{
...
crudJob
}})
const
defaultForm
=
{
jobName
:
null
,
beanName
:
null
,
methodName
:
null
,
params
:
null
,
cronExpression
:
null
,
isPause
:
false
,
remark
:
null
}
const
defaultForm
=
{
id
:
null
,
jobName
:
null
,
beanName
:
null
,
methodName
:
null
,
params
:
null
,
cronExpression
:
null
,
isPause
:
false
,
remark
:
null
}
export
default
{
export
default
{
name
:
'Timing'
,
name
:
'Timing'
,
components
:
{
Log
,
pagination
,
crudOperation
,
rrOperation
},
components
:
{
Log
,
pagination
,
crudOperation
,
rrOperation
},
...
...
src/views/system/user/index.vue
View file @
ab7c23f3
...
@@ -211,7 +211,7 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css'
...
@@ -211,7 +211,7 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css'
let
userRoles
=
[]
let
userRoles
=
[]
// crud交由presenter持有
// crud交由presenter持有
const
defaultCrud
=
CRUD
({
title
:
'用户'
,
url
:
'api/users'
,
crudMethod
:
{
...
crudUser
}})
const
defaultCrud
=
CRUD
({
title
:
'用户'
,
url
:
'api/users'
,
crudMethod
:
{
...
crudUser
}})
const
defaultForm
=
{
username
:
null
,
nickName
:
null
,
sex
:
'男'
,
email
:
null
,
enabled
:
'false'
,
roles
:
[],
job
:
{
id
:
null
},
dept
:
{
id
:
null
},
phone
:
null
}
const
defaultForm
=
{
id
:
null
,
username
:
null
,
nickName
:
null
,
sex
:
'男'
,
email
:
null
,
enabled
:
'false'
,
roles
:
[],
job
:
{
id
:
null
},
dept
:
{
id
:
null
},
phone
:
null
}
export
default
{
export
default
{
name
:
'User'
,
name
:
'User'
,
components
:
{
Treeselect
,
crudOperation
,
rrOperation
,
udOperation
,
pagination
},
components
:
{
Treeselect
,
crudOperation
,
rrOperation
,
udOperation
,
pagination
},
...
@@ -308,10 +308,6 @@ export default {
...
@@ -308,10 +308,6 @@ export default {
}
}
})
})
},
},
beforeInit
()
{
this
.
url
=
'api/users'
return
true
},
// 新增与编辑前做的操作
// 新增与编辑前做的操作
[
CRUD
.
HOOK
.
afterToCU
](
crud
,
form
)
{
[
CRUD
.
HOOK
.
afterToCU
](
crud
,
form
)
{
this
.
getDepts
()
this
.
getDepts
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment