瀏覽代碼

修复问题

wolyshaw 4 年之前
父節點
當前提交
1354b5cfcd
共有 2 個文件被更改,包括 8 次插入4 次删除
  1. 1 1
      src/views/main/index.vue
  2. 7 3
      src/views/main/schedule-branch/modals/create.vue

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

@@ -1,6 +1,6 @@
 <template>
   <div class="m-container">
-    <h2 v-permission="'/main/main/allData/826'">
+    <h2>
       <div class="squrt"></div>控制台 <filter-search v-if="$route.query.tabrouter === 'teamSchedule'" searchKey="ids" @reload="getList"/>
     </h2>
     <div class="m-core">

+ 7 - 3
src/views/main/schedule-branch/modals/create.vue

@@ -12,6 +12,7 @@
               clearable
               filterable
               v-model="form.organId"
+              :disabled="!isCreate"
               placeholder="请选择分部"
             >
               <el-option v-for="(item,index) in selects.branchs"
@@ -29,6 +30,7 @@
           >
             <el-date-picker
               v-model="form.month"
+              :disabled="!isCreate"
               type="month"
               placeholder="请选择工作周期">
             </el-date-picker>
@@ -46,6 +48,7 @@
               clearable
               filterable
               v-model="groupItem.userId"
+              :disabled="!isCreate"
               placeholder="请选择乐团主管"
             >
               <el-option v-for="(item,index) in technicians"
@@ -129,7 +132,7 @@
   </div>
 </template>
 <script>
-import { findTechnician } from '@/api/repairManager'
+import { queryEmployByOrganId } from '@/api/systemManage'
 import { matterTypes } from '@/views/main/constant'
 import { objectToOptions } from '@/utils'
 import { createRandom } from '@/helpers/uuidv4'
@@ -165,8 +168,9 @@ export default {
     async 'form.organId'() {
       if (this.form.organId) {
         try {
-          const res = await findTechnician({
-            organId: this.form.organId
+          const res = await queryEmployByOrganId({
+            organId: this.form.organId,
+            rows: 999
           })
           this.technicians = res.data
           this.$set(this.form, 'group', group.map(item => ({...item, userId: ''})))