Skip to content

Commit 8bf77ff

Browse files
author
奇淼(piexlmax
authored
Merge pull request #688 from flipped-aurora/gva-vue3
去除表名空格
2 parents aee0fec + f16d845 commit 8bf77ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web/src/view/systemTools/autoCode/index.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
</el-dialog>
145145

146146
<el-dialog v-model="previewFlag">
147-
<PreviewCodeDialg v-if="previewFlag" :preview-code="preViewCode" />
147+
<PreviewCodeDialog v-if="previewFlag" :preview-code="preViewCode" />
148148
<template #footer>
149149
<div class="dialog-footer">
150150
<el-button type="primary" @click="previewFlag = false">确 定</el-button>
@@ -169,7 +169,7 @@ const fieldTemplate = {
169169
}
170170
171171
import FieldDialog from '@/view/systemTools/autoCode/component/fieldDialog.vue'
172-
import PreviewCodeDialg from '@/view/systemTools/autoCode/component/previewCodeDialg.vue'
172+
import PreviewCodeDialog from '@/view/systemTools/autoCode/component/previewCodeDialg.vue'
173173
import { toUpperCase, toHump, toSQLLine } from '@/utils/stringFun'
174174
import { createTemp, getDB, getTable, getColumn, preview, getMeta } from '@/api/autoCode'
175175
import { getDict } from '@/utils/dictionary'
@@ -178,7 +178,7 @@ export default {
178178
name: 'AutoCode',
179179
components: {
180180
FieldDialog,
181-
PreviewCodeDialg
181+
PreviewCodeDialog
182182
},
183183
data() {
184184
return {
@@ -307,6 +307,7 @@ export default {
307307
this.$refs.autoCodeForm.validate(async valid => {
308308
if (valid) {
309309
this.form.structName = toUpperCase(this.form.structName)
310+
if (this.form.tableName) { this.form.tableName = this.form.tableName.replace(' ', '') }
310311
if (this.form.structName === this.form.abbreviation) {
311312
this.$message({
312313
type: 'error',

0 commit comments

Comments
 (0)