Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
energyai_vue
Project
Project
Details
Activity
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
葛齐林
energyai_vue
Commits
935258f6
Commit
935258f6
authored
May 11, 2021
by
xiexingan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab.suntrayoa.com:geqilin/energyai_vue into dev
parents
d62f9e37
588e5abd
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
147 additions
and
153 deletions
+147
-153
App.vue
src/App.vue
+6
-13
page.vue
src/pages/eq/hall/page.vue
+136
-137
page.vue
src/pages/login/page.vue
+1
-0
index.vue
src/pages/sys/commandlog/index.vue
+2
-2
query-detail.vue
src/pages/sys/commandlog/query-detail.vue
+1
-1
index.js
src/plugin/axios/index.js
+1
-0
No files found.
src/App.vue
View file @
935258f6
...
@@ -149,7 +149,6 @@ export default {
...
@@ -149,7 +149,6 @@ export default {
isRouterAlive
:
true
,
isRouterAlive
:
true
,
queryDetailVisible
:
false
,
queryDetailVisible
:
false
,
urlPath
:
window
.
CONFIG
.
urlPath
,
urlPath
:
window
.
CONFIG
.
urlPath
,
paramsList
:
[],
showList
:
[],
showList
:
[],
takeoverInfo
:
''
takeoverInfo
:
''
}
}
...
@@ -174,8 +173,6 @@ export default {
...
@@ -174,8 +173,6 @@ export default {
this
.
initWebSocket
()
this
.
initWebSocket
()
this
.
initWebSocket2
()
this
.
initWebSocket2
()
this
.
getDateList
()
this
.
getDateList
()
let
paramsList
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'paramsList'
))
this
.
$store
.
dispatch
(
'd2admin/paramsList/set'
,
paramsList
)
},
},
destroyed
:
function
()
{
destroyed
:
function
()
{
this
.
websocketclose
()
this
.
websocketclose
()
...
@@ -199,7 +196,8 @@ export default {
...
@@ -199,7 +196,8 @@ export default {
let
webpath
=
''
let
webpath
=
''
//wsuri.substring(0, wsuri.indexOf(':'))
//wsuri.substring(0, wsuri.indexOf(':'))
if
(
wsuri
!=
null
&&
wsuri
.
indexOf
(
':'
)
<=
-
1
)
{
if
(
wsuri
!=
null
&&
wsuri
.
indexOf
(
':'
)
<=
-
1
)
{
webpath
=
'ws://59.110.43.122:8091/websocket/1001'
// webpath = 'ws://59.110.43.122:8091/websocket/1001'
webpath
=
'ws://10.20.72.31:8091/websocket/1001'
}
else
{
}
else
{
webpath
=
webpath
=
'ws:'
+
'ws:'
+
...
@@ -230,7 +228,6 @@ export default {
...
@@ -230,7 +228,6 @@ export default {
)
{
)
{
var
paramsInfo
=
JSON
.
parse
(
e
.
data
)
var
paramsInfo
=
JSON
.
parse
(
e
.
data
)
console
.
log
(
'paramsInfo:'
,
paramsInfo
)
console
.
log
(
'paramsInfo:'
,
paramsInfo
)
sessionStorage
.
setItem
(
'paramsList'
,
JSON
.
stringify
(
paramsInfo
))
this
.
$store
.
dispatch
(
'd2admin/paramsList/set'
,
paramsInfo
)
this
.
$store
.
dispatch
(
'd2admin/paramsList/set'
,
paramsInfo
)
}
}
},
},
...
@@ -256,7 +253,8 @@ export default {
...
@@ -256,7 +253,8 @@ export default {
let
webpath
=
''
let
webpath
=
''
//wsuri.substring(0, wsuri.indexOf(':'))
//wsuri.substring(0, wsuri.indexOf(':'))
if
(
wsuri
!=
null
&&
wsuri
.
indexOf
(
':'
)
<=
-
1
)
{
if
(
wsuri
!=
null
&&
wsuri
.
indexOf
(
':'
)
<=
-
1
)
{
webpath
=
'ws://59.110.43.122:8091/websocket/1002'
// webpath = 'ws://59.110.43.122:8091/websocket/1002'
webpath
=
'ws://10.20.72.31:8091/websocket/1002'
}
else
{
}
else
{
webpath
=
webpath
=
'ws:'
+
'ws:'
+
...
@@ -420,13 +418,8 @@ export default {
...
@@ -420,13 +418,8 @@ export default {
params
:
this
.
$http
.
adornParams
({})
params
:
this
.
$http
.
adornParams
({})
}).
then
((
data
)
=>
{
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
paramsList
=
data
.
bean
console
.
log
(
'paramsList:'
,
data
.
bean
)
sessionStorage
.
setItem
(
this
.
$store
.
dispatch
(
'd2admin/paramsList/set'
,
data
.
bean
)
'paramsList'
,
JSON
.
stringify
(
this
.
paramsList
)
)
console
.
log
(
'paramsList:'
,
this
.
paramsList
)
this
.
$store
.
dispatch
(
'd2admin/paramsList/set'
,
this
.
paramsList
)
}
}
})
})
}
else
{
}
else
{
...
...
src/pages/eq/hall/page.vue
View file @
935258f6
This diff is collapsed.
Click to expand it.
src/pages/login/page.vue
View file @
935258f6
...
@@ -137,6 +137,7 @@ export default {
...
@@ -137,6 +137,7 @@ export default {
this
.
captchaPath
=
this
.
$http
.
adornUrl
(
this
.
captchaPath
=
this
.
$http
.
adornUrl
(
`/captcha.jpg?uuid=
${
this
.
formLogin
.
uuid
}
`
`/captcha.jpg?uuid=
${
this
.
formLogin
.
uuid
}
`
)
)
this
.
$parent
.
getDateList
()
},
},
/**
/**
* @description 接收选择一个用户快速登录的事件
* @description 接收选择一个用户快速登录的事件
...
...
src/pages/sys/commandlog/index.vue
View file @
935258f6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
div(slot='content')
div(slot='content')
div.tableCard()
div.tableCard()
el-form( :inline="true" :model="dataForm" size="mini" @keyup.enter.native="getDataList()" )
el-form( :inline="true" :model="dataForm" size="mini" @keyup.enter.native="getDataList()" )
el-form-item( label="
关键词
:")
el-form-item( label="
指令内容
:")
el-input( v-model="dataForm.comMark" placeholder="" clearable)
el-input( v-model="dataForm.comMark" placeholder="" clearable)
el-form-item( label="指令类型:")
el-form-item( label="指令类型:")
el-select( v-model="dataForm.comType" placeholder="请选择" clearable)
el-select( v-model="dataForm.comType" placeholder="请选择" clearable)
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
font(v-if='data.scope.comSource == 2') 人工
font(v-if='data.scope.comSource == 2') 人工
template(#comType='data' )
template(#comType='data' )
font(v-if='data.scope.comType == 1') 自动
font(v-if='data.scope.comType == 1') 自动
font(v-if='data.scope.comType == 2')
手动
font(v-if='data.scope.comType == 2')
人工
template(#operation="data")
template(#operation="data")
el-button(type="text" size="mini" @click="queryHandle(data.scope.id)") 详情
el-button(type="text" size="mini" @click="queryHandle(data.scope.id)") 详情
el-footer.box_footer
el-footer.box_footer
...
...
src/pages/sys/commandlog/query-detail.vue
View file @
935258f6
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
</el-form-item>
</el-form-item>
<el-form-item label='指令类型:' prop='comType'>
<el-form-item label='指令类型:' prop='comType'>
<el-input v-if="dataForm.comType==1" value="自动" size="medium" readonly></el-input>
<el-input v-if="dataForm.comType==1" value="自动" size="medium" readonly></el-input>
<el-input v-if="dataForm.comType==2" value="
手动
" size="medium" readonly></el-input>
<el-input v-if="dataForm.comType==2" value="
人工
" size="medium" readonly></el-input>
</el-form-item>
</el-form-item>
<el-form-item label='指令来源:' prop='comSource'>
<el-form-item label='指令来源:' prop='comSource'>
<el-input v-if="dataForm.comSource==1" value="算法" size="medium" readonly></el-input>
<el-input v-if="dataForm.comSource==1" value="算法" size="medium" readonly></el-input>
...
...
src/plugin/axios/index.js
View file @
935258f6
...
@@ -230,6 +230,7 @@ service.interceptors.response.use(
...
@@ -230,6 +230,7 @@ service.interceptors.response.use(
sessionStorage
.
removeItem
(
'token'
)
sessionStorage
.
removeItem
(
'token'
)
sessionStorage
.
removeItem
(
'uuid'
)
sessionStorage
.
removeItem
(
'uuid'
)
if
(
this
)
{
if
(
this
)
{
this
.
$parent
.
getDateList
()
//清空接管提示框
//清空接管提示框
this
.
$store
.
dispatch
(
'd2admin/takeover/setTakeover'
,
null
)
this
.
$store
.
dispatch
(
'd2admin/takeover/setTakeover'
,
null
)
}
}
...
...
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