You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

problem-feedback-detail-legacy.1535607c.js 16KB

пре 7 месеци
1
  1. !function(){function e(t){return e="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},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var n,r={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(n){f=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),u=new R(r||[]);return i(a,"_invoke",{value:L(e,n,u)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",g={};function b(){}function w(){}function x(){}var _={};f(_,l,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(V([])));j&&j!==o&&a.call(j,l)&&(_=j);var k=x.prototype=b.prototype=Object.create(_);function S(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function E(t,n){function r(o,i,u,l){var c=d(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==e(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,u,l)}),(function(e){r("throw",e,u,l)})):n.resolve(f).then((function(e){s.value=e,u(s)}),(function(e){return r("throw",e,u,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(e,t){function a(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(a,a):a()}})}function L(e,t,r){var o=y;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:n,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=N(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===y)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var c=d(e,t,r);if("normal"===c.type){if(o=r.done?m:h,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function N(e,t){var r=t.method,o=e.iterator[r];if(o===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,N(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,g;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function P(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 F(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function V(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(a.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}throw new TypeError(e(t)+" is not iterable")}return w.prototype=x,i(k,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},S(E.prototype),f(E.prototype,c,(function(){return this})),r.AsyncIterator=E,r.async=function(e,t,n,o,a){void 0===a&&(a=Promise);var i=new E(p(e,t,n,o),a);return r.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(k),f(k,s,"Generator"),f(k,l,(function(){return this})),f(k,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},r.values=V,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(F),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return u.type="throw",u.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),F(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;F(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:V(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(t,n,r){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function a(e,t,n,r,o,a,i){try{var u=e[a](i),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function u(e){a(i,r,o,u,l,"next",e)}function l(e){a(i,r,o,u,l,"throw",e)}u(void 0)}))}}System.register(["./base-legacy.5aa23bc0.js","./index-legacy.a8d30fd3.js","./index-legacy.73999841.js","./index-legacy.739998412.js","./index-legacy.791c97452.js","./index-legacy.0af8d43f.js","./index-legacy.791c9745.js","./index-legacy.791c97453.js","./index-legacy.791c97454.js","./problem-feedback-legacy.f5e5523f.js","./index-legacy.a71edc95.js","./uploadAction-legacy.08b88785.js"],(function(e,n){"use strict";var o,a,u,l,c,s,f,p,d,y,h,v,m,g,b,w,x,_,O,j,k,S,E,L,N,P,F,R,V,q,D,T,C=document.createElement("style");return C.innerHTML=".problem-feedback-fetail .van-cell-group__title{padding:.26667rem .42667rem;color:#000;font-weight:700;font-size:.42667rem}.problem-feedback-fetail .btn{margin:.32rem}\n",document.head.appendChild(C),{setters:[function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(e){o=e.d,a=e.h,u=e.p},function(e){l=e.d,c=e.r,s=e.l,f=e.C,p=e.U,d=e.V,y=e.W,h=e.X,v=e.Y,m=e.Z,g=e.$,b=e.c,w=e.e,x=e.w,_=e.g,O=e.K,j=e.o,k=e.b,S=e.t,E=e.F,L=e.v,N=e.z,P=e.Q,F=e.u,R=e.G,V=e.M,q=e.a0},function(e){D=e.f,T=e.u}],execute:function(){var n={class:"problem-feedback-fetail"},C={key:0},G={key:1},U={key:1,style:{color:"#999999","text-align":"center",padding:"20px","font-size":"12px"}},z=["onClick"],I={style:{color:"#0967FD"}},$={key:1},A=k("p",{style:{color:"#999999","font-size":"12px","margin-left":"2px"}},"支持pdf上传",-1),J={style:{padding:"16px",display:"flex"}},Y={key:3,class:"btn"},M=l({name:"problemFeedbackDetail"});e("default",Object.assign(M,{setup:function(e){var l=F(),M=R(),X=c({}),B=function(){var e=i(t().mark((function e(){var n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o(l.query.id);case 2:n=e.sent,X.value=r(r({},n.data),{},{modelReply:n.data.modelReply?JSON.parse(n.data.modelReply):[]});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=c({}),K=function(){var e=i(t().mark((function e(){var n,r,o,i,c,s;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("1"!==l.query.type){e.next=11;break}return(o=new FormData).append("id",l.query.id),o.append("handleResult",(null===(n=H.value)||void 0===n?void 0:n.handleResult)||""),o.append("handleResultFile",(null===(r=H.value.handleResultFile)||void 0===r?void 0:r.length)&&JSON.stringify(D(H.value.handleResultFile))||""),e.next=7,a(o);case 7:V("提交成功"),M.go(-1),e.next=20;break;case 11:if("2"!==l.query.type){e.next=20;break}return(s=new FormData).append("id",l.query.id),s.append("processState",(null===(i=H.value)||void 0===i?void 0:i.processState)||""),s.append("processOpinion",(null===(c=H.value)||void 0===c?void 0:c.processOpinion)||""),e.next=18,u(s);case 18:V("提交成功"),M.go(-1);case 20:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Q=function(){var e=i(t().mark((function e(n){var r,o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.status="uploading",n.message="上传中...",(r=new FormData).append("file",n.file),e.next=6,T(r);case 6:o=e.sent,n.status="success",n.message="上传成功",n.response=o.data;case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),W=function(e){M.push({name:"problemFeedback",query:{tab:e}})};return s((function(){B()})),function(e,t){var r=f,o=p,a=d,i=y,u=h,l=v,c=m,s=g;return j(),b("div",n,[w(o,{title:"应用信息"},{default:x((function(){return[w(r,{title:"应用名称"},{default:x((function(){return[k("span",null,S(X.value.applicationName),1)]})),_:1}),w(r,{title:"预警时间"},{default:x((function(){return[k("span",null,S(X.value.warnTime),1)]})),_:1}),w(r,{title:"所属项目"},{default:x((function(){return[k("span",null,S(X.value.projectName),1)]})),_:1}),w(r,{title:"指标名称"},{default:x((function(){return[k("span",null,S(X.value.normName),1)]})),_:1}),w(r,{title:"当前指标值"},{default:x((function(){return[k("span",null,S(X.value.normValue),1)]})),_:1}),w(r,{title:"目标指标值"},{default:x((function(){return[k("span",null,S(X.value.targetValue),1)]})),_:1})]})),_:1}),w(o,{title:"工单信息"},{default:x((function(){var e,t;return[null!==(e=X.value)&&void 0!==e&&e.modelReply?(j(!0),b(E,{key:0},L(null===(t=X.value)||void 0===t?void 0:t.modelReply,(function(e,t){return j(),_(r,{key:t,title:e.columnName},{default:x((function(){var t;return[["TEXT","SINGLE"].includes(e.modelType)?(j(),b("span",C,S(e.value),1)):(j(),b("span",G,S(null===(t=e.value)||void 0===t?void 0:t.join("、")),1))]})),_:2},1032,["title"])})),128)):(j(),b("p",U,"暂无数据"))]})),_:1}),"PROCESS_ON"!==X.value.processState?(j(),_(o,{key:0,title:"工单处理结果"},{default:x((function(){return[w(r,{title:"处理结果"},{default:x((function(){return[k("span",null,S(X.value.handleResult),1)]})),_:1}),w(r,{title:"附件"},{default:x((function(){return[X.value.handleResultFile&&JSON.parse(X.value.handleResultFile).length?(j(!0),b(E,{key:0},L(JSON.parse(X.value.handleResultFile),(function(e,t){return j(),b("p",{key:t},[k("a",{onClick:function(t){return function(e){var t=e.fileName.split("."),n=null==t?void 0:t[t.length-1];["pdf","png","jpg","jpeg"].includes(n)?M.push("/fileView?id=".concat(e.fileId)):q("暂不支持该格式预览")}(e)}},[k("span",I,S(e.fileName),1)],8,z)])})),128)):(j(),b("span",$,"-"))]})),_:1}),w(r,{title:"处理人"},{default:x((function(){return[k("span",null,S(X.value.handleUserName),1)]})),_:1}),w(r,{title:"处理人联系方式"},{default:x((function(){return[k("span",null,S(X.value.handleUserPhone),1)]})),_:1})]})),_:1})):O("",!0),"ON_AUDIT"!==X.value.processState&&"PROCESS_ON"!==X.value.processState?(j(),_(o,{key:1,title:"工单审核结果"},{default:x((function(){return[w(r,{title:"工单状态"},{default:x((function(){return[k("span",{style:N("".concat("END"===X.value.processState?"color:#4ECB74":"color:#F5222D"))},S("END"===X.value.processState?"通过":"未通过"),5)]})),_:1}),w(r,{title:"审核人"},{default:x((function(){return[k("span",null,S(X.value.processUserName),1)]})),_:1}),w(r,{title:"审核人联系方式"},{default:x((function(){return[k("span",null,S(X.value.processUserPhone),1)]})),_:1}),w(r,{title:"备注"},{default:x((function(){return[k("span",null,S(X.value.processOpinion),1)]})),_:1})]})),_:1})):O("",!0),["1","2"].includes(e.$route.query.type)?(j(),_(o,{key:2,title:"1"===e.$route.query.type?"工单处理结果":"2"===e.$route.query.type?"工单审核结果":""},{default:x((function(){return[w(s,{class:"form",onSubmit:K},{default:x((function(){return["1"===e.$route.query.type?(j(),b(E,{key:0},[w(a,{modelValue:H.value.handleResult,"onUpdate:modelValue":t[0]||(t[0]=function(e){return H.value.handleResult=e}),rows:"2",required:"",autosize:"",label:"处理结果",type:"textarea",placeholder:"请输入",rules:[{required:!0,message:"请输入"}]},null,8,["modelValue"]),w(a,{name:"uploader",label:"附件"},{input:x((function(){return[w(u,{modelValue:H.value.handleResultFile,"onUpdate:modelValue":t[1]||(t[1]=function(e){return H.value.handleResultFile=e}),"after-read":Q,accept:".pdf"},{default:x((function(){return[w(i,{icon:"plus",type:"primary",plain:"",size:"small"},{default:x((function(){return[P("上传文件")]})),_:1})]})),_:1},8,["modelValue"]),A]})),_:1})],64)):(j(),b(E,{key:1},[w(a,{name:"radio",label:"审核结果",required:"",rules:[{required:!0,message:"请选择"}]},{input:x((function(){return[w(c,{modelValue:H.value.processState,"onUpdate:modelValue":t[2]||(t[2]=function(e){return H.value.processState=e}),direction:"horizontal"},{default:x((function(){return[w(l,{name:"END"},{default:x((function(){return[P("通过")]})),_:1}),w(l,{name:"PROCESS_FAIL"},{default:x((function(){return[P("未通过")]})),_:1})]})),_:1},8,["modelValue"])]})),_:1}),w(a,{modelValue:H.value.processOpinion,"onUpdate:modelValue":t[3]||(t[3]=function(e){return H.value.processOpinion=e}),rows:"2",autosize:"",label:"备注",type:"textarea",placeholder:"请输入"},null,8,["modelValue"])],64)),k("div",J,[w(i,{block:"",style:{"margin-right":"12px"},round:"",onClick:t[4]||(t[4]=function(e){return W(1)})},{default:x((function(){return[P(" 返回 ")]})),_:1}),w(i,{block:"",type:"primary","native-type":"submit",round:""},{default:x((function(){return[P(" 提交 ")]})),_:1})])]})),_:1})]})),_:1},8,["title"])):O("",!0),"3"===e.$route.query.type?(j(),b("p",Y,[w(i,{block:"",round:"",onClick:t[5]||(t[5]=function(e){return W(2)})},{default:x((function(){return[P(" 返回 ")]})),_:1})])):O("",!0)])}}}))}}}))}();