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
8c8caa4a
Commit
8c8caa4a
authored
Apr 10, 2018
by
杨柠瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coidng
parent
f5e4ca14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
HmComplexTable.vue
src/views/haomo/components/tables/HmComplexTable.vue
+10
-2
No files found.
src/views/haomo/components/tables/HmComplexTable.vue
View file @
8c8caa4a
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<!-- end 过滤 -->
<!-- end 过滤 -->
<!-- 表格 -->
<!-- 表格 -->
<el-table
:data=
"list"
v-loading=
"listLoading"
element-loading-text=
"给我一点时间"
border
fit
highlight-current-row
:cell-style=
"cellStyle"
<el-table
:data=
"list"
v-loading=
"listLoading"
element-loading-text=
"给我一点时间"
border
fit
highlight-current-row
:cell-style=
"cellStyle"
ref=
"multipleTable"
:style=
"tableStyle"
@
selection-change=
"handleSelectionChange"
@
sort-change=
"sortChange"
@
current-change=
"tableCurrentChange"
>
:style=
"tableStyle"
@
selection-change=
"handleSelectionChange"
@
sort-change=
"sortChange"
@
current-change=
"tableCurrentChange"
>
<el-table-column
type=
"index"
:index=
"indexMethod"
label=
"序号"
width=
"50px"
></el-table-column>
<el-table-column
type=
"index"
:index=
"indexMethod"
label=
"序号"
width=
"50px"
></el-table-column>
<el-table-column
type=
"selection"
width=
"55"
v-if=
"isShowSelection"
></el-table-column>
<el-table-column
type=
"selection"
width=
"55"
v-if=
"isShowSelection"
></el-table-column>
...
@@ -282,7 +282,7 @@
...
@@ -282,7 +282,7 @@
required
:
false
required
:
false
},
},
/**
/**
* 表格的选项,包括:pageSize、showExport、sortItem、sortOrder、showRefresh、showDeleteButton、isShowPagination、isShowSearch
* 表格的选项,包括:pageSize、showExport、sortItem、sortOrder、showRefresh、showDeleteButton、isShowPagination、isShowSearch
、 showSelection
* buttonGroup、showDetail、dataProcessing、promiseProcessing、changeValue、newData、editData、cellStyle, tableStyle完整的示例为:
* buttonGroup、showDetail、dataProcessing、promiseProcessing、changeValue、newData、editData、cellStyle, tableStyle完整的示例为:
* {
* {
* "pageSize": 10, // 默认为10条数据/页
* "pageSize": 10, // 默认为10条数据/页
...
@@ -290,6 +290,7 @@
...
@@ -290,6 +290,7 @@
* "sortItem": "create_time", // 默认为create_time字段的desc排序
* "sortItem": "create_time", // 默认为create_time字段的desc排序
* "sortOrder": "desc",
* "sortOrder": "desc",
* "isShowPagination": true, //默认显示分页
* "isShowPagination": true, //默认显示分页
* "showSelection" : false // 默认不显示多选框(显示多选框后可调用toggleSelection()方法赋值选择)
* "isShowSearch": true, //默认显示搜索按钮
* "isShowSearch": true, //默认显示搜索按钮
* "showRefresh": false, //默认不显示刷新按钮
* "showRefresh": false, //默认不显示刷新按钮
* "showDeleteButton": false, //默认不显示删除按钮
* "showDeleteButton": false, //默认不显示删除按钮
...
@@ -319,6 +320,7 @@
...
@@ -319,6 +320,7 @@
* cellStyle:{} // 自定义单元格的样式
* cellStyle:{} // 自定义单元格的样式
* tableStyle:{} // 自定义表格的样式
* tableStyle:{} // 自定义表格的样式
* }
* }
*
*/
*/
options
:
{
options
:
{
type
:
Object
,
type
:
Object
,
...
@@ -809,6 +811,12 @@
...
@@ -809,6 +811,12 @@
self
.
HmFullCalendar
=
self
.
options
.
HmFullCalendar
self
.
HmFullCalendar
=
self
.
options
.
HmFullCalendar
}
}
},
},
toggleSelection
(
value
)
{
const
self
=
this
_
.
forEach
(
value
,
function
(
row
)
{
self
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
)
})
},
handleSelectionChange
(
val
)
{
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
this
.
multipleSelection
=
val
},
},
...
...
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