|
@@ -121,7 +121,8 @@ layui.config({
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
title: '添加项目',
|
|
|
- area: ['50%', '70%'],
|
|
|
+ offset:['7%','20%'],
|
|
|
+ area: ['60%', '90%'],
|
|
|
shade: 0.8,
|
|
|
shadeClose: true,
|
|
|
content: '${ctxp}/webpage/modules/sg/project/addItemForm.jsp'
|
|
@@ -153,7 +154,7 @@ layui.config({
|
|
|
});
|
|
|
});
|
|
|
function refresh(){
|
|
|
- window.location.reload();
|
|
|
+ $("#fromSumbit").submit();
|
|
|
}
|
|
|
function addProject(){
|
|
|
layer.prompt({title: '请输入工程名称', formType: 3}, function(text, index){
|
|
@@ -179,6 +180,7 @@ function look(url) {
|
|
|
type: 2,
|
|
|
title: '查看',
|
|
|
area: ['70%', '90%'],
|
|
|
+ offset:['7%','14%'],
|
|
|
shade: 0.8,
|
|
|
|
|
|
shadeClose: true,
|
|
@@ -193,6 +195,7 @@ function update(url) {
|
|
|
type: 2,
|
|
|
title: '修改工程',
|
|
|
area: ['70%', '90%'],
|
|
|
+ offset:['6%','14%'],
|
|
|
shade: 0.8,
|
|
|
shadeClose: true,
|
|
|
fixed: false, //不固定
|
|
@@ -213,6 +216,7 @@ function deleteItem(id) {
|
|
|
layer.msg('你确定要删除吗?', {
|
|
|
icon: 3
|
|
|
, time: 0 //不自动关闭
|
|
|
+ ,offset:['40%','40%']
|
|
|
, btn: ['确定', '取消']
|
|
|
, yes: function (index) {
|
|
|
$.ajax({
|
|
@@ -222,10 +226,11 @@ function deleteItem(id) {
|
|
|
dataType: "json",
|
|
|
success: function (data) {
|
|
|
if (data.success) {
|
|
|
- layer.msg(data.msg, {icon: 6});
|
|
|
- window.location.reload();
|
|
|
+ layer.msg(data.msg, {icon: 6,offset:['40%','40%']},function () {
|
|
|
+ window.location.reload();
|
|
|
+ });
|
|
|
} else {
|
|
|
- layer.msg(data.msg, {icon: 5});
|
|
|
+ layer.msg(data.msg, {icon: 5,offset:['40%','40%']});
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -238,6 +243,7 @@ function deleteProject(id) {
|
|
|
icon: 3
|
|
|
, time: 0 //不自动关闭
|
|
|
, btn: ['确定', '取消']
|
|
|
+ ,offset:['40%','40%']
|
|
|
, yes: function (index) {
|
|
|
$.ajax({
|
|
|
type: "post",
|
|
@@ -246,10 +252,11 @@ function deleteProject(id) {
|
|
|
dataType: "json",
|
|
|
success: function (data) {
|
|
|
if (data.success) {
|
|
|
- layer.msg(data.msg, {icon: 6});
|
|
|
- window.location.reload();
|
|
|
+ layer.msg(data.msg, {icon: 6,offset:['40%','40%']},function () {
|
|
|
+ window.location.reload();
|
|
|
+ })
|
|
|
} else {
|
|
|
- layer.msg(data.msg, {icon: 5});
|
|
|
+ layer.msg(data.msg, {icon: 5,offset:['40%','40%']});
|
|
|
}
|
|
|
}
|
|
|
})
|