user_pan_task.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?php
  2. $extend = Dever::load('common', 'manage')->extend();
  3. $uid = $extend['data_id'];
  4. $account_id = Dever::input('set')['account_id'] ?? 0;
  5. return array
  6. (
  7. 'source' => 'pan/task',
  8. 'list' => array
  9. (
  10. 'where' => array('uid' => $uid),
  11. 'field' => array
  12. (
  13. 'name',
  14. 'type',
  15. 'status',
  16. 'cdate',
  17. ),
  18. 'button' => array
  19. (
  20. '新增' => array('fastadd', array('uid' => $uid, 'account_id' => $account_id)),
  21. ),
  22. 'data_button' => array
  23. (
  24. '编辑' => 'fastedit',
  25. '数据' => array('route', array
  26. (
  27. 'path' => 'user_tool_manage/user_pan_task_data',
  28. 'param' => array
  29. (
  30. 'set' => array('account_id' => 'account_id', 'account_task_id' => 'id', 'type' => 'type', 'menu' => 'user_tool_manage/user_tool_list', 'parent' => 'user_tool_manage/user_pan_account.user_tool_manage/user_pan_task', 'parent_param' => array('account_id' => $account_id, 'menu' => 'user_tool_manage/user_tool_list')),
  31. ),
  32. ), 'ChatLineSquare'),
  33. '执行' => array('api', 'pan/task.run', '', 'status=1'),
  34. '重新执行' => array('api', 'pan/task.run', '', 'status=3'),
  35. ),
  36. 'search' => array
  37. (
  38. 'name',
  39. 'type',
  40. ),
  41. ),
  42. 'update' => array
  43. (
  44. 'control' => array
  45. (
  46. 'oper_ext' => array
  47. (
  48. 'type' => 2,
  49. ),
  50. 'oper_filter' => array
  51. (
  52. 'type' => 2,
  53. ),
  54. 'path' => array
  55. (
  56. 'mul' => 1,
  57. ),
  58. 'file' => array
  59. (
  60. 'mul' => 2,
  61. ),
  62. 'save_path' => array
  63. (
  64. 'type' => 1,
  65. ),
  66. ),
  67. 'field' => array
  68. (
  69. 'uid' => array
  70. (
  71. 'type' => 'hidden',
  72. ),
  73. 'account_id' => array
  74. (
  75. 'type' => 'hidden',
  76. ),
  77. 'name' => array
  78. (
  79. 'rules' => true,
  80. ),
  81. 'type' => array
  82. (
  83. 'type' => 'radio',
  84. 'rules' => true,
  85. 'control' => true,
  86. ),
  87. 'mul' => array
  88. (
  89. 'type' => 'radio',
  90. 'rules' => true,
  91. 'control' => true,
  92. ),
  93. 'path' => array
  94. (
  95. 'type' => 'textarea',
  96. //'rules' => true,
  97. 'autosize' => array('minRows' => 4),
  98. 'desc' => '如有提取码,请用换行隔开填写',
  99. ),
  100. 'file' => array
  101. (
  102. 'type' => 'upload',
  103. //'rules' => true,
  104. 'upload' => 4,
  105. 'yun' => true,
  106. 'multiple' => false,
  107. 'tip' => '',
  108. 'style' => 'list',
  109. 'desc' => '请上传excel文件,A列为链接,B列为提取码(可为空)',
  110. ),
  111. 'save_path' => array
  112. (
  113. 'type' => 'textarea',
  114. 'autosize' => array('minRows' => 4),
  115. 'desc' => '如果为空,就是保存到根目录',
  116. ),
  117. /*
  118. 'oper' => array
  119. (
  120. 'rules' => true,
  121. ),*/
  122. 'oper_ext' => array
  123. (
  124. 'type' => 'textarea',
  125. 'autosize' => array('minRows' => 4),
  126. 'desc' => '输入要保留的资源后缀,如mp4,多个用换行隔开,目录请输入dir,文件请输入file,不输入则不限制后缀',
  127. ),
  128. 'oper_filter' => array
  129. (
  130. 'type' => 'textarea',
  131. 'autosize' => array('minRows' => 4),
  132. 'desc' => '输入后将过滤掉包括该名称的资源,多个用换行隔开',
  133. ),
  134. ),
  135. ),
  136. );