user_pan_task_data.php 983 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. $account_task_id = Dever::input('set')['account_task_id'] ?? 0;
  3. $type = Dever::input('set')['type'] ?? '转存';
  4. $button = $data_button = array();
  5. if ($type == '分享') {
  6. $button = array
  7. (
  8. '取消分享' => array('api', 'pan/task.delete'),
  9. '导入分享' => array('api', 'pan/task.import'),
  10. );
  11. $data_button = array
  12. (
  13. '取消分享' => array('api', 'pan/task.delete'),
  14. );
  15. }
  16. return array
  17. (
  18. 'source' => 'pan/task_data',
  19. 'list' => array
  20. (
  21. 'where' => array('account_task_id' => $account_task_id),
  22. 'field' => array
  23. (
  24. 'file_name',
  25. 'share_url',
  26. 'cdate',
  27. ),
  28. 'button' => $button,
  29. 'data_button' => $data_button,
  30. 'search' => array
  31. (
  32. 'file_name',
  33. 'share_url',
  34. ),
  35. 'export' => array
  36. (
  37. 'out' => '导出',
  38. ),
  39. ),
  40. );