Files
starRiverProperty/frontend/canoe-person.bak20231024/js/chunk-10247cb1.8ff43005.js
反编译工作区 0c56a3e599 chore(frontend): add static frontend build artifacts (portal, front_acs, etc.)
Made-with: Cursor

Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
2026-04-27 13:40:23 +08:00

1 line
12 KiB
JavaScript

(window["webpackJsonp_park-unit-web"]=window["webpackJsonp_park-unit-web"]||[]).push([["chunk-10247cb1"],{"6b22":function(e,t,a){},"780d":function(e,t,a){"use strict";var n=a("c436"),r=a.n(n);r.a},"7e64":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r}));var n=[{label:"设备名称",prop:"deviceName"},{label:"设备编号",prop:"deviceCode"},{label:"图库人数",prop:"validCount"},{label:"同步失败人数",prop:"failureCount"},{label:"操作",prop:"action",customSlot:"action"}],r=[{type:"selection"},{label:"人员ID",prop:"personId"},{label:"人员姓名",prop:"personName"},{label:"注册照",prop:"validCount",customSlot:"imageUrl"},{label:"图库",prop:"imageStoreName"},{label:"同步状态",prop:"status",customSlot:"status"},{label:"人员编辑状态",prop:"personStatus",customSlot:"personStatus"},{label:"失败原因",prop:"errorMessage",customSlot:"errorMessage"},{label:"同步时间",prop:"lastUpdateTime",filter:{type:"time"}}]},"9f3a":function(e,t,a){"use strict";var n=a("6b22"),r=a.n(n);r.a},c436:function(e,t,a){e.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",primaryColor:"#0075da",primaryHoverColor:"#3391e1",primaryActiveColor:"#0069c4"}},f58a:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a("5c96"),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"是否确认执行该操作?";return function(t,a,r){var o=r.value;return r.value=function(){for(var t=this,a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];Object(n["MessageBox"])({title:"提示",message:e,type:"warning",confirmButtonText:"确认",cancelButtonText:"取消",center:!1,callback:function(e){"confirm"===e&&o.apply(t,r)}})},r}}},fed2: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("qz-wrap",{staticClass:"device-detail"},[a("panel-base",{attrs:{device:e.device}}),a("panel-photo",{attrs:{deviceId:e.device.deviceId}}),a("panel-record",{attrs:{deviceId:e.device.deviceId}})],1)},r=[],o=a("d4ec"),c=a("bee2"),s=a("99de"),i=a("7e84"),l=a("262e"),u=a("9ab4"),p=a("60a3"),d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("CwPanel",{attrs:{title:"基本信息"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"column"},[a("span",{staticClass:"column-label"},[e._v("设备名称:")]),a("span",{staticClass:"column-content"},[e._v(e._s(e.device.deviceName))])]),a("div",{staticClass:"column"},[a("span",{staticClass:"column-label"},[e._v("设备编号:")]),a("span",{staticClass:"column-content"},[e._v(e._s(e.device.deviceCode))])])])])},h=[],v=function(e){function t(){return Object(o["a"])(this,t),Object(s["a"])(this,Object(i["a"])(t).apply(this,arguments))}return Object(l["a"])(t,e),t}(p["e"]);u["a"]([Object(p["c"])({type:Object,default:{deviceName:"",deviceCode:""}})],v.prototype,"device",void 0),v=u["a"]([Object(p["a"])({name:"PanelBase",components:{}})],v);var f=v,b=f,m=a("2877"),g=Object(m["a"])(b,d,h,!1,null,"4e563bda",null),y=g.exports,O=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("CwPanel",{attrs:{title:"同步图库信息"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"column"},[a("span",{staticClass:"column-label"},[e._v("重新同步规则说明:")]),a("span",{staticClass:"column-content"},[a("div",[e._v("1、点击重新同步后,将清空设备中的所有人员数据,此时请勿操作设备")]),a("div",[e._v("2、同步数据需要一段时间,你可以刷新当前页面,在“同步记录列表”中查询当前同步记录")])])])]),a("el-button",{staticStyle:{"margin-bottom":"16px"},attrs:{type:"primary",disabled:0===e.photos.length},on:{click:e.onSyncAgain}},[e._v("重置设备并重新同步")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.photos}},[a("el-table-column",{attrs:{label:"图库名称"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",{staticClass:"link",on:{click:function(t){return e.onGoPhotoDetail(n)}}},[e._v(e._s(n.imageStoreName))])]}}])}),a("el-table-column",{attrs:{label:"图库人数",prop:"validCount"}}),a("el-table-column",{attrs:{label:"同步失败人数",prop:"failureCount"}})],1)],1)},j=[],w=(a("96cf"),a("1da1")),S=a("0613"),k=a("ac1a"),P=a("6fc5"),x=function(e){function t(){var e;return Object(o["a"])(this,t),e=Object(s["a"])(this,Object(i["a"])(t).apply(this,arguments)),e.loading=!1,e.appModule=Object(P["e"])(k["a"],S["a"]),e}return Object(l["a"])(t,e),Object(c["a"])(t,[{key:"created",value:function(){this.fetchPhotos()}},{key:"onSyncAgain",value:function(){var e=Object(w["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("确认重置设备并重新同步?",{type:"warning"});case 3:return this.loading=!0,e.next=6,this.service.deviceSyncAgain({deviceId:this.deviceId});case 6:t=e.sent,t.data,this.loading=!1,this.$message.success("同步成功"),this.fetchPhotos(),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](0),this.loading=!1;case 16:case"end":return e.stop()}}),e,this,[[0,13]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"fetchPhotos",value:function(){var e=Object(w["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,e.next=4,this.appModule.fetchDevicePhoto(this.deviceId);case 4:this.loading=!1,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),this.loading=!1;case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onGoPhotoDetail",value:function(e){this.$router.push({name:"PhotoDetail",query:{id:e.imageStoreId}})}},{key:"photos",get:function(){return this.appModule.devicePhotos}}]),t}(p["e"]);u["a"]([Object(p["c"])({type:String,default:""})],x.prototype,"deviceId",void 0),x=u["a"]([Object(p["a"])({name:"PanelPhoto",components:{}})],x);var I=x,_=I,C=(a("9f3a"),Object(m["a"])(_,O,j,!1,null,"44c4a99c",null)),D=C.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("qz-wrap",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],scopedSlots:e._u([{key:"header",fn:function(){return[a("CwFormFilter",{ref:"searchFormRef",attrs:{form:e.formModal,rows:e.formRows},on:{search:e.onSearch,reset:e.onSearch}})]},proxy:!0},{key:"opt",fn:function(){return[a("el-button",{attrs:{type:"primary",disabled:!e.chosenPeople||0===e.chosenPeople.length},on:{click:e.onSyncAgain}},[e._v("重新同步")])]},proxy:!0},{key:"footer",fn:function(){return[a("qz-pager",{on:{change:e.fetchTableData},model:{value:e.pager,callback:function(t){e.pager=t},expression:"pager"}})]},proxy:!0}])},[a("qz-table",{attrs:{columns:e.columns,data:e.tableData},on:{"selection-change":e.onSelectionChange},scopedSlots:e._u([{key:"imageUrl",fn:function(t){var n=t.row;return[a("qz-image",{attrs:{src:e.splicingImgPath(n.imageUrl),width:"56px",height:"75px"}})]}},{key:"status",fn:function(t){var n=t.row;return[a("qz-dot-tag",{attrs:{type:["info","primary","success","danger"][n.status]}},[e._v(e._s(e._f("deviceSyncStatus")(n.status)))])]}},{key:"personStatus",fn:function(t){var n=t.row;return[a("qz-dot-tag",{attrs:{type:["success","info"][n.personStatus]}},[e._v(e._s(0===n.personStatus?"人员更新":"人员删除"))])]}},{key:"errorMessage",fn:function(t){var a=t.row;return[e._v(" "+e._s(2===a.status?"-":a.errorMessage||"-")+" ")]}}])})],1)},M=[],N=(a("a4d3"),a("4de4"),a("4160"),a("d81d"),a("e439"),a("dbb4"),a("b64b"),a("159b"),a("ade3")),$=a("71c8"),q=a("7e64"),A=a("f58a");function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function z(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?T(Object(a),!0).forEach((function(t){Object(N["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):T(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var E=function(e){function t(){var e;return Object(o["a"])(this,t),e=Object(s["a"])(this,Object(i["a"])(t).apply(this,arguments)),e.formModal={personName:"",imageStoreId:null,status:null,personStatus:null},e.formRows={personName:{label:"人员姓名",type:"text"},imageStoreId:{label:"图库",type:"select",options:[]},status:{label:"同步状态",type:"select",options:$["b"]},personStatus:{label:"人员编辑状态",type:"select",options:$["a"]}},e.pager={currentPage:1,rowsOfPage:10,total:0},e.tableData=[],e.columns=q["b"],e.loading=!1,e.chosenPeople=[],e.appModule=Object(P["e"])(k["a"],S["a"]),e.splicingImgPath=e.$utils.splicingImgPath,e}return Object(l["a"])(t,e),Object(c["a"])(t,[{key:"created",value:function(){this.fetchTableData(),this.fetchDevicePhotos()}},{key:"onSearch",value:function(){this.pager.currentPage=1,this.fetchTableData(),this.appModule.fetchDevicePhoto(this.deviceId)}},{key:"onReset",value:function(){this.searchFormRef.resetForm(),this.pager.currentPage=1,this.pager.rowsOfPage=10,this.fetchTableData()}},{key:"fetchTableData",value:function(){var e=Object(w["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,e.next=4,this.service.deviceSyncRecords(z({},this.formModal,{},this.pager,{deviceId:this.deviceId,status:this.formModal.status||0===this.formModal.status?this.formModal.status:null,personStatus:this.formModal.personStatus||0===this.formModal.personStatus?this.formModal.personStatus:null}));case 4:t=e.sent,a=t.data,this.tableData=a.datas||[],this.pager.total=a.totalRows,this.loading=!1,e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),this.loading=!1;case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"fetchDevicePhotos",value:function(){var e=Object(w["a"])(regeneratorRuntime.mark((function e(){var t,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.service.devicePhotos({deviceId:this.deviceId});case 3:if(t=e.sent,a=t.data,a){e.next=7;break}return e.abrupt("return");case 7:n=[],Object.keys(a).forEach((function(e){n.push({label:a[e],value:e})})),this.formRows["imageStoreId"].options=n,e.next=14;break;case 12:e.prev=12,e.t0=e["catch"](0);case 14:case"end":return e.stop()}}),e,this,[[0,12]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onSyncAgain",value:function(){var e=Object(w["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,e.next=4,this.service.personSyncAgain({data:this.chosenPeople});case 4:t=e.sent,t.data,this.loading=!1,this.$message.success("同步成功"),this.onSearch(),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),this.loading=!1;case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onSelectionChange",value:function(e){this.chosenPeople=e.map((function(e){return{deviceId:e.deviceId,personId:e.personId,imageStoreId:e.imageStoreId}}))}}]),t}(p["e"]);u["a"]([Object(p["d"])()],E.prototype,"searchFormRef",void 0),u["a"]([Object(p["c"])({type:String,default:""})],E.prototype,"deviceId",void 0),u["a"]([Object(A["a"])("确认重新同步?")],E.prototype,"onSyncAgain",null),E=u["a"]([Object(p["a"])({name:"DeviceList",components:{}})],E);var F=E,B=F,U=Object(m["a"])(B,R,M,!1,null,"30539022",null),W=U.exports,G=function(e){function t(){var e;return Object(o["a"])(this,t),e=Object(s["a"])(this,Object(i["a"])(t).apply(this,arguments)),e.device={deviceId:"",deviceCode:"",deviceName:""},e}return Object(l["a"])(t,e),Object(c["a"])(t,[{key:"created",value:function(){var e=this.$route.query,t=e.deviceId,a=e.deviceCode,n=e.deviceName;this.device.deviceId=t,this.device.deviceCode=a,this.device.deviceName=n}}]),t}(p["e"]);G=u["a"]([Object(p["a"])({name:"DeviceDetail",components:{PanelBase:y,PanelPhoto:D,PanelRecord:W}})],G);var J=G,H=J,L=(a("780d"),Object(m["a"])(H,n,r,!1,null,null,null));t["default"]=L.exports}}]);