UNPKG

ttk-app-core

Version:
29 lines (24 loc) 1.3 kB
/** * webapi.js 封装app所需的所有web请求 * 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app */ import { fetch } from 'edf-utils' const mockData = fetch.mockData function initMockData() {} export default { assetDetailRpt: { date: (option) => fetch.post('/v1/gl/asset/getIncludeDate', option), init: (option) => fetch.post('/v1/gl/assetDetailRpt/init', option), findAssetList: (option) => fetch.post('/v1/gl/asset/findAssetList', option), //init: (option) => fetch.post('/v1/assetDetailRpt/init', { option }), query: (option) => fetch.post('/v1/gl/assetDetailRpt/query', option), export: (option) => fetch.formPost('/v1/gl/assetDetailRpt/export', option), print: (option) => fetch.printPost('/v1/gl/assetDetailRpt/print', option), updateWithDetail: (option) => fetch.post('/v1/edf/column/updateWithDetail', option), findByParam: (option) => fetch.post('/v1/edf/column/findByParam', option), batchUpdate: (option) => fetch.post('/v1/edf/columnDetail/save', option), //批量保存栏目明细 reInitByUser: (option) => fetch.post('/v1/edf/column/reInitByUser', option),//栏目重新初始化,恢复成预置数据 } }