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
18 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f7265944"],{d142: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:"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.release(t.table_row)}}},[t._v(" 发布 ")]),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},on:{ruleSuccess:t.addRuleSuccess}},[e("template",{slot:"fileDocUrl"},[[e("el-upload",{attrs:{action:t.$baseUrl+"upload/uploadRegulationManagementDoc","on-success":t.fileSuccess,"on-remove":t.wordRemove,"on-exceed":t.handleExceed,"file-list":t.wordList,accept:".doc,.DOC,.docx,.DOCX",limit:1,"before-upload":t.beforeFileUpload}},[e("el-button",{attrs:{icon:"el-icon-edit",size:"small"}},[t._v("上传文件")]),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e("span",[t._v("支持扩展名doc,docx")])])],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.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}},[e("template",{slot:"fileDocUrl"},[[e("el-upload",{attrs:{action:t.$baseUrl+"upload/uploadRegulationManagementDoc","on-success":t.fileSuccess,"on-remove":t.wordRemove,"on-exceed":t.handleExceed,"file-list":t.wordList,accept:".doc,.DOC,.docx,.DOCX",limit:1,"before-upload":t.beforeFileUpload}},[e("el-button",{attrs:{icon:"el-icon-edit",size:"small"}},[t._v("上传文件")]),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e("span",[t._v("支持扩展名doc,docx")])])],1)]],2)],2)]],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=r("d63a"),i={data(){return{add_vrisible:!1,edit_vrisible:!1,addDate:null,wordList:[],addForm:{ruleForm:{title:null,content:null,status:null,fileDocUrl:null,fileDocName:null},rules:{title:[{required:!0,message:"请输入",trigger:"change"}],content:[{required:!0,message:"请输入",trigger:"change"}],status:[{required:!0,message:"请选择",trigger:"change"}]},form_item:[{type:"Input",label:"标题",placeholder:"请输入",width:"100%",prop:"title"},{type:"textarea",label:"内容",placeholder:"请输入",width:"100%",prop:"content"},{type:"Slot",label:"上传文件",placeholder:"请输入",width:"100%",prop:"fileDocUrl",slotName:"fileDocUrl"},{type:"Select",label:"发布状态",placeholder:"请输入",width:"100%",prop:"status",options:[{value:"1",label:"已发布"},{value:"2",label:"未发布"}]}]},editForm:{ruleForm:{title:null,content:null,status:null,fileDocUrl:null,fileDocName:null},rules:{},form_item:[{type:"Input",label:"标题",placeholder:"请输入",width:"100%",prop:"title"},{type:"textarea",label:"内容",placeholder:"请输入",width:"100%",prop:"content"},{type:"Slot",label:"上传文件",placeholder:"请输入",width:"100%",prop:"fileDocUrl",slotName:"fileDocUrl"},{type:"Select",label:"发布状态",placeholder:"请输入",width:"100%",prop:"status",options:[{value:1,label:"已发布"},{value:2,label:"未发布"}]}]},table_row:[],imglist:[],activeName:"0",config:{thead:[{label:"序号",type:"index",width:"80"},{label:"规程标题",prop:"title",width:"auto"},{label:"内容",prop:"content",width:"600"},{label:"状态",prop:"status",width:"180",type:"function",callback(t,e){switch(t.status){case 1:return"已发布";case 2:return"未发布";default:break}}},{label:"创建人名称",prop:"createName",width:"150"},{label:"最近修改时间",prop:"nearModifyDate",width:"150"},{label:"创建时间",prop:"createDate",width:"150"}],table_data:[],url:"regulationManagementList",search_item:[{type:"Input",label:"规程标题",placeholder:"请输入",prop:"title"},{type:"select",label:"状态",placeholder:"请选择",prop:"status",options:[{value:"1",label:"已发布"},{value:"2",label:"未发布"}]},{type:"Input",label:"创建人",placeholder:"请输入",prop:"createName"},{type:"picker",label:"最近修改时间",placeholder:"请输入",prop:"nearModifyDate",startDate:"nearModifyDateStart",endDate:"nearModifyDateEnd",width:"220px"},{type:"picker",label:"发布时间",placeholder:"请输入",prop:"createDate",startDate:"createDateStart",endDate:"createDateEnd",width:"220px"}],data:{pageNum:1,size:10}}}},methods:{add(){this.add_vrisible=!0},addClose(){this.$refs.addForm.reset(),this.wordList=[],this.add_vrisible=!1},addRuleSuccess(){let t={...this.addForm.ruleForm};Object(u["hb"])(t).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.$refs.table.loadData(),this.addClose())})},addSubmit(){this.$refs.addForm.submitForm()},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["gb"])({id:t[0].id}).then(t=>{console.log(t.data),this.editForm.ruleForm.title=t.data.title,this.editForm.ruleForm.content=t.data.content,this.editForm.ruleForm.fileDocUrl=t.data.fileDocUrl,this.editForm.ruleForm.fileDocName=t.data.fileDocName;let e={name:t.data.fileDocName,url:t.data.fileDocUrl};this.$set(this.wordList,"0",e),this.editForm.ruleForm.status=t.data.status}))},editClose(){this.$refs.editForm.reset(),this.edit_vrisible=!1},editSubmit(){let t={...this.editForm.ruleForm,id:this.editForm.ruleForm.id};Object(u["jb"])(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 r=null;r=0!=this.activeName?this.activeName:null;const n={pageNum:1,size:10,status:r};this.$refs.table.requestData(n)},fileSuccess(t,e){this.addForm.ruleForm.fileDocUrl=e.response.url,this.editForm.ruleForm.fileDocUrl=e.response.url},handleExceed(t,e){this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${t.length} 个文件,共选择了 ${t.length+e.length} 个文件`)},wordRemove(){this.addForm.ruleForm.fileDocUrl=null},beforeFileUpload(t){console.log(t),this.addForm.ruleForm.fileDocName=t.name,this.editForm.ruleForm.fileDocName=t.name;const e=t.size/1024/1024<2,r=t.name.endsWith(".doc")||t.name.endsWith(".docx");return console.log(r),r||this.$message.error("上传头像图片只能是 doc/docx 格式!"),e||this.$message.error("上传文件大小不能超过 2MB!"),r&&e},release(t){1==t[0].status||t.length>1?this.$message({message:"发布失败",type:"error"}):Object(u["ib"])({id:t[0].id}).then(t=>{console.log(t),t.status&&(this.$message({message:t.message,type:"success"}),this.$refs.table.loadData())})},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"),l=Object(s["a"])(o,n,a,!1,null,null,null);e["default"]=l.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 l})),r.d(e,"s",(function(){return d})),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 y})),r.d(e,"vb",(function(){return v})),r.d(e,"ub",(function(){return S})),r.d(e,"bb",(function(){return w})),r.d(e,"cb",(function(){return O})),r.d(e,"ab",(function(){return D})),r.d(e,"G",(function(){return P})),r.d(e,"I",(function(){return F})),r.d(e,"F",(function(){return C})),r.d(e,"D",(function(){return _})),r.d(e,"K",(function(){return E})),r.d(e,"N",(function(){return k})),r.d(e,"J",(function(){return G})),r.d(e,"M",(function(){return B})),r.d(e,"H",(function(){return M})),r.d(e,"sb",(function(){return x})),r.d(e,"tb",(function(){return I})),r.d(e,"L",(function(){return N})),r.d(e,"E",(function(){return $})),r.d(e,"W",(function(){return U})),r.d(e,"X",(function(){return R})),r.d(e,"T",(function(){return A})),r.d(e,"Z",(function(){return j})),r.d(e,"Y",(function(){return z})),r.d(e,"V",(function(){return L})),r.d(e,"U",(function(){return V})),r.d(e,"R",(function(){return J})),r.d(e,"P",(function(){return W})),r.d(e,"Q",(function(){return X})),r.d(e,"S",(function(){return H})),r.d(e,"eb",(function(){return K})),r.d(e,"db",(function(){return Q})),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 lt})),r.d(e,"hb",(function(){return dt})),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 yt})),r.d(e,"kb",(function(){return vt})),r.d(e,"mb",(function(){return St})),r.d(e,"lb",(function(){return wt})),r.d(e,"wb",(function(){return Ot}));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 l(t){return n["a"].request({method:"POST",url:"facilitiesPlan/open",data:t})}function d(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 y(t){return n["a"].request({method:"POST",url:"/facilitiesCategory/insert",data:t})}function v(t){return n["a"].request({method:"POST",url:"/userDecorationNew/examine",data:t})}function S(t){return n["a"].request({method:"POST",url:"/userDecorationNew/assign",data:t})}function w(t){return n["a"].request({method:"POST",url:"/ownersCommittee/insert",data:t})}function O(t){return n["a"].request({method:"POST",url:"/ownersCommittee/update",data:t})}function D(t){return n["a"].request({method:"GET",url:"/ownersCommittee/findById",params:t})}function P(t){return n["a"].request({method:"POST",url:"/inspectionPoint/insert",data:t})}function F(t){return n["a"].request({method:"POST",url:"/inspectionPoint/update",data:t})}function C(t){return n["a"].request({method:"GET",url:"/inspectionPoint/findById",params:t})}function _(t){return n["a"].request({method:"POST",url:"/inspectionPlan/insert",data:t})}function E(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 G(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 M(t){return n["a"].request({method:"GET",url:"/inspectionPoint/list",params:t})}function x(t){return n["a"].request({method:"GET",url:"/sysOrganization/findAllDepartment",params:t})}function I(t){return n["a"].request({method:"GET",url:"/sysUser/list",params:t})}function N(t){return n["a"].request({method:"GET",url:"/inspectionRoute/isEnable",params:t})}function $(t){return n["a"].request({method:"GET",url:"/inspectionPlan/isEnable",params:t})}function U(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 A(t){return n["a"].request({method:"POST",url:"/material/insert",data:t})}function j(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 L(t){return n["a"].request({method:"POST",url:"/materialInventory/insert",data:t})}function V(t){return n["a"].request({method:"GET",url:"/materialInventory/findById",params:t})}function J(t){return n["a"].request({method:"POST",url:"/keyManagement/insert",data:t})}function W(t){return n["a"].request({method:"POST",url:"/keyBorrow/examine",data:t})}function X(t){return n["a"].request({method:"GET",url:"/keyManagement/findById",params:t})}function H(t){return n["a"].request({method:"POST",url:"/keyManagement/update",data:t})}function K(t){return n["a"].request({method:"POST",url:"/packageCollection/insert",data:t})}function Q(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 lt(t){return n["a"].request({method:"POST",url:"/hygieneArea/update",data:t})}function dt(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 yt(t){return n["a"].request({method:"GET",url:"/communityIntroduction/findById",params:t})}function vt(t){return n["a"].request({method:"POST",url:"/securityManagement/insert",data:t})}function St(t){return n["a"].request({method:"POST",url:"/securityManagement/update",data:t})}function wt(t){return n["a"].request({method:"GET",url:"/securityManagement/list",params:t})}function Ot(t){return n["a"].request({method:"GET",url:"/userDecorationNew/list",params:t})}}}]);
//# sourceMappingURL=chunk-f7265944.b23b4192.js.map