diff --git a/src/views/account/Center/bind/index.vue b/src/views/account/Center/bind/index.vue index d6151e09..bb0e4e52 100644 --- a/src/views/account/Center/bind/index.vue +++ b/src/views/account/Center/bind/index.vue @@ -35,10 +35,11 @@

账号:{{ bindUser?.result?.userId || '-' }}

用户名:{{ bindUser?.result?.name || '-' }}

@@ -62,7 +63,7 @@ :src="getImage('/bind/Vector.png')" />
diff --git a/src/views/account/Center/components/BindThirdAccount/index.vue b/src/views/account/Center/components/BindThirdAccount/index.vue index 71e8859c..1e440fa5 100644 --- a/src/views/account/Center/components/BindThirdAccount/index.vue +++ b/src/views/account/Center/components/BindThirdAccount/index.vue @@ -128,10 +128,13 @@ onMounted(() => { } .content-item-right { - button:hover { - background-color: @primary-color; - color: #fff; + :deep(button) { + &:hover { + background-color: @primary-color; + color: #fff; + } } + } } } diff --git a/src/views/account/Center/components/RoleShow/index.vue b/src/views/account/Center/components/RoleShow/index.vue new file mode 100644 index 00000000..e61a08ea --- /dev/null +++ b/src/views/account/Center/components/RoleShow/index.vue @@ -0,0 +1,81 @@ + + + + + \ No newline at end of file diff --git a/src/views/account/Center/index.vue b/src/views/account/Center/index.vue index 9e545cb0..e5b03f32 100644 --- a/src/views/account/Center/index.vue +++ b/src/views/account/Center/index.vue @@ -16,25 +16,12 @@
- Hi, {{ user.userInfos?.name }} + + Hi, {{ user.userInfos?.name }} +
- -
-
{{ i?.name }}
-
+
@@ -105,6 +92,7 @@ import { USER_CENTER_MENU_CODE, } from '@/utils/consts'; import { usePermissionStore } from '@/store/permission'; +import RoleShow from './components/RoleShow/index.vue'; const imageTypes = reactive([ 'image/jpeg', @@ -204,6 +192,7 @@ onUnmounted(() => { height: 100%; .person-header-item-info { display: flex; + width: calc(100% - 380px); .person-header-item-info-left { margin-right: 30px; } @@ -211,25 +200,16 @@ onUnmounted(() => { .person-header-item-info-right { display: flex; flex-direction: column; + width: calc(100% - 126px); .person-header-item-info-right-top { display: flex; font-size: 26px; color: #1d2129; font-weight: 500; + width: 100%; } .person-header-item-info-right-info { - .tag-box { - margin-top: 15px; - display: flex; - - .tag { - background-color: #F7F8FA; - border-radius: 32px; - margin-right: 8px; - padding: 0 14px; - color: #333333; - } - } + width: 100%; } } } diff --git a/src/views/device/Instance/Detail/MetadataMap/index.vue b/src/views/device/Instance/Detail/MetadataMap/index.vue index 477f7a25..26aa1d71 100644 --- a/src/views/device/Instance/Detail/MetadataMap/index.vue +++ b/src/views/device/Instance/Detail/MetadataMap/index.vue @@ -7,94 +7,103 @@ allowClear @search="search" /> - - + + +
@@ -140,6 +149,8 @@ const targetOptions = ref([]); const filterValue = ref(undefined); const originalData = ref([]); +const _value = ref(undefined); + const columns = [ { title: '序号', @@ -198,13 +209,22 @@ const getMetadataMapData = () => { }); }; +const customRow = (record: any) => { + return { + id: record.id, + class: _value.value === record.name ? 'metadata-search-row' : '', + }; +}; + const search = (value: string) => { if (value) { - dataSource.value = dataSourceCache.value.filter((item: any) => { - return !!item.name?.includes(value); + const _item: any = dataSourceCache.value.find((item: any) => { + return value === item.name; }); + _value.value = _item.name; + document.getElementById(_item?.id)?.scrollIntoView(); // 滚动到可视区域 } else { - dataSource.value = dataSourceCache.value; + _value.value = undefined; } }; @@ -276,7 +296,7 @@ const onChange = async (value: any, id: string) => { }; const onFilter = ({ key }: any) => { - originalData.value = dataSource.value + originalData.value = dataSource.value; const _dataSource = cloneDeep(dataSource.value).sort((a: any, b: any) => { if (!key) { return (a.original ? 1 : -1) - (b.original ? 1 : -1); @@ -301,14 +321,24 @@ onMounted(() => { \ No newline at end of file diff --git a/src/views/notice/Config/Detail/index.vue b/src/views/notice/Config/Detail/index.vue index 93d1ea9f..68eb715b 100644 --- a/src/views/notice/Config/Detail/index.vue +++ b/src/views/notice/Config/Detail/index.vue @@ -429,7 +429,12 @@ const formRules = ref({ 'configuration.host': [{ required: true, message: '请输入服务器地址', trigger: 'blur' }], 'configuration.sender': [ { required: true, message: '请输入发件人', trigger: 'blur' }, - { max: 64, message: '最多可输入64个字符' }, + // { max: 64, message: '最多可输入64个字符' }, + { + pattern: + /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/, + message: '请输入正确的邮箱', + }, ], 'configuration.username': [ { required: true, message: '请输入用户名', trigger: 'blur' }, diff --git a/src/views/system/NoticeRule/components/Role/index.vue b/src/views/system/NoticeRule/components/Role/index.vue index d4d54e85..fe175d79 100644 --- a/src/views/system/NoticeRule/components/Role/index.vue +++ b/src/views/system/NoticeRule/components/Role/index.vue @@ -71,7 +71,7 @@ const props = defineProps({ }, gridColumn: { type: Number, - default: 2 + default: 3 } });