Commit 8a1ac087 authored by 黄贤军's avatar 黄贤军

bug修改

parent 23c2f929
Pipeline #21408 passed with stage
in 1 minute and 9 seconds
......@@ -24,7 +24,7 @@
<el-input class="demo" v-model="ruleForm.host_ip"></el-input>
</el-form-item>
<el-form-item label="TIIP数据库名" prop="name">
<el-input class="demo" placeholder="(非必填)" v-model="ruleForm.tiip_db_name"></el-input>
<el-input class="demo" placeholder="TIIP数据库名" v-model="ruleForm.tiip_db_name"></el-input>
<el-button style="margin-left: 40px" type="primary" @click="test(ruleForm.tiip_db_name)">测试连接</el-button>
</el-form-item>
<el-form-item label="MES数据库名" prop="name">
......@@ -122,10 +122,10 @@
<el-input class="demo" v-model="remote_server.server_ssh_port"></el-input>
</el-form-item>
<el-form-item label="数据库用户名" prop="name">
<el-form-item label="linux登录用户名" prop="name">
<el-input class="demo" v-model="remote_server.server_user"></el-input>
</el-form-item>
<el-form-item label="数据库密码" prop="name">
<el-form-item label="linux登录密码" prop="name">
<el-input class="demo" type="password" v-model="remote_server.server_password"></el-input>
</el-form-item>
<el-form-item>
......@@ -328,10 +328,12 @@ export default {
// 设置项目链接
set_project() {
this.$API.post(`mesAPI/connection/`, {}, {}, this.ruleForm).then(res => {
if (res.data.message === '保存成功') { this.$message.success(res.data.message) } else {
if (res.data.message === '保存成功') {
this.$message.success(res.data.message)
} else {
this.$message.error(res.data.message)
this.get_project()
}
this.get_project()
})
},
// 获取项目链接
......
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