Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
ka-manager-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
ka-manager-ui
Commits
844b936d
Commit
844b936d
authored
Jul 27, 2020
by
suntao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
渠道页 保存
parent
4417ab39
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
198 additions
and
100 deletions
+198
-100
README.md
README.md
+0
-27
channel.js
src/apis/channel.js
+65
-23
index.vue
src/modules/channels/index.vue
+125
-38
index.vue
src/modules/matebase/index.vue
+8
-12
No files found.
README.md
View file @
844b936d

ka-manager - A scaffolding base Vue2.js
========================================================
[

](https://github.com/vuejs/vue)
[

](https://travis-ci.org/rootsli/vue2admin)
[

](https://opensource.org/licenses/mit-license.php)
[

](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
\s
tore
\i
ndex.js
-
PostCSS支持:支持自动拼装前缀(autoprefixer插件),支持最新css语法(postcss-cssnext插件),支持@import方式引入css。具体示例请见项目源码:src
\m
odules
\p
age1
\i
ndex.vue
-
基于fetch的网络服务(源码路径:src
\u
tils
\r
equest.js)
-
支持mock数据服务(mock示例路径:src
\a
pis
\m
ock)
-
基于webpack2的开发构建编译:支持开发阶段的HRM,支持模块依赖,静态资源优化,模块打包和Hash指纹等编译功能,一个命令,即可完成整个项目的构建编译
-
提供了一个webpack大项目打包方案(On demand code-splitting)的示例,请见目录:src
\m
odules
\c
ode-splitting-demo
```
说明:项目框架已经集成了大部分前端项目必须的插件服务和项目逻辑架构,可以拿来即用。让框架尽量简单,逻辑尽量清晰,编译构建过程完全可定制,也是本框架追求的目标之一。
```
## Build Setup
## Build Setup
...
...
src/apis/channel.js
View file @
844b936d
...
@@ -18,6 +18,14 @@ export function getStaticElement() {
...
@@ -18,6 +18,14 @@ export function getStaticElement() {
})
})
}
}
export
function
getChannelDetail
(
query
)
{
return
request
({
url
:
'
/channel/get/info
'
,
method
:
'
get
'
,
params
:
query
})
}
export
function
saveChannelBaseConf
(
data
)
{
export
function
saveChannelBaseConf
(
data
)
{
return
request
({
return
request
({
url
:
'
/channel/update/baseConf
'
,
url
:
'
/channel/update/baseConf
'
,
...
@@ -26,10 +34,44 @@ export function saveChannelBaseConf(data) {
...
@@ -26,10 +34,44 @@ export function saveChannelBaseConf(data) {
})
})
}
}
export
function
getChannelDetail
(
query
)
{
export
function
saveApplyCheckConf
(
data
)
{
return
request
({
return
request
({
url
:
'
/channel/get/info
'
,
url
:
'
/channel/saveApplyCheckConf
'
,
method
:
'
get
'
,
method
:
'
post
'
,
params
:
query
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
'
})
})
}
}
src/modules/channels/index.vue
View file @
844b936d
This diff is collapsed.
Click to expand it.
src/modules/matebase/index.vue
View file @
844b936d
<
style
>
.frm
{
width
:
99%
;
height
:
100%
;
}
</
style
>
<
template
>
<
template
>
<div
class=
"height100"
>
<iframe
class=
"frm"
ref=
"iframe"
src=
'http://metabase.quantgroups.com/public/dashboard/059dd6d4-7be3-4ea1-9c91-27d62312c18b'
>
</iframe>
<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>
</
template
>
</
template
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment