demo.vue 1.2 KB

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