fix 代码生成细节修复
This commit is contained in:
parent
02d67c7ac3
commit
8a38eaa7d6
@ -32,7 +32,7 @@
|
||||
</el-button>
|
||||
</div>
|
||||
<el-divider />
|
||||
<el-input :prefix-icon="search" v-model="filterText" placeholder="请输入部门名称" clearable style="margin-bottom: 8px;"/>
|
||||
<el-input :prefix-icon="search" v-model="filterText" placeholder="请输入字典名称" clearable style="margin-bottom: 8px;"/>
|
||||
<el-tree
|
||||
ref="treeRef"
|
||||
class="filter-tree"
|
||||
|
@ -102,7 +102,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import {toRefs, reactive, onMounted, ref, defineComponent} from 'vue';
|
||||
import {ElMessageBox, ElMessage, FormInstance} from 'element-plus';
|
||||
import {ElMessageBox, ElMessage, FormInstance,ElLoading } from 'element-plus';
|
||||
import {getTableList, deleteTables, batchGenCode, syncTable} from "/@/api/system/tools/gen";
|
||||
import {TableData,TableDataState} from "/@/views/system/tools/gen/component/model"
|
||||
import importTable from "/@/views/system/tools/gen/component/importTable.vue";
|
||||
@ -220,11 +220,14 @@ const handleGenTable=(row: TableData|null)=>{
|
||||
type: 'warning',
|
||||
})
|
||||
.then(() => {
|
||||
const loading = ElLoading.service({text:'生成中...'})
|
||||
batchGenCode(ids).then(()=>{
|
||||
ElMessage.success('生成成功');
|
||||
resetMenuSession()
|
||||
tableList();
|
||||
})
|
||||
}).finally(() => {
|
||||
loading.close()
|
||||
})
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user