km-system-configure.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <a-card>
  3. <sd-oa-table
  4. ref="dataTable"
  5. form-id="kmSystemConfig"
  6. page-id="km/admin/kmSystemConfig"
  7. :columns="columns"
  8. :actions="actions"
  9. show-selection
  10. :search-fields="['name']"
  11. >
  12. <template v-slot:form>
  13. <sd-form-item name="name"></sd-form-item>
  14. <sd-form-item name="value"></sd-form-item>
  15. <sd-form-item name="funDescription"></sd-form-item>
  16. <sd-form-item name="valDescription"></sd-form-item>
  17. </template>
  18. </sd-oa-table>
  19. </a-card>
  20. </template>
  21. <script>
  22. import TableActionTypes from '@/common/services/table-action-types'
  23. import components from './_import-components/km-system-configure-import'
  24. export default {
  25. name: 'KmSystemConfigure',
  26. metaInfo: {
  27. title: '系统参数配置',
  28. },
  29. components,
  30. data() {
  31. return {
  32. columns: [
  33. {
  34. title: '关键字',
  35. dataIndex: 'name',
  36. },
  37. {
  38. title: '值',
  39. dataIndex: 'value',
  40. },
  41. {
  42. title: '参数功能说明',
  43. dataIndex: 'funDescription',
  44. },
  45. ],
  46. actions: [
  47. {
  48. label: '编辑',
  49. id: 'read',
  50. type: TableActionTypes.inline,
  51. callback: this.rowClick,
  52. },
  53. {
  54. label: '新建',
  55. id: 'new',
  56. type: TableActionTypes.oa.create, // 新建按钮,不需要回调,自动处理
  57. },
  58. {
  59. label: '删除',
  60. id: 'delete',
  61. type: TableActionTypes.oa.delete, // 删除按钮,不需要回调,会自动处理
  62. },
  63. ],
  64. }
  65. },
  66. methods: {
  67. rowClick(record) {
  68. this.$refs.dataTable.showDetailModal(record.id)
  69. },
  70. },
  71. }
  72. </script>
  73. <style module lang="scss">
  74. @use '@/common/design' as *;
  75. </style>