acs地址
This commit is contained in:
@@ -128,6 +128,7 @@ export const rgfjskTask = (code) => request({
|
||||
// 1.1 1.1 查询无指令的任务(任务号为-开头)
|
||||
export const handTasks = (key, scode, ncode) => request({
|
||||
url:'api/hand/tasks',
|
||||
acsurl: true,
|
||||
data: {
|
||||
keyword: key,
|
||||
start_devicecode: scode,
|
||||
@@ -137,6 +138,7 @@ export const handTasks = (key, scode, ncode) => request({
|
||||
// 1.2 任务操作
|
||||
export const handTaskoperation = (type, id) => request({
|
||||
url:'api/hand/taskoperation',
|
||||
acsurl: true,
|
||||
data: {
|
||||
type: type,
|
||||
task_uuid: id
|
||||
@@ -149,6 +151,7 @@ export const handTaskoperation = (type, id) => request({
|
||||
// 1.1 查询未完成指令(生成任务号为-开头)
|
||||
export const handInsts = (key, scode, ncode) => request({
|
||||
url:'api/hand/insts',
|
||||
acsurl: true,
|
||||
data: {
|
||||
keyword: key,
|
||||
start_devicecode: scode,
|
||||
@@ -158,6 +161,7 @@ export const handInsts = (key, scode, ncode) => request({
|
||||
// 1.2 指令操作
|
||||
export const handInst = (type, id) => request({
|
||||
url:'api/hand/inst',
|
||||
acsurl: true,
|
||||
data: {
|
||||
type: type,
|
||||
inst_uuid: id
|
||||
|
||||
@@ -5,6 +5,7 @@ const request = (params) => {
|
||||
let url = params.url;
|
||||
let method = params.method || 'POST';
|
||||
let data = params.data || {};
|
||||
let acsurl = params.acsurl
|
||||
// data.token = "default-access_token"
|
||||
// if (!params.token) {
|
||||
// let token = uni.getStorageSync('token');
|
||||
@@ -34,7 +35,10 @@ const request = (params) => {
|
||||
}
|
||||
// data = qs.stringify(data)
|
||||
}
|
||||
const requestUrl = `${store.getters.baseUrl}/` + url;
|
||||
let requestUrl = `${store.getters.baseUrl}/` + url;
|
||||
if (acsurl) {
|
||||
requestUrl = `${store.getters.acsUrl}/` + url;
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user