1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-unprocessDetail-unprocessDetail"],{2648:function(t,a,e){"use strict";e.r(a);var i=e("dd71"),n=e.n(i);for(var s in i)"default"!==s&&function(t){e.d(a,t,(function(){return i[t]}))}(s);a["default"]=n.a},"6ecd":function(t,a,e){"use strict";var i;e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return s})),e.d(a,"a",(function(){return i}));var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",[e("v-uni-view",{staticClass:"timeBox flex justify-between align-center padding-lr-sm"},[e("v-uni-view",{staticClass:"time"},[t._v(t._s(t.getData.time))]),e("v-uni-button",{staticClass:"cu-btn radius bg-red sm"},[t._v("未处理")])],1),e("v-uni-view",[e("v-uni-view",{staticClass:"basic-info"},[e("v-uni-view",{staticClass:"info-tit margin-left-xs"},[e("v-uni-text",{staticClass:"cuIcon-titles margin-right-xs"}),t._v("基本信息")],1),e("v-uni-view",{staticClass:"info-content"},[e("v-uni-view",{staticClass:"info-one-info "},[e("v-uni-text",[t._v("设备名称:")]),e("v-uni-text",[t._v(t._s(t.getData.device_name))])],1),e("v-uni-view",{staticClass:"info-one-info "},[e("v-uni-text",[t._v("设备地址:")]),e("v-uni-text",[t._v(t._s(t.getData.unitinfo))])],1),e("v-uni-view",{staticClass:"info-one-info "},[e("v-uni-text",[t._v("告警信息:")]),e("v-uni-text",[t._v(t._s(t.getData.alarm_information))])],1)],1)],1),e("v-uni-view",{staticClass:"processStatus"},[e("v-uni-view",{staticClass:"info-tit margin-left-xs"},[e("v-uni-text",{staticClass:"cuIcon-titles margin-right-xs"}),t._v("处理内容")],1),e("v-uni-view",{staticClass:"padding-lr padding-bottom-lg"},[e("v-uni-form",{attrs:{action:""}},[e("v-uni-radio-group",{attrs:{name:"gender"},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.RadioChange.apply(void 0,arguments)}}},[e("v-uni-label",{staticClass:"margin-right"},[e("v-uni-radio",{attrs:{value:"0",checked:!0}}),e("v-uni-text",[t._v("单个处理")])],1),e("v-uni-label",[e("v-uni-radio",{attrs:{value:"1"}}),e("v-uni-text",[t._v("批量处理")])],1)],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-textarea",{staticClass:"JTxtArea lg",attrs:{maxlength:50,"data-maxnum":t.reason.length+"/50",placeholder:"备注信息,最多可输入50个字...","auto-height":!0,name:t.reason},on:{input:function(a){arguments[0]=a=t.$handleEvent(a),t.inputReason.apply(void 0,arguments)}},model:{value:t.textareaMsg,callback:function(a){t.textareaMsg=a},expression:"textareaMsg"}})],1),e("v-uni-view",{staticClass:"btn-area"},[e("v-uni-button",{staticClass:"bg-orange round missReport margin-top",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.$noMultipleClicks(t.alarmSubmit,1)}}},[t._v("误 报")]),e("v-uni-button",{staticClass:"bg-blue round missReport margin-top ",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.$noMultipleClicks(t.alarmSubmit,0)}}},[t._v("非 误 报")])],1)],1)],1)],1)],1)],1)},s=[]},a100:function(t,a,e){"use strict";e.r(a);var i=e("6ecd"),n=e("2648");for(var s in n)"default"!==s&&function(t){e.d(a,t,(function(){return n[t]}))}(s);var r,u=e("f0c5"),o=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,"6b1b80aa",null,!1,i["a"],r);a["default"]=o.exports},dd71:function(t,a,e){"use strict";(function(t){var i=e("4ea4");e("e25e"),e("ac1f"),e("5319"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("96cf");var n=i(e("1da1")),s={data:function(){return{noClick:!0,modalName:null,reason:"",type:1,textareaMsg:"",getData:{},radioOne:0,clzt:0}},onLoad:function(t){this.type=t.type,this.getDetailData({type:t.type,id:t.id});var a="";switch(parseInt(t.type)){case 1:a="报警主机";break;case 2:a="水系统";break;case 4:a="消防栓监测";break;case 6:a="RTU测控终端";break;case 7:a="电气火灾";break;case 16:a="视频告警";break;case 17:a="电梯报警";break;case 128:a="井盖监测";break;case 129:a="地磁";break;case 130:a="门磁";break;case 131:a="可燃气体";break;default:break}uni.setNavigationBarTitle({title:a+"(未处理)"})},methods:{getDetailData:function(){var a=arguments,e=this;return(0,n.default)(regeneratorRuntime.mark((function i(){var n,s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:{},i.next=3,e.$myRequest({url:"ComprehensiveAlarm/getAlarmDetails",data:n,showLoading:!0});case 3:s=i.sent,e.getData=s.data.data[0],t.log(e.getData);case 6:case"end":return i.stop()}}),i)})))()},powerSubmitRes:function(){var t=arguments,a=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.length>0&&void 0!==t[0]?t[0]:{},e.next=3,a.$myRequest({url:"ComprehensiveAlarm/setAlarmHandling",data:i});case 3:n=e.sent,n.data.flag&&(uni.showToast({title:"提交成功"}),setTimeout((function(){uni.navigateTo({url:"/pages/processList/processList?type="+a.type})}),1e3));case 5:case"end":return e.stop()}}),e)})))()},alarmSubmit:function(t){if(this.textareaMsg.replace(/^\s*/g,"")){var a={};if(a.id=this.getData.id,a.type=this.getData.dwtype,a.device_code=this.getData.device_code,a.if_batch=this.radioOne,a.clwb=t,a.ncmd=this.getData.ncmd,a.clnr=this.textareaMsg,1==this.getData.dwtype)return a.data3=this.getData.data3,a.data5=this.getData.data5,void this.powerSubmitRes(a);if(2==this.getData.dwtype)return a.data1=this.getData.data1,void this.powerSubmitRes(a);if(7==this.getData.dwtype)return a.data1=this.getData.data1,void this.powerSubmitRes(a);if(3==this.getData.dwtype)return a.data2=this.getData.data2,void this.powerSubmitRes(a);if(6==this.getData.dwtype)return a.data2=this.getData.data2,a.data4=this.getData.data4,void this.powerSubmitRes(a);this.powerSubmitRes(a)}else uni.showToast({title:"请输入处理内容",icon:"none"})},RadioChange:function(a){this.radioOne=a.detail.value,t.log(this.radioOne)},textareaAInput:function(t){this.textareaAValue=t.detail.value},inputReason:function(t){this.reason=t.detail.value}}};a.default=s}).call(this,e("5a52")["default"])}}]);
|