Your Name
2022-04-08 1f2a259f8cbb7eb0b12d12895116c309eb8cd609
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-6396"],{JOvB:function(t,e,n){"use strict";var r=n("ZcY5");n.n(r).a},UrIZ:function(t,e,n){"use strict";n.r(e);var r=n("cLjf"),i=n.n(r),o=n("hDQ3"),a=n.n(o),c=n("UyGd"),s={data:function(){return{dialogVisible:!1,form:{},listQuery:{filter:{inspectionName:"",inspectorName:"",inspectionStartTime:"",inspectionEndTime:"",status:""},pageIndex:1,pageSize:5},list:[],pageSize:10,recordTotal:0,currentPage:1}},created:function(){this.safetySelfInspectionL()},methods:{reset:function(){this.listQuery.filter={},this.listQuery.pageIndex=1,this.listQuery.pageSize=10,this.safetySelfInspectionL()},safetySelfInspectionL:function(){var t=this;return a()(i.a.mark(function e(){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.j)(t.listQuery).then(function(e){200==e.data.code&&(t.list=e.data.result.records,t.recordTotal=e.data.result.total,t.pageSize=e.data.result.size,t.currentPage=e.data.result.current)});case 2:e.sent;case 3:case"end":return e.stop()}},e,t)}))()},handleClick:function(t){0==t.status?this.$router.push({path:"/new",query:{id:t.id,name:"编辑"}}):1==t.status?this.$router.push({path:"/gojudging",query:{id:t.id}}):2==t.status&&this.$router.push({path:"/gojudging",query:{id:t.id,type:2}})},find:function(){this.safetySelfInspectionL()},handleSizeChange:function(t){this.listQuery.pageSize=t,this.safetySelfInspectionL()},handleCurrentChange:function(t){this.listQuery.pageIndex=t,this.safetySelfInspectionL()},jump:function(){this.$router.push({path:"/new",query:{name:"添加"}})},Del:function(t){var e=this;this.$confirm("确认删除吗","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(function(){Object(c.f)({id:t}).then(function(t){200==t.data.code&&(e.safetySelfInspectionL(),e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}))})})}}},u=(n("JOvB"),n("ZrdR")),l=Object(u.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-form",{ref:"form",attrs:{model:t.listQuery,"label-width":"80px"}},[n("el-row",[n("el-col",{attrs:{span:5}},[n("el-form-item",{attrs:{label:"自查任务"}},[n("el-input",{model:{value:t.listQuery.filter.inspectionName,callback:function(e){t.$set(t.listQuery.filter,"inspectionName",e)},expression:"listQuery.filter.inspectionName"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:9}},[n("el-form-item",{attrs:{label:"检查时间"}},[n("el-col",{attrs:{span:11}},[n("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy-MM-dd",placeholder:"选择开始日期"},model:{value:t.listQuery.filter.inspectionStartTime,callback:function(e){t.$set(t.listQuery.filter,"inspectionStartTime",e)},expression:"listQuery.filter.inspectionStartTime"}})],1),t._v(" "),n("el-col",{staticStyle:{"text-align":"center"},attrs:{span:2}},[t._v("-")]),t._v(" "),n("el-col",{attrs:{span:11}},[n("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy-MM-dd",placeholder:"选择结束日期"},model:{value:t.listQuery.filter.inspectionEndTime,callback:function(e){t.$set(t.listQuery.filter,"inspectionEndTime",e)},expression:"listQuery.filter.inspectionEndTime"}})],1)],1)],1),t._v(" "),n("el-col",{attrs:{span:5}},[n("el-form-item",{attrs:{label:"检查人员"}},[n("el-input",{model:{value:t.listQuery.filter.inspectorName,callback:function(e){t.$set(t.listQuery.filter,"inspectorName",e)},expression:"listQuery.filter.inspectorName"}})],1)],1),t._v(" "),n("el-col",{staticStyle:{"text-align":"center"},attrs:{span:5}},[n("el-button",{staticClass:"btns",attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){t.find()}}},[t._v("搜索")]),t._v(" "),n("el-button",{staticClass:"btns",attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(e){t.jump()}}},[t._v("新增")]),t._v(" "),n("el-button",{staticClass:"btns",attrs:{type:"primary"},on:{click:function(e){t.reset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,border:""}},[n("el-table-column",{attrs:{align:"center",prop:"inspectionName",label:"自查任务"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"createTime",label:"检查时间"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"inspectorName",label:"检查人员"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.status?n("span",[t._v("暂存")]):t._e(),t._v(" "),1==e.row.status?n("span",[t._v("评审中")]):t._e(),t._v(" "),2==e.row.status?n("span",[t._v("已评审")]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"updateTime",label:"更新时间"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.status?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){t.handleClick(e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),1==e.row.status?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){t.handleClick(e.row)}}},[t._v("去评审")]):t._e(),t._v(" "),2==e.row.status?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){t.handleClick(e.row)}}},[t._v("查看")]):t._e(),t._v(" "),0==e.row.status?n("el-button",{staticStyle:{color:"red"},attrs:{type:"text",size:"small"},on:{click:function(n){t.Del(e.row.id)}}},[t._v("删除")]):t._e()]}}])})],1),t._v(" "),n("div",{staticStyle:{"text-align":"right"}},[n("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.recordTotal>0,expression:"recordTotal > 0"}],attrs:{"current-page":t.currentPage,"page-sizes":[10,20,30,50],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.recordTotal},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},[],!1,null,"37349c7a",null);l.options.__file="checklistself.vue";e.default=l.exports},UyGd:function(t,e,n){"use strict";n.d(e,"j",function(){return o}),n.d(e,"h",function(){return a}),n.d(e,"i",function(){return c}),n.d(e,"l",function(){return s}),n.d(e,"e",function(){return u}),n.d(e,"k",function(){return l}),n.d(e,"f",function(){return f}),n.d(e,"c",function(){return h}),n.d(e,"b",function(){return p}),n.d(e,"d",function(){return d}),n.d(e,"a",function(){return y}),n.d(e,"g",function(){return m});var r=n("X4fA"),i=n("t3Un");function o(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/page",method:"post",data:t})}function a(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/info",method:"post",data:t})}function c(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/itemInfo",method:"post",data:t})}function s(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/modItemInfo",method:"post",data:t})}function u(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/add",method:"post",data:t})}function l(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/mod",method:"post",data:t})}function f(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/del",method:"post",data:t})}function h(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/elementManagement/getElementTree",method:"post",data:t})}function p(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/getUserList",method:"post",data:t})}function d(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/safetyInspectionItem/infoElementA",method:"post",data:t})}function y(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/safetyInspectionItem/info",method:"post",data:t})}function m(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/finish",method:"post",data:t})}},ZcY5:function(t,e,n){},cLjf:function(t,e,n){t.exports=n("xOJF")},hDQ3:function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n("Asgo"));e.default=function(t){return function(){var e=t.apply(this,arguments);return new r.default(function(t,n){return function i(o,a){try{var c=e[o](a),s=c.value}catch(t){return void n(t)}if(!c.done)return r.default.resolve(s).then(function(t){i("next",t)},function(t){i("throw",t)});t(s)}("next")})}}},k4Ii:function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.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 f="suspendedStart",h="suspendedYield",p="executing",d="completed",y={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==r&&i.call(v,a)&&(m=v);var b=O.prototype=x.prototype=Object.create(m);j.prototype=b.constructor=O,O.constructor=j,O[s]=j.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===j||"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}},S(z.prototype),z.prototype[c]=function(){return this},l.AsyncIterator=z,l.async=function(t,e,n,r){var i=new z(w(t,e,n,r));return l.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},S(b),b[s]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},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 r(r,i){return c.type="throw",c.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},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),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),y}}}function w(t,e,n,r){var i=e&&e.prototype instanceof x?e:x,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(t,e,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return Q()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var c=L(a,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=_(t,e,n);if("normal"===s.type){if(r=n.done?d:h,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=d,n.method="throw",n.arg=s.arg)}}}(t,n,a),o}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function x(){}function j(){}function O(){}function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function z(t){var e;this._invoke=function(n,r){function o(){return new Promise(function(e,o){!function e(n,r,o,a){var c=_(t[n],t,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(u).then(function(t){s.value=t,o(s)},a)}a(c.arg)}(n,r,e,o)})}return e=e?e.then(o,o):o()}}function L(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,L(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=_(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,y;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,y):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function k(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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:Q}}function Q(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},xOJF:function(t,e,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("k4Ii"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}}}]);