Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pt-tobacco-lims-web
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangweidong
pt-tobacco-lims-web
Commits
cbf2c413
Commit
cbf2c413
authored
Jun 09, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了检测管理
parent
26177749
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
22 deletions
+39
-22
login.vue
pages/login.vue
+34
-17
UserGroupEdit.vue
pages/res/user-group/UserGroupEdit.vue
+5
-5
No files found.
pages/login.vue
View file @
cbf2c413
...
@@ -3,29 +3,31 @@
...
@@ -3,29 +3,31 @@
<div
style=
"width: 50%;background: rgb(88,103,127)"
class=
"login-left"
>
<div
style=
"width: 50%;background: rgb(88,103,127)"
class=
"login-left"
>
<div
style=
"margin-top: 90px;margin-left: 30px"
>
<div
style=
"margin-top: 90px;margin-left: 30px"
>
<div
style=
"margin-left: 50px;"
>
<div
style=
"margin-left: 50px;"
>
<div
class=
"logo"
style=
"width: 50px;height: 50px;float: left;margin-right: 20px;"
>
<div
class=
"logo"
style=
"width: 50px;height: 50px;float: left;margin-right: 20px;"
>
<img
src=
'../static/images/fileIcon/timg.png'
alt=
""
style=
"width: 100%;height: 100%;border: 1px solid white;border-radius: 48px;"
>
<img
src=
"../static/images/fileIcon/timg.png"
alt=
""
style=
"width: 100%;height: 100%;border: 1px solid white;border-radius: 48px;"
>
</div>
</div>
<div
class=
"title"
>
<div
class=
"title"
>
<p
style=
"font-size: 30px;color: white;font-weight: bold;"
>
LIMS
</p>
<p
style=
"font-size: 30px;color: white;font-weight: bold;"
>
</div>
LIMS
</p>
</div>
</div>
</div>
<div
style=
"margin-left: 50px;"
>
<div
style=
"margin-left: 50px;"
>
<p
style=
"font-size: 24px;color: #ffffff;"
>
烟草实验室管理平台
</p>
<p
style=
"font-size: 24px;color: #ffffff;"
>
烟草实验室管理平台
</p>
</div>
</div>
<div
style=
"margin-top: 70px;margin-right: 50px;margin-left: 50px;color: white;background-color: red;"
>
<div
style=
"margin-top: 70px;margin-right: 50px;margin-left: 50px;color: white;background-color: red;"
>
<p
style=
"text-align: center"
/>
<p
style=
"text-align: center"
>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div
style=
"width: 50%;"
class=
"login"
>
<div
style=
"width: 50%;"
class=
"login"
>
<div
style=
"margin-left: 40px;margin-right:40px;margin-top: 50px"
>
<div
style=
"margin-left: 40px;margin-right:40px;margin-top: 50px"
>
<el-form
id=
"login-form"
ref=
"login-form"
>
<el-form
id=
"login-form"
ref=
"login-form"
>
<p
style=
"font-size: 24px;color: #40485B"
>
登录
</p>
<p
style=
"font-size: 24px;color: #40485B"
>
登录
</p>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
<el-input
v-model=
"formObj.username"
placeholder=
"用户名"
/>
<el-input
v-model=
"formObj.username"
placeholder=
"用户名"
/>
</el-form-item>
</el-form-item>
...
@@ -78,22 +80,37 @@ export default {
...
@@ -78,22 +80,37 @@ export default {
methods
:
{
methods
:
{
_rememberUser
()
{
_rememberUser
()
{
console
.
log
(
'记住密码'
)
console
.
log
(
localStorage
.
getItem
(
'username'
))
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
localStorage
.
getItem
(
'username'
)
===
null
)
{
if
(
localStorage
.
getItem
(
'username'
)
===
null
)
{
console
.
log
(
1564980847
)
this
.
formObj
.
username
=
''
this
.
formObj
.
username
=
''
this
.
formObj
.
password
=
''
this
.
formObj
.
password
=
''
this
.
checkListValue
=
''
this
.
checkListValue
=
''
}
else
{
}
else
{
// this.formObj.username = localStorage.getItem('username')
// this.formObj.username = localStorage.getItem('username')
this
.
formObj
.
username
=
JSON
.
parse
(
localStorage
.
getItem
(
'username'
))
// this.formObj.username = JSON.parse(localStorage.getItem('username'))
console
.
log
(
this
.
formObj
.
username
)
// this.formObj.password = JSON.parse(localStorage.getItem('password'))
this
.
formObj
.
password
=
JSON
.
parse
(
localStorage
.
getItem
(
'password'
))
this
.
formObj
.
password
=
localStorage
.
getItem
(
'password'
)
this
.
formObj
.
username
=
localStorage
.
getItem
(
'username'
)
console
.
log
(
typeof
localStorage
.
getItem
(
'username'
))
console
.
log
(
localStorage
.
getItem
(
'password'
))
console
.
log
(
this
.
formObj
.
password
)
this
.
formObj
.
username
=
this
.
formObj
.
username
.
replace
(
'"'
,
''
)
.
replace
(
'"'
,
''
)
console
.
log
(
this
.
formObj
.
password
)
this
.
formObj
.
password
=
this
.
formObj
.
password
.
replace
(
'"'
,
''
)
.
replace
(
'"'
,
''
)
console
.
log
(
this
.
formObj
.
password
)
console
.
log
(
this
.
formObj
.
password
)
this
.
checkListValue
=
true
}
}
this
.
checkListValue
=
true
})
})
},
},
_login
:
async
function
()
{
_login
:
async
function
()
{
console
.
log
(
'登录被调用'
)
const
data
=
this
.
formObj
const
data
=
this
.
formObj
const
result
=
await
codeRule
.
login
(
data
)
const
result
=
await
codeRule
.
login
(
data
)
console
.
log
(
result
)
console
.
log
(
result
)
...
...
pages/res/user-group/UserGroupEdit.vue
View file @
cbf2c413
...
@@ -16,13 +16,13 @@
...
@@ -16,13 +16,13 @@
:label-width=
"90"
:label-width=
"90"
inline
inline
>
>
<Form-item
label=
"组名称"
prop=
"name"
>
<Form-item
label=
"组名称"
prop=
"name"
class=
"width-48"
>
<Input
v-model=
"formObj.name"
name=
"name"
placeholder=
"请输入组名称"
/></Input>
<Input
v-model=
"formObj.name"
name=
"name"
placeholder=
"请输入组名称"
/></Input>
</Form-item>
</Form-item>
<Form-item
label=
"英文缩写"
prop=
"shortName"
>
<Form-item
label=
"英文缩写"
prop=
"shortName"
class=
"width-48"
>
<Input
v-model=
"formObj.shortName"
name=
"shortName"
placeholder=
"英文缩写"
/></Input>
<Input
v-model=
"formObj.shortName"
name=
"shortName"
placeholder=
"英文缩写"
/></Input>
</Form-item>
</Form-item>
<Form-item
label=
"科室类型"
prop=
"type"
>
<Form-item
label=
"科室类型"
prop=
"type"
class=
"width-48"
>
<el-select
v-model=
"formObj.type"
filterable
clearable
size=
"small"
style=
"width:100%"
>
<el-select
v-model=
"formObj.type"
filterable
clearable
size=
"small"
style=
"width:100%"
>
<el-option
v-for=
"item in typeList"
:key=
"item.name"
:value=
"item.name"
>
<el-option
v-for=
"item in typeList"
:key=
"item.name"
:value=
"item.name"
>
{{
item
.
name
}}
{{
item
.
name
}}
...
@@ -35,10 +35,10 @@
...
@@ -35,10 +35,10 @@
name=
"sort"
name=
"sort"
placeholder=
"请输入排序"
placeholder=
"请输入排序"
:min=
"1"
:min=
"1"
style=
"width:
100%
"
style=
"width:
275px
"
/>
/>
</Form-item>
</Form-item>
<Form-item
label=
"组描述"
prop=
"decp"
>
<Form-item
label=
"组描述"
prop=
"decp"
style=
"width: 733px;"
>
<Input
v-model=
"formObj.decp"
type=
"textarea"
name=
"decp"
placeholder=
"请输入组描述"
/></Input>
<Input
v-model=
"formObj.decp"
type=
"textarea"
name=
"decp"
placeholder=
"请输入组描述"
/></Input>
</Form-item>
</Form-item>
</Form>
</Form>
...
...
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