Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
7c987057
Commit
7c987057
authored
Jan 16, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
69bc360a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
31 deletions
+35
-31
dev.env.js
config/dev.env.js
+1
-1
create-enclosure-info.vue
src/pages/contractCreate/create-enclosure-info.vue
+16
-16
add-car.vue
src/pages/contractStart/add-car.vue
+1
-1
login.vue
src/pages/login.vue
+17
-12
index.html
www/index.html
+0
-1
No files found.
config/dev.env.js
View file @
7c987057
...
...
@@ -13,5 +13,5 @@ module.exports = merge(prodEnv, {
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&"'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"1.6.
1
"'
,
currentVersion
:
'"1.6.
3
"'
,
})
src/pages/contractCreate/create-enclosure-info.vue
View file @
7c987057
...
...
@@ -101,7 +101,7 @@
</div>
</h-content>
<bottom-tab
class=
"add-box"
>
<tab-button
v-if=
"!isReadOnly"
class=
"before"
@
click
.
native=
"handSave"
>
同步电子签
</tab-button>
<tab-button
v-if=
"!isReadOnly"
class=
"before"
@
click
.
native=
"handSave"
>
保存
</tab-button>
<tab-button
v-if=
"!isReadOnly"
class=
"next"
@
click
.
native=
"isSubmit"
>
提交
</tab-button>
<tab-button
v-if=
"isReadOnly"
class=
"before"
@
click
.
native=
"$routeGo()"
>
上一步
</tab-button>
</bottom-tab>
...
...
@@ -512,21 +512,21 @@ export default {
},
// 同步电子签
handSave
()
{
//
hlsPopup.showLongCenter('保存成功!')
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'syn_content_app'
let
param
=
{
project_id
:
window
.
localStorage
.
project_id
,
}
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
showSuccess
(
'同步成功'
)
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
hlsPopup
.
showLongCenter
(
'保存成功!'
)
//
let vm = this
//
let url = process.env.basePath + 'syn_content_app'
//
let param = {
//
project_id: window.localStorage.project_id,
//
}
//
vm.hlsPopup.showLoading('请稍候')
//
vm.hlsHttp.post(url, param).then(function (res) {
//
vm.hlsPopup.hideLoading()
//
if (res.result === 'S') {
//
vm.hlsPopup.showSuccess('同步成功')
//
} else {
//
vm.hlsPopup.showLongCenter(res.message)
//
}
//
})
},
isSubmit
()
{
let
vm
=
this
...
...
src/pages/contractStart/add-car.vue
View file @
7c987057
...
...
@@ -177,7 +177,7 @@
</div>
</h-content>
<bottom-tab
v-if=
"!flag"
>
<
tab-button
class=
"save"
@
click
.
native=
"handSave"
>
同步电子签
</tab-button
>
<
!--
<tab-button
class=
"save"
@
click
.
native=
"handSave"
>
同步电子签
</tab-button>
--
>
<tab-button
class=
"approve"
@
click
.
native=
"checkStatus"
>
发车申请
</tab-button>
</bottom-tab>
<div
class=
"bottom-pop"
>
...
...
src/pages/login.vue
View file @
7c987057
...
...
@@ -62,7 +62,7 @@ export default {
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
name
!==
'PrivacyPolicy'
)
{
vm
.
getAccessToken
()
//
vm.getAccessToken()
}
if
(
!
window
.
localStorage
.
getItem
(
'isReadPolicy'
))
{
setTimeout
(()
=>
{
...
...
@@ -124,28 +124,33 @@ export default {
// 极光推送
})
},
getAccessToken
()
{
async
getAccessToken
()
{
let
vm
=
this
let
url
=
process
.
env
.
loginPath
+
'appadmin'
let
param
=
{}
// vm.hlsPopup.showLoading('请稍等')
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
let
res
=
await
vm
.
$post
(
url
,
param
)
// vm.hlsPopup.hideLoading()
if
(
res
)
{
window
.
localStorage
.
setItem
(
'access_token'
,
res
.
access_token
)
vm
.
updateVersion
()
// 版本更新
})
return
true
}
},
a
ccess
:
function
()
{
a
sync
access
()
{
document
.
getElementById
(
'passwordInput'
).
blur
()
document
.
activeElement
.
blur
()
let
flag
=
await
this
.
getAccessToken
()
let
vm
=
this
if
(
!
vm
.
username
||
vm
.
username
===
undefined
)
{
vm
.
hlsPopup
.
showLongCenter
(
'请输入用户名'
)
}
else
if
(
!
vm
.
password
||
vm
.
password
===
undefined
)
{
vm
.
hlsPopup
.
showLongCenter
(
'请输入密码'
)
}
else
{
hlsPopup
.
showLoading
(
'正在登录'
)
vm
.
login
()
if
(
flag
)
{
if
(
!
vm
.
username
||
vm
.
username
===
undefined
)
{
vm
.
hlsPopup
.
showLongCenter
(
'请输入用户名'
)
}
else
if
(
!
vm
.
password
||
vm
.
password
===
undefined
)
{
vm
.
hlsPopup
.
showLongCenter
(
'请输入密码'
)
}
else
{
hlsPopup
.
showLoading
(
'正在登录'
)
vm
.
login
()
}
}
},
registerNew
:
function
()
{
...
...
www/index.html
deleted
100644 → 0
View file @
69bc360a
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
cordova.js
></script><script
type=
text/javascript
src=
"http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"
></script><title>
徐工金服
</title><link
href=
./static/css/app.8aff99fa55fe4dc60e6d63d96f17b12c.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script
type=
text/javascript
src=
./static/js/manifest.6a178e8d77c32e3c385d.js
></script><script
type=
text/javascript
src=
./static/js/vendor.c6877d591112b6e9baa7.js
></script><script
type=
text/javascript
src=
./static/js/app.4851b531dabbea1f3606.js
></script></body></html>
\ No newline at end of file
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