Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
罗鑫霖
/
vion-tools
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 25d81ad1
authored
Jan 11, 2022
by
李金轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ljx
1 parent
f50e4225
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
22 deletions
push.bat
static/js/home.js
static/js/request.js
push.bat
deleted
100644 → 0
View file @
f50e422
git status
git add *
git commit -m %1%
git pull
git push
git status
\ No newline at end of file
static/js/home.js
View file @
25d81ad
...
...
@@ -81,7 +81,7 @@ new Vue({
deviceVal
:
""
,
gateVal
:
""
,
gateVal2
:
""
,
gate_id
:
''
,
gate_id
:
[]
,
channelVal
:
""
,
showDiv
:
true
,
loading
:
""
,
...
...
@@ -350,6 +350,7 @@ new Vue({
this
.
getGateList
()
},
getMallList
:
function
()
{
this
.
plaza_id
=
[]
this
.
plaza_id_list
=
[]
get
(
window
.
_CONF_
.
apiUrl2
+
'/malls'
,
...
...
@@ -367,6 +368,7 @@ new Vue({
this
.
getGateList
()
},
getZoneList
:
function
()
{
this
.
zone_id
=
[]
this
.
zone_idList
=
[]
get
(
window
.
_CONF_
.
apiUrl2
+
'/zones/zoneList'
,
...
...
@@ -384,6 +386,7 @@ new Vue({
this
.
getGateList
()
},
getGateList
:
function
()
{
this
.
gate_id
=
[]
this
.
gate_idList
=
[]
get
(
window
.
_CONF_
.
apiUrl2
+
'/gates/gateByInfo'
,
...
...
@@ -726,17 +729,6 @@ new Vue({
_this
.
getChannel
()
})
},
getGate2
:
function
()
{
var
_this
=
this
get
(
window
.
_CONF_
.
apiUrl2
+
'/gates/gateByInfo'
,
{
account_id
:
_this
.
accountVal
.
toString
(),
plaza_id
:
_this
.
mallVal
.
toString
(),
zone_id
:
_this
.
zoneValue
.
toString
(),
type
:
_this
.
type6
,
}).
then
(
function
(
data
)
{
log
(
data
)
})
},
getDevice
:
function
()
{
var
_this
=
this
get
(
window
.
_CONF_
.
apiUrl
+
API
.
Devices
,
{
...
...
static/js/request.js
View file @
25d81ad
...
...
@@ -24,16 +24,17 @@ const getUrlQueryByName = function(name) {
Axios
.
interceptors
.
request
.
use
(
config
=>
{
// const atoken = Cookies.get('atoken')
// console.log('atoken', atoken)
// atoken && (config.headers.Authorization = atoken)
if
(
window
.
location
.
hostname
===
'localhost'
)
{
config
.
headers
.
Authorization
=
'a054367f-717d-47fb-b870-7c599e030e16'
}
else
{
config
.
headers
.
Authorization
=
getUrlQueryByName
(
'authorization'
)
// config.headers.Authorization = getUrlQueryByName('authorization')
const
atoken
=
Cookies
.
get
(
'atoken'
)
// console.log('atoken', atoken)
atoken
&&
(
config
.
headers
.
Authorization
=
atoken
)
}
return
config
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment