| | |
| | | /* |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-04-07 12:06:03 |
| | | * @FilePath: /smart-web/src/config/index.js |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | */ |
| | | const DEFAULT_CONFIG = { |
| | | //标题 |
| | | APP_NAME: process.env.VUE_APP_TITLE, |
| | |
| | | <template v-else-if="layout=='dock'"> |
| | | <header class="adminui-header"> |
| | | <div class="adminui-header-left"> |
| | | <div class="logo-bar"> |
| | | <img class="logo" src="img/logo.png"> |
| | | <span>{{ $CONFIG.APP_NAME }}</span> |
| | | <div class="logo-bar personalized-logo"> |
| | | <!-- <img class="logo" src="img/logo.png"> |
| | | <span>{{ $CONFIG.APP_NAME }}</span> --> |
| | | <img src="/img/initiallong.b9495273.png" class="img" style="width: 100%; height: 100%;"> |
| | | </div> |
| | | </div> |
| | | <div class="adminui-header-right"> |
| | |
| | | |
| | | <div class="main-maximize-exit" @click="exitMaximize"><el-icon><el-icon-close /></el-icon></div> |
| | | |
| | | <div class="layout-setting" @click="openSetting"><el-icon><el-icon-brush-filled /></el-icon></div> |
| | | <!-- <div class="layout-setting" @click="openSetting"><el-icon><el-icon-brush-filled /></el-icon></div> --> |
| | | |
| | | <el-drawer title="布局实时演示" v-model="settingDialog" :size="400" append-to-body destroy-on-close> |
| | | <setting></setting> |
| | |
| | | .adminui-header-right {display: flex;align-items: center;} |
| | | .adminui-header .logo-bar {font-size: 20px;font-weight: bold;display: flex;align-items: center;} |
| | | .adminui-header .logo-bar .logo {margin-right: 10px;width: 35px;height: 35px;} |
| | | .personalized-logo {width: 422px;height: 58px;} |
| | | .adminui-header .nav {display: flex;height: 100%;margin-left: 40px;} |
| | | .adminui-header .nav li {padding:0 10px;margin: 0 10px 0 0;font-size: 14px;color: rgba(255, 255, 255, 0.6);list-style: none;height: 100%;display: flex;align-items: center;cursor: pointer;} |
| | | .adminui-header .nav li i {margin-right: 5px;} |
| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-04-02 11:56:39 |
| | | * @LastEditTime: 2024-04-07 11:54:15 |
| | | * @FilePath: /smart-web/src/views/master/person/main/index.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | methods: { |
| | | handleSuccess(formAddMenu) { |
| | | this.searchData.parentId = formAddMenu.parentId; |
| | | this.searchClearBtn(); |
| | | this.clearSearch(); |
| | | }, |
| | | tableLoad(row,treeNode,resolve) { |
| | | this.searchData.parentId= row.id; |
| | |
| | | resolve(res.data); |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | clearSearch() { |
| | | this.searchData= { |
| | |
| | | } else { |
| | | // 如果没有 children 属性,说明是最后一级,添加 component 对象 |
| | | var len = clonedItem.path.length; |
| | | clonedItem.component = clonedItem.path.substring(1,len); |
| | | if(item.name == "任务调度") { |
| | | //clonedItem.component = clonedItem.path; //有component不可以使用iframe |
| | | }else { |
| | | clonedItem.component = clonedItem.path.substring(1,len); |
| | | } |
| | | } |
| | | //console.log(clonedItem.source) |
| | | clonedItem.meta = {title: clonedItem.name,icon: "el-icon-takeaway-box", type: "menu"} |
| | | if(item.name == "任务调度") { |
| | | clonedItem.meta = {title: clonedItem.name,icon: "el-icon-takeaway-box", type: "iframe"} |
| | | }else { |
| | | clonedItem.meta = {title: clonedItem.name,icon: "el-icon-takeaway-box", type: "menu"} |
| | | } |
| | | return clonedItem; |
| | | }); |
| | | } |