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
d2b87f51
Commit
d2b87f51
authored
Feb 21, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
4d10cb55
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
552 additions
and
3 deletions
+552
-3
basicSetUp.vue
src/components/setup/basicSetUp.vue
+6
-0
activityType.vue
src/components/tradePavilion/activityType.vue
+232
-0
tradePavilionIndex.vue
src/components/tradePavilion/tradePavilionIndex.vue
+8
-0
tradeactivityList.vue
src/components/tradePavilion/tradeactivityList.vue
+291
-0
index.js
src/router/index.js
+15
-3
No files found.
src/components/setup/basicSetUp.vue
View file @
d2b87f51
...
...
@@ -424,6 +424,11 @@
<el-switch
:active-value=
"1"
:inactive-value=
"0"
v-model=
"msg.ListName"
>
</el-switch>
</div>
<div
class=
"left_box "
>
<span
style=
"margin-right: 10px"
>
商品价格
</span>
<el-switch
:active-value=
"1"
:inactive-value=
"0"
v-model=
"msg.IsShowPrice"
>
</el-switch>
</div>
</div>
<div
class=
"right-setting-menu"
>
<div
class=
"item-img"
>
...
...
@@ -895,6 +900,7 @@
ListShopCar
:
0
,
ListBuyCount
:
1
,
ListName
:
1
,
IsShowPrice
:
1
,
//是否显示商品价格
DetailsComment
:
1
,
DetailsLineationPrice
:
1
,
DetailsMemberPrice
:
1
,
...
...
src/components/tradePavilion/activityType.vue
0 → 100644
View file @
d2b87f51
<
template
>
<div
class=
"companyList"
>
<template
v-if=
"isShowAdd"
>
<div
class=
"head-title"
>
活动类型管理
<el-button
style=
"float:right;margin-top: -5px;"
size=
"small"
type=
"primary"
@
click=
"isShowAdd=false,clearMsg()"
>
新增
</el-button>
</div>
<div
class=
"content"
>
<div>
<div
class=
"searchInput"
style=
"width:150px"
>
<el-input
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
@
clear=
"msg.pageIndex=1,getList()"
style=
"display:inline-block;width:125px;height:30px"
placeholder=
"活动类型名称"
v-model=
"msg.TypeName"
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=
"TypeName"
label=
"类型名称"
>
</el-table-column>
<el-table-column
prop=
"CoverImage"
label=
"封面图"
>
</el-table-column>
<el-table-column
prop=
"Id"
width=
"200"
label=
"操作"
>
<template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
@
click=
"EditType(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"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
@
click=
"delType(scope.row)"
circle
style=
"padding:6px;"
>
</el-button>
</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=true"
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"
>
<el-form-item
label=
"类型名称"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"addMsg.TypeName"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"封面图"
size=
"small"
>
<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.CoverImage || addMsg.CoverImage==''"
src=
"../../assets/img/default.png"
style=
"width:80px;height:80px"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.CoverImage"
alt=
""
>
</div>
</el-form-item>
</el-form>
</div>
<el-button
size=
"small"
style=
"margin-top:20px;padding:9px 25px;"
type=
"primary"
@
click=
"submitform()"
>
保存
</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"
;
export
default
{
components
:
{
ChooseImg
,
},
data
()
{
return
{
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
TypeName
:
''
,
},
total
:
0
,
isShowAdd
:
true
,
//是否显示新增
tableData
:
[],
//数据列表
isShowImage
:
false
,
//是否显示选择图片弹窗
addMsg
:
{
Id
:
0
,
//编号
TypeName
:
""
,
//类型名称
CoverImage
:
""
,
//封面图
}
};
},
created
()
{
this
.
getList
();
},
methods
:
{
clearMsg
()
{
this
.
addMsg
.
Id
=
0
;
this
.
addMsg
.
TypeName
=
""
;
this
.
addMsg
.
CoverImage
=
""
;
},
SelectId
(
msg
)
{
let
url
=
this
.
getIconLink
(
msg
.
url
)
this
.
addMsg
.
CoverImage
=
url
this
.
isShowImage
=
false
;
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/Trade/GetCommerceActivityTypePage"
,
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
;
}
})
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
//修改类型
EditType
(
item
)
{
this
.
apipost
(
"/api/Trade/GetCommerceActivityType"
,
{
Id
:
item
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
isShowAdd
=
false
;
var
tempData
=
res
.
data
.
data
;
this
.
addMsg
.
Id
=
tempData
.
Id
;
this
.
addMsg
.
TypeName
=
tempData
.
TypeName
;
this
.
addMsg
.
CoverImage
=
tempData
.
CoverImage
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
},
//删除类型
delType
(
item
)
{
let
that
=
this
;
that
.
Confirm
(
"是否删除?"
,
function
()
{
that
.
apipost
(
"/api/Trade/RemoveCommerceActivityType"
,
{
Id
:
item
.
CompanyId
,
Status
:
1
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
);
});
},
//新增修改
submitform
()
{
this
.
apipost
(
"/api/Trade/SetCommerceActivityType"
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
isShowAdd
=
true
;
this
.
getList
();
this
.
clearMsg
();
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
}
},
mounted
()
{}
};
</
script
>
<
style
>
.companyList
.remark_name
{
color
:
#888888
;
font-size
:
12px
;
margin-left
:
10px
;
float
:
right
;
}
.companyList
.app-image
{
background-position
:
center
center
;
width
:
50px
;
height
:
50px
;
border-radius
:
0%
;
float
:
left
;
margin-right
:
8px
;
}
.companyList
.blue
{
color
:
#409EFF
;
}
.companyList
.content
.searchInput
{
border
:
1px
solid
#DCDFE6
;
border-radius
:
4px
;
}
.companyList
.content
.searchInput
.el-input__inner
{
border
:
none
;
outline
:
none
;
height
:
30px
;
line-height
:
30px
;
}
.companyList
.content
.searchInput
{
line-height
:
normal
;
display
:
inline-table
;
width
:
100%
;
border-collapse
:
separate
;
border-spacing
:
0
;
width
:
250px
;
margin-right
:
20px
;
}
.companyList
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
20px
;
box-sizing
:
border-box
;
}
</
style
>
src/components/tradePavilion/tradePavilionIndex.vue
View file @
d2b87f51
...
...
@@ -182,6 +182,14 @@
@click="isChecked='/companyList',CommonJump('companyList')">
<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>
</ul>
</div>
</div>
...
...
src/components/tradePavilion/tradeactivityList.vue
0 → 100644
View file @
d2b87f51
This diff is collapsed.
Click to expand it.
src/router/index.js
View file @
d2b87f51
...
...
@@ -578,9 +578,21 @@ export default new Router({
},
//贸易管理--公司资料管理--公司详情
{
path
:
'/companyinfo'
,
name
:
'companyinfo'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/companyinfo'
],
resolve
),
path
:
'/companyinfo'
,
name
:
'companyinfo'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/companyinfo'
],
resolve
),
},
//贸易管理--活动类型管理
{
path
:
'/activityType'
,
name
:
'activityType'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/activityType'
],
resolve
),
},
//贸易管理--活动列表
{
path
:
'/tradeactivityList'
,
name
:
'tradeactivityList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/tradeactivityList'
],
resolve
),
},
]
},
...
...
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