Commit 076d2bc7f6389c0f341097b65f5341122ae4ae05
Merge branch 'ft' into 'main_dev'
perf: 优化首页登录图标显示 See merge request yunteng/thingskit-front!869
Showing
6 changed files
with
33 additions
and
8 deletions
src/assets/svg/account.svg
0 → 100644
| 1 | +<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1694516709762" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18843" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M515.1 513.6m-429 0a429 429 0 1 0 858 0 429 429 0 1 0-858 0Z" fill="#0B6AE2" p-id="18844"></path><path d="M794.8 773.8C745.7 674.6 670.7 562.3 581 556.7c64.7-25.5 110.5-88.5 110.5-162.3 0-96.3-78.1-174.4-174.4-174.4s-174.4 78.1-174.4 174.4c0 73.7 45.8 136.8 110.5 162.3-90.6 5.7-166.1 120-215.2 220 69.6 73.3 168 119 277 119 110.5-0.1 210-46.9 279.8-121.9z" fill="#ffffff" p-id="18845"></path></svg> | |
| \ No newline at end of file | ... | ... |
src/assets/svg/mobile.svg
0 → 100644
| 1 | +<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1694516489379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6077" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M512 1024Q0 1024 0 512T512 0q512 0 512 512T512 1024z" fill="#0B6AE2" p-id="6078"></path><path d="M672.814545 802.909091H350.72a81.454545 81.454545 0 0 1-81.454545-81.454546V302.545455a81.454545 81.454545 0 0 1 81.454545-81.454546h322.094545a81.454545 81.454545 0 0 1 81.454546 81.454546v418.90909a81.454545 81.454545 0 0 1-81.454546 81.454546z m-322.094545-512a11.636364 11.636364 0 0 0-11.636364 11.636364v418.90909a11.636364 11.636364 0 0 0 11.636364 11.636364h322.094545a11.636364 11.636364 0 0 0 11.636364-11.636364V302.545455a11.636364 11.636364 0 0 0-11.636364-11.636364z" fill="#FFFFFF" p-id="6079"></path><path d="M376.785455 560.407273m29.090909 0l212.247272 0q29.090909 0 29.090909 29.090909l0-0.232727q0 29.090909-29.090909 29.090909l-212.247272 0q-29.090909 0-29.090909-29.090909l0 0.232727q0-29.090909 29.090909-29.090909Z" fill="#FFFFFF" p-id="6080"></path><path d="M512 676.305455m-29.090909 0a29.090909 29.090909 0 1 0 58.181818 0 29.090909 29.090909 0 1 0-58.181818 0Z" fill="#FFFFFF" p-id="6081"></path></svg> | |
| \ No newline at end of file | ... | ... |
| ... | ... | @@ -19,7 +19,7 @@ |
| 19 | 19 | <Divider orientation="left"> |
| 20 | 20 | <a-tooltip> |
| 21 | 21 | <template #title>触发器不可为空,消息只要满足触发条件中任意一个即可触发。</template> |
| 22 | - 触发器 | |
| 22 | + <label class="validate-dot"></label> 触发器 | |
| 23 | 23 | <QuestionCircleOutlined :style="{ fontSize: '14px', marginLeft: '5px' }" /> |
| 24 | 24 | </a-tooltip> |
| 25 | 25 | </Divider> |
| ... | ... | @@ -77,7 +77,7 @@ |
| 77 | 77 | <template #title |
| 78 | 78 | >触发器和执行条件都满足时,场景联动会做什么,例如:设备联动、告警通知等。</template |
| 79 | 79 | > |
| 80 | - 执行动作 | |
| 80 | + <label class="validate-dot"></label> 执行动作 | |
| 81 | 81 | <QuestionCircleOutlined :style="{ fontSize: '14px', marginLeft: '5px' }" /> |
| 82 | 82 | </a-tooltip> |
| 83 | 83 | </Divider> |
| ... | ... | @@ -781,4 +781,13 @@ |
| 781 | 781 | } |
| 782 | 782 | |
| 783 | 783 | //TODO-fengtao |
| 784 | + | |
| 785 | + label.validate-dot::before { | |
| 786 | + display: inline-block; | |
| 787 | + color: #ff4d4f; | |
| 788 | + font-size: 14px; | |
| 789 | + font-family: SimSun, sans-serif; | |
| 790 | + line-height: 1; | |
| 791 | + content: '*'; | |
| 792 | + } | |
| 784 | 793 | </style> | ... | ... |
| ... | ... | @@ -119,6 +119,7 @@ |
| 119 | 119 | } |
| 120 | 120 | if (validate.triggerType == undefined) return createMessage.error('请选择设备触发方式'); |
| 121 | 121 | if (validate.type1 == undefined) return createMessage.error('请选择属性触发方式'); |
| 122 | + if (!validate.deviceType) return createMessage.error('请选择设备类型'); | |
| 122 | 123 | if (validate.device == undefined) return createMessage.error('请选择设备'); |
| 123 | 124 | if (validate.device == 'PART') { |
| 124 | 125 | if (validate.entityId == undefined) return createMessage.error('请选择设备'); | ... | ... |
| ... | ... | @@ -71,7 +71,7 @@ |
| 71 | 71 | <Tooltip placement="bottom"> |
| 72 | 72 | <template #title>前往手机登录</template> |
| 73 | 73 | <div @click="setLoginState(LoginStateEnum.MOBILE)" class="flex justify-center icon-button"> |
| 74 | - <mobile-filled :style="{ fontSize: '18px' }" /> | |
| 74 | + <img :src="mobildSvg" /> | |
| 75 | 75 | </div> |
| 76 | 76 | </Tooltip> |
| 77 | 77 | </Divider> |
| ... | ... | @@ -87,7 +87,7 @@ |
| 87 | 87 | import { LoginStateEnum, useLoginState, useFormRules, useFormValid } from './useLogin'; |
| 88 | 88 | import { getPlatForm } from '/@/api/oem'; |
| 89 | 89 | import { createLocalStorage, createSessionStorage } from '/@/utils/cache'; |
| 90 | - import { MobileFilled } from '@ant-design/icons-vue'; | |
| 90 | + import mobildSvg from '/@/assets/svg/mobile.svg'; | |
| 91 | 91 | |
| 92 | 92 | const ACol = Col; |
| 93 | 93 | const ARow = Row; |
| ... | ... | @@ -165,10 +165,16 @@ |
| 165 | 165 | |
| 166 | 166 | <style lang="less" scoped> |
| 167 | 167 | .icon-button { |
| 168 | + cursor: pointer; | |
| 168 | 169 | align-items: center; |
| 169 | 170 | border-radius: 50%; |
| 170 | - background-color: #f7f7f7; | |
| 171 | 171 | width: 2.8rem; |
| 172 | 172 | height: 2.8rem; |
| 173 | + | |
| 174 | + img { | |
| 175 | + border-radius: 50%; | |
| 176 | + width: 2rem; | |
| 177 | + height: 2rem; | |
| 178 | + } | |
| 173 | 179 | } |
| 174 | 180 | </style> | ... | ... |
| ... | ... | @@ -33,7 +33,7 @@ |
| 33 | 33 | <template #title>前往账号登录</template> |
| 34 | 34 | <div class="flex justify-center cursor-pointer"> |
| 35 | 35 | <div @click="handleBackLogin" class="flex justify-center icon-button"> |
| 36 | - <contacts-filled :style="{ fontSize: '18px' }" /> | |
| 36 | + <img :src="accountSvg" /> | |
| 37 | 37 | </div> |
| 38 | 38 | </div> |
| 39 | 39 | </Tooltip> |
| ... | ... | @@ -51,7 +51,7 @@ |
| 51 | 51 | import { SendLoginSmsCode } from '/@/api/sys/user'; |
| 52 | 52 | import { useUserStore } from '/@/store/modules/user'; |
| 53 | 53 | import { useMessage } from '/@/hooks/web/useMessage'; |
| 54 | - import { ContactsFilled } from '@ant-design/icons-vue'; | |
| 54 | + import accountSvg from '/@/assets/svg/account.svg'; | |
| 55 | 55 | const { notification } = useMessage(); |
| 56 | 56 | |
| 57 | 57 | const FormItem = Form.Item; |
| ... | ... | @@ -108,10 +108,17 @@ |
| 108 | 108 | </script> |
| 109 | 109 | <style lang="less" scoped> |
| 110 | 110 | .icon-button { |
| 111 | + cursor: pointer; | |
| 111 | 112 | align-items: center; |
| 112 | 113 | border-radius: 50%; |
| 113 | - background-color: #f7f7f7; | |
| 114 | + // background-color: #f7f7f7; | |
| 114 | 115 | width: 2.8rem; |
| 115 | 116 | height: 2.8rem; |
| 117 | + | |
| 118 | + img { | |
| 119 | + border-radius: 50%; | |
| 120 | + width: 2rem; | |
| 121 | + height: 2rem; | |
| 122 | + } | |
| 116 | 123 | } |
| 117 | 124 | </style> | ... | ... |