diff --git a/src/components/ListTables/headeraction.vue b/src/components/ListTables/headeraction.vue
index d01725773..81ca7dba1 100644
--- a/src/components/ListTables/headeraction.vue
+++ b/src/components/ListTables/headeraction.vue
@@ -1,10 +1,12 @@
{{ this.$t('users.createUser') }}
-
+
+
+
+
- 执行
@@ -12,6 +14,16 @@
export default {
prop: {
+ },
+ props: {
+ hasSelection: {
+ type: Boolean,
+ default: () => true
+ },
+ selectDisable:{
+ type:Boolean,
+ default:() =>true
+ }
},
data() {
return {
diff --git a/src/components/ListTables/table.vue b/src/components/ListTables/table.vue
index 6ac1b321c..38d9cf78c 100644
--- a/src/components/ListTables/table.vue
+++ b/src/components/ListTables/table.vue
@@ -2,7 +2,7 @@
-
+
@@ -11,6 +11,7 @@
{{ $t('usergroup.update') }}
{{ $t('usergroup.delete') }}
@@ -57,12 +58,13 @@
@@ -88,7 +90,7 @@ export default {
},
align: {
type: String,
- default: 'left',
+ default: 'left'
},
hasSelect: {
type: Boolean,
@@ -119,7 +121,9 @@ export default {
current_page: 1,
total: 0,
offset: 0,
- headeractiontext: 'title'
+ headeractiontext: 'title',
+ multipleSelection:[],
+ selectDisable:true
}
},
created() {
@@ -145,6 +149,10 @@ export default {
this.loading = false
})
},
+ handleSelectionChange(val) {
+ this.multipleSelection = val;
+ (val.length>0) ? (this.selectDisable = false) : (this.selectDisable = true)
+ },
handleEdit: function(index, row) {
try {
this.$router.push({ name: this.action.hasEdit, params: { id: row.id }})
@@ -198,4 +206,17 @@ export default {
.table{
margin-top: 15px;
}
+
+//分页
+.el-pagination /deep/ .el-pagination__total{
+ float: left;
+}
+
+.el-pagination /deep/ .el-pagination__sizes{
+ float: left;
+}
+//修改颜色
+// .el-button--text{
+// color: #409EFF;
+// }
diff --git a/src/views/users/UserGroupList.vue b/src/views/users/UserGroupList.vue
index 13dcdaa92..731782dc9 100644
--- a/src/views/users/UserGroupList.vue
+++ b/src/views/users/UserGroupList.vue
@@ -10,13 +10,13 @@