From ccd7b3c5b24fa115a732ea915e2e586de717ea1c Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期一, 26 九月 2022 21:39:43 +0800 Subject: [PATCH] 完成logo管理 --- src/views/systemSetting/platform/mySetting/index.vue | 158 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 155 insertions(+), 3 deletions(-) diff --git a/src/views/systemSetting/platform/mySetting/index.vue b/src/views/systemSetting/platform/mySetting/index.vue index 8b407a0..b221b7f 100644 --- a/src/views/systemSetting/platform/mySetting/index.vue +++ b/src/views/systemSetting/platform/mySetting/index.vue @@ -1,5 +1,157 @@ <template> - <div> - + <div class="mySetting"> + <!-- header 椤甸潰鏍囬鎻愮ず --> + <header> + <div class="headerTitle">绯荤粺璁剧疆 >> 闂ㄦ埛绠$悊 > 鑷畾涔夎彍鍗曡缃�</div> + </header> + <!-- main 鍐呭灞曠ず鍖� --> + <main> + <div class="mainContent"> + <!-- 渚ц竟瀵艰埅鏍� --> + <div class="aside"> + <div class="asideItem" v-for="(item,index) in menuList" :key="item.id" @click="getContent(index)"> + <h4>{{item.title}}</h4> + <!-- 瀛愯彍鍗� --> + <ul class="menu"> + <li class="menuItem" v-for="(son,sonIndex) in item.children" + @click.stop="getContent(index,sonIndex)"> + <span>{{son.title}}</span> + </li> + </ul> + </div> + </div> + <!-- 鑿滃崟璁剧疆 --> + <div class="content"> + <h4>鑿滃崟绠$悊-{{article.title}}</h4> + <!-- 瀛愯彍鍗曢」鐩� --> + <ul class="edit"> + <li class="editItem"> + <label>鍚嶇О:</label> + <span>{{article.name}}</span> + </li> + <li class="editItem"> + <label>鎻忚堪:</label> + <span>{{article.description}}</span> + </li> + <li class="editItem"> + <label>鏄惁鏄剧ず鑿滃崟:</label> + <span>{{article.hidden===0 ? '鍚�':'鏄�' }}</span> + </li> + </ul> + </div> + </div> + </main> </div> -</template> \ No newline at end of file +</template> +<script> +export default { + data() { + return { + menuList: [], + article: [], + } + }, + created() { + const { getMenuList } = this; + getMenuList(); + }, + methods: { + // 鑾峰彇鑿滃崟鍒楄〃 + getMenuList() { + // this.$axios({ + // method: 'get', + // url: 'sccg/system/portal/menu/search', + // data: { + // current: 1, + // size: 10, + // } + // }).then(res => { + // console.log(res); + // const { data } = res; + // this.menuList = data; + // this.getContent(0); + // }) + }, + // 鍒囨崲鑿滃崟鍐呭灞曠ず + getContent(index, sonIndex = null) { + if (sonIndex === null) { + this.article = this.menuList[index]; + return; + } + this.article = this.menuList[index][sonIndex]; + } + } +} +</script> +<style lang="scss" scoped> +.mySetting { + text-align: left; + color: #4b9bb7; + + header { + line-height: 60px; + padding: 0 20px; + } + + main { + .mainContent { + display: flex; + + li { + list-style: none; + } + + .aside { + width: 200px; + border: 1px solid #fff; + padding: 20px; + height: calc(100vh - 120px); + + .asideItem { + h4 { + line-height: 40px; + margin: 0; + } + + ul { + padding: 0; + margin: 0; + } + + .menu { + .menuItem { + line-height: 30px; + } + } + } + } + + .content { + flex: 1; + margin-left: 100px; + + h4 { + margin: 0; + line-height: 80px; + } + + ul { + padding: 0; + margin: 0; + } + + .edit { + .editItem { + line-height: 40px; + display: flex; + + span { + margin-left: 10px; + } + } + } + } + } + } +} +</style> \ No newline at end of file -- Gitblit v1.8.0