2 lines
15 KiB
JavaScript
2 lines
15 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ab7518bc"],{"0e8f":function(e,t,a){"use strict";a.d(t,"d",(function(){return o})),a.d(t,"e",(function(){return s})),a.d(t,"c",(function(){return l})),a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return u}));var n=a("b775"),r=a("4328"),i=a.n(r);function o(e){return Object(n["a"])({url:"user-service/dept/getDeptTreeList",method:"get",params:e})}function s(e){return Object(n["a"])({url:"user-service/dept/getDeptSubByDeptId",method:"get",params:e})}function l(e){var t=i.a.stringify(e);return Object(n["a"])({url:"user-service/dept/updateDept",method:"post",data:t})}function c(e){var t=i.a.stringify(e);return Object(n["a"])({url:"user-service/dept/saveDept",method:"post",data:t})}function u(e){return Object(n["a"])({headers:{"Content-Type":"application/json"},url:"user-service/dept/removeDept",method:"get",params:e})}},"14cb":function(e,t,a){"use strict";a("1a02")},"1a02":function(e,t,a){},"333d":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container"},[a("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},r=[],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(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e})},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize})}}}),o=i,s=(a("14cb"),a("2877")),l=Object(s["a"])(o,n,r,!1,null,"4dfad654",null);t["a"]=l.exports},"9b41":function(e,t,a){"use strict";a.d(t,"h",(function(){return o})),a.d(t,"n",(function(){return s})),a.d(t,"t",(function(){return l})),a.d(t,"p",(function(){return c})),a.d(t,"j",(function(){return u})),a.d(t,"k",(function(){return d})),a.d(t,"i",(function(){return p})),a.d(t,"q",(function(){return m})),a.d(t,"r",(function(){return f})),a.d(t,"b",(function(){return g})),a.d(t,"a",(function(){return b})),a.d(t,"e",(function(){return v})),a.d(t,"c",(function(){return y})),a.d(t,"l",(function(){return h})),a.d(t,"o",(function(){return I})),a.d(t,"d",(function(){return k})),a.d(t,"g",(function(){return j})),a.d(t,"f",(function(){return F})),a.d(t,"m",(function(){return T})),a.d(t,"s",(function(){return N}));a("e9c4");var n=a("b775"),r=a("4328"),i=a.n(r);function o(e){return Object(n["a"])({url:"device-service/cabinet/getDeviceList",method:"get",params:e})}function s(e){var t=JSON.stringify(e);return Object(n["a"])({url:"trajectory-service/ttask/insertOrderTask",method:"post",headers:{"Content-Type":"application/json"},data:t})}function l(e){var t=JSON.stringify(e);return Object(n["a"])({url:"trajectory-service/ttask/updateTask",method:"post",headers:{"Content-Type":"application/json"},data:t})}function c(e){return Object(n["a"])({url:"trajectory-service/ttask/releaseTask",method:"post",params:e})}function u(e){return Object(n["a"])({url:"trajectory-service/ttask/getTask",method:"get",params:e})}function d(e){return Object(n["a"])({url:"trajectory-service/ttask/getTaskList",method:"get",params:e})}function p(e){return Object(n["a"])({url:"trajectory-service/acceptance/getNeedAcceptanceDeviceList",method:"get",params:e})}function m(e){var t=i.a.stringify(e);return Object(n["a"])({url:"trajectory-service/ttask/releaseTaskBySubId",method:"post",data:t})}function f(e){var t=i.a.stringify(e);return Object(n["a"])({url:"trajectory-service/ttask/stopTaskBySubId",method:"post",data:t})}function g(e){return Object(n["a"])({url:"trajectory-service/acceptance/applyAcceptanceTask",method:"get",params:e})}function b(e){return Object(n["a"])({url:"trajectory-service/acceptance/acceptanceTask",method:"get",params:e})}function v(e){var t=i.a.stringify(e);return Object(n["a"])({url:"trajectory-service/ttask/deleteTask",method:"post",data:t})}function y(e){var t=i.a.stringify(e);return Object(n["a"])({url:"trajectory-service/ttask/batchDeleteTask",method:"post",data:t})}function h(e){return Object(n["a"])({url:"trajectory-service/trajectory/getTrajectoryList",method:"get",params:e})}function I(e){var t=i.a.stringify(e);return Object(n["a"])({url:"trajectory-service/trajectory/insertTrajectory",method:"post",data:t})}function k(e){return Object(n["a"])({url:"trajectory-service/file/deleteFileByUrl",method:"post",params:e})}function j(e){return Object(n["a"])({url:"trajectory-service/dismantle/getDismantleList",method:"get",params:e})}function F(e){return Object(n["a"])({url:"trajectory-service/dismantle/getDismantleInfo",method:"get",params:e})}function T(e){var t=JSON.stringify(e);return Object(n["a"])({url:"trajectory-service/ttask/insertInspectionTask",headers:{"Content-Type":"application/json"},method:"post",data:t})}function N(e){var t=JSON.stringify(e);return Object(n["a"])({url:"trajectory-service/ttask/updateInspectionTask",headers:{"Content-Type":"application/json"},method:"post",data:t})}},db31:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"decorate"}),a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:e.$t("device.deviceName")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter.apply(null,arguments)}},model:{value:e.listQuery.deviceName,callback:function(t){e.$set(e.listQuery,"deviceName",t)},expression:"listQuery.deviceName"}}),a("el-cascader",{staticClass:"filter-item",attrs:{"show-all-levels":!1,placeholder:e.$t("listQuery.deptId"),options:e.deptIdList,props:{checkStrictly:!0,emitPath:!1,props:{}},clearable:""},on:{change:function(t){return e.handleFilter("deptId")}},model:{value:e.listQuery.deptId,callback:function(t){e.$set(e.listQuery,"deptId",t)},expression:"listQuery.deptId"}}),a("el-date-picker",{staticClass:"filter-item",attrs:{type:"datetimerange","start-placeholder":e.$t("startTime"),"end-placeholder":e.$t("endTime"),"picker-options":e.pickerOptions0,"value-format":"yyyy-MM-dd HH:mm:ss","default-time":["12:00:00"],editable:!1},model:{value:e.arrayTime,callback:function(t){e.arrayTime=t},expression:"arrayTime"}}),a("span",{staticClass:"btn-item",on:{click:e.handleFilter}},[a("i",{staticClass:"iconfont icon-sousuo"}),e._v(e._s(e.$t("btn.search"))+" ")]),a("span",{staticClass:"btn-item",on:{click:e.wipeCondition}},[a("i",{staticClass:"el-icon-refresh-left"}),e._v(e._s(e.$t("btn.resetting"))+" ")])],1),a("div",{staticClass:"table-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"highlight-current-row":"","max-height":"580","header-row-class-name":"table-header","row-class-name":"table-row"}},[a("el-table-column",{attrs:{property:"deviceName",align:"center",label:e.$t("device.deviceName")}}),a("el-table-column",{attrs:{property:"deviceType",align:"center",label:e.$t("device.deviceType")}}),a("el-table-column",{attrs:{property:"address",align:"center",label:e.$t("table.address")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.address?a("span",[e._v(e._s(t.row.address))]):e._e(),t.row.address?e._e():a("span",[e._v("- -")])]}}])}),a("el-table-column",{attrs:{property:"deptName",align:"center",label:e.$t("department.deptName")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.deptName?a("span",[e._v(e._s(t.row.deptName))]):e._e(),""==t.row.deptName?a("span",[e._v("- -")]):e._e()]}}])}),a("el-table-column",{attrs:{property:"createName",align:"center",label:e.$t("work.Dispatcher")}}),a("el-table-column",{attrs:{property:"dismantleName",align:"center",label:e.$t("work.Demolition")}}),a("el-table-column",{attrs:{property:"dismantleTime",align:"center",label:e.$t("work.Demolitiontime")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.dismantleTime?a("span",[e._v(" "+e._s(t.row.dismantleTime)+" ")]):e._e(),t.row.dismantleTime?e._e():a("span",[e._v("- -")])]}}])}),a("el-table-column",{attrs:{align:"center",label:e.$t("table.operate")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"btnCancel",on:{click:function(a){return e.getInfo(t.row.dismantleId)}}},[a("i",{staticClass:"iconfont icon-kejian"}),e._v(" "+e._s(e.$t("work.see"))+" ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.curPage,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"curPage",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.$t("work.details"),visible:e.dialogTableVisible,width:"800px"},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[e.dialogTableVisible?a("el-form",{ref:"InfoForm",attrs:{model:e.InfoForm,"label-width":"120px",inline:""}},[a("el-form-item",{attrs:{label:e.$t("device.deviceName"),prop:"deviceName"}},[a("el-input",{attrs:{disabled:""},model:{value:e.InfoForm.deviceName,callback:function(t){e.$set(e.InfoForm,"deviceName",t)},expression:"InfoForm.deviceName"}})],1),a("el-form-item",{attrs:{label:e.$t("deviceType.typeName"),prop:"deviceType"}},[a("el-input",{attrs:{disabled:""},model:{value:e.InfoForm.deviceType,callback:function(t){e.$set(e.InfoForm,"deviceType",t)},expression:"InfoForm.deviceType"}})],1),a("el-form-item",{attrs:{label:e.$t("table.longitude"),prop:"longitude"}},[a("el-input",{attrs:{disabled:""},model:{value:e.InfoForm.longitude,callback:function(t){e.$set(e.InfoForm,"longitude",t)},expression:"InfoForm.longitude"}})],1),a("el-form-item",{attrs:{label:e.$t("table.latitude"),prop:"latitude"}},[a("el-input",{attrs:{disabled:""},model:{value:e.InfoForm.latitude,callback:function(t){e.$set(e.InfoForm,"latitude",t)},expression:"InfoForm.latitude"}})],1),a("el-form-item",{attrs:{label:e.$t("work.Dispatcher"),prop:"createName"}},[a("el-input",{attrs:{disabled:""},model:{value:e.InfoForm.createName,callback:function(t){e.$set(e.InfoForm,"createName",t)},expression:"InfoForm.createName"}})],1),a("el-form-item",{attrs:{label:e.$t("work.Demolition"),prop:"dismantleName"}},[a("el-input",{attrs:{disabled:""},model:{value:e.InfoForm.dismantleName,callback:function(t){e.$set(e.InfoForm,"dismantleName",t)},expression:"InfoForm.dismantleName"}})],1),a("el-form-item",{attrs:{label:e.$t("department.deptName"),prop:"deptName"}},[e.InfoForm.deptName?a("el-input",{attrs:{disabled:""},model:{value:e.InfoForm.deptName,callback:function(t){e.$set(e.InfoForm,"deptName",t)},expression:"InfoForm.deptName"}}):a("el-input",{attrs:{disabled:"",placeholder:"........."},model:{value:e.InfoForm.deptName,callback:function(t){e.$set(e.InfoForm,"deptName",t)},expression:"InfoForm.deptName"}})],1),a("el-form-item",{attrs:{label:e.$t("table.address"),prop:"address"}},[e.InfoForm.address?a("el-input",{attrs:{disabled:""},model:{value:e.InfoForm.address,callback:function(t){e.$set(e.InfoForm,"address",t)},expression:"InfoForm.address"}}):e._e(),e.InfoForm.address?e._e():a("el-input",{attrs:{disabled:"",placeholder:"........."},model:{value:e.InfoForm.address,callback:function(t){e.$set(e.InfoForm,"address",t)},expression:"InfoForm.address"}})],1),a("el-form-item",{attrs:{label:"Demolitiontime:",prop:"dismantleTime"}},[e.InfoForm.dismantleTime?a("el-input",{attrs:{disabled:""},model:{value:e.InfoForm.dismantleTime,callback:function(t){e.$set(e.InfoForm,"dismantleTime",t)},expression:"InfoForm.dismantleTime"}}):e._e(),e.InfoForm.dismantleTime?e._e():a("el-input",{attrs:{disabled:"",placeholder:"........."},model:{value:e.InfoForm.dismantleTime,callback:function(t){e.$set(e.InfoForm,"dismantleTime",t)},expression:"InfoForm.dismantleTime"}})],1)],1):e._e()],1)],1)},r=[],i=(a("d81d"),a("333d")),o=a("9b41"),s=a("0e8f"),l={components:{Pagination:i["a"]},data:function(){return{dialogTableVisible:!1,arrayTime:[],listLoading:!0,total:0,list:null,listQuery:{deviceName:null,deviceId:null,imei:null,imsi:null,deptName:null,startTime:null,endTime:null,curPage:1,pageSize:10},deptIdList:[],InfoForm:null,pickerOptions0:{disabledDate:function(e){return e.getTime()>Date.now()}}}},mounted:function(){this.getList(),this.getDeptSubByDeptId()},watch:{arrayTime:function(e){e&&(this.listQuery.startTime=e&&e[0],this.listQuery.endTime=e&&e[1])}},methods:{getDeptSubByDeptId:function(){var e=this;Object(s["e"])().then((function(t){e.deptIdList=t.data&&e.getdeptIdList(t.data)}))},getdeptIdList:function(e){var t=this;e.length||(e=[e]);var a=e.map((function(e){var a={};return e.subBeanList?(a.children=t.getdeptIdList(e.subBeanList),a.label=e.nodeBean.deptName,a.value=e.nodeBean.deptId,a):(a.label=e.nodeBean.deptName,a.value=e.nodeBean.deptId,a)}));return a},getList:function(){var e=this;Object(o["g"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.data.list,e.total=t.data.totalRow}))},getInfo:function(e){var t=this,a={dismantleId:e};Object(o["f"])(a).then((function(e){t.InfoForm=e.data,console.log(t.InfoForm,1),t.dialogTableVisible=!0}))},handleFilter:function(){this.listQuery.curPage=1,this.getList()},wipeCondition:function(){for(var e in this.listQuery)"curPage"!==e&&"pageSize"!==e&&(this.listQuery[e]=null);this.arrayTime=[],this.getList(),this.listQuery.curPage=1}}},c=l,u=a("2877"),d=Object(u["a"])(c,n,r,!1,null,null,null);t["default"]=d.exports},e9c4:function(e,t,a){var n=a("23e7"),r=a("da84"),i=a("d066"),o=a("2ba4"),s=a("e330"),l=a("d039"),c=r.Array,u=i("JSON","stringify"),d=s(/./.exec),p=s("".charAt),m=s("".charCodeAt),f=s("".replace),g=s(1..toString),b=/[\uD800-\uDFFF]/g,v=/^[\uD800-\uDBFF]$/,y=/^[\uDC00-\uDFFF]$/,h=function(e,t,a){var n=p(a,t-1),r=p(a,t+1);return d(v,e)&&!d(y,r)||d(y,e)&&!d(v,n)?"\\u"+g(m(e,0),16):e},I=l((function(){return'"\\udf06\\ud834"'!==u("\udf06\ud834")||'"\\udead"'!==u("\udead")}));u&&n({target:"JSON",stat:!0,forced:I},{stringify:function(e,t,a){for(var n=0,r=arguments.length,i=c(r);n<r;n++)i[n]=arguments[n];var s=o(u,null,i);return"string"==typeof s?f(s,b,h):s}})}}]);
|
|
//# sourceMappingURL=chunk-ab7518bc.c7bfb7fa.js.map
|