123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /**
- * 作业区
- *
- */
- $.namespace("zyq.main");
- zyq.main.init=function(){
- //把form传入,构造翻页控件
- pageinfo($("#zyqform"));
- };
- zyq.main.search=function(){
- $('#pagejump').val(1);
- $("#zyqform").submit();
- };
- zyq.main.del=function(data){
- $.confirm({
- title: '确认框',
- content: '确认删除吗',
- confirm: function(){
- $.post($.app + "/zyq/delete", {
- id : data
- }, function(data) {
- if (data.success) {
- $.alert({
- title: '提示',
- content: '删除成功',
- confirm: function(){
- $("#zyqform").submit();
- }
- });
- } else {
- $.alert({
- title: '提示',
- content: data.message,
- confirm: function(){
-
- }
- });
- }
- }, "json");
- },
- cancel: function(){
-
- }
- });
- }
- zyq.main.edit=function(data){
- location.href=$.app+"/zyq/edit?id="+data;
- }
- zyq.main.view=function(data){
- location.href=$.app+"/zyq/view?id="+data;
- }
- /**
- * 弹出新增页面
- * */
- zyq.main.add=function(){
- location.href=$.app+"/zyq/add";
- }
|