Shanghai-SanFenYuan/kunshan/static/js/chunk-2904f66d.ad320a72.js
2026-03-16 14:31:53 +08:00

1 line
15 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2904f66d"],{"8de0":function(t,e,r){"use strict";r.d(e,"d",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return l})),r.d(e,"e",(function(){return s}));var n=r("b775");function o(t){return Object(n["a"])({url:"/caserecord/list",method:"post",params:t})}function a(t){return Object(n["a"])({url:"/caserecord/listall",method:"post",params:t})}function i(t){return Object(n["a"])({url:"/caserecord/end",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/caserecord/listoverall",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/caserecord/selUploadFileList?caseId="+t,method:"get"})}},a917:function(t,e,r){"use strict";r("f3a8")},d1fa:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[r("div",{staticClass:"shad"},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:t.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:t.queryParams,size:"small",inline:!0,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"案件名称",prop:"caseName"}},[r("el-input",{attrs:{placeholder:"请输入案件名称",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery(e)}},model:{value:t.queryParams.caseName,callback:function(e){t.$set(t.queryParams,"caseName",e)},expression:"queryParams.caseName"}})],1),r("el-form-item",{attrs:{label:"部门受案号",prop:"caseCode"}},[r("el-input",{attrs:{placeholder:"请输入部门受案号",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery(e)}},model:{value:t.queryParams.caseCode,callback:function(e){t.$set(t.queryParams,"caseCode",e)},expression:"queryParams.caseCode"}})],1),r("el-form-item",{attrs:{label:"涉案人",prop:"sar"}},[r("el-input",{attrs:{placeholder:"请输入涉案人",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery(e)}},model:{value:t.queryParams.sar,callback:function(e){t.$set(t.queryParams,"sar",e)},expression:"queryParams.sar"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:t.handleQuery}},[t._v("搜索")]),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:t.resetQuery}},[t._v("重置")])],1)],1)],1),r("div",{staticClass:"shad"},[r("el-dialog",{attrs:{title:t.uploadtittle,visible:t.dialogVisible,width:"400px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{multiple:"",drag:"",action:t.url,"on-preview":t.handlePreview,"on-error":t.uploaderr,"file-list":t.fileList,headers:t.headers,"on-remove":t.handleRemove,"before-upload":t.foreUpload,"on-success":t.uploadsuss,"auto-upload":!1}},[r("i",{staticClass:"el-icon-upload"}),r("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),r("em",[t._v("点击上传")])]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("请上传[pdf, doc, docx, xls, xlsx, ppt, pptx, html, htm, txt]格式")])]),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"success"},on:{click:t.submitUpload}},[t._v("上传到服务器")])],1)],1),[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[r("el-table-column",{attrs:{type:"index",align:"center",width:"50"}}),r("el-table-column",{attrs:{prop:"caseName","show-overflow-tooltip":"",label:"案件名称"}}),r("el-table-column",{attrs:{prop:"caseCode","show-overflow-tooltip":"",label:"部门受案号"}}),r("el-table-column",{attrs:{prop:"cbr",label:"承办检察官",width:"90"}}),r("el-table-column",{attrs:{prop:"sar",label:"涉案人",width:"80"}}),r("el-table-column",{attrs:{prop:"city",label:"律师",width:"80"}}),r("el-table-column",{attrs:{label:"开始时间",align:"center",prop:"starts",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t.parseTime(e.row.starts)))])]}}])}),r("el-table-column",{attrs:{label:"结束时间",align:"center",prop:"ends",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t.parseTime(e.row.ends)))])]}}])}),r("el-table-column",{attrs:{label:"房间名称",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v(" "+t._s(r.roomName?r.roomName:"外部资料上传")+" ")]}}])})],1)]],2),r("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.queryParams.pageNum,limit:t.queryParams.pageSize},on:{"update:page":function(e){return t.$set(t.queryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryParams,"pageSize",e)},pagination:t.getList}})],1)},o=[],a=r("8de0"),i=r("5f87"),l=r("8237"),s=r.n(l);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(t){p=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,i=Object.create(a.prototype),l=new C(n||[]);return o(i,"_invoke",{value:N(t,r,l)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function w(){}function x(){}var k={};p(k,i,(function(){return this}));var _=Object.getPrototypeOf,L=_&&_(_($([])));L&&L!==r&&n.call(L,i)&&(k=L);var E=x.prototype=b.prototype=Object.create(k);function P(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,i,l){var s=d(t[o],t,a);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==c(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,i,l)}),(function(t){r("throw",t,i,l)})):e.resolve(p).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function N(e,r,n){var o=h;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var l=n.delegate;if(l){var s=S(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(q,this),this.reset(!0)}function $(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(c(e)+" is not iterable")}return w.prototype=x,o(E,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=p(x,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,p(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},P(O.prototype),p(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},P(E),p(E,s,"Generator"),p(E,i,(function(){return this})),p(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=$,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:$(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function p(t,e,r,n,o,a,i){try{var l=t[a](i),s=l.value}catch(c){return void r(c)}l.done?e(s):Promise.resolve(s).then(n,o)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){p(a,n,o,i,l,"next",t)}function l(t){p(a,n,o,i,l,"throw",t)}i(void 0)}))}}var d={data:function(){return{showSearch:!0,uploadtittle:"",uploadcaseid:"",dialogVisible:!1,url:"",md5keyV:"",isMd5Encrypting:null,fileList:[],headers:{Authorization:"Bearer "+Object(i["a"])()},loading:!0,total:0,tableData:[{}],form:{},queryParams:{pageNum:1,pageSize:10,caseName:null,cbr:null,sar:null}}},created:function(){this.getList()},methods:{formatCaseStatus:function(t){return 0===t.state?"案件在办":1===t.state?"案件结束":""},uploadfile:function(t){console.log(t),this.dialogVisible=!0,this.uploadtittle=t.caseName,this.uploadcaseid=t.caseId},handleQuery:function(){this.queryParams.pageNum=1,this.queryParams.pageSize=10,this.getList()},resetQuery:function(){this.queryParams={},this.queryParams.pageNum=1,this.queryParams.pageSize=10,this.getList()},getList:function(){var t=this;this.loading=!0,Object(a["b"])(this.queryParams).then((function(e){t.tableData=e.rows,t.total=e.total,t.loading=!1})).catch((function(e){t.loading=!1}))},handleClick:function(t){var e=this;this.dialogTableVisible=!0,this.$confirm("是否确认结束办案?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.form=t,e.endbtn()})).catch((function(){e.$message({type:"info",message:"已取消"})}))},foreUpload:function(t){var e=this;return f(u().mark((function r(){var n,o,a,i,l,c,p;return u().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=["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"],n.includes(t.type)){r.next=20;break}return e.isMd5Encrypting=!0,r.prev=3,r.next=6,e.readFileAsync(t);case 6:o=r.sent,a=s()(o),e.md5keyV=a,e.isMd5Encrypting=!1,i=e.uploadcaseid,e.url="/prod-api/caserecord/uploadVideo?caseId="+i+"&md5key="+e.md5keyV,r.next=18;break;case 14:r.prev=14,r.t0=r["catch"](3),e.$message.error("读取文件时出错:",r.t0),e.isMd5Encrypting=!1;case 18:r.next=36;break;case 20:return e.isMd5Encrypting=!0,r.prev=21,r.next=24,e.readFileAsync(t);case 24:l=r.sent,c=s()(l),e.md5keyV=c,e.isMd5Encrypting=!1,p=e.uploadcaseid,e.url="/prod-api/caserecord/uploadFile?caseId="+p+"&fileType=0&md5key="+c,r.next=36;break;case 32:r.prev=32,r.t1=r["catch"](21),e.$message.error("读取文件时出错:",r.t1),e.isMd5Encrypting=!1;case 36:case"end":return r.stop()}}),r,null,[[3,14],[21,32]])})))()},readFileAsync:function(t){return new Promise((function(e,r){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){r(t.target.error)},n.readAsArrayBuffer(t)}))},submitUpload:function(){this.$refs.upload.submit()},handleRemove:function(t,e){console.log(e);var r=e.filter((function(t){return 500!==t.response.code}));if(r){var n=e.indexOf(r);e.splice(n,1)}},uploaderr:function(t,e,r){console.log(t,e,r)},uploadsuss:function(t,e,r){500==t.code&&(this.$message.error(t.msg),this.handleRemove(e,r))},handlePreview:function(t){this.$message.error(t.name+"被点击了")}}},h=d,m=(r("a917"),r("2877")),y=Object(m["a"])(h,n,o,!1,null,"68645540",null);e["default"]=y.exports},f3a8:function(t,e,r){}}]);