EMS2.0-Documents/7.部署文档/Linux安装/项目前端文件/IEMS/js/chunk-6aaba449.89d82ba0.js

2 lines
12 KiB
JavaScript
Raw Permalink Normal View History

2024-11-28 09:29:02 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6aaba449"],{"1fb6":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;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:e.deptIdList,placeholder:e.$t("listQuery.areaId"),props:{checkStrictly:!0,emitPath:!1,props:{}},clearable:""},on:{change:e.handleFilter},model:{value:e.listQuery.areaPid,callback:function(t){e.$set(e.listQuery,"areaPid",t)},expression:"listQuery.areaPid"}}),a("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("area.deptName")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter.apply(null,arguments)}},model:{value:e.listQuery.areaName,callback:function(t){e.$set(e.listQuery,"areaName",t)},expression:"listQuery.areaName"}}),a("span",{staticClass:"btn-item",on:{click:e.handleFilter}},[a("i",{staticClass:"iconfont icon-sousuo"}),e._v(e._s(e.$t("btn.search"))+" ")]),a("span",{staticClass:"btn-item",on:{click:e.clearListQuery}},[a("i",{staticClass:"el-icon-refresh-left"}),e._v(" "+e._s(e.$t("btn.resetting")))]),a("div",{staticClass:"control-container"},[a("span",{directives:[{name:"permission",rawName:"v-permission",value:["area_add_top"],expression:"['area_add_top']"}],staticClass:"btn-item",on:{click:function(t){return e.handleCreate(0)}}},[e._v(e._s(e.$t("menu.addToplevel")))]),a("span",{directives:[{name:"permission",rawName:"v-permission",value:["area_add_child"],expression:"['area_add_child']"}],staticClass:"btn-item",on:{click:function(t){return e.handleCreate(1)}}},[e._v(e._s(e.$t("menu.addChild")))])])],1),a("div",{staticClass:"table-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.data,"row-key":"id","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:{"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{prop:"areaName",align:"left",label:e.$t("area.deptName")}}),a("el-table-column",{attrs:{prop:"areaCode",align:"left",label:e.$t("area.deptCode")}}),a("el-table-column",{attrs:{label:e.$t("area.deptType"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.level?a("span",[e._v(e._s(e.$t("area.province")))]):e._e(),2===t.row.level?a("span",[e._v(e._s(e.$t("area.city")))]):e._e(),3===t.row.level?a("span",[e._v(e._s(e.$t("area.district")))]):e._e(),4===t.row.level?a("span",[e._v(e._s(e.$t("area.street")))]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"center",align:"left",label:e.$t("area.center")}}),a("el-table-column",{attrs:{label:e.$t("table.operate"),width:"240",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"btnCancel",attrs:{title:e.$t("table.update")},on:{click:function(a){return e.handleUpdate(t)}}},[a("i",{staticClass:"iconfont icon-bianji"}),e._v(e._s(e.$t("table.update")))]),a("span",{staticClass:"btnCancel delete",attrs:{title:e.$t("table.delete")},on:{click:function(a){return e.handleDelete(t)}}},[a("i",{staticClass:"iconfont icon-a--"}),e._v(e._s(e.$t("table.delete")))])]}}])})],1)],1),a("el-dialog",{attrs:{"close-on-click-modal":!1,title:e.textMap[e.dialogStatus],visible:e.addDialog},on:{"update:visible":function(t){e.addDialog=t}}},[a("el-scrollbar",{staticStyle:{height:"100%"},attrs:{vertical:!0}},[a("el-form",{ref:"form",attrs:{rules:e.rules,model:e.form,inline:"","label-width":"130px"}},[a("el-form-item",{attrs:{label:e.$t("area.deptName"),prop:"areaName"}},[a("el-input",{attrs:{placeholder:e.$t("pEnter")+e.$t("area.deptName"),maxlength:"20"},model:{value:e.form.areaName,callback:function(t){e.$set(e.form,"areaName",t)},expression:"form.areaName"}})],1),a("el-form-item",{attrs:{label:e.$t("area.deptCode"),prop
//# sourceMappingURL=chunk-6aaba449.89d82ba0.js.map