worsoft-frontend-codegen-local-mcp 0.1.18 → 0.1.20

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.
@@ -6,7 +6,7 @@
6
6
  <el-button icon="folder-add" type="primary" class="ml10" @click="handleCreate">{{ t('common.addBtn') }}</el-button>
7
7
  <el-button plain icon="upload-filled" type="primary" class="ml10" @click="excelUploadRef.show()">{{ t('common.importBtn') }}</el-button>
8
8
  <el-button plain :disabled="multiple" icon="Delete" type="primary" @click="handleDelete(selectObjs)">{{ t('common.delBtn') }}</el-button>
9
- <right-toolbar v-model:showSearch="showSearch" :export="'{{PERMISSION_PREFIX}}_export'" @exportExcel="exportExcel" @queryTable="getDataList" class="ml10 mr20" style="float: right;" />
9
+ <right-toolbar :export="'{{PERMISSION_PREFIX}}_export'" @exportExcel="exportExcel" class="ml10 mr20" style="float: right;" />
10
10
  </div>
11
11
 
12
12
  <div style="flex: 1; overflow: hidden; display: flex; flex-direction: column;">
@@ -71,7 +71,6 @@ const { t } = useI18n();
71
71
  const router = useRouter();
72
72
 
73
73
  const excelUploadRef = ref();
74
- const showSearch = ref(true);
75
74
  const selectObjs = ref([]) as any;
76
75
  const multiple = ref(true);
77
76
 
@@ -7,7 +7,7 @@
7
7
  <el-button icon="folder-add" type="primary" class="ml10" v-auth="'{{PERMISSION_PREFIX}}_add'" @click="formDialogRef.openDialog()">{{ t('common.addBtn') }}</el-button>
8
8
  <el-button plain icon="upload-filled" type="primary" class="ml10" v-auth="'{{PERMISSION_PREFIX}}_add'" @click="excelUploadRef.show()">{{ t('common.importBtn') }}</el-button>
9
9
  <el-button plain :disabled="multiple" icon="Delete" type="primary" v-auth="'{{PERMISSION_PREFIX}}_del'" @click="handleDelete(selectObjs)">{{ t('common.delBtn') }}</el-button>
10
- <right-toolbar v-model:showSearch="showSearch" :export="'{{PERMISSION_PREFIX}}_export'" @exportExcel="exportExcel" @queryTable="getDataList" class="ml10 mr20" style="float: right;" />
10
+ <right-toolbar :export="'{{PERMISSION_PREFIX}}_export'" @exportExcel="exportExcel" class="ml10 mr20" style="float: right;" />
11
11
  </div>
12
12
  </el-row>
13
13
 
@@ -67,7 +67,6 @@ const FormDialog = defineAsyncComponent(() => import('./form.vue'));
67
67
 
68
68
  const formDialogRef = ref();
69
69
  const excelUploadRef = ref();
70
- const showSearch = ref(true);
71
70
  const selectObjs = ref([]) as any;
72
71
  const multiple = ref(true);
73
72
 
@@ -6,7 +6,7 @@
6
6
  <el-button icon="folder-add" type="primary" class="ml10" v-auth="'{{PERMISSION_PREFIX}}_add'" @click="handleCreate">{{ t('common.addBtn') }}</el-button>
7
7
  <el-button plain icon="upload-filled" type="primary" class="ml10" v-auth="'{{PERMISSION_PREFIX}}_add'" @click="excelUploadRef.show()">{{ t('common.importBtn') }}</el-button>
8
8
  <el-button plain :disabled="multiple" icon="Delete" type="primary" v-auth="'{{PERMISSION_PREFIX}}_del'" @click="handleDelete(selectObjs)">{{ t('common.delBtn') }}</el-button>
9
- <right-toolbar v-model:showSearch="showSearch" :export="'{{PERMISSION_PREFIX}}_export'" @exportExcel="exportExcel" @queryTable="getDataList" class="ml10 mr20" style="float: right;" />
9
+ <right-toolbar :export="'{{PERMISSION_PREFIX}}_export'" @exportExcel="exportExcel" class="ml10 mr20" style="float: right;" />
10
10
  </div>
11
11
 
12
12
  <div style="flex: 1; overflow: hidden; display: flex; flex-direction: column;">
@@ -71,7 +71,6 @@ const { t } = useI18n();
71
71
  const router = useRouter();
72
72
 
73
73
  const excelUploadRef = ref();
74
- const showSearch = ref(true);
75
74
  const selectObjs = ref([]) as any;
76
75
  const multiple = ref(true);
77
76
 
package/mcp_server.js CHANGED
@@ -5,7 +5,7 @@ const fs = require('fs');
5
5
  const path = require('path');
6
6
 
7
7
  const SERVER_NAME = 'worsoft-codegen-local';
8
- const SERVER_VERSION = '0.1.18';
8
+ const SERVER_VERSION = '0.1.20';
9
9
  const PROTOCOL_VERSION = '2024-11-05';
10
10
  const TOOL_NAME = 'worsoft_codegen_local_generate_frontend';
11
11
  const TEMPLATE_LIBRARY_ROOT = path.resolve(__dirname, '..', 'template');
@@ -524,30 +524,11 @@ function getDictRegistryReference(dictType, keyByValue) {
524
524
  return `DictRegistry.${key}`;
525
525
  }
526
526
 
527
- function isAuditField(fieldName) {
528
- return [
529
- 'id',
530
- 'tenant_id',
531
- 'version',
532
- 'create_time',
533
- 'update_time',
534
- 'create_user_id',
535
- 'update_user_id',
536
- 'create_user',
537
- 'update_user',
538
- 'create_pos_id',
539
- 'create_pos',
540
- 'create_dpt_id',
541
- 'create_dpt',
542
- 'create_ogn_id',
543
- 'create_ogn',
544
- 'create_psm_full_id',
545
- 'create_psm_full_name',
546
- 'update_psm_full_id',
547
- 'update_psm_full_name',
548
- 'del_flag',
549
- ].includes(fieldName);
550
- }
527
+ function isAuditField(fieldName) {
528
+ return [
529
+ 'del_flag',
530
+ ].includes(fieldName);
531
+ }
551
532
 
552
533
  function findDictType(comment) {
553
534
  return extractDictType(comment);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worsoft-frontend-codegen-local-mcp",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "Worsoft frontend local-template code generation MCP server.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "worsoft <sw@worsoft.vip>",