Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
Mogui
提交
1d47b571
M
Mogui
项目概览
纵之格
/
Mogui
通知
3
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
Mogui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
1d47b571
编写于
8月 17, 2017
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
时区设置
上级
33e20216
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
44 addition
and
36 deletion
+44
-36
mogui/settings.py
mogui/settings.py
+2
-2
mogui/settings.pyc
mogui/settings.pyc
+0
-0
mogui/view/v1/release/index.html
mogui/view/v1/release/index.html
+42
-34
未找到文件。
mogui/settings.py
浏览文件 @
1d47b571
...
...
@@ -123,13 +123,13 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE
=
'zh-Hans'
TIME_ZONE
=
'
UTC
'
TIME_ZONE
=
'
Asia/Shanghai
'
USE_I18N
=
True
USE_L10N
=
True
USE_TZ
=
Tru
e
USE_TZ
=
Fals
e
# Static files (CSS, JavaScript, Images)
...
...
mogui/settings.pyc
浏览文件 @
1d47b571
无法预览此类型文件
mogui/view/v1/release/index.html
浏览文件 @
1d47b571
...
...
@@ -102,49 +102,57 @@ new Vue({
*/
handle_release
:
function
(
release_id
,
project_id
,
handle_type
)
{
this
.
loading
=
true
;
this
.
$
http
.
post
(
__host__
+
'
release/handle_release
'
,
{
csrfmiddlewaretoken
:
'
{{ csrf_token }}
'
,
release_id
:
release_id
,
project_id
:
project_id
,
handle_type
:
handle_type
},
{
emulateJSON
:
true
}).
then
((
response
)
=>
var
type_msg
=
(
handle_type
==
1
)
?
'
正式发布上线
'
:
'
回滚到上一次保留的状态
'
;
this
.
$
confirm
(
'
此操作将
'
+
type_msg
+
'
, 是否继续?
'
,
'
提示
'
,
{
console
.
log
(
response
.
data
);
if
(
response
.
data
.
code
==
0
)
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
this
.
loading
=
true
;
this
.
$http
.
post
(
__host__
+
'
release/handle_release
'
,
{
csrfmiddlewaretoken
:
'
{{ csrf_token }}
'
,
release_id
:
release_id
,
project_id
:
project_id
,
handle_type
:
handle_type
},
{
emulateJSON
:
true
}).
then
((
response
)
=>
{
this
.
$message
({
showClose
:
true
,
message
:
response
.
data
.
msg
,
type
:
'
success
'
});
setTimeout
(
function
()
{
window
.
location
.
reload
();
},
1000
);
}
else
{
// git错误提示信息
if
(
response
.
data
.
tips
.
length
>
0
)
console
.
log
(
response
.
data
);
if
(
response
.
data
.
code
==
0
)
{
this
.
$
notify
({
title
:
notify_error_titl
e
,
message
:
response
.
data
.
tips
,
duration
:
0
this
.
$
message
({
showClose
:
tru
e
,
message
:
response
.
data
.
msg
,
type
:
'
success
'
});
}
setTimeout
(
function
()
{
window
.
location
.
reload
();
},
1000
);
}
else
{
// git错误提示信息
if
(
response
.
data
.
tips
.
length
>
0
)
{
this
.
$notify
({
title
:
notify_error_title
,
message
:
response
.
data
.
tips
,
duration
:
0
});
}
this
.
$message
({
showClose
:
true
,
message
:
response
.
data
.
msg
,
type
:
'
warning
'
});
}
this
.
loading
=
false
;
},
(
response
)
=>
{
this
.
$message
({
showClose
:
true
,
message
:
response
.
data
.
msg
,
type
:
'
warning
'
message
:
error_
msg
,
type
:
'
error
'
});
}
this
.
loading
=
false
;
},
(
response
)
=>
{
this
.
$message
({
showClose
:
true
,
message
:
error_msg
,
type
:
'
error
'
this
.
loading
=
false
;
});
this
.
loading
=
false
;
});
}).
catch
(()
=>
{});
},
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录