Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
install.web
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
Script
install.web
Commits
411e9609
Commit
411e9609
authored
Mar 24, 2020
by
黄贤军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
93f27c3a
Pipeline
#21506
passed with stage
in 1 minute and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
94 additions
and
18 deletions
+94
-18
index.js
config/index.js
+1
-0
system.vue
src/app/HsEdi/system.vue
+93
-18
No files found.
config/index.js
View file @
411e9609
...
...
@@ -5,6 +5,7 @@ var erpAPI = 'http://47.100.21.215:40402'
var
authAPI
=
'http://47.110.145.204:8095/'
// var erPiUrl = 'http://47.100.21.215:40402'
var
mesAPI
=
'http://47.110.145.204:8109/'
//
mesAPI
=
'http://192.168.4.116:5000/'
mesAPI
=
'http://192.168.4.116:23000/'
var
mockAPI
=
'http://47.110.145.204:8082/mock/239'
module
.
exports
=
{
...
...
src/app/HsEdi/system.vue
View file @
411e9609
...
...
@@ -35,6 +35,7 @@
<el-form-item>
<el-button
type=
"primary"
@
click=
"set_project('ruleForm')"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"install_runner()"
>
安装runner
</el-button>
<el-button
type=
"primary"
@
click=
"application()"
>
应用修改
</el-button>
</el-form-item>
<el-form-item
style=
"float:right;margin-top:-300px;margin-right:47%;"
>
<el-progress
type=
"circle"
v-show=
"percentage!==0"
:percentage=
"percentage"
></el-progress>
...
...
@@ -109,12 +110,45 @@
:total=
"total"
>
</el-pagination>
</div>
</el-tab-pane>
<el-tab-pane
label=
"服务器配置"
name=
"four"
>
<el-form
:model=
"service_ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"项目代码"
prop=
"name"
>
<el-input
class=
"demo"
disabled
v-model=
"service_ruleForm.project_no"
></el-input>
<span
class=
"Prompt"
>
此项目代码从系统配置项目代码中获取
</span>
</el-form-item>
<el-form-item
label=
"数据库IP"
prop=
"name"
>
<el-input
class=
"demo"
v-model=
"service_ruleForm.db_ip"
></el-input>
</el-form-item>
<el-form-item
label=
"数据库端口"
prop=
"name"
>
<el-input
class=
"demo"
v-model=
"service_ruleForm.db_port"
></el-input>
</el-form-item>
<el-form-item
label=
"数据库用户名"
prop=
"name"
>
<el-input
class=
"demo"
v-model=
"service_ruleForm.db_user"
></el-input>
</el-form-item>
<el-form-item
label=
"数据库密码"
prop=
"name"
>
<el-input
class=
"demo"
type=
"password"
v-model=
"service_ruleForm.db_password"
></el-input>
</el-form-item>
<el-form-item
label=
"TIIP数据库名"
prop=
"name"
>
<el-input
class=
"demo"
v-model=
"service_ruleForm.tiip_db_name"
></el-input>
</el-form-item>
<el-form-item
label=
"MES数据库名"
prop=
"name"
>
<el-input
class=
"demo"
v-model=
"service_ruleForm.mes_db_name"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"set_project('service_ruleForm')"
>
保存
</el-button>
</el-form-item>
<el-form-item
style=
"float:right;margin-top:-300px;margin-right:47%;"
>
<el-progress
type=
"circle"
v-show=
"percentage!==0"
:percentage=
"percentage"
></el-progress>
</el-form-item>
</el-form>
</el-tab-pane>
<el-tab-pane
label=
"推送升级"
name=
"third"
>
<el-form
:model=
"remote_server"
:rules=
"rules"
ref=
"remote_server"
label-width=
"130px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"项目代码"
prop=
"name"
>
<
!-- <
el-form-item label="项目代码" prop="name" >
<el-input class="demo" v-model="remote_server.project_no"></el-input>
</el-form-item>
</el-form-item>
-->
<el-form-item
label=
"服务器IP"
prop=
"name"
>
<el-input
class=
"demo"
v-model=
"remote_server.server_ip"
></el-input>
</el-form-item>
...
...
@@ -138,7 +172,7 @@
</el-form-item>
</el-form>
</el-tab-pane>
</el-tabs>
<el-dialog
...
...
@@ -179,6 +213,7 @@ export default {
},
activeName
:
'first'
,
ruleForm
:
{
},
service_ruleForm
:
{},
dialogTableVisible
:
false
,
gridData
:
[
{
...
...
@@ -256,13 +291,12 @@ export default {
}
else
{
this
.
text
=
res
.
data
}
}).
catch
(()
=>
{
clearInterval
(
this
.
chatTimer
)
})
},
upgrade
()
{
axios
.
get
(
`mesAPI/upgrade/remote/`
).
then
(
res
=>
{
if
(
res
.
data
)
{
console
.
log
(
11
)
}
this
.
dialogVisible_install
=
true
var
myDate
=
new
Date
()
var
since_time
=
`
${
myDate
.
getFullYear
()}
-
${
myDate
.
getMonth
()
+
1
}
-
${
myDate
.
getDate
()}
${
myDate
.
getHours
()}
:
${
myDate
.
getMinutes
()}
:
${
myDate
.
getSeconds
()}
`
...
...
@@ -316,18 +350,30 @@ export default {
}
)
},
handleClick
(
tab
,
event
)
{
console
.
log
(
tab
)
},
handleCurrentChange
()
{
console
.
log
(
22
)
},
handleSizeChange
()
{
console
.
log
(
22
)
handleClick
(
e
)
{
if
(
e
.
label
===
'系统配置'
)
{
this
.
get_project
()
}
else
if
(
e
.
label
===
'系统升级'
)
{
this
.
query_bill_list
()
}
else
if
(
e
.
label
===
'服务器配置'
)
{
this
.
get_service_project
()
}
else
{
this
.
get_remote_server
()
}
console
.
log
(
e
.
label
)
},
// 设置项目链接
set_project
()
{
this
.
$API
.
post
(
`mesAPI/connection/`
,
{},
{},
this
.
ruleForm
).
then
(
res
=>
{
set_project
(
str
)
{
let
url
=
''
let
data
=
{}
if
(
str
===
'service_ruleForm'
)
{
url
=
`mesAPI/connection/remote_db/`
data
=
this
.
service_ruleForm
}
else
{
url
=
`mesAPI/connection/`
data
=
this
.
ruleForm
}
this
.
$API
.
post
(
url
,
{},
{},
data
).
then
(
res
=>
{
if
(
res
.
data
.
message
===
'保存成功'
)
{
this
.
$message
.
success
(
res
.
data
.
message
)
}
else
{
...
...
@@ -336,6 +382,34 @@ export default {
this
.
get_project
()
})
},
// 安装应用
application
()
{
this
.
$confirm
(
'此操作会重启所有app, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
openFullScreen
(
'重启中,请稍等'
)
this
.
$API
.
get
(
`mesAPI/upgrade/apply/`
).
then
(
res
=>
{
this
.
closeFullScreen
(
this
.
openFullScreen
())
this
.
$message
.
success
(
'修改成功'
)
}).
catch
(()
=>
{
this
.
closeFullScreen
(
this
.
openFullScreen
())
})
}).
catch
(()
=>
{
})
},
// 获取服务器配置
get_service_project
()
{
this
.
$API
.
get
(
`mesAPI/connection/remote_db/`
).
then
(
res
=>
{
if
(
!
res
.
data
)
{
this
.
service_ruleForm
=
{}
}
else
{
this
.
service_ruleForm
=
res
.
data
this
.
service_ruleForm
.
project_no
=
this
.
ruleForm
.
project_no
}
})
},
// 获取项目链接
get_project
()
{
this
.
$API
.
get
(
`mesAPI/connection/`
).
then
(
res
=>
{
...
...
@@ -367,8 +441,9 @@ export default {
},
activated
()
{
this
.
get_project
()
this
.
query_bill_list
()
this
.
get_remote_server
()
// this.query_bill_list()
// this.get_remote_server()
// this.get_service_project()
}
}
</
script
>
...
...
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