|
@@ -8,13 +8,13 @@ import { stringify } from 'qs'
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
export function getSbStopLogPage (parameter) {
|
|
|
- return axios({
|
|
|
- url: '/sb/stop-logs/page?' + stringify(parameter),
|
|
|
- method: 'get',
|
|
|
- headers: {
|
|
|
- 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
- }
|
|
|
- })
|
|
|
+ return axios({
|
|
|
+ url: '/sb/stop-logs/page?' + stringify(parameter),
|
|
|
+ method: 'get',
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -24,15 +24,15 @@ export function getSbStopLogPage (parameter) {
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
export function addSbStopLog (parameter) {
|
|
|
- return axios({
|
|
|
- url: '/sb/stop-logs',
|
|
|
- method: 'POST',
|
|
|
- headers: {
|
|
|
- 'Accept': 'application/json',
|
|
|
- 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
- },
|
|
|
- data: parameter
|
|
|
- })
|
|
|
+ return axios({
|
|
|
+ url: '/sb/stop-logs',
|
|
|
+ method: 'POST',
|
|
|
+ headers: {
|
|
|
+ 'Accept': 'application/json',
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ },
|
|
|
+ data: parameter
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -42,11 +42,11 @@ export function addSbStopLog (parameter) {
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
export function updateSbStopLog (parameter) {
|
|
|
- return axios({
|
|
|
- url: '/sb/stop-logs/' + parameter.id,
|
|
|
- method: 'PUT',
|
|
|
- data: parameter
|
|
|
- })
|
|
|
+ return axios({
|
|
|
+ url: '/sb/stop-logs/' + parameter.id,
|
|
|
+ method: 'PUT',
|
|
|
+ data: parameter
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -56,13 +56,13 @@ export function updateSbStopLog (parameter) {
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
export function fetchSbStopLog (parameter) {
|
|
|
- return axios({
|
|
|
- url: '/sb/stop-logs/' + parameter.id,
|
|
|
- method: 'get',
|
|
|
- headers: {
|
|
|
- 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
- }
|
|
|
- })
|
|
|
+ return axios({
|
|
|
+ url: '/sb/stop-logs/' + parameter.id,
|
|
|
+ method: 'get',
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -72,13 +72,13 @@ export function fetchSbStopLog (parameter) {
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
export function querySbStopLog (parameter) {
|
|
|
- return axios({
|
|
|
- url: '/sb/stop-logs?' + stringify(parameter),
|
|
|
- method: 'get',
|
|
|
- headers: {
|
|
|
- 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
- }
|
|
|
- })
|
|
|
+ return axios({
|
|
|
+ url: '/sb/stop-logs?' + stringify(parameter),
|
|
|
+ method: 'get',
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -88,11 +88,11 @@ export function querySbStopLog (parameter) {
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
export function deleteSbStopLogs (parameter) {
|
|
|
- return axios({
|
|
|
- url: '/sb/stop-logs',
|
|
|
- method: 'DELETE',
|
|
|
- data: parameter
|
|
|
- })
|
|
|
+ return axios({
|
|
|
+ url: '/sb/stop-logs',
|
|
|
+ method: 'DELETE',
|
|
|
+ data: parameter
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -102,14 +102,13 @@ export function deleteSbStopLogs (parameter) {
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
export function deleteSbStopLog (parameter) {
|
|
|
- return axios({
|
|
|
- url: '/sb/stop-logs/' + parameter.id,
|
|
|
- method: 'DELETE',
|
|
|
- data: parameter
|
|
|
- })
|
|
|
+ return axios({
|
|
|
+ url: '/sb/stop-logs/' + parameter.id,
|
|
|
+ method: 'DELETE',
|
|
|
+ data: parameter
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* export file
|
|
|
* parameter: { }
|
|
@@ -117,12 +116,28 @@ export function deleteSbStopLog (parameter) {
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
export function exportSbStopLog (parameter) {
|
|
|
- return axios({
|
|
|
- url: '/sb/stop-logs/export?' + stringify(parameter),
|
|
|
- method: 'get',
|
|
|
- headers: {
|
|
|
- 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
- },
|
|
|
- responseType: 'blob'
|
|
|
- })
|
|
|
+ return axios({
|
|
|
+ url: '/sb/stop-logs/export?' + stringify(parameter),
|
|
|
+ method: 'get',
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ },
|
|
|
+ responseType: 'blob'
|
|
|
+ })
|
|
|
+}
|
|
|
+/**
|
|
|
+ * export file
|
|
|
+ * parameter: { }
|
|
|
+ * @param parameter :
|
|
|
+ * @returns {*}
|
|
|
+ */
|
|
|
+export function exportSbStopLog2 (parameter) {
|
|
|
+ return axios({
|
|
|
+ url: '/sb/stop-logs/export2?' + stringify(parameter),
|
|
|
+ method: 'get',
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ },
|
|
|
+ responseType: 'blob'
|
|
|
+ })
|
|
|
}
|