EMS2.0-Documents/7.部署文档/Linux安装/项目前端文件/IEMS/js/chunk-00384424.cf377c8b.js

2 lines
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00384424"],{"14cb":function(t,e,a){"use strict";a("1a02")},"1a02":function(t,e,a){},"333d":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container"},[a("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},n=[],s=(a("a9e3"),{name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:0},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[5,10,20,30,70]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t})},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize})}}}),i=s,o=(a("14cb"),a("2877")),c=Object(o["a"])(i,r,n,!1,null,"4dfad654",null);e["a"]=c.exports},4381:function(t,e,a){"use strict";a("d3b7"),a("caad"),a("2532"),a("d9e2");var r=a("4360"),n={inserted:function(t,e){var a=e.value,n=r["a"].getters&&r["a"].getters.butPermission;if(console.log(n,"roles"),!(a&&a instanceof Array&&a.length>0))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");var s=a,i=n.some((function(t){return s.includes(t)}));if(console.log(i,"hasPermission"),i)r["a"].state.user.permissionFlag[s]=!1;else{r["a"].state.user.permissionFlag[s]=!0,console.log(r["a"].state.user.permissionFlag[s],"permissionRoles");var o=document.createElement("div");o.style.cursor="not-allowed",o.style.display="inline-block",t.style.pointerEvents="none",t.parentNode.insertBefore(o,t),t.parentNode&&t.parentNode.removeChild(t),o.appendChild(t),console.log(t,"permissionRoles")}}},s=function(t){t.directive("permission",n)};window.Vue&&(window["permission"]=n,Vue.use(s)),n.install=s;e["a"]=n},"9b41":function(t,e,a){"use strict";a.d(e,"h",(function(){return i})),a.d(e,"n",(function(){return o})),a.d(e,"t",(function(){return c})),a.d(e,"p",(function(){return l})),a.d(e,"j",(function(){return u})),a.d(e,"k",(function(){return d})),a.d(e,"i",(function(){return p})),a.d(e,"q",(function(){return f})),a.d(e,"r",(function(){return m})),a.d(e,"b",(function(){return h})),a.d(e,"a",(function(){return g})),a.d(e,"e",(function(){return y})),a.d(e,"c",(function(){return k})),a.d(e,"l",(function(){return w})),a.d(e,"o",(function(){return v})),a.d(e,"d",(function(){return b})),a.d(e,"g",(function(){return _})),a.d(e,"f",(function(){return T})),a.d(e,"m",(function(){return j})),a.d(e,"s",(function(){return $}));a("e9c4");var r=a("b775"),n=a("4328"),s=a.n(n);function i(t){return Object(r["a"])({url:"device-service/cabinet/getDeviceList",method:"get",params:t})}function o(t){var e=JSON.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/insertOrderTask",method:"post",headers:{"Content-Type":"application/json"},data:e})}function c(t){var e=JSON.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/updateTask",method:"post",headers:{"Content-Type":"application/json"},data:e})}function l(t){return Object(r["a"])({url:"trajectory-service/ttask/releaseTask",method:"post",params:t})}function u(t){return Object(r["a"])({url:"trajectory-service/ttask/getTask",method:"get",params:t})}function d(t){return Object(r["a"])({url:"trajectory-service/ttask/getTaskList",method:"get",params:t})}function p(t){return Object(r["a"])({url:"trajectory-service/acceptance/getNeedAcceptanceDeviceList",method:"get",params:t})}function f(t){var e=s.a.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/releaseTaskBySubId",method:"post",data:e})}function m(t){var e=s.a.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/stopTaskBySubId",method:"post",data:e})}function h(t){return Object(r["a"])({url:"trajectory-service/acceptance/applyAcceptanceTask",method:"get",params:t})}function g(t){return Object(r["a"])({url:"trajectory-service/acceptance/acceptanceTask",method:"get",params:t})}function y(t){var e=s.a.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/deleteTask",method:"post",data:e})}function k(t){var e=s.a.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/batchDeleteTask",method:"post",data:e})}function w(t){return Object(r["a"])({url:"trajectory-service/trajectory/getTrajectoryList",method:"get",params:t})}function v(t){var e=s.a.stringify(t);return Object(r["a"])({url:"trajectory-service/trajectory/insertTrajectory",method:"post",data:e})}function b(t){return Object(r["a"])({url:"trajectory-service/file/deleteFileByUrl",method:"post",params:t})}function _(t){return Object(r["a"])({url:"trajectory-service/dismantle/getDismantleList",method:"get",params:t})}function T(t){return Object(r["a"])({url:"trajectory-service/dismantle/getDismantleInfo",method:"get",params:t})}function j(t){var e=JSON.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/insertInspectionTask",headers:{"Content-Type":"application/json"},method:"post",data:e})}function $(t){var e=JSON.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/updateInspectionTask",headers:{"Content-Type":"application/json"},method:"post",data:e})}},cb1a:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"decorate"}),a("div",{staticClass:"filter-container options"},[a("el-date-picker",{staticClass:"filter-item",attrs:{type:"datetimerange","start-placeholder":t.$t("startTime"),"end-placeholder":t.$t("endTime"),"value-format":"yyyy-MM-dd HH:mm:ss",editable:!1},on:{change:function(e){return t.handleFilter()}},model:{value:t.arrayTimeSearch,callback:function(e){t.arrayTimeSearch=e},expression:"arrayTimeSearch"}}),a("el-select",{staticClass:"filter-item",attrs:{placeholder:t.$t("work.status")},on:{change:t.handleFilter},model:{value:t.listQuery.status,callback:function(e){t.$set(t.listQuery,"status",e)},expression:"listQuery.status"}},t._l(t.status,(function(t){return a("el-option",{key:t.status,attrs:{label:t.label,value:t.status}})})),1),a("span",{staticClass:"btn-item",on:{click:t.handleFilter}},[a("i",{staticClass:"iconfont icon-sousuo"}),t._v(t._s(t.$t("btn.search"))+" ")]),a("span",{staticClass:"btn-item",on:{click:t.wipeCondition}},[a("i",{staticClass:"el-icon-refresh-left"}),t._v(t._s(t.$t("btn.resetting"))+" ")])],1),a("div",{staticClass:"table-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.workForm,"max-height":"580","highlight-current-row":"","header-row-class-name":"table-header","row-class-name":"table-row"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{property:"taskName",align:"center",label:t.$t("work.taskName")}}),a("el-table-column",{attrs:{property:"receiveName",align:"center",label:t.$t("work.recipient")}}),a("el-table-column",{attrs:{property:"orderType",align:"left",label:t.$t("work.taskType")},scopedSlots:t._u([{key:"default",fn:function(e){return["1"===e.row.orderType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.install")))]):"3"===e.row.orderType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.dismantle"))+" ")]):"4"===e.row.orderType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.faults"))+" ")]):e.row.orderType&&"5"===e.row.orderType.split(",")[0]?a("span",{staticClass:"otherUse"},[t._v(" "+t._s(t.$t("work.other")+"("+e.row.orderType.split(",")[1])+") ")]):a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.patrol"))+" ")])]}}])}),a("el-table-column",{attrs:{align:"center",label:t.$t("completionTime")},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.finishTime?a("span",[t._v(t._s(e.row.finishTime))]):t._e(),e.row.finishTime?t._e():a("span",[t._v("- -")])]}}])}),a("el-table-column",{attrs:{label:t.$t("work.status"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1===e.row.status?a("span",{staticClass:"btn yellow"},[t._v(t._s(t.$t("work.unpublished")))]):t._e(),0===e.row.status?a("span",{staticClass:"btn blue"},[t._v(t._s(t.$t("work.notStarted")))]):t._e(),1===e.row.status?a("span",{staticClass:"btn"},[t._v(t._s(t.$t("work.inProgress")))]):t._e(),2===e.row.status?a("span",{staticClass:"btn white"},[t._v(t._s(t.$t("work.suspend")))]):t._e(),3===e.row.status?a("span",{staticClass:"btn white"},[t._v(t._s(t.$t("work.passed")))]):t._e(),4===e.row.status?a("span",{staticClass:"btn blue"},[t._v(t._s(t.$t("work.failed")))]):t._e(),5===e.row.status?a("span",{staticClass:"btn purple"},[t._v(t._s(t.$t("work.tobeAccepted")))]):t._e(),6===e.row.status?a("span",{staticClass:"btn purple"},[t._v(t._s(t.$t("work.timedout")))]):t._e()]}}])}),a("el-table-column",{attrs:{property:"checkName",align:"center",label:t.$t("work.accepted")}}),a("el-table-column",{attrs:{align:"center",label:t.$t("work.createdTime"),property:"createTime"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.createTime?a("span",[t._v(t._s(e.row.createTime))]):t._e(),e.row.createTime?t._e():a("span",[t._v("- -")])]}}])}),a("el-table-column",{attrs:{align:"center",label:t.$t("work.ApplicationTime")},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.applyTime?a("span",[t._v(t._s(e.row.applyTime))]):t._e(),e.row.applyTime?t._e():a("span",[t._v("- -")])]}}])}),a("el-table-column",{attrs:{label:t.$t("table.operate"),width:"300",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"btnCancel",on:{click:function(a){return t.apply(e)}}},[a("i",{staticClass:"iconfont icon-kejian"}),t._v(" "+t._s(t.$t("work.see"))+" ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.listQuery.curPage,limit:t.listQuery.pageSize},on:{"update:page":function(e){return t.$set(t.listQuery,"curPage",e)},"update:limit":function(e){return t.$set(t.listQuery,"pageSize",e)},pagination:t.workList}})],1)])},n=[],s=(a("d3b7"),a("159b"),a("a15b"),a("9b41")),i=a("333d"),o=a("4381"),c={components:{Pagination:i["a"]},directives:{permission:o["a"]},data:function(){return{searchForm:{workNum:"",startTime:"",reviceName:"",finishTime:"",workName:"",deadline:"",countPatrol:"",remark:""},arrayTimeSearch:[],listQuery:{checkName:localStorage.getItem("sitename2"),curPage:1,pageSize:10,startTime:null,deadline:null,status:5,parentId:null},workForm:null,listLoading:!0,total:0,taskIdStr:"",status:[{status:3,label:this.$t("work.passed")},{status:4,label:this.$t("work.failed")},{status:5,label:this.$t("work.tobeAccepted")}]}},watch:{arrayTimeSearch:function(t){this.listQuery.startTime=t&&t[0],this.listQuery.deadline=t&&t[1]}},created:function(){this.workList()},beforeRouteLeave:function(t,e,a){this.$store.state.work.flag="task",a()},methods:{workList:function(){var t=this;this.listLoading=!0,Object(s["k"])(this.listQuery).then((function(e){t.listLoading=!1,t.workForm=e.data.list,t.total=e.data.totalRow}))},apply:function(t){var e=this;this.$store.state.work.completeList.ids=t.row.deviceId,this.$store.state.work.completeList.solveStatus=t.row.orderType,this.$store.state.work.completeList.solver=t.row.receiveName,this.$store.state.work.taskId=t.row.taskId,this.$store.state.work.applyStatus=t.row.status,Object(s["i"])({taskId:t.row.taskId,trackType:"验收"}).then((function(t){e.$store.state.work.flag="equipment",e.$store.state.work.equipmentList=t.data.deviceAcceptanceList,null==t.data.task.orderType&&(t.data.task.orderType="8"),e.$store.state.work.taskForm=t.data.task,console.log(e.$store.state.work.taskForm)}))},handleSelectionChange:function(t){var e=[];t.forEach((function(t){e.push(t.taskId)})),this.taskIdStr=e.join(","),console.log(this.taskIdStr)},handleFilter:function(){this.listQuery.curPage=1,this.workList()},wipeCondition:function(){this.listQuery.curPage=1,this.listQuery.startTime="",this.listQuery.deadline="",this.arrayTimeSearch=[],this.workList()},headClassName:function(t){var e=t.row,a=t.rowIndex;return console.log(e,a),"headName"},rowClassName:function(t){var e=t.row,a=t.rowIndex;return console.log(e,a),(a+1)%2!==0?"cellNameOdd":"cellNameEven"}}},l=c,u=a("2877"),d=Object(u["a"])(l,r,n,!1,null,"7b27e008",null);e["default"]=d.exports},e9c4:function(t,e,a){var r=a("23e7"),n=a("da84"),s=a("d066"),i=a("2ba4"),o=a("e330"),c=a("d039"),l=n.Array,u=s("JSON","stringify"),d=o(/./.exec),p=o("".charAt),f=o("".charCodeAt),m=o("".replace),h=o(1..toString),g=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,w=function(t,e,a){var r=p(a,e-1),n=p(a,e+1);return d(y,t)&&!d(k,n)||d(k,t)&&!d(y,r)?"\\u"+h(f(t,0),16):t},v=c((function(){return'"\\udf06\\ud834"'!==u("\udf06\ud834")||'"\\udead"'!==u("\udead")}));u&&r({target:"JSON",stat:!0,forced:v},{stringify:function(t,e,a){for(var r=0,n=arguments.length,s=l(n);r<n;r++)s[r]=arguments[r];var o=i(u,null,s);return"string"==typeof o?m(o,g,w):o}})}}]);
//# sourceMappingURL=chunk-00384424.cf377c8b.js.map