qinzhipeng_v 5 ani în urmă
părinte
comite
264da0138b

+ 3 - 2
src/views/projectManage/projectList/components/scheduleList.vue

@@ -30,6 +30,7 @@
       >
       >
         <template slot-scope="scope">
         <template slot-scope="scope">
           {{ getType(scope.row.type) }}
           {{ getType(scope.row.type) }}
+          <div :class="scope.row.isScheduleLocked === 0 ? 'el-icon-unlock' : 'el-icon-lock'" />
         </template>
         </template>
       </el-table-column>
       </el-table-column>
       <el-table-column
       <el-table-column
@@ -65,8 +66,8 @@
         show-overflow-tooltip
         show-overflow-tooltip
       >
       >
         <template slot-scope="scope">
         <template slot-scope="scope">
-          <el-button type="text" size="small" @click="editSchedule(scope.row)">编辑</el-button>
-          <el-button type="text" size="small" @click="deleteSchedule(scope.row)">删除</el-button>
+          <el-button v-if="scope.row.isScheduleLocked === 0" type="text" size="small" @click="editSchedule(scope.row)">编辑</el-button>
+          <el-button v-if="scope.row.isScheduleLocked === 0" type="text" size="small" @click="deleteSchedule(scope.row)">删除</el-button>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
 
 

+ 1 - 1
src/views/projectManage/requirement/components/taskList.vue

@@ -33,7 +33,7 @@
           <div class="expand"><i v-show="allChange" class="el-icon-minus" @click="expandAll(false)" /></div>
           <div class="expand"><i v-show="allChange" class="el-icon-minus" @click="expandAll(false)" /></div>
         </template>
         </template>
         <template slot-scope="props">
         <template slot-scope="props">
-          <schedule-list :id="props.row.id" :type-list="taskScheduleEvent" />
+          <schedule-list :id="props.row.id" :showunlock="'true'" :type-list="taskScheduleEvent" />
         </template>
         </template>
       </el-table-column>
       </el-table-column>
       <el-table-column label="优先级" prop="priority" width="90" sortable align="center">
       <el-table-column label="优先级" prop="priority" width="90" sortable align="center">