Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
b477b1d4
Commit
b477b1d4
authored
Dec 15, 2020
by
zhao_shaonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化样式
parent
88c3566b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
65 deletions
+47
-65
src/assets/styles/main.scss
+1
-1
src/layout/comm.vue
+0
-25
src/views/Home.vue
+46
-39
No files found.
src/assets/styles/main.scss
View file @
b477b1d4
...
@@ -237,7 +237,7 @@ img {
...
@@ -237,7 +237,7 @@ img {
color
:
#fff
;
color
:
#fff
;
font-size
:
$header-fontSize
;
font-size
:
$header-fontSize
;
font-weight
:
600
;
font-weight
:
600
;
text-indent
:
80
px
;
text-indent
:
44
px
;
position
:
fixed
;
position
:
fixed
;
top
:
0px
;
top
:
0px
;
width
:
100%
;
width
:
100%
;
...
...
src/layout/comm.vue
View file @
b477b1d4
<
template
>
<
template
>
<div
class=
"common-lay"
>
<div
class=
"common-lay"
>
<el-header>
title
</el-header>
<el-container>
<el-container>
<el-aside
width=
"200px"
>
<el-menu
default-active=
"2"
class=
"el-menu-vertical-demo"
@
open=
"handleOpen"
@
close=
"handleClose"
v-for=
"item in menuList"
:key=
"item.id"
router
>
<el-submenu
:index=
"item.id"
>
<template
slot=
"title"
>
<i
class=
"el-icon-location"
></i>
<span>
{{
item
.
name
}}
</span>
</
template
>
<el-menu-item
:index=
"subitem.path"
v-for=
"subitem in item.children"
:key=
"subitem.id"
>
<
template
slot=
"title"
>
<i
class=
"el-icon-menu"
></i>
<span>
{{
subitem
.
name
}}
</span>
</
template
>
</el-menu-item>
</el-submenu>
</el-menu>
</el-aside>
<el-main>
<el-main>
<router-view
/>
<router-view
/>
</el-main>
</el-main>
...
...
src/views/Home.vue
View file @
b477b1d4
<
template
>
<
template
>
<div
class=
"home"
<
!--
<
div
class=
"home"
v-loading=
"loading"
>
v-loading=
"loading"
>
<img
:src=
"captcha.img ? 'captcha.img' : defaultGoodsImage"
/>
<img
:src=
"captcha.img ? 'captcha.img' : defaultGoodsImage"
/>
<div
class=
"demo"
<div
class=
"demo"
...
@@ -25,19 +25,20 @@
...
@@ -25,19 +25,20 @@
v-if=
"userAuth
<
6
"
>
定时任务补偿
</el-tab-pane>
v-if=
"userAuth
<
6
"
>
定时任务补偿
</el-tab-pane>
</el-tabs>
</el-tabs>
<span>
{{
time
}}
</span>
<span>
{{
time
}}
</span>
</div>
-->
<div
style=
"margin:20px 0 0 50px"
>
<el-button
type=
"primary"
@
click=
"toJccx"
>
基础查询
</el-button>
<el-button
type=
"primary"
@
click=
"toRzcx"
>
日志查询
</el-button>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Home
,
test
,
test1
,
js_test
}
from
"@/api/home.js"
;
import
{
Home
,
test
,
test1
,
js_test
}
from
"@/api/home.js"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
mapGetters
}
from
"vuex"
;
import
NsCode
from
"@c/code.vue"
export
default
{
export
default
{
name
:
"Home"
,
name
:
"Home"
,
components
:
{
components
:
{},
NsCode
data
()
{
},
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
tokeb
:
""
,
tokeb
:
""
,
...
@@ -47,78 +48,84 @@ export default {
...
@@ -47,78 +48,84 @@ export default {
},
},
value
:
""
,
value
:
""
,
activeName
:
""
,
activeName
:
""
,
options
:
[{
label
:
'一级 1'
,
id
:
'1'
,
children
:
[{
label
:
'二级 1-1'
,
id
:
'11'
,
children
:
[{
label
:
'1'
,
id
:
'111'
}]
}]
}],
isMultiple
:
true
,
isMultiple
:
true
,
time
:
''
time
:
""
};
};
},
},
created
()
{
created
()
{
this
.
getHome
();
this
.
getHome
();
this
.
getH
();
this
.
getH
();
this
.
getT
();
this
.
getT
();
this
.
time
=
this
.
$util
.
timeStampTurnTime
(
'1603697627061'
);
this
.
time
=
this
.
$util
.
timeStampTurnTime
(
"1603697627061"
);
this
.
ttt
()
this
.
ttt
()
;
},
},
computed
:
{
computed
:
{
...
mapGetters
([
"defaultGoodsImage"
,
"userAuth"
])
...
mapGetters
([
"defaultGoodsImage"
,
"userAuth"
])
},
},
methods
:
{
methods
:
{
ttt
()
{
toJccx
()
{
js_test
(
"test.json"
).
then
(
res
=>
{
let
routeData
=
this
.
$router
.
resolve
({
path
:
"/jccxIndex"
});
window
.
open
(
routeData
.
href
,
"_blank"
);
},
toRzcx
()
{
let
routeData
=
this
.
$router
.
resolve
({
path
:
"/rzcxIndex"
});
window
.
open
(
routeData
.
href
,
"_blank"
);
},
ttt
()
{
js_test
(
"test.json"
)
.
then
(
res
=>
{
console
.
log
(
111
);
console
.
log
(
111
);
console
.
log
(
res
);
console
.
log
(
res
);
}).
catch
(
err
=>
{
console
.
log
(
err
);
})
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
},
},
getHome
()
{
getHome
()
{
Home
({
Home
({
object
:
"粤sty989"
object
:
"粤sty989"
}).
then
(
res
=>
{
})
.
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
this
.
loading
=
false
this
.
loading
=
false
;
}).
catch
(
err
=>
{
})
this
.
loading
=
false
.
catch
(
err
=>
{
this
.
loading
=
false
;
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
},
getH
()
{
getH
()
{
test
({
test
({
object
:
"粤sty989"
object
:
"粤sty989"
}).
then
(
res
=>
{
})
.
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
}).
catch
(
err
=>
{
})
.
catch
(
err
=>
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
},
getT
()
{
getT
()
{
test1
({
test1
({
zjhm
:
412721197608203413
zjhm
:
412721197608203413
}).
then
(
res
=>
{
}).
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
});
});
},
},
toBar
()
{
toBar
()
{
this
.
$router
.
push
(
"/asdw"
);
this
.
$router
.
push
(
"/asdw"
);
},
},
toLogin
()
{
toLogin
()
{
this
.
$router
.
push
(
"/test"
);
this
.
$router
.
push
(
"/test"
);
},
},
search
(
test
)
{
search
(
test
)
{
console
.
log
(
test
);
console
.
log
(
test
);
},
},
handleClick
(
tab
,
event
)
{
handleClick
(
tab
,
event
)
{
console
.
log
(
tab
,
event
);
console
.
log
(
tab
,
event
);
}
}
}
}
...
...
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