Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
0eaf10d0
提交
0eaf10d0
编写于
7月 15, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update 先changeStatus 再remindPortalCheck
上级
3bf32794
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
68 行增加
和
38 行删除
+68
-38
fetch.js
src/utils/fetch.js
+2
-2
item-manager.vue
src/views/education/item-manager.vue
+66
-36
未找到文件。
src/utils/fetch.js
浏览文件 @
0eaf10d0
...
...
@@ -54,8 +54,8 @@ service.interceptors.request.use(config => {
}
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
//
config.headers['token'] = '367F0B613A604751AC94CE12CD4E0E53';
config
.
headers
[
'token'
]
=
'9E2D6A95B90043D9A2FC7A5DE4FE47F2'
;
config
.
headers
[
'token'
]
=
'367F0B613A604751AC94CE12CD4E0E53'
;
//
config.headers['token'] = '9E2D6A95B90043D9A2FC7A5DE4FE47F2';
}
else
{
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
}
...
...
src/views/education/item-manager.vue
浏览文件 @
0eaf10d0
...
...
@@ -360,54 +360,84 @@ export default {
}
});
}
else
{
if
(
type
===
8
)
{
//取消审批值对应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
();
}
});
}
//
if (type === 8) {
//
//取消审批值对应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
=
{
projectId
:
projectId
,
changeStatus
:
type
changeStatus
:
vm
.
getType
(
type
)
};
vm
.
POST
(
"portal/portalInfo/changeStatus"
,
req
).
then
(
res
=>
{
vm
.
$message
.
info
(
res
.
message
);
if
(
res
.
code
==
"000000"
)
{
console
.
log
(
res
);
vm
.
getProjectList
();
//changeStatus之后remindPortalCheck
if
(
type
==
4
||
type
==
6
||
type
==
8
)
{
//发送消息
let
warnType
=
""
;
if
(
type
==
4
)
{
warnType
=
3
;
}
else
if
(
type
==
6
)
{
warnType
=
4
;
}
else
if
(
type
==
8
)
{
warnType
=
5
;
}
let
req
=
{
portalProjectId
:
projectId
,
warnType
:
warnType
};
vm
.
GET
(
"portal/portalCheck/remindPortalCheck"
,
req
).
then
(
res
=>
{
vm
.
$message
.
info
(
res
.
message
);
if
(
res
.
code
==
"000000"
)
{
vm
.
getProjectList
();
}
});
}
}
});
}
},
getType
(
value
)
{
let
data
=
value
;
if
(
data
==
8
)
{
data
=
2
;
}
return
data
;
},
//删除项目
delItem
(
row
)
{
let
req
=
{};
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录