Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

2 lines
19KB

  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 n};var r,n={},a=Object.prototype,o=a.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(r){f=function(e,t,r){return e[t]=r}}function v(e,t,r,n){var a=t&&t.prototype instanceof y?t:y,o=Object.create(a.prototype),l=new D(n||[]);return i(o,"_invoke",{value:L(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=v;var p="suspendedStart",g="suspendedYield",m="executing",h="completed",b={};function y(){}function w(){}function x(){}var k={};f(k,u,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(A([])));j&&j!==a&&o.call(j,u)&&(k=j);var S=x.prototype=y.prototype=Object.create(k);function _(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function E(t,r){function n(a,i,l,u){var c=d(t[a],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==e(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,l,u)}),(function(e){n("throw",e,l,u)})):r.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return n("throw",e,l,u)}))}u(c.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new r((function(r,a){n(e,t,r,a)}))}return a=a?a.then(o,o):o()}})}function L(e,t,n){var a=p;return function(o,i){if(a===m)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:r,done:!0}}for(n.method=o,n.arg=i;;){var l=n.delegate;if(l){var u=F(l,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var c=d(e,t,n);if("normal"===c.type){if(a=n.done?h:g,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=h,n.method="throw",n.arg=c.arg)}}}function F(e,t){var n=t.method,a=e.iterator[n];if(a===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,F(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=d(a,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,b;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,b):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function N(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function e(){for(;++a<t.length;)if(o.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}throw new TypeError(e(t)+" is not iterable")}return w.prototype=x,i(S,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},n.awrap=function(e){return{__await:e}},_(E.prototype),f(E.prototype,c,(function(){return this})),n.AsyncIterator=E,n.async=function(e,t,r,a,o){void 0===o&&(o=Promise);var i=new E(v(e,t,r,a),o);return n.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(S),f(S,s,"Generator"),f(S,u,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},n.values=A,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},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 n(n,a){return l.type="throw",l.arg=e,t.next=n,a&&(t.method="next",t.arg=r),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){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,b):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),b},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),P(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;P(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),b}},n}function r(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==e(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function l(e,t,r,n,a,o,i){try{var l=e[o](i),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,a)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){l(o,n,a,i,u,"next",e)}function u(e){l(o,n,a,i,u,"throw",e)}i(void 0)}))}}System.register(["./base-legacy.5aa23bc0.js","./index-legacy.73999841.js","./index-legacy.791c97452.js","./index-legacy.bf732e88.js","./index-legacy.0af8d43f.js","./index-legacy.bf732e882.js","./index-legacy.0af8d43f2.js","./index-legacy.a71edc95.js","./index-legacy.791c9745.js","./index-legacy.791c97453.js","./problem-feedback-legacy.f5e5523f.js"],(function(e,n){"use strict";var a,i,l,c,s,f,v,d,p,g,m,h,b,y,w,x,k,O,j,S,_,E,L,F,N,P,D,A,C,z,T,I,U,V=document.createElement("style");return V.innerHTML=':root,:host{--van-tag-padding: 0 var(--van-padding-base);--van-tag-text-color: var(--van-white);--van-tag-font-size: var(--van-font-size-sm);--van-tag-radius: .05333rem;--van-tag-line-height: .42667rem;--van-tag-medium-padding: .05333rem .16rem;--van-tag-large-padding: var(--van-padding-base) var(--van-padding-xs);--van-tag-large-radius: var(--van-radius-md);--van-tag-large-font-size: var(--van-font-size-md);--van-tag-round-radius: var(--van-radius-max);--van-tag-danger-color: var(--van-danger-color);--van-tag-primary-color: var(--van-primary-color);--van-tag-success-color: var(--van-success-color);--van-tag-warning-color: var(--van-warning-color);--van-tag-default-color: var(--van-gray-6);--van-tag-plain-background: var(--van-background-2)}.van-tag{position:relative;display:inline-flex;align-items:center;padding:var(--van-tag-padding);color:var(--van-tag-text-color);font-size:var(--van-tag-font-size);line-height:var(--van-tag-line-height);border-radius:var(--van-tag-radius)}.van-tag--default{background:var(--van-tag-default-color)}.van-tag--default.van-tag--plain{color:var(--van-tag-default-color)}.van-tag--danger{background:var(--van-tag-danger-color)}.van-tag--danger.van-tag--plain{color:var(--van-tag-danger-color)}.van-tag--primary{background:var(--van-tag-primary-color)}.van-tag--primary.van-tag--plain{color:var(--van-tag-primary-color)}.van-tag--success{background:var(--van-tag-success-color)}.van-tag--success.van-tag--plain{color:var(--van-tag-success-color)}.van-tag--warning{background:var(--van-tag-warning-color)}.van-tag--warning.van-tag--plain{color:var(--van-tag-warning-color)}.van-tag--plain{background:var(--van-tag-plain-background);border-color:currentColor}.van-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:.02667rem solid;border-color:inherit;border-radius:inherit;content:"";pointer-events:none}.van-tag--medium{padding:var(--van-tag-medium-padding)}.van-tag--large{padding:var(--van-tag-large-padding);font-size:var(--van-tag-large-font-size);border-radius:var(--van-tag-large-radius)}.van-tag--mark{border-radius:0 var(--van-tag-round-radius) var(--van-tag-round-radius) 0}.van-tag--mark:after{display:block;width:.05333rem;content:""}.van-tag--round{border-radius:var(--van-tag-round-radius)}.van-tag__close{margin-left:.05333rem}.problem-feedback{flex:1;display:flex;flex-flow:column;min-height:100%}.problem-feedback .custom-tab .van-tab--shrink{padding:0 .8rem}.problem-feedback .down-m{width:.16rem;height:.16rem}.problem-feedback .van-tabs__wrap{border-bottom:.02667rem solid #DCDEE2}.problem-feedback .card-list{display:flex;flex:1;padding:.26667rem}.problem-feedback .card-list .van-pull-refresh{flex:1}.problem-feedback .card-list .van-pull-refresh .card-list-item{font-size:.37333rem;background-color:#fff;border-radius:.26667rem;overflow:hidden}.problem-feedback .card-list .van-pull-refresh .card-list-item:not(:last-child){margin-bottom:.26667rem}.problem-feedback .card-list .van-pull-refresh .card-list-item .info{padding:.4rem .26667rem 0}.problem-feedback .card-list .van-pull-refresh .card-list-item .title{font-size:.42667rem;color:#000;font-weight:700;margin-bottom:.4rem}.problem-feedback .card-list .van-pull-refresh .card-list-item .van-col{margin-bottom:.26667rem}.problem-feedback .card-list .van-pull-refresh .card-list-item .label{color:#646566}.problem-feedback .card-list .van-pull-refresh .card-list-item .btn{padding:.26667rem 0;text-align:center;color:#0967fd;background-color:rgba(9,103,253,.1);font-weight:700}.problem-feedback .card-list .van-pull-refresh .card-list-item .btn:active{background-color:rgba(9,103,253,.15)}.problem-feedback .no-data{font-size:.32rem}\n',document.head.appendChild(V),{setters:[function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(e){a=e.d,i=e.s,l=e.A,c=e.r,s=e.l,f=e.S,v=e.m,d=e.n,p=e.B,g=e.N,m=e.R,h=e.L,b=e.D,y=e.E,w=e.P,x=e.O,k=e.c,O=e.b,j=e.e,S=e.w,_=e.K,E=e.F,L=e.x,F=e.u,N=e.o,P=e.g,D=e.v,A=e.t,C=e.z,z=e.Q,T=e.q,I=e.h},function(){},function(){},function(e){U=e.w}],execute:function(){var n={class:"problem-feedback"},V={class:"flex px-[20px] mt-[20px]"},G=O("span",null,"选择生成时间",-1),R=O("span",null,"选择审核状态",-1),q={class:"card-list"},B={class:"info"},M={class:"title"},Y=O("span",{class:"label"},"工单编号:",-1),$={class:"value"},H=O("span",{class:"label"},"应用名称:",-1),K={class:"value"},Q=O("span",{class:"label"},"工单类型:",-1),W=O("span",{class:"label"},"工单状态:",-1),J={class:"value"},X=O("span",{class:"label"},"生成时间:",-1),Z={class:"value"},ee=O("span",{class:"label"},"所属项目:",-1),te={class:"value"},re=["onClick"],ne=["onClick"],ae={key:1,class:"text-center text-info no-data"},oe=a({name:"problemFeedback"});e("default",Object.assign(oe,{setup:function(e){var a=i(L.userStore).userBaseInfo||{},oe=l({pageNumber:1,pageSize:10}),ie=c({}),le=[{text:"全部",value:"ALL"},{text:"处理中",value:"PROCESS_ON"},{text:"待审核",value:"ON_AUDIT"},{text:"未通过",value:"PROCESS_FAIL"},{text:"完结",value:"END"}],ue=c(!1),ce=function(e){ie.value.processState=e.selectedValues[0],we(),ue.value=!1},se=c(!1),fe=function(e){var t;ie.value.startWarnTime=null===(t=e.selectedValues)||void 0===t?void 0:t.join("-"),we(),se.value=!1},ve=c([]),de=c(0),pe=c(!1),ge=c(!1),me=c(!1),he=c("1"),be=function(){var e=u(t().mark((function e(){var n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U(he.value,o(o(o({},oe),ie.value),{},{processState:"1"===he.value?"ON_AUDIT":"ALL"===ie.value.processState?"":ie.value.processState}));case 2:n=e.sent,me.value&&(ve.value=[],me.value=!1),de.value=n.data.total,ve.value.length<de.value&&(oe.pageNumber+=1,ve.value=[].concat(r(ve.value),r(n.data.records))),pe.value=!1,ve.value.length>=de.value&&(ge.value=!0);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ye=function(){oe.pageNumber=1,ge.value=!1,pe.value=!0,be()},we=function(){ve.value=[],oe.pageNumber=1,ge.value=!1,pe.value=!0,be()},xe=c(),ke=function(){xe.value=[];var e=new Date;xe.value.push(e.getFullYear()),xe.value.push(e.getMonth()+1),xe.value.push(e.getDate())},Oe=function(e){he.value=e,we()},je=F();return s(u(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:je.query.tab&&(he.value=je.query.tab),ke(),be();case 3:case"end":return e.stop()}}),e)})))),function(e,t){var r=f,o=v,i=d,l=I,u=p,c=g,s=m,L=h,F=b,U=y,oe=w,de=x;return N(),k(E,null,[O("div",n,[j(r,{modelValue:ie.value.blurry,"onUpdate:modelValue":t[0]||(t[0]=function(e){return ie.value.blurry=e}),shape:"round",placeholder:"搜索指标名称/应用名称/项目名称",onBlur:we},null,8,["modelValue"]),j(i,{active:he.value,"onUpdate:active":t[1]||(t[1]=function(e){return he.value=e}),shrink:"",class:"custom-tab",onChange:Oe},{default:S((function(){return[j(o,{title:"待审核",name:"1"}),j(o,{title:"已审核",name:"2"})]})),_:1},8,["active"]),O("div",V,[O("div",{class:"flex text-[28px] px-[20px] py-[6px] bg-[#dde8f9] text-[#0967FD] items-end rounded-[10px] mr-[20px]",onClick:t[2]||(t[2]=function(e){return se.value=!0})},[G,j(l,{name:"down-m","svg-class":"down-m"})]),"2"===he.value?(N(),k("div",{key:0,class:"flex text-[28px] px-[20px] py-[6px] bg-[#dde8f9] text-[#0967FD] items-end rounded-[10px]",onClick:t[3]||(t[3]=function(e){return ue.value=!0})},[R,j(l,{name:"down-m","svg-class":"down-m"})])):_("",!0)]),O("div",q,[j(F,{modelValue:me.value,"onUpdate:modelValue":t[5]||(t[5]=function(e){return me.value=e}),onRefresh:ye},{default:S((function(){return[ve.value&&ve.value.length?(N(),P(L,{key:0,loading:pe.value,"onUpdate:loading":t[4]||(t[4]=function(e){return pe.value=e}),finished:ge.value,"finished-text":"没有更多了",onLoad:ye},{default:S((function(){return[(N(!0),k(E,null,D(ve.value,(function(t,r){return N(),k("div",{key:r,class:"card-list-item"},[O("div",B,[O("div",M,A(t.normName),1),j(s,{gutter:"20"},{default:S((function(){return[j(u,{span:"12"},{default:S((function(){return[Y,O("span",$,A(t.orderNum),1)]})),_:2},1024),j(u,{span:"12"},{default:S((function(){return[H,O("span",K,A(t.applicationName),1)]})),_:2},1024),j(u,{span:"12"},{default:S((function(){return[Q,O("span",{class:"value",style:C("".concat("紧急"===t.level?"color:#F5222D":"严重"===t.level?"color:#FFAE00":"color:#0967FD"))},A(t.level),5)]})),_:2},1024),j(u,{span:"12"},{default:S((function(){return[W,O("span",J,[j(c,{color:"".concat("PROCESS_FAIL"===t.processState?"#F5222D":"PROCESS_ON"===t.processState?"#FFAE00":"ON_AUDIT"===t.processState?"#0967FD":"#4ECB74"),"text-color":"#FFFFFF",size:"large"},{default:S((function(){return[z(A(le.find((function(e){return e.value===t.processState})).text),1)]})),_:2},1032,["color"])])]})),_:2},1024),j(u,{span:"24"},{default:S((function(){return[X,O("span",Z,A(t.createOn),1)]})),_:2},1024),j(u,{span:"24"},{default:S((function(){return[ee,O("span",te,A(t.projectName),1)]})),_:2},1024)]})),_:2},1024)]),"1"===he.value&&"ON_AUDIT"===t.processState&&(T(a).userRoleList.map((function(e){return e.name})).includes("区域管理员")||T(a).userRoleList.map((function(e){return e.name})).includes("超级管理员"))?(N(),k("div",{key:0,class:"btn",onClick:function(r){return e.$router.push({name:"problemFeedbackDetail",query:{type:2,id:t.id}})}},"审核工单",8,re)):(N(),k("div",{key:1,class:"btn",onClick:function(r){return e.$router.push({name:"problemFeedbackDetail",query:{type:3,id:t.id}})}},"查看详情",8,ne))])})),128))]})),_:1},8,["loading","finished"])):(N(),k("p",ae,"暂无数据"))]})),_:1},8,["modelValue"])])]),j(oe,{show:ue.value,"onUpdate:show":t[7]||(t[7]=function(e){return ue.value=e}),position:"bottom"},{default:S((function(){return[j(U,{columns:le.filter((function(e){return!["处理中","待审核"].includes(e.text)})),onConfirm:ce,onCancel:t[6]||(t[6]=function(e){return ue.value=!1})},null,8,["columns"])]})),_:1},8,["show"]),j(oe,{show:se.value,"onUpdate:show":t[10]||(t[10]=function(e){return se.value=e}),position:"bottom"},{default:S((function(){return[j(de,{modelValue:xe.value,"onUpdate:modelValue":t[8]||(t[8]=function(e){return xe.value=e}),onConfirm:fe,onCancel:t[9]||(t[9]=function(e){return se.value=!1})},null,8,["modelValue"])]})),_:1},8,["show"])],64)}}}))}}}))}();