|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-402ef35e"],{"582f":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-content"},[t("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"报表导入",name:"first"}},[t("div",{staticClass:"content"},[t("div",{staticStyle:{"margin-left":"16px"}}),t("div",{},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"700",border:""}},[t("el-table-column",{attrs:{prop:"index",label:"序号",width:"80"}}),t("el-table-column",{attrs:{prop:"type",label:"功能大类",width:"200"}}),t("el-table-column",{attrs:{prop:"name",label:"可导入报表模块",width:"220"}}),t("el-table-column",{attrs:{label:"导入excel",width:"280"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.download(n.row)}}},[e._v("下载模板")]),t("el-button",{attrs:{type:"text",size:"small"}},[t("div",[t("el-upload",{attrs:{action:""+(e.$baseUrl+n.row.upload),"on-success":e.fileSuccess,headers:e.token,"on-remove":e.wordRemove,"on-exceed":e.handleExceed,"file-list":e.wordList,accept:".xlsx,xls",limit:1,"before-upload":e.beforeFileUpload}},[t("el-button",{attrs:{icon:"el-icon-edit",size:"small"}},[e._v("上传文件")]),t("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t("span",[e._v("支持扩展名:xls,xlsx")])])],1)],1)])]}}])})],1)],1)])]),t("el-tab-pane",{attrs:{label:"导出模板设置",name:"second"}},[t("div",{staticClass:"content"},[t("div",{staticStyle:{"margin-left":"16px"}}),t("div",{},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableDatamodu,height:"700",border:""}},[t("el-table-column",{attrs:{prop:"index",label:"序号",width:"80"}}),t("el-table-column",{attrs:{prop:"type",label:"功能大类",width:"200"}}),t("el-table-column",{attrs:{prop:"name",label:"可设置模板模块",width:"220"}}),t("el-table-column",{attrs:{label:"设置模板",width:"280"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-button",{attrs:{type:"text",size:"small"}},[t("div",[t("el-upload",{attrs:{action:""+(e.$baseUrl+n.row.upload),"on-success":e.fileSuccess,headers:e.token,"on-remove":e.wordRemove,"on-exceed":e.handleExceed,"file-list":e.wordList,accept:".xlsx,.xls",limit:1,"before-upload":e.beforeFileUpload}},[t("el-button",{attrs:{icon:"el-icon-edit",size:"small"}},[e._v("设置导出模板")]),t("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t("span",[e._v("支持扩展名:xls,xlsx")])])],1)],1)]),t("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.modownload(n.row)}}},[e._v("下载模板")])]}}])}),t("el-table-column",{attrs:{prop:"caozuo",label:"根据模板导出excel",width:"180"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("download-excel",{staticClass:"export-excel-wrapper",attrs:{data:n.row.json_data,fields:n.row.json_fields,name:n.row.filename}},[t("el-button",{attrs:{type:"primary",size:"small"}},[e._v("导出EXCEL")])],1)]}}])})],1)],1)])])],1)],1)},r=[],s=n("fcac"),u=n("662b"),o={data(){return{json_fields:{},json_data:[{name:"汤姆",username:"admin1",organization:"地球村",auth:"超级管理员"},{name:"杰米",username:"admin2",organization:"地球村",auth:"超级管理员"}],json_meta:[[{" key ":" charset "," value ":" utf- 8 "}]],activeName:"first",token:{"X-Admin-Token":sessionStorage["X-Admin-Token"]},systemTime:"1",add_vrisible:!0,addDate:null,table_row:[],wordList:[],addForm:{ruleForm:{fileDocUrl:null,fileDocName:null,organizationId:null,contractPerson:null,entryDate:null},rules:{fileDocUrl:[{required:!0,message:"请选择文件",trigger:"change"}]},form_item:[{type:"Slot",label:"上传文件",placeholder:"请输入",width:"100%",prop:"file",slotName:"fileDocUrl"}]},tableData:[{index:"1",type:"基础档案",name:"房产管理",url:"https://star.kaidalai.cn/static/excel-model/房屋导入模版1.xlsx",upload:"uploadFile/UploadEstateFile"},{index:"2",type:"日常管理",name:"服务浏览",url:"https://star.kaidalai.cn/static/excel-model/%E6%9C%8D%E5%8A%A1%E6%B5%8F%E8%A7%88%E5%AF%BC%E5%85%A5%E6%A8%A1%E7%89%88.xlsx",upload:"uploadFile/UploadServiceBrowsingFile"},{index:"3",type:"日常管理",name:"钥匙管理",url:"https://star.kaidalai.cn/static/excel-model/%E9%92%A5%E5%8C%99%E5%AF%BC%E5%85%A5%E6%A8%A1%E7%89%88.xlsx",upload:"uploadFile/UploadKeyFile"},{index:"4",type:"日常管理",name:"绿化区域",url:"https://star.kaidalai.cn/static/excel-model/%E7%BB%BF%E5%8C%96%E5%8C%BA%E5%9F%9F%E5%AF%BC%E5%85%A5%E6%A8%A1%E7%89%88.xlsx",upload:"uploadFile/UploadGreenAreaFile"},{index:"5",type:"收费管理",name:"欠费记录",url:"https://star.kaidalai.cn/static/excel-model/%E6%AC%A0%E8%B4%B9%E8%AE%B0%E5%BD%95%E5%AF%BC%E5%85%A5%E6%A8%A1%E7%89%88.xlsx",upload:"uploadFile/UploadDailyPaymentFile"}],tableDatamodu:[{index:"1",type:"日常管理",name:"绿化区域",url:"https://star.kaidalai.cn/static/excel-model/绿化任务导出模版.xls",upload:"upload/uploadModelExcel",filename:"绿化任务导出模版.xls",dataurl:"greenTaskList",json_fields:{"绿化区域名称":"greenAreaName","工作内容":"content","负责人名称":"directorName","状态":{field:"status",callback:e=>{switch(e){case 1:return"待处理";case 2:return"已处理";case 3:return"未完成";default:break}}},"截止时间":"endDate"},json_data:[]},{index:"2",type:"日常管理",name:"卫生任务",url:"https://star.kaidalai.cn/static/excel-model/卫生任务导出模版.xls",upload:"upload/uploadModelExcel",filename:"卫生任务导出模版.xls",json_fields:{"卫生区域名称":"hygieneAreaName","工作内容":"content","负责人名称":"directorName","状态":{field:"status",callback:e=>{switch(e){case 1:return"待处理";case 2:return"已处理";case 3:return"未完成";default:break}}},"截止时间":"endDate"},json_data:[]},{index:"3",type:"收费管理",name:"日常缴费",url:"https://star.kaidalai.cn/static/excel-model/日常缴费导出模版.xls",upload:"upload/uploadModelExcel",filename:"日常缴费导出模版.xls",json_fields:{"收费项目名称":"name","房屋信息":"roomName","计费开始时间":"beginDate","计费结束时间":"endDate","费用金额":"costPrice","已缴金额":"paidPrice","应收金额":"paidPrice","待缴金额":"paymentPrice","状态":{field:"status",callback:e=>{switch(e){case 1:return"已缴纳";default:return"未缴纳"}}},"创建人":"createName","费率":"rate","滞纳金":"overdueFine"},json_data:[]}]}},mounted(){Object(s["x"])({pageNum:1,size:50}).then(e=>{console.log(e.tableList),this.tableDatamodu[0].json_data=e.tableList}),Object(s["y"])({pageNum:1,size:50}).then(e=>{this.tableDatamodu[1].json_data=e.tableList}),Object(s["m"])({pageNum:1,size:50}).then(e=>{this.tableDatamodu[2].json_data=e.tableList})},methods:{handleClick(e,t){console.log(e,t)},download(e){console.log(e.url),window.open(e.url)},modownload(e){console.log(e.url),window.open(e.url)},getTime(){let e=new Date,t={year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()};this.systemTime=t.year+"-0"+t.month+"-"+t.day},tableCheck(e){this.table_row=e},changeurl(e){console.log(e.dataurl),this._url=e.dataurl},fetchData(){this.changeurl(scope.row);let e={url:this._url,data:{pageNum:1,size:100}};const t=Object(u["a"])(e,this);return t},ExcelLoading(e,t){const n=this.$loading({lock:!0,text:"正在导出Excel"+e,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});n.text=`正在导出Excel ${e}/${t}`,console.log(n.text)},finishDownload(){const e=this.$loading();e.close(),this.getTime(),console.log(this.systemTime),this.tableData[0].time=this.systemTime},fileSuccess(e,t){this.addForm.ruleForm.fileDocUrl=t.response.url,console.log(t.response),1==t.response.status?(this.$message({message:t.response.message,type:"success"}),this.wordList=[]):(this.$message({message:"导入失败",type:"error"}),this.wordList=[])},handleExceed(e,t){this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${e.length} 个文件,共选择了 ${e.length+t.length} 个文件`)},wordRemove(){this.addForm.ruleForm.fileDocUrl=null},beforeFileUpload(e){console.log(e),this.addForm.ruleForm.fileDocName=e.name;const t=e.size/1024/1024<2,n=e.name.endsWith(".xls")||e.name.endsWith(".xlsx");return console.log(n),n||this.$message.error("上传头像图片只能是 xls/xlsx 格式!"),t||this.$message.error("上传文件大小不能超过 2MB!"),n&&t},add(){this.add_vrisible=!0},addClose(){this.$refs.addForm.reset(),this.add_vrisible=!1,this.wordList=[]},addSubmit(){if(null==this.addForm.ruleForm.fileDocUrl)this.$message({type:"error",message:"请上传文件"});else{let e={...this.addForm.ruleForm};contractInsert(e).then(e=>{e.status&&(this.$message({message:e.message,type:"success"}),this.$refs.table.loadData(),this.addClose())})}}}},l=o,i=n("2877"),d=Object(i["a"])(l,a,r,!1,null,null,null);t["default"]=d.exports},"662b":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));n("f2d9");var a=n("2b74");async function r(e,t){let n=[];const r=await Object(a["b"])(e);if(n.push(...r.tableList),r.pageCount>1)for(let s=1;s<r.pageCount;s++){e.pageNum=s+1;const u=await Object(a["b"])(e);t.ExcelLoading(s,r.pageCount),n.push(...u.tableList)}return n}async function s(e){let t=[];const n=await Object(a["b"])(e);return console.log(n),t.push(...n.tableList),t}},fcac:function(e,t,n){"use strict";n.d(t,"p",(function(){return r})),n.d(t,"q",(function(){return s})),n.d(t,"r",(function(){return u})),n.d(t,"M",(function(){return o})),n.d(t,"K",(function(){return l})),n.d(t,"L",(function(){return i})),n.d(t,"J",(function(){return d})),n.d(t,"P",(function(){return c})),n.d(t,"O",(function(){return m})),n.d(t,"N",(function(){return f})),n.d(t,"Z",(function(){return p})),n.d(t,"X",(function(){return h})),n.d(t,"Y",(function(){return b})),n.d(t,"z",(function(){return y})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return x})),n.d(t,"c",(function(){return E})),n.d(t,"H",(function(){return T})),n.d(t,"G",(function(){return w})),n.d(t,"I",(function(){return q})),n.d(t,"U",(function(){return S})),n.d(t,"V",(function(){return P})),n.d(t,"ab",(function(){return O})),n.d(t,"cb",(function(){return v})),n.d(t,"bb",(function(){return k})),n.d(t,"A",(function(){return _})),n.d(t,"db",(function(){return F})),n.d(t,"W",(function(){return A})),n.d(t,"eb",(function(){return D})),n.d(t,"E",(function(){return G})),n.d(t,"F",(function(){return C})),n.d(t,"u",(function(){return U})),n.d(t,"S",(function(){return z})),n.d(t,"R",(function(){return j})),n.d(t,"T",(function(){return R})),n.d(t,"Q",(function(){return B})),n.d(t,"l",(function(){return L})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return $})),n.d(t,"j",(function(){return I})),n.d(t,"i",(function(){return M})),n.d(t,"k",(function(){return J})),n.d(t,"f",(function(){return K})),n.d(t,"h",(function(){return W})),n.d(t,"g",(function(){return X})),n.d(t,"w",(function(){return H})),n.d(t,"s",(function(){return Y})),n.d(t,"t",(function(){return Q})),n.d(t,"v",(function(){return V})),n.d(t,"o",(function(){return Z})),n.d(t,"n",(function(){return ee})),n.d(t,"D",(function(){return te})),n.d(t,"B",(function(){return ne})),n.d(t,"C",(function(){return ae})),n.d(t,"x",(function(){return re})),n.d(t,"y",(function(){return se})),n.d(t,"m",(function(){return ue}));var a=n("b775");n("2c37");function r(e){return a["a"].request({method:"GET",url:"/dataStatistics/findLastMonthPayCostDetail",params:e})}function s(e){return a["a"].request({method:"GET",url:"/dataStatistics/findPaymentStatistics",params:e})}function u(e){return a["a"].request({method:"GET",url:"/dataStatistics/findTodayEnvironmentalHealth",params:e})}function o(e){return a["a"].request({method:"GET",url:"/sysOrganization/list",params:e})}function l(e){return a["a"].request({method:"GET",url:"/sysOrganization/findById",params:e})}function i(e){return a["a"].request({method:"POST",url:"/sysOrganization/insert",data:e})}function d(e){return a["a"].request({method:"GET",url:"/sysOrganization/delete",params:e})}function c(e){return a["a"].request({method:"POST",url:"/sysOrganization/update",data:e})}function m(e){return a["a"].request({method:"GET",url:"/sysOrganization/stop",params:e})}function f(e){return a["a"].request({method:"GET",url:"/sysOrganization/recovery",params:e})}function p(e){return a["a"].request({method:"GET",url:"/sysUser/list",params:e})}function h(e){return a["a"].request({method:"GET",url:"/sysUser/findById",params:e})}function b(e){return a["a"].request({method:"POST",url:"/sysUser/insert",data:e})}function y(e){return a["a"].request({method:"POST",url:"/identity/insert",data:e})}function g(e){return a["a"].request({method:"GET",url:"/RPRecords/list",params:e})}function x(e){return a["a"].request({method:"POST",url:"/RPRecords/insert",data:e})}function E(e){return a["a"].request({method:"POST",url:"/RPRecords/delete",data:e})}function T(e){return a["a"].request({method:"GET",url:"/stationChange/list",params:e})}function w(e){return a["a"].request({method:"POST",url:"/stationChange/insert",data:e})}function q(e){return a["a"].request({method:"POST",url:"/stationChange/delete",data:e})}function S(e){return a["a"].request({method:"GET",url:"/sysUser/allowLogins",params:e})}function P(e){return a["a"].request({method:"GET",url:"/sysUser/disableLogins",params:e})}function O(e){return a["a"].request({method:"GET",url:"/sysUser/recovery",params:e})}function v(e){return a["a"].request({method:"GET",url:"/sysUser/stop",params:e})}function k(e){return a["a"].request({method:"POST",url:"/sysUser/resetPWD",data:e})}function _(e){return a["a"].request({method:"GET",url:"/identity/listAll",params:e})}function F(e){return a["a"].request({method:"POST",url:"/sysUser/update",data:e})}function A(e){return a["a"].request({method:"GET",url:"/sysUser/falseDelete",params:e})}function D(e){return a["a"].request({method:"POST",url:"/train/insert",data:e})}function G(e){return a["a"].request({method:"POST",url:"/salary/insert",data:e})}function C(e){return a["a"].request({method:"POST",url:"/salary/update",data:e})}function U(e){return a["a"].request({method:"GET",url:"/sysRole/roleList",params:e})}function z(e){return a["a"].request({method:"POST",url:"/sysRole/insertRole",data:e})}function j(e){return a["a"].request({method:"GET",url:"/sysRole/findByRoleId",params:e})}function R(e){return a["a"].request({method:"POST",url:"/sysRole/updateRole",data:e})}function B(e){return a["a"].request({method:"POST",url:"/sysRole/deleteRole",data:e})}function L(e){return a["a"].request({method:"POST",url:"/contract/insert",data:e})}function N(e){return a["a"].request({method:"GET",url:"/attendanceRecord/cardReplacement",params:e})}function $(e){return a["a"].request({method:"POST",url:"/attendanceRecord/reviewer",data:e})}function I(e){return a["a"].request({method:"POST",url:"/attendanceTeam/insert",data:e})}function M(e){return a["a"].request({method:"GET",url:"/attendanceTeam/findPeopleById",params:e})}function J(e){return a["a"].request({method:"GET",url:"/attendanceTeam/list",params:e})}function K(e){return a["a"].request({method:"GET",url:"/attendanceSchedulingPlan/enable",params:e})}function W(e){return a["a"].request({method:"POST",url:"/attendanceSchedulingPlan/insert",data:e})}function X(e){return a["a"].request({method:"GET",url:"/attendanceSchedulingPlan/findById",params:e})}function H(e){return a["a"].request({method:"POST",url:"/functionAuthority/updateRole",data:e})}function Y(e){return a["a"].request({method:"GET",url:"/functionAuthority/list",params:e})}function Q(e){return a["a"].request({method:"GET",url:"/functionAuthority/listJurisdiction",params:e})}function V(e){return a["a"].request({method:"POST",url:"/functionAuthority/updateOneJurisdiction",data:e})}function Z(e){return a["a"].request({method:"POST",url:"/dataDictionary/update",data:e})}function ee(e){return a["a"].request({method:"POST",url:"/dataBase/insert",data:e})}function te(e){return a["a"].request({method:"POST",url:"/remind/insert",data:e})}function ne(e){return a["a"].request({method:"POST",url:"/prohibitedKeywords/insert",data:e})}function ae(e){return a["a"].request({method:"POST",url:"/prohibitedKeywords/update",data:e})}function re(e){return a["a"].request({method:"GET",url:"/greenTask/list",params:e})}function se(e){return a["a"].request({method:"GET",url:"/hygieneTask/list",params:e})}function ue(e){return a["a"].request({method:"GET",url:"/dailyPayment/list",params:e})}}}]);
|