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