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

2.0

parent 640dedd5
...@@ -225,7 +225,10 @@ ...@@ -225,7 +225,10 @@
max-height="450" max-height="450"
@selection-change="handleSelectionChange_test"> @selection-change="handleSelectionChange_test">
> >
<!-- <el-table-column type="index" width="40"> --> <el-table-column
type="index"
label="序号"
>
</el-table-column> </el-table-column>
<el-table-column prop="app_code" sortable :show-overflow-tooltip=true label="appCode"> <el-table-column prop="app_code" sortable :show-overflow-tooltip=true label="appCode">
</el-table-column> </el-table-column>
...@@ -365,17 +368,21 @@ export default { ...@@ -365,17 +368,21 @@ export default {
} }
}, },
methods: { methods: {
// handleSelectionChange_test(e) { handleSelectionChange_test(e) {
// this.multipleSelection_test = e this.multipleSelection_test = e
// }, },
// 测试 // 测试
test_port() { test_port() {
// if (!this.multipleSelection_test.length) { // if (!this.multipleSelection_test.length) {
// this.$message.error('请选择数据') // this.$message.error('请选择数据')
// return // return
// } // }
this.openFullScreen('测试中,请稍等')
this.$API.post(`mesAPI/application/test_port/${this.ruleForm.project_no}/`, {}, {}, this.test_list).then(res => { this.$API.post(`mesAPI/application/test_port/${this.ruleForm.project_no}/`, {}, {}, this.test_list).then(res => {
this.test_list = res.data this.test_list = res.data
this.closeFullScreen(this.openFullScreen())
}).catch(() => {
this.closeFullScreen(this.openFullScreen())
}) })
}, },
open_server_list() { open_server_list() {
...@@ -618,8 +625,10 @@ export default { ...@@ -618,8 +625,10 @@ export default {
// 查询测试端口号res.data // 查询测试端口号res.data
get_test() { get_test() {
axios.get(`mesAPI/application/test_port/${this.ruleForm.project_no}/`).then(res => { axios.get(`mesAPI/application/test_port/${this.ruleForm.project_no}/`).then(res => {
if (res.data) {
this.test_list = res.data this.test_list = res.data
} }
}
) )
}, },
// 设置项目链接 // 设置项目链接
...@@ -670,7 +679,11 @@ export default { ...@@ -670,7 +679,11 @@ export default {
return return
} }
this.$API.get(`mesAPI/connection/work_shop/${this.ruleForm.project_no}/`).then(res => { this.$API.get(`mesAPI/connection/work_shop/${this.ruleForm.project_no}/`).then(res => {
if (res.data) {
this.work_list = 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 { ...@@ -680,6 +693,8 @@ export default {
this.ruleForm = {} this.ruleForm = {}
} else { } else {
this.project_list = res.data 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.ruleForm = res.data
} }
this.service_ruleForm.project_no = this.ruleForm.project_no this.service_ruleForm.project_no = this.ruleForm.project_no
...@@ -699,9 +714,11 @@ export default { ...@@ -699,9 +714,11 @@ export default {
this.$API.get(`mesAPI/connection/${e}/`).then(res => { this.$API.get(`mesAPI/connection/${e}/`).then(res => {
if (res.data) { if (res.data) {
this.ruleForm = res.data this.ruleForm = res.data
this.service_ruleForm = {}
} else { } else {
this.ruleForm = {} this.ruleForm = {}
this.ruleForm.project_no = e 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