Selaa lähdekoodia

更新乐团主管

lex-xin 3 vuotta sitten
vanhempi
commit
984f79e919

+ 1 - 1
src/views/main/schedule-branch/index.vue

@@ -79,7 +79,7 @@
       :page-sizes="rules.page_size"
       @pagination="FetchList"
     />
-    <el-dialog :visible.sync="visible" title="创建任务" width="800px">
+    <el-dialog :visible.sync="visible" title="添加任务" width="800px">
       <create v-if="visible" @close="visible = false" @submited="FetchList" />
     </el-dialog>
     <el-dialog :visible.sync="editVisible" title="修改任务" width="800px">

+ 5 - 4
src/views/main/schedule-branch/modals/create.vue

@@ -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: ''})))
           }