PageSourceSearch

https://ai.qhnu.edu.cn/static/js/history-detail.982b2970.js

js qhnu.edu.cn collected 2026-10-02 09:55:31 UTC 143,773 bytes, 2 lines download raw bytes

1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2f13f4bb-3ff9-453e-9acb-9d2bf26f0269",t._sentryDebugIdIdentifier="sentry-dbid-2f13f4bb-3ff9-453e-9acb-9d2bf26f0269")}catch(t){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"99c3511d9.26092921-production"};(self.webpackChunkmy_project=self.webpackChunkmy_project||[]).push([[5348,19717,37975],{4213:function(t,e,r){var i,a,n;a=[],void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function i(t,e,r){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){l(i.response,e,r)},i.onerror=function(){},i.send()}function a(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");
1e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r.g&&r.g.global===r.g?r.g:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,r){var s=o.URL||o.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?n(l):a(l.href)?i(t,e,r):n(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){n(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,r,o){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),r);else if(a(t))i(t,r,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){n(s)}))}}:function(t,e,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return i(t,e,r);var n="application/octet-stream"===t.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||n&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},u.readAsDataURL(t)}else{var h=o.URL||o.webkitURL,f=h.createObjectURL(t);a?a.location=f:location.href=f,a=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});o.saveAs=l.saveAs=l,t.exports=l})?i.apply(e,a):i)||(t.exports=n)},13609:function(t,e,r){"use strict";var i=r(46518),a=r(48981),n=r(26198),o=r(34527),s=r(84606),l=r(96837);i({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=a(this),r=n(e),i=arguments.length;if(i){l(r+i);for(var c=r;c--;){var u=c+i;c in e?e[u]=e[c]:s(e,u)}for(var h=0;h<i;h++)e[h]=arguments[h]}return o(e,r+i)}})},14315:function(t,e,r){"use strict";r.d(e,{A:function(){return a}});var i={name:"transfer",props:["data"],data:function(){return{type:"",msg:""}},created:function(){if(this.data.msg.msg)this.msg=this.data.msg.msg;else if(this.data.msg)this.msg=this.data.msg;else if("_system_robot_"==this.data.fromId){var t=(this.$platformService.allUser.get(this.data.toId)||{}).username||"";this.msg=this.$t("m.transfer.user")+this.$t("m.transfer.and")+this.$t("m.history.custom")+"".concat(t)+this.$t("m.transfer.set_con")}else if("_system_robot_"==this.data.toId){var e=(this.$platformService.allUser.get(this.data.fromId)||{}).username||"";this.msg=this.$t("m.history.custom")+"".concat(e," ")+this.$t("m.transfer.over_con")}else{var r=this.$platformService.allUser.get(this.data.fromId)||{},i=r&&r.username||"",a=this.$platformService.allUser.get(this.data.toId)||{},n=a&&a.username||"";this.msg=this.$t("m.history.custom")+"".concat(i)+this.$t("m.platform_vue.transfer")+this.$t("m.history.custom")+"".concat(n)}}},a=(0,r(14486).A)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"transfer"},[e("span",[t._v(t._s(t._f("dateToStr")(t.data.createTime,"MM/dd hh:mm:ss"))+" "+t._s(t.msg))])])}),[],!1,null,"7b3b3aca",null).exports},16251:function(){},23462:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return I}});r(74423),r(52675),r(89463),r(2259),r(16280),r(28706),r(2008),r(48980),r(23418),r(23792),r(48598),r(62062),r(44114),r(72712),r(94490),r(34782),r(62010),r(18111),r(22489),r(7588),r(61701),r(18237),r(33110),r(2892),r(40875),r(79432),r(26099),r(3362),r(27495),r(90906),r(38781),r(21699),r(47764),r(23500),r(62953);var i=r(74353),a=r.n(i),n=r(99081),o=r(14315),s=r(11239),l=r(41802),c=r(85062),u=r.p+"static/img/empty.a0a97493274a6d67f352.png",h=r(95089),f=r(67063),p=r(4213),m=r(67211),d=r(29138),v=r(77070),y=r(44007);function g(t){return g="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},g(t)}function b(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return _(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(t,e):void 0}}(t)||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 _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function w(){w=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,i){var n=e&&e.prototype instanceof y?e:y,o=Object.create(n.prototype),s=new O(i||[]);return a(o,"_invoke",{value:E(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",d="completed",v={};function y(){}function b(){}function _(){}var S={};c(S,o,(function(){return this}));var T=Object.getPrototypeOf,x=T&&T(T(M([])));x&&x!==r&&i.call(x,o)&&(S=x);var $=_.prototype=y.prototype=Object.create(S);function I(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(a,n,o,s){var l=h(t[a],t,n);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==g(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(l.arg)}var n;a(this,"_invoke",{value:function(t,i){function a(){return new e((function(e,a){r(t,i,e,a)}))}return n=n?n.then(a,a):a()}})}
vendor: 4,739 bytes, line 1
1function E(e,r,i){var a=f;return function(n,o){if(a===m)throw Error("Generator is already running");if(a===d){if("throw"===n)throw o;return{value:t,done:!0}}for(i.method=n,i.arg=o;;){var s=i.delegate;if(s){var l=C(s,i);if(l){if(l===v)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===f)throw a=d,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=m;var c=h(e,r,i);if("normal"===c.type){if(a=i.done?d:p,c.arg===v)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(a=d,i.method="throw",i.arg=c.arg)}}}function C(e,r){var i=r.method,a=e.iterator[i];if(a===t)return r.delegate=null,"throw"===i&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var n=h(a,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,v;var o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function r(){for(;++a<e.length;)if(i.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(g(e)+" is not iterable")}return b.prototype=_,a($,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create($),t},e.awrap=function(t){return{__await:t}},I(A.prototype),c(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,i,a,n){void 0===n&&(n=Promise);var o=new A(u(t,r,i,a),n);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},I($),c($,l,"Generator"),c($,o,(function(){return this})),c($,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var i in e)r.push(i);return r.reverse(),function t(){for(;r.length;){var i=r.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=M,O.prototype={constructor:O,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(L),!e)for(var r in this)"t"===r.charAt(0)&&i.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 a(i,a){return s.type="throw",s.arg=e,r.next=i,a&&(r.method="next",r.arg=t),!!a}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(o)},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),v},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),L(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;
1if("throw"===i.type){var a=i.arg;L(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,i){return this.delegate={iterator:M(e),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),v}},e}function S(t,e,r,i,a,n,o){try{var s=t[n](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,a)}function T(t){return function(){var e=this,r=arguments;return new Promise((function(i,a){var n=t.apply(e,r);function o(t){S(n,i,a,o,s,"next",t)}function s(t){S(n,i,a,o,s,"throw",t)}o(void 0)}))}}var x=(0,v.hj)("/static/default-resource/avatar/head-visitor.png"),$={name:"SessionDetail",components:{messageRes:n.A,messageSend:s.default,transfer:o.A,AvatarRowLayer:l.A,AgentWorkspace:y.Ay,UserMessageSender:function(){return r.e(72445).then(r.bind(r,17207))}},mixins:[m.A],provide:function(){return{chatbox:this}},model:{prop:"visible",event:"update:visible"},props:{visible:{type:Boolean,default:!1},scrollTo:{type:String,default:""},full:{type:Boolean,default:!1},conversationId:{type:String,default:""},startTime:{type:String,default:""},endTime:{type:String,default:""},enableDebug:{type:Boolean,default:!1},openRouter:{type:Boolean,default:!1},openUnitId:{type:String,default:""},openRobotId:{type:String,default:""},requestHeaders:{type:Object,default:null}},data:function(){return{status:"",loading:!1,visitorAvatar:x,detailRows:[],unitId:null,robotId:null,visitorId:null,messageList:[],detailInfo:{},expanded:!0,emptyIcon:u,exportLoading:!1,feedbackStatus:[],importLoading:!1}},computed:{showSender:function(){return!isNaN(Number(this.detailInfo.visitorId))},iscBoard:function(){return this.$utils.isISCBoard()},channel:function(){return{WEB:this.$t("common.stats.WEB"),MOBILE:this.$t("common.history.MobileTerminal"),API:this.$t("common.history.OtherTerminals"),WECHAT:this.$t("common.stats.WECHAT"),APP:this.$t("common.stats.APP"),WEIBO:this.$t("common.stats.WEIBO"),WECHAT_CP:this.$t("common.stats.WECHAT_CP"),WECHAT_PER:this.$t("common.stats.WECHAT_PER"),ANDROID:this.$t("common.stats.Android"),IOS:this.$t("common.stats.IOS"),WECHAT_MINI:this.$t("common.stats.WECHAT_MINI_PROGRAM"),WECHAT_MINI_PLUGIN:this.$t("common.stats.WECHAT_MINI_PLUGIN"),WECHAT_PER_GROUP:this.$t("common.stats.WECHAT_PER_GROUP")}},shouldCustomExport:function(){return"66454"==this.unitId&&"e20b0f0a0004404da679956fad223e88"==this.robotId},platformCode:function(){var t,e=((null===(t=this.$route)||void 0===t?void 0:t.meta)||{}).platformCode;return e||"robot"},history:function(){return!0},visitorEndSetting:function(){return{showKnowledgeCard:!0}}},watch:{conversationId:{handler:function(t){y.Ge.closeAll(),t&&(this.fetchMessageList(t,this.startTime,this.endTime),this.fetchFeedbackStatus(this.conversationId))},immediate:!0},visible:function(t){t||y.Ge.closeAll()},startTime:function(){this.fetchMessageList(this.conversationId,this.startTime,this.endTime)},endTime:function(){this.fetchMessageList(this.conversationId,this.startTime,this.endTime)},messageList:function(){var t=this;this.$nextTick((function(){t.handleScroll()}))},scrollTo:function(){this.handleScroll()}},created:function(){this.unitId=this.$cookies.get("unitId")||sessionStorage.getItem("unitId")||this.openUnitId,this.robotId=this.$cookies.get("robotId")||sessionStorage.getItem("robotId")||this.openRobotId,this.initializeCustomRenderers()},beforeDestroy:function(){y.Ge.closeAll()},methods:{isImportFeedbackDisabled:function(t){return this.feedbackStatus.includes(t)},showFeedBackImport:function(t){return 1===t.msg.option&&!("/dashboard/platform"===this.$route.path)},initializeCustomRenderers:function(){var t=this;this.MESSAGE_RENDERERS={DYNAMIC_RESOURCE_SEARCH:{component:function(){return r.e(64406).then(r.bind(r,64406))},props:function(e){return{origin:e,detail:t.parseMessageDetail(e)}}},TOPIC:{component:function(){return r.e(6342).then(r.bind(r,6342))},props:function(e){return{courseName:t.$route.query.courseName||sessionStorage.getItem("isc_courseName")||"",origin:e,detail:t.parseMessageDetail(e)}}},GUESSHOT:{component:function(){return r.e(55189).then(r.bind(r,77570))},props:function(e){return{unitId:t.unitId,robotId:t.robotId,origin:e,detail:t.parseMessageDetail(e)}}},FE_USUAL_QUESTION_TAGS:{component:function(){return r.e(94691).then(r.bind(r,94691))},props:function(e){return{unitId:t.unitId,robotId:t.robotId,origin:e,detail:t.parseMessageDetail(e)}}},HOME_WORK_UNDONE:{component:function(){return r.e(93129).then(r.bind(r,93129))},props:function(e){return{origin:e,detail:t.parseMessageDetail(e)}}},STATIC_RESOURCE_SEARCH:{component:function(){return r.e(65973).then(r.bind(r,65973))},props:function(e){return{origin:e,detail:t.parseMessageDetail(e)}}}}},getMessageType:function(t){return t.renderType},parseMessageDetail:function(t){var e=t.mobileProperties;if(e&&"string"==typeof e.content)return JSON.parse(e.content)||{}}
1,isMixTypeMessage:function(t){var e;return null==t||null===(e=t.chunks)||void 0===e?void 0:e.length},isllmOrigin:function(t){var e,r;return("LLM"===(null==t||null===(e=t.msg)||void 0===e?void 0:e.origin)||"LLM"===(null==t?void 0:t.origin))&&(null==t||null===(r=t.msg)||void 0===r?void 0:r.mobileProperties)},isRecallMsg:function(t){return t&&t.revert},openQAEditor:function(t){var e=this;if(sessionStorage.removeItem("qa_storage"),t&&t.msg){if(!t.msg.answer){var r=t.msg.mobileProperties||{};t.msg.answer=r.content||"{}",this.isMixTypeMessage(t)&&(t.msg.answer=JSON.stringify({responseText:t.chunks.reduce((function(t,e){return"message_chunk"!==e.subType||e.parentStepId||(t+=e.content),t}),"")}))}try{var i=JSON.parse(t.msg.answer)||{},a=i.responseText,n=void 0===a?"":a,o=i.query,s=void 0===o?"":o;s=s||function(t){for(var r="",i=e.messageList.findIndex((function(e){return e.id===t}))-1;i>=0&&!r;i--){var a=e.messageList[i];"IN"===a.direction&&a.msg&&a.msg.question&&(r=a.msg.question)}return r}(t.id),n=this.$utils.filterAndSanitizeMarkdown(n),sessionStorage.setItem("qa_storage",JSON.stringify({type:"markdown",question:s,answer:n}))}catch(t){}finally{this.$openDialog({common:{title:this.$t("common.history.EditQA"),width:"920px",showTitle:!0,showFooter:!1},content:{model:"component",vm:c.default,options:{isComponent:!0,params:{option:"add",from_page:"history",showNotify:!0}}}}).then((function(t){"contentVm"in t&&e.$message.success(e.$t("common.history.ImportSuccessfully"))}))}}},handleClose:function(){this.$emit("update:visible",!1),this.$emit("close")},getMessageTime:function(t){var e,r=t.createTime||(null===(e=t.msg)||void 0===e?void 0:e.time)||t.time;return r?a()(r).format("YYYY-MM-DD HH:mm:ss"):""},getUserName:function(t){var e=this.$platformService.allVisitor.get(t.visitorId);return this.detailInfo.nickname||(null==e?void 0:e.nickname)||this.$t("common.history.Visitors")},getServiceName:function(t){var e;if("H_OUT"===t.direction)return(null===(e=t.msg)||void 0===e?void 0:e.kefuName)||this.$t("common.history.CustomerService");var r,i=this.$platformService.robots.get(t.robotId,this.platformCode)||{};return 0!=+i.module?(null===(r=t.msg)||void 0===r||null===(r=r.conv)||void 0===r?void 0:r.robotName)||i.robotNickname||this.$t("teach.component.IntelligentAgent"):i.robotNickname||this.$t("common.history.IntelligentAgent")},getServiceAvatar:function(t){var e,r=null!==(e=t.msg)&&void 0!==e&&e.kefuId?"/static/default-resource/avatar/kefu-avatar.png":"/static/default-resource/avatar/head-user.png";return(0,v.hj)(r)},fetchMessageList:function(t,e,r){var i=this;return T(w().mark((function a(){var n,o,s,l,c,u,f,p,m,d,v,y,g,b,_,S,T;return w().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t){a.next=2;break}return a.abrupt("return");case 2:return i.loading=!0,a.prev=3,n=i.requestHeaders?{headers:i.requestHeaders}:{},a.next=7,i.$httpService.get("/v1/manage/historyCvs/conversationDetail/".concat(t,"?createTimeStart=").concat(e||"","&createTimeEnd=").concat(r||"","&isShowRevertMsg=true"),n);case 7:if(o=a.sent,s=o.statusCode,l=o.data,0===s&&l){a.next=13;break}return i.messageList=[],a.abrupt("return");case 13:if(u=(c=l||{}).detail,f=c.list,m=(p=u||{}).robotId,d=p.unitId,v=p.visitorId,i.transformDetail(u),g=[],!(y={conversationId:t,robotId:m,unitId:d,visitorId:v,messages:f||[]}).unitId||!y.conversationId){a.next=23;break}return b=i.requestHeaders?{headers:i.requestHeaders}:{},a.next=22,i.$httpService.get("/v1/unitId/".concat(y.unitId,"/conversations/").concat(y.conversationId,"/human_transfer"),b);case 22:g=a.sent;case 23:return _=i.$platformService.dealMsaage([y],g),S=_.list,T=i.requestHeaders?{headers:i.requestHeaders}:{},a.next=28,Promise.all([i.$platformService.getRobotInfo(y.robotId,i.platformCode,T)]);case 28:i.messageList=(0,h.NG)(S),a.next=35;break;case 31:a.prev=31,a.t0=a.catch(3),i.messageList=[];case 35:return a.prev=35,i.loading=!1,a.finish(35);case 38:case"end":return a.stop()}}),a,null,[[3,31,35,38]])})))()},transformDetail:function(t){var e=t||{},r=e.conversationId,i=void 0===r?"--":r,n=e.chatStatus,o=void 0===n?"default":n,s=e.visitorId,l=void 0===s?"--":s,c=e.channel,u=void 0===c?"--":c,h=e.nickname,f=void 0===h?"--":h,p=e.gmtCreate,m=e.gmtModified,d=e.referUrl,v=e.learnId,y=void 0===v?"--":v,g=e.robotId,b=e.star,_=void 0===b?0:b,w=e.scene;this.detailInfo={conversationId:i,chatStatus:o,visitorId:l,channel:u,nickname:f,gmtCreate:p,gmtModified:m,referUrl:d,learnI
1d:y,star:_,scene:w,robotId:g};var S={0:this.$t("common.history.Closed"),default:this.$t("teach.component.InProgress")};this.status=S[o]||S.default;var T=[{show:!0,label:this.$t("common.stats.SessionId"),value:i},{show:!0,label:this.$t("common.stats.Visitors"),value:f},{show:!0,label:this.$t("common.stats.Source"),value:d,type:"source"},{show:!0,label:this.$t("teach.component.StudentNumber"),value:y},{show:!0,label:this.$t("common.stats.Channel"),value:this.channel[u]},{show:!0,label:this.$t("common.stats.SessionStartTime"),value:p?a()(p).format("YYYY-MM-DD HH:mm:ss"):"--"},{show:!0,label:this.$t("common.stats.SessionEndTime"),value:m?a()(m).format("YYYY-MM-DD HH:mm:ss"):"--"},{show:!this.iscBoard,label:this.$t("common.stats.like_evaluate"),value:_,type:"rate",extra:{disabled:!0,showScore:!0,textColor:"#ff9900",scoreTemplate:"{value}"}}];this.detailRows=T},decodeHtmlEntities:function(t){return"string"==typeof t&&t?(this.textAreaDom=this.textAreaDom||document.createElement("textarea"),this.textAreaDom.innerHTML=t,this.textAreaDom.value):t},outPutSingle:function(){var t=this;if(this.exportLoading=!0,this.shouldCustomExport)try{var e=this.messageList.map((function(e){var r="",i="";if("IN"===e.direction||"H_IN"===e.direction)i="发出",r=t.decodeHtmlEntities(e.msg.question||"");else if("OUT"===e.direction){i="回复";var a=e.msg;if(a)if("RECOMMEND"===a.answerType&&a.items&&a.items.length>0)r="【猜你想问】\n",r+=a.items.map((function(t,e){return"".concat(e+1,"、").concat(t.content)})).join("\n");else{var n="";try{var o=JSON.parse(null==a?void 0:a.answer).responseText;n=void 0===o?"":o}catch(t){n=null==a?void 0:a.answer}finally{r=t.decodeHtmlEntities(n||"--")}}}else"H_OUT"===e.direction&&(i="回复",r=null==e.msg.answer?"":e.msg.answer);return{"消息内容":r,"状态":i,"时间":t.getMessageTime(e)}})).filter((function(t){return t["状态"]})),r={SheetNames:[],Sheets:{}},i=f.utils.json_to_sheet(e);i["!cols"]=[{wch:60},{wch:10},{wch:20}];var n="历史会话";
1r.SheetNames.push(n),r.Sheets[n]=i;var o=(0,f.write)(r,{bookType:"xlsx",bookSST:!0,type:"binary"});(0,p.saveAs)(new Blob([this.$s2ab(o)],{type:"application/octet-stream"}),"历史会话_".concat(this.detailInfo.conversationId,".xlsx"))}catch(t){}finally{this.exportLoading=!1}else{var s=[],l="",c={},u=this.detailInfo,h=u.gmtCreate,m=u.conversationId,d=u.nickname,v=u.robotId,y=u.channel;c[this.$t("common.stats.con_id")]=m,c[this.$t("common.stats.visitor")]=d,c[this.$t("m.robot")]=v||"",c[this.$t("common.stats.from")]=this.channel[y],c[this.$t("common.stats.con_create")]=a()(h).format("YYYY-MM-DD HH:mm:ss"),this.messageList.map((function(e){if(l+=t.getMessageTime(e)+" ","IN"==e.direction||"H_IN"==e.direction)l+=d+":"+e.msg.question+"\n";else if("OUT"==e.direction){var r;if(null!==(r=e.chunks)&&void 0!==r&&r.length)l+=e.chunks.reduce((function(t,e){return"message_chunk"!==e.subType||e.parentStepId||(t+=e.content),t}),t.$t("m.robot")+":")+"\n";else{var i=e.msg;if(i)if("RECOMMEND"==i.answerType&&i.items&&i.items.length>0)l+=t.$t("common.history.AreYouAsking")+"\n",i.items.forEach((function(t,e){l+=e+1+"、"+t.content+(e<i.items.length-1?"\n":"】\n")}));else{var a,n,o="";if(t.$utils.validateJSON(i.answer))o=null!==(a=null===(n=JSON.parse(i.answer))||void 0===n?void 0:n.responseText)&&void 0!==a?a:"";else o=i.answer;l+=t.$t("m.robot")+":"+o+"\n"}}}else if("H_OUT"==e.direction)l+=t.$t("common.stats.custom")+e.name+" "+(null==e.msg.answer?"":e.msg.answer)+"\n";else if("TRANSFER"==e.direction){var s;l+=(null==e||null===(s=e.msg)||void 0===s?void 0:s.msg)+"\n"}})),c[this.$t("common.stats.SessionDetail")]=l,s.push(c);var g={SheetNames:[],Sheets:{}},b=f.utils.json_to_sheet(s);g.SheetNames.push(this.$t("common.stats.history_detail")),g.Sheets[this.$t("common.stats.history_detail")]=b;var _=(0,f.write)(g,{bookType:"xlsx",bookSST:!0,type:"binary"});(0,p.saveAs)(new Blob([this.$s2ab(_)],{type:"application/octet-stream"}),this.$t("common.stats.history_detail")+".xlsx"),this.exportLoading=!1}},handleScroll:function(){var t,e;if(this.scrollTo){var r=null===(t=this.$refs.messageViewRef)||void 0===t?void 0:t.querySelector(".".concat(this.scrollTo));r&&(null===(e=this.$refs.messageViewRef)||void 0===e||e.scrollTo({top:r.offsetTop,behavior:"smooth"}))}},fetchFeedbackStatus:function(t){var e=this;return T(w().mark((function r(){var i,a,n,o,s,l,c;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t){r.next=2;break}return r.abrupt("return");case 2:return r.prev=2,i=e.requestHeaders?{headers:e.requestHeaders}:{},r.next=6,e.$httpService.get("/v1/manage/message/feedback/status/".concat(t),i);case 6:0===(a=r.sent).statusCode&&a.data&&(n=a.data||{},o=n.useful,s=void 0===o?[]:o,l=n.unuseful,c=void 0===l?[]:l,e.feedbackStatus=[].concat(b(s),b(c))),r.next=13;break;case 10:r.prev=10,r.t0=r.catch(2);case 13:case"end":return r.stop()}}),r,null,[[2,10]])})))()},addUsefulQA:function(t){var e=this;return T(w().mark((function r(){var i,a,n,o;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.isImportFeedbackDisabled(t.messageId)){r.next=2;break}return r.abrupt("return");case 2:return e.importLoading=!0,r.prev=3,n={qid:null==t||null===(i=t.msg)||void 0===i?void 0:i.qid,time:null==t||null===(a=t.msg)||void 0===a?void 0:a.time,type:(0,d.P)(t),messageId:t.messageId,conversationId:e.conversationId},r.next=7,e.$httpService.post("/v1/manage/message/feedback/insert/useful",n);case 7:0===(o=r.sent).statusCode&&o.data.status?(e.$message.success(e.$t("common.history.ImportSuccessfully")),e.feedbackStatus.push(t.messageId),e.fetchFeedbackStatus(e.conversationId)):e.$message.error(o.msg||e.$t("common.history.ImportFailed")),r.next=14;break;case 11:r.prev=11,r.t0=r.catch(3),e.$message.error(e.$t("common.history.ImportFailed"));case 14:case"end":return r.stop()}}),r,null,[[3,11]])})))()},addUnusefulQA:function(t){var e=this;return T(w().mark((function r(){var i,a,n,o;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.isImportFeedbackDisabled(t.messageId)){r.next=2;break}return r.abrupt("return");case 2:return e.importLoading=!0,r.prev=3,n={qid:null==t||null===(i=t.msg)||void 0===i?void 0:i.qid,time:null==t||null===(a=t.msg)||void 0===a?void 0:a.time,type:(0,d.P)(t),messageId:t.messageId,conversationId:e.conversationId},r.next=7,e.$httpService.post("/v1/manage/message/feedback/insert/unuseful",n);case 7:0===(o=r.sent).statusCode&&o.data.status?(e.$message.success(e.$t("common.history.ImportSuccessfully")),e.feedbackStatus.push(t.messageId),e.fetchFeedbackStatus(e.conversationId)):e.$message.error(o.msg||e.$t("common.history.ImportFailed")),r.next=14;break;case 11:r.prev=11,r.t0=r.catch(3),e.$message.error(e.$t("common.history.ImportFailed"));case 14:return r.prev=14,e.importLoading=!1,r.finish(14);case 17:case"end":return r.stop()}}),r,null,[[3,11,14,17]])})))()}}},I=(0,r(14486).A)($,(function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"slide-fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible||t.full,expression:"visible || full"},{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],class:["session-container",{iscboard:t.iscBoard,full:t.full}],on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"session-container__header"},[e("div",{staticClass:"header-left"}
1,[t._v("\n        "+t._s(t.$t("common.history.SessionDetails"))+"\n        "),e("div",{staticClass:"status"},[t._v(t._s(t.status))])]),t._v(" "),e("div",{staticClass:"header-right"},[t.showSender?e("UserMessageSender",{attrs:{"visitor-id":t.detailInfo.visitorId,"conversation-id":t.conversationId,"unit-id":t.unitId,"robot-id":t.robotId}}):t._e(),t._v(" "),e("div",{staticClass:"expand-btn"},[e("el-button",{attrs:{type:"primary",icon:"el-icon-upload2",disabled:t.exportLoading},on:{click:t.outPutSingle}},[t._v(t._s(t.exportLoading?t.$t("common.history.Exporting"):t.$t("common.history.Export")))])],1),t._v(" "),e("i",{directives:[{name:"show",rawName:"v-show",value:!t.full,expression:"!full"}],staticClass:"el-icon-close close-btn",on:{click:t.handleClose}})],1)]),t._v(" "),e("div",{staticClass:"session-container__body"},[e("div",{class:["detail",{expanded:t.expanded}]},[e("div",{staticClass:"records"},t._l(t.detailRows,(function(r){return e("div",{directives:[{name:"show",rawName:"v-show",value:r.show,expression:"item.show"}],key:r.label,staticClass:"piece",attrs:{title:r.value}},[e("span",{staticClass:"label"},[t._v(t._s(r.label)+":")]),t._v(" "),"rate"===r.type?e("el-rate",t._b({attrs:{value:r.value||0}},"el-rate",r.extra,!1)):"source"===r.type?e("div",[e("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover"}},[e("span",{staticClass:"full"},[t._v("\n                  "+t._s(t.$utils.decodeURI(r.value)||"--")+"\n                ")]),t._v(" "),e("el-button",{staticClass:"copy-btn",attrs:{slot:"reference",type:"text"},on:{click:function(e){t.$utils.injectClipboard({text:t.$utils.decodeURI(r.value),type:"pc"})}},slot:"reference"},[t._v("\n                  "+t._s(t.$t("common.history.CopyAddress"))+"\n                ")])],1)],1):e("div",{staticClass:"value"},[t._v(t._s(r.value))])],1)})),0),t._v(" "),e("div",{staticClass:"expand-block",on:{click:function(e){t.expanded=!t.expanded}}},[t._v("\n          "+t._s(t.expanded?t.$t("common.history.PutAwayConversation"):t.$t("common.history.ExpandSessionInformation"))+"\n          "),e("i",{staticClass:"el-icon-arrow-down"})])]),t._v(" "),e("div",{ref:"messageViewRef",staticClass:"messages"},[t._l(t.messageList,(function(i,a){return[["IN","H_IN"].includes(i.direction)?e("avatar-row-layer",{key:i.messageId+"-in-"+a,attrs:{time:t.getMessageTime(i),position:"right",name:t.getUserName(i),"avatar-url":t.visitorAvatar}},[e("message-res",{staticStyle:{"margin-left":"10px"},attrs:{message:i,"msg-role":"kefu","enable-debug":t.enableDebug,"hiddden-recommend":!0}})],1):["OUT","H_OUT"].includes(i.direction)?e("avatar-row-layer",{key:i.messageId+"-out-"+a,attrs:{position:"left",time:t.getMessageTime(i),name:t.getServiceName(i),"avatar-url":t.getServiceAvatar(i)}},[e("message-send",{attrs:{kefu_message:i,"msg-role":"kefu",unit_id:t.unitId,"robot-id":t.robotId,scene:t.detailInfo.scene,"message-list":t.messageList,from:"PLATFORM_HISTORY"}},[t.MESSAGE_RENDERERS[t.getMessageType(i)]?[e(t.MESSAGE_RENDERERS[t.getMessageType(i)].component,t._b({directives:[{name:"disabled",rawName:"v-disabled",value:!0,expression:"true"}],tag:"component"},"component",t.MESSAGE_RENDERERS[t.getMessageType(i)].props(i),!1))]:t._e()],2)],1):["TRANSFER","TO_HUMAN"].includes(i.direction)?e("transfer",{key:i.messageId+"-sys-"+a,attrs:{data:i}}):t._e(),t._v(" "),t.openRouter?t._e():e("div",{key:i.messageId+"-qa-entry-"+a,staticClass:"qa-source-entry"},[e("div",[t.isRecallMsg(i)?e("div",{staticClass:"recall-tag"},[t._v(t._s(t.$t("common.history.Withdrawn")))]):t._e()]),t._v(" "),t.isllmOrigin(i)||t.isMixTypeMe
1ssage(i)?e("div",{directives:[{name:"permission",rawName:"v-permission",value:"robot:insert:qa",expression:"'robot:insert:qa'"}],staticClass:"qa-import",on:{click:function(e){return t.openQAEditor(i)}}},[e("img",{attrs:{src:r(97647)}}),t._v("\n              "+t._s(t.$t("common.history.JoinTheQ"))+"\n            ")]):t._e(),t._v(" "),t.showFeedBackImport(i)?e("div",{directives:[{name:"permission",rawName:"v-permission",value:"lc:resource:intelligent:learning",expression:"'lc:resource:intelligent:learning'"}],class:["feedback-import",{"qa-import-disabled":t.isImportFeedbackDisabled(i.messageId)||t.importLoading}],on:{click:function(e){return t.addUsefulQA(i)}}},[e("img",{attrs:{src:r(97647)}}),t._v("\n              "+t._s(t.$t("common.history.JoinSatisfactionQ"))+"\n            ")]):t._e(),t._v(" "),t.showFeedBackImport(i)?e("div",{directives:[{name:"permission",rawName:"v-permission",value:"lc:resource:intelligent:learning",expression:"'lc:resource:intelligent:learning'"}],class:["feedback-import",{"qa-import-disabled":t.isImportFeedbackDisabled(i.messageId)||t.importLoading}],on:{click:function(e){return t.addUnusefulQA(i)}}},[e("img",{attrs:{src:r(97647)}}),t._v("\n              "+t._s(t.$t("common.history.JoinDissatisfactionQ"))+"\n            ")]):t._e()])]})),t._v(" "),t.messageList.length?t._e():e("el-empty",{attrs:{image:t.emptyIcon,description:t.$t("common.history.NoNewsYet")}})],2)]),t._v(" "),e("div",{staticClass:"session-container__footer"},[t._t("footer")],2),t._v(" "),e("div",{staticClass:"session-workspace"},[e("AgentWorkspace",{attrs:{theme:"coze",layout:"mobile"}})],1)])])}),[],!1,null,"0218b449",null).exports},29800:function(){},41802:function(t,e,r){"use strict";r.d(e,{A:function(){return o}});r(62010);var i=r(74353),a=r.n(i),n={name:"AvatarRowLayer",props:{avatarUrl:{type:String,default:""},name:{type:String,default:""},time:{type:String,default:function(){return a()().format("YYYY-MM-DD HH:mm:ss")}},message:{type:Object,default:function(){return{}}},position:{type:String,default:"left"},popoverPosition:{type:String,default:"bottom"},popoverTrigger:{type:String,default:"hover"}},methods:{}},o=(0,r(14486).A)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"message-avatar-layer"},[e("div",{staticClass:"message-header",class:[t.position]},[e("el-popover",{attrs:{placement:t.popoverPosition,trigger:t.popoverTrigger,disabled:!t.$slots.popover},scopedSlots:t._u([{key:"reference",fn:function(){return[e("div",{staticClass:"header-avatar",class:{touchable:void 0!==t.$slots.popover}},[e("img",{attrs:{src:t.avatarUrl,alt:"avatar"}})])]},proxy:!0}])},[t._t("popover")],2),t._v(" "),e("div",{staticClass:"header-info"},[e("span",{staticClass:"create-name"},[t._v(t._s(t.name))]),t._v(" "),e("span",{staticClass:"create-time"},[t._v(t._s(t.time))])])],1),t._v(" "),e("div",{staticClass:"message-slot",class:[t.position]},[t._t("default")],2)])}),[],!1,null,"97ad8696",null).exports},52527:function(t,e,r){"use strict";r.d(e,{A:function(){return l}});r(28706),r(18111),r(7588),r(33110),r(79432),r(26099),r(23500);var i={name:"materialTableContentComponent",props:["type","material"],data:function(){return{audio:{isPlay:!1}}},methods:{playAudio:function(t){this.audio.isPlay=!this.audio.isPlay,this.$httpService.playRadio(this.$refs.uploadAudio)},pauseAudio:function(){this.$set(this.audio,"isPlay",!1)}},created:function(){}},a=r(14486),n=(0,a.A)(i,(function(){var t=this,e=t._self._c;return e("div",["IMAGE"===t.type?e("div",[e("el-row",[e("el-col",{attrs:{span:4}},[e("el-image",{staticStyle:{height:"50px",width:"80px"},attrs:{src:t.material.materialUrl,fit:"cover"}})],1),t._v(" "),e("el-col",{attrs:{span:20}},[e("span",[t._v(t._s(t.material.materialPic))])])],1)],1):"AUDIO"===t.type?e("div",[e("el-row",[e("el-col",{attrs:{span:3}},[e("el-button",{class:t.audio.isPlay?"i-play":"i-pause",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.playAudio()}}},[e("i",{staticClass:"i-pause-img"})])],1),t._v(" "),e("el-col",{attrs:{span:21}},[e("span",[t._v(t._s(t.material.materialPic))])])],1),t._v(" "),e("audio",{ref:"uploadAudio",on:{pause:function(e){return t.pauseAudio()}}},[e("source",{attrs:{src:t.material.audioUrl,type:"audio/mpeg"}})])],1):"MENU"===t.type?e("div",[e("span",[t._v(t._s(t.material.menuName))])]):"RICH_TEXT"===t.type?e("div",[e("el-row",[e("el-col",{attrs:{span:4}},[e("el-image",{staticStyle:{height:"50px",width:"80px"},attrs:{src:t.material.materialCover,fit:"cover"}})],1),t._v(" "),e("el-col",{attrs:{span:20}},[e("div",{staticClass:"rich_text_content"},[e("h3",[t._v(t._s(t.material.materialTitle))]),t._v(" "),e("p",[t._v(t._s(t.material.materialDigest))])])])],1
1)],1):t._e()])}),[],!1,null,"22312a27",null).exports,o=(0,r(77070).D6)("BOT_AGENT_BASE_URL"),s={name:"SelectMaterialTableComponent",components:{"table-content":n},props:["type","cnType"],data:function(){return{tableData:[],radio:"material",radioLabel:"",total:0,updatePage:!1,searchParam:{keyword:"",pageNo:1}}},created:function(){this._getMaterialData()},methods:{selectMaterial:function(){this.$emit("selectMaterial",this.tableData[this.radio])},searchBykeyword:function(){this.$set(this.searchParam,"pageNo",1),this._getMaterialData()},pagenumChange:function(t){this.$set(this.searchParam,"pageNo",t),this._getMaterialData()},_getMaterialData:function(){var t=this.type.toLowerCase(),e=JSON.parse(JSON.stringify(this.searchParam)),r=this.$store.state.unitId,i="";if("image"===t||"audio"===t)i="".concat(o,"/v1/manage/media/list/").concat(t,"?pageNo=").concat(e.pageNo,"&keyword=").concat(e.keyword,"&unitId=").concat(r);else if("menu"===t)i="".concat(o,"/v1/manage/faq/menu/list?pageNo=").concat(e.pageNo,"&keyword=").concat(e.keyword,"&unitId=").concat(r);else{if("rich_text"!==t)return;i="".concat(o,"/v1/manage/faq/material/list?pageNo=").concat(e.pageNo,"&keyword=").concat(e.keyword,"&unitId=").concat(r)}var a=this;this.$httpService.get(i).then((function(t){if(0==t.statusCode){var r=t.data.records;r&&r.length>0&&r.forEach((function(t,e){a.$set(t,"index",e)})),a.tableData=r,a.total=t.data.total,1==e.pageNo&&(a.updatePage=!1,a.$nextTick((function(){a.updatePage=!0})))}}))}}},l=(0,a.A)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"materialTableWrap"},[e("div",{staticClass:"materialSearch"},[e("el-input",{attrs:{placeholder:"搜索 "+t.cnType,"prefix-icon":"el-icon-search",size:"mini",clearable:""},on:{input:function(e){return t.searchBykeyword()}}
1,model:{value:t.searchParam.keyword,callback:function(e){t.$set(t.searchParam,"keyword",e)},expression:"searchParam.keyword"}})],1),t._v(" "),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,"max-height":"300"}},[e("el-table-column",{attrs:{width:"50","row-style":"{'textAlign':'center'}"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("el-radio",{attrs:{label:r.row.index},on:{change:t.selectMaterial},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[t._v(t._s(t.radioLabel))])]}}])}),t._v(" "),e("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),t._v(" "),e("el-table-column",{attrs:{label:t.cnType},scopedSlots:t._u([{key:"default",fn:function(r){return[e("table-content",{attrs:{type:t.type,material:r.row}})]}}])})],1),t._v(" "),t.updatePage?e("div",{staticClass:"pagination_container"},[e("el-pagination",{attrs:{layout:"prev, pager, next, jumper","page-size":10,"pager-count":11,total:t.total,"hide-on-single-page":""},on:{"current-change":t.pagenumChange}})],1):t._e()],1)}),[],!1,null,"19e9704d",null).exports},61882:function(t,e,r){"use strict";var i=r(2383),a=r(53098);e.A=function(t){return"symbol"==typeof t||(0,a.A)(t)&&"[object Symbol]"==(0,i.A)(t)}},67233:function(){},85062:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return dt}});r(74423),r(62010),r(27495),r(21699),r(25440),r(52675),r(89463),r(2259),r(45700),r(16280),r(28706),r(2008),r(23418),r(23792),r(48598),r(62062),r(44114),r(34782),r(54554),r(89572),r(18111),r(22489),r(7588),r(61701),r(13579),r(33110),r(2892),r(83851),r(81278),r(79432),r(26099),r(58940),r(3362),r(9391),r(90906),r(38781),r(47764),r(42762),r(23500),r(62953);var i=r(38221),a=r.n(i),n=r(478),o=r(7433),s=r(77070),l=r(7262),c=r(53445),u=r(86151),h=r(37661),f=r(52527);r(94490),r(40875);function p(t){return p="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},p(t)}function m(){m=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,i){var n=e&&e.prototype instanceof b?e:b,o=Object.create(n.prototype),s=new O(i||[]);return a(o,"_invoke",{value:E(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",v="executing",y="completed",g={};function b(){}function _(){}function w(){}var S={};c(S,o,(function(){return this}));var T=Object.getPrototypeOf,x=T&&T(T(M([])));x&&x!==r&&i.call(x,o)&&(S=x);var $=w.prototype=b.prototype=Object.create(S);function I(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(a,n,o,s){var l=h(t[a],t,n);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==p(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(l.arg)}var n;a(this,"_invoke",{value:function(t,i){function a(){return new e((function(e,a){r(t,i,e,a)}))}return n=n?n.then(a,a):a()}})}function E(e,r,i){var a=f;return function(n,o){if(a===v)throw Error("Generator is already running");if(a===y){if("throw"===n)throw o;return{value:t,done:!0}}for(i.method=n,i.arg=o;;){var s=i.delegate;if(s){var l=C(s,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===f)throw a=y,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=v;var c=h(e,r,i);if("normal"===c.type){if(a=i.done?y:d,c.arg===g)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(a=y,i.method="throw",i.arg=c.arg)}}}function C(e,r){var i=r.method,a=e.iterator[i];if(a===t)return r.delegate=null,"throw"===i&&e.iterator.return&&
1(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var n=h(a,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,g;var o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function r(){for(;++a<e.length;)if(i.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(p(e)+" is not iterable")}return _.prototype=w,a($,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:_,configurable:!0}),_.displayName=c(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,l,"GeneratorFunction")),t.prototype=Object.create($),t},e.awrap=function(t){return{__await:t}},I(A.prototype),c(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,i,a,n){void 0===n&&(n=Promise);var o=new A(u(t,r,i,a),n);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},I($),c($,l,"Generator"),c($,o,(function(){return this})),c($,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var i in e)r.push(i);return r.reverse(),function t(){for(;r.length;){var i=r.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=M,O.prototype={constructor:O,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(L),!e)for(var r in this)"t"===r.charAt(0)&&i.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 a(i,a){return s.type="throw",s.arg=e,r.next=i,a&&(r.method="next",r.arg=t),!!a}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,g):this.complete(o)},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),L(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 i=r.completion;if("throw"===i.type){var a=i.arg;L(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,i){return this.delegate={iterator:M(e),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}function d(t,e,r,i,a,n,o){try{var s=t[n](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,a)}var v={props:{id:{type:Number,default:0},type:{type:String,default:""},list:{type:Array,default:function(){return[]}}},data:function(){return{docs:[],listProxy:[],loading:!1}},watch:{list:function(t){t!==this.listProxy&&(this.listProxy=this.list,this.docs=this.list)},listProxy:function(){this.$emit("update:list",this.listProxy)}},created:function(){this.getRecallList()},methods:{getRecallList:function(){var t={satisfy:2,unsatisfy:1};this.type in t&&this.id&&this.getList({id:this.id,type:t[this.type]})},getListByKeyword:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.getList({keyWord:t})},getList:function(t){var e,r=this;return(e=m().mark((function e(){var i,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.loading=!0,e.prev=1,e.next=4,r.$httpService.get("/v1/manage/qaDocTag/getRecommendDocs",{params:t});case 4:i=e.sent,a=i.data,r.docs=a||[];case 7:return e.prev=7,r.loading=!1,e.finish(7);case 10:case"end":return e.stop()}}),e,null,[[1,,7,10]])})),function(){var t=this,r=arguments;return new Promise((function(i,a){var n=e.apply(t,r);function o(t){d(n,i,a,o,s,"next",t)}function s(t){d(n,i,a,o,s,"throw",t)}o(void 0)}))})()}}},y=v,g=r(14486),b=(0,g.A)(y,(function(){var t=this,e=t._self._c;return e("el-select",{staticStyle:{width:"280px"},attrs:{remote:"",multiple:"",filterable:"","reserve-keyword":"","multiple-limit":10,placeholder:t.$t("teach.library.Search"),"remote-method":t.getListByKeyword,loading:t.loading,"value-key":"id"},model:{value:t.listProxy,callback:function(e){t.listProxy=e},expression:"listProxy"}},t._l(t.docs,(function(t){return e("el-option",{key:t.id,attrs:{label:t.fileName,value:t}})})),1)}),[],!1,null,null,null).exports,_=r(74061),w=r.n(_),S=r(74353),T=r.n(S);function x(t){return x="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},x(t)}function $(){$=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,i){var n=e&&e.prototype instanceof y?e:y,o=Object.create(n.prototype),s=new O(i||[]);return a(o,"_invoke",{value:E(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",d="completed",v={};function y(){}function g(){}function b(){}var _={};c(_,o,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(M([])));S&&S!==r&&i.call(S,o)&&(_=S);var T=b.prototype=y.prototype=Object.create(_);function I(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(a,n,o,s){var l=h(t[a],t,n);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==x(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(l.arg)}var n;a(this,"_invoke",{value:function(t,i){function a(){return new e((function(e,a){r(t,i,e,a)}))}return n=n?n.then(a,a):a()}})}
vendor: 4,739 bytes, line 1
1function E(e,r,i){var a=f;return function(n,o){if(a===m)throw Error("Generator is already running");if(a===d){if("throw"===n)throw o;return{value:t,done:!0}}for(i.method=n,i.arg=o;;){var s=i.delegate;if(s){var l=C(s,i);if(l){if(l===v)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===f)throw a=d,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=m;var c=h(e,r,i);if("normal"===c.type){if(a=i.done?d:p,c.arg===v)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(a=d,i.method="throw",i.arg=c.arg)}}}function C(e,r){var i=r.method,a=e.iterator[i];if(a===t)return r.delegate=null,"throw"===i&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var n=h(a,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,v;var o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function r(){for(;++a<e.length;)if(i.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(x(e)+" is not iterable")}return g.prototype=b,a(T,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,l,"GeneratorFunction")),t.prototype=Object.create(T),t},e.awrap=function(t){return{__await:t}},I(A.prototype),c(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,i,a,n){void 0===n&&(n=Promise);var o=new A(u(t,r,i,a),n);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},I(T),c(T,l,"Generator"),c(T,o,(function(){return this})),c(T,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var i in e)r.push(i);return r.reverse(),function t(){for(;r.length;){var i=r.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=M,O.prototype={constructor:O,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(L),!e)for(var r in this)"t"===r.charAt(0)&&i.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 a(i,a){return s.type="throw",s.arg=e,r.next=i,a&&(r.method="next",r.arg=t),!!a}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(o)},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),v},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),L(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;
1if("throw"===i.type){var a=i.arg;L(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,i){return this.delegate={iterator:M(e),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),v}},e}function I(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var i,a,n,o,s=[],l=!0,c=!1;try{if(n=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=n.call(r)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return A(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function E(t,e,r,i,a,n,o){try{var s=t[n](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,a)}var C={data:function(){var t=T()().startOf("day").subtract(1,"month").format("YYYY-MM-DD HH:mm:ss"),e=T()().format("YYYY-MM-DD HH:mm:ss");return{similarList:[{label:this.$t("teach.library.All"),value:-1},{label:this.$t("teach.library.Over90"),value:0},{label:"89%-70%",value:1},{label:"69%-50%",value:2},{label:this.$t("teach.library.Below50"),value:3}],columns:[{type:"index",label:this.$t("teach.library.SerialNumber"),width:80,align:"center"},{label:this.$t("teach.library.StandardQuestions"),prop:"questionName"},{label:this.$t("teach.library.ListOfQuestions"),prop:"originQues"},{label:this.$t("teach.library.ProblemSimilarity"),prop:"similarRatio"}],form:{timeRange:[t,e],similar:0},list:[],pagination:{pageNum:1,pageSize:10,total:0},pageSizes:[10,20,30,40,50],isLoading:!1}},watch:{form:{handler:function(){this.pagination.pageNum=1,this.getList()},deep:!0}},created:function(){this.getList()},methods:{getList:function(){var t,e=this;return(t=$().mark((function t(){var r,i,a,n,o,s,l;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.isLoading=!0,r=I(e.form.timeRange,2),i=r[0],a=r[1],n={start:i,end:a,similar:e.form.similar,pageNum:e.pagination.pageNum,pageSize:e.pagination.pageSize},t.next=6,e.$httpService.post("/v1/manage/visitorQARec/standard/search",n,!0);case 6:o=t.sent,s=o.list,l=o.total,e.pagination.total=l,e.list=s,e.isLoading=!1,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),e.isLoading=!1;case 17:case"end":return t.stop()}}),t,null,[[0,14]])})),function(){var e=this,r=arguments;return new Promise((function(i,a){var n=t.apply(e,r);function o(t){E(n,i,a,o,s,"next",t)}function s(t){E(n,i,a,o,s,"throw",t)}o(void 0)}))})()},handleSizeChange:function(t){this.pagination.pageSize=t,this.pagination.pageNum=1,this.getList()},handleCurrentChange:function(t){this.pagination.pageNum=t,this.getList()},handleImportClick:function(t){this.$emit("import",t,"KEFU_REPLY")}}},k=C,L=(0,g.A)(k,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"manual-question"},[e("div",{staticClass:"header"},[e("el-form",{attrs:{inline:"",model:t.form,size:"mini"}},[e("el-form-item",{attrs:{label:t.$t("teach.library.TimeRange"),prop:"timeRange"}},[e("el-date-picker",{attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":t.$t("teach.library.To"),"start-placeholder":t.$t("teach.library.StartTime"),"end-placeholder":t.$t("teach.library.EndTime"),placeholder:t.$t("teach.library.SelectATime")},model:{value:t.form.timeRange,callback:function(e){t.$set(t.form,"timeRange",e)}
1,expression:"form.timeRange"}})],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("teach.library.SimilaritySelection"),prop:"similar"}},[e("el-select",{attrs:{placeholder:t.$t("teach.library.PleaseSelect")},model:{value:t.form.similar,callback:function(e){t.$set(t.form,"similar",e)},expression:"form.similar"}},t._l(t.similarList,(function(r){return e("el-option",{key:r.value,attrs:{label:r.label,value:r.value}},[t._v("\n            "+t._s(r.label)+"\n          ")])})),1)],1)],1)],1),t._v(" "),e("div",{staticClass:"table-content"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],attrs:{data:t.list,"empty-text":t.$t("teach.library.NoDataYet"),height:"100%"}},[t._l(t.columns,(function(r){return e("el-table-column",t._b({key:r.prop},"el-table-column",r,!1))})),t._v(" "),e("el-table-column",{attrs:{label:t.$t("teach.library.Operation"),width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){var i=r.row;return[e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.handleImportClick(i)}}},[t._v(t._s(t.$t("teach.library.ToLead")))])]}}])})],2)],1),t._v(" "),e("div",{staticClass:"pagination"},[e("el-pagination",{attrs:{layout:"total, sizes, prev, pager, next, jumper","current-page":t.pagination.pageNum,"page-sizes":t.pageSizes,"page-size":t.pagination.pageSize,total:t.pagination.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])}),[],!1,null,"5c790a76",null).exports,O={data:function(){return{isLoading:!1,dataList:[],form:{searchText:""},pagination:{pageNum:1,pagesize:10,total:0}}},watch:{form:{handler:function(){this.pagination.pageNum=1,this.getList()},deep:!0}},created:function(){this.getList()},methods:{getList:function(){var t=this;try{this.isLoading=!0;var e={sw:this.form.searchText,packId:29,unitId:1385,pageNum:this.pagination.pageNum,pageSize:this.pagination.pagesize};this.$httpService.post("/v1/manage/question/package/qa/list",e,!0).then((function(e){var r=e.data;t.pagination.total=r.total,t.dataList=r.datas,t.isLoading=!1}))}catch(t){this.isLoading=!1}},handleSizeChange:function(t){this.pagination.pageSize=t,this.pagination.pageNum=1,this.getList()},handleCurrentChange:function(t){this.pagination.pageNum=t,this.getList()},handleImportClick:function(t){this.$emit("import",t,"Normal_Ques")},handleViewAnswer:function(t){this.$openCxEditorView(t.answer)}}},M=(0,g.A)(O,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"normal-quesiton"},[e("div",{staticClass:"search"},[e("el-input",{staticClass:"main-search",attrs:{placeholder:t.$t("teach.library.SearchFAQ"),clearable:""},model:{value:t.form.searchText,callback:function(e){t.$set(t.form,"searchText",e)},expression:"form.searchText"}})],1),t._v(" "),e("div",{staticClass:"table-content"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],ref:"multipleTable",attrs:{height:"100%",data:t.dataList}},[e("el-table-column",{attrs:{label:t.$t("teach.library.SerialNumber"),type:"index",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.$index;return[t._v("\n          "+t._s(r+1+(t.pagination.pageNum-1)*t.pagination.pagesize)+"\n        ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("teach.library.Questions")},scopedSlots:t._u([{key:"default",fn:function(r){var i=r.row;return[e("div",{staticClass:"question",attrs:{title:i.question}},[t._v("\n            "+t._s(i.question||t.$t("teach.library.Without"))+"\n          ")]),t._v(" "),e("div",{staticClass:"answer"},[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleViewAnswer(i)}}},[t._v("\n              "+t._s(t.$t("teach.library.ClickToView"))+"\n            ")])],1)]}}])}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("teach.library.Operation"),width:"200"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("el-button",{staticClass:"primary-btn",attrs:{type:"text"},on:{click:function(e){return t.handleImportClick(r.row)}}},[t._v("\n            "+t._s(t.$t("teach.library.ToLead"))+"\n          ")])]}}])})],1)],1),t._v(" "),e("el-pagination",{staticClass:"pagination-style",attrs:{layout:" prev, pager, next, jumper,total, sizes","current-page":t.pagination.pageNum,"page-size":t.pagination.pagesize,"page-sizes":[10,20,50],total:t.pagination.total,background:!0},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)}),[],!1,null,"7b49e1d8",null).exports;function U(t){return U="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},U(t)}function N(){N=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,i){var n=e&&e.prototype instanceof y?e:y,o=Object.create(n.prototype),s=new k(i||[]);return a(o,"_invoke",{value:I(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",d="completed",v={};function y(){}function g(){}function b(){}var _={};c(_,o,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(L([])));S&&S!==r&&i.call(S,o)&&(_=S);var T=b.prototype=y.prototype=Object.create(_);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function $(t,e){function r(a,n,o,s){var l=h(t[a],t,n);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==U(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(l.arg)}var n;a(this,"_invoke",{value:function(t,i){function a(){return new e((function(e,a){r(t,i,e,a)}))}return n=n?n.then(a,a):a()}})}function I(e,r,i){var a=f;return function(n,o){if(a===m)throw Error("Generator is already running");if(a===d){if("throw"===n)throw o;return{value:t,done:!0}}for(i.method=n,i.arg=o;;){var s=i.delegate;if(s){var l=A(s,i);if(l){if(l===v)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===f)throw a=d,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=m;
vendor: 4,310 bytes, line 1
1var c=h(e,r,i);if("normal"===c.type){if(a=i.done?d:p,c.arg===v)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(a=d,i.method="throw",i.arg=c.arg)}}}function A(e,r){var i=r.method,a=e.iterator[i];if(a===t)return r.delegate=null,"throw"===i&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var n=h(a,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,v;var o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function r(){for(;++a<e.length;)if(i.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(U(e)+" is not iterable")}return g.prototype=b,a(T,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,l,"GeneratorFunction")),t.prototype=Object.create(T),t},e.awrap=function(t){return{__await:t}},x($.prototype),c($.prototype,s,(function(){return this})),e.AsyncIterator=$,e.async=function(t,r,i,a,n){void 0===n&&(n=Promise);var o=new $(u(t,r,i,a),n);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},x(T),c(T,l,"Generator"),c(T,o,(function(){return this})),c(T,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var i in e)r.push(i);return r.reverse(),function t(){for(;r.length;){var i=r.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=L,k.prototype={constructor:k,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(C),!e)for(var r in this)"t"===r.charAt(0)&&i.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 a(i,a){return s.type="throw",s.arg=e,r.next=i,a&&(r.method="next",r.arg=t),!!a}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(o)},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),v},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),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;
1if("throw"===i.type){var a=i.arg;C(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,i){return this.delegate={iterator:L(e),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),v}},e}function P(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var i,a,n,o,s=[],l=!0,c=!1;try{if(n=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=n.call(r)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return j(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function q(t,e,r,i,a,n,o){try{var s=t[n](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,a)}var D={data:function(){var t=T()().startOf("day").subtract(1,"month").format("YYYY-MM-DD HH:mm:ss"),e=T()().format("YYYY-MM-DD HH:mm:ss");return{similarList:[{label:this.$t("teach.library.All"),value:-1},{label:this.$t("teach.library.Over90"),value:0},{label:"89%-70%",value:1},{label:"69%-50%",value:2},{label:this.$t("teach.library.Below50"),value:3}],columns:[{type:"index",label:this.$t("teach.library.SerialNumber"),width:80,align:"center"},{label:this.$t("teach.library.Questions"),prop:"question",showOverflowTooltip:!0},{label:this.$t("teach.library.Frequency"),prop:"frequency",width:60},{label:this.$t("teach.library.Time"),prop:"createTime",width:200}],form:{timeRange:[t,e],keyword:""},list:[],pagination:{pageNum:1,pageSize:10,total:0},pageSizes:[10,20,30,40,50],isLoading:!1}},watch:{form:{handler:a()((function(){this.pagination.pageNum=1,this.getList()}),300),deep:!0}},created:function(){this.getList()},methods:{getList:function(){var t,e=this;return(t=N().mark((function t(){var r,i,a,n,o,s,l;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.isLoading=!0,r=P(e.form.timeRange,2),i=r[0],a=r[1],n={start:i,end:a,sw:e.form.keyword,pagenum:e.pagination.pageNum,pagesize:e.pagination.pageSize},t.next=6,e.$httpService.post("/v1/manage/question/unknown/search",n,!0);case 6:o=t.sent,s=o.datas,l=o.total,e.pagination.total=l,e.list=s,e.isLoading=!1,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),e.isLoading=!1;case 17:case"end":return t.stop()}}),t,null,[[0,14]])})),function(){var e=this,r=arguments;return new Promise((function(i,a){var n=t.apply(e,r);function o(t){q(n,i,a,o,s,"next",t)}function s(t){q(n,i,a,o,s,"throw",t)}o(void 0)}))})()},handleSizeChange:function(t){this.pagination.pageSize=t,this.pagination.pageNum=1,this.getList()},handleCurrentChange:function(t){this.pagination.pageNum=t,this.getList()},handleImportClick:function(t){this.$emit("import",t,"UNKNOW_QUES")}}},R=D,F=(0,g.A)(R,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"unknown-question"},[e("div",{staticClass:"header"},[e("el-form",{attrs:{inline:"",model:t.form,size:"mini"}},[e("el-form-item",{attrs:{label:"",prop:"keyword"}},[e("el-input",{attrs:{placeholder:t.$t("teach.library.SearchForUnknown"),"suffix-icon":"el-icon-search",clearable:""},model:{value:t.form.keyword,callback:function(e){t.$set(t.form,"keyword",e)},expression:"form.keyword"}})],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("teach.library.TimeRange"),prop:"timeRange"}},[e("el-date-picker",{attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":t.$t("teach.library.To"),"start-placeholder":t.$t("teach.library.StartTime"),"end-placeholder":t.$t("teach.library.EndTime"),placeholder:t.$t("teach.library.SelectATime")},model:{value:t.form.timeRange,callback:function(e){t.$set(t.form,"timeRange",e)}
1,expression:"form.timeRange"}})],1)],1)],1),t._v(" "),e("div",{staticClass:"table-content"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],attrs:{data:t.list,"empty-text":t.$t("teach.library.NoDataYet"),height:"100%"}},[t._l(t.columns,(function(r){return e("el-table-column",t._b({key:r.prop},"el-table-column",r,!1))})),t._v(" "),e("el-table-column",{attrs:{label:t.$t("teach.library.Operation"),width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){var i=r.row;return[e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.handleImportClick(i)}}},[t._v(t._s(t.$t("teach.library.ToLead")))])]}}])})],2)],1),t._v(" "),e("div",{staticClass:"pagination"},[e("el-pagination",{attrs:{layout:"total, sizes, prev, pager, next, jumper","current-page":t.pagination.pageNum,"page-sizes":t.pageSizes,"page-size":t.pagination.pageSize,total:t.pagination.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])}),[],!1,null,"1f9df488",null).exports;function Q(t){return Q="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},Q(t)}function V(){V=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,i){var n=e&&e.prototype instanceof y?e:y,o=Object.create(n.prototype),s=new k(i||[]);return a(o,"_invoke",{value:I(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",d="completed",v={};function y(){}function g(){}function b(){}var _={};c(_,o,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(L([])));S&&S!==r&&i.call(S,o)&&(_=S);var T=b.prototype=y.prototype=Object.create(_);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function $(t,e){function r(a,n,o,s){var l=h(t[a],t,n);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Q(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(l.arg)}var n;a(this,"_invoke",{value:function(t,i){function a(){return new e((function(e,a){r(t,i,e,a)}))}return n=n?n.then(a,a):a()}})}function I(e,r,i){var a=f;return function(n,o){if(a===m)throw Error("Generator is already running");if(a===d){if("throw"===n)throw o;return{value:t,done:!0}}for(i.method=n,i.arg=o;;){var s=i.delegate;if(s){var l=A(s,i);if(l){if(l===v)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===f)throw a=d,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=m;var c=h(e,r,i);if("normal"===c.type){if(a=i.done?d:p,c.arg===v)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(a=d,i.method="throw",i.arg=c.arg)}}}function A(e,r){var i=r.method,a=e.iterator[i];if(a===t)return r.delegate=null,"throw"===i&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var n=h(a,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,v;var o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[o];if(r)return r.call(e);
vendor: 4,153 bytes, line 1
1if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function r(){for(;++a<e.length;)if(i.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(Q(e)+" is not iterable")}return g.prototype=b,a(T,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,l,"GeneratorFunction")),t.prototype=Object.create(T),t},e.awrap=function(t){return{__await:t}},x($.prototype),c($.prototype,s,(function(){return this})),e.AsyncIterator=$,e.async=function(t,r,i,a,n){void 0===n&&(n=Promise);var o=new $(u(t,r,i,a),n);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},x(T),c(T,l,"Generator"),c(T,o,(function(){return this})),c(T,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var i in e)r.push(i);return r.reverse(),function t(){for(;r.length;){var i=r.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=L,k.prototype={constructor:k,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(C),!e)for(var r in this)"t"===r.charAt(0)&&i.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 a(i,a){return s.type="throw",s.arg=e,r.next=i,a&&(r.method="next",r.arg=t),!!a}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(o)},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),v},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),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var a=i.arg;C(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,i){return this.delegate={iterator:L(e),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),v}},e}function H(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var i,a,n,o,s=[],l=!0,c=!1;try{if(n=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=n.call(r)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return G(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?G(t,e):void 0}}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function z(t,e,r,i,a,n,o){try{var s=t[n](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,a)}var B={data:function(){return{form:{timeRange:[T()().startOf("day").subtract(1,"month").format("YYYY-MM-DD HH:mm:ss"),T()().format("YYYY-MM-DD HH:mm:ss")],similar:0},list:[],pagination:{pageNo:1,pageSize:10,total:0},pageSizes:[10,20,30,40,50],isLoading:!1}},watch:{form:{handler:function(){this.pagination.pageNo=1,this.getList()},deep:!0}},created:function(){this.getList()},methods:{getList:function(){var t,e=this;return(t=V().mark((function t(){var r,i,a,n,o,s,l,c;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.isLoading=!0,r=H(e.form.timeRange,2),i=r[0],a=r[1],n={start:i,end:a,pageNo:e.pagination.pageNo,pageSize:e.pagination.pageSize},t.next=6,e.$httpService.get("/v1/manage/unStatis/page",{params:n},!0);case 6:o=t.sent,s=o.data,l=s.resultList,c=s.total,e.pagination.total=c,e.list=l||[],e.isLoading=!1,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),e.isLoading=!1;case 17:case"end":return t.stop()}}),t,null,[[0,14]])})),function(){var e=this,r=arguments;return new Promise((function(i,a){var n=t.apply(e,r);function o(t){z(n,i,a,o,s,"next",t)}function s(t){z(n,i,a,o,s,"throw",t)}o(void 0)}))})()},handleSizeChange:function(t){this.pagination.pageSize=t,this.pagination.pageNo=1,this.getList()},handleCurrentChange:function(t){this.pagination.pageNo=t,this.getList()},handleImportClick:function(t){this.$emit("import",t,"UN_STATIS_QUES")},handleViewAnswer:function(t){this.$openCxEditorView(t.answer)}}},Y=B,X=(0,g.A)(Y,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"unsatisfied-question"},[e("div",{staticClass:"header"},[e("el-form",{attrs:{inline:"",model:t.form,size:"mini"}},[e("el-form-item",{attrs:{label:t.$t("teach.library.TimeRange"),prop:"timeRange"}},[e("el-date-picker",{attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":t.$t("teach.library.To"),"start-placeholder":t.$t("teach.library.StartTime"),"end-placeholder":t.$t("teach.library.EndTime"),placeholder:t.$t("teach.library.SelectATime")},model:{value:t.form.timeRange,callback:function(e){t.$set(t.form,"timeRange",e)}
1,expression:"form.timeRange"}})],1)],1)],1),t._v(" "),e("div",{staticClass:"table-content"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],attrs:{data:t.list,"empty-text":t.$t("teach.library.NoDataYet"),height:"100%"}},[e("el-table-column",{attrs:{label:t.$t("teach.library.SerialNumber"),width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.$index;return[t._v("\n          "+t._s(r+1+(t.pagination.pageNo-1)*t.pagination.pageSize)+"\n        ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("teach.library.Questions")},scopedSlots:t._u([{key:"default",fn:function(r){var i=r.row;return[e("div",{staticClass:"question",attrs:{title:i.question}},[t._v(t._s(i.question||t.$t("teach.library.Without")))]),t._v(" "),e("div",{staticClass:"answer"},[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleViewAnswer(i)}}},[t._v(t._s(t.$t("teach.library.ClickToView")))])],1)]}}])}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("teach.library.Operation"),width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){var i=r.row;return[e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.handleImportClick(i)}}},[t._v(t._s(t.$t("teach.library.ToLead")))])]}}])})],1)],1),t._v(" "),e("div",{staticClass:"pagination"},[e("el-pagination",{attrs:{"current-page":t.pagination.pageNo,"page-sizes":t.pageSizes,"page-size":t.pagination.pageSize,total:t.pagination.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])}),[],!1,null,"0984004e",null).exports,W=r(88055),J=r.n(W),K={components:{ManualQuestion:L,NormalQuestion:M,UnknownQuestion:F,UnsatisfiedQuestion:X},props:{type:{type:String,default:"normal"}},data:function(){return{visible:!1,choosed:[],choosedType:""}},computed:{activedComponent:function(){switch(this.type){case"manual":return L;case"normal":default:return M;case"unknown":return F;case"unsatisfied":return X}},title:function(){return{manual:this.$t("teach.library.ImportManualResponse"),normal:this.$t("teach.library.ImportFAQ"),unknown:this.$t("teach.library.ImportUnknownIssues"),unsatisfied:this.$t("teach.library.ImportUnsatisfactoryIssue")}[this.type]||""}},created:function(){},methods:{handleClose:function(){this.$emit("close")},handleClosed:function(){this.$emit("closed")},handleConfirm:function(){this.$emit("confirm",J()(this.choosed),this.choosedType)},handleImport:function(t,e){this.choosed.push(t),this.choosedType=e,this.handleConfirm()}}},Z=(0,g.A)(K,(function(){var t=this,e=t._self._c;return e("el-dialog",{staticClass:"choose-dialog",attrs:{width:"70%",title:t.title,visible:t.visible},on:{"update:visible":function(e){t.visible=e},closed:t.handleClosed,close:t.handleClose}},[e("div",{staticClass:"content"},[e(t.activedComponent,{tag:"component",on:{import:t.handleImport}})],1)])}),[],!1,null,"a5372f56",null).exports,tt=w().extend(Z);var et=r(20903);function rt(t){return rt="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},rt(t)}function it(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var i,a,n,o,s=[],l=!0,c=!1;try{if(n=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=n.call(r)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return at(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?at(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function ot(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?nt(Object(r),!0).forEach((function(e){st(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function st(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=rt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=rt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var lt=(0,s.D6)("BOT_AGENT_BASE_URL"),ct="".concat(lt,"/v1/manage/question/upload"),ut=function(t){return{IMAGE:function(){return t("teach.library.ImageMaterialLibrary")},AUDIO:function(){return t("teach.library.SpeechMaterialLibrary")},MENU:function(){return t("teach.library.MenuMaterialLibrary")},RICH_TEXT:function(){return t("teach.library.GraphicMaterialLibrary")}}(t=u.Ru.t)},ht=function(t,e){"IMAGE"===t&&(this.value=e.materialId,this.fileurl=e.materialUrl,this.txt=e.materialPic),"AUDIO"===t&&(this.value=e.materialId,this.fileurl=e.audioUrl,this.txt=e.materialPic,this.isPlay=!1,this.showAudio=!0),"MENU"===t&&(this.value=e.menuId,this.txt=e.menuName),"RICH_TEXT"===t&&(this.value=e.materialId,this.fileurl=e.materialCover,this.txt=e.materialTitle,this.content=e.materialContent)},ft={name:"AddQaLibraryContainer",components:{Editor:function(){return Promise.all([r.e(5870),r.e(51483)]).then(r.bind(r,5870))},imagetextComponent:h.A,"select-material-table":f.A,DocRelation:b,AppsPool:n.default,AppIconLibrary:o.A},directives:{focus:{inserted:function(t){t.querySelector("input").focus()}}},props:["importType","q","replyContent","isComponent","params"],data:function(){return{secondType:"custom",knowledgeFiles:[],titleTag:this.params.titleTag||null,enabledAnswerTypes:[],isSubmiting:!1,isUploading:!1,searchVal:"",tempPopAddList:[],tempAppsList:[],recommendApps:[],application_select:!0,unitAppsList:[],editorInit:{placeholder:this.$t("teach.library.PleaseEnterHere")},from_page:this.params.from_page||"",uploadUrl:ct,option:this.params.option||"add",qaId:this.params.id,qaEnc:this.params.enc,classify_treeData:[],similarQuestion:[],selectMaterialDialogTitle:"",answerValue:{TEXT:{from:"1",value:"",isSaveMaterial:"0",enableAutoplay:!1},IMAGE:{from:"1",value:"",isSaveMaterial:"1",fileurl:"",materiaObj:{},filename:""},AUDIO:{from:"1",value:"",isSaveMaterial:"1",fileurl:"",materiaObj:{},filename:"",showAudio:!1,isPlay:!1},MENU:{from:"2",value:"",isSaveMaterial:"0",materiaObj:{}},RICH_TEXT:{from:"1",value:"",isSaveMaterial:"1",materiaObj:{}}},form:{answerType:"TEXT",matchModel:"",answer:"",similarQuestions:[],questionTag:"",questionClassify:2,question:"",isOpen:0,appsType:null,appsUnits:[],hotExclude:!1,notifyVisitor:!1},isAddSelfDialog:!1,isAddSelf:!1,editSelfIndex:0,selfAppsList:[],selfFrom:{name:"",icon:"9f14fa10663a93dc7f9b5af264287e13",pcUrl:"",mobileUrl:""},selfOptions:{name:[{required:!0,message:this.$t("teach.library.PleaseEnterA"),trigger:"blur"}],pcUrl:[{type:"url",message:this.$t("teach.library.PleaseFillIn"),trigger:"blur"}],mobileUrl:[{type:"url",message:this.$t("teach.library.PleaseFillIn_1"),trigger:"blur"}]},iframeForm:{pcUrl:"",mobileUrl:""},iframeRules:{pcUrl:[{required:!0,message:this.$t("teach.library.PleaseEnterPc"),trigger:"blur"}],mobileUrl:[{required:!0,message:this.$t("teach.library.PleaseEnterMobile"),trigger:"blur"}]},imgList:[],tag:{questionTags:[],inputVisible:!1,inputValue:""},is_question_unique:!0,dialog_visible:!1,is_preview_richtext:!1,dialog_sureBtn_disabled:!0,material_select_temp:{},rich_text_obj:{},rich_text_obj_temp:{},question_temp:"",sourceType:"",sourceId:"",prevAnswerType:"TEXT",standardSameQuestion:""}},computed:{isNanchang:function(){return"262"===this.$store.state.unitId},isISCBoard:function(){return this.$utils.isISCBoard()},useMatchModel:function(){return"46579"==this.unitId&&"bf6ba2ca7d074a50b83e88423351815b"==this.robotId||("11187"==this.unitId||"1385"==this.unitId)},uploadHeaders:function(){return(0,l.w)()},unitId:function(){var t=sessionStorage.getItem("isc_unitId")||"",e=this.$store.state.unitId;return t||e},needModal:function(){return!this.importType},questionTag:function(){return this.tag.questionTags.join(";")},questionTags:function(){return JSON.stringify(this.tag.questionTags)},isForbiddenQeustion:function(){return"add"===this.option&&["UN_STATIS_QUES","KEFU_REPLY","Normal_Ques"].includes(this.sourceType)},isSourceFromSession:function(){return["satisfy","unsatisfy","history","hot","llm_backup"].includes(this.from_page)},editMode:function(){return"edit"===this.option},showAllEntry:function(){return this.editMode&&"TEXT"!==this.prevAnswerType},matchModel:function(){return""==this.form.matchModel?"1":this.form.matchModel},isPCD:function(){return(0,s.SE)()}},watch:{"form.question":function(){this.debouncedCheckRepeatFn("standard")}},created:function(){var t=this;this.tempAppsList=[],this.robotId=this.$cookies.get("robotId"),this.beforeHistoryLen=window.history.length,"kefu_add_q"==this.importType&&this.q&&(this.form.question=this.q,this.answerValue.TEXT.value=this.replyContent),this.params.categoryId>0&&(this.form.questionClassify=parseInt(this.params.categoryId)),Promise.all([this._getTreeData()]).then((function(){t.from_page&&"unknownQ"===t.from_page?t._getUnknowQuesDetailById(t.qaId,t.qaEnc):t.qaId&&!t.isSourceFromSession&&t._getQuestionDetailById(t.qaId,t.qaEnc)})),this.debouncedCheckRepeatFn=a()(this._checkQuestionUnique,300)},methods:{handleSuccess:function(t){this.selfFrom.icon="".concat(c.h0,"/").concat(t)},insertHotQA:function(){try{var t=JSON.parse(sessionStorage.getItem("qa_storage"))||{},e=t.tag,r=void 0===e?"":e,i=t.question,a=void 0===i?"":i,n=t.others,o=void 0===n?[]:n;this.tag.questionTags.push(r),this.form.question=a,this.similarQuestion=o.map((function(t){return{value:t,checked:!0}}))}catch(t){}},insertQA:function(){var t=this;if(this.isSourceFromSession){if("hot"===this.from_page)return this.insertHotQA();var e={html:function(e,r){t.form.question=e;var i=t.$refs.editorRef;i&&i.setHtmlAsContent(r)},markdown:function(e,r){t.form.question=e;var i=t.$refs.editorRef;i&&i.setMarkdownAsContent(r)}};try{var r=JSON.parse(sessionStorage.getItem("qa_storage"))||{},i=r.type,a=void 0===i?"":i,n=r.question,o=void 0===n?"":n,s=r.answer,l=void 0===s?"":s;e[a]&&e[a](o,l)}catch(t){}}},beforeAvatarUpload:function(t){var e="image/jpeg"===t.type||"image/png"===t.type||"image/gif"===t.type,r=t.size/1024/1024<1;return e||this.$message.error(this.$t("teach.library.TheFormatOf")),r||this.$message.error(this.$t("teach.library.TheSizeOf")),e&&r},handleAppUpload:function(t,e,r){t.status&&(this.imgList.pop(),this.selfFrom.icon="".concat(c.h0,"/").concat(t.objectId))},handleAppUploadError:function(t,e,r){this.$message.error(t)},switchChange:function(t){t?this.form.appsType=(0,s.SE)()?"SELF_BUILD_APP":"MICRO_APP":(this.form.appsType="",this.form.appsUnits=[],this.tempAppsList=[],this.selfAppsList=[],this.$refs.iframeForm&&this.$refs.iframeForm.resetFields())},addSelfAPP:function(){this.isAddSelfDialog=!0,this.isAddSelf=!0},saveBatchApps:function(t){var e=this;t.forEach((function(t){e.selfAppsList.some((function(e){return e.id===t.id}
1))||e.selfAppsList.push(ot(ot({},t),{},{appType:"REFERENCE_APP",icon:e.$utils.formatImagePath(t.objectId)}))})),this.selfClose()},selfFromSubmit:function(){var t=this;if(!this.selfFrom.pcUrl&&!this.selfFrom.mobileUrl)return this.$message.error(this.$t("teach.library.PleaseFillIn_2")),!1;this.$refs.selfFrom.validate((function(e){if(!e)return!1;var r={name:t.selfFrom.name,icon:t.selfFrom.icon,pcUrl:t.selfFrom.pcUrl,mobileUrl:t.selfFrom.mobileUrl};if(t.isAddSelf)t.selfAppsList.push(r);else{var i=ot(ot({},t.selfAppsList[t.editSelfIndex]),r);t.$set(t.selfAppsList,t.editSelfIndex,i),t.editSelfIndex=0}t.selfClose()}))},selfClose:function(){this.selfFrom={name:"",icon:"9f14fa10663a93dc7f9b5af264287e13",pcUrl:"",mobileUrl:""},this.isAddSelfDialog=!1,this.isAddSelf=!1},editSelfAPP:function(t,e){this.isAddSelfDialog=!0,this.isAddSelf=!1,this.secondType="custom",this.selfFrom=ot({},t),this.editSelfIndex=e},delSelfAPP:function(t,e){this.selfAppsList.splice(e,1)},fillForm:function(t,e){var r=this;return{UNKNOW_QUES:function(){r.sourceType="UNKNOW_QUES",r.sourceId=t.id,r.tag.questionTags=[],r.tempAppsList=[],r.recommendApps=[],r.answerType="TEXT",r.$set(r.form,"id",t.id),r.$set(r.form,"answerType","TEXT"),r.$set(r.form,"question",t.question),r.useMatchModel&&r.$set(r.form,"matchModel",1),r.$set(r.form,"questionClassify",2),r.similarQuestion=[];var e=r.answerValue.TEXT;r.$set(e,"from","0"),r.$set(e,"isSaveMaterial","0"),e.value=""},UN_STATIS_QUES:function(){r.sourceType="UN_STATIS_QUES",r.sourceId=t.qaId,r._getQuestionDetailById(t.qaId,t.enc)},KEFU_REPLY:function(){r.sourceType="KEFU_REPLY",r.sourceId=t.quesId,r._getQuestionDetailById(t.quesId,t.enc),t.originQues&&(r.similarQuestion=[{value:t.originQues,checked:!0}])},Normal_Ques:function(){r.sourceType="Normal_Ques",r.sourceId=t.packId,r._getNormalDetailById(t.id,t.enc)}}[e].call(this)},handleChooseQuestion:function(t){var e,r=this;(e=t,new Promise((function(t,r){var i=new tt({i18n:u.Ru,propsData:{type:e}}),a=i.$mount().$el;i.$nextTick((function(){i.visible=!0})),i.$on("confirm",(function(e,r){i.visible=!1,t({data:e,serverType:r})})),i.$once("closed",(function(){i.$destroy(),document.body.removeChild(a),r()})),document.body.appendChild(a)}))).then((function(t){var e=it(t.data,1)[0],i=t.serverType;r.fillForm(e,i)})).catch((function(t){}))},handleBackClick:function(){this.$route.params.confirmModule=null,this.$router.back()},setInit:function(){this.fnToAddMicroApps()},deleteItem:function(t){for(var e in this.tempAppsList)this.tempAppsList[e].id===t.id&&this.tempAppsList.splice(e,1)},del:function(t){this.deleteItem(t)},fnToAddMicroApps:function(){var t=this;this.$openDialog({common:{showFooter:!1,top:"6vh",width:"950px",title:this.$t("common.editor.AddApplication"),modal:!this.importType,beforeClose:function(){}},content:{model:"component",vm:function(){return Promise.all([r.e(29846),r.e(87494)]).then(r.bind(r,29696))},options:{disabledList:(0,et.A)(this.tempAppsList),question:this.form.question,emitSelectedAppChangeFn:function(e){t.tempAppsList=e}}}})},fnToClearMicroApps:function(){this.tempPopAddList=[],this.tempAppsList=[]},handleTagInputConfirm:function(){-1!=this.tag.questionTags.indexOf(this.tag.inputValue)?this.$message({message:this.$t("teach.library.DuplicateQA"),type:"error"}):this.tag.inputValue&&this.tag.questionTags.push(this.tag.inputValue),this.tag.inputVisible=!1,this.tag.inputValue=""},handleTagClose:function(t,e){this.tag.questionTags.splice(e,1)},appendSimilarInput:function(t,e){"append"===t?this.similarQuestion.push({value:"",checked:!0}):this.similarQuestion.splice(e,1)},checkUnique:function(t,e){if("standard"===t){if(!this.form.question)return}else if(!e.value)return},handleBeforeUpload:function(t){var e=t.type,r=this.form.answerType.toLocaleLowerCase();if(-1==e.indexOf(r))return this.$message.error(this.$t("teach.library.PleaseSelectThe")),!1},handleUploadProgress:function(t,e,r){var i=t.percent;this.isUploading=i<100},handleUploadRemove:function(t,e){this.isUploading=!1},handleUploadSuccess:function(t,e){if(t.status){var r=this.form.answerType,i="".concat(c.h0,"/").concat(t.objectId),a=e.name;if(this.answerValue[r].filename=a,"AUDIO"==r)return void this._getPlayUrl(t.objectId);this.answerValue[r].value=t.objectId,this.answerValue[r].fileurl=i}},handleUploadError:function(t,e){this.$message.error(this.$t("teach.library.UploadFailedPlease"))},clearPreview:function(t){this.answerValue[t].value="",this.answerValue[t].filename="",this.answerValue[t].fileurl="","AUDIO"===t&&(this.answerValue[t].showAudio=!1)},selectMaterialDialog:function(t){this.dialog_visible=!0,this.selectMaterialDialogTitle=ut[t]},selectMaterial:function(t){this.dialog_sureBtn_disabled=!1,this.material_select_temp=t},sure_select_material:function(){var t=this,e=this.form.answerType;this.dialog_visible=!1,this.answerValue[e].materiaObj=new ht(e,JSON.parse(JSON.stringify(this.material_select_temp))),"AUDIO"===e&&(this.answerValue.AUDIO.materiaObj.showAudio=!1,this.$nextTick((function(){t.answerValue.AUDIO.materiaObj.showAudio=!0})))},closeSelectMaterialDialog:function(){this.dialog_sureBtn_disabled=!0},playAudio:function(t,e){if(e)return this.$set(e,"isPlay",!e.isPlay),void this.$httpService.playRadio(this.$refs[t]);this.answerValue.AUDIO.isPlay=!this.answerValue.AUDIO.isPlay,this.$httpService.playRadio(this.$refs[t])},pauseAudio:function(t){this.$set(t,"isPlay",!1)},getRichTextObj:function(t){var e=this;Object.keys(t).forEach((function(r){e.$set(e.rich_text_obj_temp,r,t[r])})),"URL"===this.rich_text_obj_temp.richTextSwitch&&(this.rich_text_obj_temp.materialContent=""),this.rich_text_obj=JSON.parse(JSON.stringify(this.rich_text_obj_temp))},previewRichtext:function(){if(1==this.answerValue.RICH_TEXT.from)this.rich_text_obj_temp=JSON.parse(JSON.stringify(this.rich_text_obj));else{var t=JSON.parse(JSON.stringify(this.answerValue.RICH_TEXT.materiaObj));this.$set(this.rich_text_obj_temp,"materialTitle",t.txt),this.$set(this.rich_text_obj_temp,"materialContent",t.content)}this.rich_text_obj_temp&&this.rich_text_obj_temp.materialTitle?this.is_preview_richtext=!0:this.$message.error(this.$t("teach.library.TheGraphicContent"))},sendForm:function(){if(this.isUploading)this.$message.error(this.$t("teach.library.UploadingInProgress"));else{var t=this.form.answerType,e=this.answerValue[t],r=e.from;"unknownQ"==this.from_page&&this.$set(this.form,"uid",this.$route.query.uid||""),this.$set(this.form,"messageId",this.$route.query.messageId||""),this.$set(this.form,"source",{unknownQ:"UNKNOW_QUES",satisfy:"SATIS_QUES",unsatisfy:"UN_STATIS_QUES",history:"HISTORY",hot:"HOT_QUESTION_IMPORT",llm_backup:"LLM_FALLBACK"}[this.from_page]),this.$set(this.form,"appsUnitId",""),this.$set(this.form,"fromType",r),this.$set(this.form,"questionTag",this.questionTag),this.$set(this.form,"questionTags",this.questionTags),this.useMatchModel&&this.$set(this.form,"matchModel",this.matchModel),"2"==r?this.$set(this.form,"isSaveMaterial","0"):this.$set(this.form,"isSaveMaterial",e.isSaveMaterial),"TEXT"==t&&(this.$set(this.form,"answer",e.value),this.$set(this.form,"answerAttachment",e.attachment),this.$set(this.form,"enableAutoplay",e.enableAutoplay)),"IMAGE"!=t&&"AUDIO"!=t||("1"==r?(this.$set(this.form,"answer",e.value),this.$set(this.form,"filename",e.filename||"")):(this.$set(this.form,"answer",e.materiaObj.value||""),this.$set(this.form,"filename",e.materiaObj.txt||""))),"MENU"==t&&this.$set(this.form,"answer",e.materiaObj.value),"RICH_TEXT"==t&&("2"===r&&this.$set(this.form,"answer",e.materiaObj.value),"1"==r&&this.rich_text_obj.materialId>0&&this.$set(this.form,"material",this.rich_text_obj)),this.checkFormBeforeSend(this.form)&&this.doSendForm(this.form)}},checkFormBeforeSend:function(t){if(!t.question||!t.question.trim())return this.$message.error(this.$t("teach.library.StandardQuestionsCannot_1")),!1;var e=this.similarQuestion;if(e||e.length>0)for(var r=0;r<e.length;r++){if(!e[r].value)return this.$message.error(this.$t("teach.library.SimilarQuestionsCannot")),!1;if(!e[r].checked)return this.$message.error(this.$t("teach.library.SimilarQuestionsRepeated")),!1;if(e[r].value==this.form.question)return this.$message.error(this.$t("teach.library.SimilarQuestionsAre")),!1}if("RICH_TEXT"===t.answerType&&"1"===t.fromType){if(!this.rich_text_obj.materialTitle)return this.$message.error(this.$t("teach.library.QuestionAnswerCannot")),!1;if(!this.rich_text_obj.checkedUrl)return this.$message.error(this.$t("teach.library.GraphicLinksAre")),!1;if(!this.rich_text_obj.materialCover)return this.$message.error(this.$t("teach.library.PleaseAddAnswer")),!1}return t.answer||this.form.isOpen?this.form.isOpen?"MICRO_APP"==this.form.appsType?0!=this.tempAppsList.length||(this.$message.error(this.$t("teach.library.PleaseSelectMicroApp")),!1):"SELF_BUILD_APP"==this.form.appsType?0!=this.selfAppsList.length||(this.$message.error(this.$t("teach.library.PleaseSelectA_1")),!1):"IFRAME"==this.form.appsType&&(!(!this.iframeForm.pcUrl||!this.iframeForm.mobileUrl)||(this.$message.error(this.$t("teach.library.PleaseFillIn_4")),!1)):this.form.questionClassify?!!this.is_question_unique||(this.$message({message:this.$t("teach.library.DuplicateQuestionPlease"),type:"warning"}),!1):(this.$message.error(this.$t("teach.library.PleaseSelectA_2")),!1):(this.$message.error(this.$t("teach.library.PleaseFillIn_3")),!1)},doSendForm:function(t){if("RICH_TEXT"===t.answerType&&"1"===t.fromType){if("0"==t.isSaveMaterial?this.$set(this.rich_text_obj,"status","HIDE"):this.$set(this.rich_text_obj,"status","SHOW"),t.material&&t.material.materialId)return t.answer=t.material.materialId,void this._doOptionForm(t);this.$set(this.rich_text_obj,"unitId",this.$store.state.unitId),this.$set(this.rich_text_obj,"robotId",this.robotId),this._insertRichTxt(this.rich_text_obj,t)}else this._doOptionForm(t)},pageTurnBack:function(){this.$route.params.confirmModule=this.option;var t=-(window.history.length-this.beforeHistoryLen)-1;this.$router.go(t)},thirdOption:function(t){this.$emit("thirdOption",t?"sure":"error")},handleAppData:function(){if(this.form.isOpen||(this.form.appsType=""),"MICRO_APP"==this.form.appsType&&(this.form.appsUnits=this.tempAppsList),"SELF_BUILD_APP"==this.form.appsType&&(this.form.appsUnits=this.selfAppsList),"IFRAME"==this.form.appsType){this.form.appsUnits=[];var t={pcUrl:this.iframeForm.pcUrl,mobileUrl:this.iframeForm.mobileUrl};this.form.appsUnits.push(t)}},_doOptionForm:function(t){var e=this;this.handleAppData();var r=this,i=this.similarQuestion;this.$set(t,"similarQuestions",[]),i&&i.length>
10&&i.forEach((function(e){t.similarQuestions.push({squestion:e.value})})),"TEXT"===t.answerType&&(t.edition="cx"),this.sourceType&&(t.source=this.sourceType,t.sourceId=this.sourceId);var a=this.option;this.isSubmiting=!0;var n=this.knowledgeFiles.map((function(t){return{knowledgeId:t.knowledgeId,industryLibraryId:t.industryLibraryId,fileKey:t.fileKey}}));this.$httpService.post("/v1/manage/question/".concat(a),{form:JSON.stringify(ot(ot({},t),{},{docFileIds:n}))},!0).then((function(t){if(e.isSubmiting=!1,r.importType&&""!==r.importType)r.thirdOption(t.status);else if(t.status){if("hot"===e.from_page)return e.$router.push("/dashboard/qa_library/base/qa");if(e.isComponent)return e.$emit("confirm");r.delFromPageQuestions().finally((function(){r.pageTurnBack()}))}else"add"===r.option?(t.msg,e.$message.error(t.msg)):e.$message.error(t.msg)})).catch((function(t){e.isSubmiting=!1}))},_insertRichTxt:function(t,e){var r=this,i=this;this.$httpService.post("/v1/manage/faq/material",t).then((function(t){0===t.statusCode?(i.$set(e,"answer",t.data.materialId),i._doOptionForm(e),"URL"!=t.data.richTextSwitch&&i._updateRichTxtUrl(t.data.materialId)):r.$message.error(r.$t("teach.library.FailedToAdd"))}))},delFromPageQuestions:function(){var t=this,e=this.qaId,r=void 0===e?"":e,i=this.qaEnc,a=void 0===i?"":i,n=this.from_page,o={unknownQ:function(e,r){return t.$httpService.get("/v1/manage/question/unknown/del?id=".concat(e,"&enc=").concat(r))},satisfy:function(e,r){return t.$httpService.post("/v1/manage/feedback/delete?enc=".concat(r),[e])},unsatisfy:function(e,r){return t.$httpService.post("/v1/manage/unStatis/removeBatch?enc=".concat(r),[e])},default:function(){return Promise.resolve(!0)}};return(o[void 0===n?"":n]||o.default)(r,a)},_updateRichTxtUrl:function(t){location.origin,location.pathname;var e=location.origin+"/materialDetail/".concat(t);this.$httpService.put("/v1/manage/faq/material/updateUrl/".concat(t),e).then((function(t){}))},_checkQuestionUnique:function(t,e){var r=this;if("standard"===t)var i;if("standard"===t){if((i=this.form.question)||(this.is_question_unique=!0),"edit"===this.option&&i===this.question_temp)return void(this.is_question_unique=!0)}else i=e.value;if("standard"!=t){var a=0;if(this.similarQuestion.forEach((function(t){t.value==i&&a++})),a>1)return void(e.checked=!1)}this.$httpService.get("/v1/manage/question/check/unique?question=".concat(i,"&questionId=").concat(this.qaId||0)).then((function(i){"standard"===t?(r.is_question_unique=i.status,r.standardSameQuestion=i.question):(e.checked=i.status,e.sameQuestion=i.question)}))},getAppDate:function(t,e){switch(this.$set(this.form,"appsType",t),this.$set(this.form,"isOpen",1),t){case"MICRO_APP":this.tempAppsList=e;break;case"SELF_BUILD_APP":this.selfAppsList=e;break;case"IFRAME":this.iframeForm.pcUrl=e[0].pcUrl,this.iframeForm.mobileUrl=e[0].mobileUrl}},_getNormalDetailById:function(t,e){var r=this,i={id:t,enc:e};this.$httpService.get("/v1/manage/question/package/qa/common/detail",{params:i},!0).then((function(t){if(0==t.statusCode){var e=t.data;r.recommendApps=e.recommendApps||[];var i=e.answerType;r.prevAnswerType=i;var a=e.fromType+"";r.tag.questionTags=e.questionTags?JSON.parse(e.questionTags):[],-1===r.enabledAnswerTypes.indexOf(i)&&r.enabledAnswerTypes.push(i),r.$set(r.form,"id",e.id),r.$set(r.form,"answerType",i),r.$set(r.form,"question",e.question),r.useMatchModel&&r.$set(r.form,"matchModel",e.matchModel),r.$set(r.form,"questionClassify",e.questionClassify),r.question_temp=e.question;var n=r.answerValue[i];e.appsType?r.getAppDate(e.appsType,e.appsUnits):e.appsUnits&&e.appsUnits.length>0&&r.getAppDate("MICRO_APP",e.appsUnits),r.$set(n,"from",a),r.$set(n,"isSaveMaterial",e.isSaveMaterial+""),"TEXT"===i?n.value=e.answer:"IMAGE"===i||"AUDIO"===i?"1"==a?(n.value=e.answer,n.fileurl=e.fileurl,n.filename=e.filename,"AUDIO"===i&&(n.showAudio=!0)):(n.materiaObj.value=e.answer,n.materiaObj.fileurl=e.media.materialUrl,n.materiaObj.txt=e.media.materialPic,"AUDIO"===i&&(n.materiaObj.showAudio=!0)):"MENU"===i?(n.materiaObj.value=e.answer,n.materiaObj.txt=e.menu.menuName):"RICH_TEXT"===i&&("1"==a?n.value=e.answer:(n.materiaObj.value=e.answer,n.materiaObj.fileurl=e.material.materialCover,n.materiaObj.txt=e.material.materialTitle,n.materiaObj.content=e.material.materialContent)),e.similarQuestions&&e.similarQuestions.length>0&&(r.similarQuestion=[],e.similarQuestions.forEach((function(t){r.similarQuestion.push({value:t.squestion,checked:!0})})))}}))},_getQuestionDetailById:function(t,e){var r=this,i={enc:e};this.$httpService.get("/v1/manage/question/detail/".concat(t),{params:i}).then((function(t){if(t.status){var e=t.data;r.recommendApps=e.recommendApps||[];var i=e.answerType;r.prevAnswerType=i;var a=e.fromType+"";r.tag.questionTags=e.questionTags?JSON.parse(e.questionTags):[],-1===r.enabledAnswerTypes.indexOf(i)&&r.enabledAnswerTypes.push(i),r.$set(r.form,"id",e.id),r.$set(r.form,"answerType",i),r.$set(r.form,"question",e.question),r.useMatchModel&&r.$set(r.form,"matchModel",e.matchModel),r.$set(r.form,"questionClassify",e.questionClassify),r.$set(r.form,"hotExclude",!!e.hotExclude),r.$set(r.form,"notifyVisitor",!!e.notifyVisitor),r.knowledgeFiles=e.knowledgeFiles||[],r.question_temp=e.question;var n=r.answerValue[i];e.appsType?r.getAppDate(e.appsType,e.appsUnits):e.appsUnits&&e.appsUnits.length>
10&&r.getAppDate("MICRO_APP",e.appsUnits),r.$set(n,"from",a),r.$set(n,"isSaveMaterial",e.isSaveMaterial+""),"TEXT"===i?(n.value=e.answer,n.enableAutoplay=e.enableAutoplay||!1):"IMAGE"===i||"AUDIO"===i?"1"==a?(n.value=e.answer,n.fileurl=e.fileurl,n.filename=e.filename,"AUDIO"===i&&(n.showAudio=!0)):(n.materiaObj.value=e.answer,n.materiaObj.fileurl=e.media.materialUrl,n.materiaObj.txt=e.media.materialPic,"AUDIO"===i&&(n.materiaObj.showAudio=!0)):"MENU"===i?(n.materiaObj.value=e.answer,n.materiaObj.txt=e.menu.menuName):"RICH_TEXT"===i&&("1"==a?n.value=e.answer:(n.materiaObj.value=e.answer,n.materiaObj.fileurl=e.material.materialCover,n.materiaObj.txt=e.material.materialTitle,n.materiaObj.content=e.material.materialContent)),e.similarQuestions&&e.similarQuestions.length>0&&(r.similarQuestion=[],e.similarQuestions.forEach((function(t){r.similarQuestion.push({value:t.squestion,checked:!0})})))}}))},_getUnknowQuesDetailById:function(t,e){var r=this,i={id:t,enc:e};this.$httpService.get("/v1/manage/question/unknown/detail",{params:i}).then((function(t){t.status&&(r.form.question=t.data.question)}))},_getTreeData:function(){var t=this;return this.$httpService.get("/v1/manage/question/classify/list",{params:{type:"QA"}},!0).then((function(e){e.status&&(t.classify_treeData=e.datas)}))},_getPlayUrl:function(t){var e=this;this.$httpService.get("/v1/manage/question/audio/url/".concat(t)).then((function(r){if(0==r.statusCode){var i=r.data,a=e.answerValue[e.form.answerType];a.value=t,a.fileurl=i,"AUDIO"===e.form.answerType&&(a.showAudio=!1,e.$nextTick((function(){a.showAudio=!0})))}}))},handleAttachmentChange:function(t){this.answerValue.TEXT.attachment=t}}},pt=ft,mt=(0,g.A)(pt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap",class:{"qa-component":t.isComponent}},[e("div",{staticClass:"header"},[e("div",{staticClass:"breadcrumb"},[e("span",{staticClass:"back iconfont icon-left",on:{click:t.handleBackClick}},[t._v(t._s(t.$t("common.editor.ReturnToThePreviousLevel")))]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s("add"==t.option?t.$t("common.editor.AddQa"):t.$t("common.editor.Edit")+t.$t("common.editor.QA")))])]),t._v(" "),"add"!==t.option||t.titleTag?t._e():e("div",{staticClass:"operate-bar"},[e("span",[t._v(t._s(t.$t("teach.library.ImportAdditionalQ")))]),t._v(" "),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleChooseQuestion("normal")}}},[t._v("\n        "+t._s(t.$t("teach.library.FrequentlyAskedQuestions"))+"\n      ")]),t._v(" "),e("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleChooseQuestion("unsatisfied")}}},[t._v("\n        "+t._s(t.$t("teach.library.DissatisfactionProblem"))+"\n      ")]),t._v(" "),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleChooseQuestion("unknown")}}},[t._v("\n        "+t._s(t.$t("teach.library.UnknownIssues"))+"\n      ")]),t._v(" "),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleChooseQuestion("manual")}}},[t._v("\n        "+t._s(t.$t("teach.library.ManualReplyTo"))+"\n      ")])],1)]),t._v(" "),e("div",{staticClass:"content"},[e("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px","label-position":"left"}},[e("div",{staticClass:"notice"},[e("i",{staticClass:"el-icon-warning notice-icon"}),t._v("\n        "+t._s(t.$t("common.editor.Tips"))+"\n      ")]),t._v(" "),e("el-form-item",{attrs:{label:t.$t("common.editor.StandardQuestion"),prop:"question",rules:{required:!0,message:t.$t("teach.library.StandardQuestionsCannot"),trigger:"change"}}},[e("el-input",{attrs:{autocomplete:"off",disabled:t.isForbiddenQeustion,clearable:""},model:{value:t.form.question,callback:function(e){t.$set(t.form,"question",e)},expression:"form.question"}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.is_question_unique&&t.form.question,expression:"!is_question_unique && form.question"}],staticClass:"el-form-item__error"},[t._v("\n          "+t._s(t.$t("teach.library.ThisStandardQuestion"))+"\n          "),e("span",{directives:[{name:"show",rawName:"v-show",value:t.standardSameQuestion,expression:"standardSameQuestion"}]},[t._v(t._s(t.$t("teach.library.DuplicateQuestion"))+t._s(t.standardSameQuestion))])])],1
1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("common.editor.SimilarQuestion")}},[t._l(t.similarQuestion,(function(r,i){return e("div",{key:i+"_similar"},[e("el-input",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{autocomplete:"off",clearable:""},on:{input:function(e){return t.debouncedCheckRepeatFn("similar",r)}},model:{value:r.value,callback:function(e){t.$set(r,"value",e)},expression:"similar.value"}}),t._v(" "),e("i",{staticClass:"el-icon-delete-solid",on:{click:function(e){return t.appendSimilarInput("remove",i)}}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!r.checked,expression:"!similar.checked"}],staticClass:"similar__error"},[t._v("\n            "+t._s(t.$t("teach.library.ThisSimilarQuestion"))),e("span",{directives:[{name:"show",rawName:"v-show",value:r.sameQuestion,expression:"similar.sameQuestion"}]},[t._v(t._s(t.$t("teach.library.DuplicateQuestion"))+t._s(r.sameQuestion))])])],1)})),t._v(" "),e("span",{staticClass:"similar_question addSimilarQuestion",on:{click:function(e){return t.appendSimilarInput("append")}}},[t._v(t._s(t.$t("common.editor.AddSimilarQuestion")))])],2)],1),t._v(" "),e("el-form",{ref:"form",staticClass:"answerForm",attrs:{model:t.form,"label-width":"80px","label-position":"left"}},[e("div",{staticClass:"common left-side"},[e("p",[e("span",{staticClass:"require-tag"},[t._v("*")]),t._v("\n          "+t._s(t.$t("common.editor.AnswerContent"))+"\n        ")])]),t._v(" "),e("div",{staticClass:"common right-side"},[t.isISCBoard?e("div",{staticStyle:{"max-width":"760px"}},[e("Editor",{ref:"editorRef",attrs:{border:"","add-tools":["insertdoc"]},on:{attachment:t.handleAttachmentChange,success:t.insertQA},model:{value:t.answerValue.TEXT.value,callback:function(e){t.$set(t.answerValue.TEXT,"value",e)},expression:"answerValue.TEXT.value"}})],1):e("el-tabs",{staticClass:"answerTypeTagWrap",model:{value:t.form.answerType,callback:function(e){t.$set(t.form,"answerType",e)},expression:"form.answerType"}},[e("el-tab-pane",{attrs:{name:"TEXT"}},[e("div",{staticStyle:{"max-width":"760px"}},[e("Editor",{ref:"editorRef",attrs:{border:"","add-tools":["insertdoc"]},on:{attachment:t.handleAttachmentChange,success:t.insertQA},model:{value:t.answerValue.TEXT.value,callback:function(e){t.$set(t.answerValue.TEXT,"value",e)},expression:"answerValue.TEXT.value"}}),t._v(" "),e("el-checkbox",{staticClass:"autoplay",model:{value:t.answerValue.TEXT.enableAutoplay,callback:function(e){t.$set(t.answerValue.TEXT,"enableAutoplay",e)},expression:"answerValue.TEXT.enableAutoplay"}},[t._v("自动播放视频")])],1)]),t._v(" "),t.enabledAnswerTypes.includes("IMAGE")&&t.showAllEntry?e("el-tab-pane",{attrs:{name:"IMAGE"}},[e("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.$t("teach.library.Pictures")))]),t._v(" "),e("div",{staticStyle:{"max-width":"760px"}},[e("el-tabs",{attrs:{type:"border-card"},model:{value:t.answerValue.IMAGE.from,callback:function(e){t.$set(t.answerValue.IMAGE,"from",e)},expression:"answerValue.IMAGE.from"}},[e("el-tab-pane",{attrs:{label:t.$t("teach.library.UploadAPicture"),name:"1"}},[e("div",{staticClass:"material_select_container"},[""===t.answerValue.IMAGE.value?e("el-upload",{staticClass:"upload-demo",attrs:{drag:"","show-file-list":!0,action:t.uploadUrl,limit:1,headers:t.uploadHeaders,"on-success":t.handleUploadSuccess,"on-progress":t.handleUploadProgress,"on-remove":t.handleUploadRemove,"on-error":t.handleUploadError,"before-upload":t.handleBeforeUpload,"with-credentials":!0}},[e("i",{staticClass:"el-icon-upload"}),t._v(" "),e("div",{staticClass:"el-upload__text"},[t._v("\n                        "+t._s(t.$t("teach.library.DragTheFile"))),e("em",[t._v(t._s(t.$t("teach.library.ClickToUpload")))])])]):t._e(),t._v(" "),""!==t.answerValue.IMAGE.value?e("div",{staticClass:"preview"},[e("el-image",{staticStyle:{height:"50px"},attrs:{src:t.answerValue.IMAGE.fileurl,fit:"contain"}}),t._v(" "),e("p",{staticClass:"filename"},[t._v("\n                        "+t._s(t.answerValue.IMAGE.filename)+"\n                      ")]),t._v(" "),e("el-button",{staticStyle:{"margin-top":"15px"},attrs:{size:"small",plain:""},on:{click:function(e){return t.clearPreview("IMAGE")}}},[t._v("\n                        "+t._s(t.$t("teach.library.Modification"))+"\n                      ")])],1):t._e()],1)]),t._v(" "),e("el-tab-pane",{attrs:{label:t.$t("teach.library.MaterialLibrary"),name:"2"}},[e("div",{staticClass:"material_select_container"},[t.answerValue.IMAGE.materiaObj.value?e("div",{staticClass:"preview"},[e("el-image",{staticStyle:{height:"50px"}
1,attrs:{src:t.answerValue.IMAGE.materiaObj.fileurl,fit:"contain"}}),t._v(" "),e("p",{staticClass:"filename"},[t._v("\n                        "+t._s(t.answerValue.IMAGE.materiaObj.txt)+"\n                      ")]),t._v(" "),e("el-button",{staticStyle:{"margin-top":"15px"},attrs:{size:"small",plain:""},on:{click:function(e){return t.selectMaterialDialog("IMAGE")}}},[t._v("\n                        "+t._s(t.$t("teach.library.ReSelect"))+"\n                      ")])],1):t._e(),t._v(" "),t.answerValue.IMAGE.materiaObj.value?t._e():e("el-button",{staticClass:"selectMateriaBtn",attrs:{size:"small",plain:""},on:{click:function(e){return t.selectMaterialDialog("IMAGE")}}},[t._v("\n                      "+t._s(t.$t("teach.library.SelectFromThe"))+"\n                    ")])],1)])],1)],1),t._v(" "),"1"===t.answerValue.IMAGE.from?e("div",{staticClass:"saveToMaterial"},[e("el-checkbox",{attrs:{"true-label":"1","false-label":"0"},model:{value:t.answerValue.IMAGE.isSaveMaterial,callback:function(e){t.$set(t.answerValue.IMAGE,"isSaveMaterial",e)},expression:"answerValue.IMAGE.isSaveMaterial"}},[t._v("\n                "+t._s(t.$t("teach.library.SaveToLibrary"))+"\n              ")])],1):t._e()]):t._e(),t._v(" "),t.enabledAnswerTypes.includes("AUDIO")&&t.showAllEntry?e("el-tab-pane",{attrs:{name:"AUDIO"}},[e("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.$t("teach.library.Speech")))]),t._v(" "),e("div",{staticStyle:{"max-width":"760px"}},[e("el-tabs",{attrs:{type:"border-card"},model:{value:t.answerValue.AUDIO.from,callback:function(e){t.$set(t.answerValue.AUDIO,"from",e)},expression:"answerValue.AUDIO.from"}},[e("el-tab-pane",{attrs:{label:t.$t("teach.library.UploadVoice"),name:"1"}},[e("div",{staticClass:"material_select_container"},[t.answerValue.AUDIO.showAudio?t._e():e("el-upload",{staticClass:"upload-demo",attrs:{drag:"","show-file-list":!0,action:t.uploadUrl,limit:1,headers:t.uploadHeaders,"on-success":t.handleUploadSuccess,"on-progress":t.handleUploadProgress,"on-remove":t.handleUploadRemove,"on-error":t.handleUploadError,"before-upload":t.handleBeforeUpload,"with-credentials":!0}},[e("i",{staticClass:"el-icon-upload"}),t._v(" "),e("div",{staticClass:"el-upload__text"},[t._v("\n                        "+t._s(t.$t("teach.library.DragTheFile"))),e("em",[t._v(t._s(t.$t("teach.library.ClickToUpload")))])])]),t._v(" "),t.answerValue.AUDIO.showAudio?e("div",{staticClass:"preview"},[e("el-button",{class:t.answerValue.AUDIO.isPlay?"i-play":"i-pause",attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.playAudio("uploadAudio")}}},[e("i",{staticClass:"i-pause-img"})]),t._v(" "),e("audio",{ref:"uploadAudio",on:{pause:function(e){return t.pauseAudio(t.answerValue.AUDIO)}}},[e("source",{attrs:{src:t.answerValue.AUDIO.fileurl,type:"audio/mpeg"}})]),t._v(" "),e("p",{staticClass:"filename"},[t._v("\n                        "+t._s(t.answerValue.AUDIO.filename)+"\n                      ")]),t._v(" "),e("el-button",{staticStyle:{"margin-top":"15px"},attrs:{size:"small",plain:""},on:{click:function(e){return t.clearPreview("AUDIO")}}},[t._v("\n                        "+t._s(t.$t("teach.library.Modification"))+"\n                      ")])],1):t._e()],1)]),t._v(" "),e("el-tab-pane",{attrs:{label:t.$t("teach.library.MaterialLibrary"),name:"2"}},[e("div",{staticClass:"material_select_container"},[t.answerValue.AUDIO.materiaObj.value?e("div",{staticClass:"preview"},[e("el-button",{class:t.answerValue.AUDIO.materiaObj.isPlay?"i-play":"i-pause",attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.playAudio("materialAudio",t.answerValue.AUDIO.materiaObj)}}},[e("i",{staticClass:"i-pause-img"})]),t._v(" "),t.answerValue.AUDIO.materiaObj.showAudio?e("audio",{ref:"materialAudio",on:{pause:function(e){return t.pauseAudio(t.answerValue.AUDIO.materiaObj)}}},[e("source",{attrs:{src:t.answerValue.AUDIO.materiaObj.fileurl,type:"audio/mpeg"}})]):t._e(),t._v(" "),e("p",{staticClass:"filename"},[t._v("\n                        "+t._s(t.answerValue.AUDIO.materiaObj.txt)+"\n                      ")]),t._v(" "),e("el-button",{staticStyle:{"margin-top":"15px"},attrs:{size:"small",plain:""},on:{click:function(e){return t.selectMaterialDialog("AUDIO")}}},[t._v("\n                        "+t._s(t.$t("teach.library.ReSelect"))+"\n                      ")])],1):t._e(),t._v(" "),t.answerValue.AUDIO.materiaObj.value?t._e():e("el-button",{staticClass:"selectMateriaBtn",attrs:{size:"small",plain:""},on:{click:function(e){return t.selectMaterialDialog("AUDIO")}}},[t._v("\n                      "+t._s(t.$t("teach.library.SelectFromThe"))+"\n                    ")])],1)])],1)],1),t._v(" "),"1"===t.answerValue.AUDIO.from?e("div",{staticClass:"saveToMaterial"},[e("el-checkbox",{attrs:{"true-label":"1","false-label":"0"},model:{value:t.answerValue.AUDIO.isSaveMaterial,callback:function(e){t.$set(t.answerValue.AUDIO,"isSaveMaterial",e)},expression:"answerValue.AUDIO.isSaveMaterial"}},[t._v("\n                "+t._s(t.$t("teach.library.SaveToLibrary"))+"\n              ")])],1):t._e()]):t._e(),t._v(" "),t.showAllEntry?e("el-tab-pane",{attrs:{name:"MENU"}},[e("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.$t("teach.library.Menu")))]),t._v(" "),e("div",{staticStyle:{"max-width":"760px"}},[e("el-tabs",{attrs:{type:"border-card"},model:{value:t.answerValue.MENU.from,callback:function(e){t.$set(t.answerValue.MENU,"from",e)},expression:"answerValue.MENU.from"}},[e("el-tab-pane",{attrs:{label:t.$t("teach.library.MaterialLibrary"),name:"2"}},[e("div",{staticClass:"material_select_container"},[t.answerValue.MENU.materiaObj.value?e("div",{staticClass:"preview"},[e("p",{staticClass:"filename"},[t._v("\n                        "+t._s(t.answerValue.MENU.materiaObj.txt)+"\
1n                      ")]),t._v(" "),e("el-button",{staticStyle:{"margin-top":"15px"},attrs:{size:"small",plain:""},on:{click:function(e){return t.selectMaterialDialog("MENU")}}},[t._v("\n                        "+t._s(t.$t("teach.library.ReSelect"))+"\n                      ")])],1):t._e(),t._v(" "),t.answerValue.MENU.materiaObj.value?t._e():e("el-button",{staticClass:"selectMateriaBtn",attrs:{size:"small",plain:""},on:{click:function(e){return t.selectMaterialDialog("MENU")}}},[t._v("\n                      "+t._s(t.$t("teach.library.SelectFromThe"))+"\n                    ")])],1)])],1)],1)]):t._e(),t._v(" "),t.enabledAnswerTypes.includes("RICH_TEXT")&&t.showAllEntry?e("el-tab-pane",{attrs:{name:"RICH_TEXT"}},[e("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.$t("teach.library.GraphicText")))]),t._v(" "),e("div",{staticStyle:{"max-width":"760px"}},[e("el-tabs",{attrs:{type:"border-card"},model:{value:t.answerValue.RICH_TEXT.from,callback:function(e){t.$set(t.answerValue.RICH_TEXT,"from",e)},expression:"answerValue.RICH_TEXT.from"}},[e("el-tab-pane",{attrs:{label:t.$t("teach.library.MyGraphicsAnd"),name:"1"}},[e("imagetextComponent",{attrs:{id:t.answerValue.RICH_TEXT.value},on:{getRichText:t.getRichTextObj}})],1),t._v(" "),e("el-tab-pane",{attrs:{label:t.$t("teach.library.MaterialLibrary"),name:"2"}},[e("div",{staticClass:"material_select_container"},[t.answerValue.RICH_TEXT.materiaObj.value?e("div",{staticClass:"preview"},[e("el-image",{staticStyle:{height:"50px"},attrs:{src:t.answerValue.RICH_TEXT.materiaObj.fileurl,fit:"contain"}}),t._v(" "),e("p",{staticClass:"filename"},[t._v("\n                        "+t._s(t.answerValue.RICH_TEXT.materiaObj.txt)+"\n                      ")]),t._v(" "),e("el-button",{staticStyle:{"margin-top":"15px"},attrs:{size:"small",plain:""},on:{click:function(e){return t.selectMaterialDialog("RICH_TEXT")}}},[t._v("\n                        "+t._s(t.$t("teach.library.ReSelect"))+"\n                      ")])],1):t._e(),t._v(" "),t.answerValue.RICH_TEXT.materiaObj.value?t._e():e("el-button",{staticClass:"selectMateriaBtn",attrs:{size:"small",plain:""},on:{click:function(e){return t.selectMaterialDialog("RICH_TEXT")}}},[t._v("\n                      "+t._s(t.$t("teach.library.SelectFromThe"))+"\n                    ")])],1)])],1),t._v(" "),"1"===t.answerValue.RICH_TEXT.from?e("div",{staticClass:"saveToMaterial"},[e("el-checkbox",{attrs:{"true-label":"1","false-label":"0"},model:{value:t.answerValue.RICH_TEXT.isSaveMaterial,callback:function(e){t.$set(t.answerValue.RICH_TEXT,"isSaveMaterial",e)},expression:"answerValue.RICH_TEXT.isSaveMaterial"}},[t._v("\n                  "+t._s(t.$t("teach.library.SaveToLibrary"))+"\n                ")])],1):t._e(),t._v(" "),e("div",{staticClass:"showRichtextPreview"},[e("span",{on:{click:t.previewRichtext}},[t._v(t._s(t.$t("teach.library.PreviewGraphicEffects")))])])],1)]):t._e()],1)],1)]),t._v(" "),e("el-form",{ref:"appForm",staticClass:"answerForm",attrs:{model:t.form,"label-width":"140px","label-position":"left"}},[e("el-form-item",{attrs:{label:t.$t("common.editor.WhetherToEnableTheApplication")}},[e("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:t.switchChange},model:{value:t.form.isOpen,callback:function(e){t.$set(t.form,"isOpen",e)},expression:"form.isOpen"}})],1),t._v(" "),1==t.form.isOpen?e("el-form-item",{attrs:{label:""}}
1,[e("el-radio-group",{model:{value:t.form.appsType,callback:function(e){t.$set(t.form,"appsType",e)},expression:"form.appsType"}},[t.isPCD?t._e():e("el-radio",{attrs:{label:"MICRO_APP"}},[t._v("\n            "+t._s(t.$t("common.editor.MicroApplication"))+"\n          ")]),t._v(" "),e("el-radio",{attrs:{label:"SELF_BUILD_APP"}},[t._v("\n            "+t._s(t.$t("common.editor.SelfBuiltApplication"))+"\n          ")]),t._v(" "),e("el-radio",{attrs:{label:"IFRAME"}},[t._v(" iframe ")])],1),t._v(" "),"MICRO_APP"==t.form.appsType?e("div",[e("div",{staticClass:"flexbox show-app"},[e("div",{staticClass:"yimage-wrap",on:{click:t.fnToAddMicroApps}},[e("div",{staticClass:"iconfont icon-add icon-style"})]),t._v(" "),t._l(t.tempAppsList,(function(r,i){return e("div",{key:i,staticClass:"yimage-wrap dfxbox"},[e("i",{staticClass:"img-i",staticStyle:{width:"50px",height:"50px"},style:{background:"url("+r.icon+") no-repeat center"}}),t._v(" "),e("p",{staticClass:"yellipse",attrs:{title:r.name}},[t._v("\n                "+t._s(r.name)+"\n              ")]),t._v(" "),e("i",{staticClass:"item-del",on:{click:function(e){return t.del(r)}}})])}))],2)]):t._e(),t._v(" "),"SELF_BUILD_APP"==t.form.appsType?e("div",[e("div",{staticClass:"flexbox show-app"},[e("div",{staticClass:"yimage-wrap",on:{click:t.addSelfAPP}},[e("div",{staticClass:"iconfont icon-add icon-style"})]),t._v(" "),t._l(t.selfAppsList,(function(r,i){return e("div",{key:i,staticClass:"yimage-wrap dfxbox"},[e("i",{staticClass:"img-i",staticStyle:{width:"50px",height:"50px"},style:{background:"url("+t.$utils.formatImagePath(r.icon)+") no-repeat center"}}),t._v(" "),e("p",{staticClass:"yellipse",attrs:{title:r.name}},[t._v("\n                "+t._s(r.name)+"\n              ")]),t._v(" "),e("i",{staticClass:"item-del",on:{click:function(e){return t.delSelfAPP(r,i)}}}),t._v(" "),e("i",{staticClass:"item-edit",on:{click:function(e){return t.editSelfAPP(r,i)}}})])}))],2)]):t._e(),t._v(" "),"IFRAME"==t.form.appsType?e("div",[e("el-form",{ref:"iframeFrom",attrs:{model:t.iframeForm,rules:t.iframeRules,"label-width":"100px","label-position":"left"}},[e("el-form-item",{attrs:{label:t.$t("common.editor.PcLink"),prop:"pcUrl"}},[e("el-input",{attrs:{type:"text",size:"medium"},model:{value:t.iframeForm.pcUrl,callback:function(e){t.$set(t.iframeForm,"pcUrl",e)},expression:"iframeForm.pcUrl"}})],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("common.editor.MobileLink"),prop:"mobileUrl"}},[e("el-input",{attrs:{type:"text",size:"medium"},model:{value:t.iframeForm.mobileUrl,callback:function(e){t.$set(t.iframeForm,"mobileUrl",e)},expression:"iframeForm.mobileUrl"}})],1)],1)],1):t._e()],1):t._e(),t._v(" "),e("el-form-item",{attrs:{label:t.$t("teach.library.WhetherToParticipate")}},[e("el-switch",{attrs:{"active-value":!1,"inactive-value":!0},model:{value:t.form.hotExclude,callback:function(e){t.$set(t.form,"hotExclude",e)},expression:"form.hotExclude"}})],1),t._v(" "),t.params.showNotify?e("el-form-item",{attrs:{label:t.$t("common.editor.WhetherToEnableSyncUser"),"label-width":"210px"}},[e("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:t.form.notifyVisitor,callback:function(e){t.$set(t.form,"notifyVisitor",e)},expression:"form.notifyVisitor"}})],1):t._e()],1),t._v(" "),e("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px","label-position":"left"}},[e("el-form-item",{attrs:{label:t.$t("common.editor.QATag")}},[t._l(t.tag.questionTags,(function(r,i){return e("el-tag",{key:r,staticStyle:{"margin-right":"10px"},attrs:{"disable-transitions":!1,closable:""},on:{close:function(e){return t.handleTagClose(r,i)}}},[t._v("\n          "+t._s(r)+"\n        ")])})),t._v(" "),t.tag.inputVisible?e("el-input",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"input-new-tag",attrs:{size:"mini"},on:{blur:t.handleTagInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleTagInputConfirm.apply(null,arguments)}},model:{value:t.tag.inputValue,callback:function(e){t.$set(t.tag,"inputValue",e)},expression:"tag.inputValue"}}):e("el-button",{directives:[{name:"show",rawName:"v-show",value:t.tag.questionTags.length<3,expression:"tag.questionTags.length < 3"}],staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(e){t.tag.inputVisible=!0}}},[t._v("\n          + "+t._s(t.$t("common.editor.AddQATag"))+"\n        ")])],2),t._v(" "),!t.isISCBoard&&t.isNanchang?e("el-form-item",{attrs:{label:t.$t("teach.library.DocumentLabel")}},[e("DocRelation",{attrs:{id:+t.qaId,type:t.from_page,list:t.knowledgeFiles},on:{"update:list":function(e){t.knowledgeFiles=e}}})],1):t._e(),t._v(" "),t.useMatchModel?e("el-form-item",{attrs:{label:t.$t("common.editor.MatchingMode")}},[e("el-radio-group",{model:{value:t.form.matchModel,callback:function(e){t.$set(t.form,"matchModel",e)}
1,expression:"form.matchModel"}},[e("el-radio",{attrs:{label:1}},[t._v("\n            "+t._s(t.$t("common.editor.FuzzyMatch"))+"\n          ")]),t._v(" "),e("el-radio",{attrs:{label:2}},[t._v("\n            "+t._s(t.$t("common.editor.ExactMatch"))+"\n          ")])],1)],1):t._e(),t._v(" "),e("el-form-item",{attrs:{label:t.$t("common.editor.Category")}},[e("el-select",{attrs:{placeholder:t.$t("teach.library.PleaseSelectQ")},model:{value:t.form.questionClassify,callback:function(e){t.$set(t.form,"questionClassify",e)},expression:"form.questionClassify"}},[e("el-tree",{ref:"classifyTree",attrs:{data:t.classify_treeData,"default-expand-all":"","node-key":"id","expand-on-click-node":!1,"highlight-current":!0},scopedSlots:t._u([{key:"default",fn:function(t){var r=t.data;return e("el-option",{key:r.id,attrs:{label:r.label,value:r.id}})}}])})],1)],1)],1),t._v(" "),e("el-button",{staticClass:"confirm-btn",attrs:{type:"primary",disabled:t.isSubmiting},on:{click:t.sendForm}},[t._v("\n      "+t._s(t.$t("common.editor.Confirm"))+"\n    ")])],1),t._v(" "),e("el-dialog",{attrs:{modal:t.needModal,title:t.selectMaterialDialogTitle,"destroy-on-close":"",visible:t.dialog_visible},on:{"update:visible":function(e){t.dialog_visible=e},closed:t.closeSelectMaterialDialog}},[t.dialog_visible?e("select-material-table",{attrs:{"cn-type":t.selectMaterialDialogTitle.replace(t.$t("teach.library.MaterialLibrary"),""),type:t.form.answerType},on:{selectMaterial:t.selectMaterial}}):t._e(),t._v(" "),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialog_visible=!1}}},[t._v("\n        "+t._s(t.$t("common.editor.Cancel"))+"\n      ")]),t._v(" "),e("el-button",{attrs:{type:"primary",disabled:t.dialog_sureBtn_disabled},on:{click:t.sure_select_material}},[t._v("\n        "+t._s(t.$t("common.editor.Confirm"))+"\n      ")])],1)],1),t._v(" "),e("el-dialog",{attrs:{modal:t.needModal,title:t.$t("teach.library.PreviewGraphicEffects"),"destroy-on-close":"",visible:t.is_preview_richtext},on:{"update:visible":function(e){t.is_preview_richtext=e}}},[e("h2",{staticClass:"ellipse",staticStyle:{"max-width":"400px",height:"23px",margin:"0 auto","text-align":"center"}},[t._v("\n      "+t._s(t.rich_text_obj_temp.materialTitle)+"\n    ")]),t._v(" "),e("div",{staticClass:"richContent",staticStyle:{"max-height":"400px","overflow-y":"auto","margin-bottom":"20px"},domProps:{innerHTML:t._s(t.rich_text_obj_temp.materialContent)}}),t._v(" "),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.is_preview_richtext=!1}}},[t._v(" "+t._s(t.$t("teach.library.Cancel"))+" ")])],1)]),t._v(" "),e("el-dialog",{attrs:{title:t.$t("common.editor.SelfBuiltApplication"),visible:t.isAddSelfDialog,width:"custom_pool"==t.secondType?"70%":"650px"},on:{"update:visible":function(e){t.isAddSelfDialog=e},close:function(e){return t.selfClose()}}},[t.isAddSelf?e("div",{staticStyle:{"margin-bottom":"20px"}},[e("el-radio",{attrs:{label:"custom"},model:{value:t.secondType,callback:function(e){t.secondType=e},expression:"secondType"}},[t._v(" "+t._s(t.$t("teach.library.Customize"))+" ")]),t._v(" "),e("el-radio",{attrs:{label:"custom_pool"},model:{value:t.secondType,callback:function(e){t.secondType=e},expression:"secondType"}},[t._v(" "+t._s(t.$t("teach.library.ApplicationPool"))+" ")])],1):t._e(),t._v(" "),e("el-form",{directives:[{name:"show",rawName:"v-show",value:"custom"===t.secondType,expression:"secondType === 'custom'"}],ref:"selfFrom",attrs:{model:t.selfFrom,rules:t.selfOptions,"label-width":"90px","label-position":"left"}},[e("el-form-item",{attrs:{label:t.$t("common.editor.AppName"),prop:"name"}},[e("el-input",{model:{value:t.selfFrom.name,callback:function(e){t.$set(t.selfFrom,"name",e)},expression:"selfFrom.name"}})],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("common.editor.ApplicationLogo")}},[e("div",{staticClass:"show-app-logo"},[e("div",{staticClass:"show-app-img"},[e("img",{attrs:{src:t.$utils.formatImagePath(t.selfFrom.icon),alt:""}})]),t._v(" "),e("div",{staticClass:"avatar-uploader"},[e("div",{staticClass:"el-upload__text"},[t._v("\n              "+t._s(t.$t("common.editor.SizeUploadSizeIs"))+"350*350px "),e("br"),t._v(t._s(t.$t("common.editor.Format"))+":PNG, JPG,\n              GIF "),e("br"),t._v(t._s(t.$t("common.editor.SizeLessThan500kb"))+"\n            ")]),t._v(" "),e("el-upload",{ref:"appUpload",staticClass:"app-upload",attrs:{action:t.uploadUrl,headers:t.uploadHeaders,"file-list":t.imgList,accept:"image/png, image/jpeg, image/gif","show-file-list":!0,"on-success":t.handleAppUpload,"before-upload":t.beforeAvatarUpload,"on-error":t.handleAppUploadError},scopedSlots:t._u([{key:"trigger",fn:function(){return[e("el-button",{attrs:{slot:"trigger",size:"small",type:"primary",plain:""},slot:"trigger"},[t._v("\n                  "+t._s(t.$t("common.editor.Upload"))+"\n                ")])]},proxy:!0}])},[t._v(" "),e("AppIconLibrary",{attrs:{icon:t.selfFrom.icon},on:{success:t.handleSuccess}})],1)],1)])]),t._v(" "),e("el-form-item",{attrs:{label:t.$t("common.editor.PcLink"),prop:"pcUrl"}},[e("el-input",{attrs:{type:"text"},model:{value:t.selfFrom.pcUrl,callback:function(e){t.$set(t.selfFrom,"pcUrl",e)},expression:"selfFrom.pcUrl"}})],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("common.editor.MobileLink"),prop:"mobileUrl"}},[e("el-input",{attrs:{type:"text"},model:{value:t.selfFrom.mobileUrl,callback:function(e){t.$set(t.selfFrom,"mobileUrl",e)},expression:"selfFrom.mobileUrl"}})],1),t._v(" "),e("p",{staticClass:"editor-tips"}
1,[t._v(t._s(t.$t("common.editor.LinkTip")))])],1),t._v(" "),e("AppsPool",{directives:[{name:"show",rawName:"v-show",value:"custom_pool"===t.secondType,expression:"secondType === 'custom_pool'"}],attrs:{"is-component":!0},on:{output:t.saveBatchApps}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:"custom"===t.secondType,expression:"secondType === 'custom'"}],staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:t.selfFromSubmit}},[t._v("\n        "+t._s(t.$t("common.editor.Submit"))+"\n      ")]),t._v(" "),e("el-button",{on:{click:t.selfClose}},[t._v("\n        "+t._s(t.$t("common.editor.Cancel"))+"\n      ")])],1)],1)],1)}),[],!1,null,"784b9a4c",null),dt=mt.exports},97647:function(t,e,r){"use strict";t.exports=r.p+"static/img/qaicon.fc982ec45ad570e9bd22.png"}}]);
2//# sourceMappingURL=history-detail.982b2970.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.