| | |
| | | <template> |
| | | <div class="log"> |
| | | <header> |
| | | <div class="headerTitle"> |
| | | <!-- <div class="headerTitle"> |
| | | 系统设置 >> 门户管理 > logo管理 |
| | | </div> |
| | | </div> --> |
| | | </header> |
| | | <main> |
| | | <div class="mainTitle">LOGO</div> |
| | |
| | | methods: { |
| | | setPicUrl({ obj, value }) { |
| | | const { icon } = this; |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | const baseUrl = ''; |
| | | for (let key in icon) { |
| | | if (key === value) { |
| | | icon[key] = baseUrl + obj.url1; |
| | |
| | | url: 'sccg/system/portal/logo/add', |
| | | data: icon |
| | | }).then(res => { |
| | | console.log(res); |
| | | if (res.code == 200) { |
| | | if (res.code === 200) { |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: 'sccg/system/portal/logo/search', |
| | |
| | | }) |
| | | } |
| | | } else { |
| | | console.log(obj); |
| | | // 发送请求 |
| | | this.$axios({ |
| | | method: 'put', |
| | | url: 'sccg/system/portal/logo/update', |
| | | data: obj |
| | | }).then(res => { |
| | | console.log(res); |
| | | this.$message({ |
| | | message: res.message, |
| | | type: 'success' |
| | | }) |
| | | }) |
| | | } |
| | | localStorage.removeItem('pic'); |
| | | window.location.href = ''; |
| | | |
| | | } |
| | |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .log { |
| | | color: #4b9bb7; |
| | | // color: #4b9bb7; |
| | | text-align: left; |
| | | padding: 20px; |
| | | |
| | |
| | | |
| | | header { |
| | | line-height: 60px; |
| | | border-bottom: 1px solid #4b9bb7; |
| | | // border-bottom: 1px solid #4b9bb7; |
| | | } |
| | | |
| | | main { |
| | |
| | | width: 496px; |
| | | } |
| | | |
| | | &::v-deep .el-input__inner { |
| | | background-color: #09152f; |
| | | border: 1px solid #17324c; |
| | | ; |
| | | } |
| | | // &::v-deep .el-input__inner { |
| | | // background-color: #09152f; |
| | | // border: 1px solid #17324c; |
| | | // ; |
| | | // } |
| | | } |
| | | } |
| | | |