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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
233 deletions
+74
-233
src/views/company/companyDetails.vue
+33
-125
src/views/login/admin.vue
+12
-30
src/views/login/forget.vue
+17
-48
src/views/login/index.vue
+12
-30
No files found.
src/views/company/companyDetails.vue
View file @
275af101
<
template
>
<
template
>
<div
class=
"details"
>
<div
class=
"details"
>
<a-breadcrumb
class=
"nav_bread"
>
<a-breadcrumb
class=
"nav_bread"
>
<a-breadcrumb-item
<a-breadcrumb-item><router-link
:to=
"'/home'"
>
首页
</router-link></a-breadcrumb-item>
><router-link
:to=
"'/home'"
>
首页
</router-link></a-breadcrumb-item
<a-breadcrumb-item><router-link
:to=
"'/company'"
>
企业
</router-link></a-breadcrumb-item>
>
<a-breadcrumb-item
><router-link
:to=
"'/company'"
>
企业
</router-link></a-breadcrumb-item
>
<a-breadcrumb-item>
公司详情
</a-breadcrumb-item>
<a-breadcrumb-item>
公司详情
</a-breadcrumb-item>
</a-breadcrumb>
</a-breadcrumb>
<div
class=
"back_btn"
@
click=
"backbtn"
>
返回
</div>
<div
class=
"back_btn"
@
click=
"backbtn"
>
返回
</div>
<div
class=
"details_title"
>
<div
class=
"details_title"
>
<div
class=
"company_num"
>
<div
class=
"company_num"
>
<span>
{{
baseinfo
.
company_name
}}
</span>
<span>
{{
baseinfo
.
company_name
}}
</span>
<a-tag
color=
"#6096E6"
v-if=
"baseinfo.quoted_company == '1'"
>
{{
<a-tag
color=
"#6096E6"
v-if=
"baseinfo.quoted_company == '1'"
>
{{
"上市企业"
}}
</a-tag>
"上市企业"
<a-tag
color=
"#6096E6"
v-if=
"baseinfo.high_new == '1'"
>
{{
"高新技术企业"
}}
</a-tag>
}}
</a-tag>
<a-tag
color=
"#6096E6"
v-if=
"baseinfo.zjtg_sjxjr == '1'"
>
{{
"专精特新小巨人"
}}
</a-tag>
<a-tag
color=
"#6096E6"
v-if=
"baseinfo.high_new == '1'"
>
{{
<a-tag
color=
"#6096E6"
v-if=
"baseinfo.zjtg == '1'"
>
{{
"专精特新中小企业"
}}
</a-tag>
"高新技术企业"
}}
</a-tag>
<a-tag
color=
"#6096E6"
v-if=
"baseinfo.zjtg_sjxjr == '1'"
>
{{
"专精特新小巨人"
}}
</a-tag>
<a-tag
color=
"#6096E6"
v-if=
"baseinfo.zjtg == '1'"
>
{{
"专精特新中小企业"
}}
</a-tag>
</div>
</div>
<div
class=
"company_basic"
>
<div
class=
"company_basic"
>
<div>
注册地址:
{{
baseinfo
.
address
}}
</div>
<div>
注册地址:
{{
baseinfo
.
address
}}
</div>
...
@@ -34,9 +22,7 @@
...
@@ -34,9 +22,7 @@
</div>
</div>
</div>
</div>
<div
class=
"btn_group"
>
<div
class=
"btn_group"
>
<span
style=
"cursor: pointer"
@
click=
"openModal"
<span
style=
"cursor: pointer"
@
click=
"openModal"
><img
src=
"@/static/patent/icon-dc.png"
alt=
""
/>
导出
</span>
><img
src=
"@/static/patent/icon-dc.png"
alt=
""
/>
导出
</span
>
<span
style=
"cursor: pointer"
@
click=
"followFun"
v-if=
"!baseinfo.follow"
<span
style=
"cursor: pointer"
@
click=
"followFun"
v-if=
"!baseinfo.follow"
><img
src=
"@/static/patent/icon-gz.png"
alt=
""
/>
关注
</span
><img
src=
"@/static/patent/icon-gz.png"
alt=
""
/>
关注
</span
>
>
...
@@ -56,16 +42,10 @@
...
@@ -56,16 +42,10 @@
></overview>
></overview>
</a-tab-pane>
</a-tab-pane>
<a-tab-pane
key=
"技术合作"
tab=
"技术合作"
>
<a-tab-pane
key=
"技术合作"
tab=
"技术合作"
>
<cooperation
<cooperation
:jointData=
"jointData"
:patentPurchaseData=
"patentPurchaseData"
></cooperation>
:jointData=
"jointData"
:patentPurchaseData=
"patentPurchaseData"
></cooperation>
</a-tab-pane>
</a-tab-pane>
<a-tab-pane
key=
"科创能力评价"
tab=
"科创能力评价"
>
<a-tab-pane
key=
"科创能力评价"
tab=
"科创能力评价"
>
<technology
<technology
:technologyData=
"technologyData"
:company_name=
"baseinfo.company_name"
></technology>
:technologyData=
"technologyData"
:company_name=
"baseinfo.company_name"
></technology>
</a-tab-pane>
</a-tab-pane>
</a-tabs>
</a-tabs>
<a-modal
<a-modal
...
@@ -86,66 +66,27 @@
...
@@ -86,66 +66,27 @@
{ type: 'email', message: '邮箱不合法' },
{ type: 'email', message: '邮箱不合法' },
]"
]"
>
>
<a-input
<a-input
v-model:value=
"formState.email"
placeholder=
"请输入邮箱地址"
/>
v-model:value=
"formState.email"
placeholder=
"请输入邮箱地址"
/>
</a-form-item>
</a-form-item>
</a-form>
</a-form>
</a-modal>
</a-modal>
<div
style=
"width: 70%; visibility: hidden; overflow: hidden; height: 20px"
>
<div
style=
"width: 70%; visibility: hidden; overflow: hidden; height: 20px"
>
<!--
<div
style=
"width: 70%"
>
-->
<!--
<div
style=
"width: 70%"
>
-->
<EchartsCon
<EchartsCon
:id=
"'applyTrend1'"
:option=
"option1"
:style=
"'height:300px'"
></EchartsCon>
:id=
"'applyTrend1'"
<EchartsCon
:id=
"'patentAuthorize1'"
:option=
"option2"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
:option=
"option1"
<EchartsCon
:id=
"'echartsone1'"
:option=
"option3"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
:style=
"'height:300px'"
<EchartsCon
:id=
"'echartstwo1'"
:option=
"option4"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
></EchartsCon>
<EchartsCon
:id=
"'echartsthree1'"
:option=
"option5"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
<EchartsCon
:id=
"'patentAuthorize1'"
:option=
"option2"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
<EchartsCon
:id=
"'echartsone1'"
:option=
"option3"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
<EchartsCon
:id=
"'echartstwo1'"
:option=
"option4"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
<EchartsCon
:id=
"'echartsthree1'"
:option=
"option5"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
<EchartsCloud
<EchartsCloud
:id=
"'TechnicalField1'"
:id=
"'TechnicalField1'"
:dataArr=
"techArr1"
:dataArr=
"techArr1"
:style=
"'height:300px;width:100%;'"
:style=
"'height:300px;width:100%;'"
v-if=
"techArr1.length > 0"
v-if=
"techArr1.length > 0"
></EchartsCloud>
></EchartsCloud>
<EchartsCon
<EchartsCon
:option=
"option7"
:id=
"'apply'"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
:option=
"option7"
<EchartsCon
:option=
"option8"
:id=
"'purchase'"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
:id=
"'apply'"
<EchartsCon
:option=
"option9"
:id=
"'radar'"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
:style=
"'height:300px;width:100%;'"
<EchartsCon
:option=
"option10"
:id=
"'yibiao'"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
></EchartsCon>
<EchartsCon
:option=
"option8"
:id=
"'purchase'"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
<EchartsCon
:option=
"option9"
:id=
"'radar'"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
<EchartsCon
:option=
"option10"
:id=
"'yibiao'"
:style=
"'height:300px;width:100%;'"
></EchartsCon>
</div>
</div>
</div>
</div>
<Loading
v-if=
"loading"
></Loading>
<Loading
v-if=
"loading"
></Loading>
...
@@ -323,8 +264,7 @@ export default {
...
@@ -323,8 +264,7 @@ export default {
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
deveSustain
=
res
.
data
;
this
.
deveSustain
=
res
.
data
;
this
.
deveSustain
.
most_patent_authorization_rate
=
this
.
deveSustain
.
most_patent_authorization_rate
=
(
this
.
deveSustain
.
most_patent_authorization_rate
*
100
).
toFixed
(
2
)
+
(
this
.
deveSustain
.
most_patent_authorization_rate
*
100
).
toFixed
(
2
)
+
"%"
;
"%"
;
this
.
getTrend
();
this
.
getTrend
();
this
.
getAuthorize
();
this
.
getAuthorize
();
}
else
{
}
else
{
...
@@ -336,11 +276,9 @@ export default {
...
@@ -336,11 +276,9 @@ export default {
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
structureData
=
res
.
data
;
this
.
structureData
=
res
.
data
;
//专利结构占比的发明专利占比
//专利结构占比的发明专利占比
this
.
structureData
.
invent_patent_percent
=
this
.
structureData
.
invent_patent_percent
=
(
this
.
structureData
.
invent_patent_percent
*
100
).
toFixed
(
2
)
+
"%"
;
(
this
.
structureData
.
invent_patent_percent
*
100
).
toFixed
(
2
)
+
"%"
;
//专利结构占比的有效专利占比
//专利结构占比的有效专利占比
this
.
structureData
.
valid_patent_percent
=
this
.
structureData
.
valid_patent_percent
=
(
this
.
structureData
.
valid_patent_percent
*
100
).
toFixed
(
2
)
+
"%"
;
(
this
.
structureData
.
valid_patent_percent
*
100
).
toFixed
(
2
)
+
"%"
;
this
.
getPatentStructure
();
this
.
getPatentStructure
();
}
else
{
}
else
{
message
.
error
(
res
.
msg
);
message
.
error
(
res
.
msg
);
...
@@ -351,10 +289,7 @@ export default {
...
@@ -351,10 +289,7 @@ export default {
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
jointData
=
res
.
data
;
this
.
jointData
=
res
.
data
;
this
.
max_list_apply
=
this
.
jointData
.
max_list
;
this
.
max_list_apply
=
this
.
jointData
.
max_list
;
this
.
max_value_apply
=
this
.
max_value_apply
=
this
.
jointData
.
max_list
.
length
>
0
?
this
.
jointData
.
max_list
[
0
].
max_value
:
0
;
this
.
jointData
.
max_list
.
length
>
0
?
this
.
jointData
.
max_list
[
0
].
max_value
:
0
;
this
.
getOptions1
();
this
.
getOptions1
();
}
else
{
}
else
{
message
.
error
(
res
.
msg
);
message
.
error
(
res
.
msg
);
...
@@ -365,9 +300,7 @@ export default {
...
@@ -365,9 +300,7 @@ export default {
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
patentPurchaseData
=
res
.
data
;
this
.
patentPurchaseData
=
res
.
data
;
this
.
max_value_purchase
=
this
.
max_value_purchase
=
this
.
patentPurchaseData
.
max_list
.
length
>
0
this
.
patentPurchaseData
.
max_list
.
length
>
0
?
this
.
patentPurchaseData
.
max_list
[
0
].
max_value
:
0
;
?
this
.
patentPurchaseData
.
max_list
[
0
].
max_value
:
0
;
this
.
getOptions2
();
this
.
getOptions2
();
}
else
{
}
else
{
message
.
error
(
res
.
msg
);
message
.
error
(
res
.
msg
);
...
@@ -642,9 +575,7 @@ export default {
...
@@ -642,9 +575,7 @@ export default {
this
.
deveSustain
.
old_patent_application
.
forEach
((
item
)
=>
{
this
.
deveSustain
.
old_patent_application
.
forEach
((
item
)
=>
{
ydata2
.
push
(
item
[
1
]);
ydata2
.
push
(
item
[
1
]);
});
});
ydata3
=
ydata1
.
map
((
elem
,
index
)
=>
ydata3
=
ydata1
.
map
((
elem
,
index
)
=>
((
elem
/
ydata2
[
index
])
*
100
).
toFixed
(
2
));
((
elem
/
ydata2
[
index
])
*
100
).
toFixed
(
2
)
);
this
.
option2
=
{
this
.
option2
=
{
//下面就是上图的配置项,关键部分有注释
//下面就是上图的配置项,关键部分有注释
tooltip
:
{
tooltip
:
{
...
@@ -656,21 +587,10 @@ export default {
...
@@ -656,21 +587,10 @@ export default {
var
html
=
params
[
0
].
name
+
"<br>"
;
var
html
=
params
[
0
].
name
+
"<br>"
;
// params[i].marker:对应数据的圆点样式
// params[i].marker:对应数据的圆点样式
for
(
var
i
=
0
;
i
<
params
.
length
-
1
;
i
++
)
{
for
(
var
i
=
0
;
i
<
params
.
length
-
1
;
i
++
)
{
html
+=
html
+=
params
[
i
].
marker
+
params
[
i
].
seriesName
+
":"
+
params
[
i
].
value
+
"<br>"
;
params
[
i
].
marker
+
params
[
i
].
seriesName
+
":"
+
params
[
i
].
value
+
"<br>"
;
}
}
//最后一个学生占比数据 添加%
//最后一个学生占比数据 添加%
html
+=
html
+=
params
[
i
].
marker
+
params
[
i
].
seriesName
+
":"
+
params
[
i
].
value
+
"%"
+
"<br>"
;
params
[
i
].
marker
+
params
[
i
].
seriesName
+
":"
+
params
[
i
].
value
+
"%"
+
"<br>"
;
return
html
;
return
html
;
},
},
},
},
...
@@ -904,10 +824,7 @@ export default {
...
@@ -904,10 +824,7 @@ export default {
symbolSize
:
40
,
symbolSize
:
40
,
category
:
1
,
category
:
1
,
value
:
item
.
value
,
value
:
item
.
value
,
x
:
x
:
index
%
2
==
1
?
300
*
Math
.
ceil
(
index
/
2
)
:
-
300
*
Math
.
ceil
(
index
/
2
),
index
%
2
==
1
?
300
*
Math
.
ceil
(
index
/
2
)
:
-
300
*
Math
.
ceil
(
index
/
2
),
y
:
80
*
(
10
-
index
),
y
:
80
*
(
10
-
index
),
});
});
links
.
push
({
links
.
push
({
...
@@ -1136,9 +1053,7 @@ export default {
...
@@ -1136,9 +1053,7 @@ export default {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// 加setTimeout是为了让echarts渲染完成后生成图片
// 加setTimeout是为了让echarts渲染完成后生成图片
JSZipUtils
.
getBinaryContent
(
JSZipUtils
.
getBinaryContent
(
"company.docx"
,
function
(
error
,
content
)
{
"company.docx"
,
function
(
error
,
content
)
{
// 抛出异常
// 抛出异常
if
(
error
)
{
if
(
error
)
{
throw
error
;
throw
error
;
...
@@ -1157,7 +1072,7 @@ export default {
...
@@ -1157,7 +1072,7 @@ export default {
if
(
tagValue
.
size
&&
tagValue
.
data
)
{
if
(
tagValue
.
size
&&
tagValue
.
data
)
{
return
tagValue
.
size
;
return
tagValue
.
size
;
}
}
return
[
600
,
20
0
];
return
[
600
,
15
0
];
};
};
// 创建一个JSZip实例,内容为模板的内容
// 创建一个JSZip实例,内容为模板的内容
const
zip
=
new
PizZip
(
content
);
const
zip
=
new
PizZip
(
content
);
...
@@ -1260,20 +1175,13 @@ export default {
...
@@ -1260,20 +1175,13 @@ export default {
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let
out
=
doc
.
getZip
().
generate
({
let
out
=
doc
.
getZip
().
generate
({
type
:
"blob"
,
type
:
"blob"
,
mimeType
:
mimeType
:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
,
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
,
});
});
//formData文件流
//formData文件流
that
.
blobToBase64
(
that
.
blobToBase64
(
out
,
that
.
formState
.
email
,
that
.
baseinfo
.
company_name
,
that
.
id
);
out
,
that
.
formState
.
email
,
that
.
baseinfo
.
company_name
,
that
.
id
);
// 将目标文件对象保存为目标类型的文件,并命名
// 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, `企业科创能力报告.docx`);
// saveAs(out, `企业科创能力报告.docx`);
}
});
);
},
1000
);
},
1000
);
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
...
...
src/views/login/admin.vue
View file @
275af101
...
@@ -29,10 +29,7 @@
...
@@ -29,10 +29,7 @@
@
finish=
"onFinish"
@
finish=
"onFinish"
@
finishFailed=
"onFinishFailed"
@
finishFailed=
"onFinishFailed"
>
>
<a-form-item
<a-form-item
name=
"username"
:rules=
"[
{ required: true, message: '请输入用户名!' }]">
name=
"username"
:rules=
"[
{ required: true, message: '请输入用户名!' }]"
>
<a-input
v-model:value=
"formState.username"
>
<a-input
v-model:value=
"formState.username"
>
<template
#
prefix
>
<template
#
prefix
>
<img
src=
"../../static/login/icon-user.png"
alt=
""
/>
<img
src=
"../../static/login/icon-user.png"
alt=
""
/>
...
@@ -40,10 +37,7 @@
...
@@ -40,10 +37,7 @@
</a-input>
</a-input>
</a-form-item>
</a-form-item>
<a-form-item
<a-form-item
name=
"password"
:rules=
"[{ required: true, message: '请输入密码!' }]"
>
name=
"password"
:rules=
"[{ required: true, message: '请输入密码!' }]"
>
<a-input-password
v-model:value=
"formState.password"
>
<a-input-password
v-model:value=
"formState.password"
>
<
template
#
prefix
>
<
template
#
prefix
>
<img
src=
"../../static/login/icon-password.png"
alt=
""
/>
<img
src=
"../../static/login/icon-password.png"
alt=
""
/>
...
@@ -53,9 +47,7 @@
...
@@ -53,9 +47,7 @@
<a-form-item>
<a-form-item>
<a-form-item
name=
"remember"
>
<a-form-item
name=
"remember"
>
<a-checkbox
v-model:checked=
"formState.remember"
<a-checkbox
v-model:checked=
"formState.remember"
>
记住密码
</a-checkbox>
>
记住密码
</a-checkbox
>
</a-form-item>
</a-form-item>
<!-- <a-form-item name="remember" style="float: right;">
<!-- <a-form-item name="remember" style="float: right;">
<a-checkbox v-model:checked="formState.autologin"
<a-checkbox v-model:checked="formState.autologin"
...
@@ -64,14 +56,7 @@
...
@@ -64,14 +56,7 @@
</a-form-item> -->
</a-form-item> -->
</a-form-item>
</a-form-item>
<a-form-item>
<a-form-item>
<a-button
<a-button
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"login"
>
登录
</a-button>
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"login"
>
登录
</a-button>
</a-form-item>
</a-form-item>
<a-form-item>
<a-form-item>
<div
class=
"admin_login"
>
<div
class=
"admin_login"
>
...
@@ -86,20 +71,17 @@
...
@@ -86,20 +71,17 @@
</div>
</div>
</div>
</div>
<footer>
<footer>
<a
<!-- <a style="color: #818a9f" href="http://zhongyanrenzhi.com/#/product2" target="_blank"
style=
"color: #818a9f"
href=
"http://zhongyanrenzhi.com/#/product2"
target=
"_blank"
>产品介绍 </a
>产品介绍 </a
>|
>|
<a
<a style="color: #818a9f" target="_blank" href="http://zhongyanrenzhi.com/#/into/1"
style=
"color: #818a9f"
target=
"_blank"
href=
"http://zhongyanrenzhi.com/#/into/1"
> 关于中研认知</a
> 关于中研认知</a
><br
/>
> -->
<span>
版权所有:北京中研硕福科技有限公司
</span
<span>
主办:太原理工技术转移有限公司
</span>
>
丨
<span>
京ICP备19055798号-3
</span>
<br
/>
<span>
技术支持:北京中研硕福科技有限公司
</span>
丨
<span
>
京ICP备19055798号-3
</span>
</footer>
</footer>
</div>
</div>
</template>
</template>
...
...
src/views/login/forget.vue
View file @
275af101
...
@@ -49,9 +49,7 @@
...
@@ -49,9 +49,7 @@
<img
src=
"../../static/login/icon-yzm.png"
alt=
""
/>
<img
src=
"../../static/login/icon-yzm.png"
alt=
""
/>
</
template
>
</
template
>
<
template
#
suffix
>
<
template
#
suffix
>
<span
v-show=
"!isSend"
class=
"code"
@
click=
"sendCode"
<span
v-show=
"!isSend"
class=
"code"
@
click=
"sendCode"
>
获取验证码
</span>
>
获取验证码
</span
>
<span
v-show=
"isSend"
class=
"code"
>
<span
v-show=
"isSend"
class=
"code"
>
{{
RemainingTime
}}
{{
RemainingTime
}}
秒后重新获取
秒后重新获取
...
@@ -59,39 +57,23 @@
...
@@ -59,39 +57,23 @@
</
template
>
</
template
>
</a-input>
</a-input>
</a-form-item>
</a-form-item>
<a-form-item
<a-form-item
name=
"password"
>
name=
"password"
>
<!-- :rules="[{ required: true, message: '请输入密码!' }]" -->
<!-- :rules="[{ required: true, message: '请输入密码!' }]" -->
<a-input-password
<a-input-password
v-model:value=
"formState.password"
placeholder=
"请输入新密码"
>
v-model:value=
"formState.password"
placeholder=
"请输入新密码"
>
<
template
#
prefix
>
<
template
#
prefix
>
<img
src=
"../../static/login/icon-password.png"
alt=
""
/>
<img
src=
"../../static/login/icon-password.png"
alt=
""
/>
</
template
>
</
template
>
</a-input-password>
</a-input-password>
</a-form-item>
</a-form-item>
<a-form-item
name=
"repassword"
>
<a-form-item
name=
"repassword"
>
<a-input-password
<a-input-password
v-model:value=
"formState.repassword"
placeholder=
"请再次输入新密码"
>
v-model:value=
"formState.repassword"
placeholder=
"请再次输入新密码"
>
<
template
#
prefix
>
<
template
#
prefix
>
<img
src=
"../../static/login/icon-password.png"
alt=
""
/>
<img
src=
"../../static/login/icon-password.png"
alt=
""
/>
</
template
>
</
template
>
</a-input-password>
</a-input-password>
</a-form-item>
</a-form-item>
<a-form-item>
<a-form-item>
<a-button
<a-button
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"reset"
>
重置密码
</a-button>
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"reset"
>
重置密码
</a-button>
</a-form-item>
</a-form-item>
</a-form>
</a-form>
<div
v-else
class=
"success_reset"
>
<div
v-else
class=
"success_reset"
>
...
@@ -99,32 +81,23 @@
...
@@ -99,32 +81,23 @@
<br
/><br
/>
<br
/><br
/>
<p>
您已经成功设置密码,请使用新密码登录
</p>
<p>
您已经成功设置密码,请使用新密码登录
</p>
<br
/><br
/>
<br
/><br
/>
<a-button
<a-button
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"tologin"
>
马上登录
</a-button>
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"tologin"
>
马上登录
</a-button>
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
<footer>
<a
<!-- <a style="color: #818a9f" href="http://zhongyanrenzhi.com/#/product2" target="_blank"
style=
"color: #818a9f"
href=
"http://zhongyanrenzhi.com/#/product2"
target=
"_blank"
>产品介绍 </a
>产品介绍 </a
>|
>|
<a
<a style="color: #818a9f" target="_blank" href="http://zhongyanrenzhi.com/#/into/1"
style=
"color: #818a9f"
target=
"_blank"
href=
"http://zhongyanrenzhi.com/#/into/1"
> 关于中研认知</a
> 关于中研认知</a
><br
/>
> -->
<span>
版权所有:北京中研硕福科技有限公司
</span
<span>
主办:太原理工技术转移有限公司
</span>
>
丨
<span>
京ICP备19055798号-3
</span>
<br
/>
<span>
技术支持:北京中研硕福科技有限公司
</span>
丨
<span
>
京ICP备19055798号-3
</span>
</footer>
</footer>
</div>
</div>
</template>
</template>
...
@@ -150,8 +123,7 @@ export default {
...
@@ -150,8 +123,7 @@ export default {
phone
:
[
phone
:
[
{
required
:
true
,
message
:
"请输入手机号!"
},
{
required
:
true
,
message
:
"请输入手机号!"
},
{
{
pattern
:
pattern
:
/^
(
13
[
0-9
]
|14
[
01456879
]
|15
[
0-35-9
]
|16
[
2567
]
|17
[
0-8
]
|18
[
0-9
]
|19
[
0-35-9
])\d{8}
$/
,
/^
(
13
[
0-9
]
|14
[
01456879
]
|15
[
0-35-9
]
|16
[
2567
]
|17
[
0-8
]
|18
[
0-9
]
|19
[
0-35-9
])\d{8}
$/
,
message
:
"手机号格式不正确!"
,
message
:
"手机号格式不正确!"
,
validateTrigger
:
"onBlur"
,
validateTrigger
:
"onBlur"
,
},
},
...
@@ -193,10 +165,7 @@ export default {
...
@@ -193,10 +165,7 @@ export default {
this
.
RemainingTime
=
TIME_COUNT
;
this
.
RemainingTime
=
TIME_COUNT
;
this
.
isSend
=
true
;
this
.
isSend
=
true
;
this
.
timer
=
setInterval
(()
=>
{
this
.
timer
=
setInterval
(()
=>
{
if
(
if
(
this
.
RemainingTime
>
0
&&
this
.
RemainingTime
<=
TIME_COUNT
)
{
this
.
RemainingTime
>
0
&&
this
.
RemainingTime
<=
TIME_COUNT
)
{
this
.
RemainingTime
--
;
this
.
RemainingTime
--
;
}
else
{
}
else
{
this
.
isSend
=
false
;
this
.
isSend
=
false
;
...
...
src/views/login/index.vue
View file @
275af101
...
@@ -23,10 +23,7 @@
...
@@ -23,10 +23,7 @@
<span>
账户登录
</span>
<span>
账户登录
</span>
</div>
</div>
<a-form
:model=
"formState"
name=
"normal_login"
class=
"login-form"
>
<a-form
:model=
"formState"
name=
"normal_login"
class=
"login-form"
>
<a-form-item
<a-form-item
name=
"username"
:rules=
"[
{ required: true, message: '请输入用户名!' }]">
name=
"username"
:rules=
"[
{ required: true, message: '请输入用户名!' }]"
>
<a-input
v-model:value=
"formState.username"
>
<a-input
v-model:value=
"formState.username"
>
<template
#
prefix
>
<template
#
prefix
>
<img
src=
"../../static/login/icon-user.png"
alt=
""
/>
<img
src=
"../../static/login/icon-user.png"
alt=
""
/>
...
@@ -34,10 +31,7 @@
...
@@ -34,10 +31,7 @@
</a-input>
</a-input>
</a-form-item>
</a-form-item>
<a-form-item
<a-form-item
name=
"password"
:rules=
"[{ required: true, message: '请输入密码!' }]"
>
name=
"password"
:rules=
"[{ required: true, message: '请输入密码!' }]"
>
<a-input-password
v-model:value=
"formState.password"
>
<a-input-password
v-model:value=
"formState.password"
>
<
template
#
prefix
>
<
template
#
prefix
>
<img
src=
"../../static/login/icon-password.png"
alt=
""
/>
<img
src=
"../../static/login/icon-password.png"
alt=
""
/>
...
@@ -47,20 +41,11 @@
...
@@ -47,20 +41,11 @@
<a-form-item>
<a-form-item>
<a-form-item
name=
"remember"
>
<a-form-item
name=
"remember"
>
<a-checkbox
v-model:checked=
"formState.remember"
<a-checkbox
v-model:checked=
"formState.remember"
>
记住密码
</a-checkbox>
>
记住密码
</a-checkbox
>
</a-form-item>
</a-form-item>
</a-form-item>
</a-form-item>
<a-form-item>
<a-form-item>
<a-button
<a-button
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"login"
>
登录
</a-button>
type=
"primary"
html-type=
"submit"
class=
"login-form-button"
@
click=
"login"
>
登录
</a-button>
</a-form-item>
</a-form-item>
<a-form-item>
<a-form-item>
<div
class=
"admin_login"
style=
"float: left"
>
<div
class=
"admin_login"
style=
"float: left"
>
...
@@ -76,20 +61,17 @@
...
@@ -76,20 +61,17 @@
</div>
</div>
</div>
</div>
<footer>
<footer>
<a
<!-- <a style="color: #818a9f" href="http://zhongyanrenzhi.com/#/product2" target="_blank"
style=
"color: #818a9f"
href=
"http://zhongyanrenzhi.com/#/product2"
target=
"_blank"
>产品介绍 </a
>产品介绍 </a
>|
>|
<a
<a style="color: #818a9f" target="_blank" href="http://zhongyanrenzhi.com/#/into/1"
style=
"color: #818a9f"
target=
"_blank"
href=
"http://zhongyanrenzhi.com/#/into/1"
> 关于中研认知</a
> 关于中研认知</a
><br
/>
> -->
<span>
版权所有:北京中研硕福科技有限公司
</span
<span>
主办:太原理工技术转移有限公司
</span>
>
丨
<span>
京ICP备19055798号-3
</span>
<br
/>
<span>
技术支持:北京中研硕福科技有限公司
</span>
丨
<span
>
京ICP备19055798号-3
</span>
</footer>
</footer>
</div>
</div>
</template>
</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