From c30b850bdf5c48a2279f293d414850c32501192a Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期一, 29 四月 2024 16:25:25 +0800 Subject: [PATCH] 修改首页样式 --- vue.config.js | 4 ++-- src/page/wel.vue | 17 ++++++++++------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/page/wel.vue b/src/page/wel.vue index 882532a..03cdf33 100644 --- a/src/page/wel.vue +++ b/src/page/wel.vue @@ -41,7 +41,7 @@ </div> </div> <el-card class="box-card todo-card"> - <el-row> + <el-row style="height: 100%;"> <el-col :span="12"> <ul class="type-box"> <li v-for="(m,i) in tabList" :key="i" :class="{active:current == i}" @click="changeTab(m,i)">{{ m }}</li> @@ -100,13 +100,15 @@ </template> </el-calendar> </el-col> - <el-col :span="12" style="padding: 16px 20px;box-sizing: border-box;height: 100%;overflow-y: auto;"> + <el-col :span="12" style="padding: 16px 20px;box-sizing: border-box;height: 100%;"> <div class="todo-span"><span>寰呭姙</span></div> - <div class="todo-info" v-for="(item,index) in todoList" :key="index" v-show="todoList.length>0"> - <div class="todo-info-state"></div> - <span>{{ item }}</span> + <div style="height: calc(100% - 30px);overflow-y: auto;"> + <div class="todo-info" v-for="(item,index) in todoList" :key="index" v-show="todoList.length>0"> + <div class="todo-info-state"></div> + <span>{{ item }}</span> + </div> + <span class="no-info" v-if="todoList.length==0">鏆傛棤</span> </div> - <span class="no-info" v-if="todoList.length==0">鏆傛棤</span> </el-col> </el-row> </el-card> @@ -185,7 +187,8 @@ height: 65vh; overflow: hidden; >>>.el-card__body{ - padding: 0px 0px 5px + padding: 0px 0px 5px; + height: 100%; } .todo-span{ height:17px; diff --git a/vue.config.js b/vue.config.js index 366ce9b..e27d858 100644 --- a/vue.config.js +++ b/vue.config.js @@ -5,9 +5,9 @@ -// const url = 'https://ztms-mes.chinaztt.cn/' +const url = 'https://ztms-mes.chinaztt.cn/' // const url = 'http://localhost:9999' -const url = 'http://192.168.32.45:9999' +// const url = 'http://192.168.32.45:9999' const localUrl = 'http://localhost:8089' -- Gitblit v1.9.3