1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a7fa21e"],{"3c4d":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAUCAYAAABGUvnzAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAB90RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgOLVo0ngAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDMvMTMvMjQ1u904AAAFdklEQVRoge2ZX6gUVRzHP5MNFhn3Flq0g7RGD+0UOORQVg+uD/0jH1ZKkNK6UTnY7WFDeopwH8LX1qBkLHHN0pLIC0FmEeztrw8TLSFTGOgWDZKg3osUtBNMD+ccPXvubHevFO3i/cKyM+f3O785O9/f73d+57dWlmXMY3DhpO4i4BagAtwvhz8DDgJHEzv+/Z/mW/MEDyac1L0KWANsBm4F/gDOSvE1wCLgKLAD+LAX0fMEDyCc1F0KvAI8DHwDvAN8DZwEMuAG4C5gA3A38AHwfGLHv5i2hopgK/CLQBmYyMJoaq7zsjBqXMzz5jrPsOEB7X7X66TudcBh4DZgS2LHr86iP45whh+BexM7/k2XX3ZRq/7/UAR2I0juG1kYtYHdVuBX5/i8KaBmBf7EHOfpqAONfhSd1F0IvAV4wJrZyAVI7Pg14CHABfY6qXuFLr98rqsdEExZgV+W12OIF1LuI0pa6kJGpyIfbbwp9ZStNuBZgV+T9xWgmYVRVeqX6XY4T957mu0W/eERRCE1ntjxYTXopO4IsDCx41N5kxI7/tRJ3WeBEFgH7FWyYSVYR0O/kcQ18hSBuhX4ijhP6nsmycAooKK2acgqxn0LkYJNGzPQy6ngfFG1GfgcUTjpuAnY5qTursSO3+9h/g3gUWDcSd2JxI7PwRAQLF/KlB6dWRg1pWwUKGZh1NJkbXJSuBX4GVBVc2dBu5eedBB9LV332ppriC3FA4oy0j2Ew5hOArAcUS2/kNixWRj9iSimVjqpuxLYltjxGV0hsePMSd0GYj/2gC9gCAhG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4AAAAAElFTkSuQmCC"},"7abe":function(t,i,e){"use strict";e.r(i);var a=function(){var t=this,i=t._self._c;return i("div",{staticClass:"home"},[i("div",{staticClass:"header",staticStyle:{position:"relative"}},[t._v("应急演习列表")]),i("van-dialog",{attrs:{"show-confirm-button":!1},model:{value:t.isEndConfirm,callback:function(i){t.isEndConfirm=i},expression:"isEndConfirm"}},[i("div",{staticClass:"alert"},[i("div",{staticStyle:{"font-size":".26rem","text-align":"left"}},[i("van-icon",{attrs:{name:"qr"}}),i("span",{staticStyle:{"margin-left":".1rem","font-size":".22rem"}},[t._v("提示")])],1),i("div",{staticClass:"text"},[i("br"),t._v(" 确定停止该演习? ")]),i("div",{staticClass:"foot"},[i("div",{staticClass:"left"},[i("span",{on:{click:function(i){t.isEndConfirm=!1}}},[t._v("取消")])]),i("div",{staticClass:"right"},[i("span",{on:{click:function(i){t.endDrillPlan(t.itemId),t.isEndConfirm=!1}}},[t._v("确定")])])])])]),i("van-dialog",{attrs:{"show-confirm-button":!1},model:{value:t.isStartConfirm,callback:function(i){t.isStartConfirm=i},expression:"isStartConfirm"}},[i("div",{staticClass:"alert"},[i("div",{staticStyle:{"font-size":".26rem","text-align":"left"}},[i("van-icon",{attrs:{name:"qr"}}),i("span",{staticStyle:{"margin-left":".1rem","font-size":".22rem"}},[t._v("提示")])],1),i("div",{staticClass:"text"},[i("br"),t._v(" 确定启动该演习? ")]),i("div",{staticClass:"foot"},[i("div",{staticClass:"left"},[i("span",{on:{click:function(i){t.isStartConfirm=!1}}},[t._v("取消")])]),i("div",{staticClass:"right"},[i("span",{on:{click:function(i){t.startDrillPlan(t.itemId),t.isStartConfirm=!1}}},[t._v("确定")])])])])]),i("van-dialog",{attrs:{title:"选择本次演习你的应急职责","show-cancel-button":!0,"show-confirm-button":!1},model:{value:t.show,callback:function(i){t.show=i},expression:"show"}},[i("p",{staticStyle:{padding:".1rem"},on:{click:function(i){return t.toDetailing(1)}}},[t._v("现场指挥")]),i("p",{staticStyle:{padding:".1rem"},on:{click:function(i){return t.toDetailing(4)}}},[t._v("记录员")])]),t.isRefresh?i("van-pull-refresh",{staticStyle:{height:"100vh"},on:{refresh:t.onRefresh},model:{value:t.isLoading,callback:function(i){t.isLoading=i},expression:"isLoading"}},[i("div",{ref:"content",staticClass:"homeContent",on:{scroll:t.handleScroll}},[i("ul",t._l(t.list,(function(a,l){return i("li",{key:l,staticClass:"item"},[i("div",{on:{click:function(i){return t.toDetail(a.startStatus,a.drillSn,a.drillName,a.drillType,a.drillDeck,a.recordId,a.planid,a.presentNumOne,a.notArrivedNumTwo,a.drillDate)}}},[t._v(" 丨演习名称 "),i("span",[t._v(t._s(a.drillName))])]),i("p",{on:{click:function(i){return t.toDetail(a.startStatus,a.drillSn,a.drillName,a.drillType,a.drillDeck,a.recordId,a.planid,a.presentNumOne,a.notArrivedNumTwo,a.drillDate)}}},[t._v(" 演习编号:"+t._s(a.drillSn))]),i("p",{on:{click:function(i){return t.toDetail(a.startStatus,a.drillSn,a.drillName,a.drillType,a.drillDeck,a.recordId,a.planid,a.presentNumOne,a.notArrivedNumTwo,a.drillDate)}}},[t._v(" 演习类型:"+t._s(a.drillType))]),i("p",{on:{click:function(i){return t.toDetail(a.startStatus,a.drillSn,a.drillName,a.drillType,a.drillDeck,a.recordId,a.planid,a.presentNumOne,a.notArrivedNumTwo,a.drillDate)}}},[t._v(" 开始时间:"+t._s(a.drillDate))]),"1"===a.startStatus?i("p",{staticStyle:{color:"greenyellow","align-content":"center"}},[t._v(" 演习状态:待启动 "),"1"!==a.startStatus||t.hasFindCache?t._e():i("img",{staticStyle:{float:"right"},attrs:{src:e("3c4d"),alt:""},on:{click:function(i){t.isStartConfirm=!0,t.itemId=a.id}}})]):t._e(),"2"===a.startStatus?i("p",{staticStyle:{color:"greenyellow","align-content":"center"}},[t._v(" 演习状态:进行中 "),"2"===a.startStatus&&t.hasFindCache?i("img",{staticStyle:{float:"right"},attrs:{src:e("ebbb"),alt:""},on:{click:function(i){t.isEndConfirm=!0,t.itemId=a.id}}}):t._e()]):t._e(),"3"===a.startStatus?i("p",{staticStyle:{color:"blue"}},[t._v("演习状态:已完成")]):t._e()])})),0)])]):i("div",{ref:"content",staticClass:"homeContent",on:{scroll:t.handleScroll}},[i("ul",t._l(t.list,(function(a,l){return i("li",{key:l,staticClass:"item"},[i("div",{on:{click:function(i){return t.toDetail(a.startStatus,a.drillSn,a.drillName,a.drillType,a.drillDeck,a.recordId,a.planid,a.presentNumOne,a.notArrivedNumTwo,a.drillDate)}}},[t._v(" 丨演习名称 "),i("span",[t._v(t._s(a.drillName))])]),i("p",{on:{click:function(i){return t.toDetail(a.startStatus,a.drillSn,a.drillName,a.drillType,a.drillDeck,a.recordId,a.planid,a.presentNumOne,a.notArrivedNumTwo,a.drillDate)}}},[t._v(" 演习编号:"+t._s(a.drillSn))]),i("p",{on:{click:function(i){return t.toDetail(a.startStatus,a.drillSn,a.drillName,a.drillType,a.drillDeck,a.recordId,a.planid,a.presentNumOne,a.notArrivedNumTwo,a.drillDate)}}},[t._v(" 演习类型:"+t._s(a.drillType))]),i("p",{on:{click:function(i){return t.toDetail(a.startStatus,a.drillSn,a.drillName,a.drillType,a.drillDeck,a.recordId,a.planid,a.presentNumOne,a.notArrivedNumTwo,a.drillDate)}}},[t._v(" 开始时间:"+t._s(a.drillDate))]),"1"===a.startStatus?i("p",{staticStyle:{color:"greenyellow","align-content":"center"}},[t._v(" 演习状态:待启动 "),"1"!==a.startStatus||t.hasFindCache?t._e():i("img",{staticStyle:{float:"right"},attrs:{src:e("3c4d"),alt:""},on:{click:function(i){t.isStartConfirm=!0,t.itemId=a.id}}})]):t._e(),"2"===a.startStatus?i("p",{staticStyle:{color:"greenyellow","align-content":"center"}},[t._v(" 演习状态:进行中 "),"2"===a.startStatus&&t.hasFindCache?i("img",{staticStyle:{float:"right"},attrs:{src:e("ebbb"),alt:""},on:{click:function(i){t.isEndConfirm=!0,t.itemId=a.id}}}):t._e()]):t._e(),"3"===a.startStatus?i("p",{staticStyle:{color:"blue"}},[t._v("演习状态:已完成")]):t._e()])})),0)]),i("van-overlay",{attrs:{show:t.loading}},[i("div",{staticClass:"wrapper",on:{click:function(t){t.stopPropagation()}}},[i("van-loading",{attrs:{size:"24px",color:"#0094ff",vertical:""}},[t._v("加载中...")])],1)])],1)},l=[],r=(e("e7e5"),e("d399")),s=(e("14d9"),e("c761")),n={data(){return{platformId:"",list:[],isLoading:!1,isRefresh:!0,loading:!1,show:!1,drillSn:"",drillName:"",drillType:"",drillArea:"",recordId:"",planid:"",presentNumOne:"",presentNumTwo:"",drillDate:"",user:{},hasFindCache:!0,isEndConfirm:!1,itemId:"",isStartConfirm:!1}},components:{},mounted(){this.queryList()},methods:{handleScroll(){this.$refs.content.scrollTop?this.isRefresh=!1:this.isRefresh=!0},async onRefresh(){this.isRefresh&&Object(s["o"])({pageNum:"0",pageSize:"200",userName:this.user.username}).then(t=>{200===t.status?(this.list=t.data.data.records,Object(r["a"])("刷新成功"),this.isLoading=!1):(Object(r["a"])("出错了,请稍后重试"),this.isLoading=!1)})},queryList(){window.suplink.getUserInfo().then(t=>{if("200"===t.code){this.user=t.data;const i=setTimeout(()=>{this.loading=!0},500);this.queryPlatformByUserName(),Object(s["o"])({pageNum:"0",pageSize:"200",userName:this.user.username}).then(t=>{200===t.status?(console.log(t),this.list=t.data.data.records,this.loading=!1,clearTimeout(i),200===t.data.code?this.$emit("cloneSpecific",!1):this.$notify({type:"danger",message:data.msg})):this.$notify({type:"danger",message:data.msg})}).catch(()=>{this.loading=!1,clearTimeout(i),this.$notify({type:"danger",message:"出错了,请稍后重试"})})}})},queryPlatformByUserName(){Object(s["q"])({userName:this.user.username}).then(t=>{this.loading=!1,200===t.status?(this.platformId=t.data,this.findCache()):Object(r["a"])("查询平台出错,请联系管理员")})},findCache(){Object(s["d"])({username:this.user.username,platform:this.platformId}).then(t=>{this.loading=!1,200===t.status?(this.hasFindCache=!1,t.data.data.isClcikFinish&&(this.hasFindCache=!0)):console.log("findCache查询出错")})},toDetail(t,i,e,a,l,r,s,n,d,o){this.drillSn=i,this.drillName=e,this.drillType=a,this.drillArea=l,this.recordId=r,this.planid=s,this.presentNumOne=n,this.presentNumTwo=d,this.drillDate=o,this.loading=!1,"3"===t?this.$router.push({name:"detail1",query:{drillSn:i,drillName:e,drillType:a,drillArea:l,recordId:r,planid:s}}):"1"===t||(this.show=!0)},toDetailing(t){switch(this.show=!1,t){case 1:this.$router.push({name:"detail2",query:{drillSn:this.drillSn,drillName:this.drillName,drillType:this.drillType,drillArea:this.drillArea,recordId:this.recordId,planid:this.planid,drillDate:this.drillDate}});break;case 2:this.$router.push({name:"detail3",query:{drillSn:this.drillSn,drillName:this.drillName,drillType:this.drillType,drillArea:this.drillArea,recordId:this.recordId,planid:this.planid,boatName:1,presentNumOne:this.presentNumOne,drillDate:this.drillDate}});break;case 3:this.$router.push({name:"detail3",query:{drillSn:this.drillSn,drillName:this.drillName,drillType:this.drillType,drillArea:this.drillArea,recordId:this.recordId,planid:this.planid,boatName:2,presentNumTwo:this.presentNumTwo,drillDate:this.drillDate}});break;case 4:this.$router.push({name:"detail4",query:{drillSn:this.drillSn,drillName:this.drillName,drillType:this.drillType,drillArea:this.drillArea,recordId:this.recordId,planid:this.planid,drillDate:this.drillDate}});break}},startDrillPlan(t){Object(s["x"])({id:t,notParticipatings:[],platformId:this.platformId}).then(i=>{200===i.status?(console.log(i.data.code),500===i.data.code?Object(r["a"])(i.data.msg):(Object(r["a"])("启动成功"),this.saveCache(t))):(Object(r["a"])("出错了,请稍后重试"),this.isLoading=!1)})},saveCache(t){Object(s["s"])({drillID:t,isClcikFinish:!0,platform:this.platformId,startTime:Date.now(),username:this.user.username}).then(t=>{200===t.status?this.queryList():(Object(r["a"])("出错了,请稍后重试"),this.isLoading=!1)})},endDrillPlan(t){Object(s["c"])({id:t,drillDuration:6666,platformId:this.platformId,updated:this.user.username}).then(t=>{this.loading=!1,200===t.status?(Object(r["a"])("成功结束"),this.queryList()):Object(r["a"])("出错了,请稍后重试")})}}},d=n,o=(e("a42f"),e("2877")),c=Object(o["a"])(d,a,l,!1,null,"fb8ce9da",null);i["default"]=c.exports},a42f:function(t,i,e){"use strict";e("e5ba")},e5ba:function(t,i,e){},ebbb:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAUCAYAAABGUvnzAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAB90RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgOLVo0ngAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDMvMTMvMjQ1u904AAAE5UlEQVRoge2ZXYhbRRTHfycotBbZeFuovsj1xY9i6eo+LFphUxTKaqGtfRIEUwRFu4MRQZ/E9bmggdmi9GUjaEF8aMSPN9koRcXWNbLVR80KfttLRGkt1I4PZ25yc3OzSWSLCe4fQu6dc87MZP5zzpk5EeccGxhtRMY8ADwK7AZywMdAJbD2ZD9b2SB4dBEZcwh4DrgTOA/86kXbgC3AWeBoYO0bvfrYIHgEERlzLfAWsBd4DygDpwNrf0/Ip4A54BDwEfBgYO25dF/jRbBICBSAKs41h7ZzrjKAbgEA52pD23aPmce5+jBmkTFbgDPAjcC+wNqlPvp3Ae8CfwJ3BNZGSXlumMFHACGwiJI8OJxrAIuIlAbQLgJVT1BsW0Kk2tIQmRywn1qrn8FRRcnd0Y9cgMDaT4AdaMh+Py0fN4JjNBEp+E8FkToi+QHs2t4kEvZY/ANABaggUkOkBuSBQuL9C//dfzzdIAMhMmY/cB+wN7B2dVC7wNqfgXuB6ciYh5OycQvRBWAJ2JMhreNc05NWyZDPAF8CcWifbH3HJIjE5Ia+rzK6KRpeN0Q3QLErRei4zVa7yDwa2gsD/joiY+rAj4G1s4m2W9DTc5ooAT4LrD2b0D0BTDvnbt66sPA3wFWDDv6fIb1wkMyPeZSMekLWICuEizig1LLNRgmYQD22iW6CPO0Nkwf297AtoqG8kJl3NawXcK6cZRwZMwvsAp5KiWaB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