123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- /**
- *
- **/
- $.namespace("hxhbtj.main");
-
- hxhbtj.main.path=null;
-
- hxhbtj.main.init=function(){
- };
- hxhbtj.main.search=function(){
- $("#hxhbtjform").submit();
- };
-
- hxhbtj.main.view=function(id){
- location.href=$.app+"/hxhbtj/view?id="+id;
- };
-
- hxhbtj.main.del=function(data){
- $.confirm({
- title: '确认框',
- content: '确认删除吗',
- confirm: function(){
- $.post($.app + "/hxhbtj/delete", {
- id : data
- }, function(data) {
- if (data.success) {
- $.alert({
- title: '提示',
- content: '操作成功',
- confirm: function(){
- $("#hxhbtjform").submit();
- }
- });
- } else {
- $.alert({
- title: '提示',
- content: data.message,
- confirm: function(){
- }
- });
- }
- }, "json");
- },
- cancel: function(){
- }
- });
- };
-
- hxhbtj.main.back=function(){
- if( hxhbtj.main.path!=null&& hxhbtj.main.path!='') {
- location.href=$.app+ hxhbtj.main.path;
- } else {
- location.href=$.app+"/hxhbtj/main";
- }
- };
- hxhbtj.main.add=function(){
- location.href=$.app+"/hxhbtj/add";
- };
- hxhbtj.main.edit=function(data){
- location.href=$.app+"/hxhbtj/edit?id="+data;
- };
|