index.vue 107 KB
Newer Older
wanli's avatar
wanli committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435
<template>
    <section class="layout-wrapper beauty-scroll">
        <aside :class="['layout-side', 'beauty-scroll', isCollapsed ? 'collapsed' : 'expansion']">
            <div class="layout-side-children">
                <div class="logo dark">
                    <a aria-current="page">
                        <img src="@/assets/images/logo.png" />
                        <h1>{{ setting.name.zh }}</h1>
                    </a>
                </div>
                <ul role="menu" class="menu">
                    <TreeMenu v-for="(menu, index) in menuList" :key="index" :data="menu" :isCollapsed="isCollapsed"></TreeMenu>
                </ul>
            </div>
        </aside>
        <div :class="['layout-virtual-side', isCollapsed ? 'collapsed' : 'expansion']"></div><!-- 占位 -->
        <!-- <div class="layout-side-setting">
            <div :class="['mask', drawerShow ? 'open':'close']"></div>
            <div :class="['drawer', 'right', drawerShow ? 'open':'close']" ref="drawer">
                <div class="content beauty-scroll">
                    <div class="side-setting">
                        <div class="setting-item">
                            <button type="button" class="primary">
                                <i aria-label="图标: save" class="webicon">
                                    <svg viewBox="64 64 896 896" data-icon="save" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"></path></svg>
                                </i>
                                <span>保存配置</span>
                            </button>
                            <button type="button" class="dashed" style="float: right;">
                                <i aria-label="图标: redo" class="webicon">
                                    <svg viewBox="64 64 896 896" data-icon="redo" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 0 0-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"></path></svg>
                                </i>
                                <span>重置配置</span>
                            </button>
                        </div>
                        <div class="setting-item">
                            <h3>整体风格设置</h3>
                            <div style="display: flex;">
                                <div class="img-check-box">
                                    <img src="https://gw.alipayobjects.com/zos/rmsportal/LCkqqYNmvBEbokSDscrm.svg">
                                    <div class="check-item">
                                        <i aria-label="图标: check" class="webicon"><svg viewBox="64 64 896 896" data-icon="check" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"></path></svg></i>
                                    </div>
                                </div>
                                <div class="img-check-box">
                                    <img src="https://gw.alipayobjects.com/zos/rmsportal/jpRkZQMyYRryryPNtyIC.svg">
                                    <div class="check-item">
                                        <i aria-label="图标: check" class="webicon"><svg viewBox="64 64 896 896" data-icon="check" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"></path></svg></i>
                                    </div>
                                </div>
                                <div class="img-check-box">
                                    <img src="https://gw.alipayobjects.com/zos/antfincdn/hmKaLQvmY2/LCkqqYNmvBEbokSDscrm.svg">
                                    <div class="check-item">
                                        <i aria-label="图标: check" class="webicon"><svg viewBox="64 64 896 896" data-icon="check" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"></path></svg></i>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="setting-item">
                            <h3>主题色</h3>
                            <div>
                                <div class="theme-color" style="background-color: rgb(245, 34, 45);"></div>
                                <div class="theme-color" style="background-color: rgb(250, 84, 28);"></div>
                                <div class="theme-color" style="background-color: rgb(250, 219, 20);"></div>
                                <div class="theme-color" style="background-color: rgb(62, 175, 124);"></div>
                                <div class="theme-color" style="background-color: rgb(19, 194, 194);">
                                    <i aria-label="图标: check" class="webicon">
                                        <svg viewBox="64 64 896 896" data-icon="check" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                            <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"></path>
                                        </svg>
                                    </i>
                                </div>
                                <div class="theme-color" style="background-color: rgb(24, 144, 255);"></div>
                                <div class="theme-color" style="background-color: rgb(114, 46, 209);"></div>
                                <div class="theme-color" style="background-color: rgb(235, 47, 150);"></div>
                                <div style="clear: both"></div>
                            </div>
                        </div>
                        <div class="divider-horizontal"></div>
                        <div class="setting-item">
                            <h3>导航设置</h3>
                            <div style="display: flex;">
                                <div class="img-check-box">
                                    <img src="https://gw.alipayobjects.com/zos/rmsportal/JopDzEhOqwOjeNTXkoje.svg">
                                    <div class="check-item">
                                        <i aria-label="图标: check" class="webicon"><svg viewBox="64 64 896 896" data-icon="check" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"></path></svg></i>
                                    </div>
                                </div>
                                <div class="img-check-box">
                                    <img src="https://gw.alipayobjects.com/zos/rmsportal/KDNDBbriJhLwuqMoxcAr.svg">
                                    <div class="check-item">
                                        <i aria-label="图标: check" class="webicon"><svg viewBox="64 64 896 896" data-icon="check" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"></path></svg></i>
                                    </div>
                                </div>
                                <div class="img-check-box">
                                    <img src="https://gw.alipayobjects.com/zos/antfincdn/x8Ob%26B8cy8/LCkqqYNmvBEbokSDscrm.svg">
                                    <div class="check-item">
                                        <i aria-label="图标: check" class="webicon"><svg viewBox="64 64 896 896" data-icon="check" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"></path></svg></i>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="setting-item">
                            <ul class="list-wrapper">
                                <li class="list-item">
                                    内容区域宽度
                                    <ul class="list-item-action">
                                        <li>
                                            <div tabindex="0" class="drop-down-list">
                                                <div role="combobox" aria-autocomplete="list" aria-haspopup="true" class="drop-down-list-selection">
                                                    <div class="drop-down-list-selection-rendered">
                                                        <div title="定宽" class="drop-down-list-selection-value">定宽</div>
                                                    </div>
                                                    <span unselectable="on" class="drop-down-list-selection-arrow" style="user-select: none;">
                                                        <i aria-label="图标: down" class="webicon">
                                                            <svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                                                <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
                                                            </svg>
                                                        </i>
                                                    </span>
                                                </div>
                                            </div>
                                        </li>
                                    </ul>
                                </li>
                                <li class="list-item">
                                    固定Header
                                    <ul class="list-item-action">
                                        <li>
                                            <button type="button" role="switch" class="switch-button">
                                                <span class="switch-inner"></span>
                                            </button>
                                        </li>
                                    </ul>
                                </li>
                                <li class="list-item">
                                    固定侧边栏
                                    <ul class="list-item-action">
                                        <li>
                                            <button type="button" role="switch" class="switch-button checked">
                                                <span class="switch-inner"></span>
                                            </button>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                        <div class="divider-horizontal"></div>
                        <div class="setting-item">
                            <h3>其他设置</h3>
                            <ul class="list-wrapper">
                                <li class="list-item">
                                    色弱模式
                                    <ul class="list-item-action">
                                        <li>
                                            <div tabindex="0" class="drop-down-list">
                                                <div role="combobox" aria-autocomplete="list" aria-haspopup="true" class="drop-down-list-selection">
                                                    <div class="drop-down-list-selection-rendered">
                                                        <div title="定宽" class="drop-down-list-selection-value">定宽</div>
                                                    </div>
                                                    <span unselectable="on" class="drop-down-list-selection-arrow" style="user-select: none;">
                                                        <i aria-label="图标: down" class="webicon">
                                                            <svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                                                <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
                                                            </svg>
                                                        </i>
                                                    </span>
                                                </div>
                                            </div>
                                        </li>
                                    </ul>
                                </li>
                                <li class="list-item">
                                    多页签模式
                                    <ul class="list-item-action">
                                        <li>
                                            <button type="button" role="switch" class="switch-button">
                                                <span class="switch-inner"></span>
                                            </button>
                                        </li>
                                    </ul>
                                </li>
                                <li class="list-item">
                                    隐藏设置抽屉
                                    <ul class="list-item-action">
                                        <li>
                                            <button type="button" role="switch" class="switch-button checked">
                                                <span class="switch-inner"></span>
                                            </button>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                        <div class="divider-horizontal"></div>
                        <div class="setting-item">
                            <h3>页面切换动画</h3>
                            <ul class="list-wrapper">
                                <li class="list-item">
                                    禁用动画
                                    <ul class="list-item-action">
                                        <li>
                                            <div tabindex="0" class="drop-down-list">
                                                <div role="combobox" aria-autocomplete="list" aria-haspopup="true" class="drop-down-list-selection">
                                                    <div class="drop-down-list-selection-rendered">
                                                        <div title="定宽" class="drop-down-list-selection-value">定宽</div>
                                                    </div>
                                                    <span unselectable="on" class="drop-down-list-selection-arrow" style="user-select: none;">
                                                        <i aria-label="图标: down" class="webicon">
                                                            <svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                                                <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
                                                            </svg>
                                                        </i>
                                                    </span>
                                                </div>
                                            </div>
                                        </li>
                                    </ul>
                                </li>
                                <li class="list-item">
                                    动画效果
                                    <ul class="list-item-action">
                                        <li>
                                            <div tabindex="0" class="drop-down-list">
                                                <div role="combobox" aria-autocomplete="list" aria-haspopup="true" class="drop-down-list-selection">
                                                    <div class="drop-down-list-selection-rendered">
                                                        <div title="光速" class="drop-down-list-selection-value">光速</div>
                                                    </div>
                                                    <span unselectable="on" class="drop-down-list-selection-arrow" style="user-select: none;">
                                                        <i aria-label="图标: down" class="webicon">
                                                            <svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                                                <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
                                                            </svg>
                                                        </i>
                                                    </span>
                                                </div>
                                            </div>
                                        </li>
                                    </ul>
                                </li>
                                <li class="list-item">
                                    动画方向
                                    <ul class="list-item-action">
                                        <li>
                                            <div tabindex="0" class="drop-down-list">
                                                <div role="combobox" aria-autocomplete="list" aria-haspopup="true" class="drop-down-list-selection">
                                                    <div class="drop-down-list-selection-rendered">
                                                        <div title="left" class="drop-down-list-selection-value">left</div>
                                                    </div>
                                                    <span unselectable="on" class="drop-down-list-selection-arrow" style="user-select: none;">
                                                        <i aria-label="图标: down" class="webicon">
                                                            <svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                                                <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
                                                            </svg>
                                                        </i>
                                                    </span>
                                                </div>
                                            </div>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                        <div class="alert alert-warning" style="max-width: 240px; margin: -16px 0px 8px; word-break: break-all;">
                            <span class="alert-message">拷贝配置后,直接覆盖文件 src/config/config.js 中的全部内容,然后重启即可。(注意:仅会拷贝与默认配置不同的项)</span>
                            <span class="alert-description"></span>
                        </div>
                        <button data-clipboard-text="Sorry, you have copied nothing O(∩_∩)O~" type="button" class="web-btn" style="width: 100%;">
                            <i aria-label="图标: copy" class="webicon">
                                <svg viewBox="64 64 896 896" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg>
                            </i>
                            <span>拷贝配置</span>
                        </button>
                    </div>
                </div>
                <div class="handler-button">
                    <div class="setting" @click.stop="drawerToggle">
                        <i v-if="true" aria-label="图标:setting" class="webicon">
                            <svg viewBox="64 64 896 896" data-icon="setting" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2z"></path>
                            </svg>
                        </i>
                        <i v-else aria-label="图标:close" class="webicon">
                            <svg viewBox="64 64 896 896" data-icon="close" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                <path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"></path>
                            </svg>
                        </i>
                    </div>
                </div>
            </div>
        </div> -->
        <section class="layout-content beauty-scroll">
            <header :class="['layout-content-header', isCollapsed ? 'fixed-collapsed' : 'fixed-expansion']">
                <div class="header-wide side">
                    <i aria-label="图标:menu-fold" tabindex="-1" :class="['trigger', 'webicon', isCollapsed ? 'collapsed' : 'expansion']" @click.stop="collapseToggle">
                        <svg viewBox="64 64 896 896" data-icon="menu-fold" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 0 0 0 13.8z"></path></svg>
                    </i>
                    <div class="header-right">
                        <!-- <div class="header-item">
                            <i aria-label="图标: search" tabindex="-1" class="webicon search-icon" @click.stop="onSelectClick">
                                <svg viewBox="64 64 896 896" data-icon="search" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"></path></svg>
                            </i>
                            <div tabindex="-1" class="header-select">
                                <input placeholder="站内搜索" type="text" value="" ref="headerInput" autofocus="autofocus" v-show="inputShow" v-on:focus="onSelectFocus" @blur="onSelectBlur">
                                <ul v-show="selectShow">
                                    <li>选项一</li>
                                    <li>选项二</li>
                                    <li>选项三</li>
                                </ul>
                            </div>
                        </div>
                        <a class="header-item">
                            <i aria-label="图标: question-circle-o">
                                <svg viewBox="64 64 896 896" data-icon="question-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                    <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path>
                                    <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0 1 30.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1 0 80 0 40 40 0 1 0-80 0z"></path>
                                </svg>
                            </i>
                        </a> -->
                        <span class="header-item header-notice" @click.stop="tabsToggle">
                            <span class="notice-badge">
                                <i aria-label="图标: bell" class="webicon">
                                    <svg viewBox="64 64 896 896" data-icon="bell" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                        <path d="M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"></path>
                                    </svg>
                                </i>
                                <sup title="12" class="badge-count" data-show="true" v-show="warnings.length">{{ warnings.length }}</sup>
                            </span>
                        </span>
                        <div class="header-item header-avatar" @click.stop="onAvatarClick" ref="avatar">
                            <span class="avatar">
                                <img src="https://gw.alipayobjects.com/zos/rmsportal/cnrhVkzwxjPwAaCfPbdc.png">
                            </span>
                            <span class="name">{{ $store.getters.name }}</span>
                        </div>
                        <!-- <div class="header-item" @click="onLangClick" ref="lang">
                            <i aria-label="图标: global" class="webicon">
                                <svg viewBox="64 64 896 896" data-icon="global" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                    <path d="M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0 0 10-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 0 0 3.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 0 0-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 0 1 887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 0 1-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 0 1 115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 0 1 540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 0 0 540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 0 1-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 0 0-81.5 55.9A373.86 373.86 0 0 1 137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 0 1-107.6 69.2z"></path>
                                </svg>
                            </i>
                            简体
                        </div> -->
                    </div>
                </div>
            </header>
            <header class="layout-virtual-header" style="display: block;"></header>
            <main class="layout-content-main">
                <transition name="fade-transform" mode="out-in">
                    <keep-alive v-if="$route.meta.keepAlive">
                        <router-view :key="key"></router-view>
                    </keep-alive>
                    <router-view v-else :key="key"></router-view>
                </transition>
            </main>
            <footer class="layout-content-footer">
                <div class="footer">
                    <div class="copyright">
                        Copyright
                        <i aria-label="图标: copyright" class="webicon">
                            <svg viewBox="64 64 896 896" data-icon="copyright" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"></path>
                            </svg>
                        </i>{{ setting.author }}
                        <!-- <a target="_blank" href="https://pro.ant.design">Pro首页</a>
                        <a target="_blank" href="https://github.com/iczer/vue-antd-admin">
                            <i aria-label="图标: github" class="webicon">
                                <svg viewBox="64 64 896 896" data-icon="github" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false">
                                    <path d="M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"></path>
                                </svg>
                            </i>
                        </a>
                        <a target="_blank" href="https://ant.design">Ant Design</a> -->
                    </div>
                </div>
            </footer>
        </section>

        <div class="layout-drawer-side-menu">
            <div :class="['mask', drawerSideShow ? 'open':'close']"></div>
            <div :class="['drawer', 'left', drawerSideShow ? 'open':'close']" ref="drawer">
                <aside class="layout-side beauty-scroll expansion" ref="aside">
                    <div class="layout-side-children">
                        <div class="logo dark">
                            <a aria-current="page">
                                <img src="@/assets/images/logo.png" />
                                <h1>{{ setting.name }}</h1>
                            </a>
                        </div>
                        <ul role="menu" class="menu">
                            <TreeMenu v-for="(menu, index) in menuList" :key="index" :data="menu" :isCollapsed="false"></TreeMenu>
                        </ul>
                    </div>
                </aside>
            </div>
        </div>

        <div class="dropdown-tabs" v-show="tabsShow" ref="tabs">
            <div class="tabs-nav-wrap top">
                <p class="header">
                    <label>通知</label>
                    <span>全部标记已读</span>
                </p>
            </div>
            <div class="tabs-content beauty-scroll">
                <transition-group tag="div" :name="animate">
                    <ul v-show="currentTabIndex == 0" :key="0">
                        <li v-for="(item, index) in warnings" :key="index">
                            <div class="avatar" :style="{ background: item.color }">
                                <label :style="{ color: item.color == 'yellow' ? 'blue':'white' }">{{ item.color | getStatus }}</label>
                            </div>
                            <div class="content">
                                <h4 class="title">{{ item.title }}</h4>
                                <div class="description">
                                    <p>{{ item.time }}</p>
                                    <span>已读</span>
                                </div>
                            </div>
                        </li>
                        <li class="empty" v-if="warnings.length == 0">
                            <div class="empty-image">
                                <svg width="64" height="41" viewBox="0 0 64 41" xmlns="http://www.w3.org/2000/svg"><g transform="translate(0 1)" fill="none" fillRule="evenodd"><ellipse fill="#F5F5F5" cx="32" cy="33" rx="32" ry="7"></ellipse><g fillRule="nonzero" stroke="#D9D9D9"><path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"></path><path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#FAFAFA"></path></g></g></svg>
                                <p class="empty-description">暂无数据</p>
                            </div>
                        </li>
                    </ul>
                </transition-group>
            </div>
            <div class="tabs-nav-wrap bottom">
                <p class="all-text" @click="redirectTo('/alarm/log')">查看全部通知</p>
            </div>
        </div>

        <div class="dropdown" v-show="userShow" style="right: 20px;">
            <ul>
wanli's avatar
wanli committed
436
                <li @click="redirectTo('/profile')">
wanli's avatar
wanli committed
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021
                    <i aria-label="图标: user" class="webicon">
                        <svg viewBox="64 64 896 896" data-icon="user" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"></path></svg>
                    </i>个人中心
                </li>
                <!-- <li @click="redirectTo('/system/profile')">
                    <i aria-label="图标: setting" class="webicon">
                        <svg viewBox="64 64 896 896" data-icon="setting" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2z"></path></svg>
                    </i>设置
                </li> -->
                <li class="divider"></li>
                <li @click="redirectTo('/login')">
                    <i aria-label="图标: poweroff" class="webicon">
                        <svg viewBox="64 64 896 896" data-icon="poweroff" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"><path d="M705.6 124.9a8 8 0 0 0-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0 1 62.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0 1 27.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 0 1-76.3 113.3 353.06 353.06 0 0 1-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 0 1-113.2-76.4A355.92 355.92 0 0 1 184 650.4a355 355 0 0 1-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"></path></svg>
                    </i>退出登录
                </li>
            </ul>
        </div>

    </section>
</template>

<script>
import TreeMenu from './TreeMenu'
import setting from "@/settings.js";
import ResizeMixin from "./mixin/ResizeHandler";

const pageInfos = setting.pageInfos;

export default {
    name: 'Layout',
    components: {
        TreeMenu
    },
    mixins: [ResizeMixin],
    watch: {
        currentTabIndex(n, o) {
            if (n > o) this.animate = "slide-left"
            else this.animate = "slide-right"
        },
    },
    filters: {
        getStatus(status) {
            if (status == 'red') return '紧急'
            else if (status == 'orange') return '重要'
            else return '一般'
        }
    },
    computed: {
        key() {
            return this.$route.path;
        },
    },
    data () {
        return {
            setting,
            animate: "",
            isCollapsed: false,
            inputShow: false,
            drawerShow: false,
            selectShow: false,
            tabsShow: false,
            userShow: false,
            drawerSideShow: false,
            currentTabIndex: 0,
            menuList: pageInfos,
            warnings: [],
        }
    },
    methods: {
        redirectTo(path) {
            if (path == "/login") {
                this.$store.dispatch("user/removeRole")
                this.$store.dispatch("user/removeToken")
            }
            this.$router.push(path)
        },
        setRootStyle() {
            // const wrapperDom = this.$el;
            const wrapperDom = document.querySelector(".layout-wrapper");
            if (wrapperDom) {
                wrapperDom.parentNode.setAttribute("class", "beauty-scroll");
                wrapperDom.parentNode.setAttribute("style", "height: 100vh;overflow-y: scroll;");
            }
        },
        onSelectClick() {
            this.inputShow = true
            this.$refs.headerInput.focus()
        },
        onSelectFocus() {
            // this.selectShow = true
            console.log('select focus')
        },
        onSelectBlur() {
            this.inputShow = false
            // this.selectShow = false
        },
        onTabsClick(idx) {
            this.currentTabIndex = idx
        },
        onAvatarClick() {
            this.userShow = true
        },
        drawerToggle() {
            this.drawerShow = !this.drawerShow
        },
        tabsToggle() {
            this.tabsShow = !this.tabsShow
        },
        collapseToggle() {
            this.isCollapsed = !this.isCollapsed

            const windowWidth = document.body.clientWidth || document.documentElement.clientWidth
            if (windowWidth < 768) { // 根据可视范围内窗口宽度决定点击按钮显示哪个菜单
                this.drawerSideShow = !this.drawerSideShow
            }
        },
        userToggle() {
            this.userShow = !this.userShow
        },
        handleDocumentClick(e) {
            if (!e || !e.target) return
            if (this.drawerShow && this.$refs.drawer && !this.$refs.drawer.contains(e.target)) {
                this.drawerShow = false
            }
            else if (this.tabsShow && this.$refs.tabs && !this.$refs.tabs.contains(e.target)) {
                this.tabsShow = false
            }
            else if (this.userShow && this.$refs.avatar && this.$refs.avatar && !this.$refs.avatar.contains(e.target)) {
                this.userShow = false
            }
            else if (this.drawerSideShow && this.$refs.aside && !this.$refs.aside.contains(e.target)) {
                this.drawerSideShow = false
            }
        },
    },
    mounted() {
        this.setRootStyle()
        document.addEventListener('click', this.handleDocumentClick)
    },
    created() {},
}
</script>

<style lang="less">
.beauty-scroll {
    position: relative;
    scrollbar-color: #13c2c2 #b5f5ec;
    scrollbar-width: thin;
    -ms-overflow-style: none;
}
.beauty-scroll::-webkit-scrollbar {
    width: 3px;
    height: 1px;
}
.beauty-scroll::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #13c2c2;
}
.beauty-scroll::-webkit-scrollbar-track {
    background: #87e8de;
    border-radius: 3px;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0);
    -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0);
}
.wrapper {
    color: #2c3e50;
    font-family: Avenir, Helvetica, Arial, sans-serif;
    margin-top: 60px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.layout-wrapper {
    background: #f0f2f5;
    box-sizing: border-box;
    display: flex;
    flex: auto;
    flex-direction: row;
    position: relative;
    min-height: 0;
    -webkit-box-direction: normal;
    -webkit-box-flex: 1;
    -webkit-box-orient: horizontal;
    aside.layout-side {
        background: #032121;
        box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
        box-sizing: border-box;
        display: block;
        height: 100vh;
        left: 0;
        min-height: 100vh;
        overflow-y: auto;
        position: fixed;
        top: 0;
        transition: all 0.2s;
        z-index: 10;
        -webkit-box-direction: normal;
        -webkit-box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
        -webkit-box-sizing: border-box;
        -webkit-transition: all 0.2s;
        &.expansion {
            flex: 0 0 256px;
            max-width: 256px;
            min-width: 256px;
            width: 256px;
        }
        &.collapsed {
            flex: 0 0 80px;
            max-width: 80px;
            min-width: 80px;
            width: 80px;
        }
        & > div.layout-side-children {
            height: 100%;
            margin-top: -0.1px;
            padding-top: 0.1px;
            & > div.logo {
                background-color: #053434;
                height: 64px;
                position: relative;
                line-height: 64px;
                overflow: hidden;
                padding-left: 24px;
                transition: all 0.3s;
                -webkit-transition: all 0.3s;
                & > a {
                    & > img {
                        vertical-align: middle;
                        width: 32px;
                    }
                    & > h1 {
                        color: #fefefe;
                        display: inline-block;
                        font-size: 20px;
                        margin: 0 0 0 12px;
                        vertical-align: middle;
                    }
                }
            }
            ul.menu {
                background: #032121;
                border-right: 0;
                box-shadow: none;
                box-sizing: border-box;
                color: rgba(254, 254, 254, 0.65);
                font-feature-settings: 'tnum';
                font-size: 14px;
                font-variant: tabular-nums;
                line-height: 0;
                list-style: none;
                margin: 0;
                margin-bottom: 0;
                outline: none;
                padding: 16px 0;
                transition: background 0.3s, width 0.3s cubic-bezier(0.2, 0, 0, 1) 0s;
                width: 100%;
                zoom: 1;
                -webkit-box-shadow: none;
                -webkit-transition: background 0.3s, width 0.3s cubic-bezier(0.2, 0, 0, 1) 0s;
                &::before {
                    display: table;
                    content: '';
                }
                & > li.menu-submenu {
                    color: rgba(254, 254, 254, 0.65);
                    padding-bottom: 0.02px;
                    transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
                    -webkit-transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
                    & > div.menu-submenu-title {
                        cursor: pointer;
                        display: block;
                        font-size: 14px;
                        height: 40px;
                        line-height: 40px;
                        margin: 0;
                        margin-bottom: 4px;
                        margin-top: 4px;
                        overflow: hidden;
                        padding: 0 16px;
                        padding-right: 34px;
                        position: relative;
                        text-overflow: ellipsis;
                        transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
                        white-space: nowrap;
                        width: 100%;
                        -webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
                        &.collapsed {
                            padding: 0 32px !important;
                            left: 0;
                            text-overflow: clip;
                            i {
                                font-size: 18px !important;
                                margin-right: 0px;
                            }
                        }
                        & > span {
                            overflow: hidden;
                            text-overflow: clip;
                            white-space: normal;
                            & > i {
                                font-size: 14px;
                                margin-right: 10px;
                                min-width: 14px;
                                transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                                -webkit-font-smoothing: antialiased;
                                -webkit-transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                            }
                        }
                        & > i.menu-submenu-arrow {
                            border-color: #fff;
                            border-style: solid;
                            content: "";
                            display: inline-block;
                            height: 7px;
                            opacity: 0.45;
                            position: absolute;
                            right: 16px;
                            top: 38%;
                            width: 7px;
                            transform: matrix(0.71, 0.71, -.71, 0.71, 0, 0);
                            -webkit-transform: matrix(0.71, 0.71, -.71, 0.71, 0, 0);
                            transition: border 0.3s ease-in-out;
                            transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                            &.up {
                                border-width: 2px 0 0 2px; // 上箭头
                            }
                            &.down {
                                border-width: 0 2px 2px 0; // 下箭头
                            }
                            &.left {
                                border-width: 0 0 2px 2px; // 左箭头
                            }
                            &.right {
                                border-width: 2px 2px 0 0; // 右箭头
                            }
                        }
                    }
                    &:hover {
                        color: #fff;
                    }
                    & > ul.menu.menu-sub {
                        background: #110203;
                        border: 0;
                        border-radius: 0;
                        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) inset;
                        box-sizing: border-box;
                        color: rgba(254,254,254, 0.65);
                        cursor: initial;
                        font-size: 14px;
                        font-feature-settings: 'tnum';
                        font-variant: tabular-nums;
                        line-height: 0;
                        list-style: none;
                        margin: 0;
                        outline: none;
                        padding: 0;
                        transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                        width: 100%;
                        zoom: 1;
                        -webkit-transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                        -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) inset;
                        &::before, &::after {
                            display: table;
                            content: '';
                        }
                        & > li.menu-item {
                            & > a {
                                overflow: hidden;
                                text-overflow: clip;
                                white-space: normal;
                                &.router-link-active {
                                    color: #13c2c2;;
                                }
                            }
                        }
                    }
                }
                & > li.menu-item {
                    border-right: 0;
                    color: rgba(254, 254, 254, 0.65);
                    cursor: pointer;
                    display: block;
                    font-size: 14px;
                    height: 40px;
                    left: 0;
                    line-height: 40px;
                    margin-left: 0;
                    margin-top: 4px;
                    overflow: hidden;
                    padding: 0 16px;
                    position: relative;
                    text-overflow: ellipsis;
                    transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
                    white-space: nowrap;
                    width: 100%;
                    -webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
                    &:not(:last-child) {
                        margin-bottom: 8px;
                    }
                    &.collapsed {
                        padding: 0 32px !important;
                        left: 0;
                        text-overflow: clip;
                        i {
                            font-size: 18px !important;
                        }
                    }
                    &.selected {
                        background-color: #13c2c2;
                        & > a {
                            color: #fff;
                        }
                    }
                    &::after {
                        border-right: 0;
                        bottom: 0;
                        content: '';
                        opacity: 0;
                        position: absolute;
                        right: 0;
                        top: 0;
                        transform: scaleY(0.0001);
                        transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
                        transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
                        transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
                        -webkit-transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
                    }
                    & > a {
                        color: rgba(254, 254, 254, 0.65);
                        display: block;
                        // overflow: hidden;
                        text-overflow: clip;
                        white-space: normal;
                        &::before {
                            background-color: transparent;
                            bottom: 0;
                            content: '';
                            left: 0;
                            position: absolute;
                            right: 0;
                            top: 0;
                        }
                        &:hover {
                            color: #fff;
                        }
                        & > i {
                            font-size: 14px;
                            margin-right: 10px;
                            min-width: 14px;
                            transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                            -webkit-transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                            &.collapsed {
                                font-size: 16px;
                                margin-right: 0px;
                            }
                        }
                    }
                }
            }
        }
    }
    & > div.layout-drawer-side-menu {
        z-index: 9999;
        aside.layout-side {
            position: relative!important;
            li.collapsed {
                i {
                    margin-right: 5px!important;
                }
            }
        }
    }
    & > div.layout-virtual-side {
        box-sizing: border-box;
        display: block;
        transition: all 0.2s;
        -webkit-box-direction: normal;
        -webkit-box-sizing: border-box;
        -webkit-transition: all 0.2s;
        &.expansion {
            flex: 0 0 256px;
            max-width: 256px;
            min-width: 256px;
            width: 256px;
        }
        &.collapsed {
            flex: 0 0 80px;
            max-width: 80px;
            min-width: 80px;
            width: 80px;
        }
    }
    & > div.layout-side-setting {
        z-index: 10000;
        div.content {
            box-sizing: border-box;
            // display: inline-block;
            float: right;
            height: 100vh;
            overflow-y: auto;
            position: relative;
            -webkit-box-sizing: border-box;
            & > div.side-setting {
                background-color: #fff;
                font-size: 14px;
                line-height: 1.5;
                min-height: 100%;
                padding: 24px;
                position: relative;
                & > div.setting-item {
                    margin-bottom: 24px;
                    & > button {
                        background-image: none;
                        border: 1px solid transparent;
                        border-radius: 4px;
                        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
                        cursor: pointer;
                        display: inline-block;
                        font-size: 14px;
                        font-weight: 400;
                        height: 32px;
                        line-height: 1.499;
                        outline: 0;
                        padding: 0 15px;
                        position: relative;
                        text-align: center;
                        touch-action: manipulation;
                        transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                        user-select: none;
                        white-space: nowrap;
                        -webkit-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
                        -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                        -webkit-user-select: none;
                        -moz-user-select: none;
                        -ms-user-select: none;
                        -ms-touch-action: manipulation;
                        & > span {
                            margin-left: 8px;
                            display: inline-block;
                            transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                            pointer-events: none;
                            -webkit-transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                        }
                    }
                    & > button.primary {
                        background-color: #13c2c2;
                        border-color: #13c2c2;
                        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
                        color: #fff;
                        text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
                        -webkit-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
                    }
                    & > button.dashed {
                        color: rgba(0, 0, 0, 0.65);
                        background-color: #fff;
                        border-color: #d9d9d9;
                        border-style: dashed;
                    }
                    & > h3 {
                        color: rgba(0, 0, 0, 0.85);
                        font-size: 14px;
                        line-height: 22px;
                        margin-bottom: 12px;
                    }
                    div.img-check-box {
                        border-radius: 4px;
                        cursor: pointer;
                        margin-right: 16px;
                        position: relative;
                        & > div.check-item {
                            color: #13c2c2;
                            font-size: 14px;
                            font-weight: bold;
                            height: 100%;
                            padding-left: 24px;
                            padding-top: 15px;
                            position: absolute;
                            right: 0;
                            top: 0;
                            width: 100%;
                        }
                    }
                    div.theme-color {
                        border-radius: 2px;
                        color: #fff;
                        cursor: pointer;
                        float: left;
                        font-weight: bold;
                        height: 20px;
                        margin-right: 8px;
                        text-align: center;
                        width: 20px;
                    }
                    ul.list-wrapper {
                        list-style: none;
                        outline: none;
                        padding: 0px;
                        position: relative;
                        transition: opacity 0.3s;
                        -webkit-transition: opacity 0.3s;
                        & > li.list-item {
                            align-items: center;
                            display: flex;
                            justify-content: space-between;
                            padding: 12px 0;
                            -webkit-box-align: center;
                            -webkit-box-pack: justify;
                            & > ul.list-item-action {
                                flex: 0 0 auto;
                                font-size: 0;
                                list-style: none;
                                margin-left: 48px;
                                padding: 0;
                                -webkit-box-flex: 0;
                                -ms-flex: 0 0 auto;
                                & > li {
                                    color: rgba(0, 0, 0, 0.45);
                                    cursor: pointer;
                                    display: inline-block;
                                    font-size: 14px;
                                    padding: 0 8px;
                                    position: relative;
                                    line-height: 22px;
                                    text-align: center;
                                    &:first-child {
                                        padding-left: 0;
                                    }
                                    & > div.drop-down-list {
                                        box-sizing: border-box;
                                        color: rgba(0, 0, 0, 0.65);
                                        display: inline-block;
                                        font-feature-settings: 'tnum';
                                        font-size: 14px;
                                        font-variant: tabular-nums;
                                        line-height: 1.5;
                                        list-style: none;
                                        margin: 0;
                                        outline: 0;
                                        padding: 0;
                                        position: relative;
                                        width: 80px;
                                        -webkit-box-sizing: border-box;
                                        -webkit-font-feature-settings: 'tnum';
                                        & > div.drop-down-list-selection {
                                            background-color: #fff;
                                            border: 1px solid #d9d9d9;
                                            border-radius: 4px;
                                            border-top-width: 1.02px;
                                            box-sizing: border-box;
                                            cursor: pointer;
                                            display: block;
                                            height: 24px;
                                            outline: none;
                                            position: relative;
                                            transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                                            user-select: none;
                                            -webkit-box-sizing: border-box;
                                            -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                                            -webkit-user-select: none;
                                            -moz-user-select: none;
                                            -ms-user-select: none;
                                            & > div.drop-down-list-selection-rendered {
                                                display: block;
                                                line-height: 22px;
                                                margin-left: 7px;
                                                margin-right: 24px;
                                                position: relative;
                                                & > div.drop-down-list-selection-value {
                                                    display: block;
                                                    float: left;
                                                    max-width: 100%;
                                                    opacity: 1;
                                                    overflow: hidden;
                                                    text-overflow: ellipsis;
                                                    white-space: nowrap;
                                                }
                                                &::after {
                                                    content: '.';
                                                    display: inline-block;
                                                    pointer-events: none;
                                                    visibility: hidden;
                                                    width: 0;
                                                }
                                            }
                                            & > span.drop-down-list-selection-arrow {
                                                color: rgba(0, 0, 0, 0.25);
                                                display: inline-block;
                                                font-size: 12px;
                                                font-style: normal;
                                                line-height: 1;
                                                margin-top: -6px;
                                                position: absolute;
                                                right: 8px;
                                                text-align: center;
                                                text-rendering: optimizeLegibility;
                                                text-transform: none;
                                                top: 50%;
                                                transform-origin: 50% 50%;
                                                vertical-align: -0.125em;
                                                -webkit-font-smoothing: antialiased;
                                                -webkit-transform-origin: 50% 50%;
                                                -moz-osx-font-smoothing: grayscale;
                                            }
                                        }
                                    }
                                    & > button.switch-button {
                                        background-color: rgba(0, 0, 0, 0.25);
                                        border: 1px solid transparent;
                                        border-radius: 100px;
                                        box-sizing: border-box;
                                        color: rgba(0, 0, 0, 0.65);
                                        cursor: pointer;
                                        display: inline-block;
                                        font-feature-settings: 'tnum';
                                        font-size: 14px;
                                        font-variant: tabular-nums;
                                        height: 16px;
                                        line-height: 14px;
                                        list-style: none;
                                        margin: 0;
                                        min-width: 28px;
                                        outline: none;
                                        padding: 0;
                                        position: relative;
                                        transition: all 0.36s;
                                        vertical-align: middle;
                                        user-select: none;
                                        -webkit-box-sizing: border-box;
                                        -webkit-font-feature-settings: 'tnum';
                                        -webkit-transition: all 0.36s;
                                        -webkit-user-select: none;
                                        -moz-user-select: none;
                                        -ms-user-select: none;
                                        &.checked {
                                            background-color: #13c2c2;
                                        }
                                        & > span.switch-inner {
                                            color: #fff;
                                            font-size: 12px;
                                            margin-left: 18px;
                                            margin-right: 3px;
                                            &::after {
                                                background-color: #fff;
                                                border-radius: 18px;
                                                box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2);
                                                content: ' ';
                                                cursor: pointer;
                                                height: 12px;
                                                left: 1px;
                                                position: absolute;
                                                top: 1px;
                                                width: 12px;
                                                transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86);
                                                -webkit-box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2);
                                                -webkit-transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86);
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        &::after {
                            position: absolute;
                            top: 0;
                            right: 0;
                            bottom: 0;
                            left: 0;
                            z-index: 10;
                            display: none \9;
                            width: 100%;
                            height: 100%;
                            background: #fff;
                            opacity: 0;
                            -webkit-transition: all 0.3s;
                            transition: all 0.3s;
                            content: '';
                            pointer-events: none;
                        }
                    }
                }
                & > div.divider-horizontal {
                    background: #f0f0f0;
                    clear: both;
                    color: rgba(0, 0, 0, 0.65);
                    display: block;
                    font-feature-settings: 'tnum';
                    font-size: 14px;
                    font-variant: tabular-nums;
                    height: 1px;
                    line-height: 1.5;
                    list-style: none;
                    margin: 24px 0;
                    min-width: 100%;
                    padding: 0;
                    position: relative;
                    top: -0.06em;
                    // vertical-align: middle;
                    width: 100%;
                }
                & > div.alert {
                    border-radius: 4px;
                    box-sizing: border-box;
                    color: rgba(0, 0, 0, 0.65);
                    font-feature-settings: 'tnum';
                    font-size: 14px;
                    font-variant: tabular-nums;
                    line-height: 1.5;
                    list-style: none;
                    margin: 0;
                    padding: 8px 15px 8px 37px;
                    padding: 8px 15px;
                    position: relative;
                    word-wrap: break-word;
                    -webkit-font-feature-settings: 'tnum';
                    -webkit-box-sizing: border-box;
                    &.alert-warning {
                        background-color: #fffbe6;
                        border: 1px solid #ffe58f;
                    }
                    & > span.alert-message {
                        color: rgba(0, 0, 0, 0.85);
                    }
                    & > span.alert-description {
                        display: none;
                        font-size: 14px;
                        line-height: 22px;
                    }
                }
            }
        }
        div.handler-button {
            cursor: pointer;
            display: inline-block;
            left: -40px;
            position: absolute;
            text-align: center;
            transition: all 0.5s;
            top: 200px;
            z-index: 100;
            -webkit-transition: all 0.5s;
            & > div.setting {
                background-color: #13c2c2;
                border-radius: 5px 0 0 5px;
                box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
                color: #fff;
                font-size: 22px;
                height: 40px;
                line-height: 40px;
                width: 40px;
                -webkit-box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
            }
        }
    }
    & > section.layout-content {
        background: #f0f2f5;    
        box-sizing: border-box;
        display: flex;
        flex: auto;
        flex-direction: column;
        min-height: 0;
        overflow-x: hidden;
        position: relative;
        -webkit-box-flex: 1;
        -webkit-box-orient: vertical;
        -webkit-box-sizing: border-box;
        -webkit-box-direction: normal;
        & > header.layout-content-header {
            background: #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            display: block;
            flex: 0 0 auto;
            height: 64px;
            line-height: 64px;
            overflow: hidden;
            padding: 0;
            right: 0;
            top: 0;
            transition: all 0.2s;
            z-index: 10;
            -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            -webkit-box-flex: 0;
            // -webkit-box-sizing: border-box;
            -webkit-transition: all 0.2s;
            &.fixed-collapsed {
                width: calc(100% - 80px);
                position: fixed;
            }
            &.fixed-expansion {
                width: calc(100% - 256px);
                position: fixed;
            }
            &.absolute {
                width: 100%;
                position: absolute;    
            }
            &.static {
                width: 100%;
                position: static;
            }
            & > div.header-wide {
                padding-left: 12px;
                & > i.trigger {
                    cursor: pointer;
                    font-size: 20px;
                    line-height: 64px;
                    padding: 0 24px;
                    transition: transform 0.3s;
                    vertical-align: top;
                    -webkit-transition: color 0.3s;
                    &.collapsed {
                        transform: rotate(180deg);
                        -ms-transform: rotate(180deg); 	    /* IE 9 */
                        -moz-transform: rotate(180deg); 	/* Firefox */
                        -webkit-transform: rotate(180deg);  /* Safari 和 Chrome */
                        -o-transform: rotate(180deg); 	    /* Opera */
                    }
                    &.expansion {
                        transform: rotate(0deg);
                        -ms-transform: rotate(0deg); 	    /* IE 9 */
                        -moz-transform: rotate(0deg); 	    /* Firefox */
                        -webkit-transform: rotate(0deg);    /* Safari 和 Chrome */
                        -o-transform: rotate(0deg); 	    /* Opera */
                    }
                }
                & > div.header-right {
                    color: inherit;
                    display: flex;
                    float: right;
                    & > .header-item {
                        align-self: center;
                        color: inherit;
                        cursor: pointer;
                        padding: 0 12px;
                        position: relative;
                        transition: width 0.3s ease-in-out;
                        & > i.search-icon {
                            cursor: pointer;
                            font-size: 16px;
                        }
                        & > div.header-select {
                            display: inline-block;
                            margin-left: 10px;
                            position: relative;
                            & > input {
                                border-bottom: 1px solid #aaa;
                                border-left: none;
                                border-right: none;
                                border-top: none;
                                font-size: 14px;
                                outline: none;
                                padding: 4px 8px;
                                ::-webkit-input-placeholder {
                                    /* Chrome/Opera/Safari */
                                    color: #999;
                                }
                                ::-moz-placeholder {
                                    /* Firefox 19+ */
                                    color: #999;
                                }
                                :-ms-input-placeholder {
                                    /* IE 10+ */
                                    color: #999;
                                }
                                :-moz-placeholder {
                                    /* Firefox 18- */
                                    color: #999;
                                }
                            }
                            & > ul {
                                background: #fff;
                                left: 0px;
                                list-style: none;
                                position: absolute;
                                top: 50px;
                                transform: translateZ(0px);
                                width: 100%;
                                z-index: 1000;
                                & > li {
                                    font-size: 14px;
                                    height: 20px;
                                    line-height: 20px;
                                }
                            }
                        }
                    }
                    & > .header-notice {
                        display: inline-block;
                        transition: all 0.3s;
                        -webkit-transition: all 0.3s;
                        & > span.notice-badge {
                            color: inherit;
                            display: inline-block;
                            font-feature-settings: 'tnum';
                            font-size: 14px;
                            font-variant: tabular-nums;
                            line-height: 1;
                            list-style: none;
                            margin: 0;
                            padding: 0;
                            position: relative;
                            vertical-align: initial;
                            & > i {
                                font-feature-settings: 'tnum';
                                font-size: 16px;
                                font-variant: tabular-nums;
                                list-style: none;
                                padding: 4px;
                            }
                            & > sup {
                                background: #f5222d;
                                border-radius: 10px;
                                box-shadow: 0 0 0 1px #fff;
                                color: #fff;
                                font-size: 12px;
                                font-weight: normal;
                                height: 20px;
                                line-height: 20px;
                                min-width: 20px;
                                overflow: hidden;
                                padding: 0 8px;
                                position: absolute;
                                right: 0;
                                text-align: center;
                                top: 0;
                                transform: translate(50%, -50%);
                                transform-origin: 100% 0%;
                                vertical-align: baseline;
                                white-space: nowrap;
                                z-index: 1;
                                -webkit-box-shadow: 0 0 0 1px #fff;
                                -webkit-transform: translate(50%, -50%);
                                -webkit-transform-origin: 100% 0%;
                            }
                        }
                    }
                    & > .header-avatar {
                        display: -webkit-inline-box;
                        display: -ms-inline-flexbox;
                        display: inline-flex;
                        & > .avatar {
                            align-self: center;
                            background: transparent;
                            border-radius: 50%;
                            color: #fff;
                            display: inline-block;
                            font-size: 14px;
                            font-feature-settings: 'tnum';
                            font-variant: tabular-nums;
                            height: 24px;
                            line-height: 24px;
                            list-style: none;
                            margin: 0;
                            margin-right: 8px;
                            overflow: hidden;
                            padding: 0;
                            position: relative;
                            text-align: center;
                            vertical-align: middle;
                            white-space: nowrap;
                            width: 24px;
                            & > img {
                                border-style: none;
                                display: block;
                                height: 100%;
                                object-fit: cover;
                                // vertical-align: middle;
                                width: 100%;
                                -o-object-fit: cover;
                            }
                        }
                        & > span.name {
                            font-weight: 500;
                        }
                    }
                }
            }
            & > div.header-wide.side {
                padding-right: 12px;
            }
        }
        & > header.layout-virtual-header {
            background: #032121;
            height: 64px;
            line-height: 64px;
            opacity: 0;
            padding: 0 50px;
            transition: all 0.2s;
            -webkit-transition: all 0.2s;
        }
        & > main.layout-content-main {
            display: block;
            flex: auto;
            min-height: calc(100vh - 64px - 122px);
            overflow-x: hidden;
            padding: 24px 24px 0;
            -ms-flex: auto;
            -webkit-box-flex: 1;
        }
        & > footer.layout-content-footer {
            color: rgba(0, 0, 0, 0.65);
            background: #f0f2f5;
            flex: 0 0 auto;
            font-size: 14px;
            padding: 24px 50px;
            -webkit-box-flex: 0;
            & > div.footer {
                color: rgba(0, 0, 0, 0.65);
                font-size: 14px;
                padding: 48px 16px 24px;
                text-align: center;
                & > div.links {
                    margin-bottom: 8px;
                    & > a {
                        color: rgba(0, 0, 0, 0.45);
                        transition: all 0.3s;
                        -webkit-transition: all 0.3s;
                    }
                    & > a:not(:last-child) {
                        margin-right: 40px;
                    }
                }
                & > div.copyright {
                    color: rgba(0, 0, 0, 0.45);
                    font-size: 14px;
                    & > i {
                        margin: 0 10px;
                        color: inherit;
                        display: inline-block;
                        font-style: normal;
                        line-height: 0;
                        text-align: center;
                        text-rendering: optimizeLegibility;
                        text-transform: none;
                        vertical-align: -0.125em;
                        -webkit-font-smoothing: antialiased;
                    }
                    & > a {
                        margin: 0px 5px;
                        display: inline-block;
                    }
                }
            }
        }
    }
    .dropdown-tabs {
        background-color: #fff;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        float: right;
        right: 120px;
        position: fixed; // 如果没有固定header,则设置为absolute
        top: 68px;
        width: 300px;
        z-index: 100;
        -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        & > div.tabs-nav-wrap {
            &.top {
                border-bottom: 1px solid #f0f0f0;
            }
            &.bottom {
                border-top: 1px solid #f0f0f0;
            }
            & > ul {
                display: flex;
                padding: 0px 20px;
                position: relative;
                & > li {
                    flex: 1;
                    cursor: pointer;
                    padding: 15px 0px;
                    position: relative;
                    text-align: center;
                    transition: 0.2s all linear;
                    width: 33.3333%;
                    &::before {
                        border-bottom: 2px solid #13c2c2;
                        content: "";
                        height: 100%;
                        left: 100%;
                        position: absolute;
                        top: 0;
                        transition: 0.2s all linear;
                        width: 0;
                    }
                    &.active {
                        color: #13c2c2;
                    }
                    &.active::before {
                        width: 100%;
                        left: 0;
                        top: 0;
                    }
                    &.active~&::before {
                        left: 0;
                    }
                }
                // &::after {
                //     background-color: #13c2c2;
                //     bottom: 1px;
                //     content: "";
                //     box-sizing: border-box;
                //     display: block;
                //     height: 2px;
                //     left: 10px;
                //     position: absolute;
                //     transform: translate3d(0px, 0px, 0px);
                //     transform-origin: 0 0;
                //     transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                //     width: 33%;
                // }
            }
            & > p.header {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                padding: 0px 15px;
                & > label {
                    font-size: 14px;
                    font-weight: bold;
                    color: #110203;
                }
                & > span {
                    cursor: pointer;
                    font-size: 13px;
                }
            }
            & > p.all-text {
                color: #13c2c2;
                cursor: pointer;
                font-size: 13px;
                margin: 10px auto;
                text-align: center;
            }
        }
        & > div.tabs-content {
            height: 250px;
            overflow-y: auto;
            padding: 0px 20px 10px 20px;
            & > div {
                & > ul {
                    list-style: none;
                    & > li {
                        align-items: center;
                        border-bottom: 1px solid #f0f0f0;
                        display: flex;
                        justify-content: space-between;
                        padding: 12px 0;
                        &.empty {
                            color: rgba(0, 0, 0, 0.25);
                            font-size: 14px;
                            padding: 50px 15px;
                            justify-content: center;
                        }
                        & > div.avatar {
                            border-radius: 50%;
                            box-sizing: border-box;
                            color: #fff;
                            display: inline-block;
                            height: 32px;
                            font-size: 14px;
                            line-height: 32px;
                            margin-right: 16px;
                            overflow: hidden;
                            position: relative;
                            text-align: center;
                            vertical-align: middle;
                            white-space: nowrap;
                            width: 32px;
                            & > img {
                                display: block;
                                height: 100%;
                                -o-object-fit: cover;
                                object-fit: cover;
                                width: 100%;
                            }
                            & > label {
                                width: 50px;
                                height: 50px;
                                color: #ffffff;
                                border-radius: 50%;
                            }
                        }
                        & > div.content {
                            flex: 1;
                            & > .title {
                                cursor: pointer;
                                color: rgba(0, 0, 0, 0.65);
                                font-size: 14px;
                                line-height: 22px;
                                margin-bottom: 4px;
                            }
                            & > .description {
                                color: rgba(0, 0, 0, 0.45);
                                display: flex;
                                flex-direction: row;
                                font-size: 14px;
                                line-height: 22px;
                                justify-content: space-between;
                                & > p {
                                    margin: 0px;
                                }
                                & > span {
                                    color: #13c2c2;
                                    cursor: pointer;
                                    font-size: 13px;
                                    text-decoration-line: underline;
                                }
                            }
                        }
                        &:last-child {
                            border-bottom: none;
                        }
                    }
                }
                .slide-right-enter-active,
                .slide-right-leave-active,
                .slide-left-enter-active,
                .slide-left-leave-active {
                    will-change: transform;
                    transition: all 300ms;
                }
                .slide-right-enter {
                    opacity: 0;
                    transform: translate3d(-100%, 0, 0);
                }
                .slide-right-leave-active {
                    opacity: 0;
                    transform: translate3d(100%, 0, 0);
                }
                .slide-left-enter {
                    opacity: 0;
                    transform: translate3d(100%, 0, 0);
                }
                .slide-left-leave-active {
                    opacity: 0;
                    transform: translate3d(-100%, 0, 0);
                }                
            }

        }
    }
    .dropdown {
        box-sizing: border-box;
        color: rgba(0, 0, 0, 0.65);
        display: block;
        float: right;
        font-feature-settings: 'tnum';
        font-size: 14px;
        font-variant: tabular-nums;
        line-height: 1.5;
        list-style: none;
        margin: 0;
        padding: 0;
        position: fixed;
        top: 68px;
        z-index: 101;
        -webkit-box-sizing: border-box;
        -webkit-font-feature-settings: 'tnum';
        & > ul {
            background-clip: padding-box;
            background-color: #fff;
            border-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0, 0.15);
            list-style-type: none;
            margin: 0;
            outline: none;
            padding: 4px 0;
            position: relative;
            text-align: left;
            transform: translate3d(0,0,0);
            width: 150px;
            -webkit-box-shadow: 0 2px 8px rgba(0,0,0, 0.15);
            -webkit-transform: translate3d(0,0,0);
            & > li {
                clear: both;
                color: rgba(0, 0, 0, 0.65);
                cursor: pointer;
                font-size: 14px;
                font-weight: normal;
                line-height: 22px;
                margin: 0;
                padding: 5px 12px;
                transition: all 0.3s;
                white-space: nowrap;
                -webkit-transition: all 0.3s;
                &:hover {
                    background-color: #e1f0e7;
                }
                & > i {
                    font-size: 12px;
                    margin-right: 8px;
                    min-width: 12px;
                }
            }
            & > li.divider {
                background-color: #f0f0f0;
                height: 1px;
                line-height: 0px;
                margin: 4px 0px;
                overflow: hidden;
                padding: 0px;
            }
        }
    }
    .mask {
        background-color: rgba(0, 0, 0, 0.35);
        bottom: 0;
        left: 0;
        position: fixed;
        right: 0;
        top: 0;
        transition: all 0.5s;
        z-index: 100;
        -webkit-transition: all 0.5s;
    }
    .mask.close {
        display: none;
    }
    .mask.open {
        display: inline-block;
    }
    .drawer {
        position: fixed;
        -webkit-transition: all 0.5s;
        transition: all 0.5s;
        height: 100vh;
        z-index: 100;
    }
    .drawer.left {
        left: 0px;
    }
    .drawer.left.close {
        transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
    }
    .drawer.right {
        right: 0px;
    }
    .drawer.right.close {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
    }
    .webicon {
        color: inherit;
        display: inline-block;
        font-style: normal;
        line-height: 0;
        outline: none;
        text-align: center;
        text-rendering: optimizeLegibility;
        text-transform: none;
        vertical-align: -0.125em;
        -webkit-font-smoothing: antialiased;
    }
    .web-btn {
        background-color: #fff;
        background-image: none;
        border: 1px solid transparent;
        border-color: #d9d9d9;
        border-radius: 4px;
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
        color: rgba(0, 0, 0, 0.65);
        cursor: pointer;
        display: inline-block;
        font-size: 14px;
        font-weight: 400;
        height: 32px;
        line-height: 1.499;
        padding: 0 15px;
        position: relative;
        white-space: nowrap;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        touch-action: manipulation;
        user-select: none;
        -webkit-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
        -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -ms-touch-action: manipulation;
        & > span {
            margin-left: 8px;
        }
        &::before {
            background: #fff;
            border-radius: inherit;
            bottom: -1px;
            content: '';
            display: none;
            left: -1px;
            opacity: 0.35;
            pointer-events: none;
            position: absolute;
            top: -1px;
            transition: opacity 0.2s;
            right: -1px;
            z-index: 1;
            -webkit-transition: opacity 0.2s;
        }
    }
    &::-webkit-scrollbar {
        width: 3px;
        height: 1px;
    }
    &::-webkit-scrollbar-thumb {
        border-radius: 3px;
        background: #13c2c2;
    }
    &::-webkit-scrollbar-track {
        border-radius: 3px;
        background: #87e8de;
        box-shadow: inset 0 0 1px rgba(0, 0, 0, 0);
        -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0);
    }
}

@screen-sm-min: 768px;
@screen-md-min: 992px;
@screen-lg-min: 1200px;

@media (max-width: @screen-sm-min - 1) {
    .layout-wrapper {
        & > aside.layout-side {
            display: none!important;
        }
        & > div.layout-virtual-side {
            display: none!important;
        }
        & > section.layout-content {
            & > header.layout-content-header {
                width: 100%!important;
            }
        }
        & > div.layout-drawer-side-menu {
            display: block;
        }
    }
}

/* 小屏幕(平板,大于等于 768px) */
@media (min-width: @screen-sm-min) {
    .layout-wrapper {
        & > aside.layout-side {
            display: block;
            flex: 0 0 80px;
            max-width: 80px;
            min-width: 80px;
            width: 80px;
        }
        & > div.layout-virtual-side {
            display: block;
            max-width: 80px;
            min-width: 80px;
            width: 80px;
        }
        & > div.layout-drawer-side-menu {
            display: none;
        }
    }
}
 
/* 中等屏幕(桌面显示器,大于等于 992px) */
@media (min-width: @screen-md-min) {
    .layout-wrapper {
        .layout-side {
            flex: 0 0 256px;
            max-width: 256px;
            min-width: 256px;
            width: 256px;
        }
        .layout-virtual-side {
            max-width: 256px;
            min-width: 256px;
            width: 256px;
        }
    }
}
 
/* 大屏幕(大桌面显示器,大于等于 1200px) */
@media (min-width: @screen-lg-min) {
    
}
</style>