Your Name
2022-04-08 1f2a259f8cbb7eb0b12d12895116c309eb8cd609
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-6992"],{"4+70":function(t,e,r){},A9iG:function(t,e,r){"use strict";var n=r("4+70");r.n(n).a},Gq52:function(t,e,r){"use strict";r.r(e);var n=r("cLjf"),a=r.n(n),i=r("hDQ3"),o=r.n(i),c=r("unDg"),s=r.n(c),u=r("bS4n"),l=r.n(u),h=r("8t5x"),p=(r("7Qib"),r("YPZL")),f=(r("jJIE"),r("WgQi")),d={name:"index",filters:{},computed:l()({},Object(h.b)(["userType"]),{tableData:function(){var t=this.statisticsData;return t.length?[].concat(s()(t),s()(this.tableFoot)):[]}}),data:function(){return{tableKey:0,statisticsData:[],department:[],appointment:"",listLoading:!1,recordTotal:0,isSending:!1,filter:{pageIndex:1,pageSize:10,filter:{department:"",appointment:""}},tableFoot:[],dataForm:{id:"",fire:"",space:"",hoisting:"",soild:"",breaks:"",high:"",electricity:"",blindboard:"",appointment:""},pickerOptions:{shortcuts:[{text:"今天",onClick:function(t){t.$emit("pick",new Date)}},{text:"昨天",onClick:function(t){var e=new Date;e.setTime(e.getTime()-864e5),t.$emit("pick",e)}},{text:"明天",onClick:function(t){var e=new Date;e.setTime(e.getTime()+864e5),t.$emit("pick",e)}}]}}},mounted:function(){this.getDepartmentList(),this.getPageList()},methods:{getPageList:function(){var t=this;return o()(a.a.mark(function e(){var r;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(p.d)(t.filter);case 3:"200"===(r=e.sent).data.code?(t.recordTotal=r.data.result.total,t.pageSize=r.data.result.pageSize,t.currentPage=r.data.result.pageIndex,t.statisticsData=r.data.result.records,r.data.result.extension.appointment="总计",t.tableFoot=[r.data.result.extension]):t.$message({message:r.data.message,type:"warning"}),t.listLoading=!1;case 6:case"end":return e.stop()}},e,t)}))()},getDepartmentList:function(){var t=this;return o()(a.a.mark(function e(){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Object(f.d)().then(function(e){"200"===e.data.code?t.department=e.data.result:t.$message({message:e.data.message,type:"warning"})});case 1:case"end":return e.stop()}},e,t)}))()},refreshHandle:function(){this.getPageList()},handleSizeChange:function(t){this.filter.pageSize=t,this.getPageList()},handleCurrentChange:function(t){this.filter.pageIndex=t,this.getPageList()}}},g=(r("A9iG"),r("ZrdR")),m=Object(g.a)(d,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[r("div",{staticClass:"filter-container"},[r("div",{staticClass:"basic_search"},[r("span",{staticClass:"span-filter-label"},[t._v("部门")]),t._v(" "),r("el-select",{staticStyle:{width:"200px"},attrs:{filterable:"",placeholder:"请选择"},model:{value:t.filter.filter.department,callback:function(e){t.$set(t.filter.filter,"department",e)},expression:"filter.filter.department"}},t._l(t.department,function(t){return r("el-option",{key:t.department,attrs:{label:t.department,value:t.department}})}))],1),t._v(" "),r("div",{staticClass:"basic_search"},[r("span",{staticClass:"span-filter-label"},[t._v("预约日期")]),t._v(" "),r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",align:"right",type:"date",placeholder:"选择日期","picker-options":t.pickerOptions},model:{value:t.filter.filter.appointment,callback:function(e){t.$set(t.filter.filter,"appointment",e)},expression:"filter.filter.appointment"}})],1),t._v(" "),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.refreshHandle}},[t._v("搜索")])],1),t._v(" "),r("div",{staticClass:"table_content"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"",fit:"","highlight-current-row":""}},[r("el-table-column",{staticStyle:{width:"200px"},attrs:{prop:"appointment",align:"center"}}),t._v(" "),r("el-table-column",{staticStyle:{width:"200px"},attrs:{label:"部门",prop:"department",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"动火",prop:"fire",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"受限空间",prop:"space",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"吊装作业",prop:"hoisting",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"动土作业",prop:"soild",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"断路作业",prop:"breaks",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"高处作业",prop:"high",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"临时用电",prop:"electricity",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"盲板作业",prop:"blindboard",align:"center"}})],1),t._v(" "),r("br"),t._v(" "),r("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":t.filter.pageIndex,"page-sizes":[10,20,30,50],"page-size":t.filter.pageSize,total:t.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}),t._v(" "),r("br")],1)])},[],!1,null,"6ab9a314",null);m.options.__file="statistics.vue";e.default=m.exports},WgQi:function(t,e,r){"use strict";r.d(e,"e",function(){return i}),r.d(e,"a",function(){return o}),r.d(e,"f",function(){return c}),r.d(e,"b",function(){return s}),r.d(e,"d",function(){return u}),r.d(e,"c",function(){return l});var n=r("t3Un"),a=r("X4fA");function i(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/department",method:"get",params:t||{}})}function o(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/addDepartment",method:"post",data:t})}function c(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/putDepartment",method:"post",data:t})}function s(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/delDepartment",method:"post",data:t})}function u(){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/departmentList",method:"get"})}function l(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/department-userList",method:"post",data:t})}},YPZL:function(t,e,r){"use strict";r.d(e,"c",function(){return i}),r.d(e,"a",function(){return o}),r.d(e,"b",function(){return c}),r.d(e,"d",function(){return s});var n=r("X4fA"),a=r("t3Un");function i(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/reserve/pageList",method:"post",data:t})}function o(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/reserve/add",method:"post",data:t})}function c(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/reserve/mod",method:"post",data:t})}function s(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/reserve/statistics",method:"post",data:t})}},cLjf:function(t,e,r){t.exports=r("xOJF")},hDQ3:function(t,e,r){"use strict";e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(r("Asgo"));e.default=function(t){return function(){var e=t.apply(this,arguments);return new n.default(function(t,r){return function a(i,o){try{var c=e[i](o),s=c.value}catch(t){return void r(t)}if(!c.done)return n.default.resolve(s).then(function(t){a("next",t)},function(t){a("throw",t)});t(s)}("next")})}}},k4Ii:function(t,e){!function(e){"use strict";var r,n=Object.prototype,a=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag",u="object"==typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{(l=e.regeneratorRuntime=u?t.exports:{}).wrap=w;var h="suspendedStart",p="suspendedYield",f="executing",d="completed",g={},m={};m[o]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(C([])));y&&y!==n&&a.call(y,o)&&(m=y);var b=O.prototype=L.prototype=Object.create(m);_.prototype=b.constructor=O,O.constructor=_,O[s]=_.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(b),t},l.awrap=function(t){return{__await:t}},j(k.prototype),k.prototype[c]=function(){return this},l.AsyncIterator=k,l.async=function(t,e,r,n){var a=new k(w(t,e,r,n));return l.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(b),b[s]="Generator",b[o]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},l.values=C,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,a){return c.type="throw",c.arg=t,e.next=n,a&&(e.method="next",e.arg=r),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}}}function w(t,e,r,n){var a=e&&e.prototype instanceof L?e:L,i=Object.create(a.prototype),o=new A(n||[]);return i._invoke=function(t,e,r){var n=h;return function(a,i){if(n===f)throw new Error("Generator is already running");if(n===d){if("throw"===a)throw i;return D()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var c=z(o,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var s=x(t,e,r);if("normal"===s.type){if(n=r.done?d:p,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,o),i}function x(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function L(){}function _(){}function O(){}function j(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(t){var e;this._invoke=function(r,n){function i(){return new Promise(function(e,i){!function e(r,n,i,o){var c=x(t[r],t,n);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&a.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,i,o)},function(t){e("throw",t,i,o)}):Promise.resolve(u).then(function(t){s.value=t,i(s)},o)}o(c.arg)}(r,n,e,i)})}return e=e?e.then(i,i):i()}}function z(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,z(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var a=x(n,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(a.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}return{next:D}}function D(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},xOJF:function(t,e,r){var n=function(){return this}()||Function("return this")(),a=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=a&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r("k4Ii"),a)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}}}]);