Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
黄瑜
VueElementTemplate
Commits
59e240eb
Commit
59e240eb
authored
Oct 31, 2017
by
Pan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload:upload vue && change scope to slot-scope
parent
98d5f9a2
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
56 additions
and
56 deletions
+56
-56
package.json
package.json
+6
-6
index.vue
src/components/ErrLog/index.vue
+2
-2
tabPane.vue
src/views/example/tab/components/tabPane.vue
+7
-7
complexTable.vue
src/views/example/table/complexTable.vue
+9
-9
dragTable.vue
src/views/example/table/dragTable.vue
+8
-8
fixedThead.vue
src/views/example/table/dynamicTable/fixedThead.vue
+1
-1
unfixedThead.vue
src/views/example/table/dynamicTable/unfixedThead.vue
+1
-1
inlineEditTable.vue
src/views/example/table/inlineEditTable.vue
+7
-7
exportExcel.vue
src/views/excel/exportExcel.vue
+5
-5
selectExcel.vue
src/views/excel/selectExcel.vue
+5
-5
index.vue
src/views/zip/index.vue
+5
-5
No files found.
package.json
View file @
59e240eb
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
"
codemirror
"
:
"
5.31.0
"
,
"
codemirror
"
:
"
5.31.0
"
,
"
dropzone
"
:
"
5.2.0
"
,
"
dropzone
"
:
"
5.2.0
"
,
"
echarts
"
:
"
3.7.2
"
,
"
echarts
"
:
"
3.7.2
"
,
"
element-ui
"
:
"
1.4.
2
"
,
"
element-ui
"
:
"
1.4.
8
"
,
"
file-saver
"
:
"
1.3.3
"
,
"
file-saver
"
:
"
1.3.3
"
,
"
font-awesome
"
:
"
4.7.0
"
,
"
font-awesome
"
:
"
4.7.0
"
,
"
js-cookie
"
:
"
2.2.0
"
,
"
js-cookie
"
:
"
2.2.0
"
,
...
@@ -31,13 +31,13 @@
...
@@ -31,13 +31,13 @@
"
showdown
"
:
"
1.8.0
"
,
"
showdown
"
:
"
1.8.0
"
,
"
simplemde
"
:
"
1.11.2
"
,
"
simplemde
"
:
"
1.11.2
"
,
"
sortablejs
"
:
"
1.6.1
"
,
"
sortablejs
"
:
"
1.6.1
"
,
"
vue
"
:
"
2.
4
.2
"
,
"
vue
"
:
"
2.
5
.2
"
,
"
vue-count-to
"
:
"
1.0.5
"
,
"
vue-count-to
"
:
"
1.0.5
"
,
"
vue-multiselect
"
:
"
2.0.6
"
,
"
vue-multiselect
"
:
"
2.0.6
"
,
"
vue-router
"
:
"
2.7.0
"
,
"
vue-router
"
:
"
3.0.1
"
,
"
vue-splitpane
"
:
"
1.0.0
"
,
"
vue-splitpane
"
:
"
1.0.0
"
,
"
vuedraggable
"
:
"
2.14.1
"
,
"
vuedraggable
"
:
"
2.14.1
"
,
"
vuex
"
:
"
2.3.1
"
,
"
vuex
"
:
"
3.0.0
"
,
"
xlsx
"
:
"
^0.11.7
"
"
xlsx
"
:
"
^0.11.7
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
...
@@ -80,9 +80,9 @@
...
@@ -80,9 +80,9 @@
"
style-loader
"
:
"
0.19.0
"
,
"
style-loader
"
:
"
0.19.0
"
,
"
svg-sprite-loader
"
:
"
3.2.4
"
,
"
svg-sprite-loader
"
:
"
3.2.4
"
,
"
url-loader
"
:
"
0.6.2
"
,
"
url-loader
"
:
"
0.6.2
"
,
"
vue-loader
"
:
"
13.
0.4
"
,
"
vue-loader
"
:
"
13.
3.0
"
,
"
vue-style-loader
"
:
"
3.0.3
"
,
"
vue-style-loader
"
:
"
3.0.3
"
,
"
vue-template-compiler
"
:
"
2.
4
.2
"
,
"
vue-template-compiler
"
:
"
2.
5
.2
"
,
"
webpack
"
:
"
3.8.1
"
,
"
webpack
"
:
"
3.8.1
"
,
"
webpack-bundle-analyzer
"
:
"
2.9.0
"
,
"
webpack-bundle-analyzer
"
:
"
2.9.0
"
,
"
webpack-dev-middleware
"
:
"
1.12.0
"
,
"
webpack-dev-middleware
"
:
"
1.12.0
"
,
...
...
src/components/ErrLog/index.vue
View file @
59e240eb
...
@@ -12,14 +12,14 @@
...
@@ -12,14 +12,14 @@
<el-dialog
title=
"bug日志"
:visible
.
sync=
"dialogTableVisible"
>
<el-dialog
title=
"bug日志"
:visible
.
sync=
"dialogTableVisible"
>
<el-table
:data=
"logsList"
>
<el-table
:data=
"logsList"
>
<el-table-column
label=
"message"
>
<el-table-column
label=
"message"
>
<template
scope=
"scope"
>
<template
s
lot-s
cope=
"scope"
>
<div>
msg:
{{
scope
.
row
.
err
.
message
}}
</div>
<div>
msg:
{{
scope
.
row
.
err
.
message
}}
</div>
<br/>
<br/>
<div>
url:
{{
scope
.
row
.
url
}}
</div>
<div>
url:
{{
scope
.
row
.
url
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"stack"
>
<el-table-column
label=
"stack"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
{{
scope
.
row
.
err
.
stack
}}
{{
scope
.
row
.
err
.
stack
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
src/views/example/tab/components/tabPane.vue
View file @
59e240eb
...
@@ -3,44 +3,44 @@
...
@@ -3,44 +3,44 @@
<el-table-column
align=
"center"
label=
"序号"
width=
"65"
v-loading=
"loading"
<el-table-column
align=
"center"
label=
"序号"
width=
"65"
v-loading=
"loading"
element-loading-text=
"请给我点时间!"
>
element-loading-text=
"请给我点时间!"
>
<template
scope=
"scope"
>
<template
s
lot-s
cope=
"scope"
>
<span>
{{
scope
.
row
.
id
}}
</span>
<span>
{{
scope
.
row
.
id
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"180px"
align=
"center"
label=
"时间"
>
<el-table-column
width=
"180px"
align=
"center"
label=
"时间"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<span>
{{
scope
.
row
.
timestamp
|
parseTime
(
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
}}
<
/span
>
<span>
{{
scope
.
row
.
timestamp
|
parseTime
(
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
min
-
width
=
"300px"
label
=
"标题"
>
<
el
-
table
-
column
min
-
width
=
"300px"
label
=
"标题"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
span
>
{{
scope
.
row
.
title
}}
<
/span
>
<
span
>
{{
scope
.
row
.
title
}}
<
/span
>
<
el
-
tag
>
{{
scope
.
row
.
type
}}
<
/el-tag
>
<
el
-
tag
>
{{
scope
.
row
.
type
}}
<
/el-tag
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
width
=
"110px"
align
=
"center"
label
=
"作者"
>
<
el
-
table
-
column
width
=
"110px"
align
=
"center"
label
=
"作者"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
span
>
{{
scope
.
row
.
author
}}
<
/span
>
<
span
>
{{
scope
.
row
.
author
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
width
=
"80px"
label
=
"重要性"
>
<
el
-
table
-
column
width
=
"80px"
label
=
"重要性"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
svg
-
icon
v
-
for
=
"n in +scope.row.importance"
icon
-
class
=
"star"
:
key
=
"n"
><
/svg-icon
>
<
svg
-
icon
v
-
for
=
"n in +scope.row.importance"
icon
-
class
=
"star"
:
key
=
"n"
><
/svg-icon
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"阅读数"
width
=
"95"
>
<
el
-
table
-
column
align
=
"center"
label
=
"阅读数"
width
=
"95"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
span
>
{{
scope
.
row
.
pageviews
}}
<
/span
>
<
span
>
{{
scope
.
row
.
pageviews
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
class
-
name
=
"status-col"
label
=
"状态"
width
=
"90"
>
<
el
-
table
-
column
class
-
name
=
"status-col"
label
=
"状态"
width
=
"90"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
el
-
tag
:
type
=
"scope.row.status | statusFilter"
>
{{
scope
.
row
.
status
}}
<
/el-tag
>
<
el
-
tag
:
type
=
"scope.row.status | statusFilter"
>
{{
scope
.
row
.
status
}}
<
/el-tag
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
...
...
src/views/example/table/complexTable.vue
View file @
59e240eb
...
@@ -28,56 +28,56 @@
...
@@ -28,56 +28,56 @@
<el-table
:key=
'tableKey'
:data=
"list"
v-loading=
"listLoading"
element-loading-text=
"给我一点时间"
border
fit
highlight-current-row
style=
"width: 100%"
>
<el-table
:key=
'tableKey'
:data=
"list"
v-loading=
"listLoading"
element-loading-text=
"给我一点时间"
border
fit
highlight-current-row
style=
"width: 100%"
>
<el-table-column
align=
"center"
label=
"序号"
width=
"65"
>
<el-table-column
align=
"center"
label=
"序号"
width=
"65"
>
<template
scope=
"scope"
>
<template
s
lot-s
cope=
"scope"
>
<span>
{{
scope
.
row
.
id
}}
</span>
<span>
{{
scope
.
row
.
id
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"180px"
align=
"center"
label=
"时间"
>
<el-table-column
width=
"180px"
align=
"center"
label=
"时间"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<span>
{{
scope
.
row
.
timestamp
|
parseTime
(
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
}}
<
/span
>
<span>
{{
scope
.
row
.
timestamp
|
parseTime
(
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
min
-
width
=
"300px"
label
=
"标题"
>
<
el
-
table
-
column
min
-
width
=
"300px"
label
=
"标题"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
span
class
=
"link-type"
@
click
=
"handleUpdate(scope.row)"
>
{{
scope
.
row
.
title
}}
<
/span
>
<
span
class
=
"link-type"
@
click
=
"handleUpdate(scope.row)"
>
{{
scope
.
row
.
title
}}
<
/span
>
<
el
-
tag
>
{{
scope
.
row
.
type
|
typeFilter
}}
<
/el-tag
>
<
el
-
tag
>
{{
scope
.
row
.
type
|
typeFilter
}}
<
/el-tag
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
width
=
"110px"
align
=
"center"
label
=
"作者"
>
<
el
-
table
-
column
width
=
"110px"
align
=
"center"
label
=
"作者"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
span
>
{{
scope
.
row
.
author
}}
<
/span
>
<
span
>
{{
scope
.
row
.
author
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
width
=
"110px"
v
-
if
=
'showAuditor'
align
=
"center"
label
=
"审核人"
>
<
el
-
table
-
column
width
=
"110px"
v
-
if
=
'showAuditor'
align
=
"center"
label
=
"审核人"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
span
style
=
'color:red;'
>
{{
scope
.
row
.
auditor
}}
<
/span
>
<
span
style
=
'color:red;'
>
{{
scope
.
row
.
auditor
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
width
=
"80px"
label
=
"重要性"
>
<
el
-
table
-
column
width
=
"80px"
label
=
"重要性"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
svg
-
icon
v
-
for
=
"n in +scope.row.importance"
icon
-
class
=
"star"
class
=
"meta-item__icon"
:
key
=
"n"
><
/svg-icon
>
<
svg
-
icon
v
-
for
=
"n in +scope.row.importance"
icon
-
class
=
"star"
class
=
"meta-item__icon"
:
key
=
"n"
><
/svg-icon
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"阅读数"
width
=
"95"
>
<
el
-
table
-
column
align
=
"center"
label
=
"阅读数"
width
=
"95"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
span
class
=
"link-type"
@
click
=
'handleFetchPv(scope.row.pageviews)'
>
{{
scope
.
row
.
pageviews
}}
<
/span
>
<
span
class
=
"link-type"
@
click
=
'handleFetchPv(scope.row.pageviews)'
>
{{
scope
.
row
.
pageviews
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
class
-
name
=
"status-col"
label
=
"状态"
width
=
"90"
>
<
el
-
table
-
column
class
-
name
=
"status-col"
label
=
"状态"
width
=
"90"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
el
-
tag
:
type
=
"scope.row.status | statusFilter"
>
{{
scope
.
row
.
status
}}
<
/el-tag
>
<
el
-
tag
:
type
=
"scope.row.status | statusFilter"
>
{{
scope
.
row
.
status
}}
<
/el-tag
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"操作"
width
=
"150"
>
<
el
-
table
-
column
align
=
"center"
label
=
"操作"
width
=
"150"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
el
-
button
v
-
if
=
"scope.row.status!='published'"
size
=
"small"
type
=
"success"
@
click
=
"handleModifyStatus(scope.row,'published')"
>
发布
<
el
-
button
v
-
if
=
"scope.row.status!='published'"
size
=
"small"
type
=
"success"
@
click
=
"handleModifyStatus(scope.row,'published')"
>
发布
<
/el-button
>
<
/el-button
>
<
el
-
button
v
-
if
=
"scope.row.status!='draft'"
size
=
"small"
@
click
=
"handleModifyStatus(scope.row,'draft')"
>
草稿
<
el
-
button
v
-
if
=
"scope.row.status!='draft'"
size
=
"small"
@
click
=
"handleModifyStatus(scope.row,'draft')"
>
草稿
...
...
src/views/example/table/dragTable.vue
View file @
59e240eb
...
@@ -4,49 +4,49 @@
...
@@ -4,49 +4,49 @@
<el-table
:data=
"list"
v-loading
.
body=
"listLoading"
border
fit
highlight-current-row
style=
"width: 100%"
>
<el-table
:data=
"list"
v-loading
.
body=
"listLoading"
border
fit
highlight-current-row
style=
"width: 100%"
>
<el-table-column
align=
"center"
label=
"序号"
width=
"65"
>
<el-table-column
align=
"center"
label=
"序号"
width=
"65"
>
<template
scope=
"scope"
>
<template
s
lot-s
cope=
"scope"
>
<span>
{{
scope
.
row
.
id
}}
</span>
<span>
{{
scope
.
row
.
id
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"180px"
align=
"center"
label=
"时间"
>
<el-table-column
width=
"180px"
align=
"center"
label=
"时间"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<span>
{{
scope
.
row
.
timestamp
|
parseTime
(
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
}}
<
/span
>
<span>
{{
scope
.
row
.
timestamp
|
parseTime
(
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
min
-
width
=
"300px"
label
=
"标题"
>
<
el
-
table
-
column
min
-
width
=
"300px"
label
=
"标题"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
span
>
{{
scope
.
row
.
title
}}
<
/span
>
<
span
>
{{
scope
.
row
.
title
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
width
=
"110px"
align
=
"center"
label
=
"作者"
>
<
el
-
table
-
column
width
=
"110px"
align
=
"center"
label
=
"作者"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
span
>
{{
scope
.
row
.
author
}}
<
/span
>
<
span
>
{{
scope
.
row
.
author
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
width
=
"80px"
label
=
"重要性"
>
<
el
-
table
-
column
width
=
"80px"
label
=
"重要性"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
svg
-
icon
v
-
for
=
"n in +scope.row.importance"
icon
-
class
=
"star"
class
=
"meta-item__icon"
:
key
=
"n"
><
/svg-icon
>
<
svg
-
icon
v
-
for
=
"n in +scope.row.importance"
icon
-
class
=
"star"
class
=
"meta-item__icon"
:
key
=
"n"
><
/svg-icon
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"阅读数"
width
=
"95"
>
<
el
-
table
-
column
align
=
"center"
label
=
"阅读数"
width
=
"95"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
span
>
{{
scope
.
row
.
pageviews
}}
<
/span
>
<
span
>
{{
scope
.
row
.
pageviews
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
class
-
name
=
"status-col"
label
=
"状态"
width
=
"90"
>
<
el
-
table
-
column
class
-
name
=
"status-col"
label
=
"状态"
width
=
"90"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
el
-
tag
:
type
=
"scope.row.status | statusFilter"
>
{{
scope
.
row
.
status
}}
<
/el-tag
>
<
el
-
tag
:
type
=
"scope.row.status | statusFilter"
>
{{
scope
.
row
.
status
}}
<
/el-tag
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"拖拽"
width
=
"95"
>
<
el
-
table
-
column
align
=
"center"
label
=
"拖拽"
width
=
"95"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
svg
-
icon
class
=
'drag-handler'
icon
-
class
=
"drag"
><
/svg-icon
>
<
svg
-
icon
class
=
'drag-handler'
icon
-
class
=
"drag"
><
/svg-icon
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
...
...
src/views/example/table/dynamicTable/fixedThead.vue
View file @
59e240eb
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<el-table
:data=
"tableData"
:key=
'key'
style=
"width: 100%"
>
<el-table
:data=
"tableData"
:key=
'key'
style=
"width: 100%"
>
<el-table-column
prop=
"name"
label=
"fruitName"
width=
"180"
></el-table-column>
<el-table-column
prop=
"name"
label=
"fruitName"
width=
"180"
></el-table-column>
<el-table-column
:key=
'fruit'
v-for=
'(fruit,index) in formThead'
:label=
"fruit"
>
<el-table-column
:key=
'fruit'
v-for=
'(fruit,index) in formThead'
:label=
"fruit"
>
<template
scope=
"scope"
>
<template
s
lot-s
cope=
"scope"
>
{{
scope
.
row
[
fruit
]
}}
{{
scope
.
row
[
fruit
]
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
src/views/example/table/dynamicTable/unfixedThead.vue
View file @
59e240eb
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<el-table-column
prop=
"name"
label=
"fruitName"
width=
"180"
>
<el-table-column
prop=
"name"
label=
"fruitName"
width=
"180"
>
</el-table-column>
</el-table-column>
<el-table-column
:key=
'fruit'
v-for=
'(fruit,index) in formThead'
:label=
"fruit"
>
<el-table-column
:key=
'fruit'
v-for=
'(fruit,index) in formThead'
:label=
"fruit"
>
<template
scope=
"scope"
>
<template
s
lot-s
cope=
"scope"
>
{{
scope
.
row
[
fruit
]
}}
{{
scope
.
row
[
fruit
]
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
src/views/example/table/inlineEditTable.vue
View file @
59e240eb
...
@@ -4,44 +4,44 @@
...
@@ -4,44 +4,44 @@
<el-table
:data=
"list"
v-loading
.
body=
"listLoading"
border
fit
highlight-current-row
style=
"width: 100%"
>
<el-table
:data=
"list"
v-loading
.
body=
"listLoading"
border
fit
highlight-current-row
style=
"width: 100%"
>
<el-table-column
align=
"center"
label=
"序号"
width=
"80"
>
<el-table-column
align=
"center"
label=
"序号"
width=
"80"
>
<template
scope=
"scope"
>
<template
s
lot-s
cope=
"scope"
>
<span>
{{
scope
.
row
.
id
}}
</span>
<span>
{{
scope
.
row
.
id
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"180px"
align=
"center"
label=
"时间"
>
<el-table-column
width=
"180px"
align=
"center"
label=
"时间"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<span>
{{
scope
.
row
.
timestamp
|
parseTime
(
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
}}
<
/span
>
<span>
{{
scope
.
row
.
timestamp
|
parseTime
(
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
width
=
"120px"
align
=
"center"
label
=
"作者"
>
<
el
-
table
-
column
width
=
"120px"
align
=
"center"
label
=
"作者"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
span
>
{{
scope
.
row
.
author
}}
<
/span
>
<
span
>
{{
scope
.
row
.
author
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
width
=
"100px"
label
=
"重要性"
>
<
el
-
table
-
column
width
=
"100px"
label
=
"重要性"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
svg
-
icon
v
-
for
=
"n in +scope.row.importance"
icon
-
class
=
"star"
class
=
"meta-item__icon"
:
key
=
"n"
><
/svg-icon
>
<
svg
-
icon
v
-
for
=
"n in +scope.row.importance"
icon
-
class
=
"star"
class
=
"meta-item__icon"
:
key
=
"n"
><
/svg-icon
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
class
-
name
=
"status-col"
label
=
"状态"
width
=
"100"
>
<
el
-
table
-
column
class
-
name
=
"status-col"
label
=
"状态"
width
=
"100"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
el
-
tag
:
type
=
"scope.row.status | statusFilter"
>
{{
scope
.
row
.
status
}}
<
/el-tag
>
<
el
-
tag
:
type
=
"scope.row.status | statusFilter"
>
{{
scope
.
row
.
status
}}
<
/el-tag
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
min
-
width
=
"300px"
label
=
"标题"
>
<
el
-
table
-
column
min
-
width
=
"300px"
label
=
"标题"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
el
-
input
v
-
show
=
"scope.row.edit"
size
=
"small"
v
-
model
=
"scope.row.title"
><
/el-input
>
<
el
-
input
v
-
show
=
"scope.row.edit"
size
=
"small"
v
-
model
=
"scope.row.title"
><
/el-input
>
<
span
v
-
show
=
"!scope.row.edit"
>
{{
scope
.
row
.
title
}}
<
/span
>
<
span
v
-
show
=
"!scope.row.edit"
>
{{
scope
.
row
.
title
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"编辑"
width
=
"120"
>
<
el
-
table
-
column
align
=
"center"
label
=
"编辑"
width
=
"120"
>
<
template
scope
=
"scope"
>
<
template
s
lot
-
s
cope
=
"scope"
>
<
el
-
button
:
type
=
"scope.row.edit?'success':'primary'"
@
click
=
'scope.row.edit=!scope.row.edit'
size
=
"small"
icon
=
"edit"
>
{{
scope
.
row
.
edit
?
'完成'
:
'编辑'
}}
<
/el-button
>
<
el
-
button
:
type
=
"scope.row.edit?'success':'primary'"
@
click
=
'scope.row.edit=!scope.row.edit'
size
=
"small"
icon
=
"edit"
>
{{
scope
.
row
.
edit
?
'完成'
:
'编辑'
}}
<
/el-button
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
...
...
src/views/excel/exportExcel.vue
View file @
59e240eb
...
@@ -3,27 +3,27 @@
...
@@ -3,27 +3,27 @@
<el-button
style=
'margin-bottom:20px;'
type=
"primary"
icon=
"document"
@
click=
"handleDownload"
:loading=
"downloadLoading"
>
导出excel
</el-button>
<el-button
style=
'margin-bottom:20px;'
type=
"primary"
icon=
"document"
@
click=
"handleDownload"
:loading=
"downloadLoading"
>
导出excel
</el-button>
<el-table
:data=
"list"
v-loading
.
body=
"listLoading"
element-loading-text=
"拼命加载中"
border
fit
highlight-current-row
>
<el-table
:data=
"list"
v-loading
.
body=
"listLoading"
element-loading-text=
"拼命加载中"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
'ID'
width=
"95"
>
<el-table-column
align=
"center"
label=
'ID'
width=
"95"
>
<template
scope=
"scope"
>
<template
s
lot-s
cope=
"scope"
>
{{
scope
.
$index
}}
{{
scope
.
$index
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"文章标题"
>
<el-table-column
label=
"文章标题"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
{{
scope
.
row
.
title
}}
{{
scope
.
row
.
title
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"作者"
width=
"95"
align=
"center"
>
<el-table-column
label=
"作者"
width=
"95"
align=
"center"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<el-tag>
{{
scope
.
row
.
author
}}
</el-tag>
<el-tag>
{{
scope
.
row
.
author
}}
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"阅读数"
width=
"115"
align=
"center"
>
<el-table-column
label=
"阅读数"
width=
"115"
align=
"center"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
{{
scope
.
row
.
pageviews
}}
{{
scope
.
row
.
pageviews
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"created_at"
label=
"发布时间"
width=
"220"
>
<el-table-column
align=
"center"
prop=
"created_at"
label=
"发布时间"
width=
"220"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<i
class=
"el-icon-time"
></i>
<i
class=
"el-icon-time"
></i>
<span>
{{
scope
.
row
.
timestamp
|
parseTime
(
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
}}
<
/span
>
<span>
{{
scope
.
row
.
timestamp
|
parseTime
(
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
...
...
src/views/excel/selectExcel.vue
View file @
59e240eb
...
@@ -5,27 +5,27 @@
...
@@ -5,27 +5,27 @@
ref=
"multipleTable"
>
ref=
"multipleTable"
>
<el-table-column
type=
"selection"
align=
"center"
></el-table-column>
<el-table-column
type=
"selection"
align=
"center"
></el-table-column>
<el-table-column
align=
"center"
label=
'ID'
width=
"95"
>
<el-table-column
align=
"center"
label=
'ID'
width=
"95"
>
<template
scope=
"scope"
>
<template
s
lot-s
cope=
"scope"
>
{{
scope
.
$index
}}
{{
scope
.
$index
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"文章标题"
>
<el-table-column
label=
"文章标题"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
{{
scope
.
row
.
title
}}
{{
scope
.
row
.
title
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"作者"
width=
"95"
align=
"center"
>
<el-table-column
label=
"作者"
width=
"95"
align=
"center"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<el-tag>
{{
scope
.
row
.
author
}}
</el-tag>
<el-tag>
{{
scope
.
row
.
author
}}
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"阅读数"
width=
"115"
align=
"center"
>
<el-table-column
label=
"阅读数"
width=
"115"
align=
"center"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
{{
scope
.
row
.
pageviews
}}
{{
scope
.
row
.
pageviews
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"created_at"
label=
"发布时间"
width=
"220"
>
<el-table-column
align=
"center"
prop=
"created_at"
label=
"发布时间"
width=
"220"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<i
class=
"el-icon-time"
></i>
<i
class=
"el-icon-time"
></i>
<span>
{{
scope
.
row
.
display_time
}}
</span>
<span>
{{
scope
.
row
.
display_time
}}
</span>
</
template
>
</
template
>
...
...
src/views/zip/index.vue
View file @
59e240eb
...
@@ -3,27 +3,27 @@
...
@@ -3,27 +3,27 @@
<el-button
style=
'margin-bottom:20px;'
type=
"primary"
icon=
"document"
@
click=
"handleDownload"
:loading=
"downloadLoading"
>
导出zip
</el-button>
<el-button
style=
'margin-bottom:20px;'
type=
"primary"
icon=
"document"
@
click=
"handleDownload"
:loading=
"downloadLoading"
>
导出zip
</el-button>
<el-table
:data=
"list"
v-loading
.
body=
"listLoading"
element-loading-text=
"拼命加载中"
border
fit
highlight-current-row
>
<el-table
:data=
"list"
v-loading
.
body=
"listLoading"
element-loading-text=
"拼命加载中"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
'ID'
width=
"95"
>
<el-table-column
align=
"center"
label=
'ID'
width=
"95"
>
<template
scope=
"scope"
>
<template
s
lot-s
cope=
"scope"
>
{{
scope
.
$index
}}
{{
scope
.
$index
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"文章标题"
>
<el-table-column
label=
"文章标题"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
{{
scope
.
row
.
title
}}
{{
scope
.
row
.
title
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"作者"
width=
"95"
align=
"center"
>
<el-table-column
label=
"作者"
width=
"95"
align=
"center"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<el-tag>
{{
scope
.
row
.
author
}}
</el-tag>
<el-tag>
{{
scope
.
row
.
author
}}
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"阅读数"
width=
"115"
align=
"center"
>
<el-table-column
label=
"阅读数"
width=
"115"
align=
"center"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
{{
scope
.
row
.
pageviews
}}
{{
scope
.
row
.
pageviews
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"created_at"
label=
"发布时间"
width=
"220"
>
<el-table-column
align=
"center"
prop=
"created_at"
label=
"发布时间"
width=
"220"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<i
class=
"el-icon-time"
></i>
<i
class=
"el-icon-time"
></i>
<span>
{{
scope
.
row
.
display_time
}}
</span>
<span>
{{
scope
.
row
.
display_time
}}
</span>
</
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