UNPKG

ttk-app-core

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