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
c1bf1803
Commit
c1bf1803
authored
Sep 02, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ff3d1bc1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
156 additions
and
104 deletions
+156
-104
billboardList.vue
src/components/tradePavilion/billboardList.vue
+3
-3
listRegistration.vue
src/components/tradePavilion/listRegistration.vue
+96
-62
dropdown.vue
src/components/tradePavilion/plugin/dropdown.vue
+6
-2
publishAlist.vue
src/components/tradePavilion/publishAlist.vue
+51
-37
No files found.
src/components/tradePavilion/billboardList.vue
View file @
c1bf1803
...
...
@@ -243,7 +243,7 @@
this
.
$router
.
push
({
name
:
"listRegistration"
,
query
:
{
UserId
:
0
,
Id
:
row
.
Id
,
blank
:
"y"
,
},
});
...
...
@@ -253,11 +253,11 @@
name
:
"addbillboard"
,
});
},
fangbang
()
{
//放榜功能
fangbang
(
row
)
{
//放榜功能
this
.
$router
.
push
({
name
:
"publishAlist"
,
query
:
{
UserId
:
0
,
Id
:
row
.
Id
,
},
});
},
...
...
src/components/tradePavilion/listRegistration.vue
View file @
c1bf1803
...
...
@@ -4,74 +4,79 @@
<span
@
click=
"CommonJump('billboardList')"
class=
"blue point"
>
榜单管理
</span>
/ 报名列表
<div
style=
"float:right;"
>
<el-button
style=
"float:right;margin-top: -5px;"
size=
"small"
type=
"primary"
@
click=
"CommonJump('addbillboard')"
>
导出
<el-button
style=
"float:right;margin-top: -5px;"
size=
"small"
type=
"primary"
@
click=
"CommonJump('addbillboard')"
>
导出
</el-button>
</div>
</div>
<div
class=
"content"
>
<div>
<!--
<span
style=
"margin-left: 10px"
>
品牌信息
</span>
<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=
"品牌信息"
v-model=
"msg.BranchName"
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>
<span
style=
"margin-left: 10px"
>
对标载体
</span>
<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=
"对标载体"
v-model=
"msg.CarrierName"
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>
-->
<span
style=
"margin-left: 10px"
>
用户
</span>
<el-select
size=
"small"
v-model=
"msg.UserId"
:filter-method=
"ChangeListName"
filterable
@
change=
"(msg.pageIndex = 1), getList()"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
v-for=
"item in userList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
<span
style=
"margin-left: 10px"
>
面向群体
</span>
<el-select
size=
"small"
v-model=
"msg.ObjectType"
filterable
@
change=
"(msg.pageIndex = 1), getList()"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
v-for=
"item in ListObjectType"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
<span
style=
"margin-left: 10px"
>
状态
</span>
<el-select
size=
"small"
v-model=
"msg.CandidateState"
filterable
@
change=
"(msg.pageIndex = 1), getList()"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
label=
"报名中"
:value=
"1"
></el-option>
<el-option
label=
"候选"
:value=
"2"
></el-option>
<el-option
label=
"淘汰"
:value=
"3"
></el-option>
</el-option>
</el-select>
</div>
<el-table
:data=
"tableData"
v-loading=
"loading"
border
style=
"width: 100%;margin:20px 0"
>
<el-table-column
prop=
"
Enterprise
Name"
label=
"报名企业"
>
<el-table-column
prop=
"
Company
Name"
label=
"报名企业"
>
</el-table-column>
<el-table-column
prop=
"UserName"
label=
"参与对象"
>
<template
slot-scope=
"scope"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(' + scope.row.
Logo
+ ')',backgroundSize:'cover'}">
:style=
"
{backgroundImage:'url(' + scope.row.
ObjectIcon
+ ')',backgroundSize:'cover'}">
</div>
<div
flex=
"dir:left cross:center"
>
{{
scope
.
row
.
Name
}}
{{
scope
.
row
.
Object
Name
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"UserName"
label=
"关联图片/视频"
>
<
!-- <
el-table-column prop="UserName" label="关联图片/视频">
<template slot-scope="scope">
<div class="app-image"
:style="{backgroundImage:'url(' + scope.row.images[0] + ')',backgroundSize:'cover'}">
</div>
<div
flex=
"dir:left cross:center"
@
click=
"joinData = scope.row,dialogTableVisible=true"
style=
"margin-top:14px;cursor: pointer;color: blue;"
>
<div flex="dir:left cross:center" @click="joinData = scope.row,dialogTableVisible=true"
style="margin-top:14px;cursor: pointer;color: blue;">
查看更多
</div>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column
prop=
"description"
width=
'400'
label=
"参与说明"
>
</el-table-column>
<el-table-column
prop=
"Telephone"
width=
'100'
label=
"联系电话"
>
</el-table-column>
<el-table-column
prop=
"Status"
label=
"状态"
width=
'140'
>
<
!-- <
el-table-column prop="Status" label="状态" width='140'>
<template slot-scope="scope">
<span v-if="scope.row.Status==1">入榜(第x名)</span>
<span v-if="scope.row.Status==2">淘汰</span>
<span v-if="scope.row.Status==3">未评比</span>
</template>
</el-table-column>
</el-table-column>
-->
<el-table-column
label=
"操作"
width=
"180"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -103,9 +108,7 @@
<el-dialog
title=
"关联图片/视频"
:visible
.
sync=
"dialogTableVisible"
>
<div
style=
"display: flex;flex-wrap: wrap;"
v-if=
'joinData'
>
<div
v-for=
"(x,y) in joinData.images"
:key=
'y'
>
<el-image
style=
"width: 100px; height: 100px;margin-right: 10px;margin-bottom: 10px;"
:src=
"x"
<el-image
style=
"width: 100px; height: 100px;margin-right: 10px;margin-bottom: 10px;"
:src=
"x"
:preview-src-list=
"joinData.images"
>
</el-image>
</div>
...
...
@@ -113,7 +116,7 @@
<div
v-if=
'joinData'
style=
"margin-top: 15px;"
>
<video
width=
"320"
height=
"240"
controls=
"controls"
v-if=
"joinData.video!=''"
>
<source
:src=
"joinData.video"
type=
"video/mp4"
/>
<source
:src=
"joinData.video"
type=
"video/ogg"
>
<source
:src=
"joinData.video"
type=
"video/ogg"
>
</video>
</div>
</el-dialog>
...
...
@@ -129,33 +132,64 @@
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
UserId
:
0
,
// 用户id
BranchName
:
''
,
// 品牌
CarrierName
:
''
,
// 对标载体
ListId
:
0
,
//
UserId
:
0
,
// 用户
ObjectType
:
0
,
CandidateState
:
0
,
//1报名中 2候选 3淘汰
},
total
:
0
,
tableData
:
[{
EnterpriseName
:
'四川和平旅行社'
,
Name
:
"旅游"
,
Logo
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1616557590000_450.png'
,
images
:[
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1616557590000_450.png'
],
video
:
'http://192.168.20.214:8130/Upload/Video/202108301146507760000000003.mp4'
,
description
:
'我们呢撒洪都拉斯看家里的积分劳动局两地分居登录;发几个了打飞机给;的了房价高;东方丽景;东哥房间个;来得及高;砥砺奋进;哦给大家发;了京东方;老规矩的;发链接给对方;链接给对方'
,
Telephone
:
'12112131231'
,
Status
:
1
,
//1入榜(第x名),2淘汰,3未评比
}],
//数据列表
joinData
:
null
tableData
:
[],
//数据列表
joinData
:
null
,
userList
:
[],
usermsg
:
{
pageIndex
:
1
,
pageSize
:
20
,
Name
:
''
,
Source
:
0
,
MemberGrade
:
0
,
Id
:
0
,
Moblie
:
''
},
ListObjectType
:[]
};
},
created
()
{
if
(
this
.
$route
.
query
.
Id
)
{
this
.
msg
.
ListId
=
this
.
$route
.
query
.
Id
this
.
getList
();
}
this
.
getuserList
()
this
.
getListObject
()
//面向群体 枚举
// this.getList();
},
methods
:
{
getListObject
()
{
this
.
apipost
(
"/api/Trade/GetListObjectTypeEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ListObjectType
=
res
.
data
.
data
}
})
},
ChangeListName
(
val
)
{
this
.
usermsg
.
Name
=
val
;
this
.
getuserList
();
},
getuserList
()
{
this
.
apipost
(
"/api/user/GetMemberUserDropDownList"
,
this
.
usermsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
userList
=
pageData
;
}
})
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/Trade/GetFirstShop
Wish
PageList"
,
this
.
msg
,
res
=>
{
this
.
apipost
(
"/api/Trade/GetFirstShop
Enroll
PageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
...
...
@@ -168,16 +202,16 @@
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
eliminate
(
row
){
//淘汰对象
eliminate
(
row
)
{
//淘汰对象
let
that
=
this
;
that
.
Confirm
(
"你确定要将改对象淘汰吗?"
,
function
()
{
console
.
log
(
'你确定要将改对象淘汰吗'
)
console
.
log
(
'你确定要将改对象淘汰吗'
)
});
},
candidate
(
row
){
//候选对象
candidate
(
row
)
{
//候选对象
let
that
=
this
;
that
.
Confirm
(
"你确定将该对象纳入为候选吗?"
,
function
()
{
console
.
log
(
'你确定将该对象纳入为候选吗'
)
console
.
log
(
'你确定将该对象纳入为候选吗'
)
});
},
delete_b
(
row
)
{
...
...
@@ -202,9 +236,9 @@
EditgoUrl
()
{
},
},
mounted
()
{
}
...
...
src/components/tradePavilion/plugin/dropdown.vue
View file @
c1bf1803
...
...
@@ -34,8 +34,12 @@
</el-form-item>
<el-form-item
label=
"下拉选项列表"
>
<template
v-if=
"searchData.CompData.OptionList"
v-for=
"(item,index) in searchData.CompData.OptionList"
>
<el-input
v-model=
"item.Name"
size=
"small"
:key=
"index"
></el-input>
<a
style=
"cursor:pointer"
@
click=
"DeleteOption(index)"
>
删除
</a>
<div
style=
"display: flex;align-items: center;"
>
<el-input
v-model=
"item.Name"
size=
"small"
class=
"w400"
:key=
"index"
></el-input>
<!--
<a
style=
"cursor:pointer"
@
click=
"DeleteOption(index)"
>
删除
</a>
-->
<img
src=
"../../../assets/img/userman/del.png"
alt=
""
@
click=
"DeleteOption(index)"
style=
"width: 26px;height: 26px;margin-left: 10px;"
/>
</div>
</
template
>
<el-button
class=
"button-new-tag"
size=
"small"
@
click=
"addOptionItem"
>
添加选项
</el-button>
</el-form-item>
...
...
src/components/tradePavilion/publishAlist.vue
View file @
c1bf1803
...
...
@@ -8,8 +8,10 @@
<div
v-for=
"(x,y) in msgList"
:key=
'y'
style=
"margin-bottom: 15px;border-bottom: 1px solid #e2e2e2;"
>
<div
style=
"display: flex;align-items: flex-start;"
>
<span
v-if=
"dataobj.rankingType==1"
style=
"line-height: 32px;margin-right: 15px;"
>
{{
y
+
1
}}
:
</span>
<el-select
class=
"w300"
v-model=
"x.Id"
size=
"small"
placeholder=
"请选择"
@
change=
"selectdis()"
clearable
>
<el-option
v-for=
"item in enterpriseList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
:disabled=
"item.disabled"
>
<el-select
class=
"w300"
v-model=
"x.Id"
size=
"small"
placeholder=
"请选择"
@
change=
"selectdis()"
clearable
>
<el-option
v-for=
"item in enterpriseList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
:disabled=
"item.disabled"
>
</el-option>
</el-select>
<span
style=
"margin-left: 15px;line-height: 32px"
>
小奖章
</span>
...
...
@@ -22,7 +24,7 @@
</el-image>
</div>
</div>
<span
style=
"margin-left: 15px;line-height: 32px;"
>
大奖章
</span>
<
!--
<
span
style=
"margin-left: 15px;line-height: 32px;"
>
大奖章
</span>
<div
style=
"margin-left: 5px"
>
<el-button
@
click=
"openChangeDig(2,y)"
size=
"small"
>
选择文件
</el-button>
<div
class=
"app-gallery-item"
style=
"position: relative; width: 100px; margin-top: 10px"
>
...
...
@@ -31,14 +33,14 @@
<el-image
v-else
style=
"width: 80px; height: 80px"
:src=
"x.GrandMedal"
>
</el-image>
</div>
</div>
</div>
-->
<!--
<el-button
@
click=
"synchro()"
size=
"small"
type=
"primary"
style=
"margin-left: 15px"
>
奖章同步
</el-button>
-->
<el-tooltip
class=
"item"
effect=
"dark"
content=
"奖章同步"
placement=
"top"
>
<img
src=
"../../assets/img/userman/reset.png"
alt=
""
class=
"imgstyle"
@
click=
"synchro(y)"
/>
<img
src=
"../../assets/img/userman/reset.png"
alt=
""
class=
"imgstyle"
@
click=
"synchro(y)"
/>
</el-tooltip>
<span
style=
"margin-left: 15px;line-height: 32px;"
>
评语
</span>
<el-input
type=
"textarea"
:rows=
"2"
placeholder=
"请输入内容"
v-model=
"x.comment"
class=
'w400'
style=
'margin-left: 15px;'
>
<el-input
type=
"textarea"
:rows=
"2"
placeholder=
"请输入内容"
v-model=
"x.comment"
class=
'w400'
style=
'margin-left: 15px;'
>
</el-input>
</div>
...
...
@@ -82,7 +84,7 @@
},
msgList
:
[],
enterpriseList
:
[],
//入围企业
msgListindex
:
0
msgListindex
:
0
};
},
...
...
@@ -98,8 +100,8 @@
}
let
obj2
=
{
Name
:
'企业'
+
i
,
Id
:
i
+
1
,
disabled
:
false
Id
:
i
+
1
,
disabled
:
false
}
this
.
msgList
.
push
(
obj
)
this
.
enterpriseList
.
push
(
obj2
)
...
...
@@ -107,8 +109,9 @@
}
},
mounted
()
{
if
(
this
.
$route
.
query
.
ID
)
{
this
.
getData
(
this
.
$route
.
query
.
ID
);
if
(
this
.
$route
.
query
.
Id
)
{
this
.
getData
(
this
.
$route
.
query
.
Id
);
this
.
GetFirstShopEnrollCandidateList
(
this
.
$route
.
query
.
Id
)
}
},
methods
:
{
...
...
@@ -118,45 +121,45 @@
let
url
=
this
.
getIconLink
(
msg
.
url
);
if
(
this
.
imgType
==
1
)
{
this
.
msgList
[
this
.
msgListindex
].
SmallMedal
=
url
}
else
{
}
else
{
this
.
msgList
[
this
.
msgListindex
].
GrandMedal
=
url
}
this
.
changeState
=
false
;
},
openChangeDig
(
num
,
index
)
{
openChangeDig
(
num
,
index
)
{
this
.
changeState
=
true
;
this
.
imgType
=
num
;
this
.
msgListindex
=
index
},
synchro
(
index
){
//奖章同步
let
Small
=
''
;
let
Grand
=
''
;
this
.
msgList
.
forEach
((
x
,
y
)
=>
{
if
(
y
==
index
)
{
synchro
(
index
)
{
//奖章同步
let
Small
=
''
;
let
Grand
=
''
;
this
.
msgList
.
forEach
((
x
,
y
)
=>
{
if
(
y
==
index
)
{
Small
=
x
.
SmallMedal
Grand
=
x
.
GrandMedal
}
if
(
y
>
index
)
{
//之后同步数据
x
.
SmallMedal
=
Small
x
.
GrandMedal
=
Grand
if
(
y
>
index
)
{
//之后同步数据
x
.
SmallMedal
=
Small
x
.
GrandMedal
=
Grand
}
})
},
selectdis
(){
//企业下拉禁止选择处理
this
.
enterpriseList
.
forEach
((
x
,
y
)
=>
{
let
ishow
=
false
this
.
msgList
.
map
((
j
,
ji
)
=>
{
if
(
ishow
==
false
)
{
if
(
x
.
Id
==
j
.
Id
)
{
selectdis
()
{
//企业下拉禁止选择处理
this
.
enterpriseList
.
forEach
((
x
,
y
)
=>
{
let
ishow
=
false
this
.
msgList
.
map
((
j
,
ji
)
=>
{
if
(
ishow
==
false
)
{
if
(
x
.
Id
==
j
.
Id
)
{
x
.
disabled
=
true
;
ishow
=
true
ishow
=
true
return
}
else
{
}
else
{
x
.
disabled
=
false
;
}
}
})
})
...
...
@@ -165,25 +168,36 @@
//保存品牌
Save
(
formName
)
{
},
//获取详情
getData
(
ID
)
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/Trade/Get
BrandDetails
"
,
"/api/Trade/Get
FirstShopConfirmListList
"
,
{
ID
:
ID
,
ListId
:
ID
,
},
(
res
)
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
}
}
);
},
GetFirstShopEnrollCandidateList
(
ID
)
{
this
.
apipost
(
"/api/Trade/GetFirstShopEnrollCandidateList"
,
{
ListId
:
ID
,
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
}
}
);
}
},
};
</
script
>
...
...
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