mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-13 11:53:48 +00:00
refactor: 1. 移除图片附件模块 2. 优化import
This commit is contained in:
@@ -266,13 +266,20 @@
|
||||
</template>
|
||||
|
||||
<script setup name="${BusinessName}" lang="ts">
|
||||
import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName} } from "@/api/${moduleName}/${businessName}";
|
||||
import { ${BusinessName}VO, ${BusinessName}Query, ${BusinessName}Form } from '@/api/${moduleName}/${businessName}/types';
|
||||
import { ComponentInternalInstance } from 'vue';
|
||||
import { ElForm, ElTable } from 'element-plus';
|
||||
import {
|
||||
add${BusinessName},
|
||||
${BusinessName}Form,
|
||||
get${BusinessName},
|
||||
list${BusinessName},
|
||||
${BusinessName}Query,
|
||||
update${BusinessName},
|
||||
${BusinessName}VO
|
||||
} from "@/api/";
|
||||
import {ComponentInternalInstance} from 'vue';
|
||||
import {ElForm, ElTable} from 'element-plus';
|
||||
|
||||
|
||||
type ${BusinessName}Option = {
|
||||
type ${BusinessName}Option = {
|
||||
${treeCode}: number;
|
||||
${treeName}: string;
|
||||
children?: ${BusinessName}Option[];
|
||||
|
||||
@@ -258,19 +258,19 @@
|
||||
</template>
|
||||
|
||||
<script setup name="${BusinessName}" lang="ts">
|
||||
import {
|
||||
add${BusinessName},
|
||||
${BusinessName}Form,
|
||||
get${BusinessName},
|
||||
list${BusinessName},
|
||||
${BusinessName}Query,
|
||||
update${BusinessName},
|
||||
${BusinessName}VO
|
||||
} from '@/api/';
|
||||
import {ComponentInternalInstance} from 'vue';
|
||||
import {ElForm} from 'element-plus';
|
||||
import {
|
||||
add${BusinessName},
|
||||
${BusinessName}Form,
|
||||
get${BusinessName},
|
||||
list${BusinessName},
|
||||
${BusinessName}Query,
|
||||
update${BusinessName},
|
||||
${BusinessName}VO
|
||||
} from '@/api/';
|
||||
import {ComponentInternalInstance} from 'vue';
|
||||
import {ElForm} from 'element-plus';
|
||||
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||
#if(${dicts} != '')
|
||||
#set($dictsNoSymbol=$dicts.replace("'", ""))
|
||||
const { ${dictsNoSymbol} } = toRefs<any>(proxy?.useDict(${dicts}));
|
||||
|
||||
Reference in New Issue
Block a user