1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e5b9"],{"7DEu":function(e,t,n){"use strict";var a=n("YHjw");n.n(a).a},"8q1B":function(e,t,n){"use strict";n.r(t);var a=n("SHA7"),i={data:function(){return{firmList:[],total:0,listLoading:!0,searchForm:{page:1,page_len:10}}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.page&&(this.searchForm.page=t.page,this.searchForm.page_len=t.page_len),this.listLoading=!0,this.$http(Object(a.B)(this.searchForm),function(t){e.firmList=t.data.result,e.total=t.data.data_sum,e.listLoading=!1})},handleDelete:function(e){var t=this;this.$confirm("删除","确认删除吗",function(){t.$http(Object(a.k)(e),function(e){0==e.code&&(t.$message.success(e.message),t.fetchData())})})}}},r=(n("7DEu"),n("KHd+")),c=Object(r.a)(i,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"filter-container"},[n("el-form",{attrs:{inline:!0,model:e.searchForm}},[n("el-form-item",{attrs:{label:"工地名称"}},[n("el-input",{attrs:{placeholder:"请输入工地名称"},model:{value:e.searchForm.site_name,callback:function(t){e.$set(e.searchForm,"site_name",t)},expression:"searchForm.site_name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"客户单位"}},[n("el-input",{attrs:{placeholder:"请输入客户单位"},model:{value:e.searchForm.client_company,callback:function(t){e.$set(e.searchForm,"client_company",t)},expression:"searchForm.client_company"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.fetchData}},[e._v("搜索")]),e._v(" "),n("router-link",{attrs:{to:"/basicInfo/siteCreate"}},[n("el-button",{staticClass:"ml-10",attrs:{type:"primary",icon:"el-icon-edit"}},[e._v("新增")])],1)],1)],1)],1),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.firmList,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"客户单位",prop:"client_company",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"工地名称",prop:"site_name",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"负责人名称",prop:"site_man",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"负责人电话",prop:"man_phone",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"工地地址",prop:"site_address",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"操作",align:"center",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("router-link",{attrs:{to:"/basicInfo/siteEdit/"+t.row.site_id}},[n("el-button",{staticClass:"ml-10",attrs:{type:"primary",size:"mini"}},[e._v("编辑")])],1),e._v(" "),n("el-button",{staticClass:"ml-10",attrs:{size:"mini",type:"danger"},on:{click:function(n){e.handleDelete(t.row.site_id)}}},[e._v(" 删除 ")])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.searchForm.page,page_len:e.searchForm.page_len,limit:e.searchForm.limit},on:{"update:page":function(t){e.$set(e.searchForm,"page",t)},"update:page_len":function(t){e.$set(e.searchForm,"page_len",t)},"update:limit":function(t){e.$set(e.searchForm,"limit",t)},pagination:e.fetchData}})],1)},[],!1,null,"4d22724b",null);c.options.__file="siteList.vue";t.default=c.exports},SHA7:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"C",function(){return r}),n.d(t,"s",function(){return c}),n.d(t,"J",function(){return _}),n.d(t,"l",function(){return s}),n.d(t,"a",function(){return u}),n.d(t,"x",function(){return l}),n.d(t,"o",function(){return d}),n.d(t,"F",function(){return o}),n.d(t,"h",function(){return p}),n.d(t,"d",function(){return m}),n.d(t,"v",function(){return f}),n.d(t,"B",function(){return b}),n.d(t,"r",function(){return h}),n.d(t,"I",function(){return v}),n.d(t,"k",function(){return O}),n.d(t,"D",function(
|