Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
34e288df
Commit
34e288df
authored
Nov 12, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
8299b9ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
erpindex.js
src/utils/erpindex.js
+14
-11
No files found.
src/utils/erpindex.js
View file @
34e288df
...
...
@@ -9,8 +9,7 @@ export default{
//ERP本地缓存
Vue
.
prototype
.
md5
=
md5
;
Vue
.
prototype
.
getLocalStorage
=
function
()
{
console
.
log
(
'进入~~~~~~'
)
var
localStorageData
=
window
.
localStorage
[
"userInfo"
];
var
localStorageData
=
window
.
localStorage
[
"loginUserInfo"
];
if
(
localStorageData
!==
undefined
&&
localStorageData
!=
'undefined'
)
{
return
JSON
.
parse
(
localStorageData
);
}
else
{
...
...
@@ -87,24 +86,28 @@ export default{
var
apiurl
=
this
.
domainManager
().
PostUrl
;
this
.
apiurl
=
apiurl
;
var
branchId
=
tokenData
.
data
.
School_Id
;
var
departmentId
=
1
;
var
departmentName
=
1
;
var
groupName
=
tokenData
.
data
.
GroupName
;
var
branchName
=
tokenData
.
data
.
SchoolName
;
var
uName
=
tokenData
.
data
.
AccountName
;
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
let
tempLanguage
=
0
;
if
(
localStorage
.
language
&&
localStorage
.
language
!=
''
)
{
if
(
localStorage
.
language
==
"zh-TW"
)
{
tempLanguage
=
1
;
}
else
if
(
localStorage
.
language
==
"Japanese"
)
{
tempLanguage
=
2
;
}
}
var
postData
=
{
"msg"
:
msg
,
"cmd"
:
cmd
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
,
"languageId"
:
tempLanguage
"branchId"
:
branchId
,
//公司id
"departmentId"
:
departmentId
,
//部门id
"groupName"
:
groupName
,
//集团名称
"branchName"
:
branchName
,
//公司名称
"departmentName"
:
departmentName
,
//部门名称
"uName"
:
uName
//用户名称
}
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
...
...
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