diff --git a/docs/java/VelocityUtils.java b/docs/java/VelocityUtils.java index 73290c75..2f020a30 100644 --- a/docs/java/VelocityUtils.java +++ b/docs/java/VelocityUtils.java @@ -176,11 +176,11 @@ public class VelocityUtils { fileName = StringUtils.format("{}/domain/bo/{}Bo.java", javaPath, className); } if (template.contains("soy.index.vue.vm")) { - fileName = StringUtils.format("soybean/views/{}/{}/index.vue", moduleName, businessName); + fileName = StringUtils.format("soybean/views/{}/{}/index.vue", moduleName, StrUtil.toSymbolCase(businessName, '-')); } else if (template.contains("soy.api.d.ts.vm")) { fileName = StringUtils.format("soybean/typings/api/{}.api.d.ts", moduleName); } else if (template.contains("soy.api.ts.vm")) { - fileName = StringUtils.format("soybean/api/{}/{}.ts", moduleName, businessName); + fileName = StringUtils.format("soybean/api/{}/{}.ts", moduleName, StrUtil.toSymbolCase(businessName, '-')); } else if (template.contains("soy.search.vue.vm")) { fileName = StringUtils.format("soybean/views/{}/{}/modules/{}-search.vue", moduleName, businessName, StrUtil.toSymbolCase(businessName, '-')); } else if (template.contains("soy.operate-drawer.vue.vm")) { diff --git a/docs/template/modules/soy.operate-drawer.vue.vm b/docs/template/modules/soy.operate-drawer.vue.vm index 2f720a53..8f6c869b 100644 --- a/docs/template/modules/soy.operate-drawer.vue.vm +++ b/docs/template/modules/soy.operate-drawer.vue.vm @@ -2,7 +2,7 @@ import { computed, reactive, watch } from 'vue'; import { useFormRules, useNaiveForm } from '@/hooks/common/form'; import { $t } from '@/locales'; -import { fetchCreate${BusinessName}, fetchUpdate${BusinessName} } from '@/service/api/${moduleName}/${businessName}'; +import { fetchCreate${BusinessName}, fetchUpdate${BusinessName} } from '@/service/api/${moduleName}/${business-name}'; #if($dictList && $dictList.size() > 0)import { useDict } from '@/hooks/business/dict';#end defineOptions({ diff --git a/docs/template/soy.index.vue.vm b/docs/template/soy.index.vue.vm index a2803054..0d7fd4f9 100644 --- a/docs/template/soy.index.vue.vm +++ b/docs/template/soy.index.vue.vm @@ -6,8 +6,8 @@ import { useAuth } from '@/hooks/business/auth'; import { useAppStore } from '@/store/modules/app'; import { useDownload } from '@/hooks/business/download'; import { useTable, useTableOperate } from '@/hooks/common/table'; -import ${BusinessName}OperateDrawer from './modules/${business_name}-operate-drawer.vue'; -import ${BusinessName}Search from './modules/${business_name}-search.vue'; +import ${BusinessName}OperateDrawer from './modules/${business-name}-operate-drawer.vue'; +import ${BusinessName}Search from './modules/${business-name}-search.vue'; defineOptions({ name: '${BusinessName}List' diff --git a/src/components/custom/status-switch.vue b/src/components/custom/status-switch.vue index 0d9e7d45..d2856c49 100644 --- a/src/components/custom/status-switch.vue +++ b/src/components/custom/status-switch.vue @@ -51,8 +51,8 @@ const handleUpdateValue = (val: Api.Common.EnableStatus) => { v-model:value="value" :loading="loading" :rubber-band="false" - checked-value="1" - unchecked-value="0" + checked-value="0" + unchecked-value="1" :disabled="props.disabled" @update:value="handleUpdateValue" /> diff --git a/src/components/custom/tenant-select.vue b/src/components/custom/tenant-select.vue index 4fd9cc3c..a23d31a5 100644 --- a/src/components/custom/tenant-select.vue +++ b/src/components/custom/tenant-select.vue @@ -1,16 +1,14 @@