zhouwx
2024-08-30 1f6893d24ba87313d4114c68813073ead53b2e12
1
2
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59b2d848"],{"0605":function(e,t,a){},"0b5c":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{title:"信息详情",centered:"",visible:e.visible,"confirm-loading":e.confirmLoading,width:"50%",cancelText:"取消",okText:"确认",afterClose:e.clearMod},on:{ok:e.handleCancel,cancel:e.handleCancel}},[a("div",{staticClass:"detail-mod"},[e.details.title?a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:4}},[e._v("标题")]),a("a-col",{staticClass:"noBorder",staticStyle:{"font-size":"24px","font-weight":"bolder"},attrs:{span:14}},[e._v(e._s(e.details.title))])],1):e._e(),e.details.emergType?a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:4}},[e._v("紧急类型")]),a("a-col",{staticClass:"noBorder",attrs:{span:14}},[a("a-tag",{staticStyle:{"font-size":"18px",padding:"5px 15px"},attrs:{color:1==e.details.emergType?"red":"blue"}},[e._v(" "+e._s(1==e.details.emergType?"紧急":2==e.details.emergType?"常规":"")+" ")])],1)],1):e._e(),e.details.disasterType?a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:4}},[e._v("灾种类型")]),a("a-col",{attrs:{span:14}},[e._v(e._s(e.getRiskName(e.details.disasterType)))])],1):e._e(),e.details.warningLevel?a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:4}},[e._v("预警级别")]),a("a-col",{staticClass:"noBorder",attrs:{span:14}},[a("a-tag",{staticStyle:{"font-size":"18px",padding:"5px 15px"},attrs:{color:1==e.details.warningLevel?"red":2==e.details.warningLevel?"orange":3==e.details.warningLevel?"yellow":"blue"}},[e._v(" "+e._s(e.getLevelName(e.details.warningLevel))+" ")])],1)],1):e._e(),e.details.publishingUnit?a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:4}},[e._v("发布单位")]),a("a-col",{attrs:{span:14}},[e._v(e._s(e.details.publishingUnit))])],1):e._e(),e.details.content?a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:4}},[e._v("信息内容")]),a("a-col",{attrs:{span:14}},[e._v(e._s(e.details.content))])],1):e._e(),e.details.directViewUrl?a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:4}},[e._v("直览附件")]),a("a-col",{staticStyle:{border:"none"},attrs:{span:14}},[a("a",{staticClass:"urlClick",attrs:{href:e.details.directViewUrl,target:"_blank"}},[e._v(e._s(e.details.directViewUrl))])])],1):e._e(),e.details.recipients&&e.details.recipients.length>0?a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:4}},[e._v("接收人")]),a("a-col",{attrs:{span:20}},[a("b",[e._v("本次共发送信息给 "+e._s(e.details.recipients.length)+"人:")]),a("br"),a("br"),e._v(" "+e._s(e.details.recipients.map((function(e){return e.realName+"("+e.phone.replace(/(\d{3})\d{4}(\d+)/,"$1****$2")+")"})).join(","))+" ")])],1):e._e(),e.details.acceptingUnitIds&&e.details.acceptingUnitIds.length>0?a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:4}},[e._v("接收人")]),a("a-col",{attrs:{span:20}},[a("b",[e._v("本次共发送信息给 "+e._s(e.details.acceptingUnitIds.length)+"人:")]),a("br"),a("br"),e._v(" "+e._s(e.details.acceptingUnitIds.map((function(e){return e.recipienterName+"("+e.recipienterPhone.replace(/(\d{3})\d{4}(\d+)/,"$1****$2")+")"})).join(","))+" ")])],1):e._e(),e.details.attachments&&e.details.attachments.length>0?a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:4}},[e._v("附件内容")]),a("a-col",{staticClass:"noBorder",attrs:{span:14}},e._l(e.details.attachments,(function(t,n){return a("a-button",{key:n,attrs:{type:"link"},on:{click:function(a){return e.viewFile(t)}}},[a("a-icon",{attrs:{type:"paper-clip"}}),e._v(e._s(t.attachementName))],1)})),1)],1):e._e(),1==e.showMeasure?a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:4}},[e._v("基础措施")]),a("a-col",{staticClass:"noBorder",attrs:{span:14}},e._l(e.measureDetail.baseMeasures,(function(t,n){return a("div",{key:n},[e._v(" "+e._s(n+1)+"、"+e._s(t)+" ")])})),0)],1):e._e(),1==e.showMeasure?a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:4}},[e._v("响应反馈")]),a("a-col",{attrs:{span:14}},[e._v(e._s(e.measureDetail.responseMeasure))])],1):e._e()],1)])},r=[],s=a("1da1"),i=(a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("7db0"),a("b0c0"),a("96cf"),a("96b6")),o=a("cee4"),u=a("852e"),c=a.n(u),d=a("3e85"),l={name:"msgDetailMod",data:function(){return{visible:!1,confirmLoading:!1,details:{},measureDetail:{},showMeasure:!1,riskOptions:[{name:"地震",value:1},{name:"气象",value:3},{name:"地质灾害",value:4},{name:"水旱",value:5},{name:"森林草原火灾",value:6}],levelOptions:[{name:"红色预警",value:1},{name:"橙色预警",value:2},{name:"黄色预警",value:3},{name:"蓝色预警",value:4}]}},created:function(){},methods:{clearMod:function(){},getDetails:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=t,a.next=3,Object(i["b"])(e);case 3:r=a.sent,100==r.data.code?r.data.data?n.details=r.data.data:n.$message.error("查询信息详情失败"):t.$message.error(r.data.msg);case 5:case"end":return a.stop()}}),a)})))()},getMeasures:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=t,a.next=3,Object(d["d"])({id:e});case 3:r=a.sent,100==r.data.code?(s=r.data.data,s.baseMeasures&&s.baseMeasures.length>0?(n.measureDetail=s,n.showMeasure=!0):(n.measureDetail={},n.showMeasure=!1)):t.$message.error(r.data.msg);case 5:case"end":return a.stop()}}),a)})))()},viewFile:function(e){var t=this,n=a("12a9"),r=n.baseUrl;o["a"].get(r+e.attachement,{headers:{"Content-Type":"application/json",tk:"".concat(c.a.get("resTk")),uid:"".concat(c.a.get("resUid"))},responseType:"blob"}).then((function(e){if(e){var a=document.createElement("a"),n=new Blob([e.data],{type:e.data.type});a.style.display="none",a.href=URL.createObjectURL(n),window.open(a.href)}else t.$message.error("获取文件失败")}))},handleOk:function(e){var t=this;t.confirmLoading=!0},handleCancel:function(e){var t=this;t.visible=!1},onChange:function(e){console.log(e)},getRiskName:function(e){var t;return null===(t=this.riskOptions.find((function(t){return t.value===e})))||void 0===t?void 0:t.name},getLevelName:function(e){var t;return null===(t=this.levelOptions.find((function(t){return t.value===e})))||void 0===t?void 0:t.name}}},p=l,m=(a("cd4e"),a("2877")),f=Object(m["a"])(p,n,r,!1,null,"c79cea6a",null);t["a"]=f.exports},"3e85":function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return s})),a.d(t,"e",(function(){return i})),a.d(t,"b",(function(){return o})),a.d(t,"d",(function(){return u}));var n=a("4020");function r(e){return Object(n["a"])({url:"/response/measure/page",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/response/measure/add",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/response/measure/update",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/response/measure/deleteById?id="+e,method:"get"})}function u(e){return Object(n["a"])({url:"/app/warninfo/responseMeasure/get",method:"post",data:e})}},4379: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:"inner"},[a("a-row",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"flex",gutter:12}},[a("a-col",{attrs:{span:6}},[a("a-range-picker",{staticStyle:{width:"100%"},attrs:{format:"YYYY-MM-DD",placeholder:["开始时间","结束时间"]},on:{change:e.timeChange,ok:e.onOk},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1),a("a-col",{attrs:{span:4}},[a("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.searchData()}}},[e._v("查询")]),a("a-button",{staticStyle:{"margin-left":"12px"},on:{click:e.resetSearch}},[e._v("重置")])],1)],1),a("div",{staticClass:"table-cont"},[a("div",{staticClass:"msg"},e._l(e.msg,(function(t){return a("a-card",{key:t.id,staticClass:"msg-item",attrs:{hoverable:""},scopedSlots:e._u([{key:"title",fn:function(){return[a("div",{staticClass:"tit"},[e._v(" 发送时间:"),a("span",[e._v(e._s(t.gmtCreate))])]),a("a-divider",{attrs:{type:"vertical"}}),a("div",{staticClass:"tit"},[e._v(" 任务ID:"),a("span",[e._v(e._s(t.id))])]),e._v(" 发送人数:"+e._s(t.recipients.length)+" ")]},proxy:!0},{key:"actions",fn:function(){return[a("div",[e._v(" 接收号码:"),a("span",[e._v(e._s(t.recipients.map((function(e){return e.realName+"("+e.phone.replace(/(\d{3})\d{4}(\d+)/,"$1****$2")+")"})).join("、")))])]),a("div",[a("a-button",{attrs:{type:"primary"},on:{click:function(a){return e.viewDetails(t)}}},[e._v("查看详情")])],1)]},proxy:!0}],null,!0)},[a("p",[e._v(" "+e._s(t.content)+" ")])])})),1)]),a("a-pagination",{staticClass:"pageItem",attrs:{total:e.total,defaultPageSize:e.search.pageSize,"show-total":function(e){return"共 "+e+" 条数据"}},on:{change:e.onPageChange},model:{value:e.search.pageIndex,callback:function(t){e.$set(e.search,"pageIndex",t)},expression:"search.pageIndex"}}),a("msg-detail-mod",{ref:"msgDetail"})],1)},r=[],s=a("1da1"),i=(a("96cf"),a("ac1f"),a("841c"),a("7db0"),a("b0c0"),a("c24f"),a("6bab")),o=a("0b5c"),u={name:"msgRecord",components:{msgDetailMod:o["a"]},data:function(){return{search:{pageIndex:1,pageSize:5,searchParams:{startTime:"",endTime:""}},timeRange:[],total:null,msg:[],visible:!1,details:{},riskOptions:[{name:"地震",value:1},{name:"气象",value:3},{name:"地质灾害",value:4},{name:"水旱",value:5},{name:"森林草原火灾",value:6}],levelOptions:[{name:"红色预警",value:1},{name:"橙色预警",value:2},{name:"黄色预警",value:3},{name:"蓝色预警",value:4}]}},created:function(){var e=this;e.getData()},methods:{getData:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,t.next=3,Object(i["b"])(e.search);case 3:n=t.sent,200==n.data.code?(a.msg=n.data.data,a.total=n.data.total):e.$message.error(n.data.msg);case 5:case"end":return t.stop()}}),t)})))()},searchData:function(){this.search.pageIndex=1,this.getData()},resetSearch:function(){var e=this;e.search={pageIndex:1,pageSize:10,searchParams:{startTime:"",endTime:""}},e.timeRange=[],e.getData()},onPageChange:function(e,t){var a=this;a.search.pageIndex=e,a.getData()},timeChange:function(e,t){var a=this;t&&(a.search.searchParams.startTime=e[0].format("YYYY-MM-DD 00:00:00"),a.search.searchParams.endTime=e[1].format("YYYY-MM-DD 23:59:59"))},onOk:function(e){console.log("onOk: ",e)},viewDetails:function(e){var t=this;t.$refs.msgDetail.details=e,t.$refs.msgDetail.visible=!0},getRiskName:function(e){var t;return null===(t=this.riskOptions.find((function(t){return t.value===e})))||void 0===t?void 0:t.name},getLevelName:function(e){var t;return null===(t=this.levelOptions.find((function(t){return t.value===e})))||void 0===t?void 0:t.name},handleOk:function(e){console.log(e),this.visible=!1}}},c=u,d=(a("ed40"),a("2877")),l=Object(d["a"])(c,n,r,!1,null,"3aae58e6",null);t["default"]=l.exports},"6bab":function(e,t,a){"use strict";a.d(t,"d",(function(){return r})),a.d(t,"e",(function(){return s})),a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return o})),a.d(t,"f",(function(){return u})),a.d(t,"a",(function(){return c}));var n=a("4020");function r(e){return Object(n["a"])({url:"/warning/info/add",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/warning/info/updateById",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/mesmanager/mes/send",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/mesmanager/mes/page",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/warning/info/publishById?id="+e,method:"get"})}function c(e){return Object(n["a"])({url:"/warning/info/deleteById?id="+e,method:"get"})}},c24f:function(e,t,a){"use strict";a.d(t,"o",(function(){return r})),a.d(t,"d",(function(){return s})),a.d(t,"v",(function(){return i})),a.d(t,"h",(function(){return o})),a.d(t,"t",(function(){return u})),a.d(t,"n",(function(){return c})),a.d(t,"m",(function(){return d})),a.d(t,"j",(function(){return l})),a.d(t,"c",(function(){return p})),a.d(t,"u",(function(){return m})),a.d(t,"g",(function(){return f})),a.d(t,"l",(function(){return g})),a.d(t,"i",(function(){return v})),a.d(t,"b",(function(){return h})),a.d(t,"s",(function(){return b})),a.d(t,"f",(function(){return _})),a.d(t,"k",(function(){return w})),a.d(t,"a",(function(){return O})),a.d(t,"r",(function(){return k})),a.d(t,"e",(function(){return j})),a.d(t,"p",(function(){return y})),a.d(t,"q",(function(){return x}));var n=a("4020");function r(e){return Object(n["a"])({url:"/account/user/find/user/list",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/account/user/add",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/account/user/update/info",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/account/user/deleteUser?userId="+e,method:"get"})}function u(e){return Object(n["a"])({url:"/account/user/update/password",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/mesmanager/recipient/page",method:"post",data:e})}function d(){return Object(n["a"])({url:"/mesmanager/recipient/listPeerRecipient",method:"get"})}function l(){return Object(n["a"])({url:"/sys/districtInfo/allWithUserIfo",method:"get"})}function p(e){return Object(n["a"])({url:"/mesmanager/recipient/add",method:"post",data:e})}function m(e){return Object(n["a"])({url:"/mesmanager/recipient/update",method:"post",data:e})}function f(e){return Object(n["a"])({url:"/mesmanager/recipient/delete?id="+e,method:"get"})}function g(){return Object(n["a"])({url:"/account/user/list/auditors",method:"get"})}function v(e){return Object(n["a"])({url:"/addressbook/user/page",method:"post",data:e})}function h(e){return Object(n["a"])({url:"/addressbook/user/add",method:"post",data:e})}function b(e){return Object(n["a"])({url:"/addressbook/user/update",method:"post",data:e})}function _(e){return Object(n["a"])({url:"/addressbook/user/delete",method:"post",data:e})}function w(){return Object(n["a"])({url:"/addressbook/group/listAll",method:"get"})}function O(e){return Object(n["a"])({url:"/addressbook/group/add",method:"post",data:e})}function k(e){return Object(n["a"])({url:"/addressbook/group/update",method:"post",data:e})}function j(e){return Object(n["a"])({url:"/addressbook/group/delete",method:"post",data:e})}function y(){return Object(n["a"])({url:"/addressbook/group/listUserByGroup",method:"get"})}function x(e){return Object(n["a"])({headers:{"Content-Type":"multipart/form-data"},url:"/addressbook/user/import",method:"post",data:e})}},cd4e:function(e,t,a){"use strict";a("0605")},ed40:function(e,t,a){"use strict";a("ff17")},ff17:function(e,t,a){}}]);
//# sourceMappingURL=chunk-59b2d848.a65a4472.js.map