Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
work-order-web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
张圳龙
work-order-web
Commits
af83992b
Unverified
Commit
af83992b
authored
Sep 24, 2020
by
lanyulei
Committed by
GitHub
Sep 24, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #30 from lanyulei/dev
可配置默认登陆方式。
parents
13610dbf
818d77b0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
25 deletions
+18
-25
index.vue
src/views/login/index.vue
+4
-4
create.vue
src/views/process/list/create.vue
+1
-17
index.vue
src/views/system/settings/index.vue
+13
-4
No files found.
src/views/login/index.vue
View file @
af83992b
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
<img
style=
"height: 48px;width: 100%;border: 1px solid rgba(0,0,0, 0.1);border-radius:5px;"
:src=
"codeUrl"
@
click=
"getCode"
>
<img
style=
"height: 48px;width: 100%;border: 1px solid rgba(0,0,0, 0.1);border-radius:5px;"
:src=
"codeUrl"
@
click=
"getCode"
>
</div>
</div>
<div
prop=
"code"
style=
"width: 100%;float: left;margin-bottom: 13px"
>
<div
prop=
"code"
style=
"width: 100%;float: left;margin-bottom: 13px"
>
<el-checkbox
v-model=
"
loginTypeStatus
"
>
LDAP登陆
</el-checkbox>
<el-checkbox
v-model=
"
sysInfo.is_ldap
"
>
LDAP登陆
</el-checkbox>
</div>
</div>
<el-button
:loading=
"loading"
type=
"primary"
style=
"width:100%;padding:12px 20px;margin-bottom:30px;"
@
click
.
native
.
prevent=
"handleLogin"
>
<el-button
:loading=
"loading"
type=
"primary"
style=
"width:100%;padding:12px 20px;margin-bottom:30px;"
@
click
.
native
.
prevent=
"handleLogin"
>
<span
v-if=
"!loading"
>
登 录
</span>
<span
v-if=
"!loading"
>
登 录
</span>
...
@@ -113,7 +113,6 @@ export default {
...
@@ -113,7 +113,6 @@ export default {
name
:
'Login'
,
name
:
'Login'
,
data
()
{
data
()
{
return
{
return
{
loginTypeStatus
:
true
,
codeUrl
:
''
,
codeUrl
:
''
,
cookiePassword
:
''
,
cookiePassword
:
''
,
loginForm
:
{
loginForm
:
{
...
@@ -141,7 +140,8 @@ export default {
...
@@ -141,7 +140,8 @@ export default {
currentTime
:
null
,
currentTime
:
null
,
sysInfo
:
{
sysInfo
:
{
logo
:
''
,
logo
:
''
,
name
:
''
name
:
''
,
is_ldap
:
false
}
}
}
}
},
},
...
@@ -220,7 +220,7 @@ export default {
...
@@ -220,7 +220,7 @@ export default {
handleLogin
()
{
handleLogin
()
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
loginTypeStatus
)
{
if
(
this
.
sysInfo
.
is_ldap
)
{
this
.
loginForm
.
loginType
=
1
this
.
loginForm
.
loginType
=
1
}
else
{
}
else
{
this
.
loginForm
.
loginType
=
0
this
.
loginForm
.
loginType
=
0
...
...
src/views/process/list/create.vue
View file @
af83992b
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-card
class=
"box-card"
>
<el-card
class=
"box-card"
>
<div
class=
"text item"
>
<el-steps
:active=
"active"
finish-status=
"success"
>
<template
v-for=
"(item, index) in processStructureValue.nodes"
>
<el-step
v-if=
"item.isHideNode === false ||
item.isHideNode === undefined ||
item.isHideNode == null"
:key=
"index"
:title=
"item.label"
/>
</
template
>
</el-steps>
</div>
</el-card>
<el-card
class=
"box-card"
style=
"margin-top: 15px"
>
<div
slot=
"header"
class=
"clearfix"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
公共信息
</span>
<span>
公共信息
</span>
</div>
</div>
...
@@ -36,7 +20,7 @@
...
@@ -36,7 +20,7 @@
</div>
</div>
</el-card>
</el-card>
<el-card
class=
"box-card"
style=
"margin-top: 1
5
px"
>
<el-card
class=
"box-card"
style=
"margin-top: 1
0
px"
>
<div
slot=
"header"
class=
"clearfix"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
表单信息
</span>
<span>
表单信息
</span>
</div>
</div>
...
...
src/views/system/settings/index.vue
View file @
af83992b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<span>
配置信息
</span>
<span>
配置信息
</span>
</div>
</div>
<div
class=
"text item"
>
<div
class=
"text item"
>
<el-form
ref=
"ruleForm"
:model=
"ruleForm"
:rules=
"rules"
label-width=
"1
0
0px"
>
<el-form
ref=
"ruleForm"
:model=
"ruleForm"
:rules=
"rules"
label-width=
"1
2
0px"
>
<el-form-item
label=
"系统名称:"
prop=
"name"
>
<el-form-item
label=
"系统名称:"
prop=
"name"
>
<el-input
v-model=
"ruleForm.name"
/>
<el-input
v-model=
"ruleForm.name"
/>
</el-form-item>
</el-form-item>
...
@@ -22,6 +22,10 @@
...
@@ -22,6 +22,10 @@
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
/>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"默认LDAP登陆:"
>
<el-radio
v-model=
"ruleForm.is_ldap"
:label=
"true"
>
是
</el-radio>
<el-radio
v-model=
"ruleForm.is_ldap"
:label=
"false"
>
否
</el-radio>
</el-form-item>
<el-form-item
style=
"margin-bottom: 0"
>
<el-form-item
style=
"margin-bottom: 0"
>
<el-button
v-permisaction=
"['system:settings:index:config']"
type=
"primary"
@
click=
"submitForm('ruleForm', 1)"
>
确定
</el-button>
<el-button
v-permisaction=
"['system:settings:index:config']"
type=
"primary"
@
click=
"submitForm('ruleForm', 1)"
>
确定
</el-button>
</el-form-item>
</el-form-item>
...
@@ -85,7 +89,8 @@ export default {
...
@@ -85,7 +89,8 @@ export default {
editable
:
[],
editable
:
[],
ruleForm
:
{
ruleForm
:
{
name
:
''
,
name
:
''
,
logo
:
''
logo
:
''
,
is_ldap
:
false
},
},
rules
:
{
rules
:
{
name
:
[
name
:
[
...
@@ -99,7 +104,7 @@ export default {
...
@@ -99,7 +104,7 @@ export default {
tableData
:
[]
tableData
:
[]
}
}
},
},
moun
ted
()
{
crea
ted
()
{
this
.
getSettingsInfo
()
this
.
getSettingsInfo
()
},
},
methods
:
{
methods
:
{
...
@@ -110,9 +115,13 @@ export default {
...
@@ -110,9 +115,13 @@ export default {
if
(
v
.
content
===
undefined
||
v
.
content
===
null
)
{
if
(
v
.
content
===
undefined
||
v
.
content
===
null
)
{
this
.
ruleForm
=
{
this
.
ruleForm
=
{
name
:
''
,
name
:
''
,
logo
:
''
logo
:
''
,
is_ldap
:
false
}
}
}
else
{
}
else
{
if
(
v
.
content
.
is_ldap
===
undefined
||
v
.
content
.
is_ldap
===
null
)
{
v
.
content
.
is_ldap
=
false
}
this
.
ruleForm
=
v
.
content
this
.
ruleForm
=
v
.
content
}
}
}
else
if
(
v
.
classify
===
2
)
{
}
else
if
(
v
.
classify
===
2
)
{
...
...
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