opt:1.完善ACS任务、指令模块
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
"@riophae/vue-treeselect": "0.4.0",
|
||||
"af-table-column": "^1.0.3",
|
||||
"ansi_up": "^5.1.0",
|
||||
"axios": "^1.5.0",
|
||||
"axios": "0.18.1",
|
||||
"clipboard": "^2.0.4",
|
||||
"codemirror": "^5.49.2",
|
||||
"connect": "3.6.6",
|
||||
|
||||
@@ -26,7 +26,7 @@ export function edit(data) {
|
||||
|
||||
export function finish(data) {
|
||||
return request({
|
||||
url: 'api/task/finish',
|
||||
url: 'api/task/finish/' + data,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
|
||||
@@ -22,7 +22,7 @@ service.interceptors.request.use(
|
||||
if (getToken()) {
|
||||
config.headers['Authorization'] = getToken() ? 'Bearer ' + getToken() : undefined // 让每个请求携带自定义token 请根据实际情况自行修改
|
||||
}
|
||||
// config.headers['Content-Type'] = 'application/json'
|
||||
config.headers['Content-Type'] = 'application/json'
|
||||
config.headers['Accept-Language'] = lang
|
||||
return config
|
||||
},
|
||||
|
||||
@@ -382,6 +382,8 @@ export default {
|
||||
this.finish(index, row)
|
||||
break
|
||||
case 'b':// 取消
|
||||
console.log('取消')
|
||||
console.log(row.instruction_id)
|
||||
this.cancel(index, row)
|
||||
break
|
||||
case 'c':// 强制取消
|
||||
|
||||
Reference in New Issue
Block a user