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,233 +195,235 @@ ...@@ -195,233 +195,235 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
loading: false, loading: false,
dialogTableVisible: false, dialogTableVisible: false,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 15, pageSize: 15,
ListId: 0, // ListId: 0, //
UserId: 0, // 用户 UserId: 0, // 用户
ObjectType: 0, ObjectType: 0,
CandidateState: 0, //1报名中 2候选 3淘汰 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();
}, },
getuserList() { total: 0,
this.apipost( tableData: [], //数据列表
"/api/user/GetMemberUserDropDownList", joinData: null,
this.usermsg, userList: [],
(res) => { usermsg: {
if (res.data.resultCode == 1) { pageIndex: 1,
let pageData = res.data.data.pageData; pageSize: 20,
this.userList = pageData; Name: "",
} Source: 0,
} MemberGrade: 0,
); Id: 0,
Moblie: "",
}, },
getList() { ListObjectType: [],
this.loading = true; 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.getList();
this.loading = false; },
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) { if (res.data.resultCode == 1) {
this.total = res.data.data.count;
let pageData = res.data.data.pageData; let pageData = res.data.data.pageData;
this.tableData = pageData; this.userList = pageData;
} }
}); }
}, );
handleCurrentChange(val) { },
this.msg.pageIndex = val; getList() {
this.getList(); this.loading = true;
},
eliminate(row) { this.apipost("/api/Trade/GetFirstShopEnrollPageList", this.msg, (res) => {
//淘汰对象 this.loading = false;
let that = this; if (res.data.resultCode == 1) {
that.$confirm("你确定要将改对象淘汰吗?", "提示", { 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: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
that.setFirstShop(row.Id, 1) that.setFirstShop(row.Id, 1);
})
}) .catch(() => {});
.catch(() => { }); },
setFirstShop(id, type) {
}, let that = this;
setFirstShop(id, type) { that.apipost(
let that = this; "/api/Trade/SetFirstShopEnrollState",
that.apipost("/api/Trade/SetFirstShopEnrollState", { EnrollId: id, Type: type }, res => { { 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) {
}, let that = this;
delete_b(row) { that
let that = this; .$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() {},
}, seeDetail(row) {
EditgoUrl() { }, this.detailDialog = true;
seeDetail(row) { let data = JSON.parse(row.Content);
this.detailDialog = true; this.seeData = data;
let data = JSON.parse(row.Content); console.log(data);
this.seeData = data },
console.log(data); getOptionValue(row) {
}, let value = row.OptionValue;
getOptionValue(row){ let list = row.OptionList;
let value = row.OptionValue let data = value.toString().split(",");
let list = row.OptionList let text = "";
let data = value.toString().split(',') data.forEach((x, y) => {
let text = '' list.map((j) => {
data.forEach((x,y)=>{ if (j.Id == x) {
list.map(j=>{ if (y + 1 == data.length) {
if(j.Id==x){ text = text + j.Name;
if(y+1==data.length){ } else {
text =text+ j.Name text = text + j.Name + "、";
}else{ }
text = text+j.Name+'、' return;
} }
return });
} });
}) return text;
}) },
return text showUpLoadFile(FileName, FilePath) {
}, //文件显示
showUpLoadFile(FileName,FilePath) {//文件显示 // 文件类型进行判断
// 文件类型进行判断 if (
if ( FileName.substring(
FileName.substring( FileName.lastIndexOf(".") + 1,
FileName.lastIndexOf(".") + 1, FileName.length
FileName.length ).toUpperCase() == "PDF" ||
).toUpperCase() == "PDF" || FileName.substring(
FileName.substring( FileName.lastIndexOf(".") + 1,
FileName.lastIndexOf(".") + 1, FileName.length
FileName.length ).toUpperCase() == "TXT"
).toUpperCase() == "TXT" ) {
) { 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%;
border-collapse: separate; border-collapse: separate;
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