(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0806fdb4"],{"044d":function(e,t,a){"use strict";a.r(t);var o=a("7a23");const l={class:"main-content__div"},c={class:"table-box__div"},i={class:"table-box__div"},r={class:"block",style:{"margin-top":"10px",float:"right"}};function n(e,t,a,n,d,b){const s=Object(o["resolveComponent"])("el-input"),p=Object(o["resolveComponent"])("el-form-item"),g=Object(o["resolveComponent"])("el-button"),u=Object(o["resolveComponent"])("el-form"),h=Object(o["resolveComponent"])("el-table-column"),j=Object(o["resolveComponent"])("el-table"),m=Object(o["resolveComponent"])("el-pagination"),O=Object(o["resolveDirective"])("loading");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",l,[Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",c,[Object(o["createVNode"])(u,{class:"demo-form-inline"},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(p,{label:"城市名称："},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(s,{placeholder:"城市名称",modelValue:d.keyWord,"onUpdate:modelValue":t[0]||(t[0]=e=>d.keyWord=e),style:{width:"150px"},size:"small"},null,8,["modelValue"])]),_:1}),Object(o["createVNode"])(p,null,{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(g,{type:"primary",size:"small",onClick:t[1]||(t[1]=e=>b.searchFrom())},{default:Object(o["withCtx"])(()=>[Object(o["createTextVNode"])("搜索")]),_:1})]),_:1})]),_:1})])),[[O,d.loadingFlag]]),Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",i,[Object(o["createVNode"])(j,{size:"mini",data:d.tableData,"empty-text":d.tableDataLoadingText,style:{width:"100%","font-size":"15px"},"header-cell-style":{background:"#FAFAFA"}},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(h,{label:"编号",width:"150",prop:"id"}),Object(o["createVNode"])(h,{label:"城市名称",prop:"name",width:"250"}),Object(o["createVNode"])(h,{label:"等级",prop:"level",width:"100"}),Object(o["createVNode"])(h,{label:"编码",prop:"code",width:"200"}),Object(o["createVNode"])(h,{label:"区号",prop:"city_code",width:"100"}),Object(o["createVNode"])(h,{label:"备注",prop:"remark",width:"200"}),Object(o["createVNode"])(h,{label:"创建时间",prop:"create_time",width:"200"}),Object(o["createVNode"])(h,{label:"更新时间",prop:"update_time"})]),_:1},8,["data","empty-text"]),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",r,[Object(o["createVNode"])(m,{background:"",onCurrentChange:b.handleCurrentChange,"current-page":d.currentPage,"page-size":d.pageSize,layout:"total, prev, pager, next, jumper",total:parseInt(d.tableCount)},null,8,["onCurrentChange","current-page","page-size","total"])],512),[[o["vShow"],d.pagination]])])),[[O,d.loadingFlag]])])}var d={data(){return{value:"1",tableData:[],tableDataLoadingText:"拼命加载中······",pagination:!1,pageSize:15,currentPage:1,tableCount:0,keyWord:"",loadingFlag:!1,isShowSource:!1,id:0,DialogShow:!1,cityId:"",cityRowIndex:"",cityDataForm:{},cityTableData:[],isloading:!1,cityDialogShow:!1}},mounted(){},methods:{getList:function(){let e=this;e.loadingFlag=!0;let t={page:this.currentPage,pageSize:this.pageSize,keyWord:this.keyWord};this.$api.publicApi.getCityList(t).then(t=>{if(e.loadingFlag=!1,200==t.code){if(0==t.data.rows.length)return void this.$message.error("没有数据了");e.tableData=t.data.rows,e.tableCount=t.data.count,e.tableCount>e.pageSize&&(e.pagination=!0),0==e.tableData.length&&(e.tableDataLoadingText="暂无数据")}else this.$message.error("查询失败")})},handleCurrentChange(e){this.currentPage=e,this.getList()},searchFrom(){this.currentPage=1,this.pageSize=15,this.getList()}},created(){this.getList()}},b=(a("4c52"),a("6b0d")),s=a.n(b);const p=s()(d,[["render",n]]);t["default"]=p},"4c52":function(e,t,a){"use strict";a("cb9e")},cb9e:function(e,t,a){}}]);
//# sourceMappingURL=chunk-0806fdb4.ef3b096f.js.map