1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5a554914"],{2443:function(t,e,n){"use strict";n("928f")},2638:function(t,e,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)}var i=["attrs","props","domProps"],a=["class","style","directives"],o=["on","nativeOn"],s=function(t){return t.reduce((function(t,e){for(var n in e)if(t[n])if(-1!==i.indexOf(n))t[n]=r({},t[n],e[n]);else if(-1!==a.indexOf(n)){var s=t[n]instanceof Array?t[n]:[t[n]],c=e[n]instanceof Array?e[n]:[e[n]];t[n]=[].concat(s,c)}else if(-1!==o.indexOf(n))for(var d in e[n])if(t[n][d]){var f=t[n][d]instanceof Array?t[n][d]:[t[n][d]],l=e[n][d]instanceof Array?e[n][d]:[e[n][d]];t[n][d]=[].concat(f,l)}else t[n][d]=e[n][d];else if("hook"===n)for(var m in e[n])t[n][m]=t[n][m]?u(t[n][m],e[n][m]):e[n][m];else t[n]=e[n];else t[n]=e[n];return t}),{})},u=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=s},"2f2c":function(t,e,n){"use strict";n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return f})),n.d(e,"p",(function(){return l})),n.d(e,"d",(function(){return m})),n.d(e,"a",(function(){return p})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return b})),n.d(e,"j",(function(){return y})),n.d(e,"i",(function(){return v})),n.d(e,"e",(function(){return g})),n.d(e,"m",(function(){return O})),n.d(e,"o",(function(){return j})),n.d(e,"l",(function(){return w})),n.d(e,"n",(function(){return x})),n.d(e,"k",(function(){return C})),n.d(e,"f",(function(){return I}));var r=n("b775");function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e=u(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=c(t,"string");return"symbol"==i(e)?e:String(e)}function c(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function d(t){return Object(r["a"])({url:"/admin/system/city/list",method:"get",params:o({},t)})}function f(){return Object(r["a"])({url:"/admin/system/city/list/tree",method:"get"})}function l(t){return Object(r["a"])({url:"/admin/system/city/update/status",method:"post",params:o({},t)})}function m(t){return Object(r["a"])({url:"/admin/system/city/update",method:"post",params:o({},t)})}function p(t){return Object(r["a"])({url:"/admin/system/city/info",method:"get",params:o({},t)})}function h(t){return Object(r["a"])({url:"/admin/express/list",method:"get",params:o({},t)})}function b(){return Object(r["a"])({url:"/admin/express/sync/express",method:"post"})}function y(t){return Object(r["a"])({url:"/admin/express/update/show",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/admin/express/update",method:"post",data:t})}function g(t){return Object(r["a"])({url:"/admin/express/delete",method:"GET",params:o({},t)})}function O(t){return Object(r["a"])({url:"/admin/express/shipping/templates/list",method:"get",params:o({},t)})}function j(t){return Object(r["a"])({url:"/admin/express/shipping/templates/info",method:"get",params:o({},t)})}function w(t){return Object(r["a"])({url:"admin/express/shipping/templates/save",method:"post",data:t})}function x(t,e){return Object(r["a"])({url:"admin/express/shipping/templates/update",method:"post",data:t,params:o({},e)})}function C(t){return Object(r["a"])({url:"admin/express/shipping/templates/delete",method:"get",params:t})}function I(t){return Object(r["a"])({url:"admin/express/info",method:"get",params:o({},t)})}},"6ae4":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:t.tableData,size:"mini","row-key":"cityId","highlight-current-row":"",border:"",lazy:"",load:t.load,"header-cell-style":{fontWeight:"bold"},"tree-props":{children:"child",hasChildren:"hasChildren"}}},[n("el-table-column",{attrs:{prop:"cityId",label:"编号","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"parentName",label:"上级名称","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name","min-width":"250",label:"地区名称"}}),t._v(" "),n("el-table-column",{attrs:{fixed:"right","min-width":"80",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:system:city:update"],expression:"['admin:system:city:update']"}],attrs:{type:"text",size:"small"},on:{click:function(n){return t.editCity(e.row)}}},[t._v("编辑")])]}}])})],1)],1),t._v(" "),n("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[t.formShow?n("parser",{attrs:{"form-conf":t.formConf,"form-edit-data":t.formData,"is-edit":1===t.isCreate},on:{submit:t.submit}}):t._e()],1)],1)},i=[],a=n("3fbe"),o=n("92c6"),s=n("2f2c"),u=n("61f7"),c={name:"CityList",components:{parser:a["a"]},data:function(){return{formConf:{fields:[]},formId:70,tableData:[],parentName:"中国",parentId:0,loading:!1,listLoading:!0,dialogVisible:!1,editId:0,formShow:!1,formData:{},isCreate:0}},created:function(){this.getCityList()},methods:{getCityList:function(){var t=this;this.listLoading=!0,s["b"]({parentId:this.parentId}).then((function(e){t.listLoading=!1;var n=[];e.forEach((function(t){var e={};e=t,e.hasChildren=!0,e.parentName="中国",n.push(e)})),t.tableData=n}))},cityStatus:function(t){var e=this;s["p"]({id:t.id,cityId:t.cityId,status:t.isShow}).then((function(t){e.$message.success("操作成功")})).catch((function(){t.isShow=!t.isShow}))},editCity:function(t){var e=this;this.$confirm("请勿频繁修改此配置项","提示",{confirmButtonText:"确定修改",cancelButtonText:"取消",type:"warning"}).then((function(){e.editId=t.id,e.parentId=t.parentId;var n={id:e.formId};o["b"](n).then((function(t){e.formShow=!1,e.isCreate=0,e.getCityInfo(),e.dialogVisible=!0,e.formConf=JSON.parse(t.content)}))})).catch((function(){e.$message({type:"info",message:"已取消"})}))},getCityInfo:function(){var t=this;s["a"]({id:this.editId}).then((function(e){t.isCreate=1,t.formData=e,t.formData.parentName=t.parentName,setTimeout((function(){t.formShow=!0}),80)}))},submit:Object(u["a"])((function(t){var e=this,n={id:this.editId,parentId:this.parentId,name:t.name};s["d"](n).then((function(t){e.$message.success("修改成功"),e.dialogVisible=!1}))})),handleClose:function(t){this.formConf.fields=[],this.dialogVisible=!1},load:function(t,e,n){var r=this;s["b"]({parentId:t.cityId}).then((function(e){var i=[];e.forEach((function(e){var n={};n=e,n.hasChildren=!0,n.parentName=t.name,r.parentName=t.name,2==e.level&&(n.hasChildren=!1),i.push(n)})),n(i)}))}}},d=c,f=(n("2443"),n("2877")),l=Object(f["a"])(d,r,i,!1,null,"a0e6c946",null);e["default"]=l.exports},"928f":function(t,e,n){},"92c6":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"j",(function(){return d})),n.d(e,"h",(function(){return f})),n.d(e,"e",(function(){return l})),n.d(e,"i",(function(){return m}));var r=n("b775");function i(t){var e={id:t.id};return Object(r["a"])({url:"/admin/system/form/temp/info",method:"GET",params:e})}function a(t){var e={keywords:t.keywords,page:t.page,limit:t.limit};return Object(r["a"])({url:"/admin/system/form/temp/list",method:"GET",params:e})}function o(t){var e={content:t.content,info:t.info,name:t.name};return Object(r["a"])({url:"/admin/system/form/temp/save",method:"POST",data:e})}function s(t){var e={id:t.id},n={content:t.content,info:t.info,name:t.name};return Object(r["a"])({url:"/admin/system/form/temp/update",method:"POST",params:e,data:n})}function u(t){var e={sendType:t.sendType};return Object(r["a"])({url:"/admin/system/notification/list",method:"GET",params:e})}function c(t){return Object(r["a"])({url:"/admin/system/notification/routine/switch/".concat(t),method:"post"})}function d(t){return Object(r["a"])({url:"/admin/system/notification/wechat/switch/".concat(t),method:"post"})}function f(t){return Object(r["a"])({url:"/admin/system/notification/sms/switch/".concat(t),method:"post"})}function l(t){var e={detailType:t.type,id:t.id};return Object(r["a"])({url:"/admin/system/notification/detail",method:"get",params:e})}function m(t){var e={detailType:t.type,id:t.id,status:t.status,tempId:t.tempId};return Object(r["a"])({url:"/admin/system/notification/update",method:"post",data:e})}},fb9d:function(t,e,n){var r={"./el-button.js":"64b1","./el-checkbox-group.js":"cc1a","./el-input.js":"373c","./el-radio-group.js":"afca","./el-select.js":"a938","./el-upload.js":"73ee"};function i(t){var e=a(t);return n(e)}function a(t){var e=r[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}i.keys=function(){return Object.keys(r)},i.resolve=a,t.exports=i,i.id="fb9d"}}]); |