commit
This commit is contained in:
@@ -4,15 +4,15 @@ const CLUB_MANAGER_TEMPLATE = {
|
|||||||
<el-table-column label="是否必填" prop="roleCode" width="130px">
|
<el-table-column label="是否必填" prop="roleCode" width="130px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="text-danger"
|
<span class="text-danger"
|
||||||
v-if="scope.row.roleCode.includes('CLUB_PRESIDENT')
|
v-if="scope.row.roleCode === 'CLUB_PRESIDENT'
|
||||||
|| scope.row.roleCode.includes('CLUB_SECRETARY')">必填</span>
|
|| scope.row.roleCode === 'CLUB_SECRETARY'">必填</span>
|
||||||
<span v-else>非必填</span>
|
<span v-else>非必填</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="职务" prop="roleCode">
|
<el-table-column label="职务" prop="roleCode">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-select @change="(val) => {roleCodeChange(val, scope.row, scope.$index)}"
|
<el-select @change="(val) => {roleCodeChange(val, scope.row, scope.$index)}"
|
||||||
placeholder="请选择职务" v-model="scope.row.roleCode" multiple>
|
placeholder="请选择职务" v-model="scope.row.roleCode">
|
||||||
<el-option v-for="item in roleList"
|
<el-option v-for="item in roleList"
|
||||||
:key="item.id" :label="item.name" :value="item.id"></el-option>
|
:key="item.id" :label="item.name" :value="item.id"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@@ -102,6 +102,7 @@ const CLUB_MANAGER_TEMPLATE = {
|
|||||||
roleCodeChange(val, row, index) {
|
roleCodeChange(val, row, index) {
|
||||||
const cloneData = clone(this.managePerson)
|
const cloneData = clone(this.managePerson)
|
||||||
cloneData.splice(index, 1)
|
cloneData.splice(index, 1)
|
||||||
|
debugger
|
||||||
const u = cloneData.find((o) => o.userId && o.userId === row.userId && o.roleCode === val)
|
const u = cloneData.find((o) => o.userId && o.userId === row.userId && o.roleCode === val)
|
||||||
if (u) {
|
if (u) {
|
||||||
this.$message.warning("理事机构不能重复")
|
this.$message.warning("理事机构不能重复")
|
||||||
|
|||||||
Reference in New Issue
Block a user