850798457b160ab6c5175b681676f077-js.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php /*a:2:{s:70:"D:\phpEnv\www\Gong-Ying-Lian-API\app\admin\view\auth\depart\index.html";i:1750736984;s:63:"D:\phpEnv\www\Gong-Ying-Lian-API\app\admin\view\layout\vue.html";i:1750736984;}*/ ?>
  2. import table from "http://yun.cn/assets/js/components/Table.js";
  3. import auth from "http://yun.cn/assets/js/components/Auth.js";
  4. const doCheck=function (tree,checkKey){
  5. tree.forEach(res=>{
  6. checkKey.push(res.id);
  7. if(res.children && res.children.length>0){
  8. doCheck(res.children,checkKey);
  9. }
  10. });
  11. }
  12. export default{
  13. components:{'YunTable':table,'Auth':auth},
  14. data:{
  15. auth:{
  16. add:Yunqi.auth.check('app\\admin\\controller\\auth\\Depart','add'),
  17. edit:Yunqi.auth.check('app\\admin\\controller\\auth\\Depart','edit'),
  18. del:Yunqi.auth.check('app\\admin\\controller\\auth\\Depart','del'),
  19. multi:Yunqi.auth.check('app\\admin\\controller\\auth\\Depart','multi'),
  20. download:Yunqi.auth.check('app\\admin\\controller\\auth\\Depart','download'),
  21. },
  22. extend:{
  23. index_url: 'auth/depart/index',
  24. add_url: 'auth/depart/add',
  25. edit_url: 'auth/depart/edit',
  26. del_url: 'auth/depart/del',
  27. multi_url: 'auth/depart/multi',
  28. download_url: 'auth/depart/download',
  29. },
  30. columns:[
  31. {checkbox: true},
  32. {field: 'id',title: __('ID'),width:80},
  33. {field: 'name', title: __('名称'),align:'left'},
  34. {field: 'description', title: __('描述')},
  35. {field: 'status', title: __('状态'),searchList: {'normal': __('正常'),'hidden': __('隐藏')},formatter:Yunqi.formatter.switch},
  36. {treeExpand: true},
  37. {
  38. field: 'operate',
  39. title: __('操作'),
  40. width:150,
  41. action:{
  42. edit:true,
  43. del:true
  44. }
  45. }
  46. ]
  47. },
  48. methods: {
  49. }
  50. }