测试:前台任务添加

master
陈思豪 2024-08-23 10:04:52 +08:00
parent 6b0a3b9c0e
commit 868a7e1a8b
2 changed files with 8 additions and 18 deletions

View File

@ -9,7 +9,7 @@ export function selectTaskList(data){
})
}
//导出
//添加
export function addTask(data){
return request({
url: "/task/task/addTask",
@ -18,24 +18,13 @@ export function addTask(data){
})
}
//新增
export function insertAdd(data){
//修改
export function updateById(data){
return request({
url: "/source/source/insert",
method: "get",
url: "/task/task/updateById",
method: "POST",
data:data
})
}
//获取基本信息
export function getInfo(id){
return request({
url: "/source/source/id",
method: "get",
})
}

View File

@ -159,6 +159,7 @@
</el-form-item>
<el-table-column
label="任务权重级别"
width="180">
@ -197,7 +198,7 @@ import {selectSourceExport} from "@/api/etl/switch";
import {connectionTest} from "@/api/etl/switch";
import {insertAdd} from "@/api/etl/switch";
import {getInfo} from "@/api/etl/switch";
import { addTask, selectTaskList } from '@/api/task/task'
import { addTask, selectTaskList, updateById } from '@/api/task/task'
export default {
//import使"
@ -245,7 +246,7 @@ export default {
})
},
insertAdd(){
updateById(){
},