From d27fbd63d7840787d7f3ca5333b6e24dc3a860d4 Mon Sep 17 00:00:00 2001 From: mh-two-thousand-and-two <17391232786@163.com> Date: 星期五, 29 三月 2024 18:43:30 +0800 Subject: [PATCH] 第二次提交 --- pages/zhongyi/zhongyi.vue | 44 +++++++++++++++++++++++++------------------- 1 files changed, 25 insertions(+), 19 deletions(-) diff --git a/pages/zhongyi/zhongyi.vue b/pages/zhongyi/zhongyi.vue index 3162ec3..e39dc81 100644 --- a/pages/zhongyi/zhongyi.vue +++ b/pages/zhongyi/zhongyi.vue @@ -2,7 +2,7 @@ <el-container> <!-- 澶撮儴 --> <el-header> - <div style=" + <view style=" display: flex; height: 50px; width: 100%; @@ -10,34 +10,34 @@ align-items: center; background-color: #C98A49; "> - <div class="header-one" style="padding-left: 1.5%; "> + <view class="header-one" style="padding-left: 1.5%; "> <i class="el-icon-s-unfold" style="font-size: 24px;"></i> - </div> - <div class="header-two" style="font-size: 20px; color: aliceblue"> + </view> + <view class="header-two" style="font-size: 20px; color: aliceblue"> 涓尰涓栧尰浼犳壙鏁版嵁搴� - </div> - <div class="header-three"> - <div> + </view> + <view class="header-three"> + <view> <i class="el-icon-search" style="font-size: 24px; "></i> <i class="el-icon-question" style="font-size: 24px;"></i> <i class="el-icon-user-solid" style="font-size: 24px;"></i> - </div> - </div> - </div> - <div class="huawenimg"> - </div> + </view> + </view> + </view> + <view class="huawenimg"> + </view> </el-header> <!-- 涓讳綋閮ㄥ垎 --> <el-main> - <div style=" + <view style=" display: flex; justify-content: center; border-bottom: 1px solid gray;"> - <div style="display: flex; justify-content: flex-start; margin-right: auto"> + <view style="display: flex; justify-content: flex-start; margin-right: auto"> <el-button class="button" @click="hideNodesAndLinks()">杩斿洖</el-button> - </div> + </view> <!-- 娣诲姞涓�涓猣lex瀹瑰櫒鏉ュ寘瑁筫l-menu锛屽苟璁剧疆鍏秄lex灞炴�т互鍗犳嵁鍓╀綑绌洪棿 --> - <div style="display: flex; justify-content: center; flex: 1;"> + <view style="display: flex; justify-content: center; flex: 1;"> <!-- 杩欓噷鏄彍鍗曠殑鍒囨崲 --> <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect"> @@ -49,8 +49,8 @@ <router-link to="zhongyitwo" class="router-link-active"> 涓栧尰鏂囧寲</router-link></el-menu-item> </el-menu> - </div> - </div> + </view> + </view> <router-view> </router-view> </el-main> @@ -58,7 +58,13 @@ </template> <script> import * as echarts from "echarts"; - export default {} + export default { + data() { + return { + activeIndex:1 + } + } + } </script> <style scoped> .huawenimg { -- Gitblit v1.9.1