Commit faaae947 authored by Mac's avatar Mac

1

parent 86910fba
...@@ -51,31 +51,36 @@ ...@@ -51,31 +51,36 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column prop="UserName" label="关联图片/视频"> <el-table-column prop="UserName" label="用户">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="app-image" <div class="app-image"
:style="{backgroundImage:'url(' + scope.row.images[0] + ')',backgroundSize:'cover'}"> :style="{backgroundImage:'url(' + scope.row.UserIcon + ')',backgroundSize:'cover'}">
</div> </div>
<div flex="dir:left cross:center" @click="joinData = scope.row,dialogTableVisible=true" <div flex="dir:left cross:center">
style="margin-top:14px;cursor: pointer;color: blue;"> {{scope.row.UserName}}
查看更多
</div> </div>
</template> </template>
</el-table-column> --> </el-table-column>
<el-table-column prop="UserName" label="奖章">
<template slot-scope="scope">
<div class="app-image"
:style="{backgroundImage:'url(' + scope.row.MedalImage + ')',backgroundSize:'cover'}">
</div>
</template>
</el-table-column>
<!-- <el-table-column prop="Status" label="状态" width='140'> <el-table-column prop="Reviews" label="评语">
</el-table-column>
<el-table-column prop="UserName" label="候选状态">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.Status==1">入榜(第x名)</span> <span v-if="scope.row.CandidateState==1">报名中</span>
<span v-if="scope.row.Status==2">淘汰</span> <span v-if="scope.row.CandidateState==2">候选</span>
<span v-if="scope.row.Status==3">未评比</span> <span v-if="scope.row.CandidateState==3">淘汰</span>
</template> </template>
</el-table-column> --> </el-table-column>
<el-table-column prop="CreateDate" label="报名时间">
</el-table-column>
<el-table-column label="操作" width="180"> <el-table-column label="操作" width="180">
...@@ -84,16 +89,20 @@ ...@@ -84,16 +89,20 @@
<el-tooltip class="item" effect="dark" content="详情" placement="top"> <el-tooltip class="item" effect="dark" content="详情" placement="top">
<img src="../../assets/img/userman/icon-show.png" alt="" class="imgstyle" /> <img src="../../assets/img/userman/icon-show.png" alt="" class="imgstyle" />
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="淘汰" placement="top"> <el-tooltip class="item" effect="dark" content="淘汰" placement="top"
v-if="scope.row.CandidateState==1">
<img src="../../assets/img/userman/nopass.png" alt="" class="imgstyle" <img src="../../assets/img/userman/nopass.png" alt="" class="imgstyle"
@click="eliminate(scope.row)" /> v-if="scope.row.CandidateState==1" @click="eliminate(scope.row)" />
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="候选" placement="top"> <el-tooltip class="item" effect="dark" content="候选" placement="top"
v-if="scope.row.CandidateState==1">
<img src="../../assets/img/userman/pass.png" alt="" class="imgstyle" <img src="../../assets/img/userman/pass.png" alt="" class="imgstyle"
@click="candidate(scope.row)" /> v-if="scope.row.CandidateState==1" @click="candidate(scope.row)" />
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="重置" placement="top"> <el-tooltip class="item" effect="dark" content="重置" placement="top"
v-if="scope.row.CandidateState==3 || scope.row.CandidateState==2">
<img src="../../assets/img/userman/reset.png" alt="" class="imgstyle" <img src="../../assets/img/userman/reset.png" alt="" class="imgstyle"
v-if="scope.row.CandidateState==3 || scope.row.CandidateState==2"
@click="delete_b(scope.row)" /> @click="delete_b(scope.row)" />
</el-tooltip> </el-tooltip>
...@@ -150,7 +159,7 @@ ...@@ -150,7 +159,7 @@
Id: 0, Id: 0,
Moblie: '' Moblie: ''
}, },
ListObjectType:[] ListObjectType: []
...@@ -204,34 +213,55 @@ ...@@ -204,34 +213,55 @@
}, },
eliminate(row) {//淘汰对象 eliminate(row) {//淘汰对象
let that = this; let that = this;
that.Confirm("你确定要将改对象淘汰吗?", function () { that.$confirm("你确定要将改对象淘汰吗?", "提示", {
console.log('你确定要将改对象淘汰吗') confirmButtonText: "确定",
}); cancelButtonText: "取消",
}, type: "warning",
candidate(row) {//候选对象 })
let that = this; .then(() => {
that.Confirm("你确定将该对象纳入为候选吗?", function () { that.setFirstShop(row.Id, 1)
console.log('你确定将该对象纳入为候选吗')
}); })
.catch(() => { });
}, },
delete_b(row) { setFirstShop(id, type) {
let that = this; let that = this;
that.Confirm("是否删除?", function () { that.apipost("/api/Trade/SetFirstShopEnrollState", { EnrollId: id, Type: type }, res => {
that.apipost(
"/api/Trade/DelFirstShopWishInfo",
{
WishId: row.Id,
},
(res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
that.Success(res.data.message); that.Success(res.data.message);
that.getList(); that.getList();
} else { } else {
that.Error(res.data.message); that.Error(res.data.message);
} }
} })
); },
}); candidate(row) {//候选对象
let that = this;
that.$confirm("你确定将该对象纳入为候选吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
that.setFirstShop(row.Id, 2)
})
.catch(() => { });
},
delete_b(row) {
let that = this;
that.$confirm("你确定重置状态?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
that.setFirstShop(row.Id, 3)
})
.catch(() => { });
}, },
EditgoUrl() { EditgoUrl() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment