Commit f670e362 authored by 罗超's avatar 罗超

1

parent 1f126ed2
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
content="放榜" content="放榜"
placement="top" placement="top"
style="margin: 0 5px" style="margin: 0 5px"
v-if="scope.row.ListState === 2 || scope.row.ListState === 3" v-if="scope.row.ListState === 2"
> >
<img <img
src="../../assets/img/userman/bangdan1.png" src="../../assets/img/userman/bangdan1.png"
......
...@@ -96,16 +96,16 @@ ...@@ -96,16 +96,16 @@
<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" @click="seeDetail(scope.row)" /> <img src="../../assets/img/userman/icon-show.png" alt="" class="imgstyle" @click="seeDetail(scope.row)" />
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="淘汰" placement="top" v-if="scope.row.CandidateState==1"> <el-tooltip class="item" effect="dark" content="淘汰" placement="top" v-if="scope.row.CandidateState==1&&listStatus!==3">
<img src="../../assets/img/userman/nopass.png" alt="" class="imgstyle" @click="eliminate(scope.row)" /> <img src="../../assets/img/userman/nopass.png" alt="" class="imgstyle" @click="eliminate(scope.row)" />
v-if="scope.row.CandidateState==1" @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" v-if="scope.row.CandidateState==1"> <el-tooltip class="item" effect="dark" content="候选" placement="top" v-if="scope.row.CandidateState==1&&listStatus!==3">
<img src="../../assets/img/userman/pass.png" alt="" class="imgstyle" @click="candidate(scope.row)" /> <img src="../../assets/img/userman/pass.png" alt="" class="imgstyle" @click="candidate(scope.row)" />
v-if="scope.row.CandidateState==1" @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"> v-if="(scope.row.CandidateState==3 || scope.row.CandidateState==2)&&listStatus!==3">
<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)" /> v-if="scope.row.CandidateState==3 || scope.row.CandidateState==2" @click="delete_b(scope.row)" />
</el-tooltip> </el-tooltip>
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
loading: false, loading: false,
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
ListObjectType: [], ListObjectType: [],
listStatus: -1, listStatus: -1,
detailDialog: false, //详情 detailDialog: false, //详情
seeData:null, seeData: null,
}; };
}, },
created() { created() {
...@@ -283,86 +283,88 @@ ...@@ -283,86 +283,88 @@
eliminate(row) { eliminate(row) {
//淘汰对象 //淘汰对象
let that = this; let that = this;
that.$confirm("你确定要将改对象淘汰吗?", "提示", { that
.$confirm("你确定要将改对象淘汰吗?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
that.setFirstShop(row.Id, 1) that.setFirstShop(row.Id, 1);
}) })
.catch(() => { }); .catch(() => {});
}, },
setFirstShop(id, type) { setFirstShop(id, type) {
let that = this; let that = this;
that.apipost("/api/Trade/SetFirstShopEnrollState", { EnrollId: id, Type: type }, res => { that.apipost(
"/api/Trade/SetFirstShopEnrollState",
{ EnrollId: id, Type: type },
(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) { candidate(row) {
//候选对象 //候选对象
let that = this; let that = this;
that.$confirm("你确定将该对象纳入为候选吗?", "提示", { that
.$confirm("你确定将该对象纳入为候选吗?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
that.setFirstShop(row.Id, 2) that.setFirstShop(row.Id, 2);
}) })
.catch(() => { }); .catch(() => {});
}, },
delete_b(row) { delete_b(row) {
let that = this; let that = this;
that.$confirm("你确定重置状态?", "提示", { that
.$confirm("你确定重置状态?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
that.setFirstShop(row.Id, 3) that.setFirstShop(row.Id, 3);
}) })
.catch(() => { }); .catch(() => {});
}, },
EditgoUrl() { }, EditgoUrl() {},
seeDetail(row) { seeDetail(row) {
this.detailDialog = true; this.detailDialog = true;
let data = JSON.parse(row.Content); let data = JSON.parse(row.Content);
this.seeData = data this.seeData = data;
console.log(data); console.log(data);
}, },
getOptionValue(row){ getOptionValue(row) {
let value = row.OptionValue let value = row.OptionValue;
let list = row.OptionList let list = row.OptionList;
let data = value.toString().split(',') let data = value.toString().split(",");
let text = '' let text = "";
data.forEach((x,y)=>{ data.forEach((x, y) => {
list.map(j=>{ list.map((j) => {
if(j.Id==x){ if (j.Id == x) {
if(y+1==data.length){ if (y + 1 == data.length) {
text =text+ j.Name text = text + j.Name;
}else{ } else {
text = text+j.Name+'、' text = text + j.Name + "、";
} }
return return;
} }
}) });
}) });
return text return text;
}, },
showUpLoadFile(FileName,FilePath) {//文件显示 showUpLoadFile(FileName, FilePath) {
//文件显示
// 文件类型进行判断 // 文件类型进行判断
if ( if (
FileName.substring( FileName.substring(
...@@ -376,39 +378,39 @@ ...@@ -376,39 +378,39 @@
) { ) {
this.previewPDF(Url); this.previewPDF(Url);
} else { } else {
console.log(FilePath) console.log(FilePath);
window.open( window.open(
"https://view.officeapps.live.com/op/view.aspx?src=" + FilePath "https://view.officeapps.live.com/op/view.aspx?src=" + FilePath
); );
} }
}, },
}, },
mounted() { }, mounted() {},
}; };
</script> </script>
<style> <style>
.listRegistration .content .searchInput { .listRegistration .content .searchInput {
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
border-radius: 4px; border-radius: 4px;
} }
.listRegistration .app-image { .listRegistration .app-image {
background-position: center center; background-position: center center;
width: 50px; width: 50px;
height: 50px; height: 50px;
border-radius: 0%; border-radius: 0%;
float: left; float: left;
margin-right: 8px; margin-right: 8px;
} }
.listRegistration .content .searchInput .el-input__inner { .listRegistration .content .searchInput .el-input__inner {
border: none; border: none;
outline: none; outline: none;
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
} }
.listRegistration .content .searchInput { .listRegistration .content .searchInput {
line-height: normal; line-height: normal;
display: inline-table; display: inline-table;
width: 100%; width: 100%;
...@@ -416,12 +418,12 @@ ...@@ -416,12 +418,12 @@
border-spacing: 0; border-spacing: 0;
width: 250px; width: 250px;
margin-right: 20px; margin-right: 20px;
} }
.listRegistration .content { .listRegistration .content {
background: #fff; background: #fff;
margin-top: 10px; margin-top: 10px;
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
} }
</style> </style>
\ No newline at end of file
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