Commit 844b936d authored by suntao's avatar suntao

渠道页 保存

parent 4417ab39
![](https://github.com/rootsli/vue2admin/blob/master/doc/img/logo.png)
ka-manager - A scaffolding base Vue2.js
========================================================
[![Vuejs](https://img.shields.io/badge/%20Powered%20by-Vuejs%202.1.x%20-brightgreen.svg)](https://github.com/vuejs/vue) [![Build Status](https://travis-ci.org/rootsli/vue2admin.svg?branch=master)](https://travis-ci.org/rootsli/vue2admin) [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php) [![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)
> 基于vue2 + vue-router + vuex + fetch + PostCSS + [element-ui](http://element.eleme.io/)(也可以使用其他UI,例如[iView](https://www.iviewui.com/)) + webpack2 实现的一个后台管理系统基础框架。
#### 框架能力:
- 完全的基于组件化的架构
- 基于组件的CSS命名空间独立,不相互污染
- 登录功能(利用vuex与cookie的持久化方案进行登录认证缓存)
- 多级路由支持
- 基于vuex2的状态管理(开发时建议安装chrome插件vue.js devtools跟踪状态)
- vuex2与cookie的持久化支持(支持对指定vuex状态进行持久化,并能指定cookie的过期时间)。具体示例请见项目源码:src\store\index.js
- PostCSS支持:支持自动拼装前缀(autoprefixer插件),支持最新css语法(postcss-cssnext插件),支持@import方式引入css。具体示例请见项目源码:src\modules\page1\index.vue
- 基于fetch的网络服务(源码路径:src\utils\request.js)
- 支持mock数据服务(mock示例路径:src\apis\mock)
- 基于webpack2的开发构建编译:支持开发阶段的HRM,支持模块依赖,静态资源优化,模块打包和Hash指纹等编译功能,一个命令,即可完成整个项目的构建编译
- 提供了一个webpack大项目打包方案(On demand code-splitting)的示例,请见目录:src\modules\code-splitting-demo
```
说明:项目框架已经集成了大部分前端项目必须的插件服务和项目逻辑架构,可以拿来即用。让框架尽量简单,逻辑尽量清晰,编译构建过程完全可定制,也是本框架追求的目标之一。
```
## Build Setup
......
import request from '../utils/request'
export function getChannels(data) {
return request({
url: '/channel/page',
method: 'post',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
params: data
})
return request({
url: '/channel/page',
method: 'post',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
params: data
})
}
export function getStaticElement() {
return request({
url: '/channel/static/element',
method: 'get'
})
return request({
url: '/channel/static/element',
method: 'get'
})
}
export function getChannelDetail(query) {
return request({
url: '/channel/get/info',
method: 'get',
params: query
})
}
export function saveChannelBaseConf(data) {
return request({
url: '/channel/update/baseConf',
method: 'post',
data
})
return request({
url: '/channel/update/baseConf',
method: 'post',
data
})
}
export function getChannelDetail(query) {
return request({
url: '/channel/get/info',
method: 'get',
params: query
})
export function saveApplyCheckConf(data) {
return request({
url: '/channel/saveApplyCheckConf',
method: 'post',
data
})
}
export function saveApplyPrivilegeConf(data) {
return request({
url: '/channel/saveApplyPrivilegeConf',
method: 'post',
data
})
}
export function saveCallbackConf(data) {
return request({
url: '/channel/saveCallbackConf',
method: 'post',
data
})
}
export function saveRsaConf(data) {
return request({
url: '/channel/saveRsaConf',
method: 'post',
data
})
}
export function refreshCache() {
return request({
url: '/channel/refreshCache',
method: 'get'
})
}
This diff is collapsed.
<style>
.frm{
width: 99%;
height: 100%;
}
</style>
<template>
<div class="height100">
<div class="home-section-wrap">
<div class="home-section-env">
<p>内容段1</p>
</div>
</div>
<div class="home-section-wrap home-section-wrap-bottom">
<div class="home-section-env">
<p>内容段2</p>
</div>
</div>
</div>
<iframe class="frm" ref="iframe" src='http://metabase.quantgroups.com/public/dashboard/059dd6d4-7be3-4ea1-9c91-27d62312c18b'> </iframe>
</template>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment