You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
14 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6924ac0d"],{d63a:function(t,e,n){"use strict";n.d(e,"n",(function(){return a})),n.d(e,"e",(function(){return u})),n.d(e,"qb",(function(){return i})),n.d(e,"rb",(function(){return o})),n.d(e,"q",(function(){return d})),n.d(e,"r",(function(){return s})),n.d(e,"s",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"o",(function(){return m})),n.d(e,"p",(function(){return f})),n.d(e,"l",(function(){return h})),n.d(e,"k",(function(){return p})),n.d(e,"j",(function(){return b})),n.d(e,"m",(function(){return T})),n.d(e,"f",(function(){return q})),n.d(e,"i",(function(){return g})),n.d(e,"g",(function(){return y})),n.d(e,"vb",(function(){return O})),n.d(e,"ub",(function(){return P})),n.d(e,"bb",(function(){return S})),n.d(e,"cb",(function(){return v})),n.d(e,"ab",(function(){return w})),n.d(e,"G",(function(){return C})),n.d(e,"I",(function(){return E})),n.d(e,"F",(function(){return _})),n.d(e,"D",(function(){return k})),n.d(e,"K",(function(){return F})),n.d(e,"N",(function(){return G})),n.d(e,"J",(function(){return B})),n.d(e,"M",(function(){return I})),n.d(e,"H",(function(){return D})),n.d(e,"sb",(function(){return M})),n.d(e,"tb",(function(){return N})),n.d(e,"L",(function(){return x})),n.d(e,"E",(function(){return A})),n.d(e,"W",(function(){return R})),n.d(e,"X",(function(){return $})),n.d(e,"T",(function(){return j})),n.d(e,"Z",(function(){return V})),n.d(e,"Y",(function(){return z})),n.d(e,"V",(function(){return J})),n.d(e,"U",(function(){return L})),n.d(e,"R",(function(){return U})),n.d(e,"P",(function(){return H})),n.d(e,"Q",(function(){return K})),n.d(e,"S",(function(){return Q})),n.d(e,"eb",(function(){return W})),n.d(e,"db",(function(){return X})),n.d(e,"fb",(function(){return Y})),n.d(e,"O",(function(){return Z})),n.d(e,"u",(function(){return tt})),n.d(e,"v",(function(){return et})),n.d(e,"x",(function(){return nt})),n.d(e,"t",(function(){return rt})),n.d(e,"w",(function(){return at})),n.d(e,"z",(function(){return ut})),n.d(e,"A",(function(){return it})),n.d(e,"C",(function(){return ot})),n.d(e,"y",(function(){return dt})),n.d(e,"B",(function(){return st})),n.d(e,"hb",(function(){return ct})),n.d(e,"ib",(function(){return lt})),n.d(e,"gb",(function(){return mt})),n.d(e,"jb",(function(){return ft})),n.d(e,"ob",(function(){return ht})),n.d(e,"pb",(function(){return pt})),n.d(e,"nb",(function(){return bt})),n.d(e,"c",(function(){return Tt})),n.d(e,"d",(function(){return qt})),n.d(e,"a",(function(){return gt})),n.d(e,"b",(function(){return yt})),n.d(e,"kb",(function(){return Ot})),n.d(e,"mb",(function(){return Pt})),n.d(e,"lb",(function(){return St})),n.d(e,"wb",(function(){return vt}));var r=n("b775");n("2c37");function a(t){return r["a"].request({method:"POST",url:"/facilitiesManage/insert",data:t})}function u(t){return r["a"].request({method:"POST",url:"facilitiesAppointment/update",data:t})}function i(t){return r["a"].request({method:"POST",url:"sysOperations/insert",data:t})}function o(t){return r["a"].request({method:"POST",url:"sysOperations/update",data:t})}function d(t){return r["a"].request({method:"POST",url:"facilitiesPlan/insert",data:t})}function s(t){return r["a"].request({method:"POST",url:"facilitiesPlan/open",data:t})}function c(t){return r["a"].request({method:"POST",url:"facilitiesPlan/stop",data:t})}function l(t){return r["a"].request({method:"GET",url:"/facilitiesCategory/list",params:t})}function m(t){return r["a"].request({method:"GET",url:"/facilitiesManage/list",params:t})}function f(t){return r["a"].request({method:"POST",url:"/facilitiesManage/update",data:t})}function h(t){return r["a"].request({method:"GET",url:"/facilitiesMaintenanceRecord/list",params:t})}function p(t){return r["a"].request({method:"POST",url:"/facilitiesMaintenanceRecord/insert",data:t})}function b(t){return r["a"].request({method:"POST",url:"/facilitiesMaintenanceRecord/delete",data:t})}function T(t){return r["a"].request({method:"GET",url:"/facilitiesManage/findDetailById",params:t})}function q(t){return r["a"].request({method:"GET",url:"/facilitiesCategory/findDetailById",params:t})}function g(t){return r["a"].request({method:"POST",url:"/facilitiesCategory/update",data:t})}function y(t){return r["a"].request({method:"POST",url:"/facilitiesCategory/insert",data:t})}function O(t){return r["a"].request({method:"POST",url:"/userDecorationNew/examine",data:t})}function P(t){return r["a"].request({method:"POST",url:"/userDecorationNew/assign",data:t})}function S(t){return r["a"].request({method:"POST",url:"/ownersCommittee/insert",data:t})}function v(t){return r["a"].request({method:"POST",url:"/ownersCommittee/update",data:t})}function w(t){return r["a"].request({method:"GET",url:"/ownersCommittee/findById",params:t})}function C(t){return r["a"].request({method:"POST",url:"/inspectionPoint/insert",data:t})}function E(t){return r["a"].request({method:"POST",url:"/inspectionPoint/update",data:t})}function _(t){return r["a"].request({method:"GET",url:"/inspectionPoint/findById",params:t})}function k(t){return r["a"].request({method:"POST",url:"/inspectionPlan/insert",data:t})}function F(t){return r["a"].request({method:"POST",url:"/inspectionRoute/insert",data:t})}function G(t){return r["a"].request({method:"POST",url:"/inspectionRoute/update",data:t})}function B(t){return r["a"].request({method:"GET",url:"/inspectionRoute/findById",params:t})}function I(t){return r["a"].request({method:"GET",url:"/inspectionRoute/list",params:t})}function D(t){return r["a"].request({method:"GET",url:"/inspectionPoint/list",params:t})}function M(t){return r["a"].request({method:"GET",url:"/sysOrganization/findAllDepartment",params:t})}function N(t){return r["a"].request({method:"GET",url:"/sysUser/list",params:t})}function x(t){return r["a"].request({method:"GET",url:"/inspectionRoute/isEnable",params:t})}function A(t){return r["a"].request({method:"GET",url:"/inspectionPlan/isEnable",params:t})}function R(t){return r["a"].request({method:"GET",url:"/material/list",params:t})}function $(t){return r["a"].request({method:"GET",url:"/materialRecord/findById",params:t})}function j(t){return r["a"].request({method:"POST",url:"/material/insert",data:t})}function V(t){return r["a"].request({method:"POST",url:"/material/update",data:t})}function z(t){return r["a"].request({method:"POST",url:"/materialRecord/insert",data:t})}function J(t){return r["a"].request({method:"POST",url:"/materialInventory/insert",data:t})}function L(t){return r["a"].request({method:"GET",url:"/materialInventory/findById",params:t})}function U(t){return r["a"].request({method:"POST",url:"/keyManagement/insert",data:t})}function H(t){return r["a"].request({method:"POST",url:"/keyBorrow/examine",data:t})}function K(t){return r["a"].request({method:"GET",url:"/keyManagement/findById",params:t})}function Q(t){return r["a"].request({method:"POST",url:"/keyManagement/update",data:t})}function W(t){return r["a"].request({method:"POST",url:"/packageCollection/insert",data:t})}function X(t){return r["a"].request({method:"GET",url:"/packageCollection/findById",params:t})}function Y(t){return r["a"].request({method:"POST",url:"/packageCollection/update",data:t})}function Z(t){return r["a"].request({method:"POST",url:"/interview/insert",data:t})}function tt(t){return r["a"].request({method:"POST",url:"/greenArea/insert",data:t})}function et(t){return r["a"].request({method:"GET",url:"/greenArea/list",params:t})}function nt(t){return r["a"].request({method:"POST",url:"/greenTask/insert",data:t})}function rt(t){return r["a"].request({method:"GET",url:"/greenArea/findById",params:t})}function at(t){return r["a"].request({method:"POST",url:"/greenArea/update",data:t})}function ut(t){return r["a"].request({method:"POST",url:"/hygieneArea/insert",data:t})}function it(t){return r["a"].request({method:"GET",url:"/hygieneArea/list",params:t})}function ot(t){return r["a"].request({method:"POST",url:"/hygieneTask/insert",data:t})}function dt(t){return r["a"].request({method:"GET",url:"/hygieneArea/findById",params:t})}function st(t){return r["a"].request({method:"POST",url:"/hygieneArea/update",data:t})}function ct(t){return r["a"].request({method:"POST",url:"/regulationManagement/insert",data:t})}function lt(t){return r["a"].request({method:"GET",url:"/regulationManagement/release",params:t})}function mt(t){return r["a"].request({method:"GET",url:"/regulationManagement/findById",params:t})}function ft(t){return r["a"].request({method:"POST",url:"/regulationManagement/update",data:t})}function ht(t){return r["a"].request({method:"POST",url:"/serviceBrowsing/insert",data:t})}function pt(t){return r["a"].request({method:"POST",url:"/serviceBrowsing/update",data:t})}function bt(t){return r["a"].request({method:"GET",url:"/serviceBrowsing/findById",params:t})}function Tt(t){return r["a"].request({method:"POST",url:"/communityIntroduction/insert",data:t})}function qt(t){return r["a"].request({method:"POST",url:"/communityIntroduction/update",data:t})}function gt(t){return r["a"].request({method:"GET",url:"/communityIntroduction/enable",params:t})}function yt(t){return r["a"].request({method:"GET",url:"/communityIntroduction/findById",params:t})}function Ot(t){return r["a"].request({method:"POST",url:"/securityManagement/insert",data:t})}function Pt(t){return r["a"].request({method:"POST",url:"/securityManagement/update",data:t})}function St(t){return r["a"].request({method:"GET",url:"/securityManagement/list",params:t})}function vt(t){return r["a"].request({method:"GET",url:"/userDecorationNew/list",params:t})}},ecca:function(t,e,n){"use strict";n.r(e);var r=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:"tabs"},[e("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{attrs:{label:"全部",name:"0"}})],1)],1),e("template",{slot:"footer"},[e("div",{staticClass:"table-footer"},[e("button",{on:{click:function(e){return t.edit(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}})]],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.edit_vrisible},on:{drawerClose:t.editClose}},[e("div",{staticStyle:{padding:"30px"}},[e("FromCard",[e("template",{slot:"title"},[t._v("服务信息")]),[e("VueForm",{ref:"editForm",attrs:{formObj:t.editForm}})]],2)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("button",{staticClass:"btn-orange",on:{click:function(e){return t.editSubmit()}}},[e("span",[e("i",{staticClass:"el-icon-circle-check"}),t._v("提交")])]),e("button",{staticClass:"btn-gray",on:{click:t.editClose}},[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=n("d63a"),i={data(){return{add_vrisible:!1,edit_vrisible:!1,addDate:null,addForm:{ruleForm:{},rules:{},form_item:[{type:"Input",label:"服务名称",placeholder:"请输入",width:"100%",prop:"name"},{type:"textarea",label:"服务介绍",placeholder:"请输入",width:"100%",prop:"content"}]},editForm:{ruleForm:{name:null,content:null},rules:{},form_item:[{type:"Input",label:"服务名称",placeholder:"请输入",width:"100%",prop:"name"},{type:"textarea",label:"服务介绍",placeholder:"请输入",width:"100%",prop:"content"}]},table_row:[],imglist:[],activeName:"0",config:{thead:[{label:"序号",type:"index",width:"80"},{label:"服务名称",prop:"name",width:"auto"},{label:"服务介绍",prop:"content",width:"auto"},{label:"创建人名称",prop:"createName",width:"auto"},{label:"创建时间",prop:"createDate",width:"auto"}],table_data:[],url:"serviceBrowsingList",search_item:[{type:"Input",label:"服务名称",placeholder:"请输入",prop:"name"},{type:"Input",label:"创建人",placeholder:"请输入",prop:"createName"},{type:"picker",label:"发布时间",placeholder:"请输入",prop:"createDate",startDate:"createDateStart",endDate:"createDateEnd",width:"280px"}],data:{pageNum:1,size:10}}}},methods:{add(){this.add_vrisible=!0},addClose(){this.$refs.addForm.reset(),this.add_vrisible=!1},addSubmit(){let t={...this.addForm.ruleForm};Object(u["ob"])(t).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.$refs.table.loadData(),this.addClose())})},edit(t){1!=t.length?this.$message({message:"只能编辑一条数据",type:"error"}):(this.edit_vrisible=!0,console.log(t[0].id),this.editForm.ruleForm.id=t[0].id,Object(u["nb"])({id:t[0].id}).then(t=>{console.log(t.data),this.editForm.ruleForm.name=t.data.name,this.editForm.ruleForm.content=t.data.content}))},editClose(){this.$refs.editForm.reset(),this.edit_vrisible=!1},editSubmit(){let t={...this.editForm.ruleForm,id:this.editForm.ruleForm.id};Object(u["pb"])(t).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.$refs.table.loadData(),this.editClose())})},dateTimeChange(t){this.addForm.ruleForm.openStartDate=t[0],this.addForm.ruleForm.openEndDate=t[1]},handleClick(t,e){let n=null;n=0!=this.activeName?this.activeName:null;const r={pageNum:1,size:10,status:n};this.$refs.table.requestData(r)},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,d=n("2877"),s=Object(d["a"])(o,r,a,!1,null,null,null);e["default"]=s.exports}}]);
//# sourceMappingURL=chunk-6924ac0d.a7f396c3.js.map