2 lines
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ba74b0c"],{"0c3a":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("div",{staticClass:"app-container department"},[a("div",{staticClass:"decorate"}),a("div",{staticClass:"filter-container"},[a("el-cascader",{staticClass:"filter-item",attrs:{"show-all-levels":!1,options:t.deptIdList,placeholder:t.$t("listQuery.deptId"),props:{checkStrictly:!0,emitPath:!1,props:{}},clearable:""},on:{change:t.handleFilter},model:{value:t.listQuery.deptId,callback:function(e){t.$set(t.listQuery,"deptId",e)},expression:"listQuery.deptId"}}),a("el-input",{staticClass:"filter-item",attrs:{placeholder:t.$t("department.deptName")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleFilter.apply(null,arguments)}},model:{value:t.listQuery.deptName,callback:function(e){t.$set(t.listQuery,"deptName",e)},expression:"listQuery.deptName"}}),a("span",{staticClass:"btn-item",on:{click:t.handleFilter}},[a("i",{staticClass:"iconfont icon-sousuo"}),t._v(t._s(t.$t("btn.search")))]),a("span",{staticClass:"btn-item",on:{click:t.clearListQuery}},[a("i",{staticClass:"el-icon-refresh-left"}),t._v(" "+t._s(t.$t("btn.resetting")))]),a("div",{staticClass:"control-container"},["super"==t.userName?a("span",{staticClass:"btn-item",on:{click:function(e){return t.handleCreate(0)}}},[t._v(t._s(t.$t("menu.addToplevel")))]):t._e(),a("span",{staticClass:"btn-item",on:{click:function(e){return t.handleCreate(1)}}},[t._v(t._s(t.$t("menu.addChild")))])])],1),a("div",{staticClass:"table-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.data,"row-key":"deptId","max-height":"580","default-expand-all":"","header-row-class-name":"table-header","row-class-name":"table-row","highlight-current-row":"","tree-props":{children:"children",hasChildren:"hasChildren"}},on:{"expand-change":t.getChange,"current-change":t.handleCurrentChange}},[a("el-table-column",{attrs:{prop:"deptName",align:"left",label:t.$t("department.deptName")}}),a("el-table-column",{attrs:{label:t.$t("department.deptType"),width:"200",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.deptType?a("span",[t._v(t._s(t.$t("department.company")))]):t._e(),2===e.row.deptType?a("span",[t._v(t._s(t.$t("department.department")))]):t._e()]}}])}),a("el-table-column",{attrs:{prop:"address",align:"left",label:t.$t("table.address")}}),a("el-table-column",{attrs:{label:t.$t("table.operate"),width:"240",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"btnCancel",attrs:{title:t.$t("table.update")},on:{click:function(a){return t.handleUpdate(e)}}},[a("i",{staticClass:"iconfont icon-bianji"}),t._v(t._s(t.$t("table.update")))]),a("span",{staticClass:"btnCancel delete",attrs:{title:t.$t("table.delete")},on:{click:function(a){return t.handleDelete(e)}}},[a("i",{staticClass:"iconfont icon-a--"}),t._v(t._s(t.$t("table.delete")))])]}}])})],1)],1),a("el-dialog",{attrs:{"close-on-click-modal":!1,title:t.textMap[t.dialogStatus],visible:t.addDialog},on:{"update:visible":function(e){t.addDialog=e}}},[a("el-scrollbar",{staticStyle:{height:"100%"},attrs:{vertical:!0}},[a("el-form",{ref:"form",attrs:{rules:t.rules,model:t.form,inline:"","label-width":"130px"}},[a("el-form-item",{attrs:{label:t.$t("department.deptName"),prop:"deptName"}},[a("el-input",{attrs:{placeholder:t.$t("pEnter")+t.$t("department.deptName"),maxlength:"20"},model:{value:t.form.deptName,callback:function(e){t.$set(t.form,"deptName",e)},expression:"form.deptName"}})],1),a("el-form-item",{attrs:{label:t.$t("department.deptType"),prop:"deptType"}},[a("el-select",{attrs:{placeholder:t.$t("pSelect"),disabled:"update"===t.dialogStatus},model:{value:t.form.deptType,callback:function(e){t.$set(t.form,"deptType",e)},expression:"form.deptType"}},t._l(t.deptType,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value,disabled:t.di
|
||
|
//# sourceMappingURL=chunk-1ba74b0c.befd3147.js.map
|