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