提交 a387b385 编写于 作者: tony001's avatar tony001

zpc --- 修复批添加

上级 14c3b206
...@@ -587,12 +587,12 @@ export default class EntityService { ...@@ -587,12 +587,12 @@ export default class EntityService {
* createBatch接口方法 * createBatch接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data]
* @param {boolean} [isloading] * @param {boolean} [isloading]
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof EntityService * @memberof EntityService
*/ */
public async createBatch(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async createBatch(context: any = {},data: any, isloading?: boolean): Promise<any> {
return Http.getInstance().post(`/${this.APPDENAME}/batch`,data,isloading); return Http.getInstance().post(`/${this.APPDENAME}/batch`,data,isloading);
} }
...@@ -600,12 +600,12 @@ export default class EntityService { ...@@ -600,12 +600,12 @@ export default class EntityService {
* updateBatch接口方法 * updateBatch接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data]
* @param {boolean} [isloading] * @param {boolean} [isloading]
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof EntityService * @memberof EntityService
*/ */
public async updateBatch(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async updateBatch(context: any = {},data: any, isloading?: boolean): Promise<any> {
return Http.getInstance().put(`/${this.APPDENAME}/batch`,data,isloading); return Http.getInstance().put(`/${this.APPDENAME}/batch`,data,isloading);
} }
...@@ -613,12 +613,12 @@ export default class EntityService { ...@@ -613,12 +613,12 @@ export default class EntityService {
* removeBatch接口方法 * removeBatch接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data]
* @param {boolean} [isloading] * @param {boolean} [isloading]
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof EntityService * @memberof EntityService
*/ */
public async removeBatch(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async removeBatch(context: any = {},data: any, isloading?: boolean): Promise<any> {
return Http.getInstance().delete(`/${this.APPDENAME}/batch`,isloading,data); return Http.getInstance().delete(`/${this.APPDENAME}/batch`,isloading,data);
} }
......
...@@ -78,7 +78,7 @@ export class Http { ...@@ -78,7 +78,7 @@ export class Http {
axios({ axios({
method: 'post', method: 'post',
url: url, url: url,
data: { ...params }, data: params,
headers: { 'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json' }, headers: { 'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json' },
// transformResponse: [(data: any) => { // transformResponse: [(data: any) => {
// let _data: any = null; // let _data: any = null;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册