|
@@ -23,7 +23,25 @@
|
|
|
layer.msg("请输入项目名称",{icon:3});
|
|
|
throw SyntaxError;
|
|
|
}
|
|
|
- $("#inputForm").submit();
|
|
|
+ layer.msg('加载中', {
|
|
|
+ icon: 16
|
|
|
+ ,shade: 0.01
|
|
|
+ ,offset:['35%','36%']
|
|
|
+ });
|
|
|
+ $.ajax({
|
|
|
+ type: "post",
|
|
|
+ url: "${ctx}/project/tem/verfiy",
|
|
|
+ // contentType: 'application/x-www-form-urlencoded;charset=utf-8',
|
|
|
+ data: {projectName:$("#inputwrite").val(),projectId:$("#newText1").val()},
|
|
|
+ dataType: "json",
|
|
|
+ success: function(data){
|
|
|
+ if(data.code=="1"){
|
|
|
+ $("#inputForm").submit();
|
|
|
+ }else{
|
|
|
+ layer.msg(data.msg, {icon: 5,offset:['33%','33%']});
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
$(document).ready(function() {
|
|
|
// 选择文件触发事件
|