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
b74ca67e
Commit
b74ca67e
authored
Jan 16, 2020
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
add
parents
557f9fd5
7c987057
Pipeline
#4656
canceled with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
30 deletions
+35
-30
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
No files found.
config/dev.env.js
View file @
b74ca67e
...
...
@@ -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 @
b74ca67e
...
...
@@ -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 @
b74ca67e
...
...
@@ -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 @
b74ca67e
...
...
@@ -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
()
{
...
...
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