任务管理取消
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
<section class="submit-bar">
|
||||
<button class="btn btn-disabled submit-button" :class="{'bgred' : btnred}" :disabled="disabled" @click="toSure('1')">重新生成</button>
|
||||
<button class="btn btn-disabled submit-button" :class="{'bgred' : btnred}" :disabled="disabled" @click="toSure('2')">强制完成</button>
|
||||
<button class="btn btn-disabled submit-button" :class="{'bgred' : btnred}" :disabled="disabled" @click="toSure('3')">取消</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
@@ -92,26 +93,25 @@ export default {
|
||||
let res = await taskOperation(this.pkId, type)
|
||||
if (res.code === '1') {
|
||||
this.toast('操作成功')
|
||||
this.disabled = false
|
||||
this.pkId = ''
|
||||
this.btnred = false
|
||||
this.dataList = []
|
||||
this.queryTask()
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
this.disabled = false
|
||||
}
|
||||
this.disabled = false
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
toSure (type) {
|
||||
if (this.pkId) {
|
||||
this.disabled = true
|
||||
this.taskOperation(type)
|
||||
} else {
|
||||
// this.toast('请选择')
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
this.taskOperation(type)
|
||||
},
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.task_uuid ? '' : e.task_uuid
|
||||
|
||||
Reference in New Issue
Block a user