From ca842031b4e93fb88f7ed783f2aabb52132ae154 Mon Sep 17 00:00:00 2001
From: dagongren <53748875+wang-liang0615@users.noreply.github.com>
Date: Sun, 4 Feb 2024 11:08:13 +0800
Subject: [PATCH] fix(ui) (#13)
---
.../oneterm/views/assets/assets/account.vue | 14 ++++++++------
.../oneterm/views/assets/security/command.vue | 2 +-
oneterm-ui/src/style/global.less | 3 +++
.../setting/components/employeeTreeSelect.vue | 6 +++++-
4 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/oneterm-ui/src/modules/oneterm/views/assets/assets/account.vue b/oneterm-ui/src/modules/oneterm/views/assets/assets/account.vue
index a84e323..89b7146 100644
--- a/oneterm-ui/src/modules/oneterm/views/assets/assets/account.vue
+++ b/oneterm-ui/src/modules/oneterm/views/assets/assets/account.vue
@@ -13,8 +13,8 @@
diff --git a/oneterm-ui/src/modules/oneterm/views/assets/security/command.vue b/oneterm-ui/src/modules/oneterm/views/assets/security/command.vue
index 41fa7f4..cdcae43 100644
--- a/oneterm-ui/src/modules/oneterm/views/assets/security/command.vue
+++ b/oneterm-ui/src/modules/oneterm/views/assets/security/command.vue
@@ -214,7 +214,7 @@ export default {
return null
},
changeEnable(row) {
- putCommandById(row.id, { ...row, enable: Number(!row.enable) }).then(() => {
+ putCommandById(row.id, { ...row, enable: Boolean(!row.enable) }).then(() => {
this.$message.success(this.$t('editSuccess'))
this.updateTableData()
})
diff --git a/oneterm-ui/src/style/global.less b/oneterm-ui/src/style/global.less
index 9d0884c..d821818 100644
--- a/oneterm-ui/src/style/global.less
+++ b/oneterm-ui/src/style/global.less
@@ -887,6 +887,9 @@ body {
border: none;
box-shadow: 0px 4px 6px rgba(78, 94, 160, 0.25) !important;
}
+ .vue-treeselect__limit-tip-text {
+ margin: 0;
+ }
}
// 自定义背景颜色和border
diff --git a/oneterm-ui/src/views/setting/components/employeeTreeSelect.vue b/oneterm-ui/src/views/setting/components/employeeTreeSelect.vue
index ee39b78..72f22b4 100644
--- a/oneterm-ui/src/views/setting/components/employeeTreeSelect.vue
+++ b/oneterm-ui/src/views/setting/components/employeeTreeSelect.vue
@@ -10,7 +10,7 @@
:noOptionsText="$t('cs.components.empty')"
:class="className ? className : 'ops-setting-treeselect'"
value-consists-of="LEAF_PRIORITY"
- :limit="20"
+ :limit="limit"
:limitText="(count) => `+ ${count}`"
v-bind="$attrs"
appendToBody
@@ -60,6 +60,10 @@ export default {
type: String,
default: 'employee_id',
},
+ limit: {
+ type: Number,
+ default: 20,
+ },
},
data() {
return {}
|