Commit fc580b7d authored by zhang's avatar zhang

feat: (周期性检测平台/任务处理/待办任务)调用开始任务相关接口

parent da89a871
......@@ -89,7 +89,7 @@ export default {
watch: {
'dialogManger.dialogVisible'(newValue) {
if (newValue) {
this.getScenario()
//this.getScenario()
this.model = {
searchFields: {
scenario: []
......@@ -109,7 +109,8 @@ export default {
handleClose() {
this.$emit('close', '123')
},
uploadSucess(response,file,fileList){ // 当表中没有用例编号一列时清除所有文件,提示错误
uploadSucess(response,file,fileList){
console.log(this.dialogManger) // 当表中没有用例编号一列时清除所有文件,提示错误
if(response.code === 200){
this.testCaseObj = response.data
this.fileName = file.name
......@@ -127,7 +128,6 @@ export default {
/**
* 文件大小限制
*/
console.log(file)
let imgSize = Number(file.size / 1024 / 1024);
if (imgSize > 20) {
......@@ -138,7 +138,6 @@ export default {
});
return;
}
this.fileList = this.$refs.upload.uploadFiles
},
removeAll(){
......@@ -160,11 +159,7 @@ export default {
}else{
this.loading = true
if(this.testCaseObj && this.testCaseList!=''){
console.log(this.testCaseObuseCaseListj)
const resp = await this.newFileTest({
name: this.dialogManger.item.taskName,
caseIdList: this.testCaseObj.useCaseList
})
const resp = await this.newFileTest(this.testCaseObj)
const params = {
id: this.dialogManger.item.id
}
......@@ -197,10 +192,9 @@ export default {
* 对接车联网新建测试项目
*/
async newFileTest(task) {
const res = await createProject({
name: task.name,
useCaseList: task.caseIdList
})
task.name = this.dialogManger.item.taskName
console.log(task)
const res = await createProject(task)
return res
},
getScenario() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment