Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
ty_patentSys
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
hanxiao
ty_patentSys
Commits
275af101
Commit
275af101
authored
Dec 01, 2023
by
heshihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改展示问题
parent
e005397f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
110 deletions
+43
-110
src/views/company/companyDetails.vue
+0
-0
src/views/login/admin.vue
+13
-31
src/views/login/forget.vue
+18
-49
src/views/login/index.vue
+12
-30
No files found.
src/views/company/companyDetails.vue
View file @
275af101
This diff is collapsed.
Click to expand it.
src/views/login/admin.vue
View file @
275af101
...
...
@@ -29,10 +29,7 @@
@
finish=
"onFinish"
@
finishFailed=
"onFinishFailed"
>
<a-form-item
name=
"username"
:rules=
"[
{ required: true, message: '请输入用户名!' }]"
>
<a-form-item
name=
"username"
:rules=
"[
{ required: true, message: '请输入用户名!' }]">
<a-input
v-model:value=
"formState.username"
>
<template
#
prefix
>
<img
src=
"../../static/login/icon-user.png"
alt=
""
/>
...
...
@@ -40,10 +37,7 @@
</a-input>
</a-form-item>
<a-form-item
name=
"password"
:rules=
"[{ required: true, message: '请输入密码!' }]"
>
<a-form-item
name=
"password"
:rules=
"[{ required: true, message: '请输入密码!' }]"
>
<a-input-password
v-model:value=
"formState.password"
>
<
template
#
prefix
>
<img
src=
"../../static/login/icon-password.png"
alt=
""
/>
...
...
@@ -53,9 +47,7 @@
<a-form-item>
<a-form-item
name=
"remember"
>
<a-checkbox
v-model:checked=
"formState.remember"
>
记住密码
</a-checkbox
>
<a-checkbox
v-model:checked=
"formState.remember"
>
记住密码
</a-checkbox>
</a-form-item>
<!-- <a-form-item name="remember" style="float: right;">
<a-checkbox v-model:checked="formState.autologin"
...
...
@@ -64,14 +56,7 @@
</a-form-item> -->
</a-form-item>
<a-form-item>
<a-button
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"login"
>
登录
</a-button>
<a-button
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"login"
>
登录
</a-button>
</a-form-item>
<a-form-item>
<div
class=
"admin_login"
>
...
...
@@ -86,20 +71,17 @@
</div>
</div>
<footer>
<a
style=
"color: #818a9f"
href=
"http://zhongyanrenzhi.com/#/product2"
target=
"_blank"
<!-- <a style="color: #818a9f" href="http://zhongyanrenzhi.com/#/product2" target="_blank"
>产品介绍 </a
>|
<a
style=
"color: #818a9f"
target=
"_blank"
href=
"http://zhongyanrenzhi.com/#/into/1"
<a style="color: #818a9f" target="_blank" href="http://zhongyanrenzhi.com/#/into/1"
> 关于中研认知</a
><br
/>
<span>
版权所有:北京中研硕福科技有限公司
</span
>
丨
<span>
京ICP备19055798号-3
</span>
> -->
<span>
主办:太原理工技术转移有限公司
</span>
<br
/>
<span>
技术支持:北京中研硕福科技有限公司
</span>
丨
<span
>
京ICP备19055798号-3
</span>
</footer>
</div>
</template>
...
...
@@ -134,7 +116,7 @@ export default {
if
(
res
.
code
==
0
)
{
if
(
res
.
data
.
is_admin
)
{
message
.
success
(
"登录成功"
);
localStorage
.
setItem
(
"login_name"
,
this
.
formState
.
username
);
localStorage
.
setItem
(
"token"
,
res
.
data
.
token
);
this
.
$router
.
push
({
...
...
src/views/login/forget.vue
View file @
275af101
...
...
@@ -49,9 +49,7 @@
<img
src=
"../../static/login/icon-yzm.png"
alt=
""
/>
</
template
>
<
template
#
suffix
>
<span
v-show=
"!isSend"
class=
"code"
@
click=
"sendCode"
>
获取验证码
</span
>
<span
v-show=
"!isSend"
class=
"code"
@
click=
"sendCode"
>
获取验证码
</span>
<span
v-show=
"isSend"
class=
"code"
>
{{
RemainingTime
}}
秒后重新获取
...
...
@@ -59,39 +57,23 @@
</
template
>
</a-input>
</a-form-item>
<a-form-item
name=
"password"
>
<!-- :rules="[{ required: true, message: '请输入密码!' }]" -->
<a-input-password
v-model:value=
"formState.password"
placeholder=
"请输入新密码"
>
<a-form-item
name=
"password"
>
<!-- :rules="[{ required: true, message: '请输入密码!' }]" -->
<a-input-password
v-model:value=
"formState.password"
placeholder=
"请输入新密码"
>
<
template
#
prefix
>
<img
src=
"../../static/login/icon-password.png"
alt=
""
/>
</
template
>
</a-input-password>
</a-form-item>
<a-form-item
name=
"repassword"
>
<a-input-password
v-model:value=
"formState.repassword"
placeholder=
"请再次输入新密码"
>
<a-input-password
v-model:value=
"formState.repassword"
placeholder=
"请再次输入新密码"
>
<
template
#
prefix
>
<img
src=
"../../static/login/icon-password.png"
alt=
""
/>
</
template
>
</a-input-password>
</a-form-item>
<a-form-item>
<a-button
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"reset"
>
重置密码
</a-button>
<a-button
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"reset"
>
重置密码
</a-button>
</a-form-item>
</a-form>
<div
v-else
class=
"success_reset"
>
...
...
@@ -99,32 +81,23 @@
<br
/><br
/>
<p>
您已经成功设置密码,请使用新密码登录
</p>
<br
/><br
/>
<a-button
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"tologin"
>
马上登录
</a-button>
<a-button
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"tologin"
>
马上登录
</a-button>
</div>
</div>
</div>
<footer>
<a
style=
"color: #818a9f"
href=
"http://zhongyanrenzhi.com/#/product2"
target=
"_blank"
<!-- <a style="color: #818a9f" href="http://zhongyanrenzhi.com/#/product2" target="_blank"
>产品介绍 </a
>|
<a
style=
"color: #818a9f"
target=
"_blank"
href=
"http://zhongyanrenzhi.com/#/into/1"
<a style="color: #818a9f" target="_blank" href="http://zhongyanrenzhi.com/#/into/1"
> 关于中研认知</a
><br
/>
<span>
版权所有:北京中研硕福科技有限公司
</span
>
丨
<span>
京ICP备19055798号-3
</span>
> -->
<span>
主办:太原理工技术转移有限公司
</span>
<br
/>
<span>
技术支持:北京中研硕福科技有限公司
</span>
丨
<span
>
京ICP备19055798号-3
</span>
</footer>
</div>
</template>
...
...
@@ -150,8 +123,7 @@ export default {
phone
:
[
{
required
:
true
,
message
:
"请输入手机号!"
},
{
pattern
:
/^
(
13
[
0-9
]
|14
[
01456879
]
|15
[
0-35-9
]
|16
[
2567
]
|17
[
0-8
]
|18
[
0-9
]
|19
[
0-35-9
])\d{8}
$/
,
pattern
:
/^
(
13
[
0-9
]
|14
[
01456879
]
|15
[
0-35-9
]
|16
[
2567
]
|17
[
0-8
]
|18
[
0-9
]
|19
[
0-35-9
])\d{8}
$/
,
message
:
"手机号格式不正确!"
,
validateTrigger
:
"onBlur"
,
},
...
...
@@ -193,10 +165,7 @@ export default {
this
.
RemainingTime
=
TIME_COUNT
;
this
.
isSend
=
true
;
this
.
timer
=
setInterval
(()
=>
{
if
(
this
.
RemainingTime
>
0
&&
this
.
RemainingTime
<=
TIME_COUNT
)
{
if
(
this
.
RemainingTime
>
0
&&
this
.
RemainingTime
<=
TIME_COUNT
)
{
this
.
RemainingTime
--
;
}
else
{
this
.
isSend
=
false
;
...
...
src/views/login/index.vue
View file @
275af101
...
...
@@ -23,10 +23,7 @@
<span>
账户登录
</span>
</div>
<a-form
:model=
"formState"
name=
"normal_login"
class=
"login-form"
>
<a-form-item
name=
"username"
:rules=
"[
{ required: true, message: '请输入用户名!' }]"
>
<a-form-item
name=
"username"
:rules=
"[
{ required: true, message: '请输入用户名!' }]">
<a-input
v-model:value=
"formState.username"
>
<template
#
prefix
>
<img
src=
"../../static/login/icon-user.png"
alt=
""
/>
...
...
@@ -34,10 +31,7 @@
</a-input>
</a-form-item>
<a-form-item
name=
"password"
:rules=
"[{ required: true, message: '请输入密码!' }]"
>
<a-form-item
name=
"password"
:rules=
"[{ required: true, message: '请输入密码!' }]"
>
<a-input-password
v-model:value=
"formState.password"
>
<
template
#
prefix
>
<img
src=
"../../static/login/icon-password.png"
alt=
""
/>
...
...
@@ -47,20 +41,11 @@
<a-form-item>
<a-form-item
name=
"remember"
>
<a-checkbox
v-model:checked=
"formState.remember"
>
记住密码
</a-checkbox
>
<a-checkbox
v-model:checked=
"formState.remember"
>
记住密码
</a-checkbox>
</a-form-item>
</a-form-item>
<a-form-item>
<a-button
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"login"
>
登录
</a-button>
<a-button
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"login"
>
登录
</a-button>
</a-form-item>
<a-form-item>
<div
class=
"admin_login"
style=
"float: left"
>
...
...
@@ -76,20 +61,17 @@
</div>
</div>
<footer>
<a
style=
"color: #818a9f"
href=
"http://zhongyanrenzhi.com/#/product2"
target=
"_blank"
<!-- <a style="color: #818a9f" href="http://zhongyanrenzhi.com/#/product2" target="_blank"
>产品介绍 </a
>|
<a
style=
"color: #818a9f"
target=
"_blank"
href=
"http://zhongyanrenzhi.com/#/into/1"
<a style="color: #818a9f" target="_blank" href="http://zhongyanrenzhi.com/#/into/1"
> 关于中研认知</a
><br
/>
<span>
版权所有:北京中研硕福科技有限公司
</span
>
丨
<span>
京ICP备19055798号-3
</span>
> -->
<span>
主办:太原理工技术转移有限公司
</span>
<br
/>
<span>
技术支持:北京中研硕福科技有限公司
</span>
丨
<span
>
京ICP备19055798号-3
</span>
</footer>
</div>
</template>
...
...
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