1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-584ae3bf","chunk-2d0df437"],{"88bc":function(e,r,t){(function(r){var t=1/0,a=9007199254740991,o="[object Arguments]",l="[object Function]",n="[object GeneratorFunction]",i="[object Symbol]",s="object"==typeof r&&r&&r.Object===Object&&r,c="object"==typeof self&&self&&self.Object===Object&&self,p=s||c||Function("return this")();function u(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}function d(e,r){var t=-1,a=e?e.length:0,o=Array(a);while(++t<a)o[t]=r(e[t],t,e);return o}function f(e,r){var t=-1,a=r.length,o=e.length;while(++t<a)e[o+t]=r[t];return e}var b=Object.prototype,m=b.hasOwnProperty,v=b.toString,h=p.Symbol,w=b.propertyIsEnumerable,C=h?h.isConcatSpreadable:void 0,y=Math.max;function g(e,r,t,a,o){var l=-1,n=e.length;t||(t=S),o||(o=[]);while(++l<n){var i=e[l];r>0&&t(i)?r>1?g(i,r-1,t,a,o):f(o,i):a||(o[o.length]=i)}return o}function x(e,r){return e=Object(e),j(e,r,(function(r,t){return t in e}))}function j(e,r,t){var a=-1,o=r.length,l={};while(++a<o){var n=r[a],i=e[n];t(i,n)&&(l[n]=i)}return l}function O(e,r){return r=y(void 0===r?e.length-1:r,0),function(){var t=arguments,a=-1,o=y(t.length-r,0),l=Array(o);while(++a<o)l[a]=t[r+a];a=-1;var n=Array(r+1);while(++a<r)n[a]=t[a];return n[r]=l,u(e,this,n)}}function S(e){return D(e)||F(e)||!!(C&&e&&e[C])}function N(e){if("string"==typeof e||J(e))return e;var r=e+"";return"0"==r&&1/e==-t?"-0":r}function F(e){return A(e)&&m.call(e,"callee")&&(!w.call(e,"callee")||v.call(e)==o)}var D=Array.isArray;function k(e){return null!=e&&_(e.length)&&!I(e)}function A(e){return $(e)&&k(e)}function I(e){var r=T(e)?v.call(e):"";return r==l||r==n}function _(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function T(e){var r=typeof e;return!!e&&("object"==r||"function"==r)}function $(e){return!!e&&"object"==typeof e}function J(e){return"symbol"==typeof e||$(e)&&v.call(e)==i}var B=O((function(e,r){return null==e?{}:x(e,d(g(r,1),N))}));e.exports=B}).call(this,t("c8ba"))},"928e":function(e,r,t){"use strict";t("faae")},e326:function(e,r,t){"use strict";t.r(r);var a=function(){var e=this,r=e._self._c;return r("a-card",{attrs:{visible:e.visible}},[r("a-form",{attrs:{form:e.form}},[r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"机构名称"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["departName",{}],expression:"['departName', {}]"}],staticStyle:{border:"0px"},attrs:{placeholder:""}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"上级部门"}},[r("a-tree-select",{staticStyle:{width:"100%",border:"none",outline:"none"},attrs:{disabled:"",dropdownStyle:{maxHeight:"200px",overflow:"auto"},treeData:e.treeData,placeholder:"无"},model:{value:e.model.parentId,callback:function(r){e.$set(e.model,"parentId",r)},expression:"model.parentId"}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"机构编码"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orgCode",{}],expression:"['orgCode', {}]"}],staticStyle:{border:"0px"},attrs:{placeholder:""}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"机构类型"}},[r("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["orgCategory",{}],expression:"['orgCategory',{}]"}],attrs:{disabled:!0,placeholder:"请选择机构类型"}},[r("a-radio",{attrs:{value:"1"}},[e._v("\n 公司\n ")]),r("a-radio",{attrs:{value:"2"}},[e._v("\n 部门\n ")]),r("a-radio",{attrs:{value:"3"}},[e._v("\n 岗位\n ")])],1)],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"排序"}},[r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["departOrder",{}],expression:"[ 'departOrder',{}]"}],staticStyle:{border:"0px"}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"手机号"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile",{}],expression:"['mobile', {}]"}],staticStyle:{border:"0px"},attrs:{placeholder:""}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"地址"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address",{}],expression:"['address', {}]"}],staticStyle:{border:"0px"},attrs:{placeholder:""}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"备注"}},[r("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["memo",{}],expression:"['memo', {}]"}],staticStyle:{border:"0px"},attrs:{placeholder:""}})],1)],1)],1)},o=[],l=t("88bc"),n=t.n(l),i=t("4ec3"),s={name:"DeptBaseInfo",components:{},data:function(){return{departTree:[],id:"",model:{},visible:!1,disable:!0,treeData:[],form:this.$form.createForm(this),labelCol:{xs:{span:24},sm:{span:3}},wrapperCol:{xs:{span:24},sm:{span:16}}}},created:function(){this.loadTreeData()},methods:{loadTreeData:function(){var e=this;Object(i["F"])().then((function(r){if(r.success)for(var t=0;t<r.result.length;t++){var a=r.result[t];e.treeData.push(a)}}))},open:function(e){var r=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){r.form.setFieldsValue(n()(e,"orgCategory","departName","parentId","orgCode","departOrder","mobile","fax","address","memo"))}))},clearForm:function(){this.form.resetFields(),this.treeData=[]}}},c=s,p=(t("928e"),t("2877")),u=Object(p["a"])(c,a,o,!1,null,"0830167e",null);r["default"]=u.exports},faae:function(e,r,t){}}]);
|