Showing
4 changed files
with
36 additions
and
8 deletions
| 1 | <template> | 1 | <template> |
| 2 | - <div :class="{'has-logo':showLogo}" :style="{ backgroundColor: settings.sideTheme === 'theme-dark' ? variables.menuBg : variables.menuLightBg }"> | 2 | + <div |
| 3 | + :class="{ 'has-logo': showLogo }" | ||
| 4 | + :style="{ | ||
| 5 | + backgroundColor: | ||
| 6 | + settings.sideTheme === 'theme-dark' | ||
| 7 | + ? variables.menuBg | ||
| 8 | + : variables.menuLightBg, | ||
| 9 | + }" | ||
| 10 | + > | ||
| 3 | <logo v-if="showLogo" :collapse="isCollapse" /> | 11 | <logo v-if="showLogo" :collapse="isCollapse" /> |
| 4 | <!-- <el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper"> --> | 12 | <!-- <el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper"> --> |
| 5 | <el-menu | 13 | <el-menu |
| 6 | :default-active="activeMenu" | 14 | :default-active="activeMenu" |
| 7 | :collapse="isCollapse" | 15 | :collapse="isCollapse" |
| 8 | - :background-color="settings.sideTheme === 'theme-dark' ? variables.menuBg : variables.menuLightBg" | 16 | + :background-color=" |
| 9 | - :text-color="settings.sideTheme === 'theme-dark' ? variables.menuText : 'rgba(0,0,0,.65)'" | 17 | + settings.sideTheme === 'theme-dark' |
| 18 | + ? variables.menuBg | ||
| 19 | + : variables.menuLightBg | ||
| 20 | + " | ||
| 21 | + :text-color=" | ||
| 22 | + settings.sideTheme === 'theme-dark' | ||
| 23 | + ? variables.menuText | ||
| 24 | + : 'rgba(0,0,0,.65)' | ||
| 25 | + " | ||
| 10 | :unique-opened="true" | 26 | :unique-opened="true" |
| 11 | :active-text-color="settings.theme" | 27 | :active-text-color="settings.theme" |
| 12 | :collapse-transition="false" | 28 | :collapse-transition="false" |
| ... | @@ -19,6 +35,7 @@ | ... | @@ -19,6 +35,7 @@ |
| 19 | :base-path="route.path" | 35 | :base-path="route.path" |
| 20 | /> | 36 | /> |
| 21 | </el-menu> | 37 | </el-menu> |
| 38 | + <div class="version">version:0.5.1</div> | ||
| 22 | <!-- </el-scrollbar> --> | 39 | <!-- </el-scrollbar> --> |
| 23 | </div> | 40 | </div> |
| 24 | </template> | 41 | </template> |
| ... | @@ -51,7 +68,18 @@ export default { | ... | @@ -51,7 +68,18 @@ export default { |
| 51 | }, | 68 | }, |
| 52 | isCollapse() { | 69 | isCollapse() { |
| 53 | return !this.sidebar.opened; | 70 | return !this.sidebar.opened; |
| 54 | - } | 71 | + }, |
| 55 | - } | 72 | + }, |
| 56 | }; | 73 | }; |
| 57 | </script> | 74 | </script> |
| 75 | + | ||
| 76 | +<style scoped> | ||
| 77 | +.version { | ||
| 78 | + width: 100%; | ||
| 79 | + font-size: 14px; | ||
| 80 | + color: #fff; | ||
| 81 | + position: absolute; | ||
| 82 | + left: 5px; | ||
| 83 | + bottom: 5px; | ||
| 84 | +} | ||
| 85 | +</style> | ... | ... |
| ... | @@ -11,7 +11,7 @@ const service = axios.create({ | ... | @@ -11,7 +11,7 @@ const service = axios.create({ |
| 11 | //baseURL: process.env.VUE_APP_BASE_API, | 11 | //baseURL: process.env.VUE_APP_BASE_API, |
| 12 | //baseURL: 'http://192.168.1.45:8080', | 12 | //baseURL: 'http://192.168.1.45:8080', |
| 13 | baseURL: `http://47.103.140.98:9002`, | 13 | baseURL: `http://47.103.140.98:9002`, |
| 14 | - // baseURL: 'https://imacuat.zmd.apac.fedex.com:9002/IMAC2', | 14 | + // baseURL: 'https://imacuat.zmd.apac.fedex.com/IMAC2', |
| 15 | // baseURL: 'http://192.168.1.134:18080', | 15 | // baseURL: 'http://192.168.1.134:18080', |
| 16 | 16 | ||
| 17 | // 超时 | 17 | // 超时 | ... | ... |
| ... | @@ -5,7 +5,7 @@ const mimeMap = { | ... | @@ -5,7 +5,7 @@ const mimeMap = { |
| 5 | xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', | 5 | xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', |
| 6 | zip: 'application/zip' | 6 | zip: 'application/zip' |
| 7 | } | 7 | } |
| 8 | -// const baseURL = 'https://imacuat.zmd.apac.fedex.com:9002/IMAC2' | 8 | +// const baseUrl = 'https://imacuat.zmd.apac.fedex.com/IMAC2' |
| 9 | const baseUrl = 'http://47.103.140.98:9002' | 9 | const baseUrl = 'http://47.103.140.98:9002' |
| 10 | // const baseUrl = 'http://192.168.1.134:18080' | 10 | // const baseUrl = 'http://192.168.1.134:18080' |
| 11 | export function downLoadZip(str, filename) { | 11 | export function downLoadZip(str, filename) { | ... | ... |
| ... | @@ -35,7 +35,7 @@ module.exports = { | ... | @@ -35,7 +35,7 @@ module.exports = { |
| 35 | proxy: { | 35 | proxy: { |
| 36 | // detail: https://cli.vuejs.org/config/#devserver-proxy | 36 | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| 37 | [process.env.VUE_APP_BASE_API]: { | 37 | [process.env.VUE_APP_BASE_API]: { |
| 38 | - // target: `https://imacuat.zmd.apac.fedex.com:9002/IMAC2`, | 38 | + // target: `https://imacuat.zmd.apac.fedex.com/IMAC2`, |
| 39 | // target: `http://192.168.1.45:8080`, | 39 | // target: `http://192.168.1.45:8080`, |
| 40 | target: `http://47.103.140.98:9002`, | 40 | target: `http://47.103.140.98:9002`, |
| 41 | // target: `http://192.168.1.134:18080`, | 41 | // target: `http://192.168.1.134:18080`, | ... | ... |
-
Please register or login to post a comment