Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
Admin
Commits
f174bcba
Commit
f174bcba
authored
Mar 18, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
okk
parent
b053af10
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
15 deletions
+19
-15
index.vue
layouts/basic-layout/header-setting/index.vue
+14
-14
iview.js
plugins/iview.js
+2
-0
setting.env.js
setting.env.js
+1
-0
account.js
store/admin/account.js
+2
-1
No files found.
layouts/basic-layout/header-setting/index.vue
View file @
f174bcba
...
...
@@ -40,13 +40,13 @@
<div
class=
"i-layout-header-setting-item"
>
<span
class=
"i-layout-header-setting-item-desc"
>
固定侧边栏
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"siderFix"
@
on-change=
"(val) => handleChangeSetting('siderFix', val)"
/>
<
i-s
witch
size=
"small"
:value=
"siderFix"
@
on-change=
"(val) => handleChangeSetting('siderFix', val)"
/>
</span>
</div>
<div
class=
"i-layout-header-setting-item"
>
<span
class=
"i-layout-header-setting-item-desc"
>
固定顶栏
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"headerFix"
@
on-change=
"(val) => handleChangeSetting('headerFix', val)"
/>
<
i-s
witch
size=
"small"
:value=
"headerFix"
@
on-change=
"(val) => handleChangeSetting('headerFix', val)"
/>
</span>
</div>
<div
class=
"i-layout-header-setting-item"
:class=
"
{ 'i-layout-header-setting-item-disabled': !headerFix }">
...
...
@@ -57,7 +57,7 @@
</Tooltip>
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"headerHide"
:disabled=
"!headerFix"
@
on-change=
"(val) => handleChangeSetting('headerHide', val)"
/>
<
i-s
witch
size=
"small"
:value=
"headerHide"
:disabled=
"!headerFix"
@
on-change=
"(val) => handleChangeSetting('headerHide', val)"
/>
</span>
</div>
<div
class=
"i-layout-header-setting-item"
:class=
"
{ 'i-layout-header-setting-item-disabled': !headerFix }">
...
...
@@ -68,25 +68,25 @@
</Tooltip>
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"headerStick"
:disabled=
"!headerFix"
@
on-change=
"(val) => handleChangeSetting('headerStick', val)"
/>
<
i-s
witch
size=
"small"
:value=
"headerStick"
:disabled=
"!headerFix"
@
on-change=
"(val) => handleChangeSetting('headerStick', val)"
/>
</span>
</div>
<div
class=
"i-layout-header-setting-item"
>
<span
class=
"i-layout-header-setting-item-desc"
>
侧边栏开启手风琴模式
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"menuAccordion"
@
on-change=
"(val) => handleChangeSetting('menuAccordion', val)"
/>
<
i-s
witch
size=
"small"
:value=
"menuAccordion"
@
on-change=
"(val) => handleChangeSetting('menuAccordion', val)"
/>
</span>
</div>
<div
class=
"i-layout-header-setting-item"
>
<span
class=
"i-layout-header-setting-item-desc"
>
显示折叠侧边栏按钮
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"showSiderCollapse"
@
on-change=
"(val) => handleChangeSetting('showSiderCollapse', val)"
/>
<
i-s
witch
size=
"small"
:value=
"showSiderCollapse"
@
on-change=
"(val) => handleChangeSetting('showSiderCollapse', val)"
/>
</span>
</div>
<div
class=
"i-layout-header-setting-item"
>
<span
class=
"i-layout-header-setting-item-desc"
>
侧边栏折叠时显示父级菜单名
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"showCollapseMenuTitle"
@
on-change=
"(val) => handleChangeSetting('showCollapseMenuTitle', val)"
/>
<
i-s
witch
size=
"small"
:value=
"showCollapseMenuTitle"
@
on-change=
"(val) => handleChangeSetting('showCollapseMenuTitle', val)"
/>
</span>
</div>
<div
class=
"i-layout-header-setting-item"
>
...
...
@@ -97,7 +97,7 @@
</Tooltip>
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"showBreadcrumb"
@
on-change=
"(val) => handleChangeSetting('showBreadcrumb', val)"
/>
<
i-s
witch
size=
"small"
:value=
"showBreadcrumb"
@
on-change=
"(val) => handleChangeSetting('showBreadcrumb', val)"
/>
</span>
</div>
<div
class=
"i-layout-header-setting-item"
:class=
"
{ 'i-layout-header-setting-item-disabled': !showBreadcrumb }">
...
...
@@ -108,19 +108,19 @@
</Tooltip>
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"showBreadcrumbIcon"
:disabled=
"!showBreadcrumb"
@
on-change=
"(val) => handleChangeSetting('showBreadcrumbIcon', val)"
/>
<
i-s
witch
size=
"small"
:value=
"showBreadcrumbIcon"
:disabled=
"!showBreadcrumb"
@
on-change=
"(val) => handleChangeSetting('showBreadcrumbIcon', val)"
/>
</span>
</div>
<div
class=
"i-layout-header-setting-item"
>
<span
class=
"i-layout-header-setting-item-desc"
>
显示重载页面按钮
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"showReload"
@
on-change=
"(val) => handleChangeSetting('showReload', val)"
/>
<
i-s
witch
size=
"small"
:value=
"showReload"
@
on-change=
"(val) => handleChangeSetting('showReload', val)"
/>
</span>
</div>
<div
class=
"i-layout-header-setting-item"
>
<span
class=
"i-layout-header-setting-item-desc"
>
显示多语言选择
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"showI18n"
@
on-change=
"(val) => handleChangeSetting('showI18n', val)"
/>
<
i-s
witch
size=
"small"
:value=
"showI18n"
@
on-change=
"(val) => handleChangeSetting('showI18n', val)"
/>
</span>
</div>
...
...
@@ -129,7 +129,7 @@
<div
class=
"i-layout-header-setting-item"
>
<span
class=
"i-layout-header-setting-item-desc"
>
开启多页签
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"tabs"
@
on-change=
"(val) => handleChangeSetting('tabs', val)"
/>
<
i-s
witch
size=
"small"
:value=
"tabs"
@
on-change=
"(val) => handleChangeSetting('tabs', val)"
/>
</span>
</div>
<div
class=
"i-layout-header-setting-item"
:class=
"
{ 'i-layout-header-setting-item-disabled': !tabs }">
...
...
@@ -140,7 +140,7 @@
</Tooltip>
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"showTabsIcon"
:disabled=
"!tabs"
@
on-change=
"(val) => handleChangeSetting('showTabsIcon', val)"
/>
<
i-s
witch
size=
"small"
:value=
"showTabsIcon"
:disabled=
"!tabs"
@
on-change=
"(val) => handleChangeSetting('showTabsIcon', val)"
/>
</span>
</div>
<div
class=
"i-layout-header-setting-item"
:class=
"
{ 'i-layout-header-setting-item-disabled': !tabs }">
...
...
@@ -151,7 +151,7 @@
</Tooltip>
</span>
<span
class=
"i-layout-header-setting-item-action"
>
<
S
witch
size=
"small"
:value=
"tabsFix"
:disabled=
"!tabs"
@
on-change=
"(val) => handleChangeSetting('tabsFix', val)"
/>
<
i-s
witch
size=
"small"
:value=
"tabsFix"
:disabled=
"!tabs"
@
on-change=
"(val) => handleChangeSetting('tabsFix', val)"
/>
</span>
</div>
<Alert
type=
"warning"
>
...
...
plugins/iview.js
View file @
f174bcba
...
...
@@ -13,6 +13,8 @@ import '@/styles/index.less';
// 内置组件
import
iLink
from
'@/components/link'
;
Vue
.
component
(
"iLink"
,
iLink
)
//注入mock
require
(
"../mock"
)
export
default
({
app
,
store
...
...
setting.env.js
View file @
f174bcba
...
...
@@ -7,6 +7,7 @@ const env = process.env.NODE_ENV;
const
Setting
=
{
// 是否使用 Mock 的数据,默认 开发环境为 true,生产环境为 false
isMock
:
env
===
'development'
,
// isMock:true,
// 部署应用包时的基本 URL
publicPath
:
env
===
'development'
?
'/'
:
'/'
,
// 生产环境构建文件的目录名
...
...
store/admin/account.js
View file @
f174bcba
...
...
@@ -2,7 +2,7 @@
* 注册、登录、注销
* */
import
util
from
'@/libs/util'
;
import
router
from
'@/router'
;
//
import router from '@/router';
import
{
AccountLogin
,
AccountRegister
}
from
'@/api/account'
;
import
{
Modal
}
from
'view-design'
;
...
...
@@ -31,6 +31,7 @@ export const actions={
// token 代表用户当前登录状态 建议在网络请求中携带 token
// 如有必要 token 需要定时更新,默认保存一天,可在 setting.js 中修改
// 如果你的 token 不是通过 cookie 携带,而是普通字段,也可视情况存储在 localStorage
console
.
warn
(
res
);
util
.
cookies
.
set
(
'uuid'
,
res
.
uuid
);
util
.
cookies
.
set
(
'token'
,
res
.
token
);
// 设置 vuex 用户信息
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment