优化代码生成器table高度适应

This commit is contained in:
jxx
2020-01-06 12:02:50 +08:00
parent 2aafa65948
commit 7155c0253f
2 changed files with 5 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ let data = {
{ "title": "明细表名", "field": "detailName" }
],
[
{ "title": "连接字段", "field": "expressField" },
{ "title": "快捷编辑字段", "field": "expressField" ,placeholder:"字段可直接点击表格编辑或查看"},
{ "title": "排序字段", "field": "sortName", "placeholder": "非自增主键需要输入排序字段" },
{ "title": "还没想好", "field": "richtitle" }
],

View File

@@ -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) {