Commit f670e362 authored by 罗超's avatar 罗超

1

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