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