2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53314db1"],{"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=[],i=(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})}}}),s=i,o=(a("14cb"),a("2877")),l=Object(o["a"])(s,r,n,!1,null,"4dfad654",null);e["a"]=l.exports},3650:function(t,e,a){"use strict";a("7753")},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 i=a,s=n.some((function(t){return i.includes(t)}));if(console.log(s,"hasPermission"),s)r["a"].state.user.permissionFlag[i]=!1;else{r["a"].state.user.permissionFlag[i]=!0,console.log(r["a"].state.user.permissionFlag[i],"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")}}},i=function(t){t.directive("permission",n)};window.Vue&&(window["permission"]=n,Vue.use(i)),n.install=i;e["a"]=n},"61f7":function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i}));a("ac1f"),a("00b4"),a("d9e2"),a("a9e3"),a("5319");function r(t,e,a){""===e?a(new Error("请输入手机号码")):/^[0-9-]+$/.test(e)?a():a(new Error("手机号码格式不对"))}function n(t){if(t||0===t){if(t.length>0){var e=t.replace(/(^\s*)|(\s*$)/g,"");return e||"--"}return t}return"--"}function i(t){if(!t)return"";var e=new Date(t),a=e.getFullYear(),r=e.getMonth()+1,n=e.getDate(),i=e.getHours(),o=e.getMinutes(),l=e.getSeconds();return a+"-"+s(r)+"-"+s(n)+"\n"+s(i)+":"+s(o)+":"+s(l)}function s(t){return t<10?"0"+t:t}},7753:function(t,e,a){},"9b41":function(t,e,a){"use strict";a.d(e,"h",(function(){return s})),a.d(e,"n",(function(){return o})),a.d(e,"t",(function(){return l})),a.d(e,"p",(function(){return c})),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 g})),a.d(e,"a",(function(){return v})),a.d(e,"e",(function(){return h})),a.d(e,"c",(function(){return y})),a.d(e,"l",(function(){return b})),a.d(e,"o",(function(){return w})),a.d(e,"d",(function(){return k})),a.d(e,"g",(function(){return _})),a.d(e,"f",(function(){return $})),a.d(e,"m",(function(){return S})),a.d(e,"s",(function(){return j}));a("e9c4");var r=a("b775"),n=a("4328"),i=a.n(n);function s(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 l(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 c(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=i.a.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/releaseTaskBySubId",method:"post",data:e})}function m(t){var e=i.a.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/stopTaskBySubId",method:"post",data:e})}function g(t){return Object(r["a"])({url:"trajectory-service/acceptance/applyAcceptanceTask",method:"get",params:t})}function v(t){return Object(r["a"])({url:"trajectory-service/acceptance/acceptanceTask",method:"get",params:t})}function h(t){var e=i.a.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/deleteTask",method:"post",data:e})}function y(t){var e=i.a.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/batchDeleteTask",method:"post",data:e})}function b(t){return Object(r["a"])({url:"trajectory-service/trajectory/getTrajectoryList",method:"get",params:t})}function w(t){var e=i.a.stringify(t);return Object(r["a"])({url:"trajectory-service/trajectory/insertTrajectory",method:"post",data:e})}function k(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){return Object(r["a"])({url:"trajectory-service/dismantle/getDismantleInfo",method:"get",params:t})}function S(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 j(t){var e=JSON.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/updateInspectionTask",headers:{"Content-Type":"application/json"},method:"post",data:e})}},c7d6: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"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{clearable:"",placeholder:t.$t("work.status")},on:{change:t.handleFilter},model:{value:t.listQuery.flag,callback:function(e){t.$set(t.listQuery,"flag",e)},expression:"listQuery.flag"}},t._l(t.alarmFlag,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-input",{staticClass:"filter-item",attrs:{placeholder:t.$t("pEnter")+t.$t("device.deviceName")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleFilter.apply(null,arguments)}},model:{value:t.listQuery.deviceName,callback:function(e){t.$set(t.listQuery,"deviceName",e)},expression:"listQuery.deviceName"}}),a("el-date-picker",{staticClass:"filter-item",attrs:{type:"datetimerange","start-placeholder":t.$t("startTime"),"end-placeholder":t.$t("endTime"),"picker-options":t.pickerOptions0,"value-format":"yyyy-MM-dd HH:mm:ss",editable:!1},on:{change:t.handleFilter},model:{value:t.arrayTime,callback:function(e){t.arrayTime=e},expression:"arrayTime"}}),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.list,fit:"","max-height":"580","highlight-current-row":"","header-row-class-name":"table-header","row-class-name":"table-row"}},[a("el-table-column",{attrs:{property:"deviceName",align:"center",label:t.$t("device.deviceName")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("filterNull")(e.row.deviceName)))])]}}])}),a("el-table-column",{attrs:{property:"typeName",align:"center",label:t.$t("device.typeName"),width:"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("filterNull")(e.row.typeName)))])]}}])}),a("el-table-column",{attrs:{property:"deviceCode",align:"center",label:t.$t("device.deviceCode")}}),a("el-table-column",{attrs:{property:"alarmInfo",align:"center",label:t.$t("alarm.alarmInfo")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("filterNull")(e.row.alarmInfo)))])]}}])}),a("el-table-column",{attrs:{property:"alarmLevel",align:"center",label:t.$t("alarm.alarmLevel")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.getLevel(e.row.alarmLevel))+" ")]}}])}),a("el-table-column",{attrs:{property:"uploadTime",align:"center",label:t.$t("alarm.uploadTime")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("filterNull")(e.row.uploadTime)))])]}}])}),a("el-table-column",{attrs:{property:"orderStatus",label:t.$t("alarm.status"),width:"130",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.alarmStatus?a("span",[a("i",{staticClass:"iconfont icon-yichuli",staticStyle:{color:"rgba(0, 255, 3, 1)"}}),t._v(" "+t._s(t.$t("alarm.processed"))+" ")]):1==e.row.orderStatus?a("span",[a("i",{staticClass:"iconfont icon-daichuli",staticStyle:{color:"rgba(0, 255, 3, 1)"}}),t._v(" "+t._s(t.$t("alarm.processing")))]):1==e.row.alarmStatus?a("span",{staticStyle:{color:"rgba(255, 86, 84, 1)"}},[a("i",{staticClass:"iconfont icon-daichuli"}),t._v(" "+t._s(t.$t("alarm.unprocessed"))+" ")]):t._e()]}}])}),a("el-table-column",{attrs:{label:t.$t("table.operate"),align:"center",width:"240"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.alarmStatus&&0==e.row.orderStatus?a("span",{staticClass:"btnCancel",attrs:{title:t.$t("alarm.reset")},on:{click:function(a){return t.clearAlarmStatus(e)}}},[a("i",{staticClass:"el-icon-refresh-right"}),t._v(" "+t._s(t.$t("alarm.reset"))+" ")]):t._e(),0==e.row.orderStatus&&1==e.row.alarmStatus?a("span",{staticClass:"btnCancel",on:{click:function(a){return t.createWork(e)}}},[a("i",{staticClass:"iconfont icon-paifa"}),t._v(" "+t._s(t.$t("alarm.Initiate")))]):t._e(),1==e.row.orderStatus?a("span",{staticClass:"btnCancel",on:{click:function(a){return t.seeWork(e)}}},[a("i",{staticClass:"iconfont icon-kejian"}),t._v(" "+t._s(t.$t("work.see"))+" ")]):t._e()]}}])})],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.getList}})],1),a("el-dialog",{staticClass:"gisDialog",attrs:{visible:t.workDialog,title:t.$t("work.see"),"close-on-click-modal":!1},on:{"update:visible":function(e){t.workDialog=e}}},[a("div",{staticClass:"table-container"},[a("el-table",{attrs:{data:t.workForm,fit:"","highlight-current-row":"","header-row-class-name":"table-header","row-class-name":"table-row"}},[a("el-table-column",{attrs:{property:"taskName",align:"center","min-width":"60",label:t.$t("work.taskName"),"show-overflow-tooltip":""}}),a("el-table-column",{attrs:{property:"receiveName",align:"center","min-width":"45",label:t.$t("work.recipient"),"show-overflow-tooltip":""}}),a("el-table-column",{attrs:{property:"releaseName",align:"center","min-width":"45",label:t.$t("historical.originator"),"show-overflow-tooltip":""}}),a("el-table-column",{attrs:{property:"checkName",align:"center","min-width":"45",label:t.$t("work.accepted"),"show-overflow-tooltip":""}}),a("el-table-column",{attrs:{property:"remark",align:"center","min-width":"45",label:t.$t("work.remark"),"show-overflow-tooltip":""}}),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.complete")))]):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 red"},[t._v(t._s(t.$t("work.timedout")))]):t._e()]}}])}),a("el-table-column",{attrs:{property:"startTime",align:"center",label:t.$t("startTime"),"show-overflow-tooltip":""}}),a("el-table-column",{attrs:{property:"deadline",align:"center",label:t.$t("endTime"),"show-overflow-tooltip":""}})],1)],1)]),a("create-work",{attrs:{dialogStatus:t.dialogStatus,flag:!0}})],1)},n=[],i=(a("d81d"),a("4de4"),a("d3b7"),a("25f0"),a("a219")),s=a("9e04"),o=a("333d"),l=a("61f7"),c=a("4381"),u={components:{Pagination:o["a"],createWork:i["a"]},directives:{permission:c["a"]},data:function(){return{isActive:"listActive",listLoading:!1,workDialog:!1,list:[],total:0,dialogStatus:"create",scopes:{},alarmStatus:null,listQuery:{curPage:1,deviceId:null,deviceName:null,buildId:null,deviceTypeId:null,endTime:null,alarmStatus:null,pageSize:10,startTime:null},workForm:[],alarmFlag:[{value:2,label:this.$t("alarm.processed")},{value:0,label:this.$t("alarm.unprocessed")},{value:1,label:this.$t("alarm.processing")}],arrayTime:[],pickerOptions0:{disabledDate:function(t){return t.getTime()>Date.now()}}}},created:function(){this.getList()},watch:{arrayTime:function(t){this.listQuery.startTime=t&&t&&t[0],this.listQuery.endTime=t&&t&&t[1]}},filters:{filterNull:function(t){var e=Object(l["a"])(t);return e}},methods:{getLevel:function(t){return 1==t?this.$t("alarm.leve1"):2==t?this.$t("alarm.leve2"):3==t?this.$t("alarm.leve3"):void 0},validatenull:function(t){return!(t&&t.length>0)},createWork:function(t){this.$store.state.work.form={},this.dialogStatus="create",this.$store.state.work.form.orderType="4",this.$store.state.work.type="1",this.$store.state.work.deviceAllList=[{deviceId:t.row.deviceId,deviceTypeName:t.row.deviceTypeName,deviceName:t.row.deviceName,deviceCode:t.row.deviceCode,alarmId:t.row.alarmId,deviceType:t.row.deviceTypeName,taskType:"工单",longitude:t.row.longitude,latitude:t.row.latitude,areaId:t.row.areaId}],this.$store.state.work.addDialog=!0},seeWork:function(t){var e=this;Object(s["g"])({alarmIds:t.row.alarmId}).then((function(a){e.workDialog=!0,e.workForm=a.data,e.scopes=t}))},clearAlarmStatus:function(t){var e=this;Object(s["a"])(t.row.alarmId).then((function(){e.getList()}))},getList:function(){var t=this;this.listLoading=!0,Object(s["c"])(this.listQuery).then((function(e){t.listLoading=!1,t.list=e.data.list.map((function(e){return"en"==t.$i18n.locale&&(e.alarmInfo=e.enAlarmInfo),e})),t.total=e.data.totalRow;var a=t.list.filter((function(t){return 0==t.readStatus}));a.length>0&&Object(s["j"])({alarmIdStr:a.map((function(t){return t.alarmId})).toString()})}))},handleFilter:function(){this.listQuery.curPage=1,this.getList()},wipeCondition:function(){for(var t in this.alarmStatus=null,this.listQuery)"curPage"!==t&&"pageSize"!==t&&(this.listQuery[t]=null);this.arrayTime=[],this.listQuery.curPage=1,this.getList()},btnChange:function(t){console.log("点击按钮"),this.isActive=t}}},d=u,p=(a("3650"),a("2877")),f=Object(p["a"])(d,r,n,!1,null,null,null);e["default"]=f.exports},e9c4:function(t,e,a){var r=a("23e7"),n=a("da84"),i=a("d066"),s=a("2ba4"),o=a("e330"),l=a("d039"),c=n.Array,u=i("JSON","stringify"),d=o(/./.exec),p=o("".charAt),f=o("".charCodeAt),m=o("".replace),g=o(1..toString),v=/[\uD800-\uDFFF]/g,h=/^[\uD800-\uDBFF]$/,y=/^[\uDC00-\uDFFF]$/,b=function(t,e,a){var r=p(a,e-1),n=p(a,e+1);return d(h,t)&&!d(y,n)||d(y,t)&&!d(h,r)?"\\u"+g(f(t,0),16):t},w=l((function(){return'"\\udf06\\ud834"'!==u("\udf06\ud834")||'"\\udead"'!==u("\udead")}));u&&r({target:"JSON",stat:!0,forced:w},{stringify:function(t,e,a){for(var r=0,n=arguments.length,i=c(n);r<n;r++)i[r]=arguments[r];var o=s(u,null,i);return"string"==typeof o?m(o,v,b):o}})}}]);
|
|
//# sourceMappingURL=chunk-53314db1.8a993383.js.map
|