(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-148240ca","chunk-14a31191","chunk-2d0df437"],{"1d8c":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery.apply(null,arguments)}}},[t("a-row",{attrs:{gutter:24}},[t("a-col",{attrs:{md:6,sm:8}},[t("a-form-item",{attrs:{label:"职务编码"}},[t("a-input",{attrs:{placeholder:"请输入职务编码"},model:{value:e.queryParam.code,callback:function(t){e.$set(e.queryParam,"code",t)},expression:"queryParam.code"}})],1)],1),t("a-col",{attrs:{md:6,sm:8}},[t("a-form-item",{attrs:{label:"职务名称"}},[t("a-input",{attrs:{placeholder:"请输入职务名称"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),e.toggleSearchStatus?[t("a-col",{attrs:{md:6,sm:8}},[t("a-form-item",{attrs:{label:"职级"}},[t("j-dict-select-tag",{attrs:{placeholder:"请选择职级",dictCode:"position_rank"},model:{value:e.queryParam.postRank,callback:function(t){e.$set(e.queryParam,"postRank",t)},expression:"queryParam.postRank"}})],1)],1)]:e._e(),t("a-col",{attrs:{md:6,sm:8}},[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[t("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),t("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")]),t("a",{staticStyle:{"margin-left":"8px"},on:{click:e.handleToggleSearch}},[e._v("\n "+e._s(e.toggleSearchStatus?"收起":"展开")+"\n "),t("a-icon",{attrs:{type:e.toggleSearchStatus?"up":"down"}})],1)],1)])],2)],1)],1),t("div",{staticClass:"table-operator"},[t("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),t("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("职务表")}}},[e._v("导出")]),t("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[t("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?t("a-dropdown",[t("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[t("a-menu-item",{key:"1",on:{click:e.batchDel}},[t("a-icon",{attrs:{type:"delete"}}),e._v("\n 删除\n ")],1)],1),t("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n "),t("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),t("div",[t("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[t("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),t("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n "),t("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),t("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(a,n){return t("span",{},[t("a",{on:{click:function(t){return e.handleEdit(n)}}},[e._v("编辑")]),t("a-divider",{attrs:{type:"vertical"}}),t("a-dropdown",[t("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),t("a-icon",{attrs:{type:"down"}})],1),t("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[t("a-menu-item",[t("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(n.id)}}},[t("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),t("sysPosition-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},o=[],r=a("8e7c"),l=a("b65a"),i=a("7b16"),s={name:"SysPositionList",mixins:[l["a"]],components:{SysPositionModal:r["default"],JDictSelectTag:i["default"]},data:function(){return{description:"职务表管理页面",columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,a){return parseInt(a)+1}},{title:"职务编码",align:"center",dataIndex:"code"},{title:"职务名称",align:"center",dataIndex:"name"},{title:"职级",align:"center",dataIndex:"postRank_dictText"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/sys/position/list",delete:"/sys/position/delete",deleteBatch:"/sys/position/deleteBatch",exportXlsUrl:"/sys/position/exportXls",importExcelUrl:"/sys/position/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}}},c=s,d=(a("4a8d"),a("2877")),u=Object(d["a"])(c,n,o,!1,null,"21287297",null);t["default"]=u.exports},"4a8d":function(e,t,a){"use strict";a("963a")},"88bc":function(e,t,a){(function(t){var a=1/0,n=9007199254740991,o="[object Arguments]",r="[object Function]",l="[object GeneratorFunction]",i="[object Symbol]",s="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,d=s||c||Function("return this")();function u(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function m(e,t){var a=-1,n=e?e.length:0,o=Array(n);while(++a0&&a(i)?t>1?k(i,t-1,a,n,o):p(o,i):n||(o[o.length]=i)}return o}function x(e,t){return e=Object(e),C(e,t,(function(t,a){return a in e}))}function C(e,t,a){var n=-1,o=t.length,r={};while(++n-1&&e%1==0&&e<=n}function F(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function L(e){return!!e&&"object"==typeof e}function T(e){return"symbol"==typeof e||L(e)&&y.call(e)==i}var $=S((function(e,t){return null==e?{}:x(e,m(k(t,1),R))}));e.exports=$}).call(this,a("c8ba"))},"8e7c":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,maskClosable:!1,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"职务编码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["code",e.validatorRules.code],expression:"['code', validatorRules.code]"}],attrs:{placeholder:"请输入职务编码"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"职务名称"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"['name', validatorRules.name]"}],attrs:{placeholder:"请输入职务名称"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"职级"}},[t("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["postRank",e.validatorRules.postRank],expression:"['postRank', validatorRules.postRank]"}],attrs:{placeholder:"请选择职级",triggerChange:!0,dictCode:"position_rank"}})],1)],1)],1)],1)},o=[],r=a("88bc"),l=a.n(r),i=a("0fea"),s=a("4ec3"),c=a("7b16"),d=null,u={name:"SysPositionModal",components:{JDictSelectTag:c["default"]},data:function(){var e=this;return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{code:{rules:[{required:!0,message:"请输入职务编码"},{validator:function(t,a,n){d&&clearTimeout(d),d=setTimeout((function(){Object(s["m"])({tableName:"sys_position",fieldName:"code",fieldVal:a,dataId:e.model.id}).then((function(e){e.success?n():n(e.message)})).catch(console.error)}),300)}}]},name:{rules:[{required:!0,message:"请输入职务名称"}]},postRank:{rules:[{required:!0,message:"请选择职级"}]}},url:{add:"/sys/position/add",edit:"/sys/position/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(l()(t.model,"code","name","postRank"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(a,n){if(!a){t.confirmLoading=!0;var o="",r="";e.model.id?(o+=e.url.edit,r="put"):(o+=e.url.add,r="post");var l=Object.assign(e.model,n);Object(i["i"])(o,l,r).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}},m=u,p=a("2877"),f=Object(p["a"])(m,n,o,!1,null,"3aaf2fb2",null);t["default"]=f.exports},"963a":function(e,t,a){}}]);