|
@@ -121,7 +121,7 @@
|
|
|
v-if="!form_query.needGrey || isScheduleLocked === 1"
|
|
|
class="titleStatus"
|
|
|
:class="isScheduleLocked === 1 ? 'el-icon-lock' : 'el-icon-unlock'"
|
|
|
- @click="unlockScheduleCheck"
|
|
|
+ @click="unlockScheduleCheck(isScheduleLocked)"
|
|
|
>
|
|
|
{{ isScheduleLocked === 1 ? '已锁定' : '未锁定' }}
|
|
|
</span>
|
|
@@ -518,9 +518,13 @@ export default {
|
|
|
this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
|
|
|
}
|
|
|
},
|
|
|
- async unlockScheduleCheck() {
|
|
|
- const res = await unlockScheduleCheck(this.requirementId)
|
|
|
- if (res.code === 200) {
|
|
|
+ async unlockScheduleCheck(index) {
|
|
|
+ if (index === 1) {
|
|
|
+ const res = await unlockScheduleCheck(this.requirementId)
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.scheduleVisble = true
|
|
|
+ }
|
|
|
+ } else {
|
|
|
this.scheduleVisble = true
|
|
|
}
|
|
|
},
|