Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
7431cebe
Commit
7431cebe
authored
Jan 24, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化
parent
f90e82d8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
31 deletions
+39
-31
sample-form-client-ui/admin/src/App.vue
sample-form-client-ui/admin/src/App.vue
+1
-1
sample-form-client-ui/admin/src/pages/home/Home.vue
sample-form-client-ui/admin/src/pages/home/Home.vue
+11
-9
sample-form-client-ui/admin/src/pages/layouts/Layouts.vue
sample-form-client-ui/admin/src/pages/layouts/Layouts.vue
+6
-4
sample-form-client-ui/admin/src/pages/showpage/ShowMaterials.vue
...form-client-ui/admin/src/pages/showpage/ShowMaterials.vue
+5
-1
sample-form-client-ui/admin/src/store/index.js
sample-form-client-ui/admin/src/store/index.js
+16
-16
No files found.
sample-form-client-ui/admin/src/App.vue
View file @
7431cebe
...
...
@@ -219,7 +219,7 @@ export default {
background: url("./assets/img/reg-bg.jpg") no-repeat;
}
.main-ksck-img {
background: url("./assets/img/
btn_kuaisu
.png") no-repeat;
background: url("./assets/img/
reg-quickbg
.png") no-repeat;
}
//内页标题背景
.main-title-bg-img {
...
...
sample-form-client-ui/admin/src/pages/home/Home.vue
View file @
7431cebe
...
...
@@ -162,8 +162,8 @@
</div>
<div
class=
"right flex flexc"
>
<div
class=
"right-top"
>
<
router-link
to=
"/matterList
"
<
div
class=
"top_img_box main-ksck-img
"
v-onEvent=
"
{
eventName: '点击',
eventCode: 'Click',
...
...
@@ -171,15 +171,14 @@
businessName: '快速查看',
routers: $route,
}"
@click="$router.push('/matterList')"
>
<div
class=
"top_img_box"
>
<div
class=
"top_img_text_box"
>
<h3
class=
"text_box_title"
>
快速查看
</h3>
<p
class=
"text_box_desc"
>
多种样表快捷查看
</p>
</div>
<img
src=
"../../assets/img/reg-quickbg.png"
alt=
""
/>
<div
class=
"top_img_text_box"
>
<h3
class=
"text_box_title"
>
快速查看
</h3>
<p
class=
"text_box_desc"
>
多种样表快捷查看
</p>
</div>
</router-link>
<!--
<img
src=
"../../assets/img/reg-quickbg.png"
alt=
""
/>
-->
</div>
</div>
<!-- 热门事项 -->
<div
class=
"right-bottom flex flexc"
>
...
...
@@ -634,6 +633,9 @@ export default {
padding-bottom: 20px;
.top_img_box {
width: 100%;
height: 160px;
cursor: pointer;
position: relative;
.top_img_text_box {
position: absolute;
...
...
sample-form-client-ui/admin/src/pages/layouts/Layouts.vue
View file @
7431cebe
...
...
@@ -8,14 +8,16 @@
import
{
mapMutations
,
mapGetters
}
from
"
vuex
"
;
export
default
{
data
()
{
return
{};
},
computed
:
{
...
mapGetters
([
"
times
"
,
"
defaultTimes
"
]),
return
{
defaultTimes
:
300
,
};
},
created
()
{
this
.
isTimeOut
();
},
computed
:
{
...
mapGetters
([
"
times
"
]),
},
methods
:
{
...
mapMutations
([
"
SET_times
"
]),
// 返回首页
...
...
sample-form-client-ui/admin/src/pages/showpage/ShowMaterials.vue
View file @
7431cebe
...
...
@@ -26,7 +26,9 @@
:key=
"v.id"
v-show=
"active === i"
>
<div
class=
"short"
>
{{
v
.
materialName
}}
</div>
<div
class=
"short"
>
{{
v
.
materialName
}}
</div>
<div
class=
"full-name"
>
材料全称:
{{
v
.
materiaFullName
}}
</div>
<div
class=
"preview-img-box flex aic jcc"
...
...
@@ -453,10 +455,12 @@ export default {
// }
}
.short {
text-align: center;
font-size: 34px;
color: var(--main-theme-color);
}
.full-name {
text-align: center;
margin-top: 10px;
margin-bottom: 24px;
font-size: 30px;
...
...
sample-form-client-ui/admin/src/store/index.js
View file @
7431cebe
import
Vue
from
"
vue
"
;
import
Vuex
from
"
vuex
"
;
import
createPersistedState
from
"
vuex-persistedstate
"
;
import
SecureLS
from
"
secure-ls
"
;
var
ls
=
new
SecureLS
({
isCompression
:
false
});
//
import createPersistedState from "vuex-persistedstate";
//
import SecureLS from "secure-ls";
//
var ls = new SecureLS({ isCompression: false });
Vue
.
use
(
Vuex
);
export
default
new
Vuex
.
Store
({
...
...
@@ -56,17 +56,17 @@ export default new Vuex.Store({
actions
:
{},
modules
:
{},
// 持久化插件
plugins
:
[
// createPersistedState({
// storage: window.sessionStorage,
// }),
createPersistedState
({
key
:
"
info
"
,
storage
:
{
getItem
:
(
key
)
=>
ls
.
get
(
key
),
setItem
:
(
key
,
value
)
=>
ls
.
set
(
key
,
value
),
removeItem
:
(
key
)
=>
ls
.
remove
(
key
),
},
}),
],
//
plugins: [
//
// createPersistedState({
//
// storage: window.sessionStorage,
//
// }),
//
createPersistedState({
//
key: "info",
//
storage: {
//
getItem: (key) => ls.get(key),
//
setItem: (key, value) => ls.set(key, value),
//
removeItem: (key) => ls.remove(key),
//
},
//
}),
//
],
});
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