Your Name
2022-11-30 f0cd5a4fe3b366fa753b8da5e387673c30c4d0f7
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-3c73"],{AOuF:function(e,t,a){},NWtu:function(e,t,a){"use strict";var n=a("AOuF");a.n(n).a},qtwx:function(e,t,a){"use strict";a.r(t);var n=a("14Xm"),i=a.n(n),r=a("D3Ub"),l=a.n(r),c=a("7Qib"),s=a("owpn"),o={name:"publicSecurityDepartment",data:function(){return{tableKey:0,listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,searchContent:"",departmentLocationVisible:!1,publicSecurityDepartmentList:[]}},created:function(){this.getPublicSecurityDepartmentList()},methods:{showPublicSecurityDepartment:function(){this.departmentLocationVisible=!0,this.getPublicSecurityDepartmentList()},getPublicSecurityDepartmentList:function(){var e=this;return l()(i.a.mark(function t(){var a,n;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(a={}).pageIndex=e.currentPage,a.pageSize=e.pageSize,t.next=5,Object(s.m)(a,{name:e.searchContent});case 5:"200"===(n=t.sent).data.code?(e.recordTotal=n.data.result.total,e.pageSize=n.data.result.size,e.pageTotal=Object(c.a)(n.data.result.total,n.data.result.size),e.currentPage=n.data.result.current,e.publicSecurityDepartmentList=n.data.result.records):e.$message({type:"warning",message:n.data.message});case 7:case"end":return t.stop()}},t,e)}))()},refreshHandle:function(){},queryHandle:function(){this.getPublicSecurityDepartmentList()},updateSecuritySupervisory:function(e,t){this.$emit("getinfo",t.name),this.departmentLocationVisible=!1},handleSizeChange:function(e){this.pageSize=e,this.currentPage=1,this.getPublicSecurityDepartmentList()},handleCurrentChange:function(e){this.currentPage=e,this.getPublicSecurityDepartmentList()}}},u=(a("NWtu"),a("KHd+")),p=Object(u.a)(o,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{visible:e.departmentLocationVisible,"append-to-body":"","close-on-click-modal":!1,width:"75%"},on:{"update:visible":function(t){e.departmentLocationVisible=t}}},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"400px"},attrs:{placeholder:"输入机构名称"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.queryHandle(t):null}},model:{value:e.searchContent,callback:function(t){e.searchContent=t},expression:"searchContent"}}),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.queryHandle}})],1),e._v(" "),a("div",{staticClass:"table_content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.publicSecurityDepartmentList,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"级别",prop:"level",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"机构代码",prop:"code",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"机构名字",prop:"name",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.updateSecuritySupervisory("修改",t.row)}}},[e._v("选择")])]}}])})],1),e._v(" "),a("br"),e._v(" "),a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":e.currentPage,"page-sizes":[10,20,30,50],"page-size":e.pageSize,total:e.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)])])},[],!1,null,"2937904b",null);p.options.__file="publicSecurityDepartment.vue";t.default=p.exports}}]);