worsoft-frontend-codegen-local-mcp 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,5 +67,28 @@
67
67
  "menuSql": "menu.sql.tpl"
68
68
  }
69
69
  }
70
+ },
71
+ "multi_level_dict": {
72
+ "id": "multi_level_dict",
73
+ "label": "多层级字典模板",
74
+ "description": "字典类多层管理页面,支持父子孙三级和同层多模块 tabs 布局。",
75
+ "templateFiles": {
76
+ "api": "api.md",
77
+ "options": "options.md",
78
+ "form": "表单V2025001.md",
79
+ "list": "表格V2025001.md",
80
+ "menuSql": "权限菜单V2025001.md"
81
+ },
82
+ "runtime": {
83
+ "supported": true,
84
+ "templateDir": "assets/templates/multi_level_dict",
85
+ "files": {
86
+ "api": "api.tpl",
87
+ "options": "options.tpl",
88
+ "form": "form.tpl",
89
+ "list": "index.tpl",
90
+ "menuSql": "menu.sql.tpl"
91
+ }
92
+ }
70
93
  }
71
94
  }
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="layout-padding">
3
3
  <!-- 功能名称:{{FEATURE_TITLE}} -->
4
- <div class="layout-padding-auto layout-padding-view">
4
+ <el-container class="layout-padding-auto layout-padding-view dict-page-body">
5
5
  <el-row>
6
6
  <div class="mb8" style="width: 100%">
7
7
  <el-button icon="folder-add" type="primary" class="ml10" v-auth="'{{PERMISSION_PREFIX}}_add'" @click="formDialogRef.openDialog()">{{ t('common.addBtn') }}</el-button>
@@ -11,40 +11,45 @@
11
11
  </div>
12
12
  </el-row>
13
13
 
14
- <el-table
15
- :data="state.dataList"
16
- v-loading="state.loading"
17
- border
18
- :cell-style="tableStyle.cellStyle"
19
- :header-cell-style="tableStyle.headerCellStyle"
20
- @selection-change="selectionChangeHandle"
21
- @sort-change="sortChangeHandle"
22
- >
23
- <el-table-column type="selection" width="40" align="center" />
24
- <el-table-column type="index" :label="t('common.serial')" width="60" />
25
- <el-table-column
26
- v-for="column in visibleTableColumns"
27
- :key="column.prop"
28
- :prop="column.prop"
29
- :label="resolveLabel(column.labelKey, column.fallbackLabel)"
30
- :min-width="column.width"
31
- show-overflow-tooltip
14
+ <el-main style="padding: 0; min-height: 0;">
15
+ <el-table
16
+ :data="state.dataList"
17
+ v-loading="state.loading"
18
+ border
19
+ height="100%"
20
+ :cell-style="tableStyle.cellStyle"
21
+ :header-cell-style="tableStyle.headerCellStyle"
22
+ @selection-change="selectionChangeHandle"
23
+ @sort-change="sortChangeHandle"
32
24
  >
33
- <template #default="scope">
34
- <dict-tag v-if="column.dictType" :options="getDictOptions(column.dictType)" :value="scope.row[column.prop]" />
35
- <span v-else>{{ scope.row[column.prop] }}</span>
36
- </template>
37
- </el-table-column>
38
- <el-table-column :label="t('common.action')" width="180">
39
- <template #default="scope">
40
- <el-button icon="edit-pen" text type="primary" v-auth="'{{PERMISSION_PREFIX}}_edit'" @click="formDialogRef.openDialog(scope.row.{{PK_ATTR}})">{{ t('common.editBtn') }}</el-button>
41
- <el-button icon="delete" text type="primary" v-auth="'{{PERMISSION_PREFIX}}_del'" @click="handleDelete([scope.row.{{PK_ATTR}}])">{{ t('common.delBtn') }}</el-button>
42
- </template>
43
- </el-table-column>
44
- </el-table>
25
+ <el-table-column type="selection" width="40" align="center" />
26
+ <el-table-column type="index" :label="t('common.serial')" width="60" />
27
+ <el-table-column
28
+ v-for="column in visibleTableColumns"
29
+ :key="column.prop"
30
+ :prop="column.prop"
31
+ :label="resolveLabel(column.labelKey, column.fallbackLabel)"
32
+ :min-width="column.width"
33
+ show-overflow-tooltip
34
+ >
35
+ <template #default="scope">
36
+ <dict-tag v-if="column.dictType" :options="getDictOptions(column.dictType)" :value="scope.row[column.prop]" />
37
+ <span v-else>{{ scope.row[column.prop] }}</span>
38
+ </template>
39
+ </el-table-column>
40
+ <el-table-column :label="t('common.action')" width="180">
41
+ <template #default="scope">
42
+ <el-button icon="edit-pen" text type="primary" v-auth="'{{PERMISSION_PREFIX}}_edit'" @click="formDialogRef.openDialog(scope.row.{{PK_ATTR}})">{{ t('common.editBtn') }}</el-button>
43
+ <el-button icon="delete" text type="primary" v-auth="'{{PERMISSION_PREFIX}}_del'" @click="handleDelete([scope.row.{{PK_ATTR}}])">{{ t('common.delBtn') }}</el-button>
44
+ </template>
45
+ </el-table-column>
46
+ </el-table>
47
+ </el-main>
45
48
 
46
- <pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" v-bind="state.pagination" />
47
- </div>
49
+ <el-footer style="height: auto; padding: 10px 0 0 0; flex-shrink: 0;">
50
+ <pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" v-bind="state.pagination" />
51
+ </el-footer>
52
+ </el-container>
48
53
 
49
54
  <form-dialog ref="formDialogRef" @refresh="getDataList(false)" />
50
55
  <upload-excel ref="excelUploadRef" :title="t('common.importBtn')" url="/{{API_PATH}}/import" temp-url="/admin/sys-file/local/file/{{FUNCTION_NAME}}.xlsx" @refreshDataList="getDataList" />
@@ -109,3 +114,9 @@ const handleDelete = async (ids: string[]) => {
109
114
  }
110
115
  };
111
116
  </script>
117
+
118
+ <style scoped>
119
+ .dict-page-body {
120
+ min-height: calc(100vh - 140px);
121
+ }
122
+ </style>