Skip to content

Commit

Permalink
fix: 资源配置批操作修改&加权轮询控件调整 (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuzhenyang authored Sep 12, 2024
1 parent fac47b0 commit ba6c59c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/dashboard-front/src/views/backend-service/add.vue
Original file line number Diff line number Diff line change
Expand Up @@ -656,17 +656,17 @@ defineExpose({
.weight-input {
margin-bottom: 0px;
border-left: 1px solid #c4c6cc !important;
:deep(.bk-form-content) {
margin-top: -1px;
}
// :deep(.bk-form-content) {
// margin-top: -1px;
// }
}
.suffix-slot-cls {
width: 80px;
line-height: 30px;
line-height: 28px;
font-size: 12px;
color: #63656e;
text-align: center;
height: 30px;
height: 28px;
border: none;
box-shadow: none !important;
:deep(.bk-input--text) {
Expand Down
9 changes: 9 additions & 0 deletions src/dashboard-front/src/views/resource/setting/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<ag-dropdown
:text="t('导入')"
:dropdown-list="importDropData"
v-show="!showBatch"
@on-change="handleImport"></ag-dropdown>
<ag-dropdown
:text="t('导出')"
Expand Down Expand Up @@ -471,6 +472,7 @@
<div class="edit-labels-container">
<bk-switcher
v-model="batchEditData.isUpdateLabels"
@change="handleUpdateLabelsChange"
theme="primary"
/>
<SelectCheckBox
Expand Down Expand Up @@ -1177,6 +1179,7 @@ const handleBatchConfirm = async () => {
}
dialogData.isShow = false;
batchEditData.value.isUpdateLabels = false;
batchEditData.value.labelIds = [];
Message({
message: t(`${isBatchDelete.value ? '删除' : '编辑'}成功`),
theme: 'success',
Expand Down Expand Up @@ -1300,6 +1303,12 @@ const handleDeleteSuccess = () => {
handleShowList();
};
const handleUpdateLabelsChange = (v: Boolean) => {
if (!v) {
batchEditData.value.labelIds = [];
}
};
const handleRowClass = (v: any) => {
const ret = [];
if (!v.is24HoursAgo) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -853,11 +853,11 @@ defineExpose({
}
}

.weights-input {
:deep(.bk-input--number-control) {
display: none;
}
}
// .weights-input {
// :deep(.bk-input--number-control) {
// display: none;
// }
// }

&.check-mode {
.title {
Expand Down Expand Up @@ -893,17 +893,17 @@ defineExpose({
.weight-input {
margin-bottom: 0px;
border-left: 1px solid #c4c6cc !important;
:deep(.bk-form-content) {
margin-top: -1px;
}
// :deep(.bk-form-content) {
// margin-top: -1px;
// }
}
.suffix-slot-cls {
width: 80px;
line-height: 30px;
line-height: 28px;
font-size: 12px;
color: #63656e;
text-align: center;
height: 30px;
height: 28px;
border: none;
box-shadow: none !important;
:deep(.bk-input--text) {
Expand Down

0 comments on commit ba6c59c

Please sign in to comment.