|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00bf14db"],{d299:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"main-content"},[t._m(0),e("div",{staticClass:"content"},[e("div",{staticClass:"content-btn"},[e("el-button",{staticClass:"init-button",attrs:{icon:"el-icon-plus"},on:{click:function(e){return t.add()}}},[t._v("新增区域")])],1),e("div",{},[e("VueTable",{ref:"table",attrs:{config:t.config},on:{tableCheck:t.tableCheck}},[e("template",{slot:"footer"},[e("div",{staticClass:"table-footer"},[e("button",{on:{click:function(e){return t.detail(t.table_row)}}},[t._v("编辑")]),e("button",{on:{click:function(e){return t.del(t.table_row)}}},[t._v("删除")])])])],2)],1),e("Drawer",{attrs:{drawerTitle:"新增区域",drawerVrisible:t.add_vrisible},on:{drawerClose:t.addClose}},[e("div",{staticStyle:{padding:"30px"}},[e("FromCard",[e("template",{slot:"title"},[t._v("区域信息")]),[e("VueForm",{ref:"addForm",attrs:{formObj:t.addForm},scopedSlots:t._u([{key:"date",fn:function(){return[e("el-time-picker",{attrs:{"is-range":"","range-separator":"至","value-format":"HH:MM:SS","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围"},on:{change:t.dateTimeChange},model:{value:t.addDate,callback:function(e){t.addDate=e},expression:"addDate"}})]},proxy:!0}])},[e("template",{slot:"imgUrls"},[[e("el-upload",{attrs:{action:t.$baseUrl+"upload/uploadAnnouncement","on-success":t.ImgeSuccess,"file-list":t.imglist,"on-exceed":t.handleExceed,limit:1,accept:".jpg,.png,.JPG,.PNG","before-upload":t.beforeAvatarUpload}},[e("el-button",{attrs:{icon:"el-icon-edit",size:"small"}},[t._v("上传图片")]),e("span",{staticStyle:{"margin-left":"10px","font-size":"12px",color:"#444444"}},[t._v("建议比例:3:2")]),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e("span",[t._v("支持扩展名:png,jpg")])])],1)]],2)],2)]],2)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("button",{staticClass:"btn-orange",on:{click:function(e){return t.addSubmit()}}},[e("span",[e("i",{staticClass:"el-icon-circle-check"}),t._v("提交")])]),e("button",{staticClass:"btn-gray",on:{click:t.addClose}},[e("span",[t._v("取消")])])])]),e("Drawer",{attrs:{drawerTitle:"编辑区域",drawerVrisible:t.detail_vrisible},on:{drawerClose:t.detailClose}},[e("div",{staticStyle:{padding:"30px"}},[e("FromCard",[e("template",{slot:"title"},[t._v("区域信息")]),[e("VueForm",{ref:"detailForm",attrs:{formObj:t.detailForm}})]],2)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("button",{staticClass:"btn-orange",on:{click:function(e){return t.detailSubmit()}}},[e("span",[e("i",{staticClass:"el-icon-circle-check"}),t._v("提交")])]),e("button",{staticClass:"btn-gray",on:{click:t.detailClose}},[e("span",[t._v("取消")])])])])],1)])])},a=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-titel"},[e("span",[t._v("绿化区域")])])}],u=r("d63a"),i={data(){return{add_vrisible:!1,detail_vrisible:!1,addDate:null,addForm:{ruleForm:{name:null},form_item:[{type:"Input",label:"区域名称",placeholder:"请输入",width:"100%",prop:"name"}]},detailForm:{ruleForm:{name:null},form_item:[{type:"Input",label:"区域名称",placeholder:"请输入",width:"100%",prop:"name"}]},table_row:[],imglist:[],config:{thead:[{label:"序号",type:"index",width:"80"},{label:"区域名称",prop:"name",width:"auto"},{label:"创建人名称",prop:"createName",width:"auto"},{label:"创建时间",prop:"createDate",width:"auto"}],table_data:[],url:"greenAreaList",search_item:[{type:"Input",label:"区域名称",placeholder:"请选择",prop:"name"},{type:"Input",label:"创建人名称",placeholder:"请输入",prop:"createName"},{type:"picker",label:"发布时间",placeholder:"请输入",prop:"date",startDate:"createDateStart",endDate:"createDateEnd",width:"280px"}],data:{pageNum:1,size:10}}}},methods:{add(){this.add_vrisible=!0;let t=Math.floor(1e8*Math.random());this.addForm.ruleForm.code=t},addClose(){this.$refs.addForm.reset(),this.add_vrisible=!1},addSubmit(){let t={...this.addForm.ruleForm};Object(u["u"])(t).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.$refs.table.loadData(),this.addClose())})},detail(t){1!=t.length?this.$message({message:"只能编辑一条数据",type:"error"}):(this.detail_vrisible=!0,console.log(t[0].id),this.detailForm.ruleForm.id=t[0].id,Object(u["t"])({id:t[0].id}).then(t=>{console.log(t.data),this.detailForm.ruleForm.name=t.data.name}))},detailClose(){this.$refs.detailForm.reset(),this.detail_vrisible=!1},detailSubmit(){let t={...this.detailForm.ruleForm,id:this.detailForm.ruleForm.id};Object(u["w"])(t).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.$refs.table.loadData(),this.detailClose())})},dateTimeChange(t){this.addForm.ruleForm.openStartDate=t[0],this.addForm.ruleForm.openEndDate=t[1]},ImgeSuccess(t,e){this.addForm.ruleForm.imgUrls[0]=e.response.url},beforeAvatarUpload(t){const e=t.size/1024/1024<2,r="image/png"===t.type,n="image/jpeg"===t.type;return r||n||this.$message.error("上传头像图片只能是 JPG/PNG 格式!"),e||this.$message.error("上传头像图片大小不能超过 2MB!"),(r||n)&&e},handleExceed(t,e){this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${t.length} 个文件,共选择了 ${t.length+e.length} 个文件`)},tableCheck(t){this.table_row=t},del(t){if(t.length){let t=[];for(let e=0;e<this.table_row.length;e++)t.push(this.table_row[e].id);this.$confirm("是否确认删除?删除不可恢复","删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{this.$refs.table.tableDelete(t)}).catch(t=>{})}else this.$message.error("请选中需要删除的数据")}}},o=i,s=r("2877"),d=Object(s["a"])(o,n,a,!1,null,null,null);e["default"]=d.exports},d63a:function(t,e,r){"use strict";r.d(e,"n",(function(){return a})),r.d(e,"e",(function(){return u})),r.d(e,"qb",(function(){return i})),r.d(e,"rb",(function(){return o})),r.d(e,"q",(function(){return s})),r.d(e,"r",(function(){return d})),r.d(e,"s",(function(){return l})),r.d(e,"h",(function(){return c})),r.d(e,"o",(function(){return m})),r.d(e,"p",(function(){return f})),r.d(e,"l",(function(){return p})),r.d(e,"k",(function(){return h})),r.d(e,"j",(function(){return b})),r.d(e,"m",(function(){return g})),r.d(e,"f",(function(){return T})),r.d(e,"i",(function(){return q})),r.d(e,"g",(function(){return S})),r.d(e,"vb",(function(){return y})),r.d(e,"ub",(function(){return P})),r.d(e,"bb",(function(){return O})),r.d(e,"cb",(function(){return v})),r.d(e,"ab",(function(){return C})),r.d(e,"G",(function(){return w})),r.d(e,"I",(function(){return _})),r.d(e,"F",(function(){return E})),r.d(e,"D",(function(){return G})),r.d(e,"K",(function(){return F})),r.d(e,"N",(function(){return k})),r.d(e,"J",(function(){return I})),r.d(e,"M",(function(){return B})),r.d(e,"H",(function(){return D})),r.d(e,"sb",(function(){return M})),r.d(e,"tb",(function(){return x})),r.d(e,"L",(function(){return $})),r.d(e,"E",(function(){return A})),r.d(e,"W",(function(){return j})),r.d(e,"X",(function(){return R})),r.d(e,"T",(function(){return N})),r.d(e,"Z",(function(){return U})),r.d(e,"Y",(function(){return z})),r.d(e,"V",(function(){return V})),r.d(e,"U",(function(){return J})),r.d(e,"R",(function(){return H})),r.d(e,"P",(function(){return L})),r.d(e,"Q",(function(){return K})),r.d(e,"S",(function(){return Q})),r.d(e,"eb",(function(){return W})),r.d(e,"db",(function(){return X})),r.d(e,"fb",(function(){return Y})),r.d(e,"O",(function(){return Z})),r.d(e,"u",(function(){return tt})),r.d(e,"v",(function(){return et})),r.d(e,"x",(function(){return rt})),r.d(e,"t",(function(){return nt})),r.d(e,"w",(function(){return at})),r.d(e,"z",(function(){return ut})),r.d(e,"A",(function(){return it})),r.d(e,"C",(function(){return ot})),r.d(e,"y",(function(){return st})),r.d(e,"B",(function(){return dt})),r.d(e,"hb",(function(){return lt})),r.d(e,"ib",(function(){return ct})),r.d(e,"gb",(function(){return mt})),r.d(e,"jb",(function(){return ft})),r.d(e,"ob",(function(){return pt})),r.d(e,"pb",(function(){return ht})),r.d(e,"nb",(function(){return bt})),r.d(e,"c",(function(){return gt})),r.d(e,"d",(function(){return Tt})),r.d(e,"a",(function(){return qt})),r.d(e,"b",(function(){return St})),r.d(e,"kb",(function(){return yt})),r.d(e,"mb",(function(){return Pt})),r.d(e,"lb",(function(){return Ot})),r.d(e,"wb",(function(){return vt}));var n=r("b775");r("2c37");function a(t){return n["a"].request({method:"POST",url:"/facilitiesManage/insert",data:t})}function u(t){return n["a"].request({method:"POST",url:"facilitiesAppointment/update",data:t})}function i(t){return n["a"].request({method:"POST",url:"sysOperations/insert",data:t})}function o(t){return n["a"].request({method:"POST",url:"sysOperations/update",data:t})}function s(t){return n["a"].request({method:"POST",url:"facilitiesPlan/insert",data:t})}function d(t){return n["a"].request({method:"POST",url:"facilitiesPlan/open",data:t})}function l(t){return n["a"].request({method:"POST",url:"facilitiesPlan/stop",data:t})}function c(t){return n["a"].request({method:"GET",url:"/facilitiesCategory/list",params:t})}function m(t){return n["a"].request({method:"GET",url:"/facilitiesManage/list",params:t})}function f(t){return n["a"].request({method:"POST",url:"/facilitiesManage/update",data:t})}function p(t){return n["a"].request({method:"GET",url:"/facilitiesMaintenanceRecord/list",params:t})}function h(t){return n["a"].request({method:"POST",url:"/facilitiesMaintenanceRecord/insert",data:t})}function b(t){return n["a"].request({method:"POST",url:"/facilitiesMaintenanceRecord/delete",data:t})}function g(t){return n["a"].request({method:"GET",url:"/facilitiesManage/findDetailById",params:t})}function T(t){return n["a"].request({method:"GET",url:"/facilitiesCategory/findDetailById",params:t})}function q(t){return n["a"].request({method:"POST",url:"/facilitiesCategory/update",data:t})}function S(t){return n["a"].request({method:"POST",url:"/facilitiesCategory/insert",data:t})}function y(t){return n["a"].request({method:"POST",url:"/userDecorationNew/examine",data:t})}function P(t){return n["a"].request({method:"POST",url:"/userDecorationNew/assign",data:t})}function O(t){return n["a"].request({method:"POST",url:"/ownersCommittee/insert",data:t})}function v(t){return n["a"].request({method:"POST",url:"/ownersCommittee/update",data:t})}function C(t){return n["a"].request({method:"GET",url:"/ownersCommittee/findById",params:t})}function w(t){return n["a"].request({method:"POST",url:"/inspectionPoint/insert",data:t})}function _(t){return n["a"].request({method:"POST",url:"/inspectionPoint/update",data:t})}function E(t){return n["a"].request({method:"GET",url:"/inspectionPoint/findById",params:t})}function G(t){return n["a"].request({method:"POST",url:"/inspectionPlan/insert",data:t})}function F(t){return n["a"].request({method:"POST",url:"/inspectionRoute/insert",data:t})}function k(t){return n["a"].request({method:"POST",url:"/inspectionRoute/update",data:t})}function I(t){return n["a"].request({method:"GET",url:"/inspectionRoute/findById",params:t})}function B(t){return n["a"].request({method:"GET",url:"/inspectionRoute/list",params:t})}function D(t){return n["a"].request({method:"GET",url:"/inspectionPoint/list",params:t})}function M(t){return n["a"].request({method:"GET",url:"/sysOrganization/findAllDepartment",params:t})}function x(t){return n["a"].request({method:"GET",url:"/sysUser/list",params:t})}function $(t){return n["a"].request({method:"GET",url:"/inspectionRoute/isEnable",params:t})}function A(t){return n["a"].request({method:"GET",url:"/inspectionPlan/isEnable",params:t})}function j(t){return n["a"].request({method:"GET",url:"/material/list",params:t})}function R(t){return n["a"].request({method:"GET",url:"/materialRecord/findById",params:t})}function N(t){return n["a"].request({method:"POST",url:"/material/insert",data:t})}function U(t){return n["a"].request({method:"POST",url:"/material/update",data:t})}function z(t){return n["a"].request({method:"POST",url:"/materialRecord/insert",data:t})}function V(t){return n["a"].request({method:"POST",url:"/materialInventory/insert",data:t})}function J(t){return n["a"].request({method:"GET",url:"/materialInventory/findById",params:t})}function H(t){return n["a"].request({method:"POST",url:"/keyManagement/insert",data:t})}function L(t){return n["a"].request({method:"POST",url:"/keyBorrow/examine",data:t})}function K(t){return n["a"].request({method:"GET",url:"/keyManagement/findById",params:t})}function Q(t){return n["a"].request({method:"POST",url:"/keyManagement/update",data:t})}function W(t){return n["a"].request({method:"POST",url:"/packageCollection/insert",data:t})}function X(t){return n["a"].request({method:"GET",url:"/packageCollection/findById",params:t})}function Y(t){return n["a"].request({method:"POST",url:"/packageCollection/update",data:t})}function Z(t){return n["a"].request({method:"POST",url:"/interview/insert",data:t})}function tt(t){return n["a"].request({method:"POST",url:"/greenArea/insert",data:t})}function et(t){return n["a"].request({method:"GET",url:"/greenArea/list",params:t})}function rt(t){return n["a"].request({method:"POST",url:"/greenTask/insert",data:t})}function nt(t){return n["a"].request({method:"GET",url:"/greenArea/findById",params:t})}function at(t){return n["a"].request({method:"POST",url:"/greenArea/update",data:t})}function ut(t){return n["a"].request({method:"POST",url:"/hygieneArea/insert",data:t})}function it(t){return n["a"].request({method:"GET",url:"/hygieneArea/list",params:t})}function ot(t){return n["a"].request({method:"POST",url:"/hygieneTask/insert",data:t})}function st(t){return n["a"].request({method:"GET",url:"/hygieneArea/findById",params:t})}function dt(t){return n["a"].request({method:"POST",url:"/hygieneArea/update",data:t})}function lt(t){return n["a"].request({method:"POST",url:"/regulationManagement/insert",data:t})}function ct(t){return n["a"].request({method:"GET",url:"/regulationManagement/release",params:t})}function mt(t){return n["a"].request({method:"GET",url:"/regulationManagement/findById",params:t})}function ft(t){return n["a"].request({method:"POST",url:"/regulationManagement/update",data:t})}function pt(t){return n["a"].request({method:"POST",url:"/serviceBrowsing/insert",data:t})}function ht(t){return n["a"].request({method:"POST",url:"/serviceBrowsing/update",data:t})}function bt(t){return n["a"].request({method:"GET",url:"/serviceBrowsing/findById",params:t})}function gt(t){return n["a"].request({method:"POST",url:"/communityIntroduction/insert",data:t})}function Tt(t){return n["a"].request({method:"POST",url:"/communityIntroduction/update",data:t})}function qt(t){return n["a"].request({method:"GET",url:"/communityIntroduction/enable",params:t})}function St(t){return n["a"].request({method:"GET",url:"/communityIntroduction/findById",params:t})}function yt(t){return n["a"].request({method:"POST",url:"/securityManagement/insert",data:t})}function Pt(t){return n["a"].request({method:"POST",url:"/securityManagement/update",data:t})}function Ot(t){return n["a"].request({method:"GET",url:"/securityManagement/list",params:t})}function vt(t){return n["a"].request({method:"GET",url:"/userDecorationNew/list",params:t})}}}]);
|