1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-de6454b2"],{"4e82":function(e,t,r){"use strict";var n=r("23e7"),i=r("e330"),a=r("59ed"),s=r("7b0b"),o=r("07fa"),l=r("083a"),c=r("577e"),u=r("d039"),d=r("addb"),f=r("a640"),m=r("04d1"),h=r("d998"),v=r("2d00"),b=r("512ce"),p=[],w=i(p.sort),g=i(p.push),k=(r=u((function(){p.sort(void 0)})),i=u((function(){p.sort(null)})),f=f("sort"),!u((function(){if(v)return v<70;if(!(m&&3<m)){if(h)return!0;if(b)return b<603;for(var e,t,r,n="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(r=0;r<47;r++)p.push({k:e+r,v:t})}for(p.sort((function(e,t){return t.v-e.v})),r=0;r<p.length;r++)e=p[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}})));n({target:"Array",proto:!0,forced:r||!i||!f||!k},{sort:function(e){void 0!==e&&a(e);var t=s(this);if(k)return void 0===e?w(t):w(t,e);for(var r,n,i=[],u=o(t),f=0;f<u;f++)f in t&&g(i,t[f]);for(d(i,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:c(e)>c(t)?1:-1})),r=o(i),f=0;f<r;)t[f]=i[f++];for(;f<u;)l(t,f++);return t}})},8153:function(e,t,r){"use strict";r("fff7")},"9a71":function(e,t,r){"use strict";r.r(t),r("b0c0"),r("4e82");var n=r("c7eb"),i=r("1da1"),a=r("5530"),s=(r("a434"),r("2f62")),o=r("90e7");a={name:"user_level",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,columns1:[{title:"ID",key:"id",width:80},{title:"物流公司名称",key:"name",minWidth:100},{title:"编码",key:"code",minWidth:120},{title:"排序",key:"sort",sortable:!0,minWidth:100},{title:"是否显示",slot:"is_shows",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:120}],levelFrom:{keyword:"",is_show:"",page:1,limit:20},levelLists:[],total:0,FromData:null}},created:function(){this.getList()},computed:Object(a.a)(Object(a.a)({},Object(s.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{del:function(e,t,r){var n=this;t={title:t,num:r,url:"freight/express/".concat(e.id),method:"DELETE",ids:""};this.$modalSure(t).then((function(e){n.$message.success(e.msg),n.levelLists.splice(r,1)})).catch((function(e){n.$message.error(e.msg)}))},onchangeIsShow:function(e){var t=this;e={id:e.id,status:e.is_show};Object(o.s)(e).then(function(){var e=Object(i.a)(Object(n.a)().mark((function e(r){return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$message.success(r.msg);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))},getList:function(){var e=this;this.loading=!0,Object(o.r)(this.levelFrom).then(function(){var t=Object(i.a)(Object(n.a)().mark((function t(r){var i;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=r.data,e.levelLists=i.list,e.total=i.count,e.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.msg)}))},add:function(){var e=this;this.$modalForm(Object(o.p)()).then((function(){return e.getList()}))},edit:function(e){var t=this;this.$modalForm(Object(o.q)(e.id)).then((function(){return t.getList()}))},userSearchs:function(){this.levelFrom.page=1,this.getList()},syncExpress:function(){var e=this;Object(o.t)().then(function(){var t=Object(i.a)(Object(n.a)().mark((function t(r){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success(r.msg),e.getList();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))}}},r("8153"),s=r("2877"),r=Object(s.a)(a,(function(){var e=this,t=e._self._c;return t("div",[t("el-card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[t("div",{staticClass:"padding-add"},[t("el-form",{ref:"levelFrom",attrs:{model:e.levelFrom,"label-width":e.labelWidth,"label-position":"right",inline:""},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{label:"是否显示:"}},[t("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择",clearable:""},on:{change:e.userSearchs},model:{value:e.levelFrom.is_show,callback:function(t){e.$set(e.levelFrom,"is_show",t)},expression:"levelFrom.is_show"}},[t("el-option",{attrs:{value:"",label:"全部"}}),t("el-option",{attrs:{value:"1",label:"显示"}}),t("el-option",{attrs:{value:"0",label:"不显示"}})],1)],1),t("el-form-item",{attrs:{label:"搜索:","label-for":"keyword"}},[t("el-input",{attrs:{placeholder:"请输入物流公司名称或者编码"},model:{value:e.levelFrom.keyword,callback:function(t){e.$set(e.levelFrom,"keyword",t)},expression:"levelFrom.keyword"}})],1),t("el-form-item",[t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:e.userSearchs}},[e._v("查询")])],1)],1)],1)]),t("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:e.syncExpress}},[e._v("同步物流公司")]),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:e.levelLists,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[t("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.id))])]}}])}),t("el-table-column",{attrs:{label:"物流公司名称","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.name))])]}}])}),t("el-table-column",{attrs:{label:"编码","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.code))])]}}])}),t("el-table-column",{attrs:{label:"排序","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.sort))])]}}])}),t("el-table-column",{attrs:{label:"是否显示","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("el-switch",{attrs:{"active-value":1,"inactive-value":0,value:r.row.is_show,size:"large"},on:{change:function(t){return e.onchangeIsShow(r.row)}},model:{value:r.row.is_show,callback:function(t){e.$set(r.row,"is_show",t)},expression:"scope.row.is_show"}})]}}])}),t("el-table-column",{attrs:{label:"操作",fixed:"right",width:"80"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(t){return e.edit(r.row)}}},[e._v("编辑")])]}}])})],1),t("div",{staticClass:"acea-row row-right page"},[e.total?t("pagination",{attrs:{total:e.total,page:e.levelFrom.page,limit:e.levelFrom.limit},on:{"update:page":function(t){return e.$set(e.levelFrom,"page",t)},"update:limit":function(t){return e.$set(e.levelFrom,"limit",t)},pagination:e.getList}}):e._e()],1)],1)],1)}),[],!1,null,"1429114a",null);t.default=r.exports},fff7:function(e,t,r){}}]);
|