Your Name 2 anos atrás
pai
commit
88b7029c7e

+ 7 - 4
service/agent/database/dh_order.php

@@ -25,10 +25,13 @@ if ($mid) {
         '返回上一页' => array('location', 'l=project/database/list&project=agent&table=member_area&page_type=1&mid=' . $mid),
     );
 }else{
-    $button = array
-    (
-        '数据导出' => array('excel', 'agent/lib/dhorder.out_dhorder'),
-    );
+    if(Dever::load('manage/auth')->checkFunc('agent.dh_order', 'editQorderout', '数据导出')){
+        $button = array
+        (
+            '数据导出' => array('excel', 'agent/lib/dhorder.out_dhorder'),
+        );
+    }
+    
 }
 $list2_button = array();
 if (Dever::load('manage/auth')->checkFunc('agent.dh_order', 'edit', '审核')){

+ 3 - 1
service/agent/database/member_goods.php

@@ -47,7 +47,9 @@ if ($search_api_mid) {
         // $info = Dever::load('agent/lib/member')->getInfoString($mid);
     }
 }
-$button['数据导出'] = array('excel', 'agent/lib/dhorder.out_member_goods');
+if(Dever::load('manage/auth')->checkFunc('agent.member_goods', 'editMout', '数据导出')){
+    $button['数据导出'] = array('excel', 'agent/lib/dhorder.out_member_goods');
+}
 return array
 (
     # 表名

+ 7 - 4
service/agent/database/order.php

@@ -122,10 +122,13 @@ if ($pmid) {
         '返回上一页' => array('location', 'l=project/database/list&project=agent&table=member_area&page_type=1&mid=' . $pmid),
     );
 }else{
-    $button = array
-    (
-        '数据导出' => array('excel', 'agent/lib/order.out_order'),
-    );
+    if(Dever::load('manage/auth')->checkFunc('agent.order', 'editorderout', '数据导出')){
+        $button = array
+        (
+            '数据导出' => array('excel', 'agent/lib/order.out_order'),
+        );
+    }
+    
 }
 
 

+ 4 - 1
service/bill/database/cash.php

@@ -49,7 +49,10 @@ if ($mid) {
     //     '发放资金' => array('fast', '', 'push_cash&search_option_mid=' . $mid),
     // );
 }
-$button['数据导出'] = array('excel', 'bill/lib/cash.out_cash');
+if(Dever::load('manage/auth')->checkFunc('menu_244.menu_245', 'editCout', '数据导出')){
+    $button['数据导出'] = array('excel', 'bill/lib/cash.out_cash');
+}
+
 $list_button = array();
 $list_button['list'] = array('查看详情', '"push_cash&project=bill&id={id}&page_type=1&[refer]"');
 if (Dever::load('manage/auth')->checkFunc('bill.tixian', 'edit', '审核')) {

+ 8 - 9
service/bill/database/shop_stat.php

@@ -1,10 +1,11 @@
 <?php
 
-// if (Dever::load('manage/auth')->checkFunc('bill.member_stat', 'edit1', '导出数据')) {
-//     $excel = true;
-// }else{
-//     $excel = false;
-// }
+if (Dever::load('manage/auth')->checkFunc('bill.shop_stat', 'editSout', '导出数据')) {
+    'button' => array
+        (
+            '数据导出' => array('excel','bill/lib/manage.out_shop_stat'),
+        ),
+}
 $shop = function()
 {
     $array = array();
@@ -198,10 +199,8 @@ $config = array
         'delete' => false,
         'num' => false,
         // 'excel' => $excel,
-        'button' => array
-        (
-            '数据导出' => array('excel','bill/lib/manage.out_shop_stat'),
-        ),
+        'button' => $button,
+        
     ),
 
     # request 请求接口定义