Commit e7f624ce authored by 黄贤军's avatar 黄贤军

本机id

parent ad914ec9
...@@ -5,7 +5,7 @@ var erpAPI = 'http://47.100.21.215:40402' ...@@ -5,7 +5,7 @@ var erpAPI = 'http://47.100.21.215:40402'
var authAPI = 'http://47.110.145.204:8095/' var authAPI = 'http://47.110.145.204:8095/'
// var erPiUrl = 'http://47.100.21.215:40402' // var erPiUrl = 'http://47.100.21.215:40402'
var mesAPI = 'http://47.110.145.204:8109/' // 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' var mockAPI = 'http://47.110.145.204:8082/mock/239'
module.exports = { module.exports = {
build: { build: {
......
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
<el-form-item label="密码" prop="name"> <el-form-item label="密码" prop="name">
<el-input class="demo" type="password" v-model="ruleForm.db_password"></el-input> <el-input class="demo" type="password" v-model="ruleForm.db_password"></el-input>
</el-form-item>
<el-form-item label="本机IP" prop="name">
<el-input class="demo" v-model="ruleForm.host_ip"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="TIIP数据库名" prop="name"> <el-form-item label="TIIP数据库名" prop="name">
<el-input class="demo" v-model="ruleForm.tiip_db_name"></el-input> <el-input class="demo" v-model="ruleForm.tiip_db_name"></el-input>
...@@ -266,10 +269,11 @@ export default { ...@@ -266,10 +269,11 @@ export default {
) )
}, },
updata() { updata() {
console.log(111)
}, },
test(str) { test(str) {
this.$API.get(`mesAPI/connection/${this.ruleForm.project_no}/${str}`).then(res => { console.log(11)
var url = `${this.ruleForm.project_no}/${str}`
this.$API.get(`mesAPI/connection/${url}/`).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.$message.error(res.data.message)
} }
......
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