若依开源1.1.1发布
This commit is contained in:
21
src/main/resources/static/ruoyi/system/post/add.js
Normal file
21
src/main/resources/static/ruoyi/system/post/add.js
Normal file
@ -0,0 +1,21 @@
|
||||
$("#form-post-add").validate({
|
||||
rules:{
|
||||
postCode:{
|
||||
required:true,
|
||||
},
|
||||
postName:{
|
||||
required:true,
|
||||
},
|
||||
postSort:{
|
||||
required:true,
|
||||
},
|
||||
},
|
||||
submitHandler:function(form){
|
||||
add();
|
||||
}
|
||||
});
|
||||
|
||||
/** 岗位管理-新增岗位 */
|
||||
function add() {
|
||||
_ajax_save("/system/post/save", $("#form-post-add").serialize());
|
||||
}
|
Reference in New Issue
Block a user