|
|
@@ -284,7 +284,8 @@ import {
|
|
|
receiveProjectRequest,
|
|
|
rejectProject,
|
|
|
storageGet,
|
|
|
- submitProjectRequest
|
|
|
+ submitProjectRequest,
|
|
|
+ deleteTask
|
|
|
} from '@/js/index'
|
|
|
|
|
|
export default {
|
|
|
@@ -763,13 +764,22 @@ export default {
|
|
|
this.$confirm('确认删除该任务?')
|
|
|
.then(_ => {
|
|
|
//done()
|
|
|
- notify('success', '删除成功')
|
|
|
+ //id->taskid
|
|
|
+ console.log(id)
|
|
|
+ console.log(this.projectId)
|
|
|
+ deleteTask(this.projectId,id,this.deleteTaskSuccess,this.deleteTaskFail)
|
|
|
})
|
|
|
.catch(_ => {
|
|
|
notify('error', '删除失败')
|
|
|
})
|
|
|
//this.task.splice(index, 1)
|
|
|
},
|
|
|
+ deleteTaskSuccess(res){
|
|
|
+ notify('success', '删除成功')
|
|
|
+ },
|
|
|
+ deleteTaskFail(error){
|
|
|
+ notify('error', '删除失败:'+error)
|
|
|
+ },
|
|
|
beforeApkUpload (file) {
|
|
|
const isAPK = file.type === 'application/vnd.android.package-archive'
|
|
|
const isDMG = file.type === 'application/octet-stream'
|