提交 d359421e authored 作者: Your Name's avatar Your Name

日志

上级 a27f46f8
...@@ -4,12 +4,14 @@ ...@@ -4,12 +4,14 @@
// 服务地址 // 服务地址
// const IP = 'https://www.easy-mock.com/mock/5b70ec93ad23a1570071a34e/Interview'; // easymock // const IP = 'https://www.easy-mock.com/mock/5b70ec93ad23a1570071a34e/Interview'; // easymock
const IP = 'http://192.168.1.54:8077'; const IP = 'http://192.168.0.116:8077';
const WS = '192.168.0.116:8077';
// 请求目标服务器域名配置 // 请求目标服务器域名配置
const DOMAIN_NAME = { const DOMAIN_NAME = {
URL_CNODEJS: IP, // 网关 服务端口 URL_CNODEJS: IP, // 网关 服务端口
WS_CONT: WS
}; };
export default DOMAIN_NAME; export default DOMAIN_NAME;
...@@ -38,7 +38,8 @@ export default { ...@@ -38,7 +38,8 @@ export default {
// 这里存放数据 // 这里存放数据
return { return {
tech: '', tech: '',
isCheck: false, isCheck: '',
itemId: ''
}; };
}, },
// 方法集合 // 方法集合
...@@ -47,11 +48,23 @@ export default { ...@@ -47,11 +48,23 @@ export default {
this.$emit('on-close'); this.$emit('on-close');
}, },
check(i) { check(i) {
console.log('选中') console.log('选中',i)
this.isCheck = i; this.isCheck = i;
}, },
makeSure() { makeSure() {
let a = this.applyId;
let b = this.isCheck + 1;
let obj = {
id: a,
techId: b
}
this.$server.postMidify(obj).then(res => {
console.log('postMidify',res.data);
this.$emit('on-close');
}).catch(err => {
console.log(err)
this.$message.error('请求失败')
})
} }
}, },
// 监听属性 类似于data概念 // 监听属性 类似于data概念
......
...@@ -21,8 +21,20 @@ const server = { ...@@ -21,8 +21,20 @@ const server = {
method: 'get' method: 'get'
}) })
}, },
midify() { // 技术路线 postMidify(data) { // 项目修改
return axios('/project/midify/', { return axios('/project/modify', {
method: 'post',
data: data
})
},
setPath(data) { // 修改路径
return axios('/project/setPath', {
method: 'post',
data: data
})
},
getDeploy(id) { // 获取项目详情
return axios('/project/deploy/' + id, {
method: 'get' method: 'get'
}) })
}, },
......
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论