index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <div>
  3. <basicLayout
  4. ref="basicLayout"
  5. :oldFormPath="{
  6. add:'HManagement/task/modules',
  7. edit:'HManagement/task/modules'
  8. }"
  9. tableName="sys_task"
  10. idName="sys_taskid"
  11. :apiId="{query:20220901162901,del:20221211112601}"
  12. :options="options"
  13. :detailPath="{
  14. path:'/task_detail'
  15. }">
  16. <div slot="custom"></div>
  17. <template v-slot:tbList="scope">
  18. <div>
  19. {{scope.data.column.data[[scope.data.column.columnname]]}}
  20. </div>
  21. </template>
  22. <template v-slot:tbOpreation="scope">
  23. </template>
  24. </basicLayout>
  25. </div>
  26. </template>
  27. <script>
  28. /**
  29. * @basicLayout 提供this.$ref['basicLayout'].listData()方法查询列表信息
  30. * @param {string} formPath 新建,编辑组件所在文件夹名称,以后所有列表新增修改文件统一放入Form文件夹下面,并创建与开发应用相同的名称的子文件夹
  31. * @param {string} tableName 开发端配置的表格名称
  32. * @param {String} idName 数据主id名称
  33. * @param {object} apiId:{query:查询的接口id,del:删除的接口id}
  34. * @param {Array} options:{label:描述,value:值}
  35. */
  36. export default {
  37. data () {
  38. return {
  39. options:[]
  40. }
  41. },
  42. methods:{
  43. }
  44. }
  45. </script>
  46. <style>
  47. </style>