mirror of
https://gitee.com/x_discoverer/Vue.NetCore.git
synced 2025-12-06 15:59:41 +08:00
优化代码生成器table高度适应
This commit is contained in:
@@ -72,7 +72,7 @@ let data = {
|
||||
{ "title": "明细表名", "field": "detailName" }
|
||||
],
|
||||
[
|
||||
{ "title": "连接字段", "field": "expressField" },
|
||||
{ "title": "快捷编辑字段", "field": "expressField" ,placeholder:"字段可直接点击表格编辑或查看"},
|
||||
{ "title": "排序字段", "field": "sortName", "placeholder": "非自增主键需要输入排序字段" },
|
||||
{ "title": "还没想好", "field": "richtitle" }
|
||||
],
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
ref="table"
|
||||
:paginationHide="true"
|
||||
:tableData="data"
|
||||
:height="600"
|
||||
:height="tableHeight"
|
||||
:columns="layOutOptins.columns"
|
||||
:color="false"
|
||||
:index="true"
|
||||
@@ -132,7 +132,7 @@ export default {
|
||||
},
|
||||
addModel: false,
|
||||
helpModel: false,
|
||||
tableHeight: 200,
|
||||
tableHeight: 500,
|
||||
addOptions: builderData.form.addOptions,
|
||||
layOutOptins: {
|
||||
fileds: builderData.form.fields,
|
||||
@@ -420,6 +420,8 @@ export default {
|
||||
},
|
||||
mounted() {},
|
||||
created() {
|
||||
let clientHeight = document.documentElement.clientHeight - 170;
|
||||
this.tableHeight = clientHeight < 400 ? 400 : clientHeight;
|
||||
this.http
|
||||
.post("/api/Sys_Dictionary/GetBuilderDictionary", {}, true)
|
||||
.then(dic => {
|
||||
@@ -437,8 +439,6 @@ export default {
|
||||
});
|
||||
|
||||
builderData.form.fields.vuePath = this.getVuePath();
|
||||
let clientHeight = document.documentElement.clientHeight - 425;
|
||||
this.tableHeight = clientHeight < 200 ? 150 : clientHeight;
|
||||
this.http.post("/api/builder/GetTableTree", {}, false).then(x => {
|
||||
this.tree = JSON.parse(x.list);
|
||||
if (!x.nameSpace) {
|
||||
|
||||
Reference in New Issue
Block a user