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

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-52aa51c6"],{"662b":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return n}));a("f2d9");var l=a("2b74");async function i(e,t){let a=[];const i=await Object(l["b"])(e);if(a.push(...i.tableList),i.pageCount>1)for(let n=1;n<i.pageCount;n++){e.pageNum=n+1;const s=await Object(l["b"])(e);t.ExcelLoading(n,i.pageCount),a.push(...s.tableList)}return a}async function n(e){let t=[];const a=await Object(l["b"])(e);return console.log(a),t.push(...a.tableList),t}},edb6:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"main-content"},[e._m(0),t("div",{staticClass:"content"},[t("div",{staticStyle:{width:"50px"}},[t("download-excel",{staticClass:"export-excel-wrapper",attrs:{fetch:e.fetchData,fields:e.json_fields,"before-finish":e.finishDownload,name:"设施设备检查记录.xls"}},[t("el-button",{attrs:{size:"mini",icon:"el-icon-folder-add",plain:""}},[e._v("导出Excel")])],1)],1),t("div",{},[t("VueTable",{ref:"table",attrs:{config:e.config},on:{tableCheck:e.tableCheck}},[t("template",{slot:"tabs"},[t("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"全部",name:"0"}}),t("el-tab-pane",{attrs:{label:"待完成",name:"1"}}),t("el-tab-pane",{attrs:{label:"已完成",name:"2"}}),t("el-tab-pane",{attrs:{label:"未完成",name:"3"}})],1)],1),t("template",{slot:"footer"},[t("div",{staticClass:"table-footer"})])],2)],1)])])])},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-titel"},[t("span",[e._v("设施设备检查记录")])])}],n=a("662b"),s={data(){return{add_vrisible:!1,addDate:null,loading:!1,table_row:[],activeName:"0",json_fields:{"检查执行记录编号":"code","分类名称":"categoryName","设施/设备名称":"facilitiesName","检查人姓名":"examinerName","检查人联系方式":"examinerTel","状态":{field:"status",callback:e=>{switch(e){case 1:return"待完成";case 2:return"已完成";case 3:return"未完成"}}},"设施/设备情况":{field:"situation",callback:e=>{switch(e){case 1:return"正常";case 2:return"异常"}}},"设施/设备检查报告":"detail","设施/设备实际检查时间":"checkDate"},config:{thead:[{label:"序号",type:"index",width:"80"},{label:"检查执行记录编号",prop:"code",width:"auto"},{label:"分类名称",prop:"categoryName",width:"auto"},{label:"设施/设备名称",prop:"facilitiesName",width:"auto"},{label:"检查人姓名",prop:"examinerName",width:"auto"},{label:"检查人联系方式",prop:"examinerTel",width:"auto"},{label:"状态",prop:"status",width:"auto",type:"function",callback:(e,t)=>{switch(e.status){case 1:return"待完成";case 2:return"已完成";case 3:return"未完成"}}},{label:"设施/设备情况",prop:"situation",width:"auto",type:"function",callback:(e,t)=>{switch(e.situation){case 1:return"正常";case 2:return"异常"}}},{label:"设施/设备检查报告",prop:"detail",width:"auto"},{label:"设施/设备实际检查时间",prop:"checkDate",width:"auto"}],table_data:[],url:"facilitiesPlanExecuteList",search_item:[{type:"select",label:"类型",placeholder:"请输入",prop:"type",options:[{value:1,label:"设施"},{value:2,label:"设备"}]},{type:"Input",label:"检查执行记录编号",placeholder:"请输入",prop:"code"},{type:"Input",label:"设施/设备名称",placeholder:"请输入",prop:"facilitiesName"},{type:"Input",label:"检查人联系方式",placeholder:"请输入",prop:"tel"},{type:"select",label:"任务状态",placeholder:"请选择",prop:"status",options:[{value:1,label:"待完成"},{value:2,label:"已完成"},{value:3,label:"未完成"}]}],data:{pageNum:1,size:10}}}},methods:{async fetchData(){let e={url:"facilitiesPlanExecuteList",data:{pageNum:1,size:100}};const t=await Object(n["a"])(e,this);return t},ExcelLoading(e,t){const a=this.$loading({lock:!0,text:"正在导出Excel"+e,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});a.text=`正在导出Excel ${e}/${t}`,console.log(a.text)},finishDownload(){const e=this.$loading();e.close()},handleClick(e,t){let a=null;a=0!=this.activeName?this.activeName:null;const l={pageNum:1,size:10,status:a};this.$refs.table.requestData(l)},tableCheck(e){this.table_row=e}}},c=s,o=a("2877"),r=Object(o["a"])(c,l,i,!1,null,null,null);t["default"]=r.exports}}]);
//# sourceMappingURL=chunk-52aa51c6.95da685f.js.map