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