Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
常超
founder_vue
Commits
3238c3e0
Commit
3238c3e0
authored
Aug 31, 2022
by
dupengfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录老版个案侦办修改
parent
02a1f833
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
17 deletions
+25
-17
src/api/base.js
+1
-1
src/views/jf/index.vue
+24
-16
No files found.
src/api/base.js
View file @
3238c3e0
...
@@ -10,7 +10,7 @@ let base = {
...
@@ -10,7 +10,7 @@ let base = {
ztptURL
:
"http://26.3.13.120:8088"
,
ztptURL
:
"http://26.3.13.120:8088"
,
codeUrl
:
""
,
codeUrl
:
""
,
BaseURL
:
"/apiAjzbGaw"
,
//基础查询页得ip
BaseURL
:
"/apiAjzbGaw"
,
//基础查询页得ip
rzURL
:
"/apiXzxt
Gaw
"
,
//刑专二期得(日志)ip
rzURL
:
"/apiXzxt"
,
//刑专二期得(日志)ip
//BaseURL: "/apiAjzb", //基础查询页得ip
//BaseURL: "/apiAjzb", //基础查询页得ip
//rzURL: "/apiXzxt", //刑专二期得(日志)ip
//rzURL: "/apiXzxt", //刑专二期得(日志)ip
// bigwfwurl: "",
// bigwfwurl: "",
...
...
src/views/jf/index.vue
View file @
3238c3e0
...
@@ -201,15 +201,17 @@ export default {
...
@@ -201,15 +201,17 @@ export default {
},
},
created
()
{
created
()
{
requestUserInfo
.
getYhxx
(
""
).
then
((
res
)
=>
{
requestUserInfo
.
getYhxx
(
""
).
then
((
res
)
=>
{
debugger
if
(
res
.
success
===
true
){
if
(
res
.
success
===
true
){
this
.
userInfo
=
res
.
data
.
rows
;
this
.
userInfo
=
res
.
data
.
rows
;
this
.
loginSolar
();
}
}
})
});
},
},
mounted
()
{
mounted
()
{
this
.
userInfo
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
"userInfo"
));
//
this.userInfo = JSON.parse(window.sessionStorage.getItem("userInfo"));
this
.
getQxpm
();
this
.
getQxpm
();
this
.
loginSolar
();
},
},
methods
:
{
methods
:
{
loginOut
(){
loginOut
(){
...
@@ -245,11 +247,23 @@ export default {
...
@@ -245,11 +247,23 @@ export default {
})
})
.
catch
((
err
)
=>
{});
.
catch
((
err
)
=>
{});
},
},
doLoginRequest
(
relUrl
,
from
){
doLoginRequest
(
zjhm
){
return
Http
({
let
url
=
`http://10.100.17.118:9047/doLogin`
url
:
url
.
apiSolarGaw
+
relUrl
,
$
.
ajax
({
data
:
from
,
url
:
url
,
methods
:
"post"
,
data
:
{
zjhm
:
zjhm
},
type
:
'post'
,
dataType
:
'json'
,
xhrFields
:
{
withCredentials
:
true
},
crossDomain
:
true
,
success
:
function
(
res
)
{
if
(
res
.
state
==
'success'
){
console
.
log
(
"login solarUpdate success"
)
}
else
{
console
.
log
(
"login solarUpdate fail"
)
}
},
error
:
function
()
{
}
})
})
},
},
...
@@ -260,13 +274,7 @@ export default {
...
@@ -260,13 +274,7 @@ export default {
let
identitycard
=
this
.
userInfo
.
identitycard
;
let
identitycard
=
this
.
userInfo
.
identitycard
;
console
.
log
(
identitycard
);
console
.
log
(
identitycard
);
//data.append("zjhm", this.userInfo.identitycard);
//data.append("zjhm", this.userInfo.identitycard);
this
.
doLoginRequest
(
`/doLogin?zjhm=
${
identitycard
}
`
,
''
).
then
((
res
)
=>
{
this
.
doLoginRequest
(
identitycard
)
if
(
res
.
state
==
'success'
){
console
.
log
(
"login solarUpdate success"
)
}
else
{
console
.
log
(
"login solarUpdate fail"
)
}
}).
catch
(()
=>
{})
},
},
...
...
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