|
|
|
@ -3,44 +3,74 @@
|
|
|
|
|
<div class="titleInput" ref="titleInput">
|
|
|
|
|
<el-input
|
|
|
|
|
placeholder="请输入国籍"
|
|
|
|
|
v-model="form.nationalityRange"
|
|
|
|
|
v-model="afterParams.nationalityRange"
|
|
|
|
|
class="input-with-select"
|
|
|
|
|
>
|
|
|
|
|
<el-button slot="append" icon="el-icon-search"></el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
slot="append"
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
@click="search"
|
|
|
|
|
></el-button>
|
|
|
|
|
</el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="peopleContent" v-loading="loads">
|
|
|
|
|
<div class="subMan" v-for="(item, index) in arrList" :key="index">
|
|
|
|
|
<div class="leftSub">
|
|
|
|
|
<div
|
|
|
|
|
class="leftAvatar"
|
|
|
|
|
:style="`background-image:url('${require('../../../../assets/images/profile.jpg')}')`"
|
|
|
|
|
></div>
|
|
|
|
|
<div class="leftName">
|
|
|
|
|
<div>周爱</div>
|
|
|
|
|
<div class="mainTag">
|
|
|
|
|
<div>{{ item.ageRange }}</div>
|
|
|
|
|
<div>
|
|
|
|
|
{{ item.sexRange }}
|
|
|
|
|
<div v-loading="loads">
|
|
|
|
|
<div class="peopleContent" v-if="arrList.length > 0">
|
|
|
|
|
<div class="subMan" v-for="(item, index) in arrList" :key="index">
|
|
|
|
|
<div class="leftSub">
|
|
|
|
|
<div
|
|
|
|
|
class="leftAvatar"
|
|
|
|
|
:style="`background-image:url('${require('../../../../assets/images/profile.jpg')}')`"
|
|
|
|
|
></div>
|
|
|
|
|
<div class="leftName">
|
|
|
|
|
<div>周爱</div>
|
|
|
|
|
<div class="mainTag">
|
|
|
|
|
<div>{{ item.ageRange }}</div>
|
|
|
|
|
<div>
|
|
|
|
|
{{ item.sexRange }}
|
|
|
|
|
</div>
|
|
|
|
|
<div>{{ item.educationRange }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div>{{ item.educationRange }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="rightSub">
|
|
|
|
|
<div class="lookDetail">查看</div>
|
|
|
|
|
<div class="rightSub">
|
|
|
|
|
<div class="lookDetail" @click="looks(item.id)">查看</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else class="noneStyle" >暂无数据</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="pagination" ref="pagination">
|
|
|
|
|
<my-pagination :total="total" @pagesChange="pagesChange"></my-pagination>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 查看该人员的详情 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
:visible.sync="peopelDetail"
|
|
|
|
|
width="40%"
|
|
|
|
|
@close="cancel"
|
|
|
|
|
:destroy-on-close="true"
|
|
|
|
|
>
|
|
|
|
|
<div slot="title">
|
|
|
|
|
<div class="titleText">查看人员详情</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="center-content">
|
|
|
|
|
<el-descriptions class="margin-top" :column="2" border>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
v-for="(item, index) in beforeData"
|
|
|
|
|
:key="index"
|
|
|
|
|
>
|
|
|
|
|
<template slot="label"> {{ item.name }} </template>
|
|
|
|
|
{{ item.value }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { peopleList, peopleGet } from "@/api/volunteer/hdgl";
|
|
|
|
|
import myPagination from "@/views/components/myPagination/index.vue";
|
|
|
|
|
import { peopleList } from "@/api/volunteer/hdgl";
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -48,20 +78,95 @@ export default {
|
|
|
|
|
form: {
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
},
|
|
|
|
|
afterParams: {
|
|
|
|
|
nationalityRange: "",
|
|
|
|
|
},
|
|
|
|
|
total: 0,
|
|
|
|
|
loads: false,
|
|
|
|
|
//=========
|
|
|
|
|
peopelDetail: false,
|
|
|
|
|
beforeData: [
|
|
|
|
|
{
|
|
|
|
|
name: "年龄",
|
|
|
|
|
label: "ageRange",
|
|
|
|
|
value: "",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "文化程度",
|
|
|
|
|
label: "educationRange",
|
|
|
|
|
value: "",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "小区",
|
|
|
|
|
label: "housingRange",
|
|
|
|
|
value: "",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "行业类型",
|
|
|
|
|
label: "industryRange",
|
|
|
|
|
value: "",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "兴趣爱好",
|
|
|
|
|
label: "interestRange",
|
|
|
|
|
value: "",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "国籍",
|
|
|
|
|
label: "nationalityRange",
|
|
|
|
|
value: "",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: "政治面貌",
|
|
|
|
|
label: "politicalRange",
|
|
|
|
|
value: "",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "专业类型",
|
|
|
|
|
label: "professionalRange",
|
|
|
|
|
value: "",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "院校",
|
|
|
|
|
label: "schoolRange",
|
|
|
|
|
value: "",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "性别",
|
|
|
|
|
label: "sexRange",
|
|
|
|
|
value: "",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
cancel() {
|
|
|
|
|
this.peopelDetail = false;
|
|
|
|
|
},
|
|
|
|
|
looks(e) {
|
|
|
|
|
peopleGet(e).then((res) => {
|
|
|
|
|
this.beforeData.forEach((value, index) => {
|
|
|
|
|
for (let key in res.data) {
|
|
|
|
|
if (value.label == key) {
|
|
|
|
|
this.beforeData[index].value = res.data[key];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.peopelDetail = true;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
search() {
|
|
|
|
|
this.form = { ...this.form, ...this.afterParams };
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
getList() {
|
|
|
|
|
this.loads = true;
|
|
|
|
|
peopleList().then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
peopleList(this.form).then((res) => {
|
|
|
|
|
this.arrList = res.rows;
|
|
|
|
|
this.total = res.total;
|
|
|
|
|
this.loads = false;
|
|
|
|
@ -82,6 +187,63 @@ export default {
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.noneStyle {
|
|
|
|
|
height: 490px;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
font-family: "Alibaba-PuHuiTi-Medium.otf";
|
|
|
|
|
color: #606266;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
.center-content {
|
|
|
|
|
padding: 20px 30px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .margin-top td {
|
|
|
|
|
font-family: "Alibaba-PuHuiTi-Regular";
|
|
|
|
|
}
|
|
|
|
|
::v-deep .margin-top th {
|
|
|
|
|
font-family: "Alibaba-PuHuiTi-Regular";
|
|
|
|
|
width: 20%;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-dialog {
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-dialog__header {
|
|
|
|
|
padding: 10px;
|
|
|
|
|
padding-left: 15px;
|
|
|
|
|
background: #f7f5f5;
|
|
|
|
|
border-top-left-radius: 10px;
|
|
|
|
|
border-top-right-radius: 10px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-dialog__body {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-dialog__footer {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-dialog__headerbtn {
|
|
|
|
|
top: 12px;
|
|
|
|
|
}
|
|
|
|
|
.titleText {
|
|
|
|
|
font-family: "Alibaba-PuHuiTi-Regular";
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #4c4949;
|
|
|
|
|
padding-left: 15px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
position: relative;
|
|
|
|
|
&::before {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 3.8px;
|
|
|
|
|
left: 0;
|
|
|
|
|
content: "";
|
|
|
|
|
width: 5px;
|
|
|
|
|
height: 15px;
|
|
|
|
|
background: #f8414d;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
::v-deep .titleInput .el-input__inner {
|
|
|
|
|
border-right: none;
|
|
|
|
|
}
|
|
|
|
|