|
@@ -8,13 +8,13 @@ import { stringify } from 'qs'
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
export function getToolLogPage (parameter) {
|
|
export function getToolLogPage (parameter) {
|
|
- return axios({
|
|
|
|
- url: '/tool/tool-logs/page?' + stringify(parameter),
|
|
|
|
- method: 'get',
|
|
|
|
- headers: {
|
|
|
|
- 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ return axios({
|
|
|
|
+ url: '/tool/tool-logs/page?' + stringify(parameter),
|
|
|
|
+ method: 'get',
|
|
|
|
+ headers: {
|
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -24,15 +24,15 @@ export function getToolLogPage (parameter) {
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
export function addToolLog (parameter) {
|
|
export function addToolLog (parameter) {
|
|
- return axios({
|
|
|
|
- url: '/tool/tool-logs',
|
|
|
|
- method: 'POST',
|
|
|
|
- headers: {
|
|
|
|
- 'Accept': 'application/json',
|
|
|
|
- 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
- },
|
|
|
|
- data: parameter
|
|
|
|
- })
|
|
|
|
|
|
+ return axios({
|
|
|
|
+ url: '/tool/tool-logs',
|
|
|
|
+ method: 'POST',
|
|
|
|
+ headers: {
|
|
|
|
+ 'Accept': 'application/json',
|
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
+ },
|
|
|
|
+ data: parameter
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -42,14 +42,13 @@ export function addToolLog (parameter) {
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
export function updateToolLog (parameter) {
|
|
export function updateToolLog (parameter) {
|
|
- return axios({
|
|
|
|
- url: '/tool/tool-logs/' + parameter.id,
|
|
|
|
- method: 'PUT',
|
|
|
|
- data: parameter
|
|
|
|
- })
|
|
|
|
|
|
+ return axios({
|
|
|
|
+ url: '/tool/tool-logs/' + parameter.id,
|
|
|
|
+ method: 'PUT',
|
|
|
|
+ data: parameter
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* fetch single func
|
|
* fetch single func
|
|
* parameter: { }
|
|
* parameter: { }
|
|
@@ -57,13 +56,13 @@ export function updateToolLog (parameter) {
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
export function fetchToolLog (parameter) {
|
|
export function fetchToolLog (parameter) {
|
|
- return axios({
|
|
|
|
- url: '/tool/tool-logs/' + parameter.id,
|
|
|
|
- method: 'get',
|
|
|
|
- headers: {
|
|
|
|
- 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ return axios({
|
|
|
|
+ url: '/tool/tool-logs/' + parameter.id,
|
|
|
|
+ method: 'get',
|
|
|
|
+ headers: {
|
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -73,13 +72,13 @@ export function fetchToolLog (parameter) {
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
export function queryToolLog (parameter) {
|
|
export function queryToolLog (parameter) {
|
|
- return axios({
|
|
|
|
- url: '/tool/tool-logs?' + stringify(parameter),
|
|
|
|
- method: 'get',
|
|
|
|
- headers: {
|
|
|
|
- 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ return axios({
|
|
|
|
+ url: '/tool/tool-logs?' + stringify(parameter),
|
|
|
|
+ method: 'get',
|
|
|
|
+ headers: {
|
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -89,11 +88,11 @@ export function queryToolLog (parameter) {
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
export function deleteToolLogs (parameter) {
|
|
export function deleteToolLogs (parameter) {
|
|
- return axios({
|
|
|
|
- url: '/tool/tool-logs',
|
|
|
|
- method: 'DELETE',
|
|
|
|
- data: parameter
|
|
|
|
- })
|
|
|
|
|
|
+ return axios({
|
|
|
|
+ url: '/tool/tool-logs',
|
|
|
|
+ method: 'DELETE',
|
|
|
|
+ data: parameter
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -103,14 +102,13 @@ export function deleteToolLogs (parameter) {
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
export function deleteToolLog (parameter) {
|
|
export function deleteToolLog (parameter) {
|
|
- return axios({
|
|
|
|
- url: '/tool/tool-logs/' + parameter.id,
|
|
|
|
- method: 'DELETE',
|
|
|
|
- data: parameter
|
|
|
|
- })
|
|
|
|
|
|
+ return axios({
|
|
|
|
+ url: '/tool/tool-logs/' + parameter.id,
|
|
|
|
+ method: 'DELETE',
|
|
|
|
+ data: parameter
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* export file
|
|
* export file
|
|
* parameter: { }
|
|
* parameter: { }
|
|
@@ -118,12 +116,30 @@ export function deleteToolLog (parameter) {
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
export function exportToolLog (parameter) {
|
|
export function exportToolLog (parameter) {
|
|
- return axios({
|
|
|
|
- url: '/tool/tool-logs/export?' + stringify(parameter),
|
|
|
|
- method: 'get',
|
|
|
|
- headers: {
|
|
|
|
- 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
- },
|
|
|
|
- responseType: 'blob'
|
|
|
|
- })
|
|
|
|
|
|
+ return axios({
|
|
|
|
+ url: '/tool/tool-logs/export?' + stringify(parameter),
|
|
|
|
+ method: 'get',
|
|
|
|
+ headers: {
|
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
+ },
|
|
|
|
+ responseType: 'blob'
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * add func
|
|
|
|
+ * parameter: { }
|
|
|
|
+ * @param parameter
|
|
|
|
+ * @returns {*}
|
|
|
|
+ */
|
|
|
|
+export function addToolLogBatch (parameter) {
|
|
|
|
+ return axios({
|
|
|
|
+ url: '/tool/tool-logs/batch ',
|
|
|
|
+ method: 'POST',
|
|
|
|
+ headers: {
|
|
|
|
+ 'Accept': 'application/json',
|
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
+ },
|
|
|
|
+ data: parameter
|
|
|
|
+ })
|
|
}
|
|
}
|