update:优化了”用户管理“和”模型配置“页面样式

This commit is contained in:
CGD
2025-04-11 16:01:57 +08:00
parent 1abacfe90b
commit 5e77560313
2 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -775,8 +775,8 @@ export default {
}
::v-deep .el-checkbox__input.is-checked .el-checkbox__inner {
background-color: #409EFF !important;
border-color: #409EFF !important;
background-color: #5f70f3;
border-color: #5f70f3;
}
.voice-management-btn {
+10 -2
View File
@@ -41,7 +41,9 @@
<div class="table_bottom">
<div class="ctrl_btn">
<el-button size="mini" type="primary" class="select-all-btn" @click="handleSelectAll">全选</el-button>
<el-button size="mini" type="primary" class="select-all-btn" @click="handleSelectAll">
{{ isAllSelected ? '取消全选' : '全选' }}
</el-button>
<el-button size="mini" type="success" icon="el-icon-circle-check" @click="batchEnable">启用</el-button>
<el-button size="mini" type="warning" @click="batchDisable"><i
class="el-icon-remove-outline rotated-icon"></i>禁用</el-button>
@@ -89,6 +91,7 @@ export default {
currentPage: 1,
pageSize: 5,
total: 0,
isAllSelected: false
};
},
created() {
@@ -135,7 +138,12 @@ export default {
this.fetchUsers();
},
handleSelectAll() {
this.$refs.userTable.toggleAllSelection();
if (this.isAllSelected) {
this.$refs.userTable.clearSelection();
} else {
this.$refs.userTable.toggleAllSelection();
}
this.isAllSelected = !this.isAllSelected;
},
batchDelete() {
const selectedUsers = this.$refs.userTable.selection;