465f15000fafaa5f8b0ea72ce46c06d2-js.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php /*a:2:{s:64:"D:\phpEnv\www\SCM-API\app\admin\view\general\category\index.html";i:1750736984;s:52:"D:\phpEnv\www\SCM-API\app\admin\view\layout\vue.html";i:1750736984;}*/ ?>
  2. import table from "http://yun.cn/assets/js/components/Table.js";
  3. export default{
  4. components:{'YunTable':table},
  5. data:{
  6. extend:{
  7. index_url: 'general/category/index',
  8. add_url: 'general/category/add',
  9. edit_url: 'general/category/edit',
  10. del_url: 'general/category/del',
  11. multi_url: 'general/category/multi'
  12. },
  13. columns:[
  14. {checkbox: true},
  15. {field: 'id',title:'ID',width:80},
  16. {field: 'type', title: __('所属分组'),width:120,searchList:Yunqi.data.typeList,formatter:Yunqi.formatter.tag},
  17. {field: 'name',title:__('名称'),formatter:function(data){
  18. let html=Yunqi.formatter.html;
  19. html.value=data.replace(/&nbsp;/g,'&nbsp;&nbsp;');
  20. return html;
  21. }},
  22. {field: 'nickname',title:__('昵称')},
  23. {field: 'image', title: __('图片'),width:90,formatter: function (data){
  24. let image=Yunqi.formatter.image;
  25. image.value=data;
  26. image.width=30;
  27. image.height=30;
  28. return image;
  29. }},
  30. {field: 'weigh', title: __('权重'),width:80},
  31. {field: 'status', title: __('状态'),width:120,searchList: {'normal': __('正常'),'hidden': __('隐藏')},formatter:Yunqi.formatter.switch},
  32. {treeExpand:true},
  33. {
  34. field: 'operate',
  35. title: __('操作'),
  36. width:150,
  37. action:{sort:true,edit:true,del:true}
  38. }
  39. ]
  40. },
  41. methods: {
  42. }
  43. }