Commit 011ebc6b authored by hangjun83's avatar hangjun83

前端:页面样式调整

parent e159d7c4
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
} }
.operation button { .operation button {
width: 150px; width: 130px;
height: 40px; height: 35px;
} }
.select-count { .select-count {
......
...@@ -2,10 +2,17 @@ ...@@ -2,10 +2,17 @@
.operation { .operation {
margin-bottom: 2vh; margin-bottom: 2vh;
height: 80vh; height: 80vh;
overflow-y: auto;
} }
.operation form input { .content {
width: 550px; margin-bottom: 2vh;
height: 80vh;
width: 50vw;
}
.content form input {
width: 350px;
height: 35px; height: 35px;
} }
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
</style> </style>
<template> <template>
<div class="search"> <div class="search">
<Row type="flex" justify="start" :gutter="24" v-show="showType == 'tree'"> <Row type="flex" justify="start" :gutter="24" v-show="showType == 'tree'" :style="{ maxHeight: maxHeight }">
<Col :sm="10" :md="10" :lg="10" :xl="8"> <Col :sm="12" :md="12" :lg="12" :xl="10" >
<Card class="operation"> <Card class="operation">
<Row align="middle" justify="start"> <Row align="middle" justify="start">
<div> <div>
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
<a class="select-clear" v-show="form.id && editTitle" @click="cancelEdit">取消选择</a> <a class="select-clear" v-show="form.id && editTitle" @click="cancelEdit">取消选择</a>
</template> </template>
</Alert> </Alert>
<div style="position: relative"> <div style="position: relative;">
<div class="tree-bar" :style="{ maxHeight: maxHeight }"> <div class="tree-bar">
<Tree ref="tree" :data="data" show-checkbox :render="renderContent" @on-select-change="selectTree" @on-check-change="changeSelect" :check-strictly="!strict"></Tree> <Tree ref="tree" :data="data" show-checkbox :render="renderContent" @on-select-change="selectTree" @on-check-change="changeSelect" :check-strictly="!strict"></Tree>
</div> </div>
<Spin size="large" fix v-if="loading"></Spin> <Spin size="large" fix v-if="loading"></Spin>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</Card> </Card>
</Col> </Col>
<Col :sm="18" :md="18" :lg="18" :xl="11"> <Col :sm="18" :md="18" :lg="18" :xl="11">
<Card class="operation" bordered shadow> <Card class="content" bordered shadow>
<Row> <Row>
<Icon type="ios-apps" style="display:inline-block;padding-top:5px;"/> <Icon type="ios-apps" style="display:inline-block;padding-top:5px;"/>
<span style="display:inline-block;padding-left:15px;font-size:16px;font-weight:bold;color:#252b2d">菜单编辑</span> <span style="display:inline-block;padding-left:15px;font-size:16px;font-weight:bold;color:#252b2d">菜单编辑</span>
...@@ -417,6 +417,7 @@ export default { ...@@ -417,6 +417,7 @@ export default {
} }
let str = JSON.stringify(v[0]); let str = JSON.stringify(v[0]);
let data = JSON.parse(str); let data = JSON.parse(str);
console.info(data)
this.form = data; this.form = data;
this.editTitle = data.title; this.editTitle = data.title;
} else { } else {
...@@ -620,7 +621,7 @@ export default { ...@@ -620,7 +621,7 @@ export default {
mounted() { mounted() {
// 计算高度 // 计算高度
let height = document.documentElement.clientHeight; let height = document.documentElement.clientHeight;
this.maxHeight = Number(height - 287) + "px"; this.maxHeight = Number(height - 237) + "px";
this.init(); this.init();
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment