其他功能优化
This commit is contained in:
parent
471f7f4870
commit
1263023c46
@ -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>
|
||||||
@ -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();
|
||||||
},
|
},
|
||||||
/** 导入按钮操作 */
|
/** 导入按钮操作 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user