Browse Source

志愿者详情添加志愿团队

master
Jackwang 4 years ago
parent
commit
eae5bff906
  1. 58
      src/views/modules/user/volunteerinfo-detail.vue

58
src/views/modules/user/volunteerinfo-detail.vue

@ -36,7 +36,21 @@
prop="identityNo"> prop="identityNo">
<span>{{dataForm.identityNo}}</span> <span>{{dataForm.identityNo}}</span>
</el-form-item> </el-form-item>
<el-form-item label="所属小组">
<el-form-item prop="teamIdList"
label="所属团"
class="role-list">
<el-select v-model="dataForm.teamIdList"
multiple filterable
placeholder="可输入进行模糊查询" popper-class='roleSelect'>
<el-option v-for="team in teamList"
:key="team.id"
:label="team.teamName"
:value="team.id"></el-option>
</el-select>
</el-form-item>
<el-form-item label="所属队">
<el-select v-model="dataForm.volunteerTagId" placeholder="请选择"> <el-select v-model="dataForm.volunteerTagId" placeholder="请选择">
<el-option <el-option
v-for="item in volunteerTags" v-for="item in volunteerTags"
@ -98,11 +112,13 @@ export default {
points: '', points: '',
registTime: '', registTime: '',
tagIds: [], tagIds: [],
volunteerTagId: '' volunteerTagId: '',
teamIdList: [],
}, },
tagOptions: [], tagOptions: [],
userGridList: [], userGridList: [],
volunteerTags: [] volunteerTags: [],
teamList: []
} }
}, },
computed: { computed: {
@ -114,6 +130,7 @@ export default {
init () { init () {
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
this.getTeamList()
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()
if (this.dataForm.id) { if (this.dataForm.id) {
this.getInfo() this.getInfo()
@ -121,6 +138,11 @@ export default {
} }
}) })
}, },
getTeamList () {
this.$http.get(`heart/volunteerteam/getSysAllTeamListByName`).then(({ data: res }) => {
this.teamList = res.data
}).catch(() => {})
},
// //
getInfo: debounce( getInfo: debounce(
function () { function () {
@ -185,3 +207,33 @@ export default {
} }
} }
</script> </script>
<style lang="scss">
.mod-sys__user {
.dept-list {
.el-input__inner,
.el-input__suffix {
cursor: pointer;
}
}
.role-list {
.el-select {
width: 100%;
}
}
}
.roleSelect{
.el-scrollbar__wrap--hidden-default::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-thumb {
background-color: #a1a3a9;
border-radius: 3px;
}
::-webkit-scrollbar-track{
background:#f5f7fa;
}
::-webkit-scrollbar-corner{
background:#f5f7fa;
}
}
</style>

Loading…
Cancel
Save