1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d6067"],{7190:function(t,e,n){"use strict";n.r(e),n.d(e,"urlPrefix",(function(){return c})),n.d(e,"GetList",(function(){return r})),n.d(e,"AddObj",(function(){return o})),n.d(e,"UpdateObj",(function(){return a})),n.d(e,"DelObj",(function(){return i}));var d=n("5530"),u=(n("d81d"),n("e9f5"),n("ab43"),n("d3b7"),n("22ce")),c="/api/system/area/";function r(t){return void 0!==t.pcode&&null!==t.pcode&&0!==t.pcode.length||(t.level=1),Object(u["c"])({url:c,method:"get",params:Object(d["a"])(Object(d["a"])({},t),{},{limit:100})}).then((function(t){return t.data.data.map((function(t){t.hasChildren=0!==t.pcode_count})),t}))}function o(t){return Object(u["c"])({url:c,method:"post",data:t})}function a(t){return Object(u["c"])({url:c+t.id+"/",method:"put",data:t})}function i(t){return Object(u["c"])({url:c+t+"/",method:"delete",data:{id:t}})}}}]);
|