Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
InJoyU
vue-element-admin
提交
2687b2eb
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,发现更多精彩内容 >>
提交
2687b2eb
编写于
6月 26, 2018
作者:
P
Pan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perf[v-loading]: remove .body modifier #779
上级
76327a8f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
12 addition
and
10 deletion
+12
-10
src/views/excel/exportExcel.vue
src/views/excel/exportExcel.vue
+1
-1
src/views/excel/selectExcel.vue
src/views/excel/selectExcel.vue
+1
-1
src/views/table/complexTable.vue
src/views/table/complexTable.vue
+7
-3
src/views/table/dragTable.vue
src/views/table/dragTable.vue
+1
-1
src/views/table/inlineEditTable.vue
src/views/table/inlineEditTable.vue
+1
-3
src/views/zip/index.vue
src/views/zip/index.vue
+1
-1
未找到文件。
src/views/excel/exportExcel.vue
浏览文件 @
2687b2eb
...
...
@@ -11,7 +11,7 @@
</el-radio-group>
<el-button
style=
'margin:0 0 20px 20px;'
type=
"primary"
icon=
"document"
@
click=
"handleDownload"
:loading=
"downloadLoading"
>
{{
$t
(
'
excel.export
'
)
}}
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=
"listLoading"
element-loading-text=
"拼命加载中"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
'Id'
width=
"95"
>
<template
slot-scope=
"scope"
>
{{
scope
.
$index
}}
...
...
src/views/excel/selectExcel.vue
浏览文件 @
2687b2eb
...
...
@@ -3,7 +3,7 @@
<!-- $t is vue-i18n global function to translate lang -->
<el-input
style=
'width:340px;'
:placeholder=
"$t('excel.placeholder')"
prefix-icon=
"el-icon-document"
v-model=
"filename"
></el-input>
<el-button
style=
'margin-bottom:20px'
type=
"primary"
icon=
"document"
@
click=
"handleDownload"
:loading=
"downloadLoading"
>
{{
$t
(
'
excel.selectedExport
'
)
}}
</el-button>
<el-table
:data=
"list"
v-loading
.body
=
"listLoading"
element-loading-text=
"拼命加载中"
border
fit
highlight-current-row
@
selection-change=
"handleSelectionChange"
<el-table
:data=
"list"
v-loading=
"listLoading"
element-loading-text=
"拼命加载中"
border
fit
highlight-current-row
@
selection-change=
"handleSelectionChange"
ref=
"multipleTable"
>
<el-table-column
type=
"selection"
align=
"center"
></el-table-column>
<el-table-column
align=
"center"
label=
'Id'
width=
"95"
>
...
...
src/views/table/complexTable.vue
浏览文件 @
2687b2eb
...
...
@@ -21,8 +21,8 @@
<el-checkbox
class=
"filter-item"
style=
'margin-left:15px;'
@
change=
'tableKey=tableKey+1'
v-model=
"showReviewer"
>
{{
$t
(
'
table.reviewer
'
)
}}
</el-checkbox>
</div>
<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"
border
fit
highlight-current-row
style=
"width: 100%
;min-height:1000px;
"
>
<el-table-column
align=
"center"
:label=
"$t('table.id')"
width=
"65"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
id
}}
</span>
...
...
@@ -221,7 +221,11 @@ export default {
fetchList
(
this
.
listQuery
).
then
(
response
=>
{
this
.
list
=
response
.
data
.
items
this
.
total
=
response
.
data
.
total
this
.
listLoading
=
false
// Just to simulate the time of the request
setTimeout
(()
=>
{
this
.
listLoading
=
false
}
,
1.5
*
1000
)
}
)
}
,
handleFilter
()
{
...
...
src/views/table/dragTable.vue
浏览文件 @
2687b2eb
<
template
>
<div
class=
"app-container"
>
<!-- Note that row-key is necessary to get a correct row order. -->
<el-table
:data=
"list"
row-key=
"id"
v-loading
.body
=
"listLoading"
border
fit
highlight-current-row
style=
"width: 100%"
>
<el-table
:data=
"list"
row-key=
"id"
v-loading=
"listLoading"
border
fit
highlight-current-row
style=
"width: 100%"
>
<el-table-column
align=
"center"
label=
"ID"
width=
"65"
>
<template
slot-scope=
"scope"
>
...
...
src/views/table/inlineEditTable.vue
浏览文件 @
2687b2eb
<
template
>
<div
class=
"app-container"
>
<el-table
:data=
"list"
v-loading
.body
=
"listLoading"
border
fit
highlight-current-row
style=
"width: 100%"
>
<el-table
:data=
"list"
v-loading=
"listLoading"
border
fit
highlight-current-row
style=
"width: 100%"
>
<el-table-column
align=
"center"
label=
"ID"
width=
"80"
>
<template
slot-scope=
"scope"
>
...
...
@@ -89,9 +89,7 @@ export default {
const
items
=
response
.
data
.
items
this
.
list
=
items
.
map
(
v
=>
{
this
.
$set
(
v
,
'
edit
'
,
false
)
// https://vuejs.org/v2/guide/reactivity.html
v
.
originalTitle
=
v
.
title
// will be used when user click the cancel botton
return
v
}
)
this
.
listLoading
=
false
...
...
src/views/zip/index.vue
浏览文件 @
2687b2eb
...
...
@@ -3,7 +3,7 @@
<!-- $t is vue-i18n global function to translate lang -->
<el-input
style=
'width:300px;'
:placeholder=
"$t('zip.placeholder')"
prefix-icon=
"el-icon-document"
v-model=
"filename"
></el-input>
<el-button
style=
'margin-bottom:20px;'
type=
"primary"
icon=
"document"
@
click=
"handleDownload"
:loading=
"downloadLoading"
>
{{
$t
(
'
zip.export
'
)
}}
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=
"listLoading"
element-loading-text=
"拼命加载中"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
'ID'
width=
"95"
>
<template
slot-scope=
"scope"
>
{{
scope
.
$index
}}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录