Commit fc580b7d authored by zhang's avatar zhang

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

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