Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
3fbe10f1
Commit
3fbe10f1
authored
Jan 08, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增资产管理的接口方法
parent
52feec7b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
5 deletions
+65
-5
AssetsShenpi.vue
src/components/administrative/AssetsSystem/AssetsShenpi.vue
+3
-4
index.js
src/plug/index.js
+62
-1
No files found.
src/components/administrative/AssetsSystem/AssetsShenpi.vue
View file @
3fbe10f1
...
@@ -645,7 +645,7 @@ export default {
...
@@ -645,7 +645,7 @@ export default {
},
},
getdanjuList
(){
getdanjuList
(){
this
.
apiJavaPost
(
"/api/property/GetAuditChangeLogPageList"
,
this
.
danjuMsg
,
this
.
apiJavaPost
Zc
(
"/api/property/GetAuditChangeLogPageList"
,
this
.
danjuMsg
,
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
let
data
=
res
.
data
.
data
.
pageData
;
let
data
=
res
.
data
.
data
.
pageData
;
...
@@ -675,9 +675,8 @@ export default {
...
@@ -675,9 +675,8 @@ export default {
}
}
this
.
addMsg
.
AuditType
=
num
;
this
.
addMsg
.
AuditType
=
num
;
this
.
addMsg
.
ImageList
=
this
.
uploadImgList
;
this
.
addMsg
.
ImageList
=
this
.
uploadImgList
;
this
.
apiJavaPost
(
"/api/property/AuditOrRefund"
,
this
.
addMsg
,
this
.
apiJavaPost
Zc
(
"/api/property/AuditOrRefund"
,
this
.
addMsg
,
res
=>
{
res
=>
{
console
.
log
(
"res"
,
res
)
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getDetail
();
this
.
getDetail
();
...
@@ -734,7 +733,7 @@ export default {
...
@@ -734,7 +733,7 @@ export default {
},
},
getDetail
(){
getDetail
(){
this
.
pageLoad
=
true
;
this
.
pageLoad
=
true
;
this
.
apiJavaPost
(
"/api/property/GetPropertyAuditDetail"
,{
UseReceiveId
:
this
.
addMsg
.
UseReceiveId
},
this
.
apiJavaPost
Zc
(
"/api/property/GetPropertyAuditDetail"
,{
UseReceiveId
:
this
.
addMsg
.
UseReceiveId
},
res
=>
{
res
=>
{
this
.
pageLoad
=
false
;
this
.
pageLoad
=
false
;
...
...
src/plug/index.js
View file @
3fbe10f1
...
@@ -153,6 +153,7 @@ export default {
...
@@ -153,6 +153,7 @@ export default {
//文件站点
//文件站点
ViittoFileUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
"http://imgfile.oytour.com"
:
'http://192.168.2.214:8130'
,
ViittoFileUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
"http://imgfile.oytour.com"
:
'http://192.168.2.214:8130'
,
javaUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://efficient.oytour.com"
:
"http://47.96.12.235:9001"
)
:
"http://192.168.2.17:8087"
,
javaUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://efficient.oytour.com"
:
"http://47.96.12.235:9001"
)
:
"http://192.168.2.17:8087"
,
javaUrlNew
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://property.oytour.com"
:
"http://47.96.12.235:9001"
)
:
"http://192.168.2.17:8087"
,
// javaUrl:"http://192.168.2.215:9000",
// javaUrl:"http://192.168.2.215:9000",
//Java接口本站文件流下载地址
//Java接口本站文件流下载地址
...
@@ -423,6 +424,66 @@ export default {
...
@@ -423,6 +424,66 @@ export default {
}
}
},
faildCall
)
},
faildCall
)
},
},
//请求资产管理接口
Vue
.
prototype
.
apiJavaPostZc
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
if
(
this
.
$route
.
name
.
indexOf
(
'login'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'confirmationOrderDownLoad'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'PrintPage'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'clientConfirm'
)
===
-
1
)
{
let
previousPathInfo
=
{
path
:
this
.
$route
.
name
,
query
:
this
.
$route
.
query
}
localStorage
.
previousPathInfo
=
JSON
.
stringify
(
previousPathInfo
);
}
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
var
apiurl
=
this
.
domainManager
().
javaUrlNew
+
cmd
;
var
timestamp
=
(
new
Date
()).
valueOf
();
this
.
apiurl
=
apiurl
;
var
token
=
""
;
var
key
=
""
;
let
userInfo
=
localStorage
.
userInfo
?
JSON
.
parse
(
localStorage
.
userInfo
)
:
''
;
let
groupId
=
userInfo
.
RB_Group_id
?
userInfo
.
RB_Group_id
:
0
;
let
uid
=
userInfo
.
EmployeeId
?
userInfo
.
EmployeeId
:
0
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
token
;
key
=
this
.
getLocalStorage
().
SecretKey
;
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
,
"uid"
:
uid
,
"groupId"
:
groupId
}
if
(
localStorage
.
g
&&
localStorage
.
g
!=
'undefined'
)
{
postData
.
groupId
=
parseInt
(
JSON
.
parse
(
localStorage
.
g
).
i
)
}
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
this
.
$route
.
path
}
})
.
then
(
res
=>
{
if
(
res
.
resultCode
==
10000
||
res
.
resultCode
==
10001
)
{
this
.
$router
.
push
({
path
:
'/login'
})
}
else
if
(
res
.
resultCode
==
10005
)
{
this
.
$router
.
go
(
-
1
)
}
else
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
isJumpTwoCode
==
1
)
{
this
.
$router
.
push
({
path
:
'/clientConfirm'
})
}
else
{
successCall
(
res
)
}
},
faildCall
)
},
//下载文件
//下载文件
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
...
...
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