Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
8655ba3f
Commit
8655ba3f
authored
4 months ago
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改规则
parent
063b07df
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
597 additions
and
84 deletions
+597
-84
YbBrandClassification.vue
src/components/tradePavilion/YbBrandClassification.vue
+328
-0
brandClassification.vue
src/components/tradePavilion/brandClassification.vue
+132
-81
tradePavilionIndex.vue
src/components/tradePavilion/tradePavilionIndex.vue
+132
-3
index.js
src/router/index.js
+5
-0
No files found.
src/components/tradePavilion/YbBrandClassification.vue
0 → 100644
View file @
8655ba3f
<
template
>
<div
class=
"brandClassification"
>
<template
v-if=
"!isShowAdd"
>
<div
class=
"head-title"
>
分类管理
<el-button
style=
"float: right; margin-top: -5px"
size=
"small"
type=
"primary"
@
click=
"(isShowAdd = true), clearMsg()"
>
新增
</el-button>
</div>
<div
class=
"content"
v-loading=
"loading"
>
<el-tabs
v-model=
"activeType.Id"
@
tab-click=
"changeTypeHandler"
>
<el-tab-pane
v-for=
"(x, i) in tradeTypes"
:label=
"x.Name"
:name=
"x.Id.toString()"
:key=
"i"
></el-tab-pane>
</el-tabs>
<div>
<div
class=
"searchInput"
style=
"width: 250px"
>
<el-input
@
keyup
.
enter
.
native=
"(msg.pageIndex = 1), getList()"
@
clear=
"(msg.pageIndex = 1), getList()"
style=
"display: inline-block; width: 225px; height: 30px"
:placeholder=
"`请输入$
{activeType.Name}分类名称`" v-model="msg.ClassName"
size="small" clearable>
</el-input>
<span
@
click=
"(msg.pageIndex = 1), getList()"
class=
"el-icon-search"
style=
"
color: #979dad;
font-size: 14px;
position: relative;
top: 1px;
"
></span>
</div>
</div>
<el-table
:data=
"tableData"
v-loading=
"loading"
border
style=
"width: 100%; margin: 20px 0"
>
<el-table-column
prop=
"ID"
label=
"编号"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"ClassName"
label=
"分类名称"
>
</el-table-column>
<el-table-column
prop=
"Logo"
width=
"150"
label=
"封面图"
>
<template
slot-scope=
"scope"
>
<!--
<div
class=
"app-image"
:style=
"
{
backgroundImage: 'url(' + scope.row.Logo + ')',
backgroundSize: 'cover',
}">
</div>
-->
<img
:src=
"scope.row.Logo"
style=
"object-fit: cover; max-width: 60px; max-height: 40px;"
>
</
template
>
</el-table-column>
<el-table-column
prop=
"CreateDate"
width=
"200"
label=
"创建时间"
>
</el-table-column>
<el-table-column
prop=
"address"
width=
"200"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
@
click=
"editNews(scope.row)"
style=
"width: 32px; height: 32px"
src=
"../../assets/img/userman/edit.png"
alt=
""
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<img
@
click=
"delNews(scope.row)"
style=
"width: 32px; height: 32px; margin: 0 10px"
src=
"../../assets/img/userman/del.png"
alt=
""
/>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
<el-pagination
style=
"text-align: right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"total,prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
</template>
<
template
v-else
>
<div
class=
"head-title"
>
<span
@
click=
"isShowAdd = false"
style=
"color: rgb(64, 158, 255); cursor: pointer"
>
分类管理
</span><span
style=
"margin: 0 9px; color: #c0c4cc"
>
/
</span><span>
分类信息
</span>
</div>
<div
class=
"content"
>
<el-form
label-width=
"120px"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
>
<el-form-item
label=
"所属大类"
class=
"is-required"
prop=
"ClassName"
>
<el-select
v-model=
"addMsg.BrandCategory"
>
<el-option
v-for=
"(x,i) in tradeTypes"
:key=
"i"
:label=
"x.Name"
:value=
"x.Id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"分类名称"
class=
"is-required"
prop=
"ClassName"
>
<el-input
type=
"text"
class=
"w400"
v-model=
"addMsg.ClassName"
size=
"small"
placeholder=
"分类名称"
maxlength=
"100"
>
</el-input>
</el-form-item>
<el-form-item
label=
"Logo"
size=
"small"
class=
"is-required"
prop=
"Logo"
>
<el-button
@
click=
"isShowImage = true"
size=
"small"
>
选择文件
</el-button>
<div
class=
"app-gallery-item"
style=
"
position: relative;
width: 100px;
margin-top: 10px;
border: none;
"
>
<img
v-if=
"!addMsg.Logo || addMsg.Logo == ''"
src=
"../../assets/img/default.png"
style=
"width: 80px; height: 80px"
alt=
""
/>
<img
v-else
style=
"width: 80px; height: 80px"
:src=
"addMsg.Logo"
alt=
""
/>
</div>
</el-form-item>
</el-form>
</div>
<el-button
size=
"small"
style=
"margin-top: 20px; padding: 9px 25px"
type=
"primary"
@
click=
"submitform('addMsg')"
>
保存
</el-button>
</
template
>
<!-- 选择文件 -->
<el-dialog
title=
"选择文件"
:visible
.
sync=
"isShowImage"
width=
"1240px"
>
<ChooseImg
@
SelectId=
"SelectId"
></ChooseImg>
</el-dialog>
</div>
</template>
<
script
>
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
UE
from
"@/components/global/UE.vue"
;
export
default
{
components
:
{
ChooseImg
,
UE
,
},
data
()
{
return
{
defaultMsg
:
""
,
config
:
{
initialFrameWidth
:
null
,
initialFrameHeight
:
350
,
},
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
ClassName
:
""
,
},
total
:
0
,
tableData
:
[],
//数据列表
isShowImage
:
false
,
//是否显示选择图片弹窗
isShowAdd
:
false
,
//是否显示新增
addMsg
:
{
ID
:
0
,
//主键编号
BrandCategory
:
1
,
Logo
:
""
,
//封面图
ClassName
:
""
,
//品牌分类标题
},
rules
:
{
ClassName
:
[
{
required
:
true
,
message
:
"请输入品牌分类名称"
,
trigger
:
"blur"
,
},
],
Logo
:
[
{
required
:
true
,
message
:
"请输入品牌Logo"
,
trigger
:
"blur"
,
},
],
},
activeType
:
{
Id
:
'1'
,
Name
:
''
},
tradeTypes
:
[],
loading
:
false
};
},
created
()
{
this
.
loading
=
true
this
.
initBrandCategory
()
},
methods
:
{
changeTypeHandler
(
e
)
{
this
.
activeType
.
Name
=
e
.
label
this
.
getList
()
},
initBrandCategory
()
{
this
.
apipost
(
"/api/Trade/GetBrandCategory"
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tradeTypes
=
res
.
data
.
data
this
.
activeType
.
Id
=
this
.
tradeTypes
[
0
].
Id
.
toString
()
this
.
activeType
.
Name
=
this
.
tradeTypes
[
0
].
Name
this
.
getList
()
}
else
{
this
.
loading
=
false
;
}
})
},
SelectId
(
msg
)
{
let
url
=
this
.
getIconLink
(
msg
.
url
);
this
.
addMsg
.
Logo
=
url
;
this
.
isShowImage
=
false
;
},
clearMsg
()
{
this
.
addMsg
.
BrandCategory
=
parseInt
(
this
.
activeType
.
Id
)
this
.
addMsg
.
ID
=
0
;
this
.
addMsg
.
Logo
=
""
;
this
.
addMsg
.
ClassName
=
""
;
},
getList
()
{
this
.
loading
=
true
;
this
.
msg
.
BrandCategory
=
this
.
activeType
.
Id
this
.
apipost
(
"/api/Trade/GetBrandClassPageList"
,
this
.
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
pageData
;
}
this
.
loading
=
false
;
});
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
//删除品牌分类
delNews
(
item
)
{
let
that
=
this
;
that
.
Confirm
(
"是否删除?"
,
function
()
{
that
.
apipost
(
"/api/Trade/RemoveBrandClass"
,
{
Id
:
item
.
ID
,
Status
:
1
,
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
}
);
});
},
//修改品牌分类
editNews
(
item
)
{
this
.
apipost
(
"/api/Trade/GetBrandClassDetails"
,
{
ID
:
item
.
ID
,
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
isShowAdd
=
true
;
var
tempData
=
res
.
data
.
data
;
this
.
addMsg
.
ID
=
tempData
.
ID
;
this
.
addMsg
.
BrandCategory
=
tempData
.
BrandCategory
this
.
addMsg
.
Logo
=
tempData
.
Logo
;
this
.
addMsg
.
ClassName
=
tempData
.
ClassName
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
}
);
},
//新增修改
submitform
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
apipost
(
"/api/Trade/GetSetBrandClass"
,
this
.
addMsg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
isShowAdd
=
false
;
this
.
getList
();
this
.
clearMsg
();
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
});
}
else
{
return
false
;
}
});
},
},
mounted
()
{
},
};
</
script
>
<
style
>
.brandClassification
.remark_name
{
color
:
#888888
;
font-size
:
12px
;
margin-left
:
10px
;
float
:
right
;
}
.brandClassification
.app-image
{
background-position
:
center
center
;
width
:
50px
;
height
:
50px
;
border-radius
:
0%
;
float
:
left
;
margin-right
:
8px
;
}
.brandClassification
.blue
{
color
:
#409eff
;
}
.brandClassification
.content
.searchInput
{
border
:
1px
solid
#dcdfe6
;
border-radius
:
4px
;
}
.brandClassification
.content
.searchInput
.el-input__inner
{
border
:
none
;
outline
:
none
;
height
:
30px
;
line-height
:
30px
;
}
.brandClassification
.content
.searchInput
{
line-height
:
normal
;
display
:
inline-table
;
width
:
100%
;
border-collapse
:
separate
;
border-spacing
:
0
;
width
:
250px
;
margin-right
:
20px
;
}
.brandClassification
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
20px
;
box-sizing
:
border-box
;
}
.brandClassification
.el-form-item__content
{
line-height
:
0
;
}
</
style
>
This diff is collapsed.
Click to expand it.
src/components/tradePavilion/brandClassification.vue
View file @
8655ba3f
...
...
@@ -2,42 +2,60 @@
<div
class=
"brandClassification"
>
<template
v-if=
"!isShowAdd"
>
<div
class=
"head-title"
>
分类管理
<el-button
style=
"float: right; margin-top: -5px"
size=
"small"
type=
"primary"
@
click=
"(isShowAdd = true), clearMsg()"
>
新增
</el-button>
品牌分类管理
<el-button
style=
"float: right; margin-top: -5px"
size=
"small"
type=
"primary"
@
click=
"(isShowAdd = true), clearMsg()"
>
新增
</el-button
>
</div>
<div
class=
"content"
v-loading=
"loading"
>
<el-tabs
v-model=
"activeType.Id"
@
tab-click=
"changeTypeHandler"
>
<el-tab-pane
v-for=
"(x, i) in tradeTypes"
:label=
"x.Name"
:name=
"x.Id.toString()"
:key=
"i"
></el-tab-pane>
</el-tabs>
<div
class=
"content"
>
<div>
<div
class=
"searchInput"
style=
"width: 250px"
>
<el-input
@
keyup
.
enter
.
native=
"(msg.pageIndex = 1), getList()"
@
clear=
"(msg.pageIndex = 1), getList()"
style=
"display: inline-block; width: 225px; height: 30px"
:placeholder=
"`请输入$
{activeType.Name}分类名称`" v-model="msg.ClassName"
size="small" clearable>
<el-input
@
keyup
.
enter
.
native=
"(msg.pageIndex = 1), getList()"
@
clear=
"(msg.pageIndex = 1), getList()"
style=
"display: inline-block; width: 225px; height: 30px"
placeholder=
"请输入品牌分类名称"
v-model=
"msg.ClassName"
size=
"small"
clearable
>
</el-input>
<span
@
click=
"(msg.pageIndex = 1), getList()"
class=
"el-icon-search"
style=
"
<span
@
click=
"(msg.pageIndex = 1), getList()"
class=
"el-icon-search"
style=
"
color: #979dad;
font-size: 14px;
position: relative;
top: 1px;
"
></span>
"
></span>
</div>
</div>
<el-table
:data=
"tableData"
v-loading=
"loading"
border
style=
"width: 100%; margin: 20px 0"
>
<el-table
:data=
"tableData"
v-loading=
"loading"
border
style=
"width: 100%; margin: 20px 0"
>
<el-table-column
prop=
"ID"
label=
"编号"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"ClassName"
label=
"分类名称"
>
<el-table-column
prop=
"ClassName"
label=
"
品牌
分类名称"
>
</el-table-column>
<el-table-column
prop=
"Logo"
width=
"150"
label=
"封面图"
>
<template
slot-scope=
"scope"
>
<!--
<div
class=
"app-image"
:style=
"
{
backgroundImage: 'url(' + scope.row.Logo + ')',
backgroundSize: 'cover',
}">
</div>
-->
<img
:src=
"scope.row.Logo"
style=
"object-fit: cover; max-width: 60px; max-height: 40px;"
>
<div
class=
"app-image"
:style=
"
{
backgroundImage: 'url(' + scope.row.Logo + ')',
backgroundSize: 'cover',
}"
>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"CreateDate"
width=
"200"
label=
"创建时间"
>
...
...
@@ -45,57 +63,119 @@
<el-table-column
prop=
"address"
width=
"200"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
@
click=
"editNews(scope.row)"
style=
"width: 32px; height: 32px"
src=
"../../assets/img/userman/edit.png"
alt=
""
/>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
@
click=
"editNews(scope.row)"
style=
"width: 32px; height: 32px"
src=
"../../assets/img/userman/edit.png"
alt=
""
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<img
@
click=
"delNews(scope.row)"
style=
"width: 32px; height: 32px; margin: 0 10px"
src=
"../../assets/img/userman/del.png"
alt=
""
/>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<img
@
click=
"delNews(scope.row)"
style=
"width: 32px; height: 32px; margin: 0 10px"
src=
"../../assets/img/userman/del.png"
alt=
""
/>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
<el-pagination
style=
"text-align: right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"total,prev, pager, next"
:total=
"total"
>
<el-pagination
style=
"text-align: right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"total,prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
</template>
<
template
v-else
>
<div
class=
"head-title"
>
<span
@
click=
"isShowAdd = false"
style=
"color: rgb(64, 158, 255); cursor: pointer"
>
分类管理
</span><span
style=
"margin: 0 9px; color: #c0c4cc"
>
/
</span><span>
分类信息
</span>
<span
@
click=
"isShowAdd = false"
style=
"color: rgb(64, 158, 255); cursor: pointer"
>
品牌分类管理
</span
><span
style=
"margin: 0 9px; color: #c0c4cc"
>
/
</span
><span>
品牌分类信息
</span>
</div>
<div
class=
"content"
>
<el-form
label-width=
"120px"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
>
<el-form-item
label=
"所属大类"
class=
"is-required"
prop=
"ClassName"
>
<el-select
v-model=
"addMsg.BrandCategory"
>
<el-option
v-for=
"(x,i) in tradeTypes"
:key=
"i"
:label=
"x.Name"
:value=
"x.Id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"分类名称"
class=
"is-required"
prop=
"ClassName"
>
<el-input
type=
"text"
class=
"w400"
v-model=
"addMsg.ClassName"
size=
"small"
placeholder=
"分类名称"
maxlength=
"100"
>
<el-form
label-width=
"120px"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
>
<el-form-item
label=
"品牌分类名称"
class=
"is-required"
prop=
"ClassName"
>
<el-input
type=
"text"
class=
"w400"
v-model=
"addMsg.ClassName"
size=
"small"
placeholder=
"品牌分类名称"
maxlength=
"100"
>
</el-input>
</el-form-item>
<el-form-item
label=
"Logo"
size=
"small"
class=
"is-required"
prop=
"Logo"
>
<el-button
@
click=
"isShowImage = true"
size=
"small"
>
选择文件
</el-button>
<div
class=
"app-gallery-item"
style=
"
<el-form-item
label=
"Logo"
size=
"small"
class=
"is-required"
prop=
"Logo"
>
<el-button
@
click=
"isShowImage = true"
size=
"small"
>
选择文件
</el-button
>
<div
class=
"app-gallery-item"
style=
"
position: relative;
width: 100px;
margin-top: 10px;
border: none;
"
>
<img
v-if=
"!addMsg.Logo || addMsg.Logo == ''"
src=
"../../assets/img/default.png"
style=
"width: 80px; height: 80px"
alt=
""
/>
<img
v-else
style=
"width: 80px; height: 80px"
:src=
"addMsg.Logo"
alt=
""
/>
"
>
<img
v-if=
"!addMsg.Logo || addMsg.Logo == ''"
src=
"../../assets/img/default.png"
style=
"width: 80px; height: 80px"
alt=
""
/>
<img
v-else
style=
"width: 80px; height: 80px"
:src=
"addMsg.Logo"
alt=
""
/>
</div>
</el-form-item>
</el-form>
</div>
<el-button
size=
"small"
style=
"margin-top: 20px; padding: 9px 25px"
type=
"primary"
@
click=
"submitform('addMsg')"
>
保存
<el-button
size=
"small"
style=
"margin-top: 20px; padding: 9px 25px"
type=
"primary"
@
click=
"submitform('addMsg')"
>
保存
</el-button>
</
template
>
<!-- 选择文件 -->
...
...
@@ -130,7 +210,6 @@ export default {
isShowAdd
:
false
,
//是否显示新增
addMsg
:
{
ID
:
0
,
//主键编号
BrandCategory
:
1
,
Logo
:
""
,
//封面图
ClassName
:
""
,
//品牌分类标题
},
...
...
@@ -150,58 +229,31 @@ export default {
},
],
},
activeType
:
{
Id
:
'1'
,
Name
:
''
},
tradeTypes
:
[],
loading
:
false
};
},
created
()
{
this
.
loading
=
true
this
.
initBrandCategory
()
this
.
getList
();
},
methods
:
{
changeTypeHandler
(
e
)
{
this
.
activeType
.
Name
=
e
.
label
this
.
getList
()
},
initBrandCategory
()
{
this
.
apipost
(
"/api/Trade/GetBrandCategory"
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tradeTypes
=
res
.
data
.
data
this
.
activeType
.
Id
=
this
.
tradeTypes
[
0
].
Id
.
toString
()
this
.
activeType
.
Name
=
this
.
tradeTypes
[
0
].
Name
this
.
getList
()
}
else
{
this
.
loading
=
false
;
}
})
},
SelectId
(
msg
)
{
let
url
=
this
.
getIconLink
(
msg
.
url
);
this
.
addMsg
.
Logo
=
url
;
this
.
isShowImage
=
false
;
},
clearMsg
()
{
this
.
addMsg
.
BrandCategory
=
parseInt
(
this
.
activeType
.
Id
)
this
.
addMsg
.
ID
=
0
;
this
.
addMsg
.
Logo
=
""
;
this
.
addMsg
.
ClassName
=
""
;
},
getList
()
{
this
.
loading
=
true
;
this
.
msg
.
BrandCategory
=
this
.
activeType
.
Id
this
.
apipost
(
"/api/Trade/GetBrandClassPageList"
,
this
.
msg
,
(
res
)
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
pageData
;
}
this
.
loading
=
false
;
});
},
handleCurrentChange
(
val
)
{
...
...
@@ -241,7 +293,6 @@ export default {
this
.
isShowAdd
=
true
;
var
tempData
=
res
.
data
.
data
;
this
.
addMsg
.
ID
=
tempData
.
ID
;
this
.
addMsg
.
BrandCategory
=
tempData
.
BrandCategory
this
.
addMsg
.
Logo
=
tempData
.
Logo
;
this
.
addMsg
.
ClassName
=
tempData
.
ClassName
;
}
else
{
...
...
@@ -269,7 +320,7 @@ export default {
});
},
},
mounted
()
{
},
mounted
()
{},
};
</
script
>
<
style
>
...
...
This diff is collapsed.
Click to expand it.
src/components/tradePavilion/tradePavilionIndex.vue
View file @
8655ba3f
...
...
@@ -174,18 +174,18 @@
{{
currentUser
.
MallName
}}
</div>
</div>
<ul
class=
"FsettingUU"
>
<ul
class=
"FsettingUU"
v-if=
"mall_userInfo.TenantId!=30"
>
<!--
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/companyList'}"
@click="isChecked='/companyList',CommonJump('companyList')">
<i
class=
"el-icon-menu"
></i><span>
公司资料
</span>
</li>
-->
<
!--
<
li
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/contactus' }"
@click="(isChecked = '/contactus'), CommonJump('contactus')"
>
<i
class=
"el-icon-menu"
></i><span>
联系我们
</span>
</li>
-->
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/brandClassification' }"
...
...
@@ -213,6 +213,133 @@
(isChecked = '/BuildingServiceManager'),
CommonJump('BuildingServiceManager')
"
>
<i
class=
"el-icon-menu"
></i><span>
载体管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/brandManagement' }"
@click="
(isChecked = '/brandManagement'), CommonJump('brandManagement')
"
>
<i
class=
"el-icon-menu"
></i><span>
品牌管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/activityType' }"
@click="(isChecked = '/activityType'), CommonJump('activityType')"
>
<i
class=
"el-icon-menu"
></i><span>
活动类型管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/tradeactivityList' }"
@click="
(isChecked = '/tradeactivityList'),
CommonJump('tradeactivityList')
"
>
<i
class=
"el-icon-menu"
></i><span>
活动列表
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/newsList' }"
@click="(isChecked = '/newsList'), CommonJump('newsList')"
>
<i
class=
"el-icon-menu"
></i><span>
新闻列表
</span>
</li>
<!--
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/serviceTypeList'}"
@click="isChecked='/serviceTypeList',CommonJump('serviceTypeList')">
<i
class=
"el-icon-menu"
></i><span>
服务类型列表
</span>
</li>
-->
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/consultList' }"
@click="(isChecked = '/consultList'), CommonJump('consultList')"
>
<i
class=
"el-icon-menu"
></i><span>
咨询管理
</span>
</li>
<!--
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/investmentList'}"
@click="isChecked='/investmentList',CommonJump('investmentList')">
<i
class=
"el-icon-menu"
></i><span>
招商管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/procurementList'}"
@click="isChecked='/procurementList',CommonJump('procurementList')">
<i
class=
"el-icon-menu"
></i><span>
采购管理
</span>
</li>
-->
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/realAuthentication' }"
@click="
(isChecked = '/realAuthentication'),
CommonJump('realAuthentication')
"
>
<i
class=
"el-icon-menu"
></i><span>
企业认证
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/firstStoreApply' }"
@click="
(isChecked = '/firstStoreApply'), CommonJump('firstStoreApply')
"
>
<i
class=
"el-icon-menu"
></i><span>
首店申请
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/wishList' }"
@click="(isChecked = '/wishList'), CommonJump('wishList')"
>
<i
class=
"el-icon-menu"
></i><span>
心愿列表
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/billboardList' }"
@click="(isChecked = '/billboardList'), CommonJump('billboardList')"
>
<i
class=
"el-icon-menu"
></i><span>
榜单管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == 'registrationLogin' }"
@click="
(isChecked = 'registrationLogin'), CommonJump('registrationLogin')
"
>
<i
class=
"el-icon-menu"
></i><span>
榜单报名表单
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/prizeMange' }"
@click="(isChecked = '/prizeMange'), CommonJump('prizeMange')"
>
<i
class=
"el-icon-menu"
></i><span>
奖项管理
</span>
</li>
</ul>
<!-- 宜宾 -->
<ul
class=
"FsettingUU"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/ybrandClassification' }"
@click="
(isChecked = '/ybrandClassification'),
CommonJump('ybrandClassification')
"
>
<i
class=
"el-icon-menu"
></i><span>
分类管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/BuildingServiceManager' }"
@click="
(isChecked = '/BuildingServiceManager'),
CommonJump('BuildingServiceManager')
"
>
<i
class=
"el-icon-menu"
></i><span>
商业载体管理
</span>
</li>
...
...
@@ -396,12 +523,14 @@ export default {
isChecked
:
""
,
Height
:
0
,
ERPEmpId
:
0
,
mall_userInfo
:{}
};
},
created
()
{
this
.
currentUser
=
this
.
getLocalStorage
();
this
.
ERPEmpId
=
this
.
currentUser
.
ERPEmpId
;
this
.
isChecked
=
this
.
$route
.
path
;
this
.
mall_userInfo
=
JSON
.
parse
(
localStorage
.
mall_userInfo
);
if
(
this
.
$route
.
query
.
FIndex
)
{
this
.
CommonJump
(
"companyList"
);
this
.
isChecked
=
"/companyList"
;
...
...
This diff is collapsed.
Click to expand it.
src/router/index.js
View file @
8655ba3f
...
...
@@ -832,6 +832,11 @@ export default new Router({
name
:
'brandClassification'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/brandClassification'
],
resolve
),
},
{
path
:
'/ybrandClassification'
,
name
:
'ybrandClassification'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/YbBrandClassification'
],
resolve
),
},
//贸易管理--新增修改品牌
{
path
:
'/addbrand'
,
...
...
This diff is collapsed.
Click to expand it.
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