https://github.com/axios/axios
内置ajax方法(axios)
Vue.prototype.$bsAjax = {
getBizList: getBizList,
getBizPage: getBizPage,
getBizDetail: getBizDetail,
getBizStatistics: getBizStatistics,
doBizEdit: doBizEdit,
doBizAdd: doBizAdd,
doBizBatSave: doBizBatSave,
getWsKey: getWsKey,
get: get,
patch: doPatch,
put: doPut,
delete: doDelete,
post: doPost,
getDim: getDim,
getBridge: getBridge,
getList: getList,
getPage: getPage,
getStatistics: getStatistics,
getDetail: getDetail,
doUpload: doUpload,
doDown: doDownBase64,
doAdd: doAdd,
doCopy: doCopy,
doExportBiz: doExportBiz,
doBatSave: doBatSave,
doMofify: doMofify,
doExport: doExport,
doEdit: doEdit,
doDelete: doDelete,
getExcelMapperOption: getMapperOption,
getExcelMapperUsed: getMapperUsed,
getAction: getAction,
getUserFunction: getUserFunction //功能权限
};
//#endregion
内置ajax方法(jquery)
//#region jquery 请求 仅用于同步方式
import {
$get,
$getHtml,
$post
} from "@/req-jquery";
Vue.prototype.$get = $get;
Vue.prototype.$post = $post;
Vue.prototype.$getHtml = $getHtml;
window.$reqJq = {
get: $get,
getHtml: $getHtml,
post: $post
};
//#endregion
文档更新时间: 2023-03-21 10:03 作者:admin