style: 修改codegen命名

This commit is contained in:
橙子
2024-02-16 21:06:34 +08:00
parent 6675376241
commit 3f1f76b2e8
50 changed files with 141 additions and 143 deletions

View File

@@ -2,14 +2,14 @@ import request from '@/utils/request'
// code to web
export function codeToWeb() {
return request({
url: 'code-gun/code-build-web',
url: 'code-gen/code-build-web',
method: 'post'
})
}
// code to web
export function webToCode(ids) {
return request({
url: 'code-gun/web-build-code',
url: 'code-gen/web-build-code',
method: 'post',
data:ids
})
@@ -18,7 +18,7 @@ export function webToCode(ids) {
// open zhe path
export function openPath(path) {
return request({
url: `code-gun/dir/${encodeURIComponent(path)}`,
url: `code-gen/dir/${encodeURIComponent(path)}`,
method: 'post'
})
}

View File

@@ -61,7 +61,7 @@
plain
icon="Plus"
@click="handleAdd"
v-hasPermi="['codeGun:table:add']"
v-hasPermi="['codeGen:table:add']"
>新增</el-button
>
</el-col>
@@ -72,7 +72,7 @@
icon="Edit"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['codeGun:table:edit']"
v-hasPermi="['codeGen:table:edit']"
>修改</el-button
>
</el-col>
@@ -83,7 +83,7 @@
icon="Delete"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['codeGun:table:remove']"
v-hasPermi="['codeGen:table:remove']"
>删除</el-button
>
</el-col>
@@ -93,7 +93,7 @@
plain
icon="Download"
@click="handleExport"
v-hasPermi="['codeGun:table:export']"
v-hasPermi="['codeGen:table:export']"
>导出</el-button
>
</el-col>
@@ -104,7 +104,7 @@
plain
icon="Switch"
@click="handleExport"
v-hasPermi="['codeGun:table:export']"
v-hasPermi="['codeGen:table:export']"
>同步数据库WebToDb</el-button
>
</el-col> -->
@@ -115,7 +115,7 @@
icon="Switch"
@click="handleWebToCode"
:disabled="ids.length==0"
v-hasPermi="['codeGun:table:export']"
v-hasPermi="['codeGen:table:export']"
>代码生成WebToCode</el-button
>
</el-col>
@@ -126,7 +126,7 @@
plain
icon="Switch"
@click="handleCodeToWeb"
v-hasPermi="['codeGun:table:export']"
v-hasPermi="['codeGen:table:export']"
>实体同步CodeToWeb</el-button
>
</el-col>
@@ -243,7 +243,7 @@ import {
addData,
updateData,
} from "@/api/code/tableApi";
import { codeToWeb,webToCode } from "@/api/code/codeGunApi";
import { codeToWeb,webToCode } from "@/api/code/codeGenApi";
const { proxy } = getCurrentInstance();
const { sys_normal_disable } = proxy.useDict("sys_normal_disable");

View File

@@ -46,7 +46,7 @@
plain
icon="Plus"
@click="handleAdd"
v-hasPermi="['codeGun:template:add']"
v-hasPermi="['codeGen:template:add']"
>新增</el-button
>
</el-col>
@@ -57,7 +57,7 @@
icon="Edit"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['codeGun:template:edit']"
v-hasPermi="['codeGen:template:edit']"
>修改</el-button
>
</el-col>
@@ -68,7 +68,7 @@
icon="Delete"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['codeGun:template:remove']"
v-hasPermi="['codeGen:template:remove']"
>删除</el-button
>
</el-col>
@@ -78,7 +78,7 @@
plain
icon="Download"
@click="handleExport"
v-hasPermi="['codeGun:template:export']"
v-hasPermi="['codeGen:template:export']"
>导出</el-button
>
</el-col>
@@ -145,14 +145,14 @@
type="text"
icon="Edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['codeGun:template:edit']"
v-hasPermi="['codeGen:template:edit']"
>修改</el-button
>
<el-button
type="text"
icon="Delete"
@click="handleDelete(scope.row)"
v-hasPermi="['codeGun:template:remove']"
v-hasPermi="['codeGen:template:remove']"
>删除</el-button
>
</template>
@@ -232,7 +232,7 @@ import {
addData,
updateData,
} from "@/api/code/templateApi";
import {openPath} from "@/api/code/codeGunApi";
import {openPath} from "@/api/code/codeGenApi";
import { ref } from "@vue/reactivity";
import ReplaceText from './components/ReplaceText'
import TempalteTip from './components/TempalteTip.vue'

View File

@@ -6,7 +6,7 @@
该文件为通用Crud模板文件按照规范只需要 替换以下变量即可
租户 实体中文名称
system:tenant crud权限编码
system/tenant : api文件路径,例如codeGun/tableApi
system/tenant : api文件路径,例如codeGen/tableApi
</div> -->
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="租户名称" prop="name">