提交 0eaf10d0 编写于 作者: zhentian.jia's avatar zhentian.jia

update 先changeStatus 再remindPortalCheck

上级 3bf32794
...@@ -54,8 +54,8 @@ service.interceptors.request.use(config => { ...@@ -54,8 +54,8 @@ service.interceptors.request.use(config => {
} }
if( process.env.BUILD_ENV == "development" ){ // 本地开发环境 if( process.env.BUILD_ENV == "development" ){ // 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV); // console.log('环境变量>>>> ', process.env.BUILD_ENV);
// config.headers['token'] = '367F0B613A604751AC94CE12CD4E0E53'; config.headers['token'] = '367F0B613A604751AC94CE12CD4E0E53';
config.headers['token'] = '9E2D6A95B90043D9A2FC7A5DE4FE47F2'; // config.headers['token'] = '9E2D6A95B90043D9A2FC7A5DE4FE47F2';
}else{ }else{
config.headers['token'] = localStorage.getItem('storageToken') config.headers['token'] = localStorage.getItem('storageToken')
} }
......
...@@ -360,28 +360,61 @@ export default { ...@@ -360,28 +360,61 @@ export default {
} }
}); });
} else { } else {
if (type === 8) { // if (type === 8) {
//取消审批值对应2 // //取消审批值对应2
type = 2; // type = 2;
// let req = {
// portalProjectId: projectId,
// warnType: 5
// };
// vm.GET("portal/portalCheck/remindPortalCheck", req).then(res => {
// vm.$message.info(res.message);
// if (res.code == "000000") {
// console.log(res);
// vm.getProjectList();
// }
// });
// }
// if (type == 4 || type == 6) {
// //发送消息
// let warnType = "";
// if (type == 4) {
// warnType = 3;
// } else if (type == 6) {
// warnType = 4;
// }
// let req = {
// portalProjectId: projectId,
// warnType: warnType
// };
// vm.GET("portal/portalCheck/remindPortalCheck", req).then(res => {
// vm.$message.info(res.message);
// if (res.code == "000000") {
// console.log(res);
// vm.getProjectList();
// }
// });
// }
let req = { let req = {
portalProjectId: projectId, projectId: projectId,
warnType: 5 changeStatus: vm.getType(type)
}; };
vm.GET("portal/portalCheck/remindPortalCheck", req).then(res => { vm.POST("portal/portalInfo/changeStatus", req).then(res => {
vm.$message.info(res.message); vm.$message.info(res.message);
if (res.code == "000000") { if (res.code == "000000") {
console.log(res); console.log(res);
vm.getProjectList(); vm.getProjectList();
}
}); //changeStatus之后remindPortalCheck
} if (type == 4 || type == 6 || type == 8) {
if (type == 4 || type == 6) {
//发送消息 //发送消息
let warnType = ""; let warnType = "";
if (type == 4) { if (type == 4) {
warnType = 3; warnType = 3;
} else if (type == 6) { } else if (type == 6) {
warnType = 4; warnType = 4;
} else if (type == 8) {
warnType = 5;
} }
let req = { let req = {
portalProjectId: projectId, portalProjectId: projectId,
...@@ -390,24 +423,21 @@ export default { ...@@ -390,24 +423,21 @@ export default {
vm.GET("portal/portalCheck/remindPortalCheck", req).then(res => { vm.GET("portal/portalCheck/remindPortalCheck", req).then(res => {
vm.$message.info(res.message); vm.$message.info(res.message);
if (res.code == "000000") { if (res.code == "000000") {
console.log(res);
vm.getProjectList(); vm.getProjectList();
} }
}); });
} }
let req = {
projectId: projectId,
changeStatus: type
};
vm.POST("portal/portalInfo/changeStatus", req).then(res => {
vm.$message.info(res.message);
if (res.code == "000000") {
console.log(res);
vm.getProjectList();
} }
}); });
} }
}, },
getType(value) {
let data = value;
if(data == 8) {
data = 2;
}
return data;
},
//删除项目 //删除项目
delItem(row) { delItem(row) {
let req = {}; let req = {};
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册