mt-ck-wms-ui/dist/static/js/chunk-1c8763b4.f20fcf95.js

1 line
9.3 KiB
JavaScript
Raw Normal View History

2022-06-07 15:13:51 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1c8763b4"],{"04ad":function(t,e,a){"use strict";a("62cf")},"24fd":function(t,e,a){"use strict";a.d(e,"e",(function(){return r})),a.d(e,"d",(function(){return n})),a.d(e,"a",(function(){return s})),a.d(e,"c",(function(){return o})),a.d(e,"b",(function(){return d}));var i=a("b775");function r(t){return Object(i["a"])({url:"/api/upms/org/page",method:"post",data:t})}function n(t){return Object(i["a"])({url:"/api/upms/org/get",method:"post",data:{id:t}})}function s(t){return Object(i["a"])({url:"/api/upms/org/add",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/api/upms/org/update",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/api/upms/org/delete",method:"post",data:{id:t}})}},29439:function(t,e,a){"use strict";a("3387")},3387:function(t,e,a){},"534e":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-tree",{attrs:{data:t.dataList,props:t.defaultProps},on:{"node-click":t.handleNodeClick}})},r=[],n=a("3393"),s=a.n(n),o=a("4573"),d=a.n(o),l={props:{menuList:{type:Array,default:function(){}}},data:function(){return{defaultProps:{children:"children",label:"name"},dataList:[]}},created:function(){this.init()},methods:{init:function(){var t,e,a=this;s()(t=this.dataList).call(t,0,this.dataList.length),d()(e=this.menuList).call(e,(function(t){"-1"===t.parentId?a.dataList.push(t):a.append(t)}))},append:function(t){var e,a=this;d()(e=this.menuList).call(e,(function(e){t.parentId===e.id&&(e.children||a.$set(e,"children",[]),e.children.push(t))}))},handleNodeClick:function(t){this.$emit("getOrganization",t)}}},c=l,u=(a("04ad"),a("2877")),f=Object(u["a"])(c,i,r,!1,null,"350bd2ba",null);e["a"]=f.exports},"62cf":function(t,e,a){},"66f4":function(t,e,a){"use strict";a("c8fd")},"9d60":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-container",{staticStyle:{margin:"30px"}},[a("el-aside",[t.menuList.length>0?a("side-tree",{attrs:{"menu-list":t.menuList},on:{getOrganization:t.getOrganization}}):t._e()],1),t._v(" "),a("el-main",{staticStyle:{border:"2px solid #E4E4E4","border-radius":"10px","margin-left":"10px"}},[t.addOrUpdateVisible?a("organization-manege",{ref:"addOrUpdate",on:{refreshDataList:t.getList}}):t._e()],1)],1)},r=[],n=(a("96cf"),a("1da1")),s=a("6b47"),o=a.n(s),d=a("3393"),l=a.n(d),c=a("534e"),u=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticStyle:{float:"right",padding:"3px 0"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.showAdd}},[t._v(t._s(t._f("i18nFilter")("btn.add")))]),t._v(" "),a("el-button",{attrs:{type:"success",disabled:!t.formData.name},on:{click:function(e){t.isAdd=!1,t.isEdit=!0}}},[t._v(t._s(t._f("i18nFilter")("btn.edit")))]),t._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:t.deleteOrg}},[t._v(t._s(t._f("i18nFilter")("btn.delete")))])],1)]),t._v(" "),a("el-form",{ref:"formData",attrs:{model:t.formData,rules:t.rules,size:"medium","label-width":"150px"}},[a("el-form-item",{attrs:{label:t.$t("orgManage.orgName"),prop:"name"}},[a("el-input",{style:{width:"100%"},attrs:{readonly:!t.isEdit&&!t.isAdd,placeholder:t._f("i18nFilterForm")(["placeholder.input",t.$t("orgManage.orgName")]),clearable:""},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("orgManage.parentOrg"),prop:"parentId"}},[a("el-select",{style:{width:"100%"},attrs:{disabled:!t.isEdit&&!t.isAdd,placeholder:t._f("i18nFilterForm")(["placeholder.select",t.$t("orgManage.parentOrg")]),clearable:""},model:{value:t.formData.parentId,callback:function(e){t.$set(t.formData,"parentId",e)},expression:"formData.parentId"}},t._l(t.parentIdOptions,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("orgManage.address"