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,233 +195,235 @@
</div>
</template>
<script>
export default {
data() {
return {
loading: false,
dialogTableVisible: false,
msg: {
pageIndex: 1,
pageSize: 15,
ListId: 0, //
UserId: 0, // 用户
ObjectType: 0,
CandidateState: 0, //1报名中 2候选 3淘汰
},
total: 0,
tableData: [], //数据列表
joinData: null,
userList: [],
usermsg: {
pageIndex: 1,
pageSize: 20,
Name: "",
Source: 0,
MemberGrade: 0,
Id: 0,
Moblie: "",
},
ListObjectType: [],
listStatus: -1,
detailDialog: false, //详情
seeData:null,
};
},
created() {
if (this.$route.query.Id) {
this.msg.ListId = this.$route.query.Id;
this.getList();
}
if (this.$route.query.status) {
this.listStatus = this.$route.query.status;
}
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();
export default {
data() {
return {
loading: false,
dialogTableVisible: false,
msg: {
pageIndex: 1,
pageSize: 15,
ListId: 0, //
UserId: 0, // 用户
ObjectType: 0,
CandidateState: 0, //1报名中 2候选 3淘汰
},
getuserList() {
this.apipost(
"/api/user/GetMemberUserDropDownList",
this.usermsg,
(res) => {
if (res.data.resultCode == 1) {
let pageData = res.data.data.pageData;
this.userList = pageData;
}
}
);
total: 0,
tableData: [], //数据列表
joinData: null,
userList: [],
usermsg: {
pageIndex: 1,
pageSize: 20,
Name: "",
Source: 0,
MemberGrade: 0,
Id: 0,
Moblie: "",
},
getList() {
this.loading = true;
ListObjectType: [],
listStatus: -1,
detailDialog: false, //详情
seeData: null,
};
},
created() {
if (this.$route.query.Id) {
this.msg.ListId = this.$route.query.Id;
this.getList();
}
if (this.$route.query.status) {
this.listStatus = this.$route.query.status;
}
this.getuserList();
this.getListObject(); //面向群体 枚举
this.apipost("/api/Trade/GetFirstShopEnrollPageList", this.msg, (res) => {
this.loading = false;
// 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) {
this.total = res.data.data.count;
let pageData = res.data.data.pageData;
this.tableData = pageData;
this.userList = pageData;
}
});
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
eliminate(row) {
//淘汰对象
let that = this;
that.$confirm("你确定要将改对象淘汰吗?", "提示", {
}
);
},
getList() {
this.loading = true;
this.apipost("/api/Trade/GetFirstShopEnrollPageList", 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();
},
eliminate(row) {
//淘汰对象
let that = this;
that
.$confirm("你确定要将改对象淘汰吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
that.setFirstShop(row.Id, 1)
})
.catch(() => { });
},
setFirstShop(id, type) {
let that = this;
that.apipost("/api/Trade/SetFirstShopEnrollState", { EnrollId: id, Type: type }, res => {
.then(() => {
that.setFirstShop(row.Id, 1);
})
.catch(() => {});
},
setFirstShop(id, type) {
let that = this;
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("你确定将该对象纳入为候选吗?", "提示", {
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("你确定重置状态?", "提示", {
.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() { },
seeDetail(row) {
this.detailDialog = true;
let data = JSON.parse(row.Content);
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+'、'
}
return
}
})
})
return text
},
showUpLoadFile(FileName,FilePath) {//文件显示
// 文件类型进行判断
if (
FileName.substring(
FileName.lastIndexOf(".") + 1,
FileName.length
).toUpperCase() == "PDF" ||
FileName.substring(
FileName.lastIndexOf(".") + 1,
FileName.length
).toUpperCase() == "TXT"
) {
this.previewPDF(Url);
} else {
console.log(FilePath)
window.open(
"https://view.officeapps.live.com/op/view.aspx?src=" + FilePath
);
}
},
.then(() => {
that.setFirstShop(row.Id, 3);
})
.catch(() => {});
},
EditgoUrl() {},
seeDetail(row) {
this.detailDialog = true;
let data = JSON.parse(row.Content);
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 + "、";
}
return;
}
});
});
return text;
},
showUpLoadFile(FileName, FilePath) {
//文件显示
// 文件类型进行判断
if (
FileName.substring(
FileName.lastIndexOf(".") + 1,
FileName.length
).toUpperCase() == "PDF" ||
FileName.substring(
FileName.lastIndexOf(".") + 1,
FileName.length
).toUpperCase() == "TXT"
) {
this.previewPDF(Url);
} else {
console.log(FilePath);
window.open(
"https://view.officeapps.live.com/op/view.aspx?src=" + FilePath
);
}
},
mounted() { },
};
},
mounted() {},
};
</script>
<style>
.listRegistration .content .searchInput {
border: 1px solid #dcdfe6;
border-radius: 4px;
}
.listRegistration .content .searchInput {
border: 1px solid #dcdfe6;
border-radius: 4px;
}
.listRegistration .app-image {
background-position: center center;
width: 50px;
height: 50px;
border-radius: 0%;
float: left;
margin-right: 8px;
}
.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 {
border: none;
outline: none;
height: 30px;
line-height: 30px;
}
.listRegistration .content .searchInput .el-input__inner {
border: none;
outline: none;
height: 30px;
line-height: 30px;
}
.listRegistration .content .searchInput {
line-height: normal;
display: inline-table;
width: 100%;
border-collapse: separate;
border-spacing: 0;
width: 250px;
margin-right: 20px;
}
.listRegistration .content .searchInput {
line-height: normal;
display: inline-table;
width: 100%;
border-collapse: separate;
border-spacing: 0;
width: 250px;
margin-right: 20px;
}
.listRegistration .content {
background: #fff;
margin-top: 10px;
padding: 20px;
box-sizing: border-box;
}
.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