|
@@ -54,8 +54,8 @@
|
|
|
<el-option v-for="(item,index) in technicians"
|
|
|
:key="index"
|
|
|
:label="item.realName"
|
|
|
- :disabled="form.group.map(m => m.userId).includes(item.id)"
|
|
|
- :value="item.id"></el-option>
|
|
|
+ :disabled="form.group.map(m => m.userId).includes(item.userId)"
|
|
|
+ :value="item.userId"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -137,6 +137,7 @@ import { matterTypes } from '@/views/main/constant'
|
|
|
import { objectToOptions } from '@/utils'
|
|
|
import { createRandom } from '@/helpers/uuidv4'
|
|
|
import { inspectionAdd, inspectionGetInfo, inspectionUpdate, getMusicGroupEduTeacher } from '@/views/main/api'
|
|
|
+import { getOrganRole } from '@/api/buildTeam'
|
|
|
const emptyMatter = {
|
|
|
item: '',
|
|
|
times: ''
|
|
@@ -168,11 +169,11 @@ export default {
|
|
|
async 'form.organId'() {
|
|
|
if (this.form.organId) {
|
|
|
try {
|
|
|
- const res = await getMusicGroupEduTeacher({
|
|
|
+ const res = await getOrganRole({
|
|
|
organId: this.form.organId,
|
|
|
rows: 999
|
|
|
})
|
|
|
- this.technicians = res.data
|
|
|
+ this.technicians = res.data?.EDUCATION || []
|
|
|
if (this.isCreate) {
|
|
|
this.$set(this.form, 'group', this.form.group.map(item => ({...item, userId: ''})))
|
|
|
}
|