Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tracing
source-trace-manage-go
Commits
dab02ad1
Commit
dab02ad1
authored
Feb 05, 2021
by
zL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sy代码优化
parent
d89553de
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
245 deletions
+2
-245
router.ts
src/entry/sy/router.ts
+1
-8
SignIn.vue
src/entry/sy/views/SignIn.vue
+0
-2
Index.vue
src/entry/sy/views/category/Index.vue
+0
-234
TemplateManage.vue
src/entry/sy/views/category/TemplateManage.vue
+0
-0
editTemplate.vue
src/views/template/editTemplate.vue
+1
-1
No files found.
src/entry/sy/router.ts
View file @
dab02ad1
...
@@ -25,7 +25,7 @@ let router = new Router({ // todo 移除旧页面
...
@@ -25,7 +25,7 @@ let router = new Router({ // todo 移除旧页面
{
{
path
:
'/categoryManage'
,
path
:
'/categoryManage'
,
name
:
'categoryManage'
,
name
:
'categoryManage'
,
component
:
()
=>
import
(
/* webpackChunkName: "categoryManage" */
'
./view
s/category/Index.vue'
),
component
:
()
=>
import
(
/* webpackChunkName: "categoryManage" */
'
@/component
s/category/Index.vue'
),
},
},
// 个人中心
// 个人中心
{
{
...
@@ -64,19 +64,12 @@ let router = new Router({ // todo 移除旧页面
...
@@ -64,19 +64,12 @@ let router = new Router({ // todo 移除旧页面
component
:
()
=>
import
(
/* webpackChunkName: "personVerify" */
'@/views/userCenter/PersonVerify.vue'
)
component
:
()
=>
import
(
/* webpackChunkName: "personVerify" */
'@/views/userCenter/PersonVerify.vue'
)
},
},
{
{
path
:
'/templateManage'
,
name
:
'templateManage'
,
component
:
()
=>
import
(
/* webpackChunkName: "templateManage" */
'@/views/template/Index.vue'
),
children
:
[
{
path
:
'/editTemplate'
,
path
:
'/editTemplate'
,
name
:
'editTemplate'
,
name
:
'editTemplate'
,
component
:
()
=>
import
(
/* webpackChunkName: "editTemplate" */
'@/views/template/editTemplate.vue'
),
component
:
()
=>
import
(
/* webpackChunkName: "editTemplate" */
'@/views/template/editTemplate.vue'
),
}
}
]
]
}
}
]
}
],
],
});
});
...
...
src/entry/sy/views/SignIn.vue
View file @
dab02ad1
...
@@ -29,8 +29,6 @@
...
@@ -29,8 +29,6 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
storage
from
"@/plugins/storage"
;
import
{
GO_URLS
}
from
"@/config/URLS"
;
import
SetPassword
from
"@/components/signin/setPassword.vue"
;
import
SetPassword
from
"@/components/signin/setPassword.vue"
;
import
PhoneLogin
from
"@/components/signin/phoneLogin.vue"
;
import
PhoneLogin
from
"@/components/signin/phoneLogin.vue"
;
import
EmailLogin
from
"@/components/signin/emailLogin.vue"
;
import
EmailLogin
from
"@/components/signin/emailLogin.vue"
;
...
...
src/entry/sy/views/category/Index.vue
deleted
100644 → 0
View file @
d89553de
<
template
>
<div
class=
"category"
>
<div
class=
"col_left"
>
<ul
class=
"navigation_box"
>
<li
@
click=
"checkOne"
>
<div
class=
"icon_box"
>
<i
class=
"iconfont iconxingzhuang1"
></i>
</div>
<span
class=
"title"
:class=
"
{ title__check: this.$store.state.selectedStatus === 1 }"
>存证记录
</span
>
<span
class=
"num"
>
{{
getGoods
}}
</span>
</li>
<li
@
click=
"checkTwo"
>
<div
class=
"icon_box icon_box__green"
>
<i
class=
"iconfont iconjilu-"
></i>
</div>
<span
class=
"title"
:class=
"
{ title__check: this.$store.state.selectedStatus === 2 }"
>模板管理
</span
>
<span
class=
"num"
>
{{
getTemplate
}}
</span>
</li>
<li
@
click=
"checkThree"
>
<div
class=
"icon_box icon_box__orange"
>
<i
class=
"iconfont iconshanchu2"
></i>
</div>
<span
class=
"title"
:class=
"
{ title__check: this.$store.state.selectedStatus === 3 }"
>已删除
</span
>
<span
class=
"num"
>
{{
deleteds
}}
</span>
</li>
</ul>
</div>
<!-- 左侧列 -->
<div
class=
"col_right"
:class=
"
{ 'col_right--show': this.$store.state.selectedStatus === 1 }"
>
<new-productList
@
update=
"update"
></new-productList>
</div>
<!-- 右侧列 -->
<div
class=
"col_right"
:class=
"
{ 'col_right--show': this.$store.state.selectedStatus === 2 }"
>
<!-- 模板 -->
<template-manage></template-manage>
</div>
<div
class=
"col_right"
:class=
"
{ 'col_right--show': this.$store.state.selectedStatus === 3 }"
>
<!-- 已删除 -->
<deleted
:ToUpdate=
"ToUpdate"
></deleted>
</div>
<!-- 引导页 -->
<common-dialog
showMask2
close
class=
"cdg-boot-page"
v-if=
"showbootPage"
>
<boot-page
@
close=
"showbootPage = false"
></boot-page>
</common-dialog>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
GO_URLS
}
from
"@/config/URLS"
;
import
{
Component
,
Vue
,
Watch
}
from
"vue-property-decorator"
;
// 模板管理部分
import
TemplateManage
from
"./TemplateManage.vue"
;
// 右侧存证部分
import
newProductList
from
"@/components/category/ProductList.vue"
;
//删除页
import
deleted
from
"@/views/category/deleted.vue"
;
// 引导页
import
bootPage
from
"@/components/bootPage.vue"
;
import
CommonDialog
from
"@/components/CommonDialog.vue"
;
@
Component
({
components
:
{
newProductList
,
TemplateManage
,
deleted
,
bootPage
,
CommonDialog
,
},
})
export
default
class
Template
extends
Vue
{
[
x
:
string
]:
any
;
trigger
:
boolean
=
false
;
ToUpdate
:
boolean
=
false
;
showbootPage
:
Boolean
=
false
;
created
()
{
this
.
getGoods
;
this
.
getTemplate
;
this
.
SelectedStatus
;
}
mounted
()
{
if
(
localStorage
.
getItem
(
"bootPage"
)
===
"show"
)
{
this
.
showbootPage
=
true
;
}
}
update
()
{
this
.
ToUpdate
=
!
this
.
ToUpdate
;
}
// 获取选中状态
get
SelectedStatus
()
{
return
this
.
$store
.
state
.
selectedStatus
;
}
get
getGoods
()
{
return
this
.
$store
.
state
.
goodsNum
;
}
get
deleteds
()
{
return
this
.
$store
.
state
.
deletedNum
;
}
get
getTemplate
()
{
return
this
.
$store
.
state
.
templateNum
;
}
// 显示存证
checkOne
()
{
this
.
$store
.
commit
(
"setSelectedStatus"
,
1
);
this
.
trigger
=
!
this
.
trigger
;
}
// 显示模板管理
checkTwo
()
{
this
.
$store
.
commit
(
"setSelectedStatus"
,
2
);
}
// 已删除
checkThree
()
{
this
.
$store
.
commit
(
"setSelectedStatus"
,
3
);
}
}
</
script
>
<
style
scoped
lang=
"less"
>
.cdg-boot-page {
/deep/.dialog_content {
border-radius: 10px !important;
}
}
.category {
display: flex;
height: 100%;
//解决存证列表下方铺不满的问题
}
.col_left {
width: 237px;
background: #fff;
// 二期开发
.navigation_box {
margin: 0;
padding: 0;
padding-left: 18px;
margin-top: 20px;
li {
list-style: none;
height: 38px;
cursor: pointer;
line-height: 38px;
}
.title {
font-size: 12px;
font-family: PingFangSC-Regular;
font-weight: 400;
color: rgba(53, 53, 53, 1);
}
.title__check {
color: #4a90e2;
}
.num {
font-size: 12px;
font-family: PingFangSC-Regular;
font-weight: 400;
float: right;
margin-right: 21px;
color: rgba(53, 53, 53, 1);
}
.icon_box {
float: left;
width: 27px;
height: 27px;
// 做点改动
margin-left: 8px;
margin-top: 5.5px;
margin-right: 14px;
background: linear-gradient(
180deg,
rgba(0, 94, 212, 1) 0%,
rgba(82, 149, 227, 1) 100%
);
text-align: center;
line-height: 27px;
border-radius: 10px;
i {
color: white;
font-size: 14px;
}
}
.icon_box__green {
background: linear-gradient(
180deg,
rgba(3, 213, 161, 1) 0%,
rgba(6, 217, 164, 1) 100%
);
}
.icon_box__orange {
background: linear-gradient(
180deg,
rgba(255, 177, 91, 1) 0%,
rgba(255, 177, 91, 1) 100%
);
}
}
// end
.subject {
margin-top: 15px;
}
}
.col_right {
display: none;
flex: 1;
background: #f8f8f8;
}
.col_right--show {
display: block;
overflow-y: scroll;
}
</
style
>
src/entry/sy/views/category/TemplateManage.vue
deleted
100644 → 0
View file @
d89553de
This diff is collapsed.
Click to expand it.
src/views/template/editTemplate.vue
View file @
dab02ad1
...
@@ -248,7 +248,7 @@ import AddLevel1Button from "@/components/editTemplate/AddLevel1Button.vue";
...
@@ -248,7 +248,7 @@ import AddLevel1Button from "@/components/editTemplate/AddLevel1Button.vue";
import
SetBar
from
"@/components/editTemplate/SetBar.vue"
;
import
SetBar
from
"@/components/editTemplate/SetBar.vue"
;
import
RootUnit
from
"@/components/editTemplate/RootUnit.vue"
;
import
RootUnit
from
"@/components/editTemplate/RootUnit.vue"
;
import
ModifyPresentation
from
"@/components/editTemplate/ModifyPresentation.vue"
;
//修改表现形式
import
ModifyPresentation
from
"@/components/editTemplate/ModifyPresentation.vue"
;
//修改表现形式
import
banner
from
"@/
entry/best/components
/banner.vue"
;
import
banner
from
"@/
components/editTemplate
/banner.vue"
;
import
TemplatePopup
from
"@/views/template/TemplatePopup.vue"
;
import
TemplatePopup
from
"@/views/template/TemplatePopup.vue"
;
import
AddChildDialog
from
"@/components/editTemplate/AddChildDialog.vue"
;
//添加下一级
import
AddChildDialog
from
"@/components/editTemplate/AddChildDialog.vue"
;
//添加下一级
import
AddRootDialog
from
"@/components/editTemplate/AddRootDialog.vue"
;
import
AddRootDialog
from
"@/components/editTemplate/AddRootDialog.vue"
;
...
...
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