Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
InJoyU
vue-element-admin
提交
a465652b
V
vue-element-admin
项目概览
InJoyU
/
vue-element-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-element-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a465652b
编写于
10月 24, 2017
作者:
P
Pan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: components name
上级
a8459fa5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
68 addition
and
67 deletion
+68
-67
src/components/GithubCorner/index.vue
src/components/GithubCorner/index.vue
+0
-0
src/views/components/JsonEditor.vue
src/views/components/JsonEditor.vue
+4
-3
src/views/dashboard/admin/index.vue
src/views/dashboard/admin/index.vue
+61
-61
src/views/dashboard/editor/index.vue
src/views/dashboard/editor/index.vue
+3
-3
未找到文件。
src/components/Github/index.vue
→
src/components/Github
Corner
/index.vue
浏览文件 @
a465652b
文件已移动
src/views/components/
j
sonEditor.vue
→
src/views/components/
J
sonEditor.vue
浏览文件 @
a465652b
<
template
>
<div
class=
"components-container"
style=
'height:100vh'
>
<code>
j
sonEditor is base on
<a
href=
"https://github.com/codemirror/CodeMirror"
target=
"_blank"
>
CodeMirrorr
</a>
, lint base on json-lint
</code>
<code>
J
sonEditor is base on
<a
href=
"https://github.com/codemirror/CodeMirror"
target=
"_blank"
>
CodeMirrorr
</a>
, lint base on json-lint
</code>
<div
class=
"editor-container"
>
<json-editor
ref=
"jsonEditor"
v-model=
"value"
></json-editor>
</div>
...
...
@@ -8,11 +8,12 @@
</
template
>
<
script
>
import
jsonEditor
from
'
@/components/jsonEditor
'
import
JsonEditor
from
'
@/components/JsonEditor
'
const
jsonData
=
'
[{"items":[{"market_type":"forexdata","symbol":"XAUUSD"},{"market_type":"forexdata","symbol":"UKOIL"},{"market_type":"forexdata","symbol":"CORN"}],"name":""},{"items":[{"market_type":"forexdata","symbol":"XAUUSD"},{"market_type":"forexdata","symbol":"XAGUSD"},{"market_type":"forexdata","symbol":"AUTD"},{"market_type":"forexdata","symbol":"AGTD"}],"name":"贵金属"},{"items":[{"market_type":"forexdata","symbol":"CORN"},{"market_type":"forexdata","symbol":"WHEAT"},{"market_type":"forexdata","symbol":"SOYBEAN"},{"market_type":"forexdata","symbol":"SUGAR"}],"name":"农产品"},{"items":[{"market_type":"forexdata","symbol":"UKOIL"},{"market_type":"forexdata","symbol":"USOIL"},{"market_type":"forexdata","symbol":"NGAS"}],"name":"能源化工"}]
'
export
default
{
components
:
{
j
sonEditor
},
components
:
{
J
sonEditor
},
data
()
{
return
{
value
:
JSON
.
parse
(
jsonData
)
...
...
src/views/dashboard/admin/index.vue
浏览文件 @
a465652b
<
template
>
<div
class=
"dashboard-editor-container"
>
<github></github
>
<el-row
class=
"btn-group"
>
<el-col
:span=
"4"
class=
'text-center'
>
<router-link
class=
"pan-btn blue-btn"
to=
"/components/index"
>
Components
</router-link>
</el-col>
<el-col
:span=
"4"
class=
'text-center'
>
<router-link
class=
"pan-btn light-blue-btn"
to=
"/charts/index"
>
Charts
</router-link>
</el-col>
<el-col
:span=
"4"
class=
'text-center'
>
<router-link
class=
"pan-btn pink-btn"
to=
"/excel/download"
>
Excel
</router-link>
</el-col>
<el-col
:span=
"4"
class=
'text-center'
>
<router-link
class=
"pan-btn green-btn"
to=
"/example/table/table"
>
Table
</router-link>
</el-col>
<el-col
:span=
"4"
class=
'text-center'
>
<router-link
class=
"pan-btn tiffany-btn"
to=
"/example/form/edit"
>
Form
</router-link>
</el-col>
<el-col
:span=
"4"
class=
'text-center'
>
<router-link
class=
"pan-btn yellow-btn"
to=
"/theme/index"
>
Theme
</router-link>
</el-col>
</el-row>
<div
class=
"dashboard-editor-container"
>
<github-corner></github-corner
>
<el-row
class=
"btn-group"
>
<el-col
:span=
"4"
class=
'text-center'
>
<router-link
class=
"pan-btn blue-btn"
to=
"/components/index"
>
Components
</router-link>
</el-col>
<el-col
:span=
"4"
class=
'text-center'
>
<router-link
class=
"pan-btn light-blue-btn"
to=
"/charts/index"
>
Charts
</router-link>
</el-col>
<el-col
:span=
"4"
class=
'text-center'
>
<router-link
class=
"pan-btn pink-btn"
to=
"/excel/download"
>
Excel
</router-link>
</el-col>
<el-col
:span=
"4"
class=
'text-center'
>
<router-link
class=
"pan-btn green-btn"
to=
"/example/table/table"
>
Table
</router-link>
</el-col>
<el-col
:span=
"4"
class=
'text-center'
>
<router-link
class=
"pan-btn tiffany-btn"
to=
"/example/form/edit"
>
Form
</router-link>
</el-col>
<el-col
:span=
"4"
class=
'text-center'
>
<router-link
class=
"pan-btn yellow-btn"
to=
"/theme/index"
>
Theme
</router-link>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"6"
>
<el-card
class=
"box-card"
>
<div
slot=
"header"
class=
"box-card-header"
>
<pan-thumb
class=
"panThumb"
:image=
"avatar"
>
你的权限:
<span
class=
"pan-info-roles"
:key=
'item'
v-for=
"item in roles"
>
{{
item
}}
</span>
</pan-thumb>
</div>
<span
class=
"display_name"
>
{{
name
}}
</span>
<div
class=
"info-item"
>
<count-to
class=
"info-item-num"
:startVal=
'0'
:endVal=
'statisticsData.article_count'
:duration=
'3400'
></count-to>
<span
class=
"info-item-text"
>
文章
</span>
<icon-svg
icon-class=
"trendChart1"
class=
"dashboard-editor-icon"
></icon-svg>
</div>
<div
class=
"info-item"
>
<count-to
class=
"info-item-num"
:startVal=
'0'
:endVal=
'statisticsData.pageviews_count'
:duration=
'3600'
></count-to>
<span
class=
"info-item-text"
>
浏览量
</span>
<icon-svg
icon-class=
"trendChart2"
class=
"dashboard-editor-icon"
></icon-svg>
</div>
</el-card>
</el-col>
<el-row>
<el-col
:span=
"6"
>
<el-card
class=
"box-card"
>
<div
slot=
"header"
class=
"box-card-header"
>
<pan-thumb
class=
"panThumb"
:image=
"avatar"
>
你的权限:
<span
class=
"pan-info-roles"
:key=
'item'
v-for=
"item in roles"
>
{{
item
}}
</span>
</pan-thumb>
</div>
<span
class=
"display_name"
>
{{
name
}}
</span>
<div
class=
"info-item"
>
<count-to
class=
"info-item-num"
:startVal=
'0'
:endVal=
'statisticsData.article_count'
:duration=
'3400'
></count-to>
<span
class=
"info-item-text"
>
文章
</span>
<icon-svg
icon-class=
"trendChart1"
class=
"dashboard-editor-icon"
></icon-svg>
</div>
<div
class=
"info-item"
>
<count-to
class=
"info-item-num"
:startVal=
'0'
:endVal=
'statisticsData.pageviews_count'
:duration=
'3600'
></count-to>
<span
class=
"info-item-text"
>
浏览量
</span>
<icon-svg
icon-class=
"trendChart2"
class=
"dashboard-editor-icon"
></icon-svg>
</div>
</el-card>
</el-col>
<el-col
:span=
"8"
>
<pie-chart></pie-chart>
</el-col>
<el-col
:span=
"8"
>
<pie-chart></pie-chart>
</el-col>
<el-col
:span=
"10"
>
<bar-chart></bar-chart>
</el-col>
</el-row>
<el-col
:span=
"10"
>
<bar-chart></bar-chart>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"15"
>
<line-chart></line-chart>
</el-col>
<el-col
:span=
"9"
>
<todo-list></todo-list>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"15"
>
<line-chart></line-chart>
</el-col>
<el-col
:span=
"9"
>
<todo-list></todo-list>
</el-col>
</el-row>
</div>
</div>
</
template
>
<
script
>
...
...
@@ -70,14 +70,14 @@ import { mapGetters } from 'vuex'
import
countTo
from
'
vue-count-to
'
import
panThumb
from
'
@/components/PanThumb
'
import
todoList
from
'
@/components/TodoList
'
import
Github
from
'
@/components/Github
'
import
Github
Corner
from
'
@/components/GithubCorner
'
import
pieChart
from
'
./pieChart
'
import
barChart
from
'
./barChart
'
import
lineChart
from
'
./lineChart
'
export
default
{
name
:
'
dashboard-admin
'
,
components
:
{
countTo
,
panThumb
,
todoList
,
Github
,
pieChart
,
lineChart
,
barChart
},
components
:
{
countTo
,
panThumb
,
todoList
,
Github
Corner
,
pieChart
,
lineChart
,
barChart
},
data
()
{
return
{
statisticsData
:
{
...
...
src/views/dashboard/editor/index.vue
浏览文件 @
a465652b
...
...
@@ -4,7 +4,7 @@
<pan-thumb
style=
"float: left"
:image=
"avatar"
>
你的权限:
<span
class=
"pan-info-roles"
:key=
'item'
v-for=
"item in roles"
>
{{
item
}}
</span>
</pan-thumb>
<github
></github
>
<github
-corner></github-corner
>
<div
class=
"info-container"
>
<span
class=
"display_name"
>
{{
name
}}
</span>
<span
style=
'font-size:20px;padding-top:20px;display:inline-block;'
>
普通编辑dashboard
</span>
...
...
@@ -19,11 +19,11 @@
<
script
>
import
{
mapGetters
}
from
'
vuex
'
import
PanThumb
from
'
@/components/PanThumb
'
import
Github
from
'
@/components/Github
'
import
Github
Corner
from
'
@/components/GithubCorner
'
export
default
{
name
:
'
dashboard-editor
'
,
components
:
{
PanThumb
,
Github
},
components
:
{
PanThumb
,
Github
Corner
},
data
()
{
return
{
emptyGif
:
'
https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3
'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录