index.vue 1.6 KB

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