其他功能优化

This commit is contained in:
izory 2021-11-20 15:39:24 +08:00
parent 471f7f4870
commit 1263023c46
2 changed files with 16 additions and 19 deletions

View File

@ -9,10 +9,10 @@
<thead> <thead>
<tr> <tr>
<th class="is-leaf"> <th class="is-leaf">
<div class="cell">属性</div> 属性
</th> </th>
<th class="is-leaf"> <th class="is-leaf">
<div class="cell"></div>
</th> </th>
</tr> </tr>
</thead> </thead>
@ -51,10 +51,10 @@
<thead> <thead>
<tr> <tr>
<th class="is-leaf"> <th class="is-leaf">
<div class="cell">属性</div> 属性
</th> </th>
<th class="is-leaf"> <th class="is-leaf">
<div class="cell">内存</div> 内存
</th> </th>
</tr> </tr>
</thead> </thead>
@ -158,7 +158,7 @@
<div class="cell" v-if="server.app">{{ server.app.name }}</div> <div class="cell" v-if="server.app">{{ server.app.name }}</div>
</td> </td>
<td> <td>
<div class="cell">.NetCore版本</div> <div class="cell">.Net版本</div>
</td> </td>
<td> <td>
<div class="cell" v-if="server.app">{{ server.app.version }}</div> <div class="cell" v-if="server.app">{{ server.app.version }}</div>
@ -338,3 +338,12 @@ export default {
}, },
}; };
</script> </script>
<style scoped>
table tr {
height: 30px;
}
.is-leaf {
text-align: left;
padding: 0 10px;
}
</style>

View File

@ -10,11 +10,6 @@
<el-form-item label="表名"> <el-form-item label="表名">
<el-input v-model="queryParams.tableName" clearable placeholder="输入要查询的表名" /> <el-input v-model="queryParams.tableName" clearable placeholder="输入要查询的表名" />
</el-form-item> </el-form-item>
<!-- <el-form-item label="去掉表名前缀:">
<el-tooltip class="item" effect="dark" content="表名直接变为类名,去掉表名前缀。" placement="bottom">
<el-input v-model="codeform.replaceTableNameStr" clearable width="300" placeholder="例如sys_" />
</el-tooltip>
</el-form-item> -->
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleQuery()">查询</el-button> <el-button type="primary" @click="handleQuery()">查询</el-button>
<!-- <el-button type="default" icon="el-icon-refresh" size="small" @click="loadTableData()">刷新</el-button> --> <!-- <el-button type="default" icon="el-icon-refresh" size="small" @click="loadTableData()">刷新</el-button> -->
@ -62,10 +57,7 @@ export default {
rules: { rules: {
dbName: [ dbName: [
{ required: true, message: "请选择数据库名称", trigger: "blur" }, { required: true, message: "请选择数据库名称", trigger: "blur" },
], ]
// replaceTableNameStr: [
// { min: 0, max: 50, message: "50", trigger: "blur" },
// ],
}, },
}; };
}, },
@ -85,16 +77,13 @@ export default {
// //
getList() { getList() {
codeGetDBList().then((res) => { codeGetDBList().then((res) => {
const { dbList, defaultDb } = res.data; const { dbList } = res.data;
// this.queryParams.dbName =
// this.queryParams.dbName !== "" ? defaultDb : "";
this.dbList = dbList; this.dbList = dbList;
}); });
if (this.queryParams.dbName !== "") { if (this.queryParams.dbName !== "") {
listDbTable(this.queryParams).then((res) => { listDbTable(this.queryParams).then((res) => {
this.dbTableList = res.data.result; this.dbTableList = res.data.result;
this.total = res.data.totalNum; this.total = res.data.totalNum;
// this.tableloading = false;
}); });
} }
}, },
@ -109,7 +98,6 @@ export default {
this.handleQuery(); this.handleQuery();
}, },
handleShowTable() { handleShowTable() {
// console.log(json)
this.handleQuery(); this.handleQuery();
}, },
/** 导入按钮操作 */ /** 导入按钮操作 */