|
|
@ -8,11 +8,18 @@ import {
|
|
|
|
GET_PUBLIC_BOARD,
|
|
|
|
GET_PUBLIC_BOARD,
|
|
|
|
GET_CMM_CODE_LIST,
|
|
|
|
GET_CMM_CODE_LIST,
|
|
|
|
SAVE_PUBLIC_BOARD,
|
|
|
|
SAVE_PUBLIC_BOARD,
|
|
|
|
DELETE_PUBLIC_BOARD
|
|
|
|
DELETE_PUBLIC_BOARD,
|
|
|
|
|
|
|
|
GET_FILE_DOWNLOAD
|
|
|
|
} from 'commons/ApiUrl';
|
|
|
|
} from 'commons/ApiUrl';
|
|
|
|
import axios from 'utils/axios';
|
|
|
|
import axios from 'utils/axios';
|
|
|
|
|
|
|
|
|
|
|
|
class OpstBizService {
|
|
|
|
class OpstBizService {
|
|
|
|
|
|
|
|
// eslint-disable-next-line no-return-await
|
|
|
|
|
|
|
|
getComboCodeList = async (params) => await axios.get(GET_CMM_CODE_LIST, { params });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line no-return-await
|
|
|
|
|
|
|
|
fileDownload = async (id) => await axios.get(GET_FILE_DOWNLOAD + id);
|
|
|
|
|
|
|
|
|
|
|
|
setRowId = (params, idx) => {
|
|
|
|
setRowId = (params, idx) => {
|
|
|
|
if (params && params.page && params.size) return params.page * params.size + idx + 1;
|
|
|
|
if (params && params.page && params.size) return params.page * params.size + idx + 1;
|
|
|
|
return idx + 1;
|
|
|
|
return idx + 1;
|
|
|
@ -91,9 +98,6 @@ class OpstBizService {
|
|
|
|
return res;
|
|
|
|
return res;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line no-return-await
|
|
|
|
|
|
|
|
getComboCodeList = async (params) => await axios.get(GET_CMM_CODE_LIST, { params });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// getComboCodeList(params) {
|
|
|
|
// getComboCodeList(params) {
|
|
|
|
// return reqApi.get(CMM_CODE_LIST_URL, { params });
|
|
|
|
// return reqApi.get(CMM_CODE_LIST_URL, { params });
|
|
|
|
// .then(r => console.log(r))
|
|
|
|
// .then(r => console.log(r))
|
|
|
|