Files
starRiverProperty/frontend-source/decompiled/cwos-portal/static/js/75.b59871887b35a09b836b.js
T
反编译工作区 4f79e10bd6 chore: cleanup stray nested directories in frontend-source
Former-commit-id: 376f94edd602d3dfed1cbada6e08361ee7b08e73
2026-04-29 13:07:40 +08:00

1 line
6.4 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.
webpackJsonp([75],{"71zE":function(n,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=t("MZdq"),i=(t("9Zzp"),t("mBCk")),s=t("COE1"),o={mixins:[i.a],data:function(){return{autoClass:"",classes:[],ocrClassUrl:"",responseText:"",isShowInfo:!1,info:{},loading:!1,img:null}},created:function(){this.getClasses()},methods:{getClasses:function(){var n=this;e.b.getClasses().then(function(a){a.success&&(n.classes=[],a.data.forEach(function(a){var t={value:a.modelId,label:a.modelName};n.classes.push(t)}))}).catch(function(a){n.loading=!1})},upload:function(n){var a=this;this.img=n;var t={channelCode:"system",img:n,modelid:["note_model_class"],modelType:"class"};e.b.getCurrentClass(t).then(function(n){a.loading=!1,n.data&&n.success?(n.data.forEach(function(n){a.autoClass=n.modelId}),a.discern()):(a.isShowInfo=!1,a.$message.error(n.message),a.responseText=n)}).catch(function(n){a.loading=!1})},discern:function(){var n=this,a={channelCode:"system",img:this.img,modelType:"note",modelid:this.autoClass};e.b.classInfo(a).then(function(a){a.data&&a.success?(n.isShowInfo=!0,n.info=a.data,n.responseText=a):(n.isShowInfo=!1,n.$message.error(a.message),n.responseText=a)})},setClass:function(n){this.autoClass=n,this.img&&this.discern()}},components:{responseText:s.a}},l={render:function(){var n=this,a=n.$createElement,t=n._self._c||a;return t("div",{staticClass:"app-container"},[t("el-card",{attrs:{shadow:"hover"}},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("span",{staticStyle:{"font-size":"14px"}},[n._v("自动判断输入凭证的所属类别,并采用对应的OCR识别模型进行识别")])]),n._v(" "),t("div",{staticClass:"simulator-box"},[t("div",{staticClass:"up-box",staticStyle:{position:"relative"}},[t("img-upload",{attrs:{buttonText:n.上传有效凭证},on:{upload:n.upload}})],1),n._v(" "),t("div",{staticClass:"card-class"},[t("div",{staticClass:"card-class-title"},[n._v("所属分类")]),n._v(" "),t("el-select",{on:{change:n.setClass},model:{value:n.autoClass,callback:function(a){n.autoClass=a},expression:"autoClass"}},n._l(n.classes,function(n){return t("el-option",{key:n.value,attrs:{label:n.label,value:n.value}})}),1)],1),n._v(" "),t("div",{directives:[{name:"loading",rawName:"v-loading",value:n.loading,expression:"loading"}],staticClass:"card-box"},[n.isShowInfo?t("ul",{staticClass:"card-info"},n._l(n.info.classinfo,function(a,e){return t("li",{key:e},[t("ul",n._l(a.ocrAutoInferRet,function(a,e){return t("li",{key:e},[n._v("\n "+n._s(e)+"\n "),t("span",[n._v(n._s(a[0].data))])])}),0)])}),0):n._e(),n._v(" "),n.isShowInfo?n._e():t("span",{staticClass:"none-data"},[n._v("暂无数据")]),n._v(" "),t("el-row",{staticStyle:{position:"absolute",top:"-50px",left:"0px"}},[t("span",{staticStyle:{"padding-left":"5px","border-left":"4px solid #3399FF",display:"inline-block",height:"18px","line-height":"18px","font-size":"14px"}},[n._v("识别结果")])])],1)])]),n._v(" "),t("response-text",{attrs:{responseText:n.responseText}})],1)},staticRenderFns:[]};var d=t("VU/8")(o,l,!1,function(n){t("9hw+")},"data-v-99f722c4",null);a.default=d.exports},"9hw+":function(n,a,t){var e=t("oggA");"string"==typeof e&&(e=[[n.i,e,""]]),e.locals&&(n.exports=e.locals);t("rjj0")("3388cf76",e,!0)},oggA:function(n,a,t){(n.exports=t("FZ+f")(!1)).push([n.i,"\n@media screen and (max-width: 1590px) {\n.up-box[data-v-99f722c4] {\n width: 386px;\n}\n.card-box[data-v-99f722c4] {\n width: 386px;\n}\n.avatar[data-v-99f722c4] {\n max-width: 386px;\n}\n.two-li[data-v-99f722c4] {\n margin-left: 40px;\n}\n}\n@media screen and (min-width: 1590px) {\n.up-box[data-v-99f722c4] {\n width: 486px;\n}\n.card-box[data-v-99f722c4] {\n width: 486px;\n}\n.avatar[data-v-99f722c4] {\n max-width: 486px;\n}\n.two-li[data-v-99f722c4] {\n margin-left: 80px;\n}\n}\n.none-data[data-v-99f722c4] {\n font-size: 16px;\n color: #74777c;\n line-height: 308px;\n}\n.card-box[data-v-99f722c4] {\n height: 335px;\n display: inline-block;\n margin-top: 50px;\n text-align: center;\n position: relative;\n background: #f4f5f9;\n padding: 28px 15px 0 15px;\n}\n.avatar-uploader .el-upload[data-v-99f722c4] {\n border: 1px dashed #aaa;\n border-radius: 6px;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n}\n.avatar-uploader .el-upload[data-v-99f722c4]:hover {\n border-color: #409eff;\n}\n.avatar-uploader-icon[data-v-99f722c4] {\n border: 1px dashed #aaa;\n font-size: 28px;\n color: #8c939d;\n width: 178px;\n height: 178px;\n line-height: 178px;\n text-align: center;\n display: none;\n}\n.up-box[data-v-99f722c4] {\n text-align: center;\n line-height: 335px;\n height: 335px;\n display: block;\n float: left;\n margin-top: 50px;\n margin-bottom: 74px;\n background: #f4f5f9;\n}\n.card-class[data-v-99f722c4] {\n float: left;\n padding: 0 24px;\n}\n.card-class-title[data-v-99f722c4] {\n font-size: 14px;\n margin-bottom: 32px;\n padding-left: 5px;\n border-left: 4px solid #3399FF;\n height: 18px;\n line-height: 18px;\n}\n.avatar[data-v-99f722c4] {\n max-height: 335px;\n vertical-align: middle;\n text-align: center;\n margin-top: -5px;\n}\n.card-info[data-v-99f722c4] {\n text-align: left;\n position: relative;\n padding-left: 20px;\n height: 281px;\n border-radius: 6px;\n border: 1px dashed #3399ff;\n padding-top: 22px;\n}\n.card-info li[data-v-99f722c4] {\n font-size: 14px;\n line-height: 30px;\n}\n.card-info li span[data-v-99f722c4] {\n color: #3399ff;\n font-size: 14px;\n margin-left: 8px;\n}\nli[data-v-99f722c4] {\n list-style: none;\n line-height: 30px;\n}\n.simulator-box[data-v-99f722c4] {\n position: relative;\n min-height: 280px;\n width: 1500px;\n}\n[data-v-99f722c4] .el-upload--picture-card {\n width: 170px;\n height: 170px;\n}\n[data-v-99f722c4] .el-upload-list--picture-card .el-upload-list__item {\n width: 170px;\n height: 170px;\n text-align: center;\n vertical-align: middle;\n}\n[data-v-99f722c4] .el-upload-list--picture-card .el-upload-list__item-thumbnail {\n max-width: 170px;\n max-height: 170px;\n width: auto;\n height: auto;\n}\n.default-frame[data-v-99f722c4] {\n height: 147px;\n width: 110px;\n margin-bottom: 13px;\n margin-right: 24px;\n background: url("+t("gpWv")+") center no-repeat;\n}\n.card-avatar[data-v-99f722c4] {\n display: inline-block;\n position: absolute;\n right: 23px;\n top: 25px;\n}\n.card-avatar img[data-v-99f722c4] {\n max-height: 110px;\n max-width: 110px;\n}\n",""])}});