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
f682cb38
Commit
f682cb38
authored
Jun 23, 2022
by
xue_wengang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员档案
parent
60e80dd9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
132 deletions
+10
-132
src/views/jump.vue
+6
-96
src/views/ryda/ryGl.vue
+4
-36
No files found.
src/views/jump.vue
View file @
f682cb38
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
import
request
from
"@/utils/axiosHttp.js"
;
import
request
from
"@/utils/axiosHttp.js"
;
import
url
from
"@/api/base"
;
import
url
from
"@/api/base"
;
import
qs
from
"qs"
;
import
qs
from
"qs"
;
import
encrypt
from
'@/utils/encry.js'
;
import
encrypt
from
"@/utils/encry.js"
;
import
encry
from
"@/utils/encry.js"
;
import
encry
from
"@/utils/encry.js"
;
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -13,47 +13,6 @@ export default {
...
@@ -13,47 +13,6 @@ export default {
};
};
},
},
methods
:
{
methods
:
{
login
()
{
var
self
=
this
;
var
arr
=
document
.
cookie
.
split
(
"; "
);
let
userToken
=
""
;
let
appToken
=
""
;
arr
.
forEach
((
item
)
=>
{
if
(
item
.
includes
(
"userToken="
))
{
userToken
=
item
.
split
(
"userToken="
)[
1
];
}
if
(
item
.
includes
(
"appToken="
))
{
appToken
=
item
.
split
(
"appToken="
)[
1
];
}
});
axios
.
defaults
.
headers
=
{
token
:
userToken
,
appToken
:
appToken
,
};
sessionStorage
.
setItem
(
"zjhm"
,
self
.
$route
.
query
.
zjhm
);
var
params
=
new
URLSearchParams
();
params
.
append
(
"zjhm"
,
self
.
$route
.
query
.
zjhm
);
axios
.
post
(
url
.
BaseURL
+
"/loginByZjhm"
,
params
,
{
headers
:
{
"content-type"
:
"application/x-www-form-urlencoded"
,
},
})
.
then
((
res
)
=>
{
debugger
;
self
.
$router
.
push
({
path
:
self
.
$route
.
query
.
path
,
query
:
{
cphm
:
self
.
$route
.
query
.
cphm
,
zjhm
:
self
.
$route
.
query
.
zjhms
,
asjbh
:
self
.
$route
.
query
.
asjbh
,
},
});
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
});
},
logins
()
{
logins
()
{
var
self
=
this
;
var
self
=
this
;
var
arr
=
document
.
cookie
.
split
(
"; "
);
var
arr
=
document
.
cookie
.
split
(
"; "
);
...
@@ -78,7 +37,7 @@ export default {
...
@@ -78,7 +37,7 @@ export default {
}
else
if
(
self
.
$route
.
query
?.
zjhm
)
{
}
else
if
(
self
.
$route
.
query
?.
zjhm
)
{
zjhm
=
encry
.
Decrypt
(
self
.
$route
.
query
.
zjhm
);
zjhm
=
encry
.
Decrypt
(
self
.
$route
.
query
.
zjhm
);
}
}
debugger
;
debugger
params
.
append
(
"zjhm"
,
zjhm
);
params
.
append
(
"zjhm"
,
zjhm
);
axios
axios
.
post
(
url
.
rzURL
+
"/loginByZjhm"
,
params
,
{
.
post
(
url
.
rzURL
+
"/loginByZjhm"
,
params
,
{
...
@@ -87,70 +46,21 @@ export default {
...
@@ -87,70 +46,21 @@ export default {
},
},
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
code
==
200
)
{
// self.login();
debugger
self
.
$router
.
push
({
self
.
$router
.
push
({
path
:
self
.
$route
.
query
.
path
,
path
:
self
.
$route
.
query
.
path
,
query
:
{
query
:
{
cphm
:
self
.
$route
.
query
.
cphm
,
cphm
:
self
.
$route
.
query
.
cphm
,
zjhm
:
self
.
$route
.
query
.
zjhms
,
zjhm
:
self
.
$route
.
query
.
zjhms
,
asjbh
:
self
.
$route
.
query
.
asjbh
asjbh
:
self
.
$route
.
query
.
asjbh
,
},
},
});
});
}
});
});
// axios
// .post(url.BaseURL + "/loginByZjhm", params, {
// headers: {
// "content-type": "application/x-www-form-urlencoded",
// },
// })
// .then((res) => {
// self.login();
// });
},
},
// newlogin() {
// var self = this;
// sessionStorage.removeItem("userInfo");
// console.log(JSON.parse(encrypt.Decrypt(self.$route.query.zjhm)));
// let res = JSON.parse(encrypt.Decrypt(self.$route.query.zjhm))
// sessionStorage.setItem("token", "bearer " + res.accessToken);
// sessionStorage.setItem("userInfo", JSON.stringify(res));
// const roles = res.permission.split(",");
// this.$store.commit("user/SET_ROLES", roles);
// this.Loading.close();
// debugger;
// alert(self.$route.query.zjhm)
// this.$router.push({
// path: self.$route.query.path,
// query: {
// asjbh: self.$route.query.asjbh,
// zczlbh: self.$route.query.zczlbh,
// shsexsbh: self.$route.query.shsexsbh,
// xxzjbh: self.$route.query.xxzjbh,
// asjxgrybh: self.$route.query.asjxgrybh,
// xsbh: self.$route.query.xsbh,
// type: self.$route.query.type,
// module: self.$route.query.module,
// xsType: self.$route.query.xsType,
// operation: self.$route.query.operation
// },
// });
// }
},
},
created
()
{
created
()
{
// this.Loading = this.$loading({
// lock: true,
// text: "正在跳转...",
// spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)",
// });
// this.Loading = this.$loading({
// lock: true,
// text: "正在跳转...",
// spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)",
// });
// this.newlogin();
this
.
logins
();
this
.
logins
();
},
},
};
};
...
...
src/views/ryda/ryGl.vue
View file @
f682cb38
...
@@ -1415,7 +1415,10 @@ export default {
...
@@ -1415,7 +1415,10 @@ export default {
if
(
this
.
$route
.
query
[
"zjhm"
])
{
if
(
this
.
$route
.
query
[
"zjhm"
])
{
sessionStorage
.
setItem
(
"zjhm"
,
this
.
$route
.
query
[
"zjhm"
]);
sessionStorage
.
setItem
(
"zjhm"
,
this
.
$route
.
query
[
"zjhm"
]);
}
}
this
.
loginByZjhm
();
this
.
getRyxx
();
this
.
postgetJjpgLwxxList
();
this
.
postgetJjpgCxfsList
();
this
.
showSeeksGraph
();
self
.
propQueryField
.
forEach
((
val
)
=>
{
self
.
propQueryField
.
forEach
((
val
)
=>
{
if
(
val
.
type
==
"code"
||
val
.
type
==
"codeTreeDialog"
)
{
if
(
val
.
type
==
"code"
||
val
.
type
==
"codeTreeDialog"
)
{
if
(
val
.
codeOptions
.
length
==
0
)
{
if
(
val
.
codeOptions
.
length
==
0
)
{
...
@@ -2622,41 +2625,6 @@ export default {
...
@@ -2622,41 +2625,6 @@ export default {
onLineClick
(
lineObject
,
$event
)
{
onLineClick
(
lineObject
,
$event
)
{
console
.
log
(
"onLineClick:"
,
lineObject
);
console
.
log
(
"onLineClick:"
,
lineObject
);
},
},
postLoginByZjhm
(
zjhm
)
{
return
request
({
url
:
url
.
rzURL
+
"/loginByZjhm?zjhm="
+
zjhm
,
// data: JSON.parse(zjhm),
method
:
"POST"
,
});
},
loginByZjhm
()
{
if
(
this
.
$route
.
query
[
"idcard"
])
{
let
zjhm
=
this
.
$route
.
query
[
"idcard"
];
console
.
log
(
zjhm
);
this
.
postLoginByZjhm
(
zjhm
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
$router
.
push
({
path
:
"/rydaIndex/ryGL"
,
query
:
{
zjhm
:
sessionStorage
.
getItem
(
"zjhm"
)
},
});
debugger
;
this
.
getRyxx
();
this
.
postgetJjpgLwxxList
();
this
.
postgetJjpgCxfsList
();
this
.
showSeeksGraph
();
// this.initMap();
}
else
{
this
.
$message
.
error
(
"登录失败"
);
}
});
}
else
{
this
.
getRyxx
();
this
.
postgetJjpgLwxxList
();
this
.
postgetJjpgCxfsList
();
this
.
showSeeksGraph
();
// this.initMap();
}
},
},
},
// watch: {
// watch: {
// ldList (val) {
// ldList (val) {
...
...
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