| | |
| | | type="primary"
|
| | | plain
|
| | | icon="Download"
|
| | | :disabled="multiple"
|
| | | @click="handleGenTable"
|
| | | v-hasPermi="['tool:gen:code']"
|
| | | >生成</el-button>
|
| | | </el-col>
|
| | | <el-col :span="1.5">
|
| | | <el-button
|
| | | type="primary"
|
| | | plain
|
| | | icon="Plus"
|
| | | @click="openCreateTable"
|
| | | v-hasRole="['admin']"
|
| | | >创建</el-button>
|
| | | </el-col>
|
| | | <el-col :span="1.5">
|
| | | <el-button
|
| | |
| | | </el-tabs>
|
| | | </el-dialog>
|
| | | <import-table ref="importRef" @ok="handleQuery" />
|
| | | <create-table ref="createRef" @ok="handleQuery" />
|
| | | </div>
|
| | | </template>
|
| | |
|
| | |
| | | import { listTable, previewTable, delTable, genCode, synchDb } from "@/api/tool/gen";
|
| | | import router from "@/router";
|
| | | import importTable from "./importTable";
|
| | | import createTable from "./createTable";
|
| | |
|
| | | const route = useRoute();
|
| | | const { proxy } = getCurrentInstance();
|
| | |
| | | function openImportTable() {
|
| | | proxy.$refs["importRef"].show();
|
| | | }
|
| | | /** 打开创建表弹窗 */
|
| | | function openCreateTable() {
|
| | | proxy.$refs["createRef"].show();
|
| | | }
|
| | | /** 重置按钮操作 */
|
| | | function resetQuery() {
|
| | | dateRange.value = [];
|