소스 검색

添加分类刷新

sugar1569 7 년 전
부모
커밋
0a560a4422
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      application/admin/controller/store/StoreCategory.php

+ 2 - 0
application/admin/controller/store/StoreCategory.php

@@ -61,6 +61,8 @@ class StoreCategory extends AuthController
             Form::radio('is_show','状态',1)->options([['label'=>'显示','value'=>1],['label'=>'隐藏','value'=>0]])
         ]);
         $form->setMethod('post')->setTitle('添加分类');
+        $form->setMethod('post')->setTitle('添加产品')->setSuccessScript('parent.$(".J_iframe:visible")[0].contentWindow.location.reload();');
+
         $this->assign(compact('form'));
         return $this->fetch('public/form-builder');
     }