Commit 1dba17a2 authored by 黄贤军's avatar 黄贤军

2.0

parent 640dedd5
......@@ -225,8 +225,11 @@
max-height="450"
@selection-change="handleSelectionChange_test">
>
<!-- <el-table-column type="index" width="40"> -->
</el-table-column>
<el-table-column
type="index"
label="序号"
>
</el-table-column>
<el-table-column prop="app_code" sortable :show-overflow-tooltip=true label="appCode">
</el-table-column>
<el-table-column prop="port" :show-overflow-tooltip=true label="端口号">
......@@ -365,17 +368,21 @@ export default {
}
},
methods: {
// handleSelectionChange_test(e) {
// this.multipleSelection_test = e
// },
handleSelectionChange_test(e) {
this.multipleSelection_test = e
},
// 测试
test_port() {
// if (!this.multipleSelection_test.length) {
// this.$message.error('请选择数据')
// return
// }
this.openFullScreen('测试中,请稍等')
this.$API.post(`mesAPI/application/test_port/${this.ruleForm.project_no}/`, {}, {}, this.test_list).then(res => {
this.test_list = res.data
this.closeFullScreen(this.openFullScreen())
}).catch(() => {
this.closeFullScreen(this.openFullScreen())
})
},
open_server_list() {
......@@ -618,7 +625,9 @@ export default {
// 查询测试端口号res.data
get_test() {
axios.get(`mesAPI/application/test_port/${this.ruleForm.project_no}/`).then(res => {
this.test_list = res.data
if (res.data) {
this.test_list = res.data
}
}
)
},
......@@ -670,7 +679,11 @@ export default {
return
}
this.$API.get(`mesAPI/connection/work_shop/${this.ruleForm.project_no}/`).then(res => {
this.work_list = res.data
if (res.data) {
this.work_list = res.data
this.service_ruleForm.work_shop_no = this.work_list[0].work_shop_no
this.work_shop_change(this.service_ruleForm.work_shop_no)
}
})
},
// 获取项目链接
......@@ -680,6 +693,8 @@ export default {
this.ruleForm = {}
} else {
this.project_list = res.data
this.ruleForm.project_no = res.data[0].project_no
this.project_change(this.ruleForm.project_no)
// this.ruleForm = res.data
}
this.service_ruleForm.project_no = this.ruleForm.project_no
......@@ -699,9 +714,11 @@ export default {
this.$API.get(`mesAPI/connection/${e}/`).then(res => {
if (res.data) {
this.ruleForm = res.data
this.service_ruleForm = {}
} else {
this.ruleForm = {}
this.ruleForm.project_no = e
this.service_ruleForm = {}
}
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment