Shanghai-SanFenYuan/kunshan/static/js/chunk-24f2eae0.daf5977f.js
2026-03-16 14:53:48 +08:00

1 line
23 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24f2eae0"],{1121:function(e,t,r){"use strict";r("24f1")},"24f1":function(e,t,r){},4101:function(e,t,r){"use strict";r.d(t,"g",(function(){return n})),r.d(t,"d",(function(){return a})),r.d(t,"a",(function(){return i})),r.d(t,"i",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"f",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"b",(function(){return d})),r.d(t,"h",(function(){return f}));var o=r("b775");function n(e){return Object(o["a"])({url:"/caseroom/list",method:"get",params:e})}function a(e){return Object(o["a"])({url:"/caseroom/"+e,method:"get"})}function i(e){return Object(o["a"])({url:"/caseroom",method:"post",data:e})}function s(e){return Object(o["a"])({url:"/caseroom",method:"put",data:e})}function l(e){return Object(o["a"])({url:"/caseroom/"+e,method:"delete"})}function c(e){return Object(o["a"])({url:"/videoApi/devices",method:"get",params:e})}function u(e){return Object(o["a"])({url:"/videoApi/channels",method:"get",params:e})}function d(e){return Object(o["a"])({url:"/caseroom/apply/start",method:"post",data:e})}function f(e){return Object(o["a"])({url:"/caseroom/caseroomapplylist",method:"get",params:e,timeout:1e4})}},"7c09":function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-dialog",{attrs:{title:"选择时间",visible:e.selectends,width:"660px","close-on-click-modal":!1},on:{"update:visible":function(t){e.selectends=t}}},[e._v(" 办案开始时间:"),r("el-date-picker",{attrs:{format:"yyyy-MM-dd HH:mm",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择办案开始时间","default-time":"08:00:00","picker-options":e.pickerOptions},model:{value:e.form.starts,callback:function(t){e.$set(e.form,"starts",t)},expression:"form.starts"}}),e._v(" - 至 - "),r("el-date-picker",{attrs:{format:"yyyy-MM-dd HH:mm",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择办案结束时间","default-time":"17:00:00","picker-options":e.pickerOptions},model:{value:e.form.ends,callback:function(t){e.$set(e.form,"ends",t)},expression:"form.ends"}}),r("br"),r("br"),[r("el-checkbox",{model:{value:e.endtimechecked,callback:function(t){e.endtimechecked=t},expression:"endtimechecked"}},[e._v("同步上传到易办案")])],r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.selectends=!1}}},[e._v("取 消")]),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["caserecord:end"],expression:"['caserecord:end']"}],attrs:{type:"primary"},on:{click:e.endcasebtn}},[e._v("确 定")])],1)],2),r("el-dialog",{attrs:{title:e.uploadtittle,visible:e.dialogVisible,width:"400px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{multiple:"",drag:"",action:e.url,headers:e.headers,"on-preview":e.handlePreview,"on-remove":e.handleRemove,"before-remove":e.beforeremove,"before-upload":e.foreUpload,"on-success":e.uploadsuss,accept:".pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .html, .htm, .txt,","file-list":e.fileList}},[r("i",{staticClass:"el-icon-upload"}),r("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),r("em",[e._v("点击上传")])]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("请上传[pdf, doc, docx, xls, xlsx, ppt, pptx, html, htm, txt]格式")])])],1),r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"shad"},[r("el-row",{attrs:{gutter:40}},[r("el-col",{attrs:{span:18}},[r("el-row",[r("el-col",{attrs:{span:24}},[r("span",{staticClass:"title"},[e._v("案件信息")]),r("span",{staticClass:"more",on:{click:e.showmore}},[e._v("展开"),r("i",{class:e.moreicon})]),r("el-divider"),[r("el-form",{ref:"form",staticClass:"demo-form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"案件名称",prop:"caseName","show-message":!1}},[r("el-select",{attrs:{clearable:"",filterable:"",disabled:e.formdisabled},on:{change:e.caseNameChange},model:{value:e.form.caseName,callback:function(t){e.$set(e.form,"caseName",t)},expression:"form.caseName"}},e._l(e.caselist,(function(e){return r("el-option",{key:e.index,attrs:{label:e.ajmc,value:e.ajmc}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"案件编号"}},[r("el-input",{attrs:{disabled:!0},model:{value:e.form.caseCode,callback:function(t){e.$set(e.form,"caseCode",t)},expression:"form.caseCode"}})],1)],1)],1),r("el-collapse-transition",[e.showdetail?r("div",[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"案由"}},[r("el-input",{attrs:{disabled:e.formdisabled},model:{value:e.form.caseReason,callback:function(t){e.$set(e.form,"caseReason",t)},expression:"form.caseReason"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"律师"}},[r("el-input",{attrs:{disabled:e.formdisabled},model:{value:e.form.lawyer,callback:function(t){e.$set(e.form,"lawyer",t)},expression:"form.lawyer"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"承办人",prop:"cbr"}},[r("el-input",{attrs:{disabled:!0},model:{value:e.form.cbr,callback:function(t){e.$set(e.form,"cbr",t)},expression:"form.cbr"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"书记员"}},[r("el-input",{attrs:{disabled:e.formdisabled},model:{value:e.form.clerk,callback:function(t){e.$set(e.form,"clerk",t)},expression:"form.clerk"}})],1)],1)],1),r("el-form-item",{staticClass:"organizer",attrs:{label:"承办单位"}},[r("el-input",{attrs:{disabled:e.formdisabled},model:{value:e.form.unitName,callback:function(t){e.$set(e.form,"unitName",t)},expression:"form.unitName"}})],1)],1):e._e()]),r("span",{staticClass:"title"},[e._v("嫌疑人信息")]),r("el-divider"),[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"姓名",prop:"sar","show-message":!1}},[r("el-select",{attrs:{disabled:e.formdisabled},on:{change:e.caseNameChangesar},model:{value:e.form.sar,callback:function(t){e.$set(e.form,"sar",t)},expression:"form.sar"}},e._l(e.sarlist,(function(e){return r("el-option",{key:e.index,attrs:{label:e.xm,value:e.xm}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"性别"}},[r("el-select",{attrs:{placeholder:"请选择性别",disabled:e.formdisabled},model:{value:e.form.sex,callback:function(t){e.$set(e.form,"sex",t)},expression:"form.sex"}},e._l(e.dict.type.sys_user_sex,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e.showdetail?r("div",[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"身份证"}},[r("el-input",{attrs:{disabled:!0},model:{value:e.form.identityCard,callback:function(t){e.$set(e.form,"identityCard",t)},expression:"form.identityCard"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"出生日期"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",disabled:e.formdisabled,placeholder:"选择日期",format:"yyyy-MM-dd","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd"},model:{value:e.form.birthday,callback:function(t){e.$set(e.form,"birthday",t)},expression:"form.birthday"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"地址"}},[r("el-input",{attrs:{disabled:e.formdisabled},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"文化程度"}},[r("el-input",{attrs:{disabled:e.formdisabled},model:{value:e.form.education,callback:function(t){e.$set(e.form,"education",t)},expression:"form.education"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"职业"}},[r("el-input",{attrs:{disabled:e.formdisabled},model:{value:e.form.occupation,callback:function(t){e.$set(e.form,"occupation",t)},expression:"form.occupation"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"民族"}},[r("el-input",{attrs:{disabled:e.formdisabled},model:{value:e.form.nation,callback:function(t){e.$set(e.form,"nation",t)},expression:"form.nation"}})],1)],1)],1)],1):e._e()],r("span",{staticClass:"title"},[e._v("办理事项")]),r("el-divider"),[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"办案房间",prop:"roomName","show-message":!1}},[r("el-select",{attrs:{disabled:e.formdisabled},on:{change:function(t){return e.caseNameChangeroomid()}},model:{value:e.form.roomId,callback:function(t){e.$set(e.form,"roomId",t)},expression:"form.roomId"}},e._l(e.caseroomList,(function(e){return r("el-option",{key:e.index,attrs:{label:e.roomName,value:e.roomId}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"办理事项"}},[r("el-input",{attrs:{disabled:e.formdisabled},model:{value:e.form.matter,callback:function(t){e.$set(e.form,"matter",t)},expression:"form.matter"}})],1)],1)],1),e.showdetail?r("el-form-item",{attrs:{label:"协商结果"}},[r("el-input",{attrs:{type:"textarea"},model:{value:e.form.negotiationResult,callback:function(t){e.$set(e.form,"negotiationResult",t)},expression:"form.negotiationResult"}})],1):e._e()]],2)]],2)],1)],1),r("el-col",{staticClass:"left",attrs:{span:4}},[r("p",{staticClass:"leftbtn_box",staticStyle:{"text-align":"center",width:"100%"}},[e.btnstate?r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["caserecord:begin"],expression:"['caserecord:begin']"}],attrs:{type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("办案视频补录")]):e._e()],1)])],1)],1)],1)},n=[],a=r("7987"),i=r.n(a),s=r("8237"),l=r.n(s),c=r("5f87"),u=r("f2d8"),d=r("4101");function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var a=t&&t.prototype instanceof g?t:g,i=Object.create(a.prototype),s=new P(o||[]);return n(i,"_invoke",{value:L(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",b="executing",v="completed",y={};function g(){}function w(){}function x(){}var k={};c(k,i,(function(){return this}));var O=Object.getPrototypeOf,_=O&&O(O(F([])));_&&_!==r&&o.call(_,i)&&(k=_);var j=x.prototype=g.prototype=Object.create(k);function $(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(n,a,i,s){var l=d(e[n],e,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==f(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var a;n(this,"_invoke",{value:function(e,o){function n(){return new t((function(t,n){r(e,o,t,n)}))}return a=a?a.then(n,n):n()}})}function L(t,r,o){var n=p;return function(a,i){if(n===b)throw Error("Generator is already running");if(n===v){if("throw"===a)throw i;return{value:e,done:!0}}for(o.method=a,o.arg=i;;){var s=o.delegate;if(s){var l=N(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(n===p)throw n=v,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n=b;var c=d(t,r,o);if("normal"===c.type){if(n=o.done?v:h,c.arg===y)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(n=v,o.method="throw",o.arg=c.arg)}}}function N(t,r){var o=r.method,n=t.iterator[o];if(n===e)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=e,N(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var a=d(n,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function F(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(f(t)+" is not iterable")}return w.prototype=x,n(j,"constructor",{value:x,configurable:!0}),n(x,"constructor",{value:w,configurable:!0}),w.displayName=c(x,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,c(e,l,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},$(C.prototype),c(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,o,n,a){void 0===a&&(a=Promise);var i=new C(u(e,r,o,n),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},$(j),c(j,l,"Generator"),c(j,i,(function(){return this})),c(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var o in t)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=F,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(o,n){return s.type="throw",s.arg=t,r.next=o,n&&(r.method="next",r.arg=e),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;I(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:F(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),y}},t}function p(e,t,r,o,n,a,i){try{var s=e[a](i),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(o,n)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(o,n){var a=e.apply(t,r);function i(e){p(a,o,n,i,s,"next",e)}function s(e){p(a,o,n,i,s,"throw",e)}i(void 0)}))}}var b={dicts:["sys_user_sex"],components:{EasyPlayer:i.a},name:"RepairRecording",data:function(){return{moreicon:"el-icon-caret-bottom",showdetail:!0,selectends:!1,endtimechecked:!0,uploadtittle:"",filetypelist:[],filetype:null,fileList:[],fileListall:[],dialogVisible:!1,url:"",headers:{Authorization:"Bearer "+Object(c["a"])()},md5keyV:"",loading:!1,loadingwenshu:!1,keepdate:{ChannelID:null,DeviceID:null},btnstate:!0,keepalivefun:null,formdisabled:!1,form:{ends:""},caseroomList:[],caselist:[],sarlist:[],caseReasonList:[],rules:{caseName:[{required:!0,message:"请输入案件名称",trigger:"blur"}],cbr:[{required:!0,message:"请输入承办人",trigger:"blur"}],sar:[{required:!0,message:"请输入嫌疑人姓名",trigger:"blur"}],roomName:[{required:!0,message:"请选择办案房间",trigger:"blur"}]},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}}}},created:function(){this.getcase()},mounted:function(){window.location.hostname},methods:{showmore:function(){this.showdetail=!this.showdetail,this.moreicon=this.showdetail?"el-icon-caret-top":"el-icon-caret-bottom"},endcasebtn:function(){var e=this;this.form.starts>this.form.ends?this.$message.error("开始时间不能大于结束时间"):this.$confirm("此操作将结束办案, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.endtimechecked?(console.log(e.form),e.form.isUpload=1):e.form.isUpload=0,Object(u["k"])(e.form).then((function(t){e.selectends=!1,e.$modal.msgSuccess("案件补录完成"),e.form={}}))}))},DeleteFile:function(e){var t=this;this.loadingwenshu=!0,Object(u["a"])(e.fileId).then((function(e){t.getcase()}))},DownloadFilebtn:function(e){this.$download.name(e.fileName,e.fileId)},uploadfile:function(e,t){this.dialogVisible=!0,this.url="/prod-api/caserecord/uploadFile?caseId="+this.form.caseId+"&fileType=0"},caseNameChange:function(e){var t=this;if(this.form.sar="",this.form.cbr="",this.form.caseCode="",""!==e){var r=this.caselist.find((function(t){return t.ajmc===e}));this.form.caseCode=r.bmsah,this.form.cbr=r.cbr;var o={bmsah:this.form.caseCode};this.sarlist=[],this.loading=!0,Object(u["i"])(o).then((function(e){t.loading=!1,t.sarlist=e.data}))}},caseNameChangesar:function(e){if(""!==e){var t=this.sarlist.find((function(t){return t.xm==e}));console.log(this.form.sar,"ewqeqw"),this.form.identityCard=t.zjhm}else this.form.sar=""},caseNameChangeroomid:function(){this.form.roomName=this.form.roomId},getcase:function(){var e=this;Object(d["g"])().then((function(t){e.caseroomList=t.rows}));var t={pageNum:1,pageSize:9999};Object(u["f"])(t).then((function(t){e.caselist=t.rows}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return e.$modal.msgWarning("请填写必要信息"),!1;e.selectends=!0}))},endsubmitForm:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return e.$modal.msgWarning("请填写必要信息"),!1;e.selectends=!0}))},foreUpload:function(e,t){var r=this;return h(m().mark((function t(){var o,n,a,i;return m().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/html","text/plain"],o.includes(e.type)){t.next=5;break}r.$message.error("请上传pdf, doc, docx, xls, xlsx, ppt, pptx, html, htm, txt格式文件"),t.next=20;break;case 5:return r.isMd5Encrypting=!0,t.prev=6,t.next=9,r.readFileAsync(e);case 9:n=t.sent,a=l()(n),r.isMd5Encrypting=!1,i=r.form.caseId,r.url="/prod-api/caserecord/uploadFile?caseId="+i+"&fileType=0&md5key="+a,t.next=20;break;case 16:t.prev=16,t.t0=t["catch"](6),r.$message.error("读取文件时出错:",t.t0),r.isMd5Encrypting=!1;case 20:case"end":return t.stop()}}),t,null,[[6,16]])})))()},readFileAsync:function(e){return new Promise((function(t,r){var o=new FileReader;o.onload=function(e){t(e.target.result)},o.onerror=function(e){r(e.target.error)},o.readAsArrayBuffer(e)}))},submitUpload:function(){this.$refs.upload.submit()},beforeremove:function(e,t){var r=this;return this.$confirm("确定移除 ".concat(e.name,"")).then((function(){Object(u["a"])(e.fileId).then((function(e){r.$message({type:"success",message:"删除成功!"})}))}))},handleRemove:function(e,t){},uploaderr:function(e,t,r){console.log(e,t,r)},uploadsuss:function(e,t,r){if(500==e.code){this.$message.error(e.msg);var o=r.filter((function(e){return 500!==e.response.code}));if(o){var n=r.indexOf(o);r.splice(n,1)}}else this.$message.success("文件上传成功了"),this.md5keyV=""},handlePreview:function(e){console.log(e),this.$download.name(e.name,e.fileId)}}},v=b,y=(r("1121"),r("2877")),g=Object(y["a"])(v,o,n,!1,null,"12503463",null);t["default"]=g.exports},f2d8:function(e,t,r){"use strict";r.d(t,"g",(function(){return n})),r.d(t,"h",(function(){return a})),r.d(t,"f",(function(){return i})),r.d(t,"i",(function(){return s})),r.d(t,"b",(function(){return l})),r.d(t,"d",(function(){return c})),r.d(t,"j",(function(){return u})),r.d(t,"e",(function(){return d})),r.d(t,"a",(function(){return f})),r.d(t,"c",(function(){return m})),r.d(t,"k",(function(){return p}));var o=r("b775");function n(){return Object(o["a"])({url:"/caserecord/begin",method:"get"})}function a(){return Object(o["a"])({url:"/caserecord/getcaselist",method:"get"})}function i(e){return Object(o["a"])({url:"/caserecord/getallcaselistadmin",method:"get",params:e})}function s(e){return Object(o["a"])({url:"/caserecord/getsarlist",method:"post",data:e})}function l(e){return Object(o["a"])({url:"/caserecord/begin",method:"post",data:e})}function c(e){return Object(o["a"])({url:"/caserecord/end",method:"post",data:e})}function u(e){return Object(o["a"])({url:"/videoApi/ChannelStream?channel="+e.ChannelID+"&deviceId="+e.DeviceID+"&protocol=flv",method:"get"})}function d(e){return Object(o["a"])({url:"/caserecord/GetCaseInfo?caseId="+e,method:"get"})}function f(e){return Object(o["a"])({url:"/caserecord/DeleteFile?fileId="+e,method:"delete"})}function m(e){return Object(o["a"])({url:"/caserecord/createCase",method:"post",data:e})}function p(e){return Object(o["a"])({url:"/caserecord/replenish",method:"post",data:e})}}}]);