未验证 提交 3183f55a 编写于 作者: Mr.奇淼('s avatar Mr.奇淼( 提交者: GitHub

Merge pull request #688 from flipped-aurora/gva-vue3

去除表名空格
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
</el-dialog> </el-dialog>
<el-dialog v-model="previewFlag"> <el-dialog v-model="previewFlag">
<PreviewCodeDialg v-if="previewFlag" :preview-code="preViewCode" /> <PreviewCodeDialog v-if="previewFlag" :preview-code="preViewCode" />
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button type="primary" @click="previewFlag = false">确 定</el-button> <el-button type="primary" @click="previewFlag = false">确 定</el-button>
...@@ -169,7 +169,7 @@ const fieldTemplate = { ...@@ -169,7 +169,7 @@ const fieldTemplate = {
} }
import FieldDialog from '@/view/systemTools/autoCode/component/fieldDialog.vue' import FieldDialog from '@/view/systemTools/autoCode/component/fieldDialog.vue'
import PreviewCodeDialg from '@/view/systemTools/autoCode/component/previewCodeDialg.vue' import PreviewCodeDialog from '@/view/systemTools/autoCode/component/previewCodeDialg.vue'
import { toUpperCase, toHump, toSQLLine } from '@/utils/stringFun' import { toUpperCase, toHump, toSQLLine } from '@/utils/stringFun'
import { createTemp, getDB, getTable, getColumn, preview, getMeta } from '@/api/autoCode' import { createTemp, getDB, getTable, getColumn, preview, getMeta } from '@/api/autoCode'
import { getDict } from '@/utils/dictionary' import { getDict } from '@/utils/dictionary'
...@@ -178,7 +178,7 @@ export default { ...@@ -178,7 +178,7 @@ export default {
name: 'AutoCode', name: 'AutoCode',
components: { components: {
FieldDialog, FieldDialog,
PreviewCodeDialg PreviewCodeDialog
}, },
data() { data() {
return { return {
...@@ -307,6 +307,7 @@ export default { ...@@ -307,6 +307,7 @@ export default {
this.$refs.autoCodeForm.validate(async valid => { this.$refs.autoCodeForm.validate(async valid => {
if (valid) { if (valid) {
this.form.structName = toUpperCase(this.form.structName) this.form.structName = toUpperCase(this.form.structName)
if (this.form.tableName) { this.form.tableName = this.form.tableName.replace(' ', '') }
if (this.form.structName === this.form.abbreviation) { if (this.form.structName === this.form.abbreviation) {
this.$message({ this.$message({
type: 'error', type: 'error',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册