ecinc-cloud-yoaksgl 9.6.230 → 9.6.231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ecyoaksgl.common.js +18 -12
- package/lib/ecyoaksgl.umd.js +15 -9
- package/lib/ecyoaksgl.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecyoaksgl.umd.min.js
CHANGED
|
@@ -280,4 +280,4 @@ a.version="2.30.1",o(Kr),a.fn=co,a.min=$r,a.max=en,a.now=tn,a.utc=m,a.unix=uo,a.
|
|
|
280
280
|
* (c) 2021 Evan You
|
|
281
281
|
* @license MIT
|
|
282
282
|
*/
|
|
283
|
-
function P(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:n});else{var r=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,r.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var A="undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:{},N=A.__VUE_DEVTOOLS_GLOBAL_HOOK__;function H(e){N&&(e._devtoolHook=N,N.emit("vuex:init",e),N.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){N.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){N.emit("vuex:action",e,t)}),{prepend:!0}))}function I(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function F(e){return null!==e&&"object"===typeof e}function z(e){return e&&"function"===typeof e.then}function B(e,t){return function(){return e(t)}}var G=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"===typeof r?r():r)||{}},R={namespaced:{configurable:!0}};R.namespaced.get=function(){return!!this._rawModule.namespaced},G.prototype.addChild=function(e,t){this._children[e]=t},G.prototype.removeChild=function(e){delete this._children[e]},G.prototype.getChild=function(e){return this._children[e]},G.prototype.hasChild=function(e){return e in this._children},G.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},G.prototype.forEachChild=function(e){I(this._children,e)},G.prototype.forEachGetter=function(e){this._rawModule.getters&&I(this._rawModule.getters,e)},G.prototype.forEachAction=function(e){this._rawModule.actions&&I(this._rawModule.actions,e)},G.prototype.forEachMutation=function(e){this._rawModule.mutations&&I(this._rawModule.mutations,e)},Object.defineProperties(G.prototype,R);var W=function(e){this.register([],e,!1)};function V(e,t,r){if(t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n))return void 0;V(e.concat(n),t.getChild(n),r.modules[n])}}W.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},W.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return t=t.getChild(r),e+(t.namespaced?r+"/":"")}),"")},W.prototype.update=function(e){V([],this.root,e)},W.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0);var a=new G(t,r);if(0===e.length)this.root=a;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],a)}t.modules&&I(t.modules,(function(t,a){n.register(e.concat(a),t,r)}))},W.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n&&n.runtime&&t.removeChild(r)},W.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var U;var q=function(e){var t=this;void 0===e&&(e={}),!U&&"undefined"!==typeof window&&window.Vue&&le(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new W(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new U,this._makeLocalGettersCache=Object.create(null);var a=this,o=this,i=o.dispatch,s=o.commit;this.dispatch=function(e,t){return i.call(a,e,t)},this.commit=function(e,t,r){return s.call(a,e,t,r)},this.strict=n;var l=this._modules.root.state;Z(this,l,[],this._modules.root),Q(this,l),r.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:U.config.devtools;c&&H(this)},X={state:{configurable:!0}};function K(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function J(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;Z(e,r,[],e._modules.root,!0),Q(e,r,t)}function Q(e,t,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,o={};I(a,(function(t,r){o[r]=B(t,e),Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},enumerable:!0})}));var i=U.config.silent;U.config.silent=!0,e._vm=new U({data:{$$state:t},computed:o}),U.config.silent=i,e.strict&&oe(e),n&&(r&&e._withCommit((function(){n._data.$$state=null})),U.nextTick((function(){return n.$destroy()})))}function Z(e,t,r,n,a){var o=!r.length,i=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=n),!o&&!a){var s=ie(t,r.slice(0,-1)),l=r[r.length-1];e._withCommit((function(){U.set(s,l,n.state)}))}var c=n.context=ee(e,i,r);n.forEachMutation((function(t,r){var n=i+r;re(e,n,t,c)})),n.forEachAction((function(t,r){var n=t.root?r:i+r,a=t.handler||t;ne(e,n,a,c)})),n.forEachGetter((function(t,r){var n=i+r;ae(e,n,t,c)})),n.forEachChild((function(n,o){Z(e,t,r.concat(o),n,a)}))}function ee(e,t,r){var n=""===t,a={dispatch:n?e.dispatch:function(r,n,a){var o=se(r,n,a),i=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,i)},commit:n?e.commit:function(r,n,a){var o=se(r,n,a),i=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,i,s)}};return Object.defineProperties(a,{getters:{get:n?function(){return e.getters}:function(){return te(e,t)}},state:{get:function(){return ie(e.state,r)}}}),a}function te(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(a){if(a.slice(0,n)===t){var o=a.slice(n);Object.defineProperty(r,o,{get:function(){return e.getters[a]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function re(e,t,r,n){var a=e._mutations[t]||(e._mutations[t]=[]);a.push((function(t){r.call(e,n.state,t)}))}function ne(e,t,r,n){var a=e._actions[t]||(e._actions[t]=[]);a.push((function(t){var a=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return z(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):a}))}function ae(e,t,r,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)})}function oe(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function ie(e,t){return t.reduce((function(e,t){return e[t]}),e)}function se(e,t,r){return F(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}function le(e){U&&e===U||(U=e,P(U))}X.state.get=function(){return this._vm._data.$$state},X.state.set=function(e){0},q.prototype.commit=function(e,t,r){var n=this,a=se(e,t,r),o=a.type,i=a.payload,s=(a.options,{type:o,payload:i}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(s,n.state)})))},q.prototype.dispatch=function(e,t){var r=this,n=se(e,t),a=n.type,o=n.payload,i={type:a,payload:o},s=this._actions[a];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,r.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,r.state)}))}catch(c){0}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,r.state,e)}))}catch(c){0}t(e)}))}))}},q.prototype.subscribe=function(e,t){return K(e,this._subscribers,t)},q.prototype.subscribeAction=function(e,t){var r="function"===typeof e?{before:e}:e;return K(r,this._actionSubscribers,t)},q.prototype.watch=function(e,t,r){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,r)},q.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},q.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),Z(this,this.state,e,this._modules.get(e),r.preserveState),Q(this,this.state)},q.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var r=ie(t.state,e.slice(0,-1));U.delete(r,e[e.length-1])})),J(this)},q.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},q.prototype.hotUpdate=function(e){this._modules.update(e),J(this,!0)},q.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(q.prototype,X);pe((function(e,t){var r={};return ue(t).forEach((function(t){var n=t.key,a=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=he(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"===typeof a?a.call(this,t,r):t[a]},r[n].vuex=!0})),r})),pe((function(e,t){var r={};return ue(t).forEach((function(t){var n=t.key,a=t.val;r[n]=function(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var n=this.$store.commit;if(e){var o=he(this.$store,"mapMutations",e);if(!o)return;n=o.context.commit}return"function"===typeof a?a.apply(this,[n].concat(t)):n.apply(this.$store,[a].concat(t))}})),r}));var ce=pe((function(e,t){var r={};return ue(t).forEach((function(t){var n=t.key,a=t.val;a=e+a,r[n]=function(){if(!e||he(this.$store,"mapGetters",e))return this.$store.getters[a]},r[n].vuex=!0})),r}));pe((function(e,t){var r={};return ue(t).forEach((function(t){var n=t.key,a=t.val;r[n]=function(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var o=he(this.$store,"mapActions",e);if(!o)return;n=o.context.dispatch}return"function"===typeof a?a.apply(this,[n].concat(t)):n.apply(this.$store,[a].concat(t))}})),r}));function ue(e){return de(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function de(e){return Array.isArray(e)||F(e)}function pe(e){return function(t,r){return"string"!==typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function he(e,t,r){var n=e._modulesNamespaceMap[r];return n}function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function me(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */me=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==fe(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(fe(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ye(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function ve(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ye(o,n,a,i,s,"next",e)}function s(e){ye(o,n,a,i,s,"throw",e)}i(void 0)}))}}function ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(r),!0).forEach((function(t){be(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function be(e,t,r){return(t=we(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function we(e){var t=xe(e,"string");return"symbol"==fe(t)?t:t+""}function xe(e,t){if("object"!=fe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Le={components:{},props:{bType:{type:String,default:function(){return"1"}},title:{type:String,default:function(){return"课程分类"}}},data:function(){return{dialogVisible:!1,checkStrictly:!1,partyOrganId:[],cascaderData:[],sizeArea:"",idArea:"",getCheckedLabel:"",spanChecked:""}},computed:_e({},ce(["loginUser"])),watch:function(){},created:function(){var e=this;return ve(me().mark((function t(){return me().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getlevelFuc(e.bType);case 2:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.dialogVisible=!1,this.checkStrictly=!1,this.partyOrganId=[],this.cascaderData=[],this.sizeArea="",this.idArea="",this.getCheckedLabel="",this.spanChecked=""},mounted:function(){},methods:{click:function(){this.dialogVisible=!0},getlevelFuc:function(e){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{busiType:e,orderBy:"orderNo asc"},data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode}],url:"ksgl/configCategory/getLevelTable"}).then((function(e){"success"===e.code?(t.ones=e.body.categories,t.cascaderData=t.ones.map((function(e,t){return void 0===e.mapList?void 0===e.children||0===e.children.length?{value:e.id||e.value,label:e.tname||e.name||e.label}:{value:e.id||e.value,label:e.tname||e.name||e.label,children:e.children}:0===e.mapList.length?{value:e.id||e.value,label:e.tname||e.name||e.label}:{value:e.id||e.value,label:e.tname||e.name||e.label,children:e.mapList}}))):t.$alert(e.message,{type:"error"})}))},handleChange:function(e){var t=this;this.partyOrganId=e,this.getCheckedLabel=this.$refs["myCascader"].getCheckedNodes()[0].pathLabels,this.spanChecked="",this.getCheckedLabel.forEach((function(e){t.spanChecked+=e+" / "}))},handleItemChange:function(e){this.getNodes(e)},getNodes:function(e){e?1===e.length?(this.idArea=e[0],this.sizeArea=e.length):2===e.length&&(this.idArea=e[1],this.sizeArea=e.length):(this.idArea=null,this.sizeArea=0),0===this.sizeArea?this.cascaderData=this.ones.map((function(e,t){return void 0===e.mapList?void 0===e.children||0===e.children.length?{value:e.id||e.value,label:e.tname||e.name||e.label}:{value:e.id||e.value,label:e.tname||e.name||e.label,children:e.children}:0===e.mapList.length?{value:e.id||e.value,label:e.tname||e.name||e.label}:{value:e.id||e.value,label:e.tname||e.name||e.label,children:e.mapList}})):1===this.sizeArea?this.cascaderData.map((function(t,r){t.value===e[0]&&t.children.length>0&&(t.children=t.children.map((function(e,t){return void 0===e.mapList?void 0===e.children||0===e.children.length?{value:e.id||e.value,label:e.tname||e.name||e.label}:{value:e.id||e.value,label:e.tname||e.name||e.label,children:e.children}:0===e.mapList.length?{value:e.id||e.value,label:e.tname||e.name||e.label}:{value:e.id||e.value,label:e.tname||e.name||e.label,children:e.mapList}})))})):2===this.sizeArea&&this.cascaderData.map((function(t,r){t.value===e[0]&&t.children.map((function(t,r){t.value===e[1]&&t.children.length>0&&(t.children=t.children.map((function(e,t){return{value:e.id||e.value,label:e.tname||e.name||e.label}})))}))}))},categoryEdit:function(e){this.dialogVisible=!1;for(var t=[],r={id:"",name:""},n=/\//g,a=0;a<this.partyOrganId.length;a++){var o={id:"",name:""};o.id=this.partyOrganId[a],o.name=this.getCheckedLabel[a],r.name+=this.getCheckedLabel[a]+"/",t.push(o)}return r.id=t[t.length-1].id,n.test(r.name)&&(r.name=r.name.substring(0,r.name.length-1)),this.$bus.emit("sureclick",r),t}}},Me=Le,ke=(r(4846),r(8358),c(Me,E,O,!1,null,"540cfb3a",null)),Te=ke.exports,De={components:{Cascader:Te},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:function(){return 1}},btype:{type:String,default:function(){return""}}},data:function(){return{value:"",isShow:!1,placeholder:""}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){var e=this;console.log(this.canEdit),console.log(this.vo,1111111111),console.log(this.btype),1===this.btype?this.placeholder="请选择题库分类":2===this.btype?this.placeholder="请选择试卷分类":this.placeholder="请选择课件分类",this.$bus.$on("sureclick",(function(t){e.value=t.name,e.vo.categoryId=t.id,e.vo.typeId=t.id,e.vo.categoryName=t.name,console.log(e.vo,22222222)})),"{}"!==JSON.stringify(this.vo.passenger)&&this.vo.passenger.category&&(this.value=this.vo.passenger.category.fullName.replace(/\-/g,"/")),0===this.canEdit?this.isShow=!0:this.isShow=!1},methods:{onclick:function(){1===this.canEdit&&this.$refs.cascader.click()}}},Ye=De,Se=c(Ye,C,j,!1,null,"1f2060aa",null),Ce=Se.exports,je=function(){var e=this,t=e._self._c;return t("div")},Ee=[],Oe=r(5373),Pe=r.n(Oe),Ae={components:{},props:{},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){this.$bus.on("exportData",this.exportData)},methods:{exportData:function(e,t,r,n){if(delete n.total,"studyScore"===e){n.pageSize=65e3,n.pageNum=1,-1===n.urlsearch.indexOf("personId")&&(n.urlsearch+=";personId:"+r);var a="/apigw/ksgl/configCredit/exportdata?"+Pe().stringify(n)+"&fileName=统计分析-学分统计-"+t+"&httpPort="+location.port;window.open(a)}else if("study"===e){n.pageSize=65e3,n.pageNum=1,-1===n.urlsearch.indexOf("personId")&&(n.urlsearch+=";personId:"+r);var o="/apigw/ksgl/vwCoursePersonStatistics/exportdata?"+Pe().stringify(n)+"&fileName=统计分析-学习统计-"+t+"&httpPort="+location.port;window.open(o)}else if("exam"===e){n.pageSize=65e3,n.pageNum=1,-1===n.urlsearch.indexOf("examId")&&(n.urlsearch+=";examId:".concat(r,";"));var i="/apigw/ksgl/vwPersonExemInfo/exportdata?"+Pe().stringify(n)+"&fileName=统计分析-考试统计-"+t+"&httpPort="+location.port;window.open(i)}}}},Ne=Ae,He=c(Ne,je,Ee,!1,null,"5b29b1c0",null),Ie=He.exports,Fe=function(){var e=this;e._self._c;return e._m(0)},ze=[function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"header-box"},[t("div",{staticClass:"header-left Fleft"},[t("img",{staticClass:"left-box-img MarginRight30 Fleft",attrs:{src:"/apigw/base/user/download?id=b3ee187d4ae549d79f02a1b13d741fb1&dataField=photoData&nameField=photoName",alt:""}}),t("div",{staticClass:"Fleft"},[t("p",[e._v("璃妹妹")]),t("p",{staticStyle:{color:"#999"}},[e._v("行政组")])])]),t("div",{staticClass:"header-right Fright"},[t("div",{staticClass:"MarginRight30 Fleft"},[t("p",{staticClass:"title"},[e._v("我的学时")]),t("p",{staticClass:"pointSize"},[e._v("446")])]),t("div",{staticClass:"MarginRight30 Fleft"},[t("p",{staticClass:"title"},[e._v("我的学分")]),t("p",{staticClass:"pointSize"},[e._v("446")])]),t("div",{staticClass:"Fleft"},[t("p",{staticClass:"title"},[e._v("我的收藏")]),t("p",{staticClass:"pointSize"},[e._v("446")])])])])])}],Be={components:{},props:{},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{}},Ge=Be,Re=(r(8063),c(Ge,Fe,ze,!1,null,"6524e0cf",null)),We=Re.exports,Ve=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{padding:"30px 0"}},[null!==e.vo?t("section",{staticClass:"problemDetailTop"},["1"!==e.typeContent?t("div",[t("div",{staticClass:"titleTop"},["2"===e.typeContent?t("h4",{staticStyle:{"padding-top":"0","padding-bottom":"20px",width:"100%","overflow-wrap":"break-word"}},[e._v(e._s(e.vo.passenger.exam.name))]):e._e(),"3"===e.typeContent?t("h4",{staticStyle:{"padding-top":"0","padding-bottom":"10px",width:"100%","overflow-wrap":"break-word"}},[e._v(e._s(e.chapterName))]):e._e(),"2"===e.typeContent?t("div",{staticClass:"btnBox",on:{click:e.Collection}},[t("svg-icon",{attrs:{"icon-class":e.isColl?"fiveStar1":"fiveStar"}}),t("span",[e._v(e._s(e.collectNum)+" 次")])],1):e._e(),"2"===e.typeContent?t("ul",{staticClass:"titleTop-time",staticStyle:{"font-size":"var(--portalFontSize12)",color:"#999"}},[t("li",[t("span",[e._v("答题时限:")]),t("span",[e._v(e._s(e.vo.passenger.exam.examLimit))])]),t("li",[t("span",[e._v("通过分数:")]),t("span",[e._v(e._s(e.vo.passenger.exam.passGrade))])]),-1!==e.FSvisible?t("li",[t("span",[e._v("我的分数:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.examRecord.grade)+"分")])]):e._e(),t("li",[t("span",[e._v("考试结果:")]),e._v(" "),t("span",{class:1===e.vo.passenger.examRecord.ispass?"greenSpan":"redSpan"},[e._v(e._s(1===e.vo.passenger.examRecord.ispass?"通过":"未通过"))])])]):e._e()])]):e._e(),"1"===e.typeContent?t("div",[2===e.vo.type?t("div",{staticClass:"titleTop"},[t("h4",{staticStyle:{"padding-top":"0","padding-bottom":"20px",width:"100%","overflow-wrap":"break-word"}},[e._v(e._s(e.vo.name))]),t("ul",{staticClass:"titleTop-time",staticStyle:{"font-size":"var(--portalFontSize12)",color:"#999"}},[t("li",[t("span",[e._v("全部试题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.subjectNum))])]),t("li",[t("span",[e._v("试卷总分:")]),t("span",[e._v(e._s(e.vo.totalGrade))])])])]):e._e(),1===e.vo.type?t("div",{staticClass:"titleTop"},[t("h4",{staticStyle:{"padding-top":"0","padding-bottom":"20px",width:"100%","overflow-wrap":"break-word"}},[e._v(e._s(e.vo.name))]),t("ul",{staticClass:"titleTop-long",staticStyle:{"font-size":"var(--portalFontSize12)",color:"#999"}},[t("li",[t("span",[e._v("全部试题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.TypeNum.totalNum))])]),t("li",[t("span",[e._v("单选题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.TypeNum.totalNum1))])]),t("li",[t("span",[e._v("多选题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.TypeNum.totalNum2))])]),t("li",[t("span",[e._v("判断题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.TypeNum.totalNum3))])]),t("li",[t("span",[e._v("填空题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.TypeNum.totalNum4))])]),t("li",[t("span",[e._v("问答题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.TypeNum.totalNum5))])]),t("li",[t("span",[e._v("试卷总分:")]),t("span",[e._v(e._s(e.vo.totalGrade))])])])]):e._e()]):e._e()]):e._e(),null!==e.vo?t("section",{staticClass:"problemDetail"},[t("div",{staticClass:"box"},[["1"===e.typeContent?t("div",{staticClass:"problemBox"},[1===e.vo.type?t("div",e._l(e.vo.passenger.paperTypePerson,(function(r,n){return t("div",{key:r,staticClass:"paperInnerBox",staticStyle:{"border-bottom":"1px solid #EBEEF5"}},[1===r.passenger.subjectManage.type||3===r.passenger.subjectManage.type?t("danxuan",{attrs:{"current-index":n+1,"num-problem":e.numProblem,"problem-obj":r,"can-edit":0,"type-content":e.typeContent}}):e._e(),4===r.passenger.subjectManage.type?t("tiankong",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent}}):e._e(),2===r.passenger.subjectManage.type?t("duoxuan",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent}}):e._e(),5===r.passenger.subjectManage.type?t("wenda",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent}}):e._e()],1)})),0):e._e(),2===e.vo.type?t("el-form",{staticStyle:{margin:"20px 0"}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw34"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("题型分值")]),t("td",{staticClass:"el-table__cell tdcont tdw66",attrs:{colspan:"3"}},[t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("单选题 "+e._s(e.vo.typeChoiceNum)+" 个,")]),e._v(" "),t("span",[e._v("每题 "+e._s(e.vo.typeChoiceGredit)+" 分")])]),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("多选题 "+e._s(e.vo.typeCheckboxNum)+" 个,")]),e._v(" "),t("span",[e._v("每题 "+e._s(e.vo.typeCheckboxGredit)+" 分")])]),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("判断题 "+e._s(e.vo.typeGudgeNum)+" 个,")]),e._v(" "),t("span",[e._v("每题 "+e._s(e.vo.typeGudgeGredit)+" 分")])]),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("填空题 "+e._s(e.vo.typeCompletionNum)+" 个,")]),e._v(" "),t("span",[e._v("每题 "+e._s(e.vo.typeCompletionGredit)+" 分")])]),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("问答题 "+e._s(e.vo.typeQaNum)+" 个,")]),e._v(" "),t("span",[e._v("每题 "+e._s(e.vo.typeQaGredit)+" 分")])])])])])])])])]):e._e(),2===e.vo.type?t("el-form",{model:{value:e.vo.passenger.num,callback:function(t){e.$set(e.vo.passenger,"num",t)},expression:"vo.passenger.num"}},[t("el-table",{attrs:{border:"",data:e.vo.passenger.num,"tooltip-effect":"dark"}},[t("el-table-column",{attrs:{type:"index",label:"序号",width:"45",align:"center"}}),t("el-table-column",{attrs:{prop:e.name,label:"题库",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.name))])]}}],null,!1,2020036417)}),t("el-table-column",{attrs:{label:"单选题",width:"80",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(" "+e._s(r.row.num1))])]}}],null,!1,2475668522)}),t("el-table-column",{attrs:{label:"多选题",width:"80",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(" "+e._s(r.row.num2))])]}}],null,!1,170138665)}),t("el-table-column",{attrs:{label:"判断题",width:"80",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(" "+e._s(r.row.num3))])]}}],null,!1,1731372456)}),t("el-table-column",{attrs:{label:"填空题",width:"80",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(" "+e._s(r.row.num4))])]}}],null,!1,3296389807)}),t("el-table-column",{attrs:{label:"问答题",width:"80",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(" "+e._s(r.row.num5))])]}}],null,!1,662902062)})],1)],1):e._e(),2===e.vo.type?t("div",{staticClass:"answerNotice"},[t("h4",{staticClass:"answerNoticeTitle"},[e._v("随机试卷说明:")]),e._m(0)]):e._e()],1):e._e(),"2"===e.typeContent?t("div",{staticClass:"problemBox"},e._l(e.vo.passenger.subjectManageList,(function(r,n){return t("div",{key:r,staticStyle:{"border-bottom":"1px solid #EBEEF5"}},[t("div",{staticClass:"paperInnerBox"},[1===r.type||3===r.type?t("danxuan",{attrs:{"current-index":n+1,"num-problem":e.numProblem,"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":0,"type-content":e.typeContent}}):e._e(),4===r.type?t("tiankong",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent}}):e._e(),2===r.type?t("duoxuan",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent}}):e._e(),5===r.type?t("wenda",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent}}):e._e()],1),t("div",{key:r.id,staticClass:"answerDetail clearfix"},[4!==r.type&&5!==r.type?t("div",{staticClass:"innerBox"},[t("span",[e._v("我的答案:")]),t("span",[e._v(e._s(e.vo.passenger.examAnswerInfoList[n].answerContent))]),1===e.vo.passenger.examAnswerInfoList[n].istrue&&-1!==e.DCvisible?t("svg-icon",{staticClass:"chooseIcon",attrs:{"icon-class":"gzbg_xj_tj"}}):e._e(),0===e.vo.passenger.examAnswerInfoList[n].istrue&&-1!==e.DCvisible?t("svg-icon",{staticClass:"chooseIcon",attrs:{"icon-class":"wrong"}}):e._e()],1):e._e(),4===r.type||5===r.type?t("div",{staticClass:"innerBox"},[4===r.type?t("span",[e._v("我的答案:")]):e._e(),4===r.type?t("span",[e._v(e._s(e.translateTrue(e.vo.passenger.examAnswerInfoList[n].answerContent)))]):e._e(),5===r.type?t("span",[e._v("我的答案:")]):e._e(),5===r.type?t("span",[e._v(e._s(e.vo.passenger.examAnswerInfoList[n].answerContent))]):e._e(),t("p",{staticStyle:{margin:"0"}},[e._v("得分:"+e._s(e.vo.passenger.examAnswerInfoList[n].grade))])]):e._e(),-1!==e.DAvisible?t("div",{staticClass:"innerBox"},[e.collspse?e._e():t("p",{staticStyle:{width:"1000px","text-overflow":"clip",margin:"0"}},[t("span",[e._v("正确答案:")]),t("span",[e._v(e._s(4===r.type?e.translateTrue(e.vo.passenger.subjectManageList[n].trueOption):e.vo.passenger.subjectManageList[n].trueOption))]),e.vo.passenger.subjectManageList[n].trueOption.length>50&&!e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1),e.collspse?t("p",{staticStyle:{width:"1000px",height:"auto","max-height":"200px",overflow:"auto",margin:"0"}},[t("span",[e._v("正确答案:")]),t("span",[e._v(e._s(4===r.type?e.translateTrue(e.vo.passenger.subjectManageList[n].trueOption):e.vo.passenger.subjectManageList[n].trueOption))]),e.vo.passenger.subjectManageList[n].trueOption.length>50&&e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1):e._e()]):e._e(),-1!==e.JXvisible?t("div",{staticClass:"innerBox"},[e.collspse?e._e():t("p",{staticStyle:{width:"1000px","text-overflow":"clip",margin:"0"}},[t("span",[e._v("答案解析:")]),e._v(e._s(e.vo.passenger.subjectManageList[n].answerExplain.substr(0,50))+" "),e.vo.passenger.subjectManageList[n].answerExplain.length>50&&!e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1),e.collspse?t("p",{staticStyle:{width:"1000px",height:"auto","max-height":"200px",overflow:"auto",margin:"0"}},[t("span",[e._v("答案解析:")]),e._v(e._s(e.vo.passenger.subjectManageList[n].answerExplain)+" "),e.vo.passenger.subjectManageList[n].answerExplain.length>50&&e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1):e._e()]):e._e()])])})),0):e._e(),"3"===e.typeContent&&null!==e.vo?t("div",{staticClass:"problemBox"},e._l(e.vo.subjectManages,(function(r,n){return t("div",{key:r,staticStyle:{"border-bottom":"1px solid #EBEEF5"}},[t("div",{staticClass:"paperInnerBox"},[1===r.type||3===r.type?t("danxuan",{attrs:{"current-index":n+1,"num-problem":e.numProblem,"problem-obj":r,"answer-content":e.vo.exerciseSubjects[n].answerContent,"can-edit":0,"type-content":e.typeContent}}):e._e(),4===r.type?t("tiankong",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent,"answer-content":e.vo.exerciseSubjects[n].answerContent}}):e._e(),2===r.type?t("duoxuan",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent,"answer-content":e.vo.exerciseSubjects[n].answerContent}}):e._e(),5===r.type?t("wenda",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent,"answer-content":e.vo.exerciseSubjects[n].answerContent}}):e._e()],1),t("div",{key:r.id,staticClass:"answerDetail clearfix"},[t("div",{staticClass:"innerBox"},[t("span",[e._v("我的答案:")]),t("span",[e._v(e._s(e.vo.exerciseSubjects[n].answerContent))])]),4===r.type?t("div",{staticClass:"innerBox"},[t("span",[e._v("正确答案:")]),t("span",[e._v(e._s(e.translateTrue(e.vo.subjectManages[n].trueOption)))])]):e._e(),4!==r.type?t("div",{staticClass:"innerBox"},[t("span",[e._v("正确答案:")]),t("span",[e._v(e._s(e.vo.subjectManages[n].trueOption))])]):e._e(),t("div",{staticClass:"innerBox",staticStyle:{width:"100%"}},[e.collspse?e._e():t("p",{staticStyle:{width:"1000px","text-overflow":"clip","white-space":"nowrap",margin:"0"}},[t("span",[e._v("答案解析:")]),e._v(e._s(e.vo.subjectManages[n].answerExplain.substr(0,50))+" "),e.vo.subjectManages[n].answerExplain.length>50&&!e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1),e.collspse?t("p",{staticStyle:{width:"1000px",height:"auto","max-height":"200px",overflow:"auto",margin:"0"}},[t("span",[e._v("答案解析:")]),e._v(e._s(e.vo.subjectManages[n].answerExplain)+" "),e.vo.subjectManages[n].answerExplain.length>50&&e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1):e._e()])])])})),0):e._e()]],2)]):e._e()])},Ue=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"Notice-p"},[t("p",[e._v("1.随机试卷须设置题型试题数量、每题分值及试题选择的题库。")]),t("p",[e._v("2.考试时系统根据上面规则从选择的题库中随机选题。")]),t("p",[e._v("3.由于是根据规则随机选择题,所以每次考试的试题都不相同。")])])}];function qe(e){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(e)}function Xe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xe=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==qe(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(qe(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ke(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Je(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ke(o,n,a,i,s,"next",e)}function s(e){Ke(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){$e(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $e(e,t,r){return(t=et(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function et(e){var t=tt(e,"string");return"symbol"==qe(t)?t:t+""}function tt(e,t){if("object"!=qe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var rt={components:{danxuan:d,duoxuan:v,wenda:S,tiankong:L},props:[],data:function(){return{vo:null,typeContent:"",editNum:"",numProblem:"",totalTypeNum1:0,totalTypeNum2:0,totalTypeNum3:0,totalTypeNum4:0,totalTypeNum5:0,FSvisible:-1,DCvisible:-1,DAvisible:-1,JXvisible:-1,chapterName:"",collspse:!1,collectVo:"",isColl:!1,collectNum:0}},computed:Ze({},ce(["routes","loginUser"])),watch:function(){},created:function(){var e=this;return Je(Xe().mark((function t(){return Xe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.typeContent=e.$route.query.type,e.chapterName=e.$route.query.chapterName,"2"!==e.typeContent){t.next=7;break}return t.next=5,e.recordFormVo();case 5:t.next=15;break;case 7:if("1"!==e.typeContent){t.next=12;break}return t.next=10,e.initFormVo();case 10:t.next=15;break;case 12:if("3"!==e.typeContent){t.next=15;break}return t.next=15,e.exerciseFuc();case 15:e.isCollect(),e.collectCount();case 17:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){},mounted:function(){},methods:{openCollspse:function(){this.collspse=!this.collspse},updateSj:function(){window.open("/#/commonHeader?workform=@/wapp/ksgl/ksgl/paper/KsglPaperEdit&header=考试试卷&addOrUpdate=1&id=".concat(this.vo.id))},exerciseFuc:function(){var e=this;this.$http({url:"ksgl/courseChapter/getExerciseRecordResurt",method:"GET",params:{recordId:this.$route.query.id,chapterId:this.$route.query.chapterId,personId:this.$route.query.personId?this.$route.query.personId:this.loginUser.personId}}).then((function(t){"success"===t.code?(e.vo=t.body,e.numProblem=t.body.subjectManages.length):e.$message({type:"warning",message:t.body.message})}))},initFormVo:function(){var e=this;return Je(Xe().mark((function t(){var r;return Xe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.getById("ksgl/paper/getById",e.$route.query.id);case 2:r=t.sent,"success"===r.code?(e.vo=r.body.vo,2===e.vo.type?e.vo.passenger.paperTypePerson.forEach((function(t){e.totalTypeNum1+=t.TypeNum1,e.totalTypeNum2+=t.TypeNum2,e.totalTypeNum3+=t.TypeNum3,e.totalTypeNum4+=t.TypeNum4,e.totalTypeNum5+=t.TypeNum5,t.editNum=t.TypeNum1+t.TypeNum2+t.TypeNum3+t.TypeNum4+t.TypeNum5})):e.numProblem=r.body.vo.passenger.paperTypePerson.length):e.$message({type:"warning",message:r.body.message});case 4:case"end":return t.stop()}}),t)})))()},recordFormVo:function(){var e=this;return Je(Xe().mark((function t(){return Xe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$http({url:"ksgl/exam/getexamRecordMoreInfo",method:"GET",params:{examRecordId:e.$route.query.id}}).then((function(t){if("success"===t.code){e.vo=t.body.paper,e.numProblem=t.body.paper.subjectNum;var r=(new Date).valueOf(),n=new Date(e.vo.passenger.exam.endTime).valueOf();e.vo.passenger.exam.visibleConfig&&(r<n?(e.FSvisible=e.vo.passenger.exam.visibleConfig.indexOf("1"),e.DCvisible=e.vo.passenger.exam.visibleConfig.indexOf("2"),e.DAvisible=e.vo.passenger.exam.visibleConfig.indexOf("3"),e.JXvisible=e.vo.passenger.exam.visibleConfig.indexOf("4"),console.log(e.vo.passenger.exam.visibleConfig,e.vo.passenger.exam.visibleConfig.split(","))):(e.FSvisible=e.vo.passenger.exam.visibleConfig.indexOf("5"),e.DCvisible=e.vo.passenger.exam.visibleConfig.indexOf("6"),e.DAvisible=e.vo.passenger.exam.visibleConfig.indexOf("7"),e.JXvisible=e.vo.passenger.exam.visibleConfig.indexOf("8"))),console.log(r,n)}else e.$message({type:"warning",message:t.body.message})}));case 1:case"end":return t.stop()}}),t)})))()},translateTrue:function(e){if(e){var t=/\|\#\|/g,r=e.replace(t,",");return r}return e},isCollect:function(){var e=this;this.$http({url:"/user/collection/getIfCollection",method:"GET",params:{busiDataId:this.$route.query.id,operationType:"1",ownerId:this.loginUser.personId}}).then((function(t){"success"===t.code?e.isColl=t.body.data:e.$message({type:"warning",message:t.body.message})}))},collectCount:function(){var e=this;this.$http({url:"/user/collection/getCollectionCount",method:"GET",params:{busiDataId:this.$route.query.id,operationType:"1"}}).then((function(t){"success"===t.code?e.collectNum=t.body.data:e.$message({type:"warning",message:t.body.message})}))},Collection:function(){var e=this;return Je(Xe().mark((function t(){var r,n;return Xe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.addNew("/user/collection/addNew");case 2:if(r=t.sent,"success"!==r.code){t.next=18;break}return e.collectVo=r.body.vo,e.collectVo.busiDataId=e.$route.query.id,e.collectVo.type="答题详情",e.collectVo.ownerId=e.loginUser.personId,e.collectVo.operationType="1",e.collectVo.url=e.$route.fullPath,e.collectVo.module="exam",e.collectVo.title=e.vo.name||e.chapterName,t.next=14,e.$app.insert("/user/collection/insert",e.collectVo);case 14:n=t.sent,"success"===n.code?(e.$message.success(n.message),e.isCollect(),e.collectCount()):e.$message.success(n.message),t.next=19;break;case 18:e.$message.success(r.message);case 19:case"end":return t.stop()}}),t)})))()}}},nt=rt,at=(r(137),c(nt,Ve,Ue,!1,null,"c1e4a5e0",null)),ot=at.exports,it=function(){var e=this,t=e._self._c;return null!==e.vo?t("div",{staticStyle:{height:"calc(100vh - 61px)","overflow-y":"auto"}},[t("div",{staticClass:"header"},[t("div",{staticStyle:{"padding-top":"30px"}},[e._v(e._s(e.vo.passenger.exam.name))]),t("div",{staticClass:"small-title marGtop20"},[t("span",[e._v(" 考生姓名:"+e._s(e.vo.passenger.examRecord.personName)+" ")]),t("span",{staticStyle:{margin:"0 20px"}},[e._v(" 部门:"+e._s(e.vo.passenger.examRecord.personDept.split("-")[1])+" ")]),t("span",[e._v(" 交卷时间:"+e._s(e.vo.passenger.examRecord.endTime)+" ")])])]),t("div",{staticClass:"content"},[e._l(e.vo.passenger.subjectManageList,(function(r,n){return t("div",{key:r.id,staticClass:"problemDetail-box"},[[t("div",{staticClass:"paperInnerBox"},[1===r.type||3===r.type?t("danxuan",{attrs:{"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":0,"current-index":n+1,"type-content":"2"}}):2===r.type?t("duoxuan",{attrs:{"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":0,"current-index":n+1,"type-content":"2"}}):t("div",{staticClass:"pro-title"},[t("span",[e._v(e._s(n+1)+". ")]),1===r.type?t("span",{},[e._v("【单选题】")]):e._e(),2===r.type?t("span",{},[e._v("【多选题】")]):e._e(),3===r.type?t("span",{},[e._v("【判断题】")]):e._e(),4===r.type?t("span",{},[e._v("【填空题】")]):e._e(),5===r.type?t("span",{},[e._v("【问答题】")]):e._e(),t("span",[e._v(e._s(r.content))]),t("span",{staticClass:"TKbox"},[e._v("("+e._s(r.passenger.grade)+"分)")])])],1)],t("div",{staticClass:"pro-answerbox"},[t("div",{staticClass:"personanswer-box"},[t("span",{staticStyle:{"font-weight":"700"}},[e._v("Ta的答案:")]),2===r.type?t("span",[e._v(e._s(r.passenger.examAnswerInfo.answerContent?r.passenger.examAnswerInfo.answerContent.split(",").sort().join(","):r.passenger.examAnswerInfo.answerContent))]):e._e(),2!==r.type?t("span",[e._v(e._s(r.passenger.examAnswerInfo.answerContent))]):e._e()]),t("div",{staticClass:"trueanswer-box"},[t("span",{staticStyle:{"font-weight":"700"}},[e._v("正确答案:")]),t("span",[e._v(e._s(4===r.type?e.filterAnswer(r.trueOption):r.trueOption))])]),e.isdetail?e._e():t("div",[1===r.type||2===r.type||3===r.type?[t("div",[t("span",[e._v("批阅:")]),t("el-button",{staticClass:"btn color-green",class:{bgGreen:1===r.isRight},on:{click:function(t){return e.correct(r,n,"right")}}},[t("i",{staticClass:"el-icon-check"}),e._v("正确")]),t("el-button",{staticClass:"btn color-red",class:{bgRed:0===r.isRight},staticStyle:{"margin-left":"20px"},on:{click:function(t){return e.correct(r,n,"wrong")}}},[t("i",{staticClass:"el-icon-close"}),e._v("错误")])],1)]:[t("span",[e._v("得分:")]),t("span",[t("el-input-number",{attrs:{min:0,max:Number(r.passenger.grade)},model:{value:r.passenger.examAnswerInfo.grade,callback:function(t){e.$set(r.passenger.examAnswerInfo,"grade",t)},expression:"item.passenger.examAnswerInfo.grade"}})],1),t("span",[e._v(" "+e._s(Number(r.passenger.grade))+" 分 ")])]],2),e.isdetail?t("div",[t("span",[e._v("得分:")]),t("span",[e._v(" "+e._s(r.passenger.examAnswerInfo.grade)+" 分 ")])]):e._e()])],2)})),e.isdetail?e._e():t("div",{staticClass:"submit-box marGtop20"},[t("span",{staticStyle:{"margin-right":"20px"}},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.SubmitPaper("1")}}},[e._v("提交")])],1),t("span",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.SubmitPaper("2")}}},[e._v("保存并批阅下一张")])],1)])],2)]):e._e()},st=[];function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function ct(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ct=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==lt(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(lt(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ut(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function dt(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ut(o,n,a,i,s,"next",e)}function s(e){ut(o,n,a,i,s,"throw",e)}i(void 0)}))}}var pt={components:{danxuan:d,duoxuan:v},props:{},data:function(){return{checked:!1,vo:null,typeQaGredit:"",typeCompletionGredit:"",examerAnswerList:[],status:0,isdetail:!1,TrueAnswerList:[]}},computed:{},watch:{},created:function(){this.initFun()},beforeDestroy:function(){},mounted:function(){this.checked=!1,"2"===this.$route.query.status&&(this.isdetail=!0)},methods:{correct:function(e,t,r){var n="right"===r?1:0;this.$delete(this.vo.passenger.subjectManageList[t],"isRight"),this.$set(this.vo.passenger.subjectManageList[t],"isRight",n),this.vo.passenger.subjectManageList[t].passenger.examAnswerInfo.grade=1===n?parseInt(e.passenger.grade):0},initFun:function(){var e=this;this.$http({url:"ksgl/exam/getPiyueExamRecordMoreInfo",method:"GET",params:{examRecordId:this.$route.query.id}}).then((function(t){"success"===t.code?(e.vo=t.body.paper,e.typeQaGredit=t.body.paper.typeQaGredit,e.typeCompletionGredit=t.body.paper.typeCompletionGredit,e.vo.passenger.subjectManageList.forEach((function(e,t){e.passenger.examAnswerInfo.grade=0,1!==e.type&&2!==e.type&&3!==e.type||(e.isRight=0,e.passenger.examAnswerInfo.grade=0,e.passenger.examAnswerInfo.answerContent&&2===e.type&&(e.passenger.examAnswerInfo.answerContent=e.passenger.examAnswerInfo.answerContent.split(",").sort().join(",")),e.passenger.examAnswerInfo.answerContent&&e.passenger.examAnswerInfo.answerContent===e.trueOption&&(e.isRight=1,e.passenger.examAnswerInfo.grade=parseInt(e.passenger.grade)))})),e.vo.passenger.subjectManageList.sort((function(e,t){return e.passenger.examAnswerInfo.examNo-t.passenger.examAnswerInfo.examNo}))):e.$message({type:"warning",message:t.body.message})}))},filterAnswer:function(e){if(e){var t=/\|\#\|/g,r=e.replace(t,",");return r}return e},SubmitPaper:function(e){var t=this;return dt(ct().mark((function r(){var n,a;return ct().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.vo.passenger.examRecord.passenger.examAnswerInfoList=[],t.vo.passenger.subjectManageList.forEach((function(e,r){e.passenger.examAnswerInfo.passenger.grade=e.passenger.grade,e.passenger.examAnswerInfo.grade===e.passenger.grade&&(e.passenger.examAnswerInfo.istrue=1),t.vo.passenger.examRecord.passenger.examAnswerInfoList.push(e.passenger.examAnswerInfo)})),r.next=4,t.$app.update("/ksgl/examRecord/piyueExamRecord",t.vo.passenger.examRecord);case 4:n=r.sent,console.log(n),"success"===n.code?("2"===e?null!==n.body.examRecordId?t.$message({type:"success",message:"批阅完成,即将跳转到下一份试卷",duration:1e3,onClose:function(){var e=n.body.examRecordId;window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/grzx/sjpy/KsglGrzxSjpyExamPaperCorrecting&id="+e),window.location.reload()}}):t.$message({type:"success",message:"您已批完所有试卷,辛苦了!",duration:1e3,onClose:function(){window.close()}}):t.$message({type:"success",message:"批阅完成",duration:1e3,onClose:function(){window.close()}}),a=window.opener.document.querySelector(".el-icon-refresh"),null!==a&&a.parentElement.click()):t.$message({type:"warning",message:n.message});case 7:case"end":return r.stop()}}),r)})))()}}},ht=pt,ft=(r(4625),c(ht,it,st,!1,null,"80570cf0",null)),mt=ft.exports,yt=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{visible:e.show,"append-to-body":!0,"close-on-click-modal":!1,title:"我的错题",width:"850px"},on:{"update:visible":function(t){e.show=t}}},[t("li",{staticClass:"problemBox"},[t("div",[t("div",{staticClass:"paperInnerBox"},[1===e.item.type||3===e.item.type&&e.isShow?t("danxuan",{attrs:{"problem-obj":e.item,"answer-content":e.item.answerContent,"can-edit":0,"type-content":"2"}}):e._e(),4===e.item.type&&e.isShow?t("tiankong",{attrs:{"problem-obj":e.item,"can-edit":0,"type-content":"2","answer-content":e.item.answerContent}}):e._e(),2===e.item.type&&e.isShow?t("duoxuan",{attrs:{"problem-obj":e.item,"can-edit":0,"type-content":"2","answer-content":e.item.answerContent}}):e._e(),5===e.item.type&&e.isShow?t("wenda",{attrs:{"problem-obj":e.item,"can-edit":0,"type-content":"2","show-wenda":!0,"answer-content":e.item.answerContent}}):e._e()],1),t("div",{key:e.item.id,staticClass:"answerDetail clearfix"},[t("div",{staticClass:"li"},[t("span",{staticStyle:{"font-weight":"700"}},[e._v("你的答案:")]),t("span",[e._v(e._s(e.item.answerContent))]),t("span",{staticStyle:{"font-weight":"700","margin-left":"80px"}},[e._v("正确答案:")]),t("span",[e._v(" "+e._s(e.item.trueOption))])]),t("div",{staticClass:"li",staticStyle:{"margin-top":"20px"}},[t("span",{staticStyle:{"font-weight":"700"}},[e._v("答案解析:")]),t("span",[e._v(" "+e._s(e.item.answerExplain))])]),t("div",{staticClass:"li",staticStyle:{width:"100%"}},[e.collspse?t("p",{staticStyle:{width:"650px",height:"auto","max-height":"200px",overflow:"auto"}},[e._v(e._s(e.item.answerExplain))]):e._e()])])])]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["{}"!==JSON.stringify(e.item)?[t("el-button",{attrs:{type:"primary",disabled:e.item&&!e.item.passenger.beforeId},on:{click:e.toUp}},[e._v("上一题")]),t("el-button",{attrs:{type:"primary",disabled:e.item&&!e.item.passenger.afterId},on:{click:e.toNext}},[e._v("下一题")])]:e._e()],2)])],1)},vt=[];function gt(e){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gt(e)}function _t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_t=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==gt(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(gt(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function bt(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function wt(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){bt(o,n,a,i,s,"next",e)}function s(e){bt(o,n,a,i,s,"throw",e)}i(void 0)}))}}var xt={components:{danxuan:d,duoxuan:v,wenda:S,tiankong:L},props:{row:{type:Object,default:function(){return{}}}},data:function(){return{data:{},show:!1,item:{},isShow:!1}},computed:{},watch:{},created:function(){var e=this;this.$bus.on("showlog",(function(t){e.show=!1,e.isShow=!1,e.getById(t).then((function(t){e.item=t,e.item.optionList=[],e.item.optionList=JSON.parse(e.item.subjectOption),e.$forceUpdate(),e.show=!0,e.isShow=!0}))}))},beforeDestroy:function(){},mounted:function(){},methods:{getById:function(e){var t=this,r={id:e.id};return this.$route.query&&this.$route.query.urlsearch&&(r={id:e.id,errorType:parseInt(this.$route.query.urlsearch.split(":")[1])}),new Promise(function(){var e=wt(_t().mark((function e(n,a){return _t().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$http({method:"get",contentType:"application/x-www-form-urlencoded",params:r,url:"ksgl/errorRecord/getById"}).then((function(e){"success"===e.code?n(e.body.vo):a(e.message)}));case 2:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}())},toNext:function(){var e=this;this.isShow=!1,this.getById({id:this.item.passenger.afterId}).then((function(t){e.item=t,e.item.optionList=[],e.item.optionList=JSON.parse(e.item.subjectOption),e.$forceUpdate(),e.isShow=!0}))},toUp:function(){var e=this;this.isShow=!1,this.getById({id:this.item.passenger.beforeId}).then((function(t){e.item=t,e.item.optionList=[],e.item.optionList=JSON.parse(e.item.subjectOption),e.$forceUpdate(),e.isShow=!0}))}}},Lt=xt,Mt=(r(7298),c(Lt,yt,vt,!1,null,"772e8499",null)),kt=Mt.exports,Tt=function(){var e=this,t=e._self._c;return null!==e.vo?t("div",{staticStyle:{"padding-top":"30px 50px 0"}},[t("p",{staticStyle:{"font-size":"24px","text-align":"center",margin:"20px 0 20px","font-weight":"bold"}},[e._v(e._s(e.vo.name))]),t("div",{staticStyle:{"text-align":"center"},on:{click:e.Collection}},[t("svg-icon",{attrs:{"icon-class":e.isColl?"fiveStar1":"fiveStar"}}),t("span",[e._v(e._s(e.collectNum)+" 次")])],1),t("el-form",{staticStyle:{"text-align":"center"}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%","margin-top":"30px","margin-bottom":"20px"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("考试时间")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.startTime.substr(0,16))+" 至 "+e._s(e.vo.endTime.substr(0,16)))])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("考试限时")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[0===e.vo.examLimit?t("span",[e._v("不限制")]):t("span",[e._v(e._s(e.vo.examLimit)+" 分钟")])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("试题总数")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.passenger.paper.subjectNum))])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("及格分数")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[0===e.vo.passGrade?t("span",[e._v("不限制")]):t("span",[e._v(e._s(e.vo.passGrade)+" 分")])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("试题总分")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.passenger.paper.totalGrade)+" 分")])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("可获学分")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.credit)+" 分")])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("考试次数")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(" "+e._s(e.vo.passenger.examCount)+"次/ "),0===e.vo.examTimes?t("span",[e._v("(不限制)")]):t("span",[e._v("(可考"+e._s(e.vo.examTimes)+"次)")])])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("最近一次交卷")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.passenger.examRecords.length>0?e.vo.passenger.examRecords[0].endTime:""))])])])])])])]),null!==e.vo?[t("el-button",{staticClass:"examBtn",attrs:{size:"small",type:1===e.vo.passenger.state||2===e.vo.passenger.state?"primary":"warning",disabled:0===e.vo.passenger.state},on:{click:function(t){return e.onlineExam()}}},[e._v(e._s(1===e.vo.passenger.state?"开始考试":2===e.vo.passenger.state?"重新考试":3===e.vo.passenger.state?"继续考试":"开始考试"))])]:e._e()],2),null!==e.vo&&e.vo.passenger.examCount>0?t("section",{staticClass:"answerDetail"},[t("h4",{staticClass:"answerTitle"},[e._v("答题情况")]),t("div",{staticStyle:{width:"100%",margin:"0 auto"}},[t("el-table",{attrs:{border:"",data:e.tableData,"tooltip-effect":"dark"}},[t("el-table-column",{attrs:{prop:"startTime",label:"开始时间",align:"center"}}),t("el-table-column",{attrs:{prop:"endTime",label:"交卷时间",align:"center"}}),t("el-table-column",{attrs:{prop:"grade",label:"考试成绩",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(" "+e._s(null===r.row.grade||2!==r.row.status&&9!==r.row.status?"--":r.row.grade)+" ")])]}}],null,!1,2939032910)}),t("el-table-column",{attrs:{label:"状态",width:"150",align:"center",prop:"status","column-key":"status"},scopedSlots:e._u([{key:"default",fn:function(r){return[3!==e.vo.passenger.state||r.row.endTime?[9===r.row.status?[0===r.row.ispass?t("span",{staticStyle:{color:"#F56C6C"}},[e._v("未通过")]):t("span",[e._v("无效")])]:t("span",{style:{color:1===r.row.status?"#E6A23C":2===r.row.status&&0===r.row.ispass?"#F56C6C":"#000"}},[e._v(" "+e._s(8===r.row.status?"未完成":9===r.row.status?"无效":1===r.row.status?"未批阅":2===r.row.status&&0===r.row.ispass?"未通过":"已通过")+" ")])]:[e._v("进行中")]]}}],null,!1,1740942823)}),t("el-table-column",{attrs:{label:"操作",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[3!==e.vo.passenger.state||r.row.endTime?[2!==r.row.status&&9!==r.row.status&&1!==r.row.status?t("span",{staticStyle:{color:"#909399"},attrs:{disabled:"",size:"mini"}},[e._v("查看答题详情")]):t("span",{staticStyle:{cursor:"pointer",color:"#409EFF"},attrs:{size:"mini"},on:{click:function(t){return e.getDeatil(r.row.id)}}},[e._v("查看答题详情")])]:[t("span",{staticStyle:{cursor:"pointer",color:"#409EFF"},attrs:{size:"mini"},on:{click:function(t){return e.onlineExam(r.row.id)}}},[e._v("继续考试")])]]}}],null,!1,392279428)})],1)],1)]):e._e(),t("section",{staticClass:"answerNotice"},[t("h4",{staticClass:"answerNoticeTitle"},[e._v("考试说明")]),t("div",{staticClass:"Notice-p"},[t("p",[e._v(e._s(e.vo.introduction))])])]),e._m(0)],1):e._e()},Dt=[function(){var e=this,t=e._self._c;return t("section",{staticClass:"answerNotice"},[t("h4",{staticClass:"answerNoticeTitle"},[e._v("答题须知")]),t("div",{staticClass:"Notice-p"},[t("p",[e._v("1.答题卡上通过颜色区分哪些已做,哪些未做,点击试题编号可快速定位试题。")]),t("p",[e._v("2.如果考试限定时间,请在倒计时结束前完成答卷,倒计时结束时会自动交卷。")]),t("p",[e._v("3.如果考试允许重考,取历次考试的最高分。")])])])}];function Yt(e){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(e)}function St(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */St=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Yt(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Yt(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ct(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function jt(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ct(o,n,a,i,s,"next",e)}function s(e){Ct(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(r),!0).forEach((function(t){Pt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pt(e,t,r){return(t=At(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function At(e){var t=Nt(e,"string");return"symbol"==Yt(t)?t:t+""}function Nt(e,t){if("object"!=Yt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ht={components:{},props:[],data:function(){return{vo:null,tableData:null,collectVo:"",isColl:!1,collectNum:0}},computed:Ot({},ce(["routes","loginUser"])),watch:function(){},created:function(){var e=this;return jt(St().mark((function t(){return St().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$http({url:"ksgl/exam/getByIdAndPersionId",method:"GET",params:{id:e.$route.query.id,personId:e.loginUser.personId}}).then((function(t){"success"===t.code?(e.vo=t.body.vo,e.tableData=t.body.vo.passenger.examRecords,e.isCollect(),e.collectCount()):e.$message({type:"warning",message:t.body.message})}));case 2:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){},mounted:function(){},methods:{isCollect:function(){var e=this;this.$http({url:"/user/collection/getIfCollection",method:"GET",params:{busiDataId:this.vo.id,operationType:"1",ownerId:this.loginUser.personId}}).then((function(t){"success"===t.code?e.isColl=t.body.data:e.$message({type:"warning",message:t.body.message})}))},collectCount:function(){var e=this;this.$http({url:"/user/collection/getCollectionCount",method:"GET",params:{busiDataId:this.vo.id,operationType:"1"}}).then((function(t){"success"===t.code?e.collectNum=t.body.data:e.$message({type:"warning",message:t.body.message})}))},Collection:function(){var e=this;return jt(St().mark((function t(){var r,n;return St().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.addNew("/user/collection/addNew");case 2:if(r=t.sent,"success"!==r.code){t.next=18;break}return e.collectVo=r.body.vo,e.collectVo.busiDataId=e.vo.id,e.collectVo.type="考试",e.collectVo.ownerId=e.loginUser.personId,e.collectVo.operationType="1",e.collectVo.url=e.$route.fullPath,e.collectVo.module="exam",e.collectVo.title=e.vo.name,t.next=14,e.$app.insert("/user/collection/insert",e.collectVo);case 14:n=t.sent,"success"===n.code?(e.$message.success(n.message),e.isCollect(),e.collectCount()):e.$message.success(n.message),t.next=19;break;case 18:e.$message.success(r.message);case 19:case"end":return t.stop()}}),t)})))()},getDeatil:function(e){var t=1===this.vo.type?"学习考试/正式考试/"+this.vo.name+"/答题详情":"学习考试/模拟考试/"+this.vo.name+"/答题详情";window.open("/#/commonHeader?workform=@/wapp/ksgl/components/KsglComponentProblemDetail&type=2&id="+e+"&logoTitle="+encodeURIComponent(t))},onlineExam:function(e){var t=1===this.vo.type?"学习考试/正式考试/"+this.vo.name+"/考试":"学习考试/模拟考试/"+this.vo.name+"/考试",r=e||this.vo.passenger.examRecords[0].id;window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/grzx/wdks/KsglGrzxWdksOnlineExam&id="+r+"&state="+this.vo.passenger.state+"&examId="+this.vo.id+"&logoTitle="+encodeURIComponent(t)+"&examLimit="+this.vo.examLimit),window.location.reload()}}},It=Ht,Ft=(r(1205),c(It,Tt,Dt,!1,null,"9e2748d8",null)),zt=Ft.exports,Bt=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"padding-top":"30px"}},[null!==e.vo?t("section",{staticClass:"online-top",staticStyle:{position:"relative"}},[t("p",{staticClass:"examTitle"},[e._v(e._s(e.examName))]),e._m(0),t("div",{staticClass:"timePostion"},[e.examLimit?t("span",{staticClass:"timeRemaining"},[t("span",[e._v("剩余时间:")]),t("span",[e._v(e._s(e.CutdownTime))])]):e._e(),t("el-button",{staticStyle:{position:"absolute",top:"56px",right:"0"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.submitpaper()}}},[e._v("提交试卷")])],1),t("ul",{staticClass:"cards clearfix"},e._l(e.vo.passenger.examAnswerInfoList,(function(r,n){return t("div",{key:r},[t("li",{class:n===e.defaultProblem?"zhengzaizuo":null!==r.answerContent&&""!==r.answerContent?"yizuo":"weizuo",on:{click:function(t){return e.linkNum(r,n)}}},[e._v(e._s(n+1))])])})),0)]):e._e(),null!==e.vo?t("section",{staticClass:"paperBox"},[t("ul",{staticClass:"paperInnerBox"},e._l(e.vo.passenger.subjectManageList,(function(r,n){return t("div",{key:r},[t("li",{directives:[{name:"show",rawName:"v-show",value:e.defaultProblem===n,expression:"defaultProblem === index"}],staticStyle:{"list-style":"none"}},[1===r.type||3===r.type?t("danxuan",{attrs:{"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e(),4===r.type?t("tiankong",{attrs:{"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e(),5===r.type?t("wenda",{attrs:{"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e(),2===r.type?t("duoxuan",{attrs:{"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e()],1)])})),0),t("div",{staticClass:"btnBox"},[e.defaultProblem>0?t("el-button",{attrs:{size:"mini",plain:""},on:{click:function(t){return e.beforeAndNext("before")}}},[e._v("上一题")]):e._e(),e.defaultProblem<e.numProblem-1?t("el-button",{attrs:{size:"mini",plain:""},on:{click:function(t){return e.beforeAndNext("next")}}},[e._v("下一题")]):e._e(),t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.beforeAndNext("nextAndSubmit")}}},[e._v("确定")])],1)]):e._e()])},Gt=[function(){var e=this,t=e._self._c;return t("ul",{staticClass:"cardTitle clearfix"},[t("li",[e._v("答题卡")]),t("li",[t("span",{staticStyle:{display:"inline-block",width:"10px",height:"10px","background-color":"rgba(64, 158, 255, 0.6)"}}),t("span",[e._v(" 已做")])]),t("li",[t("span",{staticStyle:{display:"inline-block",width:"10px",height:"10px","background-color":"rgba(235, 237, 240, 1)"}}),t("span",[e._v(" 未做")])]),t("li",[t("span",{staticStyle:{display:"inline-block",width:"10px",height:"10px","background-color":"rgba(64, 158, 255, 1)"}}),t("span",[e._v(" 当前")])])])}];function Rt(e){return Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(e)}function Wt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Rt(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Rt(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Vt(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Ut(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Vt(o,n,a,i,s,"next",e)}function s(e){Vt(o,n,a,i,s,"throw",e)}i(void 0)}))}}function qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(r),!0).forEach((function(t){Kt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Kt(e,t,r){return(t=Jt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jt(e){var t=Qt(e,"string");return"symbol"==Rt(t)?t:t+""}function Qt(e,t){if("object"!=Rt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Zt={components:{danxuan:d,duoxuan:v,wenda:S,tiankong:L},props:{},data:function(){return{vo:null,numProblem:"",problemsList:[],examAnswerList:[],defaultProblem:0,CutdownTime:"",examAnswerParams:null,examRecord:null,examLimit:null,examName:""}},computed:Xt({},ce(["routes","loginUser"])),watch:function(){},created:function(){this.getExamName(),this.initExamVo()},beforeDestroy:function(){},mounted:function(){var e=this;this.$bus.on("answerContentInner",(function(t){e.examAnswerParams=t,console.log(t)})),this.examLimit=parseInt(this.$route.query.examLimit)},methods:{getExamName:function(){var e=this;this.$http({url:"ksgl/exam/getByIdAndPersionId",method:"GET",params:{id:this.$route.query.examId,personId:this.loginUser.personId}}).then((function(t){"success"===t.code?e.examName=t.body.vo.name:e.$message({type:"warning",message:t.body.message})}))},initExamVo:function(){var e=this;this.$http({url:"ksgl/exam/getexamRecordInfo",method:"GET",params:{examRecordId:this.$route.query.id,state:this.$route.query.state,personId:this.loginUser.personId}}).then((function(t){"success"===t.code?(e.vo=t.body.paper,e.numProblem=t.body.paper.passenger.subjectManageList.length,e.problemsList=t.body.paper.passenger.subjectManageList,e.examAnswerList=t.body.paper.passenger.examAnswerInfoList,e.examRecord=t.body.paper.passenger.examRecord,e.DellTime()):e.$message({type:"warning",message:t.message})}))},beforeAndNext:function(e){var t=this;if(null!==this.examAnswerParams&&(this.examAnswerList.map((function(e,r){t.examAnswerList[t.examAnswerParams.indexProblem-1].answerContent=t.examAnswerParams.value,t.examAnswerList[t.examAnswerParams.indexProblem-1].grade=t.examAnswerParams.grade})),this.examAnswerParams.indexProblem===this.defaultProblem+1&&this.updataAnswer()),"before"===e)this.defaultProblem--;else if("next"===e)console.log(this.defaultProblem),console.log(123,this.numProblem),this.defaultProblem!==this.numProblem-1&&this.defaultProblem++;else if("nextAndSubmit"===e)if(this.defaultProblem!==this.numProblem-1)this.defaultProblem++;else{for(var r=!0,n=0;n<this.vo.passenger.examAnswerInfoList.length;n++)""!==this.vo.passenger.examAnswerInfoList[n].answerContent&&null!==this.vo.passenger.examAnswerInfoList[n].answerContent||(this.linkNum(n,n),r=!1);r&&this.$confirm("已经是最后一题,是否提交答卷!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.submitPaperFuc()}))}},linkNum:function(e,t){this.defaultProblem=t,console.log(this.defaultProblem)},updataAnswer:function(){var e=this;return Ut(Wt().mark((function t(){var r;return Wt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.vo.passenger.examAnswerInfoList[e.examAnswerParams.indexProblem-1].answerContent=e.examAnswerList[e.examAnswerParams.indexProblem-1].answerContent,t.next=3,e.$app.update("ksgl/examAnswerInfo/update",e.examAnswerList[e.examAnswerParams.indexProblem-1]);case 3:r=t.sent,"success"===r.code?console.log(r):e.$message({type:"warning",message:r.message});case 5:case"end":return t.stop()}}),t)})))()},submitpaper:function(){var e=this,t=this.examAnswerList.filter((function(t,r){return!e.examAnswerList[r].answerContent}));console.log(t),t.length>0?this.$confirm("你还有".concat(t.length,"道题尚未作答, 是否确认交卷?"),"交卷确认",{confirmButtonText:"确认提交",cancelButtonText:"取消",type:"warning"}).then((function(){e.submitPaperFuc()})).catch((function(){})):this.$confirm("是否确认交卷?","交卷确认",{confirmButtonText:"确认提交",cancelButtonText:"取消",type:"warning"}).then((function(){e.submitPaperFuc()})).catch((function(){}))},submitPaperFuc:function(){var e=this;this.$http({url:"ksgl/examRecord/submitExamRecord",method:"PUT",data:this.examRecord}).then((function(t){if("success"!==t.code)return e.$message({type:"warning",message:t.message}),!1;window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/grzx/wdks/KsglGrzxWdksSubmitResult&id="+t.body.examRecordId+"&type=2&logoTitle="+encodeURIComponent("学习考试")),window.location.reload(),clearInterval()}))},DellTime:function(){var e=parseInt(this.vo.passenger.remainingTime);this.CutdownTime=this.ChangeTime(e);var t=this;setInterval((function(){e-=1,t.CutdownTime=t.ChangeTime(e),0===e&&t.submitPaperFuc()}),1e3)},ChangeTime:function(e){var t=e,r="",n=0,a=0,o=0;return e===parseInt(0)?void 0:(t>=3600&&(n=parseInt(t/3600),t=parseInt(t%3600)),t>=60&&(a=parseInt(t/60),t=parseInt(t%60)),t>0&&(o=parseInt(t%60)),o>=0&&(r=o<10?"0"+o:o+""),a>0&&(r=a<10?"0"+a+":"+r:a+":"+r),n>0&&(r=n<10?"0"+n+":"+r:n+":"+r),r)}}},$t=Zt,er=(r(7564),c($t,Bt,Gt,!1,null,"1c54f623",null)),tr=er.exports,rr=function(){var e=this,t=e._self._c;return null!==e.vo?t("div",{staticClass:"outerBox"},[t("div",{staticClass:"titleMessage"},[t("h4",{staticStyle:{"font-size":"24px",margin:"0","margin-bottom":"20px","font-weight":"bold"}},[e._v(e._s(e.vo.passenger.exam.name))]),1!==e.vo.passenger.examRecord.status&&0===e.vo.passenger.examRecord.ispass?t("img",{staticClass:"imgStatus",attrs:{src:r(4969),alt:""}}):e._e(),1!==e.vo.passenger.examRecord.status&&1===e.vo.passenger.examRecord.ispass?t("img",{staticClass:"imgStatus",attrs:{src:r(7732),alt:""}}):e._e(),1===e.vo.passenger.examRecord.status?t("img",{staticClass:"imgStatus",attrs:{src:r(9942),alt:""}}):e._e(),t("p",[t("span",{staticStyle:{color:"#409EFF","font-size":"30px"}},[e._v(" "+e._s(null===e.vo.passenger.examRecord.grade?"--":e.vo.passenger.examRecord.grade)+" ")]),t("span",{staticStyle:{color:"#409EFF","font-size":"16px"}},[e._v(" 分")])]),1!==e.vo.passenger.examRecord.status&&0===e.vo.passenger.examRecord.ispass?t("p",[e._v("很遗憾,未通过,继续努力")]):e._e(),1===e.vo.passenger.examRecord.status?t("p",[e._v("待批阅,请等待!")]):e._e(),1!==e.vo.passenger.examRecord.status&&1===e.vo.passenger.examRecord.ispass?t("p",[e._v("恭喜您,本次考试通过!")]):e._e()]),t("el-form",{staticStyle:{"text-align":"center"}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%","margin-top":"10px","margin-bottom":"20px"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("考试时间")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.passenger.exam.startTime.substr(0,16))+" 至 "+e._s(e.vo.passenger.exam.endTime.substr(0,16)))])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("考试时长")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[0===e.vo.passenger.exam.examLimit?t("span",[e._v("不限制")]):t("span",[e._v(e._s(e.vo.passenger.exam.examLimit)+" 分钟")])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("试题总数")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.subjectNum))])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("及格分数")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[0===e.vo.passenger.exam.passGrade?t("span",[e._v("不限制")]):e._e(),t("span",[e._v(e._s(e.vo.passenger.exam.passGrade)+" 分")])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("试题总分")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.totalGrade)+" 分")])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("可获学分")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.passenger.exam.credit)+" 分")])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("考试次数")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(" "+e._s(e.vo.passenger.exam.passenger.examCount)+"次/ "),0===e.vo.passenger.exam.examTimes?t("span",[e._v("(不限制)")]):t("span",[e._v("(可考"+e._s(e.vo.passenger.exam.examTimes)+"次)")])])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("交卷时间")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.passenger.examRecord.endTime))])])])])])])])]),t("div",{staticClass:"btnBox"},[1!==e.vo.passenger.examRecord.status?t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.getDeatil()}}},[e._v("答题详情")]):e._e(),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.onlineExam()}}},[e._v("不满意,重新考试")])],1)],1):e._e()},nr=[];function ar(e){return ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ar(e)}function or(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */or=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ar(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ar(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ir(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function sr(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ir(o,n,a,i,s,"next",e)}function s(e){ir(o,n,a,i,s,"throw",e)}i(void 0)}))}}function lr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(r),!0).forEach((function(t){ur(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ur(e,t,r){return(t=dr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dr(e){var t=pr(e,"string");return"symbol"==ar(t)?t:t+""}function pr(e,t){if("object"!=ar(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ar(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var hr={components:{},props:[],data:function(){return{vo:null}},computed:cr({},ce(["routes","loginUser"])),created:function(){var e=this;return sr(or().mark((function t(){return or().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.recordFormVo();case 1:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){},mounted:function(){},methods:{getDeatil:function(){window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/components/KsglComponentProblemDetail&type=2&id="+this.$route.query.id+"&logoTitle="+encodeURIComponent("学习考试")),window.location.reload()},onlineExam:function(){window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/grzx/wdks/KsglGrzxWdksExamDetail&type=2&id="+this.vo.passenger.exam.id+"&logoTitle="+encodeURIComponent("学习考试")),window.location.reload()},recordFormVo:function(){var e=this;return sr(or().mark((function t(){return or().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$http({url:"ksgl/exam/getexamRecordMoreInfo",method:"GET",params:{examRecordId:e.$route.query.id,personId:e.loginUser.personId}}).then((function(t){"success"===t.code?e.vo=t.body.paper:e.$message({type:"warning",message:t.body.message})}));case 1:case"end":return t.stop()}}),t)})))()}}},fr=hr,mr=(r(4821),c(fr,rr,nr,!1,null,"607248c4",null)),yr=mr.exports,vr=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"app-container"},[t("div",{staticClass:"topBtn clearfix"},[t("el-radio-group",{attrs:{size:"small"},on:{change:function(t){return e.initCourse(e.activeType)}},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},[t("el-radio-button",{attrs:{label:"0"}},[e._v("全部")]),t("el-radio-button",{attrs:{label:"1"}},[e._v("线上")]),t("el-radio-button",{attrs:{label:"2"}},[e._v("线下")])],1)],1),e.loading?e._e():t("div",{staticClass:"contentBox",staticStyle:{width:"100%"}},[t("el-row",{attrs:{gutter:"10",justify:"space-between"}},e._l(e.listdata,(function(r){return t("el-col",{key:r,attrs:{xs:8,sm:6,md:6,lg:6,xl:4}},[t("div",{staticClass:"outerBox",staticStyle:{width:"100%"}},[t("div",{staticClass:"courseBox"},[t("div",{staticClass:"imgCont"},[2===r.courseType?t("svg-icon",{staticStyle:{position:"absolute",width:"48px",height:"48px"},attrs:{"icon-class":"triangle"}}):e._e(),2===r.courseType?t("span",{staticStyle:{position:"absolute",transform:"rotate(-45deg)",top:"10px",left:"2px",color:"#fff"}},[e._v("选修")]):e._e(),t("img",{staticClass:"courseImg",attrs:{src:e.base_api+"/ksgl/course/download?dataField=cover&nameField=coverUrl&id="+r.id,alt:""},on:{click:function(t){return e.goDetail(r.id)}}}),"0"===e.activeType?t("span",{staticClass:"shoukeType"},[e._v(e._s(1===r.shoukeType?"线上":"线下"))]):e._e()],1),t("div",{staticClass:"courseTitle"},[t("div",{staticClass:"courseTitleTop clearfix"},[t("p",{staticClass:"l",staticStyle:{width:"100%",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis","font-size":"16px","margin-top":"7px",margin:"0"}},[e._v(e._s(r.name))]),r.lastStudyTime?t("p",{staticClass:"color3 margin5",staticStyle:{color:"#999","line-height":"20px"}},[e._v("最近学习:"+e._s(r.lastStudyTime)+" ")]):t("p",{staticClass:"color3 margin5",staticStyle:{color:"#999","line-height":"20px"}},[e._v("暂无学习记录 ")])]),t("div",{staticClass:"courseTitleBottom clearfix"},[t("el-progress",{staticClass:"l",staticStyle:{width:"80%","margin-top":"16px"},attrs:{"stroke-width":10,"show-text":!1,color:"#48BA79",percentage:r.coursePercentage}}),void 0!==r.finishChapterNum?t("span",{staticClass:"r"},[e._v(e._s(r.coursePercentage)+"%")]):e._e()],1)]),t("div",{staticClass:"dialog",on:{click:function(t){return e.goDetail(r.id)}}},[t("div",{staticClass:"btn-content"},[t("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.goDetail(r.id)}}},[e._v("查看课程")])],1)])])])])})),1),e.total>0?t("el-pagination",{attrs:{align:"right","current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total,"page-sizes":[12,18,24,36,48],"page-size":e.pageSize},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),0===e.total&&"w"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"images/w-imgs/nomessage.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("暂无数据")])]):e._e(),0===e.total&&"m"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"./images/m-imgs/nosearch.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("抱歉,无相关内容")])]):e._e()],1)])},gr=[];function _r(e){return _r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r(e)}function br(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */br=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==_r(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(_r(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function wr(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function xr(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){wr(o,n,a,i,s,"next",e)}function s(e){wr(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Lr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(r),!0).forEach((function(t){kr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kr(e,t,r){return(t=Tr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tr(e){var t=Dr(e,"string");return"symbol"==_r(t)?t:t+""}function Dr(e,t){if("object"!=_r(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Yr={components:{},props:{},data:function(){return{total:"",listdata:[],currentPage:1,pageNum:1,pageSize:100,checkList:[],activeType:"0",loading:!0,base_api:"",percentage:0,searchText:"",useImg:"w"}},computed:Mr({},ce(["routes","loginUser"])),watch:{},created:function(){this.base_api="/apigw",this.initCourse(),this.$bus.emit("hiddenAdvSearch",!0)},beforeDestroy:function(){this.$bus.emit("hiddenAdvSearch",!1)},mounted:function(){var e=this;this.$bus.on("searchListData",(function(t){e.useImg="m",e.searchText=t,e.initCourse(e.activeType)}))},methods:{handleSizeChange:function(e){console.log("每页 ".concat(e," 条"))},handleCurrentChange:function(e){console.log("当前页: ".concat(e)),this.currentPage=e,this.initCourse(this.activeType)},coursePercentage:function(e,t){return 0===t?0:(e/t*100).toFixed(1)},goDetail:function(e){window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type=3&id="+e+"&logoTitle="+encodeURIComponent("学习考试/学员中心/我的课程"))},initCourse:function(e){var t=this;return xr(br().mark((function r(){var n,a,o;return br().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(t.loading=!0,n={},n["name"]=t.searchText,a={pageNum:t.currentPage,pageSize:t.pageSize,orderBy:"lastStudyTime desc",orgCode:t.loginUser.orgCode,searchMap:n},o="","1"!==e){r.next=12;break}return t.activeType="1",r.next=9,t.$app.listdata("/ksgl/vwPersonCourse/listdata?urlsearch=shoukeType:1;finishStatus:1,2;status:1;ispublish:1;personId:"+t.loginUser.personId,a);case 9:o=r.sent,r.next=23;break;case 12:if("2"!==e){r.next=19;break}return t.activeType="2",r.next=16,t.$app.listdata("/ksgl/vwPersonCourse/listdata?urlsearch=shoukeType:2;finishStatus:1,2;status:1;ispublish:1;personId:"+t.loginUser.personId,a);case 16:o=r.sent,r.next=23;break;case 19:return t.activeType="0",r.next=22,t.$app.listdata("/ksgl/vwPersonCourse/listdata?urlsearch=status:1;finishStatus:1,2;ispublish:1;personId:"+t.loginUser.personId,a);case 22:o=r.sent;case 23:"success"===o.code?(console.log(o,12121212),t.total=o.body.pageInfo.total,t.listdata=o.body.pageInfo.list,t.listdata.forEach((function(e){e.coursePercentage=t.coursePercentage(e.finishChapterNum,e.courseNum)}))):t.$message.error(o.message),t.loading=!1;case 25:case"end":return r.stop()}}),r)})))()},transTime:function(e){if(null===e)return e=0,e;if(e<60)return e+="秒",e;var t=Math.floor(e/60),r=Math.floor(e%60);if(t<60)return e=t+"分"+r+"秒",e;var n=Math.floor(t/60),a=Math.floor(t%60);return e=n+"小时"+a+"分"+r+"秒",e}}},Sr=Yr,Cr=(r(4762),r(1989),c(Sr,vr,gr,!1,null,"18334cb0",null)),jr=Cr.exports,Er=function(){var e=this,t=e._self._c;return t("div",[t("section",{staticClass:"wh_container"},[t("div",{staticClass:"wh_content_all"},[e.isSwitchover?e._e():t("div",{staticClass:"wh_top_title"},[t("div",{staticStyle:{"padding-left":"30px"},on:{click:function(t){e.leftArrowShow&&e.swiperight()}}},[t("el-button",{class:e.leftArrowShow?"":"topArrow",attrs:{icon:"el-icon-arrow-left"}})],1),t("div",{staticStyle:{width:"100%","text-align":"center","font-size":"16px"}},[e._v(e._s(e.dateTop))]),t("div",{staticStyle:{"padding-right":"30px"},on:{click:function(t){e.rightArrowShow&&e.swipeleft()}}},[t("el-button",{class:e.rightArrowShow?"":"topArrow",attrs:{icon:"el-icon-arrow-right"}})],1)]),e.isSwitchover?t("div",{staticClass:"wh_top_changge"},[t("li",{on:{click:function(t){return e.PreMonth(e.myDate,!1)}}},[t("div",{staticClass:"wh_jiantou1"})]),t("li",{staticClass:"wh_content_li"},[e._v(e._s(e.dateTop))]),t("li",{on:{click:function(t){return e.NextMonth(e.myDate,!1)}}},[t("div",{staticClass:"wh_jiantou2"})])]):e._e(),t("div",{staticClass:"wh_content"},e._l(e.textTop,(function(r,n){return t("div",{key:n,staticClass:"wh_content_item"},[t("div",{staticClass:"wh_top_tag"},[e._v(e._s(r))])])})),0),"month"===e.userType?t("div",{staticClass:"clendar_inner"},[t("div",{staticClass:"wh_content"},e._l(e.list.nowMonth,(function(r,n){return t("div",{key:n,staticClass:"wh_content_item",class:e.errorDay[r.id]&&e.errorDay[r.id].month===r.date?0===e.errorDay[r.id].flag?"succFlag":"errorFlag":"",on:{click:function(t){!r.isExceed&&e.clickSomeDay(r,n)}}},[t("div",{staticClass:"wh_item_date",class:[{wh_isExceed:r.isExceed},{wh_isMark:r.isMark},{wh_other_dayhide:"nowMonth"!==r.otherMonth},{wh_want_dayhide:r.dayHide},{wh_isToday:r.isToday&&!r.chooseDay},{wh_chose_day:r.chooseDay}]},[e._v(e._s(r.id))])])})),0)]):e._e(),e.dialogVisible?t("van-dialog",{attrs:{"close-on-click-overlay":!0,"lock-scroll":!0,"close-on-popstate":!0,"show-confirm-button":!1,"show-cancel-button":!1},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[t("div",{staticClass:"van_col_title",on:{click:function(t){return e.selectYearClick(e.selectYear)}}},[e._v(e._s(e.dialogTitle))]),t("div",{staticStyle:{padding:"10px"},on:{touchstart:e.gotouchstart,touchend:e.gotouchend,touchmove:e.gotouchmove}},[t("van-row",{attrs:{align:"center"}},[e._l(e.options,(function(r,n){return[t("van-col",{key:n,staticClass:"van_col",attrs:{span:"8"},on:{click:function(t){return e.choose(n,r)}}},[t("span",{staticStyle:{"line-height":"20px"},style:{color:"month"===e.selectType&&(e.nowYear===e.selectYear||e.currerYear===e.selectYear)&&e.selectMonth===n+1||e.selectYear===r?"#1989fa":""}},[e._v(e._s(r))])])]}))],2)],1)]):e._e()],1)])])},Or=[];function Pr(e){return Ir(e)||Hr(e)||Nr(e)||Ar()}function Ar(){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 Nr(e,t){if(e){if("string"==typeof e)return Fr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fr(e,t):void 0}}function Hr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ir(e){if(Array.isArray(e))return Fr(e)}function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var zr={getDaysInOneMonth:function(e){var t=e.getFullYear(),r=e.getMonth()+1,n=new Date(t,r,0);return n.getDate()},getMonthweek:function(e){var t=e.getFullYear(),r=e.getMonth()+1,n=new Date(t+"/"+r+"/1");return this.sundayStart?0===n.getDay()?7:n.getDay():0===n.getDay()?6:n.getDay()-1},getOtherMonth:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nextMonth",n=this.dateFormat(e).split("/"),a=n[0],o=n[1],i=n[2],s=a;"nextMonth"===r?(t=parseInt(o)+1,13===t&&(s=parseInt(s)+1,t=1)):(t=parseInt(o)-1,0===t&&(s=parseInt(s)-1,t=12));var l=i,c=new Date(s,t,0).getDate();l>c&&(l=c),t<10&&(t="0"+t),l<10&&(l="0"+l);var u=s+"/"+t+"/"+l;return new Date(u)},getOtherWeek:function(e,t){var r=new Date(e);return"preWeek"===t?new Date(new Date(r).getTime()-6048e5):new Date(new Date(r).getTime()+6048e5)},getLeftArr:function(e){for(var t=[],r=this.getMonthweek(e),n=this.getDaysInOneMonth(this.getOtherMonth(e,"preMonth"))-r+1,a=this.getOtherMonth(e,"preMonth"),o=0;o<r;o++){var i=a.getFullYear()+"/"+(a.getMonth()+1)+"/"+(n+o);t.push({id:n+o,date:i,isToday:!1,otherMonth:"preMonth"})}return t},getRightArr:function(e){for(var t=[],r=this.getOtherMonth(e,"nextMonth"),n=this.getDaysInOneMonth(e)+this.getMonthweek(e),a=7-n%7,o=0;o<a;o++){var i=r.getFullYear()+"/"+(r.getMonth()+1)+"/"+(o+1);t.push({id:o+1,date:i,isToday:!1,otherMonth:"nextMonth"})}return t},dateFormat:function(e){return e="string"===typeof e?new Date(e.replace(/\-/g,"/")):e,e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()},getMonthListNoOther:function(e){for(var t=[],r=this.getDaysInOneMonth(e),n=e.getFullYear(),a=e.getMonth()+1,o=this.dateFormat(new Date),i=0;i<r;i++){var s=n+"/"+a+"/"+(i+1);t.push({id:i+1,date:s,isToday:o===s,otherMonth:"nowMonth"})}return t},getMonthList:function(e){var t=new Date(e.getFullYear(),e.getMonth()-1),r=new Date(e.getFullYear(),e.getMonth()+1),n={};return n.lastMonth=[].concat(Pr(this.getLeftArr(t)),Pr(this.getMonthListNoOther(t)),Pr(this.getRightArr(t))),n.nowMonth=[].concat(Pr(this.getLeftArr(e)),Pr(this.getMonthListNoOther(e)),Pr(this.getRightArr(e))),n.nextMonth=[].concat(Pr(this.getLeftArr(r)),Pr(this.getMonthListNoOther(r)),Pr(this.getRightArr(r))),n},createClendar:function(e,t,n){for(var a=new Date(t),o=r(5093),i=new Date,s=[],l=0;l<7;l++){var c=new Date(e.getTime()+24*l*60*60*1e3),u=null;u=c.getFullYear()===a.getFullYear()?c.getMonth()===a.getMonth()?"nowMonth":c.getMonth()<a.getMonth()?"preMonth":"nextMonth":c.getFullYear()<a.getFullYear()?"preMonth":"nextMonth",s.push({id:c.getDate(),date:o(c).format(n?"YYYY/MM/DD":"YYYY/M/D"),isToday:o(c).format(n?"YYYY/MM/DD":"YYYY/M/D")===o(i).format(n?"YYYY/MM/DD":"YYYY/M/D"),otherMonth:u})}return s},getNowWeek:function(e,t){var r=e.getDay(),n=null,a=null,o=null;return this.sundayStart?(n=new Date(new Date(e).getTime()-24*r*60*60*1e3),a=new Date(new Date(n).getTime()-6048e5),o=new Date(new Date(n).getTime()+6048e5)):(n=new Date(new Date(e).getTime()-24*(0===r?6:r-1)*60*60*1e3),a=new Date(new Date(n).getTime()-6048e5),o=new Date(new Date(n).getTime()+6048e5)),{lastWeek:this.createClendar(a,e,t),nowWeek:this.createClendar(n,e,t),nextWeek:this.createClendar(o,e,t)}},getYearlist:function(e){for(var t=[],r=Number(e.toString().substr(0,3)+0),n=0;n<10;n++)t.push(r++);return t},getLeftAfteryear:function(e){for(var t=[],r=e-20;r<=e;r++)t.push(r);return t},getWeeklist:function(e,t){for(var r=new Date(e,t-1),n=r.getDay(),a=r.getTime()-24*(0===n?6:n-1)*60*60*1e3,o=a+5184e5,i=new Date(new Date(e,t).setDate(0)).getDate(),s=r.getTime()+24*(i-1)*60*60*1e3,l=new Date(s).getDay(),c=s+24*(7-(0===l?7:l))*60*60*1e3,u=(c-a+864e5)/1e3/60/60/24/7,d=[],p=0;p<u;p++)0!==p&&(a+=6048e5,o+=6048e5),d.push({start:new Date(a),end:new Date(o),num:p+1,month:t});return d},sundayStart:!1};function Br(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Wr(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function Gr(e,t){return qr(e)||Ur(e,t)||Wr(e,t)||Rr()}function Rr(){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 Wr(e,t){if(e){if("string"==typeof e)return Vr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vr(e,t):void 0}}function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ur(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}function qr(e){if(Array.isArray(e))return e}var Xr={props:{markDate:{type:Array,default:function(){return[]}},markDateMore:{type:Array,default:function(){return[]}},textTop:{type:Array,default:function(){return["一","二","三","四","五","六","日"]}},sundayStart:{type:Boolean,default:!1},agoDayHide:{type:String,default:"0"},futureDayHide:{type:String,default:"2554387200"},getDayDetails:{type:Function,default:function(){return null}},errorDay:{type:Array,default:function(){return[]}},changeDate:{type:Function,default:function(){return null}},isSwitchover:{type:Boolean,default:!1},defaultType:{type:String,default:"month"},startTime:{type:String,default:""},endTime:{type:String,default:""}},data:function(){return{myDate:new Date,list:{},historyChose:[],dateTop:"",choseOtherDay:!1,dialogVisible:!1,vueMoves:!1,vueLeave:!1,longTouch:!1,vueTouches:{},updateDate:!1,dialogTitle:"",allMonth:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],options:[],someDayArr:[],selectMonth:"",selectYear:"",selectType:"month",userType:"",leftArrowShow:!0,rightArrowShow:!0}},watch:{markDate:{handler:function(e,t){this.getList(this.myDate)},deep:!0},markDateMore:{handler:function(e,t){this.getList(this.myDate)},deep:!0},agoDayHide:{handler:function(e,t){this.getList(this.myDate)},deep:!0},futureDayHide:{handler:function(e,t){this.getList(this.myDate)},deep:!0},sundayStart:{handler:function(e,t){this.intStart(),this.getList(this.myDate)},deep:!0},myDate:{handler:function(e){this.arrowShow(e)},immediate:!0,deep:!0}},created:function(){var e=new Date;this.startTime&&(e=new Date(this.startTime.replace(/-/g,"/")),this.myDate=e),this.nowMonth=e.getMonth()+1,this.nowYear=e.getFullYear(),this.currerYear=e.getFullYear(),this.intStart()},mounted:function(){this.userType=this.defaultType,this.getList(this.myDate),this.someDayArr=[]},methods:{arrowShow:function(e){var t=e.getFullYear(),r=e.getMonth(),n=new Date(t,r+1,0).getDate();r>12&&(r-=12,t++);var a=new Date(t,r,1),o=new Date(a.getTime()+864e5*n);o>new Date(this.endTime)?this.rightArrowShow=!1:this.rightArrowShow=!0,a<new Date(this.startTime)?this.leftArrowShow=!1:this.leftArrowShow=!0},intStart:function(){zr.sundayStart=this.sundayStart},setClass:function(e){var t={};return t[e.markClassName]=e.markClassName,t.dayHide=!0,t},gotouchstart:function(e){this.vueMoves=!0,this.vueLeave=!0,this.longTouch=!0,this.vueTouches={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}},gotouchend:function(e){var t=e.changedTouches[0].pageX-this.vueTouches.x,r=e.changedTouches[0].pageY-this.vueTouches.y;(Math.abs(t)>10||Math.abs(r)>100)&&(Math.abs(t)>Math.abs(r)?(t>10&&this.swiperight(),t<-10&&this.swipeleft()):(r>10&&this.swipedown(),r<-10&&this.swipeup()))},gotouchmove:function(e){this.vueMoves=!1},swipeup:function(){this.dialogVisible||(this.userType="week",this.getList(this.myDate))},swipedown:function(){this.dialogVisible||(this.userType="month",this.getList(this.myDate))},swipeleft:function(){this.NextMonth(this.myDate,!1),this.$forceUpdate()},swiperight:function(){this.PreMonth(this.myDate,!1),this.$forceUpdate()},clickDay:function(e,t){if(this.myDate=new Date(e.date),null!==this.getDayDetails&&this.getDayDetails(e,t),"month"===this.userType)"nowMonth"!==e.otherMonth||e.dayHide||this.getList(this.myDate,e.date,!1,this.userType),"nowMonth"!==e.otherMonth&&("preMonth"===e.otherMonth?this.PreMonth(e.date,!0):this.NextMonth(e.date,!0));else{var r=new Date(e.date);this.getList(r,e.date,!0,this.userType)}},selectMonthClick:function(e,t){this.dialogTitle=e+"年",this.options=this.allMonth,this.selectMonth=t,this.selectYear=e,this.dialogVisible=!0},selectYearClick:function(e){this.selectType="year",this.options=zr.getYearlist(e),this.dialogTitle=this.options[0]+"年 - "+this.options[9]+"年"},choose:function(e,t){"month"===this.selectType?(this.selectMonth=e+1,this.myDate=new Date(this.selectYear,e,1),this.nowMonth=this.selectMonth,this.nowYear=this.selectYear,this.getList(this.myDate),this.dialogVisible=!1):"year"===this.selectType&&(this.selectYear=t,t===(new Date).getFullYear()&&(this.selectMonth=(new Date).getMonth()+1),this.dialogTitle=t+"年",this.selectType="month",this.options=this.allMonth)},preSelectDialog:function(e){if("pre"===e){if("month"===this.selectType){if(1970===this.selectYear)return;this.selectYear-=1,this.dialogTitle=this.selectYear+"年"}else if("year"===this.selectType){if(1970===this.options[0])return;this.selectYearClick(this.options[0]-10)}}else if("month"===this.selectType){if(this.selectYear===(new Date).getFullYear()+19)return;this.selectYear+=1,this.dialogTitle=this.selectYear+"年"}else if("year"===this.selectType){if(this.options[0]===(new Date).getFullYear()+10)return;this.selectYearClick(this.options[0]+10)}},PreMonth:function(e,t){1970===e.getFullYear()&&e.getMonth()+1===1||(e=zr.dateFormat(e),this.myDate="month"===this.userType?zr.getOtherMonth(this.myDate,"preMonth"):zr.getOtherWeek(this.myDate,"preWeek"),this.nowMonth=this.myDate.getMonth()+1,this.nowYear=this.myDate.getFullYear(),this.$emit("changeDate",zr.dateFormat(this.myDate)),null!==this.changeDate&&this.changeDate(zr.dateFormat(this.myDate)),t?this.getList(this.myDate,e,t):this.getList(this.myDate))},NextMonth:function(e,t){"string"===typeof e&&(e=new Date(e)),e.getFullYear()===(new Date).getFullYear()+19&&e.getMonth()+1===12||(e=zr.dateFormat(e),this.myDate="month"===this.userType?zr.getOtherMonth(this.myDate,"nextMonth"):zr.getOtherWeek(this.myDate,"nextWeek"),this.nowMonth=this.myDate.getMonth()+1,this.nowYear=this.myDate.getFullYear(),this.$emit("changeDate",zr.dateFormat(this.myDate)),null!==this.changeDate&&this.changeDate(zr.dateFormat(this.myDate)),t?this.getList(this.myDate,e,t):this.getList(this.myDate))},forMatArgs:function(){var e=this.markDate,t=this.markDateMore;return e=e.map((function(e){return zr.dateFormat(e)})),t=t.map((function(e){return e.date=zr.dateFormat(e.date),e})),[e,t]},clickSomeDay:function(e,t){var r=this;this.choseOtherDay||(this.choseOtherDay=!0),e.chooseDay?this.someDayArr.forEach((function(t,n){e.id===t.id&&r.someDayArr.splice(n,1)})):this.someDayArr.push(e),e.chooseDay=!e.chooseDay,this.getDayDetails(this.someDayArr,t)},getList:function(e,t){var r=this,n=this.forMatArgs(),a=Gr(n,2),o=a[0],i=a[1];e&&(this.dateTop="".concat(e.getFullYear(),"年").concat(e.getMonth()+1,"月"));var s=null;for(var l in s="month"===this.userType?zr.getMonthList(this.myDate):zr.getNowWeek(this.myDate,!1),s)for(var c=s[l],u=function(){var e="",n=c[d];n.chooseDay=!1,n.isExceed=!1;var a,s=n.date,l=new Date(s).getTime()/1e3,u=Br(i);try{for(u.s();!(a=u.n()).done;){var p=a.value;p.date===s&&(e=p.className||"")}}catch(f){u.e(f)}finally{u.f()}r.someDayArr.forEach((function(e){e.date.replace(/\-0/g,"-")===n.date.replace(/\//g,"-")&&(console.log(n),n.chooseDay=!0)})),n.markClassName=e,n.isMark=o.indexOf(s)>-1,n.dayHide=l<r.agoDayHide||l>r.futureDayHide,n.isToday&&r.$emit("isToday",s);var h=!n.dayHide&&"nowMonth"===n.otherMonth||"week"===r.userType;t&&t===s&&h?(r.$emit("choseDay",s),r.historyChose.push(s),n.chooseDay=!0,n.isToday?r.choseOtherDay=!1:r.choseOtherDay=!0):r.historyChose[r.historyChose.length-1]===s&&!t&&h&&(n.chooseDay=!0,n.isToday?r.choseOtherDay=!1:r.choseOtherDay=!0),(new Date(n.date)>new Date(r.endTime)||new Date(n.date)<new Date(r.startTime))&&(n.isExceed=!0)},d=0;d<c.length;d++)u();this.list=s,this.$nextTick((function(){r.updateDate=!0}))}}},Kr=Xr,Jr=(r(937),r(5950),c(Kr,Er,Or,!1,null,"5a92668a",null)),Qr=Jr.exports,Zr=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"padding-top":"30px"}},[null!==e.vo?t("section",{staticClass:"online-top",staticStyle:{position:"relative"}},[t("p",{staticClass:"examTitle"},[e._v(e._s(e.chapterName))]),e._m(0),t("el-button",{staticStyle:{position:"absolute",top:"40px",right:"30px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.submitpaper()}}},[e._v("提交试卷")]),t("ul",{staticClass:"cards clearfix"},e._l(e.vo.subjectManages,(function(r,n){return t("div",{key:r},[t("li",{class:n===e.defaultProblem?"zhengzaizuo":null!==r.answerContent?"yizuo":"weizuo",on:{click:function(t){return e.linkNum(r,n)}}},[e._v(e._s(n+1))])])})),0)],1):e._e(),null!==e.vo?t("section",{staticClass:"paperBox"},[t("ul",{staticClass:"paperInnerBox"},e._l(e.vo.subjectManages,(function(r,n){return t("div",{key:r},[t("li",{directives:[{name:"show",rawName:"v-show",value:e.defaultProblem===n,expression:"defaultProblem === index"}],staticStyle:{"list-style":"none"}},[1===r.type||3===r.type?t("danxuan",{attrs:{grade:!1,"problem-obj":r,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e(),4===r.type?t("tiankong",{attrs:{"problem-obj":r,grade:!1,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e(),5===r.type?t("wenda",{attrs:{"problem-obj":r,grade:!1,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e(),2===r.type?t("duoxuan",{attrs:{"problem-obj":r,grade:!1,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e()],1)])})),0),t("div",{staticClass:"btnBox"},[e.defaultProblem>0?t("el-button",{attrs:{size:"mini",plain:""},on:{click:function(t){return e.beforeAndNext("before")}}},[e._v("上一题")]):e._e(),e.defaultProblem<e.numProblem-1?t("el-button",{attrs:{size:"mini",plain:""},on:{click:function(t){return e.beforeAndNext("next")}}},[e._v("下一题")]):e._e(),t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.beforeAndNext("nextAndSubmit")}}},[e._v("确定")])],1)]):e._e()])},$r=[function(){var e=this,t=e._self._c;return t("ul",{staticClass:"cardTitle clearfix"},[t("li",[e._v("答题卡")]),t("li",[t("span",{staticStyle:{display:"inline-block",width:"10px",height:"10px","background-color":"rgba(64, 158, 255, 0.6)"}}),t("span",[e._v(" 已做")])]),t("li",[t("span",{staticStyle:{display:"inline-block",width:"10px",height:"10px","background-color":"rgba(235, 237, 240, 1)"}}),t("span",[e._v(" 未做")])]),t("li",[t("span",{staticStyle:{display:"inline-block",width:"10px",height:"10px","background-color":"rgba(64, 158, 255, 1)"}}),t("span",[e._v(" 当前")])])])}];function en(e){return en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},en(e)}function tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(r),!0).forEach((function(t){nn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nn(e,t,r){return(t=an(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function an(e){var t=on(e,"string");return"symbol"==en(t)?t:t+""}function on(e,t){if("object"!=en(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=en(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var sn=r(5093),ln={components:{danxuan:d,duoxuan:v,wenda:S,tiankong:L},props:{},data:function(){return{vo:null,numProblem:0,problemsList:[],examAnswerList:[],defaultProblem:0,CutdownTime:"",examAnswerParams:null,exerciseRecord:{},chapterId:"",recordId:"",startTime:"",chapterName:""}},computed:rn({},ce(["routes","loginUser"])),watch:function(){},created:function(){this.chapterId=this.$route.query.id,this.chapterName=this.$route.query.chapterName,this.startTime=new Date,console.log(sn(new Date(this.startTime)).format("YYYY-MM-DD HH:mm:ss")),this.addNew(),this.doExercise()},beforeDestroy:function(){},mounted:function(){var e=this;this.$bus.on("answerContentInner",(function(t){e.examAnswerParams=t,console.log(t)}))},methods:{addNew:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/ksgl/exerciseRecord/addNew"}).then((function(t){"success"===t.code?e.recordId=t.body.vo.id:e.$message.error(t.message)}))},doExercise:function(){var e=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{chapterId:this.chapterId},url:"/ksgl/courseChapter/getExerciseRecordInfo"}).then((function(t){"success"===t.code?(e.numProblem=t.body.subjectManages.length,e.vo=t.body,e.vo.subjectManages.map((function(e){e.answerContent=null})),console.log(e.vo)):e.$message.error(t.message)}))},beforeAndNext:function(e){var t=this;console.log(this.examAnswerParams),"before"===e?this.defaultProblem--:"next"===e?this.defaultProblem!==this.numProblem-1&&this.defaultProblem++:"nextAndSubmit"===e&&(null!==this.examAnswerParams&&this.examAnswerList.map((function(e,r){t.examAnswerList[t.examAnswerParams.indexProblem-1].answerContent=t.examAnswerParams.value,t.examAnswerList[t.examAnswerParams.indexProblem-1].grade=t.examAnswerParams.grade})),this.defaultProblem!==this.numProblem-1&&this.defaultProblem++),null!==this.examAnswerParams&&this.vo.subjectManages.map((function(e,r){t.vo.subjectManages[t.examAnswerParams.indexProblem-1].answerContent=t.examAnswerParams.value}))},linkNum:function(e,t){this.defaultProblem=t},submitpaper:function(){var e=this;console.log(this.vo.subjectManages);var t=this.vo.subjectManages.filter((function(t,r){return null===e.vo.subjectManages[r].answerContent}));console.log(t),this.submitPaperFuc()},submitPaperFuc:function(){var e=this,t=[];this.vo.subjectManages.map((function(r,n){var a={answerContent:r.answerContent,id:"",istrue:0,passenger:{},personId:e.loginUser.personId,recordId:e.recordId,subjectId:r.id,subjectNo:n};t.push(a)})),this.exerciseRecord.chapterId=this.chapterId,this.exerciseRecord.personId=this.loginUser.personId,this.exerciseRecord.personName=this.loginUser.personName,this.exerciseRecord.startTime=this.startTime,this.exerciseRecord.id=this.recordId,this.exerciseRecord.passenger={},this.exerciseRecord.passenger.exerciseSubjectList=t,this.$http({url:"/ksgl/exerciseRecord/insert",method:"POST",data:this.exerciseRecord}).then((function(t){if("success"!==t.code)return e.$message({type:"warning",message:t.message}),!1;window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/components/KsglComponentProblemDetail&logoTitle=学习考试&chapterName="+e.chapterName+"&chapterId="+e.chapterId+"&type=3&id="+t.body.vo.recordId),window.location.reload()}))}}},cn=ln,un=(r(952),c(cn,Zr,$r,!1,null,"81864332",null)),dn=un.exports,pn=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"padding-top":"30px"}},[null!==e.vo?t("section",{staticClass:"problemDetailTop"},[t("p",{staticClass:"examTitle"},[e._v(e._s(e.chapterName))]),t("div",{staticClass:"titleTop"},[t("h4",{staticStyle:{"padding-top":"0","padding-bottom":"10px"}},[e._v(e._s(e.vo.name))]),t("ul",{staticClass:"titleTop-long",staticStyle:{"font-size":"var(--portalFontSize12)",color:"#999"}},[t("li",[t("span",[e._v("全部试题:")]),e._v(" "),t("span",[e._v(e._s(e.numProblem))])]),t("li",[t("span",[e._v("单选题:")]),e._v(" "),t("span",[e._v(e._s(e.typeCount.danXCount))])]),t("li",[t("span",[e._v("多选题:")]),e._v(" "),t("span",[e._v(e._s(e.typeCount.duoXCount))])]),t("li",[t("span",[e._v("判断题:")]),e._v(" "),t("span",[e._v(e._s(e.typeCount.panDCount))])]),t("li",[t("span",[e._v("填空题:")]),e._v(" "),t("span",[e._v(e._s(e.typeCount.tianKCount))])]),t("li",[t("span",[e._v("问答题:")]),e._v(" "),t("span",[e._v(e._s(e.typeCount.wenDCount))])])])])]):e._e(),null!==e.vo?t("section",{staticClass:"paperBox"},[t("ul",{staticClass:"paperInnerBox"},e._l(e.vo.subjectManages,(function(r,n){return t("div",{key:r,staticStyle:{"border-bottom":"1px solid rgb(235, 238, 245)"}},[t("li",{staticStyle:{"list-style":"none"}},[1===r.type||3===r.type?t("danxuan",{attrs:{grade:!1,"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"answer-content":r.trueOption,"type-content":"3"}}):e._e(),4===r.type?t("tiankong",{attrs:{"problem-obj":r,grade:!1,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"answer-content":r.trueOption,"type-content":"3"}}):e._e(),5===r.type?t("wenda",{attrs:{"problem-obj":r,grade:!1,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"answer-content":r.trueOption,"type-content":"3"}}):e._e(),2===r.type?t("duoxuan",{attrs:{"problem-obj":r,grade:!1,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"answer-content":r.trueOption,"type-content":"3"}}):e._e()],1),t("div",{staticClass:"innerBox"},[t("p",[t("span",[e._v("正确答案:")]),t("span",[e._v(e._s(4===r.type?e.translateTrue(r.trueOption):r.trueOption))])])]),t("div",{staticClass:"innerBox",staticStyle:{width:"100%"}},[t("p",[t("span",[e._v("答案解析:")]),e._v(e._s(e.vo.subjectManages[n].answerExplain.substr(0,50))+" ")])])])})),0)]):e._e()])},hn=[];function fn(e){return fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fn(e)}function mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(r),!0).forEach((function(t){vn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vn(e,t,r){return(t=gn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gn(e){var t=_n(e,"string");return"symbol"==fn(t)?t:t+""}function _n(e,t){if("object"!=fn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var bn={components:{danxuan:d,duoxuan:v,wenda:S,tiankong:L},props:{},data:function(){return{vo:null,numProblem:0,problemsList:[],examAnswerList:[],chapterId:"",chapterName:"",typeCount:[],answerType:["正确答案","答案解析"]}},computed:yn({},ce(["routes","loginUser"])),watch:function(){},created:function(){this.chapterId=this.$route.query.id,this.chapterName=this.$route.query.chapterName,this.doExercise()},beforeDestroy:function(){},mounted:function(){},methods:{translateTrue:function(e){if(e){var t=/\|\#\|/g,r=e.replace(t,",");return r}return e},doExercise:function(){var e=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{chapterId:this.chapterId},url:"/ksgl/courseChapter/getExerciseRecordInfo"}).then((function(t){"success"===t.code?(e.numProblem=t.body.subjectManages.length,e.typeCount=t.body.subjectTypeCount,e.vo=t.body,e.vo.subjectManages.map((function(e){e.answerContent=null})),console.log(e.vo)):e.$message.error(t.message)}))}}},wn=bn,xn=(r(659),c(wn,pn,hn,!1,null,"046f4635",null)),Ln=xn.exports,Mn=function(){var e=this,t=e._self._c;return t("div",[t("courseTop",{attrs:{vo:e.courseData.courseVo,title:"章节练习记录"}}),t("div",{staticStyle:{margin:"0","margin-top":"20px",border:"1px solid #EBEEF5"}},[t("p",{staticClass:"clearfix",staticStyle:{padding:"0 2%"}},[t("span",{staticClass:"l"},[e._v(e._s(e.chapterName))]),e._v(" "),t("span",{staticClass:"color1 r",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.doExercise(e.chapterName)}}},[e._v("练习")])]),t("div",{staticStyle:{width:"100%","border-top":"1px solid #EBEEF5"}},["2"===e.typeEnter?t("div",[t("el-table",{staticStyle:{width:"96%",margin:"0 2%","margin-bottom":"20px","margin-top":"20px"},attrs:{border:"",data:e.tableData}},[t("el-table-column",{attrs:{label:"序号",align:"center",type:"index"}}),t("el-table-column",{attrs:{label:"开始时间",align:"center",prop:"startTime"}}),t("el-table-column",{attrs:{label:"结束时间",align:"center",prop:"endTime"}}),t("el-table-column",{attrs:{label:"用时/分",align:"center",prop:"useTime"}}),t("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",{staticStyle:{cursor:"pointer",color:"#409EFE"},attrs:{"font-size":"20px"},on:{click:function(t){return e.exerciseDetail(r.row.id)}}},[e._v("查看练习详情")])]}}],null,!1,1235908438)})],1)],1):e._e(),t("div",[t("el-input",{staticClass:"r",staticStyle:{width:"200px",margin:"5px 2%"},attrs:{size:"mini",placeholder:"部门/姓名/章节"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),t("el-table",{staticStyle:{width:"96%",margin:"0 2%","margin-bottom":"20px"},attrs:{border:"",data:e.tableData}},[t("el-table-column",{attrs:{label:"序号",align:"center",type:"index"}}),t("el-table-column",{attrs:{label:"开始时间",align:"center",prop:"startTime"}}),t("el-table-column",{attrs:{label:"结束时间",align:"center",prop:"endTime"}}),t("el-table-column",{attrs:{label:"用时/分",align:"center",prop:"useTime"}}),t("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",{staticStyle:{cursor:"pointer",color:"#409EFE"},attrs:{"font-size":"20px"},on:{click:function(t){return e.exerciseDetail(r.row.id)}}},[e._v("查看练习详情")])]}}])})],1),t("el-pagination",{staticStyle:{margin:"0 2%","margin-bottom":"10px"},attrs:{align:"right","current-page":e.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)])])],1)},kn=[],Tn=function(){var e=this,t=e._self._c;return t("div",[t("section",{staticClass:"courseBox1 clearfix"},[t("div",{staticClass:"imgCont l",staticStyle:{width:"260px"}},["2"!==e.typeEnter?t("svg-icon",{staticStyle:{position:"absolute",width:"48px",height:"48px"},attrs:{"icon-class":"triangle"}}):e._e(),"2"!==e.typeEnter?t("span",{staticStyle:{position:"absolute",transform:"rotate(-45deg)",top:"10px",left:"2px",color:"#fff","font-size":"var(--portalFontSize12)"}},[e._v(e._s(1===e.vo.courseVo.bmState||1===e.bmState?"已报名":"未报名"))]):e._e(),t("img",{staticClass:"courseImg",attrs:{src:e.base_api+"/ksgl/course/download?dataField=cover&isOriginal=true&nameField=coverUrl&id="+e.$route.query.id,alt:""}}),"2"!==e.typeEnter&&1!==e.vo.courseVo.shoukeType?t("span",{staticClass:"shoukeType1"},[e._v(e._s(e.courseTimeJudge(e.vo.courseVo.stateTime,e.vo.courseVo.endTime)))]):e._e(),t("span",{staticClass:"shoukeType"},[e._v(e._s(1===e.vo.courseVo.shoukeType?"线上":"线下"))])],1),t("div",{staticClass:"courseBox1-right l",staticStyle:{width:"calc(100% - 280px)"}},[t("p",{staticClass:"clearfix",staticStyle:{width:"calc(100% - 60px)","max-height":"60px",overflow:"hidden","white-space":"nowrap"}},[t("span",{staticClass:"l mR10",staticStyle:{"font-size":"22px","font-weight":"600"}},[e._v(e._s(e.vo.courseVo.name))])]),t("p",{staticClass:"color2"},[t("span",[e._v("培训对象:")]),t("span",{staticClass:"study-name"},[e._v(e._s(e.vo.courseVo.studyName||"全体"))])]),t("p",{staticClass:"color2"},[t("span",[e._v("课程学分:")]),t("span",{staticClass:"mR10"},[e._v(" "+e._s(e.vo.courseVo.credit)+"分")])]),2===e.vo.courseVo.shoukeType?t("p",{staticClass:"color2"},[t("span",[e._v("课程日期:")]),t("span",[e._v(e._s(e.timeFormat(e.vo.courseVo.stateTime)+" 至 "+e.timeFormat(e.vo.courseVo.endTime)))])]):e._e(),t("p",{staticClass:"color2"},[t("span",[e._v("授课方式:")]),t("span",[e._v(e._s(1===e.vo.courseVo.shoukeType?"线上":"线下"))])]),2===e.vo.courseVo.shoukeType?t("p",{staticClass:"color2"},[t("span",[e._v("上课地址:")]),t("span",[e._v(e._s(e.vo.courseVo.address))])]):e._e(),1===e.vo.courseVo.shoukeType?t("p",{staticClass:"color2"},[t("span",{staticClass:"color1",staticStyle:{"font-size":"20px"}},[e._v(e._s(e.vo.yi||0))]),t("span",{staticClass:"mR10"},[e._v("人已学完")]),t("span",{staticClass:"color1",staticStyle:{"font-size":"20px"}},[e._v(e._s(e.vo.wei||0))]),t("span",[e._v("人正在学")])]):e._e(),"2"!==e.typeEnter?t("div",{staticStyle:{display:"flex"}},[1===e.vo.courseVo.bmState||1===e.bmState?t("div",{staticStyle:{flex:"1"}},[t("p",[t("span",{staticClass:"study-progress"},[e._v("学习进度:"),t("el-progress",{staticStyle:{width:"300px"},attrs:{"stroke-width":10,color:"#67C23A",percentage:e.percentage}})],1)]),1===e.vo.courseVo.shoukeType?t("p",{staticClass:"color2"},[0===Number(e.percentage)?t("span",[e._v("课程很精彩,你还没有进行学习,赶紧学习卷起来吧!")]):Number(e.percentage)<100?t("span",[e._v("目前已学习了"+e._s(e.percentage)+"%,继续加油啊!")]):t("span",[e._v("恭喜你!课程已全部学完,学习要懂得温故而知新,记得时常来看看我哦!")])]):e._e(),1===e.vo.courseVo.shoukeType?t("p",{staticClass:"color2"},[e._v("学习时长:"+e._s(e.formatSeconds(e.vo.totalTime)))]):e._e()]):e._e(),t("div",[1!==e.vo.courseVo.shoukeType||1!==e.vo.courseVo.bmState&&1!==e.bmState?e._e():t("el-button",{staticStyle:{width:"156px"},attrs:{disabled:"已结束"===e.courseTimeJudge(e.vo.stateTime,e.vo.endTime),type:"primary"},on:{click:e.toStudy}},[0===Number(e.percentage)?t("span",[e._v("开始学习")]):Number(e.percentage)<100?t("span",[e._v("继续学习")]):t("span",[e._v("再次学习")])]),0===e.vo.courseVo.bmState&&1!==e.bmState?t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.enlist(e.vo.courseVo.id)}}},[e._v("学习报名")]):e._e()],1)]):e._e()]),"2"!==e.typeEnter?t("div",{staticClass:"btnBox",on:{click:e.Collection}},[t("svg-icon",{attrs:{"icon-class":e.isColl?"fiveStar1":"fiveStar"}}),t("span",[e._v(" "+e._s(e.collectNum)+" 次")])],1):e._e()]),t("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"btnRefresh"},on:{click:e.reloadCourseVo}})],1)},Dn=[];function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Sn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Sn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Yn(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Yn(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Cn(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function jn(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Cn(o,n,a,i,s,"next",e)}function s(e){Cn(o,n,a,i,s,"throw",e)}i(void 0)}))}}function En(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function On(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?En(Object(r),!0).forEach((function(t){Pn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):En(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pn(e,t,r){return(t=An(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function An(e){var t=Nn(e,"string");return"symbol"==Yn(t)?t:t+""}function Nn(e,t){if("object"!=Yn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Hn=r(5093),In=r(8957),Fn=In.uuid,zn={components:{},props:{vo:{type:Object,default:function(){return{}}},typeEnter:{type:Number,default:function(){return 2}},num:{type:Number,default:function(){return 1}},allNum:{type:Number,default:function(){return 1}},title:{type:String,default:function(){return""}},toNowStudyChapterId:{type:String,default:function(){return""}},toNowStudyWareId:{type:String,default:function(){return""}},nowStudyOrderNo:{type:String,default:function(){return""}},nowStudyWeekId:{type:String,default:function(){return""}},couseId:{type:String,default:function(){return""}}},data:function(){return{base_api:"",percentage:0,courseStatus:"",collectVo:"",isColl:!1,collectNum:0,courseChapterData:[],chapterIndex:0,wareIndex:0,bmState:0,logoTitle:""}},computed:On({},ce(["routes","avatar","loginUser"])),watch:{num:function(){0===this.allNum?this.percentage=0:this.percentage=(this.num/this.allNum*100).toFixed(1)}},created:function(){this.base_api="/apigw",this.logoTitle=this.$route.query.logoTitle,this.isCollect(),this.collectCount(),0===this.allNum?this.percentage=0:this.percentage=(this.num/this.allNum*100).toFixed(1)},beforeDestroy:function(){},mounted:function(){},methods:{timeFormat:function(e){return Hn(e).format("YYYY-MM-DD")},reloadCourseVo:function(){this.$vnode.context.getById(this.vo.courseVo.id),this.$vnode.context.courseChapterFuc()},isCollect:function(){var e=this;this.$http({url:"/user/collection/getIfCollection",method:"GET",params:{busiDataId:this.vo.courseVo.id,operationType:"1",ownerId:this.loginUser.personId}}).then((function(t){"success"===t.code?e.isColl=t.body.data:e.$message({type:"warning",message:t.body.message})}))},collectCount:function(){var e=this;this.$http({url:"/user/collection/getCollectionCount",method:"GET",params:{busiDataId:this.vo.courseVo.id,operationType:"1"}}).then((function(t){"success"===t.code?e.collectNum=t.body.data:e.$message({type:"warning",message:t.body.message})}))},Collection:function(){var e=this;return jn(Sn().mark((function t(){var r,n;return Sn().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.addNew("/user/collection/addNew");case 2:if(r=t.sent,"success"!==r.code){t.next=18;break}return e.collectVo=r.body.vo,e.collectVo.busiDataId=e.vo.courseVo.id,e.collectVo.type="课程",e.collectVo.ownerId=e.loginUser.personId,e.collectVo.operationType="1",e.collectVo.url=e.$route.fullPath,e.collectVo.module="course",e.collectVo.title=e.vo.courseVo.name,t.next=14,e.$app.insert("/user/collection/insert",e.collectVo);case 14:n=t.sent,"success"===n.code?(e.$message.success(n.message),e.isCollect(),e.collectCount()):e.$message.success(n.message),t.next=19;break;case 18:e.$message.error(r.message);case 19:case"end":return t.stop()}}),t)})))()},courseTimeJudge:function(e,t){var r="";return(new Date).getTime()>new Date(t).getTime()?(r="已结束",r):(new Date).getTime()<new Date(e).getTime()?(r="未开始",r):(new Date).getTime()>new Date(e).getTime()&&(new Date).getTime()<new Date(t).getTime()?(r="进行中",r):void 0},toStudy:function(){var e=this;return jn(Sn().mark((function t(){var r;return Sn().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e,t.next=3,r.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{courseId:r.vo.courseVo.id,orderNo:"desc"},url:"ksgl/courseChapter/getBycourseId"}).then((function(t){if("success"===t.code)if(r.courseChapterData=t.body.listdata,r.courseChapterData&&r.courseChapterData.length>0)if(Number(!e.num||100===(e.num/e.allNum*100).toFixed())){var n=r.courseChapterData[0].passenger.chapterList[0].id,a=r.courseChapterData[0].passenger.chapterList[0].format,o=r.courseChapterData[0].passenger.chapterList[0];console.log("_this.courseChapterData[0].passenger.chapterList[0]",r.courseChapterData[0].passenger.chapterList[0]),r.courseWare(n,a,o,0,0)}else{for(var i=0,s=0,l=0;l<r.courseChapterData.length;l++)for(var c=0;c<e.courseChapterData[l].passenger.chapterList.length;c++)if(1===Number(r.courseChapterData[l].passenger.chapterList[c].finshState)){i=l,s=c;break}var u=r.courseChapterData[i].passenger.chapterList[s].id,d=r.courseChapterData[i].passenger.chapterList[s].format,p=r.courseChapterData[i].passenger.chapterList[s];r.courseWare(u,d,p,i,s)}else r.$message.error("该课程暂无章节!");else r.$message.error(t.message)}));case 3:case"end":return t.stop()}}),t)})))()},enlist:function(e){var t=this;this.$confirm("是否确定学习该课程?","确认操作",{type:"warning"}).then(jn(Sn().mark((function r(){var n,a,o,i,s,l;return Sn().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.bmState=0,n=t.loginUser.personId,a=t.loginUser.staffList[0].orgFullName.split("-")[1],o=t.loginUser.staffList[0].orgFullId.split("-")[1],i={},i.courseId=e,i.personId=n,i.personName=t.loginUser.personName,i.personDept=a,i.deptId=o,i.id=Fn(),i.orgCode=t.loginUser.orgCode,i.orgName=t.loginUser.orgName,i.status=0,r.next=16,t.$app.insert("/ksgl/studyCourse/insert",i);case 16:s=r.sent,"success"===s.code?(l=t,l.$nextTick((function(){l.bmState=1,l.typeEnter="3",l.$route.query.typeEnter="3",l.$bus.emit("bmState",t.bmState),l.reloadCourseVo})),t.$message.success(s.message)):t.$message.error(s.message);case 18:case"end":return r.stop()}}),r)}))))},courseWare:function(e,t,r,n,a){var o=this,i=this.typeEnter;if("2"!==i&&(i=3),t=t.toLowerCase(),0===Number(this.percentage)){var s={chapterId:this.toNowStudyChapterId,courseTimeId:"",endTime:r.timeLengthView,isFinish:"",personId:this.loginUser.personId,personName:this.loginUser.personName,signTime:"",signStatus:"",startTime:"",courseId:this.couseId,timeLength:"",weekId:r.id,orderNo:this.nowStudyOrderNo};this.$http({method:"post",url:"/ksgl/studywareRecord/record",data:s,params:{type:t}}).then((function(s){"success"===s.code&&window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseWare&typeMedia="+t+"&typeEnter="+i+"&id="+e+"&courseId="+o.$route.query.id+"&index="+n+"&domIndex="+a+"&orderNo="+o.nowStudyOrderNo+"&weekId="+r.id+"&logoTitle="+o.logoTitle+"&fileName="+r.courseFileName)}))}else window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseWare&typeMedia="+t+"&typeEnter="+i+"&id="+e+"&courseId="+this.$route.query.id+"&index="+n+"&domIndex="+a+"&orderNo="+this.nowStudyOrderNo+"&weekId="+r.id+"&logoTitle="+this.logoTitle+"&fileName="+r.courseFileName)},formatSeconds:function(e){var t=parseInt(e),r=Math.floor(t/3600)<10?"0"+Math.floor(t/3600):Math.floor(t/3600),n=Math.floor(t/60%60)<10?"0"+Math.floor(t/60%60):Math.floor(t/60%60),a=Math.floor(t%60)<10?"0"+Math.floor(t%60):Math.floor(t%60),o="";return"00"!==r&&(o+="".concat(r,"时")),"00"!==n&&(o+="".concat(n,"分")),o+="".concat(a,"秒"),o}}},Bn=zn,Gn=(r(5107),c(Bn,Tn,Dn,!1,null,"6be114fe",null)),Rn=Gn.exports;function Wn(e){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(e)}function Vn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Wn(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Wn(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Un(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function qn(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Un(o,n,a,i,s,"next",e)}function s(e){Un(o,n,a,i,s,"throw",e)}i(void 0)}))}}var Xn={components:{courseTop:Rn},props:{},data:function(){return{vo:"",courseData:"",courseId:"",chapterName:"",typeEnter:"",chapterId:"",tableData:[],loginUser:this.$store.getters.loginUser}},computed:{},watch:{},created:function(){this.courseId=this.$route.query.courseId,this.chapterName=this.$route.query.chapterName,this.typeEnter=this.$route.query.typeEnter,this.chapterId=this.$route.query.id,this.getByIdFuc(),this.initRecordFuc()},beforeDestroy:function(){},mounted:function(){},methods:{getByIdFuc:function(){var e=this;return qn(Vn().mark((function t(){var r;return Vn().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.getById("ksgl/course/getById",e.courseId);case 2:r=t.sent,"success"===r.code?e.courseData=r.body:e.$message.error(r.message);case 4:case"end":return t.stop()}}),t)})))()},initRecordFuc:function(){var e=this;return qn(Vn().mark((function t(){var r,n;return Vn().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r={pageNum:1,pageSize:1e4,order:"desc",orgCode:e.loginUser.orgCode},t.next=3,e.$app.listdata("/ksgl/exerciseRecord/listdata?urlsearch=id:"+e.$route.query.id,r);case 3:n=t.sent,"success"===n.code?e.tableData=n.body.pageInfo.list:e.$message.error(n.message);case 5:case"end":return t.stop()}}),t)})))()},doExercise:function(e){window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/exercise/KsglKcglComponentDoExercise&logoTitle=学习考试&chapterName="+this.chapterName+"&id="+this.chapterId)},exerciseDetail:function(e){window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/components/KsglComponentProblemDetail&logoTitle=学习考试&chapterName="+this.chapterName+"&chapterId="+this.chapterId+"&type=3&id="+e),window.location.reload()}}},Kn=Xn,Jn=(r(3327),c(Kn,Mn,kn,!1,null,"aa7219e6",null)),Qn=Jn.exports,Zn=function(){var e=this,t=e._self._c;return t("div",[1===e.bmState?t("div",{staticClass:"postComment"},[t("el-input",{staticStyle:{position:"absolute"},attrs:{type:"textarea",placeholder:"请输入内容",maxlength:"200",rows:"4","show-word-limit":""},model:{value:e.discussCont,callback:function(t){e.discussCont=t},expression:"discussCont"}}),t("el-button",{staticStyle:{position:"absolute",right:"0",top:"111px"},attrs:{type:"primary"},on:{click:e.insertDiscuss}},[e._v("发表评论")])],1):e._e(),t("div",{staticClass:"commentList"},[t("p",{staticStyle:{"margin-top":"30px","font-weight":"600"}},[t("span",{staticStyle:{color:"#333","font-size":"var(--portalFontSize14)"}},[e._v("全部评论")]),t("span",{staticStyle:{color:"#999"}},[e._v(e._s(e.totalCount>999?"999+":e.totalCount))])]),e._l(e.discussListdata,(function(r,n){return t("div",{key:r,staticClass:"listInner",on:{mouseover:function(t){return e.mouseOver(n)},mouseleave:function(t){return e.mouseLeave(n)}}},[t("div",{staticStyle:{width:"70px"}},[r.noPhoto?t("div",{staticStyle:{width:"50px",height:"50px","border-radius":"50%",overflow:"hidden",display:"flex","justify-content":"center","align-items":"center",background:"rgb(255, 148, 148)",position:"absolute"},style:{background:e.initPhoto(r.contenter.substr(0,1))}},[t("span",{staticStyle:{color:"#fff"}},[e._v(e._s(r.contenter.substr(-2)))])]):t("img",{staticStyle:{width:"50px",height:"50px","border-radius":"50%",overflow:"hidden"},attrs:{src:e.base_api+"/base/user/download?id="+(r.userId||r.createId)+"&dataField=photoData&nameField=photoName",alt:""},on:{error:function(t){return e.imgerrorfn(r)}}})]),t("div",{staticClass:"innerCont"},[t("p",{staticStyle:{color:"#333333","font-size":"16px"}},[e._v(e._s(r.contenter))]),t("p",{staticStyle:{padding:"8px 0px 10px","font-size":"var(--portalFontSize14)",color:"#666","overflow-wrap":"anywhere"}},[e._v(e._s(r.content))]),t("div",{staticStyle:{color:"#999999"}},[t("span",{staticStyle:{float:"left"}},[e._v(e._s(e.changeTimes(r.contentTime)))]),e.discussListdata.length>0?t("div",{staticClass:"btnInner"},[r.userId===e.loginUser.userId||e.roles.indexOf("ksglAdmin")>-1?t("svg-icon",{staticStyle:{width:"15px",height:"15px",color:"#999999","margin-right":"24px",cursor:"pointer"},attrs:{"icon-class":"del"},on:{click:function(t){return e.delDiscuss(r,n)}}}):e._e(),t("svg-icon",{staticStyle:{width:"15px",height:"15px",cursor:"pointer"},style:{color:r.iszan?"#409EFF":"#999999"},attrs:{"icon-class":r.iszan?"zan":"notzan"},on:{click:function(t){return e.Collection(r,n)}}}),t("span",{staticStyle:{color:"#999"}},[e._v(e._s(r.zanNum))])],1):e._e()])])])})),0===e.discussListdata.length?t("div",{staticStyle:{"text-align":"center",color:"#999","font-size":"var(--portalFontSize14)"}},[t("img",{attrs:{src:"./images/w-imgs/nomessage.png",width:"120px",height:"70px",alt:""}}),t("p",[e._v("暂无数据")])]):e.pageMore?t("p",{staticStyle:{color:"#409eff","text-align":"center",cursor:"pointer"},on:{click:e.moreLoading}},[e._v("点击加载更多")]):e.isMore&&e.discussListdata.length>0?t("p",{staticStyle:{color:"#999999","text-align":"center"}},[e._v("没有更多了")]):e._e()],2)])},$n=[];function ea(e){return ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ea(e)}function ta(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ta=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ea(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ea(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ra(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function na(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ra(o,n,a,i,s,"next",e)}function s(e){ra(o,n,a,i,s,"throw",e)}i(void 0)}))}}var aa=r(5093),oa=r(553).A,ia={components:{},props:{vo:{type:Object,default:function(){return{}}},bmState:{type:Number,default:0}},data:function(){return{roles:[],pageSize:10,pageNum:1,totalCount:0,discussVo:"",discussCont:"",discussListdata:[],zanNum:"",loginUser:this.$store.getters.loginUser,base_api:"",isMore:!1,pageMore:!1}},computed:{changeTimes:function(){return function(e){if(e)return aa(e).format("YYYY-MM-DD HH:mm")}}},watch:{},created:function(){this.roles=this.$store.state.user.roles,this.base_api="/apigw",this.discusslist(),this.discussCount()},beforeDestroy:function(){},mounted:function(){},methods:{imgerrorfn:function(e){this.$set(e,"noPhoto",!0)},initPhoto:function(e){return oa.getInitialColor(e)},mouseOver:function(e){this.discussListdata[e].showDel=!0},mouseLeave:function(e){this.discussListdata[e].showDel=!1},insertDiscuss:function(){var e=this;return na(ta().mark((function t(){var r,n;return ta().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(""!==e.discussCont.trim()){t.next=3;break}return e.$message.error("请输入评论内容!"),t.abrupt("return",!1);case 3:return t.next=5,e.$app.addNew("/user/discuss/addNew");case 5:if(r=t.sent,"success"!==r.code){t.next=19;break}return e.discussVo=r.body.vo,e.discussVo.resId=e.vo.id,e.discussVo.resType="课程",e.discussVo.deviceType="0",e.discussVo.resTitle=e.vo.name,e.discussVo.content=e.discussCont,t.next=15,e.$app.insert("/user/discuss/insert",e.discussVo);case 15:n=t.sent,"success"===n.code?(e.$message.success("发表成功"),e.discussCont="",e.discussListdata=[],e.discusslist(),e.discussCount()):e.$message.success(n.message),t.next=20;break;case 19:e.$message.error(r.message);case 20:case"end":return t.stop()}}),t)})))()},moreLoading:function(){this.pageNum++,this.discusslist()},discusslist:function(){var e=this;return na(ta().mark((function t(){var r,n;return ta().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return 1===e.pageNum&&(e.discussListdata=[]),r={pageSize:e.pageSize,pageNum:e.pageNum,orderBy:"contentTime desc"},t.next=4,e.$app.listdata("/user/discuss/listdata?urlsearch=resId:"+e.vo.id,r);case 4:n=t.sent,"success"===n.code?(n.body.pageInfo.list.map((function(t,r){t.iszan=!1,t.zanNum=0,t.showDel=!1,e.discussListdata.push(t),e.collectCount(t,r)})),n.body.pageInfo.list.length<e.pageSize||e.pageNum===n.body.pageInfo.pages?(e.isMore=!0,e.pageMore=!1):(e.isMore=!1,e.pageMore=!0)):e.$message.error(n.message);case 6:case"end":return t.stop()}}),t)})))()},discussCount:function(){var e=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{resId:this.vo.id},url:"/user/discuss/getDiscussCount"}).then((function(t){"success"===t.code?e.totalCount=t.body.data:e.$message.error(t.message)}))},collectCount:function(e,t){var r=this;return na(ta().mark((function n(){return ta().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,r.$http({url:"/user/collection/getCollectionCount",method:"GET",params:{busiDataId:e.id,operationType:"2"}}).then((function(n){"success"===n.code&&(r.discussListdata[t].zanNum=n.body.data,r.$http({url:"/user/collection/getIfCollection",method:"GET",params:{busiDataId:e.id,operationType:"2",ownerId:r.loginUser.personId}}).then((function(e){"success"===e.code&&(r.discussListdata[t].iszan=e.body.data)})))}));case 2:case"end":return n.stop()}}),n)})))()},Collection:function(e,t){var r=this;return na(ta().mark((function n(){var a,o,i;return ta().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,r.$app.addNew("/user/collection/addNew");case 2:if(a=n.sent,"success"!==a.code){n.next=17;break}return o=a.body.vo,o.busiDataId=e.id,o.type="课程",o.ownerId=r.loginUser.personId,o.operationType="2",o.module="course",o.url=r.$route.fullPath,n.next=13,r.$app.insert("/user/collection/insert",o);case 13:i=n.sent,"success"===i.code?(r.discussListdata[t].iszan=!r.discussListdata[t].iszan,r.$http({contentType:"application/x-www-form-urlencoded",url:"/user/collection/getCollectionCount?busiDataId=".concat(e.id,"&operationType=2"),method:"GET"}).then((function(e){if("success"===e.code){var n=r.discussListdata[t].iszan?"点赞成功":"取消点赞";r.$message.success(n),r.discussListdata[t].zanNum=e.body.data}else r.$message.error(e.message)}))):r.$message.success(i.message),n.next=18;break;case 17:r.$message.error(a.message);case 18:case"end":return n.stop()}}),n)})))()},delDiscuss:function(e,t){var r=this;return na(ta().mark((function n(){return ta().wrap((function(n){while(1)switch(n.prev=n.next){case 0:r.$confirm("确定删除该评论?","确认操作",{type:"warning",closeOnClickModal:!1}).then((function(){r.$http({contentType:"application/x-www-form-urlencoded",url:"/user/discuss/delete?ids="+e.id,method:"DELETE"}).then((function(e){"success"===e.code&&(r.$message.success("删除成功"),r.discussListdata.splice(t,1),r.totalCount-=1)}))})).catch((function(e){"cancel"!==e&&console.error(e)}));case 1:case"end":return n.stop()}}),n)})))()}}},sa=ia,la=(r(9618),c(sa,Zn,$n,!1,null,"1308eeee",null)),ca=la.exports,ua=function(){var e=this,t=e._self._c;return t("div",{staticClass:"outerBox",staticStyle:{width:"100%"}},[t("section",{staticClass:"courseBox"},[t("div",{staticClass:"imgCont"},[2!=e.typeEnter&&1===e.courseObj.bmState||1===e.bmState?t("svg-icon",{staticStyle:{position:"absolute",width:"48px",height:"48px"},attrs:{"icon-class":"triangle"}}):e._e(),2!=e.typeEnter&&1===e.courseObj.bmState||1===e.bmState?t("span",{staticStyle:{position:"absolute",transform:"rotate(-45deg)",top:"10px",left:"2px",color:"#fff"}},[e._v("已报名")]):e._e(),t("img",{staticClass:"courseImg",attrs:{src:e.base_api+"/ksgl/course/download?dataField=cover&nameField=coverUrl&id="+e.courseObj.id,alt:""},on:{click:function(t){return e.goDetail(e.courseObj.id,e.courseObj.finishChapterNum,e.courseObj.courseNum)}}}),t("span",{staticClass:"shoukeType"},[e._v(e._s(1===e.courseObj.shoukeType?"线上":"线下"))])],1),t("div",{staticClass:"courseTitle"},[t("div",{staticClass:"courseTitleTop clearfix"},[t("span",{on:{click:function(e){e.stopPropagation()}}},[2===e.typeEnter?t("el-checkbox",{staticClass:"checkBox l",attrs:{label:e.courseObj.id}},[t("span",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.courseObj.name))])]):e._e()],1),t("p",{staticClass:"l",staticStyle:{width:"100%",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis","font-size":"16px"}},[e._v(e._s(e.courseObj.name))])]),t("div",{staticClass:"courseTitleBottom clearfix"},[1===e.typeEnter?t("p",{staticClass:"l color3 margin5"},[e._v(e._s(e.timeFormat(e.courseObj.createTime)))]):e._e(),1===e.typeEnter?t("p",{staticClass:"r color3 margin5"},[e._v(e._s(e.courseObj.studyNum||0)+"人学习 ")]):e._e(),2===e.typeEnter?t("p",{staticClass:"l color3 margin5"},[e._v(e._s(e.timeFormat(e.courseObj.createTime)))]):e._e(),2===e.typeEnter?t("p",{staticClass:"color2 r margin5",on:{click:function(t){return e.ToDetail(e.courseObj)}}},[e._v(e._s(0===e.courseObj.ispublish?"编辑":"查看"))]):e._e(),2===e.typeEnter?t("p",{staticClass:"color2 r margin5",on:{click:function(t){return e.courseDeleted(e.courseObj,e.courseObj.ispublish)}}},[e._v(e._s(0===e.courseObj.ispublish?"上架":"下架"))]):e._e()])]),2!=e.typeEnter?t("div",{staticClass:"dialog",on:{click:function(t){return e.goDetail(e.courseObj.id,e.courseObj.finishChapterNum,e.courseObj.courseNum)}}},[t("div",{staticClass:"btn-content"},[t("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.goDetail(e.courseObj.id,e.courseObj.finishChapterNum,e.courseObj.courseNum)}}},[e._v("查看课程")]),1!==e.courseObj.bmState&&1!==e.bmState?t("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.enlist(e.courseObj.id)}}},[e._v("学习报名")]):e._e()],1)]):e._e()])])},da=[];function pa(e){return pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa(e)}function ha(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ha=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==pa(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(pa(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function fa(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function ma(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){fa(o,n,a,i,s,"next",e)}function s(e){fa(o,n,a,i,s,"throw",e)}i(void 0)}))}}function ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function va(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(r),!0).forEach((function(t){ga(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ya(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ga(e,t,r){return(t=_a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _a(e){var t=ba(e,"string");return"symbol"==pa(t)?t:t+""}function ba(e,t){if("object"!=pa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var wa=r(8957),xa=wa.uuid,La=r(5093),Ma={components:{},props:{courseObj:{type:Object,default:function(){return{}}},typeEnter:{type:String,default:function(){return""}},activeType:{type:String,default:function(){return""}},isCourseManage:{type:Number,default:function(){return 0}}},data:function(){return{checked:"",photoUrl:"",base_api:"",percentage:0,logoTitle:"",bmState:0}},computed:va({},ce(["routes","avatar","loginUser"])),watch:function(){},created:function(){this.base_api="/apigw",1===this.typeEnter?this.logoTitle="学习考试/课程中心":1===this.isCourseManage?this.logoTitle="学习考试/课程管理/课程管理":this.logoTitle="学习考试/讲师中心/我的课程"},beforeDestroy:function(){},mounted:function(){this.photoUrl=this.avatar,""!==window.productCode&&(this.photoUrl+="&productCode="+window.productCode),this.courseObj.finishChapterNum&&this.courseObj.courseNum?this.percentage=this.courseObj.finishChapterNum/this.courseObj.courseNum*100:this.percentage=0},methods:{enlist:function(e){var t=this;this.$confirm("是否确定学习该课程?","确认操作",{type:"warning"}).then(ma(ha().mark((function r(){var n,a,o,i,s;return ha().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.bmState=0,n=t.loginUser.personId,a=t.loginUser.staffList[0].orgFullName.split("-")[1],o=t.loginUser.staffList[0].orgFullId.split("-")[1],i={},i.courseId=e,i.personId=n,i.personName=t.loginUser.personName,i.personDept=a,i.deptId=o,i.id=xa(),i.orgCode=t.loginUser.orgCode,i.orgName=t.loginUser.orgName,i.status=0,r.next=16,t.$app.insert("/ksgl/studyCourse/insert",i);case 16:s=r.sent,"success"===s.code?(t.$nextTick((function(){t.bmState=1})),t.$message.success("报名成功!"),t.$vnode.context.initCourse(t.$vnode.context.activeType)):t.$message.error(s.message);case 18:case"end":return r.stop()}}),r)}))))},goDetail:function(e){window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type="+this.typeEnter+"&id="+e+"&logoTitle="+encodeURIComponent(this.logoTitle))},ToDetail:function(e){this.$vnode.context.isAdd=!1,0===e.ispublish?this.$bus.emit("update",e,1):this.$bus.emit("update",e,0)},courseDeleted:function(e,t){var r=this;return ma(ha().mark((function n(){return ha().wrap((function(n){while(1)switch(n.prev=n.next){case 0:t=0===t?1:2,r.$bus.emit("courseDeleted",t,e);case 2:case"end":return n.stop()}}),n)})))()},transTime:function(e){if(null===e)return e=0,e;if(e<60)return e+="秒",e;var t=Math.floor(e/60),r=Math.floor(e%60);if(t<60)return e=t+"分"+r+"秒",e;var n=Math.floor(t/60),a=Math.floor(t%60);return e=n+"小时"+a+"分"+r+"秒",e},timeFormat:function(e){return La(e).format("YYYY年MM月DD日")}}},ka=Ma,Ta=(r(6360),c(ka,ua,da,!1,null,"59fcee94",null)),Da=Ta.exports,Ya=function(){var e=this,t=e._self._c;return e.loading?e._e():t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{padding:"30px 100px 0",height:"calc(100vh - 61px)",overflow:"auto"}},[t("courseTop",{attrs:{vo:e.vo,title:"课程详情","type-enter":e.typeEnter,num:e.vo.finishCount,"all-num":e.vo.totalCount,"to-now-study-chapter-id":e.toNowStudyChapterId,"couse-id":e.couseId,"to-now-study-ware-id":e.toNowStudyWareId,"now-study-order-no":e.nowStudyOrderNo,"now-study-week-id":e.nowStudyWeekId}}),null!==e.vo.teacher?t("section",{staticClass:"courseBox2"},[t("h4",[e._v("讲师介绍")]),t("div",{staticClass:"clearfix courseBox-bottom2"},[null!==e.vo.teacher?t("img",{staticClass:"l imgHead",attrs:{src:e.base_api+"/ksgl/teacher/download?dataField=photoData&nameField=photoName&id="+e.vo.teacher.id,alt:""}}):e._e(),null!==e.vo.teacher?t("div",{staticClass:"l"},[t("p",{staticClass:"person-message"},[t("span",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.vo.teacher.name))]),e._v(" "),t("span",[e._v(e._s(0===e.vo.teacher.type?"内部":"外部"))]),e._v(" "),t("span",[e._v(e._s(e.vo.teacher.email))]),e._v(" "),t("span",[e._v(e._s(e.vo.teacher.phone))])]),e.collspse?e._e():t("p",{staticStyle:{width:"650px","text-overflow":"clip","white-space":"nowrap",color:"#666"}},[e._v(e._s(e.vo.teacher.introduction.substr(0,50))+" "),e.vo.teacher.introduction.length>50&&!e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1),e.collspse?t("p",{staticStyle:{width:"650px",height:"auto","max-height":"200px",overflow:"auto",color:"#666"}},[e._v(e._s(e.vo.teacher.introduction)+" "),e.vo.teacher.introduction.length>50&&e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1):e._e()]):e._e()])]):e._e(),t("el-row",{staticClass:"tabs"},[t("el-col",{attrs:{span:"24"}},[t("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"课程简介",name:"first"}},[t("div",{staticStyle:{color:"#666","line-height":"20px"}},[e._v(" "+e._s(e.vo.courseVo.introduction?e.vo.courseVo.introduction:"暂无简介"))])]),t("el-tab-pane",{attrs:{label:"课程章节",name:"second"}},[e.courseChapterData.length>0?t("ul",{staticClass:"zhangjieUl"},e._l(e.courseChapterData,(function(r,n){return t("li",{key:r},[t("div",{staticClass:"clearfix"},[t("p",{staticClass:"titleName"},[t("span",{staticClass:"l",staticStyle:{"font-weight":"700","margin-right":"10px"}},[e._v(e._s(r.title)+" ")]),t("span",{staticClass:"l"},[e._v(" "+e._s(r.name))]),1===e.vo.courseVo.bmState||1===e.bmState?t("span",{staticClass:"color1 r margin10",on:{click:function(t){return e.doExercise(r.id,r.name)}}},[e._v(e._s(0===r.passenger.isHasSubject?"":"2"===e.typeEnter?"查看":"练习"))]):e._e()]),e._l(r.passenger.chapterList,(function(r,a){return t("div",{key:r},[t("p",{staticClass:"detailP",on:{click:function(t){return e.courseWare(r.id,r.format,r,n,a)}}},[t("svg-icon",{staticClass:"l",staticStyle:{"margin-top":"12px",width:"18px",height:"14px","margin-right":"10px"},attrs:{"icon-class":"DOC"===r.format?"lianxi_icon":"VIDEO"===r.format?"shipin_icon":"AUDIO"===r.format?"yinpin_icon":"tupian_icon"}}),t("span",{staticClass:"l"},[e._v(e._s(r.name))]),1===e.vo.courseVo.bmState||1===e.bmState?t("span",{staticClass:"color1 r margin10"},[e._v(e._s(e._f("finshState")(r.finshState))+" ")]):e._e(),t("span",{staticClass:"r margin10"},[e._v(e._s(e.transTime(r.timeLengthView)))])],1)])}))],2)])})),0):t("div",{staticStyle:{"text-align":"center",color:"#999","font-size":"var(--portalFontSize14)"}},[t("img",{attrs:{src:"./images/w-imgs/nomessage.png",width:"120px",height:"70px",alt:""}}),t("p",[e._v("暂无数据")])])]),2===e.vo.courseVo.shoukeType?t("el-tab-pane",{attrs:{label:"培训时间",name:"fifth"}},["fifth"===e.activeName?t("data-table",{attrs:{"is-cell-click":!1,"on-list-data-before-load":e.onListDataBeforeLoadTime,"module-info":e.moduleInfoTime,"tb-columns":e.tbColumnsTime,"toolbar-btns":e.listpageTimeBtns,"on-cell-click":e.exerciseClick,"on-list-data-loaded":e.onListDataLoadedTime}}):e._e()],1):e._e(),t("el-tab-pane",{attrs:{label:1===e.vo.courseVo.shoukeType?"学习记录":"签到记录",name:"third"}},[t("div",[1===e.vo.courseVo.shoukeType?t("data-table",{attrs:{"on-list-data-before-load":e.onListDataBeforeLoadStudy,"module-info":e.moduleInfoStudy,"tb-columns":"2"!==e.typeEnter?e.tbColumnsStudy1:e.tbColumnsStudy,"toolbar-btns":[],"on-list-data-loaded":e.onListDataLoadedStudy,"is-cell-click":!1}}):e._e(),2===e.vo.courseVo.shoukeType?t("data-table",{attrs:{"on-list-data-before-load":e.onListDataBeforeLoadStudy,"module-info":e.moduleInfoStudy,"tb-columns":"2"!==e.typeEnter?e.tbColumnsSign1:e.tbColumnsSign,"toolbar-btns":[],"on-list-data-loaded":e.onListDataLoadedTime,"is-cell-click":!1}}):e._e()],1)]),t("el-tab-pane",{attrs:{label:"练习记录",name:"fourth"}},["fourth"===e.activeName?t("data-table",{attrs:{"on-list-data-before-load":e.onListDataBeforeLoadExercise,"module-info":e.moduleInfo,"tb-columns":"2"!==e.typeEnter?e.tbColumnsExercise:e.tbColumnsExercise1,"toolbar-btns":[],"on-cell-click":e.exerciseClick,"on-list-data-loaded":e.onListDataLoadedExercise}}):e._e()],1),t("el-tab-pane",{attrs:{label:"课程点评",name:"sixth"}},["sixth"===e.activeName?t("comment",{attrs:{vo:e.vo.courseVo,"bm-state":1===e.vo.courseVo.bmState||1===e.bmState?1:0}}):e._e()],1)],1)],1)],1),t("el-dialog",{staticClass:"code-dialog",staticStyle:{"text-align":"center",color:"#3333","font-size":"var(--portalFontSize14)"},attrs:{title:"签到二维码",visible:e.dialogVisible,width:"600","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticStyle:{"font-size":"22px","font-weight":"600"}},[e._v(e._s(e.dialogCourse))]),t("div",{staticStyle:{"font-size":"var(--portalFontSize14)"}},[e._v(e._s(e.dialogChapter))]),t("el-image",{staticStyle:{width:"300px",height:"300px","margin-bottom":"50px"},attrs:{src:e.imageUrl,alt:""}},[t("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v(" 加载中"),t("span",{staticClass:"dot"},[e._v("...")])])])],1)],1)},Sa=[];function Ca(e){return Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ca(e)}function ja(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ja=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Ca(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Ca(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ea(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Oa(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ea(o,n,a,i,s,"next",e)}function s(e){Ea(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Pa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Aa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(r),!0).forEach((function(t){Na(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Na(e,t,r){return(t=Ha(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ha(e){var t=Ia(e,"string");return"symbol"==Ca(t)?t:t+""}function Ia(e,t){if("object"!=Ca(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ca(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Fa=r(5093),za=void 0,Ba={components:{courseTop:Rn,comment:ca},filters:{finshState:function(e){return 1!==za.vo.courseVo.shoukeType||"2"===za.typeEnter?"查看":0===Number(e)?"开始学习":1===Number(e)?"继续学习":"再次学习"}},props:{},data:function(){return{imageUrl:"",activeName:"first",tableData:[],tableDataTime:[],courseId:"",vo:null,courseChapterData:[],typeEnter:"",base_api:"",timeSign:"",toNowStudyChapterId:"",toNowStudyWareId:"",nowStudyOrderNo:"",nowStudyWeekId:"",dialogVisible:!1,couseId:"",collspse:!1,moduleInfo:{formTemplate:"vwExerciseRecord",moduleCode:"vwExerciseRecord",listDataUrl:"/ksgl/vwExerciseRecord/listdata"},moduleInfoTime:{formTemplate:"courseTime",moduleCode:"courseTime",listDataUrl:"/ksgl/courseTime/listdata"},moduleInfoStudy:{formTemplate:"vwStudyRecord",moduleCode:"vwStudyRecord",listDataUrl:"/ksgl/vwStudyRecord/listdata"},tbColumnsStudy:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"chapterName",title:"章节名称",align:"left",valign:"middle",searchable:!0},{field:"wareName",title:"课件名称",width:"150px",align:"left",valign:"middle",searchable:!0},{field:"personName",title:"姓名",width:"80px",align:"center",valign:"middle",sortable:!0},{field:"endTime",title:"学习时间",width:"150px",align:"center",valign:"middle",sortable:!0},{field:"timeLength",title:"学习时长",width:"110px",align:"center",valign:"middle",sortable:!0}],tbColumnsStudy1:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"chapterName",title:"章节名称",align:"left",valign:"middle",searchable:!0},{field:"wareName",title:"课件名称",width:"150px",align:"left",valign:"middle",searchable:!0},{field:"endTime",title:"学习时间",width:"150px",align:"center",valign:"middle",sortable:!0},{field:"timeLength",title:"学习时长",width:"110px",align:"center",valign:"middle",sortable:!0}],tbColumnsExercise:[{field:"index",title:"序号",width:"45",align:"center",valign:"middle"},{field:"chapterName",title:"章节名称",align:"left",valign:"middle",searchable:!0},{field:"startTime",title:"开始时间",width:"150",align:"center",valign:"middle",sortable:!0},{field:"endTime",title:"结束时间",width:"150",align:"center",valign:"middle",sortable:!0},{field:"useTime",title:"用时/分",width:"110",align:"center",valign:"middle",sortable:!0}],tbColumnsExercise1:[{field:"index",title:"序号",width:"45",align:"center",valign:"middle"},{field:"chapterName",title:"章节名称",align:"left",valign:"middle",searchable:!0},{field:"personName",title:"姓名",width:"80",align:"center",valign:"middle",searchable:!0},{field:"startTime",title:"开始时间",width:"150",align:"center",valign:"middle",sortable:!0},{field:"endTime",title:"结束时间",width:"150",align:"center",valign:"middle",sortable:!0},{field:"useTime",title:"用时/分",width:"110",align:"center",valign:"middle",sortable:!0}],tbColumnsSign:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"courseDate",title:"上课日期",align:"left",valign:"middle"},{field:"courseTime",title:"上课时间",width:"150px",align:"center",valign:"middle"},{field:"personName",title:"姓名",width:"80px",align:"center",valign:"middle",sortable:!0},{field:"signTime",title:"签到时间",width:"150px",align:"center",valign:"middle",sortable:!0},{field:"signStatus",title:"签到状态",width:"100px",align:"center",valign:"middle",sortable:!0,elementFormatter:"0:未签到\r\n1:正常\r\n2:迟到"}],tbColumnsSign1:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"courseDate",title:"上课日期",align:"left",valign:"middle"},{field:"courseTime",title:"上课时间",width:"150px",align:"center",valign:"middle"},{field:"signTime",title:"签到时间",width:"150px",align:"center",valign:"middle",sortable:!0},{field:"signStatus",title:"签到状态",width:"100px",align:"center",valign:"middle",sortable:!0,elementFormatter:"0:未签到\r\n1:正常\r\n2:迟到"}],tbColumnsTime:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"courseDate",title:"上课日期",align:"left",valign:"middle",searchable:!0},{field:"courseTime",title:"上课时间",width:"150px",align:"center",valign:"middle",sortable:!0},{field:"weekTime",title:"星期",width:"150px",align:"center",valign:"middle",sortable:!0},{field:"column_operate",title:"操作",width:"100px",align:"center",valign:"middle"}],listpageTimeBtns:[{id:"btn_qrCode",btnName:"签到二维码",btnIcon:"",btnClick:"getQRcode(row)",btnPermission:"qrCode",btnType:"column"}],dialogCourse:"",dialogChapter:"",loading:!0,logoTitle:"",finshState:"",bmState:0}},computed:Aa({},ce(["routes","avatar","loginUser"])),watch:{},beforeCreate:function(){za=this},created:function(){this.logoTitle=this.$route.query.logoTitle,this.base_api="/apigw",this.courseId=this.$route.query.id,this.typeEnter=this.$route.query.type,this.$bus.on("nextCourseWare",this.nextWare)},beforeDestroy:function(){this.$bus.off("nextCourseWare",this.nextWare)},mounted:function(){this.$bus.on("bmState",this.bmStateSu),this.getById(this.courseId)},methods:{bmStateSu:function(e){var t=this;this.$nextTick((function(){t.bmState=e}))},openCollspse:function(){this.collspse=!this.collspse},timeFormat:function(e){return Fa(e).format("YYYY-MM-DD HH:mm")},exerciseClick:function(e){window.open("/#/commonHeader?workform=@/wapp/ksgl/components/KsglComponentProblemDetail&logoTitle=学习考试&chapterName="+e.chapterName+"&chapterId="+e.chapterId+"&type=3&id="+e.id+"&personId="+e.personId)},getQRcode:function(e){var t=this;this.dialogVisible=!0,this.dialogCourse=this.vo.courseVo.name,this.dialogChapter="培训时间:"+Fa(e.stateTime).format("YYYY年MM月DD日")+" "+Fa(e.stateTime).format("HH:mm")+" 至 "+Fa(e.endTime).format("HH:mm"),this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",url:"/base/paramConfig/findParamValueByName",params:{orgCode:this.loginUser.orgCode,paramName:"mpp.h5app.baseurl"}}).then((function(r){if("success"===r.code){var n=r.body.value+"#/signRes?apigateway="+location.host+"&courseId="+e.courseId+"&id="+e.id+"&name="+e.name+"&courseName="+t.vo.courseVo.name+"&isDefine=true";t.$http({method:"GET",url:"/ksgl/courseChapter/getQrCode",params:{url:encodeURI(n)}}).then((function(e){"success"===e.code?t.imageUrl="data:image/png;base64,"+e.body.image:t.$message.error(e.message)}))}}))},handleClick:function(e,t){"second"===e.name&&this.courseChapterFuc()},courseWare:function(e,t,r,n,a){var o=this.typeEnter;if("2"!==o){if(1!==this.bmState&&1!==this.vo.courseVo.bmState)return void this.$alert("您还未报名,暂不能查看。","操作提示",{type:"warning"});o=3}t=t.toLowerCase(),window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseWare&typeMedia="+t+"&typeEnter="+o+"&id="+e+"&courseId="+this.courseId+"&index="+n+"&domIndex="+a+"&orderNo="+this.nowStudyOrderNo+"&weekId="+r.id+"&logoTitle="+this.logoTitle)},doExercise:function(e,t){"2"!==this.typeEnter?window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/exercise/KsglKcglComponentDoExercise&chapterName="+t+"&id="+e+"&logoTitle="+this.logoTitle):window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/exercise/KsglKcglComponentExerciseDetail&id="+e+"&chapterName="+t+"&logoTitle="+this.logoTitle)},getById:function(e){var t=this;this.$app.getById("ksgl/course/getById",e).then((function(e){"success"===e.code?(t.vo=e.body,t.toNowStudyChapterId=t.vo.toNowStudyChapterId,t.toNowStudyWareId=t.vo.toNowStudyWareId,t.nowStudyOrderNo=t.vo.orderNo,t.nowStudyWeekId=t.vo.toNowStudyWareId,t.couseId=t.vo.courseChapter.length>0?t.vo.courseChapter[0].courseId:"",t.loading=!1):(t.$message.error(e.message),t.loading=!1)}))},courseChapterFuc:function(){var e=this;return Oa(ja().mark((function t(){return ja().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{courseId:e.vo.courseVo.id,orderNo:"desc"},url:"ksgl/courseChapter/getBycourseId"}).then((function(t){"success"===t.code?e.courseChapterData=t.body.listdata:e.$message.error(t.message)}));case 1:case"end":return t.stop()}}),t)})))()},onListDataBeforeLoadStudy:function(e,t){1===this.vo.courseVo.shoukeType?t.orderBy="endTime desc":t.orderBy="signTime desc","2"!==this.typeEnter?t.urlsearch="courseId:"+this.vo.courseVo.id+";personId:"+this.loginUser.personId:t.urlsearch="courseId:"+this.vo.courseVo.id},onListDataBeforeLoadExercise:function(e,t){t.orderBy="endTime desc","2"!==this.typeEnter?t.urlsearch="courseId:"+this.vo.courseVo.id+";orgCode:"+this.loginUser.orgCode+";personId:"+this.loginUser.personId:t.urlsearch="courseId:"+this.vo.courseVo.id+";orgCode:"+this.loginUser.orgCode},onListDataBeforeLoadTime:function(e,t){t.orderBy="stateTime asc",t.urlsearch="courseId:"+this.vo.courseVo.id},onListDataLoadedStudy:function(e,t){t.list.forEach((function(e,t){if(e.timeLength<60)e.timeLength=e.timeLength+"秒";else{var r=Math.floor(e.timeLength/60),n=Math.floor(e.timeLength%60);if(r<60)e.timeLength=r+"分"+n+"秒";else{var a=Math.floor(r/60),o=Math.floor(r%60);e.timeLength=a+"小时"+o+"分"+n+"秒"}}}))},onListDataLoadedTime:function(e,t){var r=this;t.list.forEach((function(e,t){r.$set(e,"stateTime",e.stateTime||e.startTime),r.$set(e,"weekTime",r.getweekday(Fa(e.stateTime).format("YYYY-MM-DD"))),r.$set(e,"courseDate",Fa(e.stateTime).format("YYYY-MM-DD")),r.$set(e,"courseTime",Fa(e.stateTime).format("HH:mm:ss")+"~"+Fa(e.endTime).format("HH:mm:ss"))}))},onListDataLoadedExercise:function(e,t){"fourth"===this.activeName&&t.list.forEach((function(e,t){if(e.useTime<60)e.useTime=e.useTime+"秒";else{var r=Math.floor(e.useTime/60),n=Math.floor(e.useTime%60);if(r<60)e.useTime=r+"分"+n+"秒";else{var a=Math.floor(r/60),o=Math.floor(r%60);e.useTime=a+"小时"+o+"分"+n+"秒"}}})),console.log(" listdata loaded")},transTime:function(e){return Fa(new Date(e)).format("HH:mm:ss")},getweekday:function(e){var t=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],r=t[new Date(e).getDay()];return r}}},Ga=Ba,Ra=(r(1410),r(4294),c(Ga,Ya,Sa,!1,null,"75dd16c8",null)),Wa=Ra.exports,Va=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ware-container",staticStyle:{padding:"50px 100px 0","overflow-y":"auto",height:"calc(100vh - 61px)"}},[e.updateform?["video"===e.typeMedia&&""!==e.videoUrl?t("videoData",{attrs:{width:"1000px",height:"550px",autoplay:!1,loop:!1,"video-url":e.videoUrl,"player-time":e.playerTime,"on-time-update":e.onVideoTimeUpdate}}):e._e(),"audio"===e.typeMedia?t("div",[t("audio",{ref:"audio",staticStyle:{width:"100%",outline:"none"},attrs:{controls:"",src:e.videoUrl},on:{loadeddata:e.oAudionLoadeddata,timeupdate:e.onAudioTimeUpdate}})]):e._e(),"image"===e.typeMedia?t("img",{staticStyle:{"max-width":"100%"},attrs:{src:e.base_api+"/ksgl/courseware/download?dataField=courseFile&nameField=courseFileName&id="+e.courseWareId}}):e._e(),"doc"===e.typeMedia?t("div",{staticClass:"bodyfile-container",attrs:{id:"bodyfilebox"}},[t("iframe",{attrs:{id:"pdfHtml",width:"100%",height:"100%",frameborder:"0",src:e.bodyFileUrl}})]):e._e()]:e._e(),t("div",{staticStyle:{position:"relative","margin-top":"20px",width:"100%",border:"1px solid #ebedf0","line-height":"40px"}},[e.updateform?t("a",{staticStyle:{flex:"1","margin-left":"10px"},attrs:{href:e.base_api+"/ksgl/courseware/download?dataField=courseFile&nameField=courseFileName&id="+e.courseWareId}},[t("b",[e._v("课件名称:")]),e._v(" "+e._s(e.wareName)+" "),t("i",{staticClass:"el-icon-download",staticStyle:{"margin-left":"10px"}})]):e._e(),t("div",{staticClass:"btnBox"},[t("svg-icon",{attrs:{"icon-class":e.isColl?"fiveStar1":"fiveStar"},on:{click:e.Collection}}),t("span",[e._v(e._s(e.collectNum)+" 次")]),e.isNNextFile?t("el-button",{staticStyle:{"margin-left":"10px"},on:{click:e.nextWare}},[e._v("下一个课件")]):e._e()],1),t("div",{staticStyle:{width:"100%","padding-left":"10px"}},[t("svg-icon",{staticClass:"l",staticStyle:{"margin-top":"12px",width:"18px",height:"14px","margin-right":"10px"},attrs:{"icon-class":"doc"===e.typeMedia?"lianxi_icon":"video"===e.typeMedia?"shipin_icon":"audio"===e.typeMedia?"yinpin_icon":"tupian_icon"}}),t("span",{staticClass:"l"},[e._v(e._s(e.courseFileName))]),t("span",{staticClass:"r margin10"},[e._v("学习时长:"+e._s(e.transTime(e.timeLengthView)))])],1),t("div",{staticStyle:{width:"100%","line-height":"28px",display:"flex","padding-left":"10px","padding-bottom":"10px"}},[t("span",{staticStyle:{"font-weight":"600",display:"contents"}},[e._v("课件介绍:")]),e._v(" "+e._s(e.introduction)+" ")])])],2)},Ua=[];function qa(e){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qa(e)}function Xa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xa=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==qa(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(qa(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ka(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Ja(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ka(o,n,a,i,s,"next",e)}function s(e){Ka(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Qa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Za(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(r),!0).forEach((function(t){$a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $a(e,t,r){return(t=eo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eo(e){var t=to(e,"string");return"symbol"==qa(t)?t:t+""}function to(e,t){if("object"!=qa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=qa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ro=r(5093),no={props:{},data:function(){return{base_api:"",courseWareId:"",courseFileName:"",typeMedia:"",courseChapterData:[],index:0,domIndex:0,nowStudyOrderNo:"",nowStudyWeekId:"",collectVo:"",isColl:!1,collectNum:0,wareName:"",timeLengthView:"",introduction:"",videoUrl:"",updateform:!0,bodyFileUrl:"",isNNextFile:!0,playerTime:0,timeLength:0,isFinish:0}},computed:Za({},ce(["routes","avatar","loginUser"])),watch:{},created:function(){this.$options.components["videoData"]=this.$loadComponent("@/wapp/common/components/Video/index")},beforeDestroy:function(){clearTimeout()},destroyed:function(){},mounted:function(){var e=this;return Ja(Xa().mark((function t(){return Xa().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.courseWareId=e.$route.query.id,e.courseFileName=e.$route.query.fileName,e.typeMedia=e.$route.query.typeMedia,e.base_api="/apigw",e.courseId=e.$route.query.courseId,e.index=Number(e.$route.query.index),e.domIndex=Number(e.$route.query.domIndex),e.nowStudyOrderNo=e.$route.query.orderNo,e.nowStudyWeekId=e.$route.query.weekId,e.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{courseId:e.courseId,orderNo:"desc"},url:"ksgl/courseChapter/getBycourseId"}).then((function(t){if("success"===t.code){e.courseChapterData=t.body.listdata;var r=null;e.courseChapterData[e.index].passenger.chapterList.map((function(t,n){t.id===e.$route.query.id&&(e.wareName=t.name,e.courseFileName=t.courseFileName,e.timeLengthView=t.timeLengthView,e.introduction=t.introduction||"暂无",e.chapterListIndex=n,r=t)}));var n=0;e.courseChapterData.forEach((function(t,r){e.index<=r&&t.passenger.chapterList.forEach((function(t,a){(e.index===r&&e.domIndex<a||e.index<r)&&n++}))})),e.isNNextFile=n>0,"video"===e.typeMedia||"audio"===e.typeMedia?e.getVideo():e.viewBodyfile(r,e.index,e.domIndex),e.saveStudyRecord()}else e.$message.error(t.message)})),e.isCollect(),e.collectCount();case 12:case"end":return t.stop()}}),t)})))()},methods:{getVideo:function(){var e=this;this.$http({url:"/ksgl/courseware/getAttachUrl?id=".concat(this.courseChapterData[this.index].passenger.chapterList[this.domIndex].id),method:"GET"}).then((function(t){"success"===t.code?(e.videoUrl="/apigw"+"/ksgl/courseware/download?id=".concat(e.courseChapterData[e.index].passenger.chapterList[e.domIndex].id),e.playerTime=e.courseChapterData[e.index].passenger.chapterList[e.domIndex].studyTimeLength,e.timeLength=e.courseChapterData[e.index].passenger.chapterList[e.domIndex].timeLength,e.isFinish=e.playerTime>=e.timeLength?1:0):e.$message(t.body.message)}))},onVideoTimeUpdate:function(e){var t=this;"3"===this.$route.query.typeEnter&&(e=parseInt(e),1!==this.isFinish&&(e-this.playerTime>=10||e>=this.timeLength)&&(this.playerTime=e,this.isFinish=e>=this.timeLength?1:0,this.$http({url:"/ksgl/studywareRecord/playerTime?weekId=".concat(this.courseChapterData[this.index].passenger.chapterList[this.domIndex].id,"&playerTime=").concat(e,"&chapterId=").concat(this.courseChapterData[this.index].id,"&isFinish=").concat(this.isFinish),method:"POST"}).then((function(e){if("success"!==e.code)t.$message(e.body.message);else if(1===t.isFinish){var r=window.opener.document.querySelector("#btnRefresh");null!==r&&r.click()}}))))},oAudionLoadeddata:function(){this.$refs["audio"].currentTime=this.playerTime},onAudioTimeUpdate:function(){this.onVideoTimeUpdate(this.$refs["audio"].currentTime)},nextWare:function(){var e=this;return Ja(Xa().mark((function t(){var r,n,a,o;return Xa().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r={IMAGE:"image",VIDEO:"video",AUDIO:"audio",DOC:"doc"},e.domIndex++,0===e.courseChapterData[e.index].passenger.chapterList.length&&e.index++,e.domIndex>e.courseChapterData[e.index].passenger.chapterList.length-1&&(e.index++,e.domIndex=0),n=0,e.courseChapterData.forEach((function(t,r){e.index<=r&&t.passenger.chapterList.forEach((function(t,a){(e.index===r&&e.domIndex<a||e.index<r)&&n++}))})),e.isNNextFile=n>0,a=e.courseChapterData[e.index].passenger.chapterList[e.domIndex],!a){t.next=36;break}if(o=JSON.parse(JSON.stringify(e.$route.query)),o.id=a.id,o.index=e.index,o.domIndex=e.domIndex,o.typeMedia=e.typeMedia,o.orderNo=e.nowStudyOrderNo,o.nowStudyWeekId=a.id,e.$router.replace({path:e.$route.path,query:o}),e.updateform=!1,e.wareName=a.name,e.typeMedia=r[a.format],e.courseFileName=a.courseFileName,e.timeLengthView=a.timeLengthView,e.introduction=a.introduction||"暂无","video"!==e.typeMedia&&"audio"!==e.typeMedia){t.next=29;break}return e.videoUrl="",t.next=27,e.getVideo();case 27:t.next=35;break;case 29:if("image"!==e.typeMedia){t.next=33;break}e.courseWareId=a.id,t.next=35;break;case 33:return t.next=35,e.viewBodyfile(a,e.index,e.domIndex);case 35:e.$nextTick((function(){e.updateform=!0,e.saveStudyRecord()}));case 36:case"end":return t.stop()}}),t)})))()},viewBodyfile:function(e,t,r){var n="/apigw/ksgl/courseware/download?inline=true&topdf=true&id="+e.id+"&fileName="+this.courseFileName;n+="&httpPort="+location.port,this.bodyFileUrl="./plugins/PDFjs/web/viewer.html?file="+encodeURIComponent(n)},saveStudyRecord:function(){var e=this;return Ja(Xa().mark((function t(){var r,n,a,o;return Xa().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("3"===e.$route.query.typeEnter){t.next=2;break}return t.abrupt("return");case 2:if("null"!==e.nowStudyOrderNo){t.next=4;break}return t.abrupt("return");case 4:if(r=e.courseChapterData[e.index].passenger.chapterList[e.domIndex].finshState,0!==r){t.next=11;break}return n={chapterId:e.courseChapterData[e.index].id,courseId:e.courseChapterData[e.index].courseId,orderNo:e.nowStudyOrderNo,weekId:e.courseChapterData[e.index].passenger.chapterList[e.domIndex].id},t.next=9,e.$app.insert("/ksgl/studywareRecord/record?type=".concat(e.courseChapterData[e.index].passenger.chapterList[e.domIndex].format),n);case 9:a=t.sent,"success"===a.code&&(e.isFinish=a.body.vo.isFinish,1===e.isFinish&&(o=window.opener.document.querySelector("#btnRefresh"),null!==o&&o.click()));case 11:case"end":return t.stop()}}),t)})))()},isCollect:function(){var e=this;this.$http({url:"/user/collection/getIfCollection",method:"GET",params:{busiDataId:this.$route.query.id,operationType:"1",ownerId:this.loginUser.personId}}).then((function(t){"success"===t.code?e.isColl=t.body.data:e.$message({type:"warning",message:t.body.message})}))},collectCount:function(){var e=this;this.$http({url:"/user/collection/getCollectionCount",method:"GET",params:{busiDataId:this.$route.query.id,operationType:"1"}}).then((function(t){"success"===t.code?e.collectNum=t.body.data:e.$message({type:"warning",message:t.body.message})}))},Collection:function(){var e=this;return Ja(Xa().mark((function t(){var r,n;return Xa().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.addNew("/user/collection/addNew");case 2:if(r=t.sent,"success"!==r.code){t.next=18;break}return e.collectVo=r.body.vo,e.collectVo.busiDataId=e.$route.query.id,e.collectVo.type="课件",e.collectVo.ownerId=e.loginUser.personId,e.collectVo.operationType="1",e.collectVo.url=e.$route.fullPath,e.collectVo.title=e.wareName,e.collectVo.module="courseChapter",t.next=14,e.$app.insert("/user/collection/insert",e.collectVo);case 14:n=t.sent,"success"===n.code?(e.$message.success(n.message),e.isCollect(),e.collectCount()):e.$message.success(n.message),t.next=19;break;case 18:e.$message.success(r.message);case 19:case"end":return t.stop()}}),t)})))()},transTime:function(e){return ro(new Date(e)).format("HH:mm:ss")}}},ao=no,oo=(r(1971),c(ao,Va,Ua,!1,null,"1c169dd8",null)),io=oo.exports,so=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{width:"800px",title:"选择课件",visible:e.innerVisible,"append-to-body":""},on:{"update:visible":function(t){e.innerVisible=t}}},[e.innerVisible?t("div",{staticClass:"right-toolbar-container"},[t("el-input",{staticStyle:{width:"655px"},attrs:{placeholder:"搜索...",clear:"searchBar"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearchTextInner.apply(null,arguments)}},model:{value:e.innerSearchText,callback:function(t){e.innerSearchText=t},expression:"innerSearchText"}},[t("el-button",{staticStyle:{width:"30px"},attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.doSearchTextInner.apply(null,arguments)}},slot:"append"})],1),t("el-button",{staticStyle:{"margin-left":"10px"},attrs:{plain:"",icon:"el-icon-check"},on:{click:e.innerChooseClick}},[e._v("选择")])],1):e._e(),e.innerVisible?t("data-table",{ref:"KJTable",attrs:{"on-list-data-before-load":e.onListDataBeforeLoad,"module-info":e.moduleInfo,"tb-columns":e.tbColumns1,"toolbar-btns":e.listpageBtns,"on-cell-click":e.handleCellClick,"on-selected-rows-change":e.onSelectedRowsChange}}):e._e()],1)],1)},lo=[],co={components:{},props:{vo:{type:Object,default:function(){return{}}}},data:function(){return{moduleInfo:{formTemplate:"courseware",moduleCode:"courseware",listDataUrl:"/ksgl/courseware/listdata",listDefaultOrderBy:"",winWidth:800,winHeight:600},tbColumns1:[{field:"state",checkbox:!0,width:"45px"},{field:"name",title:"课件名称",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0},{field:"categoryName",title:"分类名称",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"createTime",title:"创建时间",width:"130px",align:"center",valign:"middle",sortable:!0,propType:"java.util.Date",elementFormatter:"format:yyyy-MM-dd HH:mm"}],listpageBtns:[],innerVisible:!1,selectedRows:[],selectString:"",index:null}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{click:function(e){console.log(e),this.index=e,this.innerVisible=!0},doSearchTextInner:function(){this.$bus.emit("searchListData",this.innerSearchText,"or","dialog")},onListDataBeforeLoad:function(e,t){t.urlsearch="orgCode:"+e.loginUser.orgCode},onSelectedRowsChange:function(e){var t=this;this.selectedRows=e,this.selectString=[],this.selectedRows.forEach((function(e){t.selectString.push(e.id)})),this.selectString=this.selectString.toString()},innerChooseClick:function(){this.$bus.emit("selectedCrouseString",this.selectString,this.index),this.$bus.emit("selectedCrouseObj",this.selectedRows,this.index),this.innerVisible=!1}}},uo=co,po=(r(7978),c(uo,so,lo,!1,null,"6c8f933c",null)),ho=po.exports,fo=function(){var e=this,t=e._self._c;return t("div",[t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("div",{staticClass:"header-table-title",staticStyle:{"text-align":"left"},attrs:{colspan:"6"}},[t("span",[e._v("培训时间")]),t("span",{staticClass:"Fright"},[t("el-button",{attrs:{plain:"",size:"mini",icon:"el-icon-delete",disabled:1!==e.canEdit},on:{click:e.delChecked}},[e._v("删除")])],1),t("span",{staticClass:"Fright"},[t("el-button",{attrs:{plain:"",size:"mini",icon:"el-icon-plus",disabled:1!==e.canEdit},on:{click:e.AddTimeInCycle}},[e._v("按周排课")])],1),t("span",{staticClass:"Fright"},[t("el-button",{attrs:{plain:"",size:"mini",icon:"el-icon-plus",disabled:1!==e.canEdit},on:{click:e.AddasCalender}},[e._v("按天排课")])],1)]),t("el-table",{ref:"elTable",attrs:{border:"",data:e.ManagetableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange},model:{value:e.ManagetableData,callback:function(t){e.ManagetableData=t},expression:"ManagetableData"}},[t("el-table-column",{attrs:{type:"selection",width:"45",align:"center"}}),t("el-table-column",{attrs:{type:"index",label:"序号",width:"55",align:"center"}}),t("el-table-column",{attrs:{label:"上课日期",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(e.dellTime(r.row.stateTime))+" "+e._s(e.dellDay(r.row.stateTime))+" ")])]}}])}),t("el-table-column",{attrs:{label:"上课时间",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(e.dellotherTime(r.row.stateTime))+" ~ "+e._s(e.dellotherTime(r.row.endTime)))])]}}])}),1===e.canEdit?t("el-table-column",{attrs:{label:"操作",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer","margin-right":"6px"},attrs:{icon:"el-icon-edit","font-size":"20px"},on:{click:function(t){return e.updateChecked(r.$index,r.row)}}}),t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},attrs:{icon:"el-icon-delete","font-size":"20px"},on:{click:function(t){return e.delChecked(r.$index,r.row)}}})]}}],null,!1,1522554131)}):e._e()],1),e.ShowCycleTimeDialog?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{title:"按周排课",visible:e.ShowCycleTimeDialog,width:"650px","append-to-body":"","before-close":e.CyclehandleClose,"close-on-click-modal":!1},on:{"update:visible":function(t){e.ShowCycleTimeDialog=t}}},[t("div",{staticStyle:{"text-align":"center","font-size":"16px"}},[e._v("课程时间:"+e._s(e.formatTime(e.vo.stateTime,"YYYY年MM月DD日"))+" 至 "+e._s(e.formatTime(e.vo.endTime,"YYYY年MM月DD日")))]),t("div",{staticClass:"cycle-box",staticStyle:{height:"369px"}},[t("el-scrollbar",{attrs:{native:!1}},[t("div",[t("el-checkbox-group",{on:{change:e.chooseDay},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.TimeList,(function(r,n){return t("div",{key:r.type},[t("el-row",{staticClass:"cycle-week-box"},[t("el-col",{staticStyle:{"text-align":"center",display:"flex","padding-left":"10px"},attrs:{span:"6"}},[t("div",{staticStyle:{"line-height":"36px"}},[t("el-checkbox",{attrs:{label:r.name,name:r.type}})],1),t("div",{staticClass:"MarginL20",staticStyle:{"line-height":"36px"}},[e._v("上课时间")])]),t("el-col",{attrs:{span:"16"}},e._l(r.courseList,(function(r,n){return t("div",{key:n,staticClass:"flex time-box"},[t("el-time-picker",{attrs:{format:"HH:mm",placeholder:"任意时间点",disabled:r.disabled},model:{value:r.startTime,callback:function(t){e.$set(r,"startTime",t)},expression:"data.startTime"}}),t("div",{staticClass:"text"},[e._v("至")]),t("el-time-picker",{attrs:{format:"HH:mm",placeholder:"任意时间点",disabled:r.disabled},model:{value:r.endTime,callback:function(t){e.$set(r,"endTime",t)},expression:"data.endTime"}})],1)})),0),t("el-col",{staticStyle:{align:"center"},attrs:{span:"2"}},[0===e.num?t("i",{staticClass:"el-icon-plus icon-box",staticStyle:{"line-height":"36px"},on:{click:function(t){return e.addThisTime(r,n)}}}):t("i",{staticClass:"el-icon-delete icon-box",staticStyle:{"line-height":"36px"},on:{click:function(t){return e.deleteOneTime(r,e.num)}}})])],1)],1)})),0)],1)])],1),t("div",{staticClass:"footer"},[t("el-button",{attrs:{plain:""},on:{click:function(t){e.ShowCycleTimeDialog=!e.ShowCycleTimeDialog}}},[e._v("关 闭")]),t("el-button",{attrs:{type:"primary"},on:{click:e.zhouqiclick}},[e._v("确 定")])],1)]):e._e(),e.ShowCalenderDialog?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{title:"按天排课",visible:e.ShowCalenderDialog,width:"520px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.ShowCalenderDialog=t}}},[t("div",{staticStyle:{"text-align":"center","font-size":"16px"}},[e._v("课程时间:"+e._s(e.formatTime(e.vo.stateTime,"YYYY年MM月DD日"))+" 至 "+e._s(e.formatTime(e.vo.endTime,"YYYY年MM月DD日")))]),t("div",{staticClass:"calendar-box"},[e.ShowCalenderDialog?t("calendar",{attrs:{"get-day-details":e.getDay,"default-type":"month","start-time":e.vo.stateTime,"end-time":e.vo.endTime}}):e._e()],1),t("div",{staticClass:"cycle-box"},[t("el-scrollbar",{attrs:{native:!1,tag:"div"}},[t("div",{staticStyle:{"text-align":"left"}},e._l(e.CalenderTimeList,(function(r,n){return t("div",{key:n},[t("el-row",{staticClass:"calender-week-box"},[t("el-col",{staticStyle:{"text-align":"center","font-size":"var(--portalFontSize15)"},attrs:{span:"4"}},[e._v("上课时间")]),t("el-col",{attrs:{span:"18"}},[t("div",{staticClass:"flex time-box"},[t("el-time-picker",{attrs:{format:"HH:mm",placeholder:"任意时间点","default-value":new Date(0,0,0,8,0,0)},model:{value:r.startTime,callback:function(t){e.$set(r,"startTime",t)},expression:"item.startTime"}}),t("div",{staticClass:"text"},[e._v("至")]),t("el-time-picker",{attrs:{format:"HH:mm",placeholder:"任意时间点","default-value":new Date(0,0,0,18,0,0)},model:{value:r.endTime,callback:function(t){e.$set(r,"endTime",t)},expression:"item.endTime"}})],1)]),t("el-col",{attrs:{span:"2"}},[0===n?t("i",{staticClass:"el-icon-plus icon-box",staticStyle:{"line-height":"36px"},on:{click:function(t){return e.CalenderaddThisTime(r,n)}}}):e._e(),n>0?t("i",{staticClass:"el-icon-delete icon-box",staticStyle:{"line-height":"36px"},on:{click:function(t){return e.CalenderdeleteOneTime(r,e.num)}}}):e._e()])],1)],1)})),0)])],1),t("div",{staticClass:"footer"},[t("el-button",{attrs:{plain:""},on:{click:function(t){e.ShowCalenderDialog=!e.ShowCalenderDialog}}},[e._v("关 闭")]),t("el-button",{attrs:{type:"primary"},on:{click:e.Calenderclick}},[e._v("确定")])],1)]):e._e(),e.showUpdateTime?t("el-dialog",{attrs:{title:"培训时间",visible:e.showUpdateTime,width:"520px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.showUpdateTime=t}}},[t("div",[t("span",[e._v("开始时间")]),t("span",[t("el-date-picker",{attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm",placeholder:"选择开始时间","default-value":new Date(0,0,0,0,0,0)},model:{value:e.dialogTime.stateTime,callback:function(t){e.$set(e.dialogTime,"stateTime",t)},expression:"dialogTime.stateTime"}})],1)]),t("div",{staticStyle:{"margin-top":"10px"}},[t("span",[e._v("结束时间")]),t("span",[t("el-date-picker",{attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm",placeholder:"选择结束时间","default-value":new Date(0,0,0,0,0,0)},model:{value:e.dialogTime.endTime,callback:function(t){e.$set(e.dialogTime,"endTime",t)},expression:"dialogTime.endTime"}})],1)]),t("div",{staticClass:"updatefooter"},[t("el-button",{attrs:{plain:""},on:{click:function(t){e.showUpdateTime=!e.showUpdateTime}}},[e._v("关 闭")]),t("el-button",{attrs:{type:"primary"},on:{click:e.sureTime}},[e._v("确定")])],1)]):e._e()],1)])])],1)},mo=[],yo=r(5093);function vo(e,t,r,n,a){var o={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},i=[];if("scheduleTime"===a)for(var s=0;s<n.length;s++){var l=new Date(n[s]),c={data:yo(l).format("YYYY-MM-DD"),weekNum:l.getDay(),weekName:o[l.getDay()]};i.push(c)}else for(var u=new Date(e).getTime(),d=new Date(t).getTime(),p=(d-u)/24/60/60/1e3+1,h=0;h<p;h++){var f=new Date(u+24*h*60*60*1e3);if(r.indexOf(f.getDay())>-1){var m={data:yo(f).format("YYYY-MM-DD"),weekNum:f.getDay(),weekName:o[f.getDay()]};i.push(m)}}return i}function go(e){for(var t in e)if(!r(t,e))return!1;return!0;function r(e,t){for(var r in t)if(e!==r){if(t[r].startTime<=t[e].startTime&&t[r].endTime>t[e].startTime)return!1;if(t[r].startTime<t[e].endTime&&t[r].endTime>=t[e].endTime)return!1}return!0}}function _o(e){return _o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_o(e)}function bo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */bo=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==_o(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(_o(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function wo(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function xo(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){wo(o,n,a,i,s,"next",e)}function s(e){wo(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Lo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(r),!0).forEach((function(t){ko(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ko(e,t,r){return(t=To(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function To(e){var t=Do(e,"string");return"symbol"==_o(t)?t:t+""}function Do(e,t){if("object"!=_o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Yo=r(8957),So=Yo.sortByKey,Co=r(5093),jo={components:{calendar:Qr},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{ShowCycleTimeDialog:!1,ShowCalenderDialog:!1,checkList:[],WeekList:["周一","周二","周三","周四","周五","周六","周日"],TimeList:[{type:2,name:"周一",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]},{type:3,name:"周二",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]},{type:4,name:"周三",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]},{type:5,name:"周四",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]},{type:6,name:"周五",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]},{type:7,name:"周六",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]},{type:1,name:"周日",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]}],CalenderTimeList:[{startTime:new Date(0,0,0,9,0,0),endTime:new Date(0,0,0,18,0,0)}],byDayArr:[],ManagetableData:[],DayWeekArr:{0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},showUpdateTime:!1,dialogTime:{},stateTime1:"",endTime1:"",selectIds:""}},computed:Mo({},ce(["routes","loginUser"])),watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){this.getTimeList()},methods:{init:function(){this.TimeList=[{type:2,name:"周一",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]},{type:3,name:"周二",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]},{type:4,name:"周三",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]},{type:5,name:"周四",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]},{type:6,name:"周五",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]},{type:7,name:"周六",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]},{type:1,name:"周日",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]}],this.CalenderTimeList=[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0)}]},AddTimeInCycle:function(){this.ShowCycleTimeDialog=!0,this.init()},click:function(){},addThisTime:function(e,t){if(e.courseList[0].disabled)this.$confirm("请选择要添加的周期!","提示",{type:"warning",closeOnClickModal:!1});else{var r={startTime:e.courseList[0].startTime,endTime:e.courseList[0].endTime,disabled:!1};this.TimeList[t].courseList.push(r),this.$forceUpdate()}},chooseDay:function(e){this.TimeList.forEach((function(t){t.courseList[0].disabled=-1===e.indexOf(t.name),t.courseList[0].disabled&&t.courseList.length>1&&t.courseList.splice(1,t.courseList.length)})),this.$forceUpdate()},deleteOneTime:function(e,t){e.courseList.splice(t,1)},AddasCalender:function(){this.ShowCalenderDialog=!0,this.init()},CalenderaddThisTime:function(e,t){var r={startTime:e.startTime,endTime:e.endTime};this.CalenderTimeList.push(r),this.$forceUpdate()},CalenderdeleteOneTime:function(e,t){this.CalenderTimeList.splice(t,1),this.$forceUpdate()},getDay:function(e,t){this.byDayArr=e;var r=/\//g;this.byDayArr.forEach((function(e){e.date=e.date.replace(r,"-"),e.date=Co(new Date(e.date)).format("YYYY-MM-DD")}))},Calenderclick:function(){var e=this,t=JSON.parse(JSON.stringify(this.CalenderTimeList));t.forEach((function(e){e.startTime=Co(new Date(e.startTime)).format("HH:mm"),e.endTime=Co(new Date(e.endTime)).format("HH:mm")}));var r={calenderTimeList:t,byDayArr:this.byDayArr},n=this.judgeTime(t,"calender");if(null!==n&&(n.errorOverlapMessage||n.errorConflictMessage)){var a=n.errorConflictMessage?n.errorConflictMessage+"起止时间选择错误":"";a+=n.errorOverlapMessage?""!==a?",所选时间有重叠":"所选时间有重叠":"",this.$alert(a+",请重新选择!","提示",{type:"warning"})}else{var o,i=[];this.byDayArr.forEach((function(e){i.push(e.date)}));var s=vo(null,null,null,i,"scheduleTime");0===s.length&&this.$alert("请选择授课日期!","提示",{type:"warning"});var l=JSON.parse(JSON.stringify(this.ManagetableData)),c="";if(s.forEach((function(e){var r=t;l.forEach((function(t){e.data===t.stateTime.split(" ")&&r.push({startTime:t.stateTime.substr(11,5),endTime:t.endTime.substr(11,5)})}));var n=go(r);n||(""!==c&&(c+="、"),c+=e.data)})),""!==c)return void this.$alert(c+"所选时间段和已保存的课程时间冲突,请重新选择!","提示",{type:"warning"});var u=[];s.forEach((function(e){t.forEach((function(t){u.push({endTime:e.data+" "+t.endTime+":00",stateTime:e.data+" "+t.startTime+":00"})}))})),(o=l).push.apply(o,u),l=So(l,"stateTime","asc");var d=this.vo.stateTime.split(" ")[0]+" 00:00:00",p=this.vo.endTime.split(" ")[0]+" 24:00:00";if(l[0].stateTime<d||l[l.length-1].endTime>p)return void this.$alert("所选时间周期超出指定的课程时间范围,请重新选择!","提示",{type:"warning"});this.$http({url:"/ksgl/courseTime/insertCourseTimeByDay",method:"POST",data:r,params:{startTime:d,endTime:p,courseId:this.vo.id},contentType:"application/x-www-form-urlencoded"}).then((function(t){"success"===t.code?(e.ShowCalenderDialog=!1,e.getTimeList(),e.$forceUpdate()):e.$message({type:"warning",center:!0,message:t.message})}))}},zhouqiclick:function(){var e=this,t=JSON.parse(JSON.stringify(this.TimeList));t.forEach((function(e){e.courseList.length>0&&e.courseList.forEach((function(e){e.startTime=Co(new Date(e.startTime)).format("HH:mm"),e.endTime=Co(new Date(e.endTime)).format("HH:mm")}))}));var r=[],n=t.filter((function(e){if(!e.courseList[0].disabled)return r.push(e.type-1),!e.courseList[0].disabled})),a=this.judgeTime(n,"cycle");if(null!==a&&(a.errorOverlapMessage||a.errorConflictMessage)){var o=a.errorConflictMessage?a.errorConflictMessage+"起止时间选择错误":"";o+=a.errorOverlapMessage?""!==o?","+a.errorOverlapMessage+"所选时间有重叠":a.errorOverlapMessage+"所选时间有重叠":"",this.$alert(o+",请重新选择!","提示",{type:"warning"})}else{var i,s=vo(this.vo.stateTime.split(" ")[0],this.vo.endTime.split(" ")[0],r),l=this,c="";if(n.forEach((function(e){var t=JSON.parse(JSON.stringify(e.courseList));l.ManagetableData.forEach((function(r){var n=new Date(r.stateTime);n.getDay()===e.type-1&&t.push({startTime:r.stateTime.substr(11,5),endTime:r.endTime.substr(11,5)})}));var r=go(t);r||(""!==c&&(c+="、"),c+=e.name)})),""!==c)return void this.$alert(c+"所选时间段已保存的课程时间冲突,请重新选择!","提示",{type:"warning"});var u=[];s.forEach((function(e){n.forEach((function(t){t.type-1===e.weekNum&&t.courseList.length>0&&t.courseList.forEach((function(t){u.push({endTime:e.data+" "+t.endTime+":00",stateTime:e.data+" "+t.startTime+":00"})}))}))}));var d=JSON.parse(JSON.stringify(this.ManagetableData));(i=d).push.apply(i,u),d=So(d,"stateTime","asc");var p=this.vo.stateTime.split(" ")[0]+" 00:00:00",h=this.vo.endTime.split(" ")[0]+" 24:00:00";if(d[0].stateTime<p||d[d.length-1].endTime>h)return void this.$alert("所选时间周期超出指定的课程时间范围,请重新选择!","提示",{type:"warning"});this.ShowCycleTimeDialog=!1,this.$http({url:"/ksgl/courseTime/insertCourseTimeByWeek",method:"POST",data:n,params:{startTime:p,endTime:h,courseId:this.vo.id},contentType:"application/x-www-form-urlencoded"}).then((function(t){"success"===t.code?(e.ShowCycleTimeDialog=!1,e.checkList=[],e.ManagetableData=t.body.courseTimes,e.getTimeList(),e.$forceUpdate()):e.$message({type:"warning",center:!0,message:t.message})}))}},judgeTime:function(e,t){var r=Co(new Date).format("YYYY-MM-DD"),n="",a="";if("cycle"===t)return e.forEach((function(e,t){var o="";e.courseList.forEach((function(t){var n=r+" "+t.startTime+":00",a=r+" "+t.endTime+":00";new Date(n).getTime()>new Date(a).getTime()&&(o=e.name+" "+t.startTime+" - "+t.endTime)}));var i=go(e.courseList);i||(""!==a&&(a+="、"),a+=e.name),""!==n&&""!==o&&(n+="、"),n+=o})),""!==n||""!==a?{errorConflictMessage:n,errorOverlapMessage:a}:null;if("calender"===t){e.forEach((function(e,t){var a=r+" "+e.startTime+":00",o=r+" "+e.endTime+":00";new Date(a).getTime()>new Date(o).getTime()&&(""!==n&&(n+="、"),n+=e.startTime+" - "+e.endTime)}));var o=go(e);return o||(a=!0),""!==n||""!==a?{errorConflictMessage:n,errorOverlapMessage:a}:null}},dellTime:function(e){return e?Co(new Date(e)).format("YYYY-MM-DD"):""},dellotherTime:function(e){return e?Co(new Date(e)).format("HH:mm"):""},dellDay:function(e){return e?this.DayWeekArr[new Date(e).getDay()]:""},updateChecked:function(e,t){this.showUpdateTime=!0,this.stateTime1=t.stateTime,this.endTime1=t.endTime,this.dialogTime=t},sureTime:function(){var e=this;return xo(bo().mark((function t(){var r;return bo().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(new Date(e.stateTime1).getDate()===new Date(e.dialogTime.stateTime).getDate()&&new Date(e.endTime1).getDate()===new Date(e.dialogTime.endTime).getDate()){t.next=4;break}e.$message({type:"warning",center:!0,message:"不可以选择跨天时间"}),t.next=10;break;case 4:return e.dialogTime.stateTime=Co(e.dialogTime.stateTime).format("YYYY-MM-DD HH:mm"),e.dialogTime.endTime=Co(e.dialogTime.endTime).format("YYYY-MM-DD HH:mm"),t.next=8,e.$app.update("/ksgl/courseTime/update",e.dialogTime);case 8:r=t.sent,"success"===r.code?(e.showUpdateTime=!1,e.$message({message:"修改成功",type:"success"}),e.$http({url:"/ksgl/courseTime/listdata",method:"POST",params:{courseId:e.vo.id},contentType:"application/x-www-form-urlencoded"}).then((function(t){"success"===t.code?(e.getTimeList(),e.$forceUpdate()):e.$message({type:"warning",center:!0,message:t.message})}))):e.$message({type:"warning",center:!0,message:r.message});case 10:case"end":return t.stop()}}),t)})))()},delChecked:function(e,t){var r=this;t||this.selectIds?this.$confirm("您是否确认删除?","确认操作",{type:"warning",closeOnClickModal:!1}).then((function(){r.$http({url:"/ksgl/courseTime/delete",method:"DELETE",params:{ids:t?t.id:r.selectIds},contentType:"application/x-www-form-urlencoded"}).then((function(e){"success"===e.code?(r.$message({type:"success",center:!0,message:"删除成功"}),r.getTimeList(),r.$forceUpdate()):r.$message({type:"warning",center:!0,message:e.message})}))})).catch((function(){r.$message({type:"info",message:"已取消删除"})})):this.$message.warning("请先选择需要删除的排课信息")},getTimeList:function(){var e=this;this.ManagetableData=[],this.$http({url:"/ksgl/courseTime/listdata?urlsearch=courseId:".concat(this.vo.id),method:"POST",params:{orderBy:"stateTime asc"},contentType:"application/x-www-form-urlencoded"}).then((function(t){"success"===t.code?(e.ManagetableData=t.body.pageInfo.list,e.$forceUpdate()):e.$message({type:"warning",center:!0,message:t.message})}))},CyclehandleClose:function(){this.checkList=[],this.ShowCycleTimeDialog=!1},handleSelectionChange:function(e){var t="";e.forEach((function(e){""!==t&&(t+=","),t+=e.id})),this.selectIds=t},formatTime:function(e,t){return Co(e).format(t)}}},Eo=jo,Oo=(r(6110),c(Eo,fo,mo,!1,null,"cf9db4e2",null)),Po=Oo.exports,Ao=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{width:"620px",title:"选择讲师",visible:e.innerVisible,"append-to-body":""},on:{"update:visible":function(t){e.innerVisible=t}}},[e.innerVisible?t("div",{staticClass:"right-toolbar-container top-inpit"},[t("el-input",{attrs:{placeholder:"搜索...",clear:"searchBar"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearchTextInner.apply(null,arguments)}},model:{value:e.innerSearchText,callback:function(t){e.innerSearchText=t},expression:"innerSearchText"}},[t("el-button",{staticStyle:{width:"30px"},attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.doSearchTextInner.apply(null,arguments)}},slot:"append"})],1)],1):e._e(),e.innerVisible?t("data-table",{attrs:{"on-list-data-before-load":e.onListDataBeforeLoad,"module-info":e.moduleInfo,"tb-columns":e.tbColumns1,"on-list-data-loaded":e.onListDataLoaded,"toolbar-btns":e.listpageBtns}}):e._e()],1)],1)},No=[],Ho={components:{},props:{},data:function(){return{moduleInfo:{formTemplate:"teacher",moduleCode:"teacher",listDataUrl:"/ksgl/teacher/listdata",listDefaultOrderBy:"",winWidth:800,winHeight:600},tbColumns1:[{field:"name",title:"讲师姓名",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0},{field:"type",title:"讲师类型",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"createTime",title:"创建时间",width:"130px",align:"center",valign:"middle",sortable:!0,propType:"java.util.Date",elementFormatter:"format:yyyy-MM-dd HH:mm"},{field:"column_operate",title:"操作",width:"70px",align:"center",valign:"middle"}],listpageBtns:[{id:"btn_deleteId",btnName:"选择",btnClick:this.chooseItem,btnPermission:"deleteIds",btnType:"column",btnIcon:""}],innerVisible:!1,selectedRows:[],selectString:"",innerSearchText:"",searchMap:{}}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{click:function(){this.innerVisible=!0},doSearchTextInner:function(){this.$bus.emit("refreshListData")},onListDataBeforeLoad:function(e,t){console.log(t.urlsearch,22222222),t.urlsearch="orgCode:"+e.loginUser.orgCode,t.orderBy="createTime desc",t.searchMap["name"]=this.innerSearchText,t.searchMap["type"]=this.innerSearchText,t.searchMap["createTime"]=this.innerSearchText,t.searchAndOr="or"},chooseItem:function(e){console.log(e);var t={id:"",name:""};t.id=e.id,t.name=e.name,this.$bus.emit("chooseTeacher",t),this.innerVisible=!1},onListDataLoaded:function(e,t){console.log(e,t),console.log(66666,t),t.list.forEach((function(e){e.type=0===e.type?"内部":"外部"}))}}},Io=Ho,Fo=(r(7346),c(Io,Ao,No,!1,null,"d72aae4e",null)),zo=Fo.exports,Bo=function(){var e=this,t=e._self._c;return t("div",{staticClass:"addnew-lesson-content"},[e.showlog?t("div",[t("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{class:2===e.addType?"":"online",attrs:{label:"基本信息",name:"frist"}},[t("el-scrollbar",{attrs:{native:!1}},[t("el-form",{staticStyle:{width:"809px"},attrs:{model:e.basicvo}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{ref:"tdlbl_课程名称",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 课程名称 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"name",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"input",emptyMessage:"请输入课程名称",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"课程名称",propName:"name",propType:"String",textFormatter:"textfield",valueMaxLength:null,valueMinLength:null,model:"vo.name",option:[]},vo:e.basicvo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_课程分类",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 课程分类 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("choose-type",{attrs:{vo:e.basicvo,"can-edit":e.canEdit,btype:3}})],1)]),t("tr",[t("td",{ref:"tdlbl_授课方式 ",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 授课方式 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("span",[e._v(e._s(1===e.basicvo.shoukeType?"线上课程":"线下课程"))])])]),t("tr",[t("td",{ref:"tdlbl_课程封面",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 课程封面 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"cover",attrs:{field:{defaultValue:"coverUrl",elementCanEdit:"{{canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:null,elementType:"file",emptyMessage:"请选择课程封面",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"课程封面",propName:"cover",propType:"byte[]",textFormatter:".jpg,.png",valueMaxLength:null,valueMinLength:null,model:"vo.cover",option:[],downloadUrl:"/ksgl/course/download",nameField:"coverUrl"},vo:e.basicvo,"can-edit":e.canEdit}})],1)]),2===e.basicvo.shoukeType?t("tr",[t("td",{ref:"tdlbl_讲师ID",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 讲师 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},["admin"===e.type&&1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"讲师",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{readonly:"true",required:"true",placeholder:"请选择讲师"},model:{value:e.Teachervalue,callback:function(t){e.Teachervalue=t},expression:"Teachervalue"}},[t("el-button",{attrs:{slot:"append"},on:{click:e.onclickTeacher},slot:"append"},[e._v("...")])],1)],1)]}}],null,!1,24320017)}):t("span",[e._v(e._s(e.Teachervalue))])],1)]):e._e(),2===e.basicvo.shoukeType?t("tr",[t("td",{ref:"tdlbl_开始时间",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 开始时间 ")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("form-item",{ref:"stateTime",attrs:{field:{defaultValue:null,elementCanEdit:"{{canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:1,elementType:"date",emptyMessage:"请选择开始时间",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"开始时间",propName:"stateTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd HH:mm",valueMaxLength:null,valueMinLength:null,model:"vo.stateTime",option:[]},vo:e.basicvo,"can-edit":e.canEdit}})],1),t("td",{ref:"tdlbl_结束时间",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 结束时间 ")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("form-item",{ref:"endTime",attrs:{field:{defaultValue:null,elementCanEdit:"{{canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:1,elementType:"date",emptyMessage:"请选择结束时间",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"结束时间",propName:"endTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd HH:mm",valueMaxLength:null,valueMinLength:null,model:"vo.endTime",option:[]},vo:e.basicvo,"can-edit":e.canEdit}})],1)]):e._e(),2===e.basicvo.shoukeType?t("tr",[t("td",{ref:"tdlbl_培训地点",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 培训地点 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"培训地点",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"100%","margin-right":"20px"},attrs:{readonly:e.PassStartTime},model:{value:e.basicvo.address,callback:function(t){e.$set(e.basicvo,"address",t)},expression:"basicvo.address"}})],1)]}}],null,!1,1199847786)}):t("span",[e._v(e._s(e.basicvo.address))])],1)]):e._e(),2===e.basicvo.shoukeType?t("tr",[t("td",{ref:"tdlbl_是否签到",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 是否签到 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("el-radio-group",{attrs:{disabled:e.PassStartTime||1!==e.canEdit},model:{value:e.basicvo.issign,callback:function(t){e.$set(e.basicvo,"issign",t)},expression:"basicvo.issign"}},[t("el-radio",{attrs:{label:0}},[e._v("否")]),t("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)]):e._e(),1===e.basicvo.issign?t("tr",[t("td",{ref:"tdlbl_签到时间",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 签到时间 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e._v(" 开课时间前 "),1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"考试次数",rules:"required|integer|max:100"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"100px","margin-right":"20px"},attrs:{readonly:e.PassStartTime},model:{value:e.basicvo.advanceTime,callback:function(t){e.$set(e.basicvo,"advanceTime",t)},expression:"basicvo.advanceTime"}})],1)]}}],null,!1,3699611454)}):t("span",[e._v(e._s(e.basicvo.advanceTime))]),e._v(" 分钟内签到有效 ")],1)]):e._e(),t("tr",[t("td",{ref:"tdlbl_学分获得选项",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 学分获得选项 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("div",[t("el-radio-group",{attrs:{disabled:e.PassStartTime||1!==e.canEdit},on:{change:e.changeRadio},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[t("span",[t("el-radio",{staticStyle:{"margin-right":"0px"},attrs:{label:0}},[t("span",{staticStyle:{"margin-right":"0px"}},[e._v("章节学习率超过")])]),t("span",[1===e.canEdit?t("el-input",{staticStyle:{width:"50px"},attrs:{readonly:e.readonly},model:{value:e.basicvo.needRate,callback:function(t){e.$set(e.basicvo,"needRate",t)},expression:"basicvo.needRate"}}):t("span",[e._v(e._s(e.basicvo.needRate))])],1),t("span",[e._v("%即可获得学分")])],1),t("span",{staticStyle:{"margin-left":"30px"}},[t("el-radio",{attrs:{label:1}},[t("span",[e._v("不启用学分")])])],1)])],1)])]),e.readonly?e._e():t("tr",[t("td",{ref:"tdlbl_学分",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 学分 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"答案选项",rules:"required|integer|max:3|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{readonly:e.PassStartTime||e.readonly,placeholder:"请输入可获得学分奖励"},model:{value:e.basicvo.credit,callback:function(t){e.$set(e.basicvo,"credit",t)},expression:"basicvo.credit"}})],1)]}}],null,!1,2600078227)}):t("span",[e._v(e._s(e.basicvo.credit))])],1)]),t("tr",[t("td",{ref:"tdlbl_学员设置",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 学员设置 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("div",[t("div",[t("el-radio-group",{attrs:{disabled:e.PassStartTime||1!==e.canEdit},on:{change:e.khChange},model:{value:e.basicvo.studyType,callback:function(t){e.$set(e.basicvo,"studyType",t)},expression:"basicvo.studyType"}},[t("el-radio",{attrs:{label:1}},[e._v("全部")]),t("el-radio",{attrs:{label:2}},[e._v("部门")]),t("el-radio",{attrs:{label:3}},[e._v("群组")]),t("el-radio",{attrs:{label:4}},[e._v("指定人")])],1)],1)])])]),2===e.basicvo.studyType||3===e.basicvo.studyType||4===e.basicvo.studyType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),2===e.basicvo.studyType?t("span",[e._v("指定部门")]):e._e(),3===e.basicvo.studyType?t("span",[e._v("指定群组")]):e._e(),4===e.basicvo.studyType?t("span",[e._v("指定人员")]):e._e()]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?[2===e.basicvo.studyType&&e.isUpdate?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定部门",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{placeholder:"请选择指定部门","org-level":"2",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds"},model:{value:e.basicvo.studyName,callback:function(t){e.$set(e.basicvo,"studyName",t)},expression:"basicvo.studyName"}})],1)]}}],null,!1,3629509076)}):e._e(),3===e.basicvo.studyType&&e.isUpdate?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定群组",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"workgroup",expression:"'workgroup'"}],attrs:{placeholder:"请选择指定群组",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds2"},model:{value:e.basicvo.studyName,callback:function(t){e.$set(e.basicvo,"studyName",t)},expression:"basicvo.studyName"}})],1)]}}],null,!1,2026669603)}):e._e(),4===e.basicvo.studyType&&e.isUpdate?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定人员",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{placeholder:"请选择指定人员",readonly:"readonly",multiple:"true",type:"textarea",name:"studyId",nametype:"2","root-org-code":e.vo.orgCode},model:{value:e.basicvo.studyName,callback:function(t){e.$set(e.basicvo,"studyName",t)},expression:"basicvo.studyName"}})],1)]}}],null,!1,81454577)}):e._e()]:t("span",[e._v(e._s(e.basicvo.studyName))])],2)]):e._e(),t("tr",[t("td",{ref:"tdlbl_课程说明",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 课程说明 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"introduction",attrs:{field:{defaultValue:null,elementCanEdit:"{{canEdit}}",elementCssHeight:70,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"textarea",emptyMessage:"请输入课程说明",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"课程说明",propName:"introduction",propType:"String",textFormatter:"textarea",valueMaxLength:null,valueMinLength:null,model:"vo.introduction",option:[]},vo:e.basicvo,"can-edit":e.canEdit}})],1)])])])])])])],1)],1),t("el-tab-pane",{attrs:{label:"课程章节",name:"course"}},[t("el-scrollbar",{attrs:{native:!1}},[t("el-form",{staticStyle:{width:"809px"},attrs:{model:e.basicvo}},[void 0!==e.basicvo.passenger.chapterList?t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("div",{staticClass:"header-table-title",staticStyle:{"text-align":"left"},attrs:{colspan:"6"}},[t("span",[e._v("课程章节")]),t("span",{staticClass:"Fright"},[t("el-button",{attrs:{disabled:1!==e.canEdit,type:"plain",size:"mini",icon:"el-icon-plus"},on:{click:function(t){return e.openChapterDialog()}}},[e._v("新增")])],1)]),t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("el-collapse",{attrs:{accordion:""},on:{change:e.changecollaspe},model:{value:e.activeCollapse,callback:function(t){e.activeCollapse=t},expression:"activeCollapse"}},[e._l(e.basicvo.passenger.chapterList,(function(r,n){return[t("el-collapse-item",{key:r.id,attrs:{name:n+""}},[t("template",{slot:"title"},[t("div",{staticClass:"header-table-zjtitle"},[t("span",{staticClass:"MarginL20"},[e._v(e._s(r.title)+" "+e._s(r.name))]),1===e.canEdit?t("span",{staticClass:"Fright"},[t("el-button",{attrs:{type:"plain",size:"mini",icon:"el-icon-delete",title:"删除章节"},on:{click:function(t){return t.stopPropagation(),e.DeleteListItem("3","",n,r)}}})],1):e._e(),1===e.canEdit?t("span",{staticClass:"Fright",staticStyle:{position:"relative"}},[t("div",{on:{click:function(t){return t.stopPropagation(),e.ClickDropdown.apply(null,arguments)}}},[t("el-dropdown",{attrs:{trigger:"click",tabindex:n},on:{command:e.ClickDropdown}},[t("span",{staticClass:"el-dropdown-link"},[t("el-button",{attrs:{type:"plain",size:"mini",icon:"el-icon-plus"}})],1),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:e.beforeHandleCommand(n,"课件")}},[e._v("课件")]),t("el-dropdown-item",{attrs:{command:e.beforeHandleCommand(n,"练习")}},[e._v("练习")])],1)],1)],1)]):e._e(),1===e.canEdit?t("span",{staticClass:"Fright"},[t("el-button",{attrs:{type:"plain",size:"mini",icon:"el-icon-edit"},on:{click:function(t){return t.stopPropagation(),e.openChapterDialog(r,n)}}})],1):e._e()])]),e.showcollspan?t("div",[e._l(r.passenger.RouseList,(function(r,a){return t("div",{key:r.passenger.id},[t("div",{staticClass:"box-collapseItem"},[t("svg-icon",{staticClass:"l",staticStyle:{"margin-top":"12px",width:"18px",height:"14px","margin-right":"10px"},attrs:{"icon-class":"DOC"===r.passenger.format?"lianxi_icon":"VIDEO"===r.passenger.format?"shipin_icon":"AUDIO"===r.passenger.format?"yinpin_icon":"tupian_icon"}}),t("span",[e._v(e._s(r.passenger.name)+" "+e._s(r.passenger.timeLengthView?e.formatTime(r.passenger.timeLengthView,"HH:mm:ss"):""))]),1===e.canEdit?t("span",{staticClass:"Fright"},[t("el-button",{attrs:{type:"plain",size:"mini",icon:"el-icon-delete",title:"删除课件"},on:{click:function(t){return e.DeleteListItem("1",a,n,r)}}})],1):e._e()],1)])})),r.passenger.showManage?t("div",[t("div",{staticClass:"box-collapseItem"},[t("div",{staticStyle:{display:"inline-block"}},[t("div",[e._v("[练习]已选试题[单选:"+e._s(r.passenger.DanXnum)+";多选:"+e._s(r.passenger.DuoXnum)+";判断:"+e._s(r.passenger.PDnum)+";填空:"+e._s(r.passenger.TKnum)+";问答:"+e._s(r.passenger.WDnum)+";]")])]),t("span",{staticClass:"Fright"},[t("el-button",{attrs:{type:"plain",size:"mini",icon:"el-icon-edit",title:"章节练习题"},on:{click:function(t){return e.ShowManageTable(n)}}})],1)])]):e._e()],2):e._e()],2)]}))],2)],1)])]):e._e()])],1)],1),2===e.addType?t("el-tab-pane",{attrs:{label:"培训时间",name:"courseTime"}},[t("el-scrollbar",{attrs:{native:!1}},[null!==e.vo.stateTime&&null!==e.vo.endTime?t("ChooseTimeControl",{attrs:{vo:e.basicvo,"can-edit":e.canEdit}}):e._e()],1)],1):e._e()],1),e.uploading?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.uploading,"close-on-click-modal":!1,width:"600px",title:"上传文件"},on:{"update:visible":function(t){e.uploading=t}}},[e._v(" "+e._s(e.uploadingFile.name)+" "),t("el-progress",{attrs:{"text-inside":!0,"stroke-width":20,percentage:e.uploadingFile.progress,status:"success"}})],1):e._e()],1):e._e(),e.uploading?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.uploading,"close-on-click-modal":!1,width:"600px",title:"上传文件"},on:{"update:visible":function(t){e.uploading=t}}},[e._v(" "+e._s(e.uploadingFile.name)+" "),t("el-progress",{attrs:{"text-inside":!0,"stroke-width":20,percentage:e.uploadingFile.progress,status:"success"}})],1):e._e(),t("ChooseSubjectTree",{ref:"chooseSub",attrs:{"dia-type":"1",vo:e.basicvo}}),t("LessonList",{ref:"lessonlist"}),t("TeacherList",{ref:"TeacherDialog",attrs:{type:e.type}}),t("el-dialog",{attrs:{width:"800px",title:"章节练习题",visible:e.ShowManage,"append-to-body":""},on:{"update:visible":function(t){e.ShowManage=t}}},[t("el-form",[t("div",{staticClass:"el-table-toolbar"},[t("el-row",[t("el-col",{staticClass:"el-table-toolbar-right",attrs:{span:24}},[t("el-button-group",{staticClass:"toolbar-button-group"},[t("el-button",{staticClass:"refresh_btn",attrs:{plain:"",size:"small",icon:"el-icon-close"},on:{click:function(t){return e.delChecked()}}},[e._v("批量删除")])],1)],1)],1)],1),t("el-table",{ref:"elTable",staticStyle:{"max-height":"400px","overflow-y":"auto"},attrs:{border:"",data:e.ManagetableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectChange},model:{value:e.ManagetableData,callback:function(t){e.ManagetableData=t},expression:"ManagetableData"}},[t("el-table-column",{attrs:{align:"center",type:"selection",width:"45","class-name":"column_checkbox"}}),t("el-table-column",{attrs:{type:"index",label:"序号",width:"45",align:"center"}}),t("el-table-column",{attrs:{label:"题目",align:"left"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.passenger.content||r.row.passenger.subjectManage.content))])]}}])}),t("el-table-column",{attrs:{props:"passenger.subjectManage.type",label:"题型",width:"100",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[1===r.row.passenger.type?t("span",[e._v("单选题")]):e._e(),2===r.row.passenger.type?t("span",[e._v("多选题")]):e._e(),3===r.row.passenger.type?t("span",[e._v("判断题")]):e._e(),4===r.row.passenger.type?t("span",[e._v("填空题")]):e._e(),5===r.row.passenger.type?t("span",[e._v("问答题")]):e._e()]}}])}),t("el-table-column",{attrs:{label:"操作",width:"70",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},attrs:{icon:"el-icon-delete","font-size":"20px"},on:{click:function(t){return e.delChecked(r.$index,r.row)}}})]}}])})],1)],1)],1),e.ShowChapterSet?t("el-dialog",{staticClass:"chapter-set-dialog",attrs:{width:"600px",title:"章节设置",visible:e.ShowChapterSet,"append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.ShowChapterSet=t}}},[t("el-form",{staticClass:"demo-ruleForm",model:{value:e.chapterObj,callback:function(t){e.chapterObj=t},expression:"chapterObj"}},[t("el-form-item",{attrs:{label:"章节编号"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"章节编号",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{autocomplete:"off",placeholder:"请输入章节编号"},model:{value:e.chapterObj.title,callback:function(t){e.$set(e.chapterObj,"title",t)},expression:"chapterObj.title"}})],1)]}}],null,!1,2003007429)})],1),t("el-form-item",{attrs:{label:"章节名称"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"章节名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"place-holder":"请输入章节名称","popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{autocomplete:"off",placeholder:"请输入章节名称"},model:{value:e.chapterObj.name,callback:function(t){e.$set(e.chapterObj,"name",t)},expression:"chapterObj.name"}})],1)]}}],null,!1,1279778360)})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.ShowChapterSet=!1,e.isDisabled=!0}}},[e._v(" 取 消 ")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateChapter()}}},[e._v("确 定")])],1)],1):e._e()],1)},Go=[],Ro=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{staticClass:"selectSt",attrs:{width:"1000px",title:"选择试题","close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":!0,visible:e.outerVisible},on:{"update:visible":function(t){e.outerVisible=t}}},[t("el-row",{attrs:{type:"flex",justify:"space-between"}},[t("el-col",{staticClass:"leftTree",staticStyle:{border:"1px solid #EBEEF5","min-height":"400px","max-height":"604px"},attrs:{span:5}},[t("el-scrollbar",[t("GiantTree",{attrs:{nodes:e.treeData},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick}})],1)],1),t("el-col",{attrs:{span:18}},[t("el-row",[t("el-col",{attrs:{span:21}},[t("el-input",{attrs:{placeholder:"搜索...",clear:"searchBar"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearchTextOut.apply(null,arguments)}},model:{value:e.outSearchText,callback:function(t){e.outSearchText=t},expression:"outSearchText"}},[t("el-button",{staticStyle:{width:"30px"},attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.doSearchTextOut.apply(null,arguments)}},slot:"append"})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:3}},[t("el-button",{attrs:{plain:"",icon:"el-icon-check"},on:{click:function(t){return e.xuanzeClick()}}},[e._v("选择")])],1)],1),t("p",{staticStyle:{margin:"0","line-height":"30px"}},[e._v(" 共选 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.multipleSelection.length))]),e._v(" 题,其中 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.typeNum1))]),e._v(" 道单选题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.typeNum2))]),e._v(" 道多选题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.typeNum3))]),e._v(" 道判断题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.typeNum4))]),e._v(" 道填空题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.typeNum5))]),e._v(" 道问答题 ")]),null!==e.bankId?t("data-table",{ref:"tablePaper",attrs:{"list-style":e.listStyle,"module-info":e.moduleInfo,"tb-columns":e.tbColumns2,"on-list-data-before-load":e.onListDataBeforeLoad,"toolbar-btns":e.listpageBtns,"on-cell-click":e.handleCellClick,"on-selected-rows-change":e.handleSelectionChange}}):e._e()],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{icon:"el-icon-close"},on:{click:function(t){e.outerVisible=!1}}},[e._v("取 消")])],1)],1)],1)},Wo=[];function Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function Uo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Uo=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Vo(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Vo(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function qo(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Xo(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){qo(o,n,a,i,s,"next",e)}function s(e){qo(o,n,a,i,s,"throw",e)}i(void 0)}))}}var Ko={components:{},props:{diaType:{type:String,default:function(){return""}}},data:function(){return{tableData:[],typeNum1:0,typeNum2:0,typeNum3:0,typeNum4:0,typeNum5:0,moduleInfo:{formTemplate:"subjectManage",moduleCode:"subjectManage",listDataUrl:"ksgl/vwSubjectManage/listdata",listDefaultOrderBy:"type",winWidth:800,winHeight:600},tbColumns2:[{field:"state",checkbox:!0,width:"45px"},{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"content",title:"题目",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}}},{field:"type",title:"题型",width:"110px",align:"center",valign:"middle",elementFormatter:"1:单选题\r\n2:多选题\r\n3:判断题\r\n4:填空题\r\n5:问答题\r\n"}],root:null,vo:null,treeData:[],zTree:{},nodeName:"",isClick:!1,busiType:"",rootName:"",bankId:null,listpageBtns:[],nodeType:"",outSearchText:"",outerVisible:!1,index:"",multipleSelection:[]}},computed:{},watch:{},created:function(){},beforeDestroy:function(){this.$bus.off("innerSelection"),this.$bus.emit("showNavSearch",!0)},mounted:function(){var e=this;return Xo(Uo().mark((function t(){return Uo().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.loadTypeTree();case 2:case"end":return t.stop()}}),t)})))()},methods:{click:function(e){this.outerVisible=!0,this.index=e},loadTypeTree:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/ksgl/subjectBank/selectSubjectNum"}).then((function(t){"success"===t.code?e.treeData=e.treeDataAdapter(t.body.treeList):e.$alert(t.message,"操作提示",{type:"error"})}))},treeDataAdapter:function(e){var t=this;return e.forEach((function(e){null===e.parentId?(e.pId=t.root.id,e.name=e.tname):void 0!==e.parentId&&null!==e.parentId&&(e.pId=e.parentId,e.name=e.tname),e.tlevel>1&&(e.name=(1===e.name?"单选题":2===e.name?"多选题":3===e.name?"判断题":4===e.name?"填空题":"问答题")+"("+e.num+")"),e.title=e.name})),e},refreshTreeData:function(e){null===e?this.loadTypeTree():this.treeData=this.treeDataAdapter([this.root].concat(e))},onTreeNodeClick:function(e,t,r){var n=this;this.typeNum1=0,this.typeNum2=0,this.typeNum3=0,this.typeNum4=0,this.typeNum5=0,"tsys"!==r.id?this.isClick=!0:this.isClick=!1,this.nodeName=r.name;var a=JSON.parse(JSON.stringify(this.root));this.root=null,this.$nextTick((function(e){"tsys"===r.id?n.vo=a:n.vo=r,n.root=a})),r.tlevel>1?(this.nodeType=r.tname,this.bankId=r.parentId):(this.nodeType="",this.bankId=r.id),this.$bus.emit("refreshListData")},onTreeCreated:function(e){this.zTree=e;var t=e.getNodes();if(0===t.length)return!1;void 0===t[0].children?(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0]),t[0].tlevel=1):t[0].children.length>=1?(this.onTreeNodeClick("",t[0].children[0].id,t[0].children[0]),e.selectNode(t[0].children[0])):(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0]),t[0].tlevel=1),this.bankId=t[0].id},onListDataBeforeLoad:function(e,t){t.searchMap={name:this.outSearchText},t.urlsearch="bankId:"+this.bankId+";status:1;type:"+this.nodeType+";orgCode:"+e.loginUser.orgCode},handleSelectionChange:function(e){var t=this;this.typeNum1=0,this.typeNum2=0,this.typeNum3=0,this.typeNum4=0,this.typeNum5=0,this.multipleSelection=[],this.multipleSelection=e,console.log(this.multipleSelection),this.multipleSelection.forEach((function(e){1===e.type&&t.typeNum1++,2===e.type&&t.typeNum2++,3===e.type&&t.typeNum3++,4===e.type&&t.typeNum4++,5===e.type&&t.typeNum5++}))},xuanzeClick:function(){0===this.multipleSelection.length?this.$message.error("请选择试题!"):(this.$bus.emit("innerSelection",this.multipleSelection,this.index),this.outerVisible=!1,this.multipleSelection=[])},doSearchTextOut:function(){var e={};e["name"]=this.outSearchText,this.$bus.emit("refreshListData",e,"or")}}},Jo=Ko,Qo=(r(6644),c(Jo,Ro,Wo,!1,null,"3655c836",null)),Zo=Qo.exports;function $o(e){return $o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$o(e)}function ei(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ei=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==$o(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError($o(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ti(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function ri(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ti(o,n,a,i,s,"next",e)}function s(e){ti(o,n,a,i,s,"throw",e)}i(void 0)}))}}var ni=r(5093),ai={components:{chooseType:Ce,ChooseSubjectTree:Zo,LessonList:ho,ChooseTimeControl:Po,TeacherList:zo},props:{canEdit:{type:Number,default:1},courseid:{type:String,default:""},type:{type:String,default:""},addType:{type:Number,default:1}},data:function(){return{loginUser:this.$store.getters.loginUser,vo:{},basicvo:{},coursewareList:[],coursewareIdList:[],ProblemList:[],ProblemIdList:[],showLX:!1,ShowManage:!1,ManagetableData:[],UpdateManageListIndex:"",Teachervalue:"",readonly:!1,radio:0,uploading:!1,fileList:[],FormItem:{},loading:!1,showlog:!1,activeName:"frist",ManageIndex:0,courseId:"",uploadFiles:[],datearr:[],pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},ShowChapterSet:!1,chapterObj:{},chapterIndex:0,isAdd:!0,teacherId:"",selectedRows:[],activeCollapse:"",isUpdate:!0}},computed:{},watch:{},created:function(){this.$bus.on("addUploadFiles",this.addUploadFiles)},beforeDestroy:function(){this.$bus.off("updatecourse"),this.$bus.off("innerSelection"),this.$bus.off("chooseTeacher"),this.$bus.off("selectedCrouseObj"),this.$bus.off("addUploadFiles",this.addUploadFiles)},mounted:function(){var e=ri(ei().mark((function e(){var t,r=this;return ei().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this,this.$bus.on("updatecourse",function(){var e=ri(ei().mark((function e(t,n){return ei().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("teacher"!==r.type){e.next=3;break}return e.next=3,r.getTeacherId(r.loginUser.personId);case 3:r.activeName="frist",r.basicvo={},r.initFormVo(t,n);case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),this.$bus.$on("innerSelection",(function(e,n){var a=[];e.forEach((function(e){var r={};r.chapterId=t.basicvo.passenger.chapterList[n].id,r.bankId=e.bankId,r.subjectId=e.id,r.subjectType=e.type,r.passenger=e,a.push(r)})),t.$http({contentType:"application/x-www-form-urlencoded",method:"POST",url:"/ksgl/courseChapterSubject/insertList",data:a}).then((function(e){if("success"===e.code){if(e.body.courseChapterSubjectList){r.changecollaspe(n),r.activeCollapse=[n+""];var a=t.basicvo.passenger.chapterList[n].passenger.ManageList;a=a.concat(e.body.courseChapterSubjectList),t.basicvo.passenger.chapterList[n].passenger.ManageList=a.sort(t.SortData("type")),t.ManageTypeNum(a,r.basicvo.passenger.chapterList[n]),t.basicvo.passenger.chapterList[n].passenger.showManage=!0,t.$forceUpdate()}t.$message.success(e.message)}else t.$message.error(e.message)}))})),this.$bus.$on("chooseTeacher",(function(e){r.basicvo.teacherId=e.id,r.basicvo.teacherName=e.name,r.Teachervalue=e.name})),this.$bus.$on("selectedCrouseObj",(function(e,n){var a=[],o=[];t.basicvo.passenger.chapterList[n]&&(a=t.filterData(t.basicvo.passenger.chapterList[n].passenger.RouseList,e),o=t.DeleteSurplus(t.basicvo.passenger.chapterList[n].id,a,"course"));var i=o.filter((function(e){return!e.id}));t.$http({contentType:"application/x-www-form-urlencoded",method:"POST",url:"/ksgl/courseChapterData/insertList",data:i}).then((function(e){"success"===e.code?r.$nextTick((function(){t.basicvo.passenger.chapterList[n].passenger.RouseList||(t.basicvo.passenger.chapterList[n].passenger.RouseList=[]),t.basicvo.passenger.chapterList[n].passenger.RouseList=t.basicvo.passenger.chapterList[n].passenger.RouseList.concat(e.body.courseChapterDataList);var r=t.basicvo.passenger.chapterList[n].passenger.RouseList.filter((function(e){return e.hasOwnProperty("orderNo")}));t.basicvo.passenger.chapterList[n].passenger.RouseList=r,t.$message.success(e.message),t.$forceUpdate()})):r.$message.error(e.message)}))}));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{handleTabClick:function(){this.$vnode.context.isAdd&&"first"!==this.activeName&&this.courseUpdate(this.$vnode.context.isAdd,3,this.$vnode.context.addType,this.activeName),this.$vnode.context.childActiveName=this.activeName},initFormVo:function(e,t){var r=this;return ri(ei().mark((function n(){var a,o,i,s;return ei().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=r,a.activeCollapse="",t){n.next=10;break}return r.showlog=!1,n.next=6,r.$app.addNew("/ksgl/course/addNew");case 6:o=n.sent,"success"===o.code?(r.basicvo=o.body.vo,r.showlog=!0,r.basicvo.passenger.chapterList=[],r.basicvo.studyType=1,r.basicvo.status=1,r.basicvo.shoukeType=r.addType,r.basicvo.courseType=1,r.basicvo.ispublish=0,r.basicvo.credit=0,r.basicvo.advanceTime=1,r.courseId=o.body.vo.id,r.basicvo.id=o.body.vo.id,r.basicvo.needRate=100,"teacher"===r.type&&(r.basicvo.teacherId=r.teacherId,r.basicvo.teacherName=r.loginUser.personName,r.Teachervalue=r.loginUser.personName),r.$forceUpdate()):r.$message({type:"warning",message:o.body.message}),n.next=18;break;case 10:if(!t){n.next=18;break}return a.canEdit=e,i=r.courseid||t,r.showlog=!1,n.next=16,r.$app.getById("/ksgl/course/getById",i);case 16:s=n.sent,"success"===s.code?(r.basicvo=s.body.courseVo,r.courseId=r.basicvo.id,r.PaperName=s.body.courseVo.passenger.paperName,null!==s.body.teacher&&(r.Teachervalue=s.body.teacher.name),r.basicvo.passenger.chapterList=s.body.courseChapter,r.datearr=[r.basicvo.stateTime||"",r.basicvo.endTime||""],r.showlog=!0):r.$message({type:"warning",message:s.body.message});case 18:case"end":return n.stop()}}),n)})))()},getTeacherId:function(e){var t=this;return ri(ei().mark((function r(){var n;return ei().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,t.$http({method:"post",url:"ksgl/teacher/listdata",data:t.$qs.stringify({urlsearch:"orgCode:".concat(t.loginUser.orgCode,";personId:").concat(e),pageSize:1,pageNum:1})});case 2:n=r.sent,"success"===n.code?n.body.pageInfo.list.forEach((function(r){r.personId===e&&(t.teacherId=r.id)})):t.$message({type:"warning",message:n.body.message});case 4:case"end":return r.stop()}}),r)})))()},beforeHandleCommand:function(e,t){return{index:e,command:t}},ClickDropdown:function(e){"课件"===e.command?this.$refs.lessonlist.click(e.index):"练习"===e.command&&this.$refs.chooseSub.click(e.index),void 0!==e.index&&(this.changecollaspe(e.index),this.activeCollapse=[e.index+""])},filterData:function(e,t){return e&&e.length>0?t.forEach((function(t){var r=e.every((function(e){return e.id!==t.id}));r&&e.push(t)})):e=t,e},ManageTypeNum:function(e,t){t.passenger.DanXnum=0,t.passenger.DuoXnum=0,t.passenger.PDnum=0,t.passenger.TKnum=0,t.passenger.WDnum=0,e.forEach((function(e){if(e.chapterId)switch(e.passenger.type){case 1:t.passenger.DanXnum+=1;break;case 2:t.passenger.DuoXnum+=1;break;case 3:t.passenger.PDnum+=1;break;case 4:t.passenger.TKnum+=1;break;case 5:t.passenger.WDnum+=1;break}else switch(e.type){case 1:t.passenger.DanXnum+=1;break;case 2:t.passenger.DuoXnum+=1;break;case 3:t.passenger.PDnum+=1;break;case 4:t.passenger.TKnum+=1;break;case 5:t.passenger.WDnum+=1;break}}))},DeleteListItem:function(e,t,r,n){var a=this;return ri(ei().mark((function o(){return ei().wrap((function(o){while(1)switch(o.prev=o.next){case 0:"1"===e?a.$confirm("确认要删除课件“"+n.passenger.name+"”吗?","确认操作",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",closeOnClickModal:!1}).then((function(){var e=[];e[0]=n.id;var o=e.toString();a.$http({url:"/ksgl/courseChapterData/delete",method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:o}}).then((function(e){"success"===e.code?(a.$message.success(e.message),a.basicvo.passenger.chapterList[r].passenger.RouseList.splice(t,1),a.$forceUpdate()):a.$message.error(e.message)}))})):"3"===e&&a.$confirm("此操作将删除该章节以及所包含的内容, 是否继续?","确认操作",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",closeOnClickModal:!1}).then((function(){var e=[];e[0]=n.id;var t=e.toString();a.$http({url:"/ksgl/courseChapter/delete",method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:t}}).then((function(e){"success"===e.code?(a.$message.success("删除成功"),a.basicvo.passenger.chapterList.splice(r,1)):a.$message.error(e.message),a.$forceUpdate()}))}));case 1:case"end":return o.stop()}}),o)})))()},delChecked:function(e,t){var r=this,n=[];"undefined"===typeof e?(e=0,this.selectedRows.forEach((function(e){n.push(e.id)}))):n=[t.id],0!==n.length?this.$confirm("您是否确认删除选择的数据?","确认操作",{type:"warning"}).then(ri(ei().mark((function t(){return ei().wrap((function(t){while(1)switch(t.prev=t.next){case 0:r.$http({url:"/ksgl/courseChapterSubject/delete",method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:n.join()}}).then((function(t){"success"===t.code?(r.ManagetableData.splice(e,n.length),r.basicvo.passenger.chapterList[r.ManageIndex].passenger.ManageList.splice(e,n.length),r.ManageTypeNum(r.basicvo.passenger.chapterList[r.UpdateManageListIndex].passenger.ManageList,r.basicvo.passenger.chapterList[r.UpdateManageListIndex]),r.$message.success(t.message),r.$forceUpdate()):r.$message.error(t.message),r.$forceUpdate()}));case 1:case"end":return t.stop()}}),t)})))):this.$alert("请选择需要删除的数据。","操作提示",{type:"info"})},openChapterDialog:function(e,t){var r=this;return ri(ei().mark((function n(){var a;return ei().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e){n.next=7;break}r.chapterObj=JSON.parse(JSON.stringify(e)),r.chapterIndex=t,r.ShowChapterSet=!0,r.isAdd=!1,n.next=13;break;case 7:return r.ShowChapterSet=!0,r.isAdd=!0,n.next=11,r.$app.addNew("/ksgl/courseChapter/addNew");case 11:a=n.sent,"success"===a.code?(r.chapterObj=a.body.vo,r.chapterObj.courseId=r.courseId):r.$message.error(a.message);case 13:case"end":return n.stop()}}),n)})))()},updateChapter:function(){var e=this,t=this;this.formValidate(ri(ei().mark((function r(){var n,a;return ei().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(t.showcollspan=!1,!0!==e.isAdd){r.next=8;break}return r.next=4,e.$app.insert("/ksgl/courseChapter/insert",e.chapterObj);case 4:n=r.sent,"success"===n.code?(e.ShowChapterSet=!1,e.basicvo.passenger.chapterList.push(e.chapterObj),e.$nextTick((function(){t.showcollspan=!0})),e.$message.success(n.message)):e.$message.error(n.message),r.next=12;break;case 8:return r.next=10,e.$app.update("/ksgl/courseChapter/update",e.chapterObj);case 10:a=r.sent,"success"===a.code?(e.ShowChapterSet=!1,e.basicvo.passenger.chapterList[e.chapterIndex]=e.chapterObj,e.$message.success(a.message),e.$forceUpdate()):e.$message({type:"warning",message:a.message});case 12:case"end":return r.stop()}}),r)}))),null,1)},SortData:function(e){return function(t,r){var n=t[e],a=r[e];return n-a}},onclickTeacher:function(){this.$refs.TeacherDialog.click()},ShowManageTable:function(e){this.ShowManage=!0,this.ManagetableData=[],this.ManageIndex=e;for(var t=this.basicvo.passenger.chapterList[e].passenger.ManageList,r=0;r<t.length;r++)this.ManagetableData.push(t[r]);this.UpdateManageListIndex=e},closePaper:function(){var e=window.opener.document.querySelector(".el-icon-refresh");null!==e&&e.parentElement.click(),window.close()},DeleteSurplus:function(e,t,r){if("course"===r){for(var n=[],a=0;a<t.length;a++){var o={chapterId:"",id:"",orderNo:"",passenger:{},wareId:""};t[a].hasOwnProperty("orderNo")?console.log(t[a]):(o.chapterId=e,o.orderNo=a+1001,o.wareId=null!==t[a].id?t[a].id:t[a].passenger.id,o.passenger=t[a],n.push(o))}t=n}else if("manage"===r){for(var i=[],s=0;s<t.length;s++){var l={chapterId:"",id:"",bankId:"",subjectId:"",passenger:{},subjectType:""};t[s].chapterId||(l.chapterId=e,l.bankId=t[s].bankId,l.subjectId=t[s].id,l.subjectType=t[s].type,l.passenger=t[s],i.push(l))}t=i}return t},changeRadio:function(e){1===e?(this.basicvo.needRate=100,this.readonly=!0,this.basicvo.credit=0):(this.basicvo.needRate=100,this.readonly=!1)},onSelectSuborgCompleted:function(e,t){var r="",n="";e.forEach((function(e){""!==r&&(r+="、"),r+=e.name,n+=e.id+","})),this.$set(this.basicvo,"studyId",n.substring(0,n.length-1)),this.$set(this.basicvo,"studyName",r)},onSelectWorkgroupCompleted:function(e,t){var r="",n="";e.forEach((function(e){""!==r&&(r+="、"),r+=e.name,n+=e.id+","})),this.$set(this.basicvo,"studyId",n.substring(0,n.length-1)),this.$set(this.basicvo,"studyName",r)},onSelectStaffCompleted:function(e,t){if("2"===t.nametype){var r="",n="";this.basicvo.passenger.studyId=e,e.forEach((function(e){""!==r&&(r+="、"),r+=e.name,n+=e.personId+","})),this.$set(this.basicvo,"studyName",r),this.$set(this.basicvo,"studyId",n.substring(0,n.length-1))}else{var a="",o="";this.basicvo.passenger.teacherId=e,e.forEach((function(e){""!==a&&(a+="、"),a+=e.name,o=e.personId})),this.$set(this.basicvo,"studyName",a),this.$set(this.basicvo,"studyId",o)}},courseUpdate:function(e,t,r,n){var a=this,o=this;this.formValidate(ri(ei().mark((function i(){var s,l,c,u;return ei().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(0!==a.radio||null!==a.basicvo.needRate){i.next=3;break}return a.$message({type:"warning",message:"章节学习率是必填的"}),i.abrupt("return");case 3:if(2!==a.basicvo.shoukeType||null!==a.basicvo.issign){i.next=6;break}return a.$message({type:"error",message:"请选择是否签到"}),i.abrupt("return");case 6:if(!(a.basicvo.needRate>100)){i.next=9;break}return a.$message({type:"warning",message:"章节学习率不可大于100%"}),i.abrupt("return");case 9:if(a.basicvo.ispublish=2===t?1:0,console.log("this.basicvo===",a.basicvo),3===t){i.next=27;break}if(s=a.basicvo.passenger.chapterList,s&&s.length){i.next=17;break}return a.$alert("请添加课程章节。","操作提示",{type:"warning"}),a.activeName="course",i.abrupt("return");case 17:l=0;case 18:if(!(l<s.length)){i.next=27;break}if(c=s[l],c.passenger.RouseList&&c.passenger.RouseList.length){i.next=24;break}return a.$alert('章节"'.concat(c.title,'"未添加课件。'),"操作提示",{type:"warning"}),a.activeName="course",i.abrupt("return");case 24:l++,i.next=18;break;case 27:if(!e&&3===t){i.next=59;break}if(a.$bus.emit("isdisabled"),u={},!0!==e){i.next=38;break}return i.next=33,a.$app.insert("/ksgl/course/insert",a.basicvo);case 33:u=i.sent,a.$vnode.context.isAdd=!1,a.$vnode.context.activeType="2",i.next=43;break;case 38:return a.basicvo.status=1,a.basicvo.courseNum=null,i.next=42,a.$app.update("/ksgl/course/update",a.basicvo);case 42:u=i.sent;case 43:if(a.$bus.emit("isNotdisabled"),"success"!==u.code){i.next=56;break}if(!u.body.vo){i.next=50;break}return i.next=48,a.startUploadFile(u.body.vo.id);case 48:i.next=52;break;case 50:return i.next=52,a.startUploadFile(a.basicvo.id);case 52:3!==t&&a.$message.success(u.message),u.body.vo.id&&(a.courseId=u.body.vo.id,a.basicvo.id=u.body.vo.id),i.next=59;break;case 56:return 2===t&&(a.basicvo.ispublish=0),a.$alert(u.message,"操作提示",{type:"error",dangerouslyUseHTMLString:!0}),i.abrupt("return");case 59:"frist"===o.activeName?(a.activeName=n||"course",a.$bus.emit("changeActive",a.activeName)):"course"===a.activeName&&2===r&&(a.activeName=n||"courseTime",a.$bus.emit("changeActive",a.activeName)),3!==t&&a.$bus.emit("closeDialog");case 61:case"end":return i.stop()}}),i)}))),(function(){"frist"!==a.activeName&&(a.activeName="frist",a.$bus.emit("changeActive",a.activeName))}))},back:function(){"course"===this.activeName?(this.activeName="frist",this.$bus.emit("changeActive",this.activeName)):"courseTime"===this.activeName&&(this.activeName="course",this.$bus.emit("changeActive",this.activeName))},changecollaspe:function(e){var t=this;this.showcollspan=!1;var r="";""!==e&&(r=this.basicvo.passenger.chapterList[e].id),r&&(this.$http({url:"/ksgl/courseChapter/getCourseChapterById?id=".concat(r),method:"GET",contentType:"application/x-www-form-urlencoded"}).then((function(e){if("success"===e.code){for(var r in e.body)e.body[r].forEach((function(e){e.passenger=e.passenger.item}));e.body.DanXnum=0,e.body.DuoXnum=0,e.body.PDnum=0,e.body.TKnum=0,e.body.WDnum=0,e.body.showManage=!1,t.basicvo.passenger.chapterList.forEach((function(r){(0!==e.body.ManageList.length&&e.body.ManageList[0].chapterId&&r.id===e.body.ManageList[0].chapterId||0!==e.body.RouseList.length&&e.body.RouseList[0].chapterId&&r.id===e.body.RouseList[0].chapterId)&&(0!==e.body.ManageList.length&&(t.ManageTypeNum(e.body.ManageList,r),e.body.ManageList=e.body.ManageList.sort(t.SortData("type")),r.passenger.showManage=!0,r.passenger.ManageList=e.body.ManageList),r.passenger.RouseList=e.body.RouseList)})),t.showcollspan=!0,t.$forceUpdate()}else t.$message.error(e.message)})),this.$forceUpdate())},addUploadFiles:function(e,t){for(var r=0;r<this.uploadFiles.length;r++)e.propName===this.uploadFiles[r].propName&&this.uploadFiles.splice(r--,1);e.fileList=t,this.uploadFiles.push(e)},startUploadFile:function(e){var t=this;return ri(ei().mark((function r(){var n,a,o,i,s,l;return ei().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t,0!==t.uploadFiles.length){r.next=3;break}return r.abrupt("return");case 3:a={onUploadProgress:function(e){var r=e.loaded/e.total*100|0;n.uploadingFile=t.FormItem,n.uploadingFile.progress=r,n.$forceUpdate()}},o=0;case 5:if(!(o<t.uploadFiles.length)){r.next=18;break}i=t.uploadFiles[o],s=0;case 8:if(!(s<i.fileList.length)){r.next=15;break}return l=i.fileList[s],r.next=12,t.$app.upload("/ksgl/course/upload",l.raw,{id:e,nameField:"coverUrl",dataField:"cover"},a);case 12:s++,r.next=8;break;case 15:o++,r.next=5;break;case 18:t.uploadFiles=[];case 19:case"end":return r.stop()}}),r)})))()},khChange:function(){var e=this;this.$set(this.basicvo,"studyName",null),this.$set(this.basicvo,"studyId",null),this.basicvo.passenger.studyId="",this.isUpdate=!1,this.$nextTick((function(){e.isUpdate=!0}))},changeTime:function(e){null!==e?(this.$set(this.basicvo,"stateTime",e[0]),this.$set(this.basicvo,"endTime",e[1])):(this.$set(this.basicvo,"stateTime",null),this.$set(this.basicvo,"startTime",null))},formatTime:function(e,t){return ni(e).format(t)},handleSelectChange:function(e){this.selectedRows=e}}},oi=ai,ii=(r(7831),c(oi,Bo,Go,!1,null,"fa49e854",null)),si=ii.exports,li=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"app-container"},[t("div",{staticClass:"topBtn clearfix"},[t("el-radio-group",{staticClass:"lbtn",attrs:{size:"small"},on:{change:function(t){return e.initCourse(e.activeType)}},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},[t("el-radio-button",{attrs:{label:"0"}},[e._v("已上架")]),t("el-radio-button",{attrs:{label:"1"}},[e._v("未上架")]),t("el-radio-button",{attrs:{label:"2"}},[e._v("全部")])],1),t("el-button-group",{staticClass:"rbtn"},[t("el-button",{attrs:{size:"small ",icon:"el-icon-refresh"},on:{click:e.refreshFuc}}),t("el-button",{staticClass:"add_btn",attrs:{size:"small ",plain:"",icon:"el-icon-plus"},on:{click:function(t){t.stopPropagation(),e.openBtnPopup(),e.isAdd=!0}}},[e._v("新增")]),"1"===e.activeType||"2"===e.activeType?t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-upload2"},on:{click:function(t){return e.courseDeleted(1)}}},[e._v("上架")]):e._e(),"0"===e.activeType||"2"===e.activeType?t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-download"},on:{click:function(t){return e.courseDeleted(2)}}},[e._v("下架")]):e._e(),t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-close"},on:{click:function(t){return e.courseDeleted(0)}}},[e._v("删除")])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.addPopper,expression:"addPopper"}],staticClass:"el-popover el-popper tip_popper_xxks",attrs:{id:"el-popover-4751",role:"tooltip","aria-hidden":"false",tabindex:"0"}},[t("div",{staticClass:"tip_popper_btn"},[t("el-link",{staticClass:"tip_popper_link",attrs:{underline:!1},on:{click:function(t){return e.clickdt(1)}}},[t("span",[e._v("线上课程")])])],1),t("div",{staticClass:"tip_popper_btn"},[t("el-link",{staticClass:"tip_popper_link",attrs:{underline:!1},on:{click:function(t){return e.clickdt(2)}}},[t("span",[e._v("线下课程")])])],1)]),null===e.vo||e.loading?e._e():t("div",{staticClass:"contentBox",staticStyle:{width:"100%"}},[e.vo.pageInfo.list.length>0?t("el-row",{attrs:{gutter:"10",justify:"space-between"}},[t("el-checkbox-group",{key:e.item,model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.vo.pageInfo.list,(function(r){return t("el-col",{key:r,attrs:{xs:8,sm:6,md:6,lg:6,xl:4}},[t("course",{attrs:{"course-obj":r,"type-enter":2,"active-type":e.activeType,"is-course-manage":1}})],1)})),1)],1):e._e(),e.vo.pageInfo.list.length>0?t("el-pagination",{staticClass:"xxks_pagination",attrs:{align:"right","current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total,"page-sizes":[12,18,24,36,48],"page-size":e.pageSize},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),0===e.vo.pageInfo.list.length&&"w"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"images/w-imgs/nomessage.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("暂无数据")])]):e._e(),0===e.vo.pageInfo.list.length&&"m"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"./images/m-imgs/nosearch.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("抱歉,无相关内容")])]):e._e()],1),t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.show,"close-on-click-modal":!1,title:"课程管理",width:"850px"},on:{"update:visible":function(t){e.show=t},close:e.closeAddDialog}},[t("div",{staticStyle:{"min-height":"476px","padding-top":"15px"}},[t("add-Lesson",{ref:"lesson",attrs:{"can-edit":e.canEdit,courseid:e.itemId,type:"admin","add-type":e.addType}})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.closeAddDialog}},[e._v("关 闭")]),1===e.canEdit&&"frist"!==e.childActiveName?t("el-button",{on:{click:e.ToBack}},[e._v("上一步")]):e._e(),1!==e.canEdit||"courseTime"===e.childActiveName||1===e.addType&&"course"===e.childActiveName?e._e():t("el-button",{attrs:{disabled:e.disabled,type:"primary"},on:{click:e.ToNext}},[e._v("下一步")]),1===e.canEdit&&("courseTime"===e.childActiveName||1===e.addType&&"course"===e.childActiveName)?t("el-button",{attrs:{disabled:e.disabled},on:{click:function(t){return e.submit(1)}}},[e._v("保 存")]):e._e(),1===e.canEdit&&("courseTime"===e.childActiveName||1===e.addType&&"course"===e.childActiveName)?t("el-button",{attrs:{disabled:e.disabled,type:"primary"},on:{click:function(t){return e.submit(2)}}},[e._v("发 布")]):e._e()],1)])],1)},ci=[];function ui(e){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(e)}function di(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */di=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ui(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ui(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function pi(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function hi(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){pi(o,n,a,i,s,"next",e)}function s(e){pi(o,n,a,i,s,"throw",e)}i(void 0)}))}}var fi={components:{course:Da,addLesson:si},props:{},data:function(){return{vo:null,total:"",currentPage:1,pageNum:1,pageSize:12,checkList:[],activeType:"0",show:!1,canEdit:0,itemId:"",childActiveName:"frist",disabled:!1,loading:!0,moduleInfo:{formTemplate:"dcontent/busiformurl?vwtype=W&url=/ksgl/course/form.html",winWidth:850,delUrl:"ksgl/course/delete",addNewUrl:"ksgl/course/addNew",insertUrl:"ksgl/course/insert",moduleCode:"course",winHeight:800,updateUrl:"ksgl/course/update",listDataUrl:"ksgl/course/listdata",getByIdUrl:"ksgl/course/getById"},loginUser:this.$store.getters.loginUser,addPopper:!1,addType:1,isAdd:!1,useImg:"w"}},computed:{},watch:{itemId:{handler:function(e){this.isAdd=!1},deep:!0}},created:function(){var e=this;window.screen.width>1920&&(this.pageSize=18),this.initCourse("0"),this.$bus.on("update",this.updateClick),this.$bus.on("isdisabled",(function(){e.disabled=!0})),this.$bus.on("isNotdisabled",(function(){e.disabled=!1})),this.$bus.on("changeActive",(function(t){e.childActiveName=t})),this.$bus.on("activeClick",(function(t){e.childActiveName=t})),this.$bus.on("closeDialog",(function(){e.show=!1,e.refreshFuc()})),this.$bus.on("courseDeleted",this.courseDeleted),this.$bus.emit("hiddenAdvSearch",!0)},beforeDestroy:function(){this.$bus.off("update",this.updateClick),this.$bus.off("activeClick"),this.$bus.off("isdisabled"),this.$bus.off("isNotdisabled"),this.$bus.off("changeActive"),this.$bus.off("closeDialog"),this.$bus.off("courseDeleted",this.courseDeleted),document.removeEventListener("click",this.windowClick,!1);var e=document.querySelector(".app-main .main-scrollbar .el-scrollbar__wrap");e&&e.removeEventListener("scroll",this.windowClick,!1),this.$bus.emit("hiddenAdvSearch",!1)},mounted:function(){var e=this;document.addEventListener("click",this.windowClick,!1);var t=document.querySelector(".app-main .main-scrollbar .el-scrollbar__wrap");t&&t.addEventListener("scroll",this.windowClick,!1),this.$bus.on("searchListData",(function(t){e.useImg="m",e.searchText=t,e.initCourse(e.activeType)}))},methods:{windowClick:function(){this.addPopper=!1},closeAddDialog:function(){this.show=!1,this.childActiveName="frist"},clickdt:function(e){var t=this;this.addType=e,this.canEdit=1,this.show=!0,this.loading=!0,this.$nextTick((function(){t.$bus.emit("updatecourse",t.canEdit),t.loading=!1,t.disabled=!1}))},updateClick:function(e,t){var r=this;this.addType=e.shoukeType,this.canEdit=void 0!==t?t:1,this.itemId=e.id,this.show=!0,this.childActiveName="frist",this.$nextTick((function(){r.$bus.emit("updatecourse",r.canEdit,r.itemId)}))},handleSizeChange:function(e){this.pageSize=e,this.initCourse(this.activeType)},handleCurrentChange:function(e){this.currentPage=e,this.initCourse(this.activeType)},initCourse:function(e){var t=this;return hi(di().mark((function r(){var n,a,o;return di().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n={},t.uploadFiles=[],n["name"]=t.searchText,a={pageNum:t.currentPage,pageSize:t.pageSize,orderBy:"createTime desc",searchMap:n},t.loading=!0,o="","1"!==e){r.next=13;break}return t.activeType="1",r.next=10,t.$app.listdata("/ksgl/course/listdata?urlsearch=ispublish:0;status:1;orgCode:"+t.loginUser.orgCode,a);case 10:o=r.sent,r.next=24;break;case 13:if("2"!==e){r.next=20;break}return t.activeType="2",r.next=17,t.$app.listdata("/ksgl/course/listdata?urlsearch=status:1;orgCode:"+t.loginUser.orgCode,a);case 17:o=r.sent,r.next=24;break;case 20:return t.activeType="0",r.next=23,t.$app.listdata("/ksgl/course/listdata?urlsearch=ispublish:1;status:1;orgCode:"+t.loginUser.orgCode,a);case 23:o=r.sent;case 24:"success"===o.code?(t.loading=!1,t.vo=o.body,t.total=o.body.pageInfo.total):t.$message.error(o.message);case 25:case"end":return r.stop()}}),r)})))()},courseDeleted:function(e,t){var r=this;return hi(di().mark((function n(){var a;return di().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(0!==r.checkList.length||t){n.next=3;break}return r.$alert("请选择课程!","操作提示",{type:"warning"}),n.abrupt("return",!1);case 3:a="",0===e?a="确认要删除选择的课程吗?":1===e?a="确认要上架选择的课程吗?":2===e&&(a="确认要下架选择的课程吗?"),r.$confirm(a,"确认操作",{type:"warning",closeOnClickModal:!1}).then((function(){r.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:t?t.id:r.checkList,type:e},paramsSerializer:function(e){return Pe().stringify(e,{indices:!1})},url:"/ksgl/course/delete"}).then((function(e){"success"===e.code?(r.$message.success(e.message),r.initCourse(r.activeType),r.checkList=[]):(r.initCourse(r.activeType),r.$alert(e.message,"操作提示",{type:"error",dangerouslyUseHTMLString:!0}))}))})).catch((function(e){"cancel"!==e&&console.error(e)}));case 6:case"end":return n.stop()}}),n)})))()},refreshFuc:function(){this.initCourse(this.activeType)},goDetail:function(e){window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type=1&id="+e+"&logoTitle="+encodeURIComponent("学习考试/课程管理/课程管理"))},ToNext:function(){!0===this.isAdd?this.$refs.lesson.courseUpdate(this.isAdd,3,this.addType):this.$refs.lesson.courseUpdate(!1,3,this.addType),this.$forceUpdate()},ToBack:function(){this.$refs.lesson.back(),this.isAdd=!1},submit:function(e){this.$refs.lesson.courseUpdate(!1,e,this.addType)},openBtnPopup:function(){var e=document.querySelector(".tip_popper_xxks"),t=document.querySelector(".el-button-group.rbtn");e.style.left="calc(100% - "+(t.offsetWidth-19)+"px)",this.addPopper=!this.addPopper}}},mi=fi,yi=(r(1680),r(5499),c(mi,li,ci,!1,null,"12c06822",null)),vi=yi.exports,gi=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"app-container"},[t("div",{staticClass:"topBtn clearfix"},[t("el-radio-group",{staticClass:"lbtn",attrs:{size:"small"},on:{change:function(t){return e.initCourse(e.activeType)}},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},[t("el-radio-button",{attrs:{label:"0"}},[e._v("已上架")]),t("el-radio-button",{attrs:{label:"1"}},[e._v("已下架")]),t("el-radio-button",{attrs:{label:"2"}},[e._v("全部")])],1),t("el-button-group",{staticClass:"rbtn"},[t("el-button",{attrs:{size:"small ",icon:"el-icon-refresh"},on:{click:e.refreshFuc}}),t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-plus"},on:{click:[function(t){return e.clickdt(2)},function(t){t.stopPropagation(),e.isAdd=!0}]}},[e._v("新增")]),"1"===e.activeType||"2"===e.activeType?t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-upload2"},on:{click:function(t){return e.courseDeleted(1)}}},[e._v("上架")]):e._e(),"0"===e.activeType||"2"===e.activeType?t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-download"},on:{click:function(t){return e.courseDeleted(2)}}},[e._v("下架")]):e._e(),t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-close"},on:{click:function(t){return e.courseDeleted(0)}}},[e._v("删除")])],1)],1),null!==e.vo?t("div",{staticClass:"contentBox",staticStyle:{width:"100%"}},[e.vo.pageInfo.list.length>0?t("el-row",{attrs:{gutter:"10",justify:"space-between"}},[t("el-checkbox-group",{key:e.item,model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.vo.pageInfo.list,(function(r){return t("el-col",{key:r,attrs:{xs:8,sm:6,md:6,lg:6,xl:4}},[t("course",{attrs:{"course-obj":r,"type-enter":2,"active-type":e.activeType}})],1)})),1)],1):e._e(),e.vo.pageInfo.list.length>0?t("el-pagination",{attrs:{align:"right","current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total,"page-sizes":[12,18,24,36,48],"page-size":e.pageSize},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),0===e.vo.pageInfo.list.length&&"w"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"images/w-imgs/nomessage.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("暂无数据")])]):e._e(),0===e.vo.pageInfo.list.length&&"m"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"images/w-imgs/nomessage.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("抱歉,无相关内容")])]):e._e()],1):e._e(),e.show?t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],staticStyle:{"margin-top":"-4vh"},attrs:{visible:e.show,"close-on-click-modal":!1,title:"课程管理",width:"850px"},on:{"update:visible":function(t){e.show=t},close:e.closeAddDialog}},[t("div",{staticStyle:{"min-height":"550px","padding-top":"15px"}},[e.show?t("add-Lesson",{ref:"lesson",attrs:{"can-edit":e.canEdit,courseid:e.itemId,type:"teacher","add-type":e.addType}}):e._e()],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.closeAddDialog}},[e._v("关 闭")]),1===e.canEdit&&"frist"!==e.childActiveName?t("el-button",{on:{click:e.ToBack}},[e._v("上一步")]):e._e(),1!==e.canEdit||"courseTime"===e.childActiveName||1===e.addType&&"course"===e.childActiveName?e._e():t("el-button",{attrs:{disabled:e.disabled,type:"primary"},on:{click:e.ToNext}},[e._v("下一步")]),1===e.canEdit&&("courseTime"===e.childActiveName||1===e.addType&&"course"===e.childActiveName)?t("el-button",{attrs:{disabled:e.disabled},on:{click:function(t){return e.submit(1)}}},[e._v("保 存")]):e._e(),1===e.canEdit&&("courseTime"===e.childActiveName||1===e.addType&&"course"===e.childActiveName)?t("el-button",{attrs:{disabled:e.disabled,type:"primary"},on:{click:function(t){return e.submit(2)}}},[e._v("发 布")]):e._e()],1)]):e._e()],1)},_i=[];function bi(e){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bi(e)}function wi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */wi=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==bi(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(bi(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function xi(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Li(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){xi(o,n,a,i,s,"next",e)}function s(e){xi(o,n,a,i,s,"throw",e)}i(void 0)}))}}var Mi={components:{course:Da,addLesson:si},props:{},data:function(){return{vo:null,total:"",currentPage:1,pageNum:1,pageSize:12,checkList:[],activeType:"0",show:!1,canEdit:0,itemId:"",childActiveName:"frist",disabled:!1,loading:!0,moduleInfo:{formTemplate:"dcontent/busiformurl?vwtype=W&url=/ksgl/course/form.html",winWidth:850,delUrl:"ksgl/course/delete",addNewUrl:"ksgl/course/addNew",insertUrl:"ksgl/course/insert",moduleCode:"course",winHeight:800,updateUrl:"ksgl/course/update",listDataUrl:"ksgl/course/listdata",getByIdUrl:"ksgl/course/getById"},loginUser:this.$store.getters.loginUser,addPopper:!1,addType:1,isAdd:!1,useImg:"w"}},computed:{},watch:{itemId:{handler:function(e){this.isAdd=!1},deep:!0}},created:function(){var e=this;return Li(wi().mark((function t(){var r;return wi().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return window.screen.width>1920&&(e.pageSize=18),t.next=3,e.$app.querydata("/ksgl/teacher/querydata",[{compare:"=",field:"personId",merge:!1,value:e.loginUser.personId}]);case 3:r=t.sent,"success"===r.code&&(r.body.listdata.length>0?(e.teacherFlag=r.body.listdata[0].id,e.initCourse()):e.loading=!1),e.$bus.on("update",e.updateClick),e.$bus.on("isdisabled",(function(){e.disabled=!0})),e.$bus.on("isNotdisabled",(function(){e.disabled=!1})),e.$bus.on("changeActive",(function(t){e.childActiveName=t})),e.$bus.on("activeClick",(function(t){e.childActiveName=t})),e.$bus.on("closeDialog",(function(){e.show=!1,e.childActiveName="frist",e.refreshFuc()})),e.$bus.on("courseDeleted",e.courseDeleted),e.$bus.emit("hiddenAdvSearch",!0);case 13:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.$bus.off("update",this.updateClick),this.$bus.off("activeClick"),this.$bus.off("isdisabled"),this.$bus.off("isNotdisabled"),this.$bus.off("changeActive"),this.$bus.off("closeDialog"),this.$bus.off("courseDeleted",this.courseDeleted),this.$bus.emit("hiddenAdvSearch",!1)},mounted:function(){var e=this;document.addEventListener("click",this.windowClick,!1),this.$bus.on("searchListData",(function(t){e.useImg="m",e.searchText=t,e.initCourse(e.activeType)}))},methods:{windowClick:function(){this.addPopper=!1},closeAddDialog:function(){this.show=!1,this.childActiveName="frist",this.refreshFuc()},clickdt:function(e){var t=this;this.addType=e,this.canEdit=1,this.show=!0,this.loading=!0,this.$nextTick((function(){t.$bus.emit("updatecourse",t.canEdit),t.loading=!1,t.disabled=!1}))},updateClick:function(e,t){var r=this;this.addType=e.shoukeType,this.canEdit=void 0!==t?t:1,this.itemId=e.id,this.show=!0,this.childActiveName="frist",this.$nextTick((function(){r.$bus.emit("updatecourse",r.canEdit,r.itemId)}))},handleSizeChange:function(e){this.pageSize=e,this.initCourse(this.activeType)},handleCurrentChange:function(e){this.currentPage=e,this.initCourse(this.activeType)},initCourse:function(e){var t=this;return Li(wi().mark((function r(){var n,a,o;return wi().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n={},n["name"]=t.searchText,a={pageNum:t.currentPage,pageSize:t.pageSize,orderBy:"createTime desc",searchMap:n},t.loading=!0,o="","1"!==e){r.next=12;break}return t.activeType="1",r.next=9,t.$app.listdata("/ksgl/course/listdata?urlsearch=ispublish:0;status:1;orgCode:"+t.loginUser.orgCode+";teacherId in "+t.teacherFlag+","+t.loginUser.personId,a);case 9:o=r.sent,r.next=23;break;case 12:if("2"!==e){r.next=19;break}return t.activeType="2",r.next=16,t.$app.listdata("/ksgl/course/listdata?urlsearch=status:1;orgCode:"+t.loginUser.orgCode+";teacherId in "+t.teacherFlag+","+t.loginUser.personId,a);case 16:o=r.sent,r.next=23;break;case 19:return t.activeType="0",r.next=22,t.$app.listdata("/ksgl/course/listdata?urlsearch=ispublish:1;status:1;orgCode:"+t.loginUser.orgCode+";teacherId in "+t.teacherFlag+","+t.loginUser.personId,a);case 22:o=r.sent;case 23:"success"===o.code?(t.loading=!1,t.vo=o.body,t.total=o.body.pageInfo.total):t.$message.error(o.message);case 24:case"end":return r.stop()}}),r)})))()},courseDeleted:function(e,t){var r=this;return Li(wi().mark((function n(){return wi().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(0!==r.checkList.length||t){n.next=3;break}return r.$alert("请选择课程!","操作提示",{type:"warning"}),n.abrupt("return",!1);case 3:0===e?r.$confirm("确定删除选择的课程?","确认操作",{type:"warning",closeOnClickModal:!1}).then((function(){r.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:t?t.id:r.checkList,type:e},paramsSerializer:function(e){return Pe().stringify(e,{indices:!1})},url:"/ksgl/course/delete"}).then((function(e){"success"===e.code?(r.$message.success(e.message),r.initCourse(r.activeType),r.checkList=[]):(r.initCourse(r.activeType),r.$message.error(e.message))}))})).catch((function(e){"cancel"!==e&&console.error(e)})):r.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:t?t.id:r.checkList,type:e},paramsSerializer:function(e){return Pe().stringify(e,{indices:!1})},url:"/ksgl/course/delete"}).then((function(e){"success"===e.code?(r.$message.success(e.message),r.initCourse(r.activeType),r.checkList=[]):(r.initCourse(r.activeType),r.$message.error(e.message))}));case 4:case"end":return n.stop()}}),n)})))()},refreshFuc:function(){this.initCourse(this.activeType)},goDetail:function(e){window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type=1&id="+e+"&logoTitle="+encodeURIComponent("学习考试/讲师中心/我的课程"))},ToNext:function(){!0===this.isAdd?this.$refs.lesson.courseUpdate(this.isAdd,3,this.addType):this.$refs.lesson.courseUpdate(!1,3,this.addType),this.$forceUpdate()},ToBack:function(){this.$refs.lesson.back(),this.isAdd=!1},submit:function(e){this.$refs.lesson.courseUpdate(!1,e,this.addType)}}},ki=Mi,Ti=(r(9107),r(9671),c(ki,gi,_i,!1,null,"4f024830",null)),Di=Ti.exports,Yi=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"app-container"},[t("div",{staticClass:"topBtn clearfix"},[t("el-radio-group",{staticClass:"lbtn",attrs:{size:"small"},on:{change:function(t){return e.initCourse(e.activeType)}},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},[t("el-radio-button",{attrs:{label:"0"}},[e._v("全部")]),t("el-radio-button",{attrs:{label:"1"}},[e._v("线上")]),t("el-radio-button",{attrs:{label:"2"}},[e._v("线下")])],1)],1),null!==e.vo?t("div",{staticClass:"contentBox",staticStyle:{width:"100%"}},[t("el-row",{attrs:{gutter:"10",justify:"space-between"}},[t("el-checkbox-group",{key:e.item,model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.vo.pageInfo.list,(function(r){return t("el-col",{key:r,attrs:{xs:8,sm:6,md:6,lg:6,xl:4}},[t("course",{attrs:{"course-obj":r,"type-enter":1,"active-type":e.activeType}})],1)})),1)],1),e.vo.pageInfo.list.length>0?t("el-pagination",{attrs:{align:"right","current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total,"page-sizes":[12,18,24,36,48],"page-size":e.pageSize},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),0===e.vo.pageInfo.list.length&&"w"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"images/w-imgs/nomessage.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("暂无数据")])]):e._e(),0===e.vo.pageInfo.list.length&&"m"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"./images/m-imgs/nosearch.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("抱歉,无相关内容")])]):e._e()],1):e._e()])},Si=[];function Ci(e){return Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ci(e)}function ji(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ji=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Ci(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Ci(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ei(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Oi(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ei(o,n,a,i,s,"next",e)}function s(e){Ei(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Pi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ai(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(r),!0).forEach((function(t){Ni(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ni(e,t,r){return(t=Hi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hi(e){var t=Ii(e,"string");return"symbol"==Ci(t)?t:t+""}function Ii(e,t){if("object"!=Ci(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ci(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Fi={components:{course:Da},props:{},data:function(){return{vo:null,total:"",currentPage:1,pageNum:1,pageSize:12,checkList:[],activeType:"0",loading:!0,useImg:"w"}},computed:Ai({},ce(["routes","loginUser"])),watch:{},created:function(){if(window.screen.width>1920&&(this.pageSize=18),this.$route.query.choseType){this.activeType=this.$route.query.choseType;var e=decodeURIComponent(location.href),t=e.split("?")[0];window.history.pushState(null,null,t)}this.initCourse(this.activeType),this.$bus.emit("hiddenAdvSearch",!0)},beforeDestroy:function(){this.$bus.emit("hiddenAdvSearch",!1)},mounted:function(){var e=this;this.$bus.on("searchListData",(function(t){e.useImg="m",e.searchText=t,e.initCourse(e.activeType)}))},methods:{clickdt:function(){console.log(this.checkList)},handleSizeChange:function(e){console.log("每页 ".concat(e," 条")),this.pageSize=e,this.initCourse()},handleCurrentChange:function(e){console.log("当前页: ".concat(e)),this.currentPage=e,this.initCourse(this.activeType)},initCourse:function(e){var t=this;return Oi(ji().mark((function r(){var n,a,o;return ji().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.loading=!0,n={},n["name"]=t.searchText,a={pageNum:t.currentPage,pageSize:t.pageSize,orderBy:"createTime desc",searchMap:n},"1"===e?(t.activeType="1",a.urlsearch="shoukeType:1;ispublish:1;status:1;orgCode:"+t.loginUser.orgCode):"2"===e?(t.activeType="2",a.urlsearch="shoukeType:2;ispublish:1;status:1;orgCode:"+t.loginUser.orgCode):(t.activeType="0",a.urlsearch="ispublish:1;status:1;orgCode:"+t.loginUser.orgCode),r.next=7,t.$app.listdata("ksgl/course/listdataCourseCenter",a);case 7:o=r.sent,"success"===o.code?(t.loading=!1,t.vo=o.body,t.total=o.body.pageInfo.total):t.$message.error(o.message);case 9:case"end":return r.stop()}}),r)})))()},goDetail:function(e,t,r){window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type=2&num="+t+"&allNum="+r+"&id="+e+"&logoTitle="+encodeURIComponent("学习考试/课程中心"))}}},zi=Fi,Bi=(r(9646),r(785),c(zi,Yi,Si,!1,null,"22a47d4c",null)),Gi=Bi.exports,Ri=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,width:"800px","before-close":e.handleClose,"append-to-body":!0,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"right-toolbar-container"},[t("el-input",{style:"width:100%",attrs:{placeholder:"请输入搜索内容",clear:"searchBar"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearchTextOut.apply(null,arguments)}},model:{value:e.outSearchText,callback:function(t){e.outSearchText=t},expression:"outSearchText"}},[t("el-button",{staticStyle:{width:"30px"},attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.doSearchTextOut.apply(null,arguments)}},slot:"append"})],1)],1),"选择试卷"===e.chooseType?t("data-table",{attrs:{"module-info":e.moduleInfo,"tb-columns":e.tbColumns,"toolbar-btns":e.listpageBtns,"on-list-data-before-load":e.onListDataBeforeLoad}}):e._e(),"选择课程"===e.chooseType?t("data-table",{attrs:{"module-info":e.moduleInfoKC,"tb-columns":e.tbColumnsKC,"toolbar-btns":e.listpageBtnsKC,"on-list-data-before-load":e.onListDataBeforeLoad,"on-list-data-loaded":e.onListDataLoaded}}):e._e()],1)],1)},Wi=[],Vi={components:{},props:{},data:function(){return{dialogVisible:!1,loginUser:this.$store.getters.loginUser,title:"选择试题",moduleInfo:{moduleCode:"paper",listDataUrl:"ksgl/paper/listdata/?urlsearch=status:1;ispublish:1;orgCode:"+this.$store.getters.loginUser.orgCode,winWidth:800,winHeight:600},moduleInfoKC:{moduleCode:"course",listDataUrl:"ksgl/course/listdataAndTypeName/?urlsearch=status:1;orgCode:"+this.$store.getters.loginUser.orgCode,winWidth:800,winHeight:600},tbColumns:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"name",title:"试卷名称",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}}},{field:"categoryName",title:"试卷分类",width:"120px",align:"center",valign:"middle"},{field:"type",title:"试卷类型",width:"100px",align:"center",valign:"middle",elementFormatter:"1:固定试卷\r\n2:随机试卷\r\n"},{field:"totalGrade",title:"总分数",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}}},{field:"subjectNum",title:"题目数量",width:"100px",align:"center",valign:"middle"},{field:"column_operate",title:"操作",width:"70px",align:"center",valign:"middle"}],tbColumnsKC:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"name",title:"课程名称",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}}},{field:"categoryName",title:"分类",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}}},{field:"shoukeType",title:"授课方式",width:"100px",align:"center",valign:"middle"},{field:"column_operate",title:"操作",width:"70px",align:"center",valign:"middle"}],listpageBtns:[{id:"btn_deleteId",btnName:"选择",btnClick:this.chooseItem,btnPermission:"deleteIds",btnType:"column",btnIcon:""}],listpageBtnsKC:[{id:"btn_deleteId",btnName:"选择",btnClick:this.chooseItem,btnPermission:"deleteIds",btnType:"column",btnIcon:""}],chooseType:"",outSearchText:""}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{click:function(e){console.log(e),this.title=e,this.outSearchText="",this.dialogVisible=!0,this.chooseType=e},handleClose:function(){this.dialogVisible=!1,this.chooseType="",this.$forceUpdate()},doSearchTextOut:function(){this.$bus.emit("refreshListData")},chooseItem:function(e){if(console.log(e),"选择试卷"===this.chooseType){var t={id:"",name:"",totalGrade:0};t.id=e.id,t.name=e.name,t.totalGrade=e.totalGrade,this.$bus.emit("choosePaper",t)}else if("选择课程"===this.chooseType){var r={id:"",name:""};r.id=e.id,r.name=e.name,this.$bus.emit("chooseCourse",r)}this.chooseType="",this.dialogVisible=!1},onListDataBeforeLoad:function(e,t){"选择试卷"===this.chooseType?(t.orderBy="createTime desc",t.searchMap["name"]=this.outSearchText,t.searchMap["totalGrade"]=this.outSearchText,t.searchMap["subjectNum"]=this.outSearchText,t.searchAndOr="or"):"选择课程"===this.chooseType&&(t.searchMap["name"]=this.outSearchText,t.searchAndOr="or")},onListDataLoaded:function(e,t){var r=this;t.list.forEach((function(e){e.shoukeType=1===e.shoukeType?"线上课程":"线下课程",e.courseType=1===e.courseType?"必修课":"选修课"})),"选择课程"==this.chooseType&&t.list.forEach((function(e){r.$set(e,"categoryName",e.passenger.categoryName)})),this.$forceUpdate()}}},Ui=Vi,qi=(r(6438),c(Ui,Ri,Wi,!1,null,"273f2641",null)),Xi=qi.exports,Ki=function(){var e=this,t=e._self._c;return t("div",[t("el-button",{staticStyle:{display:"contents"},style:{color:e.passtime?"#999":""},attrs:{disabled:!!e.passtime,type:"text"},on:{click:function(t){!e.passtime&&e.updateData()}}},[t("i",{staticClass:"el-icon-edit",staticStyle:{"margin-right":"5px"}})]),t("el-button",{staticStyle:{display:"contents"},style:{color:e.passtime?"#999":""},attrs:{disabled:!!e.passtime,type:"text"},on:{click:function(t){!e.passtime&&e.deleteData()}}},[t("i",{staticClass:"el-icon-delete"})])],1)},Ji=[];function Qi(e){return Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qi(e)}function Zi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Zi=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Qi(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Qi(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function $i(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function es(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){$i(o,n,a,i,s,"next",e)}function s(e){$i(o,n,a,i,s,"throw",e)}i(void 0)}))}}var ts={components:{},props:{row:{type:Object,default:function(){return{}}},column:{type:Object,default:function(){return{}}},index:{type:String,default:function(){return"0"}}},data:function(){return{showButton:!1,passtime:!1,moduleInfo:{formTemplate:"dcontent/busiformurl?vwtype=W&url=/ksgl/exam/form.html",winWidth:1e3,delUrl:"ksgl/exam/delete",addNewUrl:"ksgl/exam/addNew",insertUrl:"ksgl/exam/insert",moduleCode:"exam",winHeight:600,updateUrl:"ksgl/exam/update",listDataUrl:"ksgl/exam/listdata",getByIdUrl:"ksgl/exam/getById",listAdvSearchAllFields:0}}},computed:{},watch:{},created:function(){var e=new Date;-1!==this.$store.state.user.roles.indexOf("ksglAdmin")&&(this.showButton=!0),new Date(this.row.startTime)>=e||0===this.row.status?this.passtime=!1:this.passtime=!0},beforeDestroy:function(){},mounted:function(){},methods:{update:function(){var e=new Date;new Date(this.row.startTime)>=e||0===this.row.status?this.passtime=!1:this.passtime=!0},deleteData:function(){var e=this;this.$confirm("您是否确认删除选择的数据?","确认操作",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(es(Zi().mark((function t(){var r,n;return Zi().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.row,t.next=3,e.$app.deleteByIds("/ksgl/exam/delete",[r.id]);case 3:n=t.sent,"success"===n.code?(e.$message({type:"success",message:"删除成功!"}),e.$bus.emit("refreshListData")):e.$message({type:"info",message:n.message});case 5:case"end":return t.stop()}}),t)})))).catch((function(){}))},updateData:function(){console.log(!this.row.passtime);var e=this.row;this.$bus.emit("updateAddDialog",e,0)},handleClose:function(){this.dialogVisible=!1}}},rs=ts,ns=c(rs,Ki,Ji,!1,null,"b7ee2c86",null),as=ns.exports,os=function(){var e=this,t=e._self._c;return t("div",{staticClass:"exam-header"},[null!==e.examVo?t("div",[t("p",{staticClass:"exam-header-name"},[t("span",[e._v(e._s(e.examVo.name))]),t("svg-icon",{staticStyle:{width:"72px",height:"24px"},attrs:{"icon-class":"进行中"===e.courseTimeJudge(e.examVo.startTime,e.examVo.endTime)?"ksgl_couser_ing":"未开始"===e.courseTimeJudge(e.examVo.startTime,e.examVo.endTime)?"ksgl_couser_no":"ksgl_couser_done"}}),t("span",{staticStyle:{"font-size":"var(--portalFontSize14)","font-weight":"400",left:"-60px",position:"relative","z-index":"2",top:"-3px"},style:{color:"已结束"===e.courseTimeJudge(e.examVo.startTime,e.examVo.endTime)?"#999999":"#fff"}},[e._v(e._s(e.courseTimeJudge(e.examVo.startTime,e.examVo.endTime)))])],1),t("div",{staticClass:"exam-header-info1"},[t("div",{staticClass:"flex",staticStyle:{width:"max-content",margin:"0 auto","line-height":"28px"}},[t("div",{staticClass:"sizemiddle MRight36"},[e._v("考试时间:"+e._s(e.startTime)+" 至 "+e._s(e.EndTime))]),t("div",{staticClass:"sizemiddle flex aling-item"},[t("div",{staticStyle:{width:"80px"}},[t("el-progress",{attrs:{percentage:e.percentage,width:83,"show-text":!1,color:"rgba(80,227,194,1)"}})],1),e._v(" "),t("div",{staticClass:"sizesmall",staticStyle:{"margin-left":"10px"}},[e._v(" 通过率:"+e._s(e.piyueVo.passRate)+" %")])])])]),t("div",{staticClass:"exam-header-info2 sizesmall"},[t("span",[e._v("使用试卷:"+e._s(e.examVo.passenger.paperName))]),t("span",[e._v("考试限时: "),0===e.examVo.examLimit?t("span",[e._v("不限制")]):t("span",[e._v(e._s(e.examVo.examLimit)+" 分钟")])]),t("span",[e._v("可考次数: "),0===e.examVo.examTimes?t("span",[e._v("不限制")]):t("span",[e._v(e._s(e.examVo.examTimes)+" 次")])]),t("span",[e._v("学分奖励:"+e._s(e.examVo.credit)+" 分")]),t("span",[e._v("满分分数:"+e._s(e.piyueVo.totalGrade)+" 分")]),t("span",[e._v("通过分数: "),0===e.examVo.passGrade?t("span",[e._v("不限制")]):t("span",[e._v(e._s(e.examVo.passGrade)+" 分")])]),t("span",[e._v("已考人数:"+e._s(e.piyueVo.attentNum)+" / "+e._s(e.piyueVo.examNum))])])]):e._e()])},is=[];function ss(e){return ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ss(e)}function ls(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ls=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ss(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ss(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function cs(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function us(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){cs(o,n,a,i,s,"next",e)}function s(e){cs(o,n,a,i,s,"throw",e)}i(void 0)}))}}function ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ps(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(r),!0).forEach((function(t){hs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function hs(e,t,r){return(t=fs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fs(e){var t=ms(e,"string");return"symbol"==ss(t)?t:t+""}function ms(e,t){if("object"!=ss(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ss(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ys=r(5093),vs={components:{},props:{examId:{type:String,default:function(){return""}}},data:function(){return{examVo:null,piyueVo:{totalGrade:"",passRate:"",examNum:"",attentNum:""},startTime:"",EndTime:"",percentage:""}},computed:ps({},ce(["routes","loginUser"])),watch:{$route:function(){this.$route.query.id&&(this.examId=this.$route.query.id)}},created:function(){this.$route.query.id&&(this.examId=this.$route.query.id,this.examFun(),this.piyueFun())},beforeDestroy:function(){},mounted:function(){},methods:{examFun:function(){var e=this;return us(ls().mark((function t(){var r;return ls().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.getById("/ksgl/exam/getById",e.examId);case 2:r=t.sent,"success"===r.code?(console.log(r),e.examVo=r.body.vo,e.ChangeDate(e.examVo)):e.$message.error(r.message);case 4:case"end":return t.stop()}}),t)})))()},piyueFun:function(){var e=this;return us(ls().mark((function t(){var r,n;return ls().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r={orderBy:"",orgCode:e.loginUser.orgCode},t.next=3,e.$app.listdata("/ksgl/vwPiyue/listdata?urlsearch=id:"+e.examId,r);case 3:n=t.sent,"success"===n.code?(console.log(n),e.piyueVo=n.body.pageInfo.list[0],e.piyueVo.passRate=null===e.piyueVo.passRate?0:e.piyueVo.passRate,e.piyueVo.passRate=e.piyueVo.passRate.toFixed(2),e.percentage=n.body.pageInfo.list[0].passRate):e.$message.error(n.message);case 5:case"end":return t.stop()}}),t)})))()},ChangeDate:function(e){this.startTime=ys(e.startTime).format("MM-DD HH:mm"),this.EndTime=ys(e.endTime).format("MM-DD HH:mm")},courseTimeJudge:function(e,t){var r="";return(new Date).getTime()>new Date(t).getTime()?(r="已结束",r):(new Date).getTime()<new Date(e).getTime()?(r="未开始",r):(new Date).getTime()>new Date(e).getTime()&&(new Date).getTime()<new Date(t).getTime()?(r="进行中",r):void 0}}},gs=vs,_s=(r(3426),c(gs,os,is,!1,null,"598f087e",null)),bs=_s.exports,ws=function(){var e=this,t=e._self._c;return t("div",[e.showaddExam?t("el-dialog",{attrs:{width:"1000px",title:e.title,visible:e.showaddExam,"close-on-click-modal":!1},on:{"update:visible":function(t){e.showaddExam=t},close:e.closeAddDialog}},[t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{ref:"tdlbl_考试名称",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 考试名称 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"name",attrs:{field:{defaultValue:null,elementCanEdit:e.canEdit,elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:"0",elementType:"input",emptyMessage:"请输入考试名称",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"考试名称",propName:"name",propType:"String",textFormatter:"textfield",valueMaxLength:null,valueMinLength:null,model:"vo.name",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_考试说明",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 考试说明 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"introduction",attrs:{field:{defaultValue:null,elementCanEdit:e.canEdit,elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:"0",elementType:"textarea",row:"3",emptyMessage:"请输入考试说明",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"考试说明",propName:"introduction",propType:"String",textFormatter:"textarea",valueMaxLength:null,valueMinLength:null,model:"vo.introduction",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_考试对象",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 考试对象 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("div",[t("el-radio-group",{attrs:{disabled:0===e.canEdit},on:{change:e.khChange},model:{value:e.vo.examerType,callback:function(t){e.$set(e.vo,"examerType",t)},expression:"vo.examerType"}},[t("el-radio",{attrs:{label:1}},[e._v("全部")]),t("el-radio",{attrs:{label:2}},[e._v("部门")]),t("el-radio",{attrs:{label:3}},[e._v("群组")]),t("el-radio",{attrs:{label:4}},[e._v("指定人")])],1)],1)])]),2===e.vo.examerType||3===e.vo.examerType||4===e.vo.examerType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),2===e.vo.examerType?t("span",[e._v("指定部门")]):e._e(),3===e.vo.examerType?t("span",[e._v("指定群组")]):e._e(),4===e.vo.examerType?t("span",[e._v("指定人员")]):e._e()]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[2===e.vo.examerType&&e.isUpdate?[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定部门",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{placeholder:"请选择指定部门","org-level":"2",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds"},model:{value:e.vo.examerName,callback:function(t){e.$set(e.vo,"examerName",t)},expression:"vo.examerName"}})],1)]}}],null,!1,1533252551)}):t("span",[e._v(e._s(e.vo.examerName))])]:e._e(),3===e.vo.examerType&&e.isUpdate?[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定群组",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[3===e.vo.examerType?t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"workgroup",expression:"'workgroup'"}],attrs:{placeholder:"请选择指定群组",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds2"},model:{value:e.vo.examerName,callback:function(t){e.$set(e.vo,"examerName",t)},expression:"vo.examerName"}}):e._e()],1)]}}],null,!1,1002921096)}):t("span",[e._v(e._s(e.vo.examerName))])]:e._e(),4===e.vo.examerType&&e.isUpdate?[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定人员",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[4===e.vo.examerType?t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{placeholder:"请选择指定人员",readonly:"readonly",multiple:"true",type:"textarea",name:"studyId",nametype:"2","root-org-code":e.vo.orgCode},model:{value:e.vo.examerName,callback:function(t){e.$set(e.vo,"examerName",t)},expression:"vo.examerName"}}):e._e()],1)]}}],null,!1,1550134077)}):t("span",[e._v(e._s(e.vo.examerName))])]:e._e()],2)]):e._e(),t("tr",[t("td",{ref:"tdlbl_所用试卷",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 所用试卷 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",class:{choose:1===e.canEdit},attrs:{colspan:"2"}},[1===e.canEdit?t("el-input",{attrs:{readonly:"",placeholder:"请选择所用试卷"},model:{value:e.PaperName,callback:function(t){e.PaperName=t},expression:"PaperName"}},[t("el-button",{attrs:{slot:"append"},on:{click:function(t){return e.chooseExamPaper("选择试卷")}},slot:"append"},[e._v("...")])],1):t("span",[e._v(e._s(e.PaperName))])],1),t("td",{ref:"tdlbl_选择课程",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("选择课程")]),t("td",{staticClass:"el-table__cell tdcont tdw83",class:{choose:1===e.canEdit},attrs:{colspan:"2"}},[1===e.canEdit?t("el-input",{attrs:{readonly:"",placeholder:"请选择课程"},model:{value:e.CourseName,callback:function(t){e.CourseName=t},expression:"CourseName"}},[t("el-button",{attrs:{slot:"append"},on:{click:function(t){return e.chooseLesson("选择课程")}},slot:"append"},[e._v("...")])],1):t("span",[e._v(e._s(e.CourseName))])],1)]),e.isHasBigMannger?t("tr",[t("td",{ref:"tdlbl_批阅人",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v("批阅人")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"批阅人",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{readonly:"true",placeholder:"请选择批阅人"},model:{value:e.Teachervalue,callback:function(t){e.Teachervalue=t},expression:"Teachervalue"}},[t("el-button",{attrs:{slot:"append"},on:{click:e.onclickTeacher},slot:"append"},[e._v("...")])],1)],1)]}}],null,!1,3939612996)}):t("span",[e._v(e._s(e.Teachervalue))])],1)]):e._e(),t("tr",[t("td",{ref:"tdlbl_考试开始时间",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v("开始时间")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("form-item",{ref:"startTime",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:1,elementType:"date",emptyMessage:"请选择开始时间",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"考试开始时间",propName:"startTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd HH:mm:ss",valueMaxLength:null,valueMinLength:null,model:"vo.startTime",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1),t("td",{ref:"tdlbl_考试结束时间",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v("结束时间")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("form-item",{ref:"endTime",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:1,elementType:"date",emptyMessage:"请选择结束时间",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"考试结束时间",propName:"endTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd HH:mm:ss",valueMaxLength:null,valueMinLength:null,model:"vo.endTime",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_考试限时",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 考试限时 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"2"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"考试限时",rules:"required|integer|max:3|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"60px","margin-right":"10px"},model:{value:e.vo.examLimit,callback:function(t){e.$set(e.vo,"examLimit",t)},expression:"vo.examLimit"}})],1)]}}],null,!1,3057467763)}):t("span",[e._v(e._s(e.vo.examLimit))]),t("span",[e._v("分钟(限制考试时间,0表示不限制)")])],1),t("td",{ref:"tdlbl_考试次数",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 考试次数 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"2"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"考试次数",rules:"required|integer|max:3|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"60px","margin-right":"10px"},model:{value:e.vo.examTimes,callback:function(t){e.$set(e.vo,"examTimes",t)},expression:"vo.examTimes"}})],1)]}}],null,!1,1760955904)}):t("span",[e._v(e._s(e.vo.examTimes))]),t("span",[e._v("(限制考试次数,0表示不限制)")])],1)]),t("tr",[t("td",{ref:"tdlbl_通过分数",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 通过分数 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"2"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"通过分数",rules:{required:!0,integer:!0,max_value:e.maxGrade,min_value:0}},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"60px","margin-right":"10px"},model:{value:e.vo.passGrade,callback:function(t){e.$set(e.vo,"passGrade",t)},expression:"vo.passGrade"}})],1)]}}],null,!1,824956179)}):t("span",[e._v(e._s(e.vo.passGrade))]),t("span",[e._v("(达到多少算通过,0表示不限制)")])],1),t("td",{ref:"tdlbl_学分奖励",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 学分奖励 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"2"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"学分奖励",rules:"required|integer|max:3|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"60px","margin-right":"10px"},model:{value:e.vo.credit,callback:function(t){e.$set(e.vo,"credit",t)},expression:"vo.credit"}})],1)]}}],null,!1,2669242874)}):t("span",[e._v(e._s(e.vo.credit))])],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("交卷后可见")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"2"}},[t("el-checkbox-group",{attrs:{disabled:0===e.canEdit},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[t("el-checkbox",{attrs:{label:"1"}},[e._v("分数")]),t("el-checkbox",{attrs:{label:"2"}},[e._v("对错")]),t("el-checkbox",{attrs:{label:"3"}},[e._v("答案")]),t("el-checkbox",{attrs:{label:"4"}},[e._v("解析")])],1)],1),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v("考试结束后可见")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"2"}},[t("el-checkbox-group",{attrs:{disabled:0===e.canEdit},model:{value:e.checkList1,callback:function(t){e.checkList1=t},expression:"checkList1"}},[t("el-checkbox",{attrs:{label:"5"}},[e._v("分数")]),t("el-checkbox",{attrs:{label:"6"}},[e._v("对错")]),t("el-checkbox",{attrs:{label:"7"}},[e._v("答案")]),t("el-checkbox",{attrs:{label:"8"}},[e._v("解析")])],1)],1)]),t("tr",[t("td",{ref:"tdlbl_是否乱序 ",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("题目是否乱序")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("el-radio-group",{attrs:{disabled:0===e.canEdit},model:{value:e.vo.ismess,callback:function(t){e.$set(e.vo,"ismess",t)},expression:"vo.ismess"}},[t("el-radio",{attrs:{label:0}},[e._v("乱序")]),t("el-radio",{attrs:{label:1}},[e._v("不乱序")])],1)],1)])])]),t("ChooseDialog",{ref:"choosedialogs"})],1)])]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{icon:"el-icon-close",disabled:e.buttondisabled},on:{click:e.closeAddDialog}},[e._v("关 闭")]),1===e.canEdit?[t("el-button",{attrs:{icon:"el-icon-check",disabled:e.buttondisabled},on:{click:function(t){return e.AddNewExam("draft")}}},[e._v("保 存")]),t("el-button",{attrs:{icon:"el-icon-check",disabled:e.buttondisabled,type:"primary"},on:{click:function(t){return e.AddNewExam("submit")}}},[e._v("发 布")])]:[t("el-button",{attrs:{icon:"el-icon-edit",type:"primary"},on:{click:function(t){e.canEdit=1}}},[e._v("修 改")])]],2)],1):e._e(),t("TeacherList",{ref:"TeacherDialog"})],1)},xs=[];function Ls(e){return Ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ls(e)}function Ms(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ms=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Ls(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Ls(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ks(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Ts(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ks(o,n,a,i,s,"next",e)}function s(e){ks(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ys(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(r),!0).forEach((function(t){Ss(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ds(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ss(e,t,r){return(t=Cs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cs(e){var t=js(e,"string");return"symbol"==Ls(t)?t:t+""}function js(e,t){if("object"!=Ls(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ls(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Es=r(5093),Os={components:{ChooseDialog:Xi,TeacherList:zo},props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{loginUser:this.$store.getters.loginUser,vo:null,PaperName:"",checkList:[],checkList1:[],PassStartTime:!1,fullscreenLoading:!1,CourseName:"",canEdit:1,showaddExam:!1,buttondisabled:!1,isHasBigMannger:!1,title:"正式考试",Teachervalue:"",maxGrade:0,isUpdate:!0}},computed:Ys({},ce(["routes"])),watch:{},created:function(){var e=this;this.$bus.on("submitClick",(function(){e.AddNewExam()})),this.$bus.on("updateAddDialog",(function(t,r){e.canEdit=r,e.showaddExam=!0,1===t.type?e.title="正式考试":2===t.type&&(e.title="模拟考试"),e.initFormVo(t)})),this.$bus.on("openexamdialog",(function(t){e.Teachervalue="",e.isHasBigMannger=!1,"1"===t?e.title="正式考试":"2"===t&&(e.title="模拟考试"),e.showaddExam=!0,e.canEdit=1,e.initFormVo()})),this.$bus.$on("chooseTeacher",(function(t){e.vo.piyueId=t.id,e.vo.piyueUser=t.name,e.Teachervalue=t.name}))},beforeDestroy:function(){this.$bus.off("submitClick"),this.$bus.off("choosePaper"),this.$bus.off("openexamdialog"),this.$bus.off("chooseCourse"),this.$bus.off("updateAddDialog")},mounted:function(){var e=this;this.$bus.on("submitClick",(function(){e.AddNewExam()})),this.$bus.on("updateAddDialog",(function(t,r){e.canEdit=r,e.showaddExam=!0,1===t.type?e.title="正式考试":2===t.type&&(e.title="模拟考试"),e.initFormVo(t)})),this.$bus.on("openexamdialog",(function(t){e.Teachervalue="",e.isHasBigMannger=!1,"1"===t?e.title="正式考试":"2"===t&&(e.title="模拟考试"),e.showaddExam=!0,e.canEdit=1,e.initFormVo()})),this.$bus.$on("chooseTeacher",(function(t){e.vo.piyueId=t.id,e.vo.piyueUser=t.name,e.Teachervalue=t.name})),this.$bus.$on("choosePaper",(function(t){e.PaperName=t.name,e.maxGrade=t.totalGrade,e.vo.paperId=t.id,Number(t.typeQaNum)+Number(t.typeCompletionNum)!==0?e.isHasBigMannger=!0:e.isHasBigMannger=!1})),this.$bus.$on("chooseCourse",(function(t){e.CourseName=t.name,e.vo.courseId=t.id,e.vo.passenger.courseName=t.name}))},methods:{onclickTeacher:function(){this.$refs.TeacherDialog.click()},initFormVo:function(e){var t=this;return Ts(Ms().mark((function r(){var n,a;return Ms().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!e){r.next=7;break}return r.next=3,t.$app.getById("/ksgl/exam/getById",e.id);case 3:n=r.sent,"success"===n.code?(t.vo=n.body.vo,t.vo.isnew=!1,t.vo.piyueId&&(t.isHasBigMannger=!0,t.Teachervalue=t.vo.piyueUser),t.PaperName=n.body.vo.passenger.paperName,t.maxGrade=n.body.vo.passenger.totalGrade,t.CourseName=n.body.vo.passenger.courseName,t.DXchoose("show"),t.checkTime()):t.$message({type:"warning",message:n.body.message}),r.next=11;break;case 7:return r.next=9,t.$app.addNew("/ksgl/exam/addNew");case 9:a=r.sent,"success"===a.code?(t.vo=a.body.vo,t.vo.examerType=1,t.vo.type="type=2"===t.$route.meta.params?2:1,t.vo.isnew=!0,t.$forceUpdate()):t.$message({type:"warning",message:a.body.message});case 11:case"end":return r.stop()}}),r)})))()},chooseExamPaper:function(e){this.$refs.choosedialogs.click(e)},chooseLesson:function(e){this.$refs.choosedialogs.click(e)},AddNewExam:function(e){var t=this;if(this.vo.status="draft"===e?0:1,Es(this.vo.startTime)>Es(this.vo.endTime))return this.$message.error("开始时间不能大于结束时间");this.formValidate(Ts(Ms().mark((function e(){var r,n;return Ms().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.vo.piyueUser&&null!==t.vo.piyueUser?t.vo.whetherHaveReview=1:t.vo.whetherHaveReview=0,0!==t.checkList1.length||null!==t.vo.visibleConfig){e.next=5;break}t.$alert("考试结束后可见是必须的","操作提示",{confirmButtonText:"确定",type:"warning"}),e.next=27;break;case 5:if(t.buttondisabled=!0,t.vo.passGrade=parseInt(t.vo.passGrade),t.vo.examLimit=parseInt(t.vo.examLimit),t.vo.examTimes=parseInt(t.vo.examTimes),t.vo.credit=parseInt(t.vo.credit),t.vo.type=parseInt(t.vo.type),!t.vo.isnew){e.next=20;break}return e.next=14,t.DXchoose("add");case 14:return e.next=16,t.$app.insert("/ksgl/exam/insert",t.vo);case 16:r=e.sent,"success"===r.code?(t.buttondisabled=!1,t.$bus.emit("refreshListData"),t.closeAddDialog(),t.$message({type:"success",center:!0,message:r.message,onClose:function(){}})):(t.$bus.emit("refreshListData"),t.buttondisabled=!1,t.$message({type:"warning",center:!0,message:r.message})),e.next=26;break;case 20:return e.next=22,t.DXchoose("add");case 22:return e.next=24,t.$app.update("/ksgl/exam/update",t.vo);case 24:n=e.sent,"success"===n.code?(t.buttondisabled=!1,t.closeAddDialog(),t.$bus.emit("refreshListData"),t.$message({type:"success",center:!0,message:n.message})):(t.$bus.emit("refreshListData"),t.buttondisabled=!1,t.$message({type:"warning",center:!0,message:n.message}));case 26:t.$bus.emit("updateCloums");case 27:case"end":return e.stop()}}),e)})))),this.$bus.emit("refreshListData")},DXchoose:function(e){var t=this;if("add"===e){for(var r=this.checkList.concat(this.checkList1),n="",a=0;a<r.length;a++)n+=r[a]+",";var o=n.substring(0,n.length-1);this.vo.visibleConfig=o}else if("show"===e){this.checkList=[],this.checkList1=[];var i=this.vo.visibleConfig.split(",");i.forEach((function(e){e<=4?t.checkList.push(e):t.checkList1.push(e)}))}},checkTime:function(){var e=new Date,t=new Date(this.vo.startTime);e>t&&(this.PassStartTime=!0)},onSelectSuborgCompleted:function(e,t){var r="",n="";e.forEach((function(e){""!==r&&(r+="、"),r+=e.name,n+=e.id+","})),this.$set(this.vo,"examerId",n.substring(0,n.length-1)),this.$set(this.vo,"examerName",r)},onSelectWorkgroupCompleted:function(e,t){var r="",n="";e.forEach((function(e){""!==r&&(r+="、"),r+=e.name,n+=e.id+","})),this.$set(this.vo,"examerId",n.substring(0,n.length-1)),this.$set(this.vo,"examerName",r)},onSelectStaffCompleted:function(e,t){if("2"===t.nametype){var r="",n="";this.vo.passenger.examerId=e,e.forEach((function(e){""!==r&&(r+="、"),r+=e.name,n+=e.id+","})),this.$set(this.vo,"examerName",r),this.$set(this.vo,"examerId",n.substring(0,n.length-1))}else{var a="",o="";this.vo.passenger.piyueUser=e,e.forEach((function(e){""!==a&&(a+="、"),a+=e.name,o=e.id})),this.$set(this.vo,"piyueUser",a),this.$set(this.vo,"piyueId",o)}},closeAddDialog:function(){this.showaddExam=!1,this.vo=null,this.PaperName="",this.CourseName="",this.checkList=[],this.checkList1=[],this.PassStartTime=!1},khChange:function(){var e=this;this.$set(this.vo,"examerName",null),this.$set(this.vo,"examerId",null),this.vo.passenger.examerId="",this.isUpdate=!1,this.$nextTick((function(){e.isUpdate=!0}))}}},Ps=Os,As=(r(5831),c(Ps,ws,xs,!1,null,"6f8584cc",null)),Ns=As.exports,Hs=function(){var e=this,t=e._self._c;return t("div",[null!==e.examId?t("paperHeader",{attrs:{"exam-id":e.examId}}):e._e(),null!==e.examId?t("data-table",{staticClass:"leftLongTable",attrs:{"module-info":e.moduleInfo,"module-code":e.moduleInfo.moduleCode,"tb-columns":e.tbColumns,"toolbar-btns":e.listpageBtns,"custom-toolbar-btns":e.customToolbarBtns,"on-cell-click":e.onCellClick,"advanced-search":e.advancedSearch,"custom-toolbar-btns-click":e.customToolbarBtnsClick,"on-list-data-before-load":e.onListDataBeforeLoad,"on-list-data-loaded":e.onListDataLoaded}}):e._e()],1)},Is=[],Fs={components:{paperHeader:bs},props:{},data:function(){return{vo:{},startTime:"",EndTime:"",customToolbarBtns:[{name:"全部",value:"",type:"custom_btn"},{name:"未参加",value:"0",type:"custom_btn"},{name:"待批阅",value:"1",type:"custom_btn"},{name:"通过",value:"pass",type:"custom_btn"},{name:"未通过",value:"nopass",type:"custom_btn"}],listpageBtns:[],tbColumns:[{field:"index",width:"45px",valign:"middle",sortable:!1,propType:"",title:"序号",align:"center",searchable:!1},{field:"personName",valign:"middle",width:"100",sortable:!0,title:"姓名",align:"center",searchable:!0},{field:"personDept",valign:"middle",sortable:!0,propType:"String",title:"部门",align:"left",searchable:!0},{field:"grade",width:"120",valign:"middle",sortable:!0,propType:"String",title:"成绩",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!1},{listAdvSearchElement:"date",field:"endTime",width:"150",valign:"middle",sortable:!0,propType:"Short",title:"交卷时间",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!1},{field:"status",width:"120",valign:"middle",sortable:!1,propType:"String",title:"状态 ",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!1}],advancedSearch:{show:!0,optionName:"类型",selectiveType:"radio",option:[{name:"部门",filed:"module",code:"personDept"},{name:"成绩",filed:"module",code:"grade"},{name:"交卷时间",filed:"module",code:"endTime"}]},moduleInfo:{listDataUrl:"/ksgl/examRecord/listdata",moduleCode:"examRecordDeTail"},status:"",ispass:"",id:"",examId:null,cno:0}},computed:{},watch:{$route:{handler:function(){this.$route.query.id&&(this.examId=this.$route.query.id)},deep:!0}},created:function(){console.log("查看详情")},beforeDestroy:function(){},mounted:function(){var e=this;this.$route.query.id&&(this.examId=this.$route.query.id,this.customToolbarBtns=[{no:0,name:"全部",value:"all",type:"custom_btn"},{no:1,name:"未参加",value:"0",type:"custom_btn"},{no:2,name:"待批阅",value:"1",type:"custom_btn"},{no:3,name:"通过",value:"pass",type:"custom_btn"},{no:4,name:"未通过",value:"nopass",type:"custom_btn"}]),this.$bus.on("sendId",(function(t){e.examId=t}))},methods:{onListDataBeforeLoad:function(e,t){t.orderBy="endTime desc",console.log(this.examId),"all"===this.status||""===this.status?t.urlsearch="examId:"+this.examId:"0"===this.status?t.urlsearch="startTime:null;examId:"+this.examId:"1"===this.status?t.urlsearch="status:1;examtimes>0;examId:"+this.examId:"pass"!==this.status&&"nopass"!==this.status||(t.urlsearch="ispass:"+("pass"===this.status?1:0)+";examId:"+this.examId),t.urlsearch+=";orgCode:"+e.loginUser.orgCode},customToolbarBtnsClick:function(e){var t=this;this.status=e.value,0===e.no?this.tbColumns=[{field:"index",width:"45px",valign:"middle",sortable:!1,propType:"",title:"序号",align:"center",searchable:!1},{field:"personName",valign:"middle",width:"100",sortable:!0,title:"姓名",align:"center"},{field:"personDept",valign:"middle",sortable:!0,propType:"String",title:"部门",align:"left",searchable:!0},{field:"grade",width:"120",valign:"middle",sortable:!0,propType:"String",title:"成绩",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!0},{field:"status",width:"120",valign:"middle",sortable:!1,propType:"String",title:"状态 ",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!1},{listAdvSearchElement:"select",field:"endTime",width:"150",valign:"middle",sortable:!0,propType:"Short",title:"交卷时间",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!0}]:1===e.no?this.tbColumns=[{field:"index",width:"45px",valign:"middle",sortable:!1,propType:"",title:"序号",align:"center",searchable:!1},{field:"personName",valign:"middle",width:"100",sortable:!0,title:"姓名",align:"center"},{field:"personDept",valign:"middle",sortable:!0,propType:"String",title:"部门",align:"left",searchable:!0}]:2===e.no?this.tbColumns=[{field:"index",width:"45px",valign:"middle",sortable:!1,propType:"",title:"序号",align:"center",searchable:!1},{field:"personName",valign:"middle",width:"100",sortable:!0,title:"姓名",align:"center"},{field:"personDept",valign:"middle",sortable:!0,propType:"String",title:"部门",align:"left",searchable:!0},{listAdvSearchElement:"select",field:"endTime",width:"150",valign:"middle",sortable:!0,propType:"Short",title:"交卷时间",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!0}]:(3===e.no||4===e.no)&&(this.tbColumns=[{field:"index",width:"45px",valign:"middle",sortable:!1,propType:"",title:"序号",align:"center",searchable:!1},{field:"personName",valign:"middle",width:"100",sortable:!0,title:"姓名",align:"center"},{field:"personDept",valign:"middle",sortable:!0,propType:"String",title:"部门",align:"left",searchable:!0},{field:"grade",width:"120",valign:"middle",sortable:!0,propType:"String",title:"成绩",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!0},{listAdvSearchElement:"select",field:"endTime",width:"150",valign:"middle",sortable:!0,propType:"Short",title:"交卷时间",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!0}]),this.$nextTick((function(){t.$bus.emit("refreshListData")}))},onListDataLoaded:function(e,t){console.log("urgent listdata loaded"),t.list.forEach((function(e){e.startTime?1===e.status?e.status="待批阅":0===e.ispass?e.status="未通过":1===e.ispass&&(e.status="通过"):e.status="未参加",e.personDept&&(e.personDept=e.personDept.substr(e.personDept.indexOf("-")+1))}))}}},zs=Fs,Bs=(r(9728),c(zs,Hs,Is,!1,null,"d094c402",null)),Gs=Bs.exports,Rs=function(){var e=this,t=e._self._c;return t("div",[0===e.row.ispublish?t("a",{staticClass:"el-link el-link--default is-underline",staticStyle:{display:"inline-block"},attrs:{title:"编辑"},on:{click:e.updateData}},[e._m(0)]):e._e(),t("a",{staticClass:"el-link el-link--default is-underline",staticStyle:{display:"inline-block"},attrs:{title:"删除"},on:{click:e.deleteData}},[e._m(1)])])},Ws=[function(){var e=this,t=e._self._c;return t("span",{staticClass:"el-link--inner"},[t("i",{staticClass:"el-icon-edit"})])},function(){var e=this,t=e._self._c;return t("span",{staticClass:"el-link--inner"},[t("i",{staticClass:"el-icon-delete"})])}];function Vs(e){return Vs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vs(e)}function Us(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Us=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Vs(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Vs(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function qs(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Xs(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){qs(o,n,a,i,s,"next",e)}function s(e){qs(o,n,a,i,s,"throw",e)}i(void 0)}))}}var Ks={components:{},props:{row:{type:Object,default:function(){return{}}},column:{type:Object,default:function(){return{}}},index:{type:String,default:function(){return"0"}}},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{deleteData:function(){var e=this;this.$confirm("您是否确认删除选择的数据?","确认操作",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Xs(Us().mark((function t(){var r,n;return Us().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.row,t.next=3,e.$app.deleteByIds("/ksgl/paper/delete",[r.id]);case 3:n=t.sent,"success"===n.code?(e.$message({type:"success",message:"删除成功!"}),e.$bus.emit("refreshListData")):e.$message({type:"info",message:n.message});case 5:case"end":return t.stop()}}),t)})))).catch((function(){}))},updateData:function(){var e=this;return Xs(Us().mark((function t(){var r;return Us().wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=e.row,e.$bus.emit("openPaperDialog",{obj:r,type:1});case 2:case"end":return t.stop()}}),t)})))()}}},Js=Ks,Qs=c(Js,Rs,Ws,!1,null,"911737a6",null),Zs=Qs.exports,$s=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{title:"试卷管理",visible:e.dialogVisible,width:"1000px","close-on-click-modal":!1,"before-close":e.closeFuc},on:{"update:visible":function(t){e.dialogVisible=t}}},[1===e.vo.type?t("el-tabs",{staticClass:"height-unset",attrs:{"before-leave":e.beforeLeaveFuc},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"基本信息",name:"first"}},[t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("试卷名称 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"试卷名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:"请输入试卷名称"},model:{value:e.vo.name,callback:function(t){e.$set(e.vo,"name",t)},expression:"vo.name"}})],1)]}}],null,!1,3866165798)})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("试卷分类")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"试卷分类",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{readonly:"true",placeholder:"请选择所属分类"},model:{value:e.categoryValue,callback:function(t){e.categoryValue=t},expression:"categoryValue"}},[t("el-button",{attrs:{slot:"append"},on:{click:e.clickCascader},slot:"append"},[e._v("选择分类")])],1)],1)]}}],null,!1,3388951331)}),t("Cascader",{ref:"cascader",attrs:{"b-type":2,title:"试卷分类"}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("试卷类型")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("span",[e._v(e._s(1===e.vo.type?"固定试卷":"随机试卷"))])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("题型分值")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("单选题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeChoiceNum,callback:function(t){e.$set(e.vo,"typeChoiceNum",e._n(t))},expression:"vo.typeChoiceNum"}})],1)]}}],null,!1,2521854178)}),t("span",[e._v(" 个,")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeChoiceGredit,callback:function(t){e.$set(e.vo,"typeChoiceGredit",e._n(t))},expression:"vo.typeChoiceGredit"}})],1)]}}],null,!1,4229401309)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("多选题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCheckboxNum,callback:function(t){e.$set(e.vo,"typeCheckboxNum",e._n(t))},expression:"vo.typeCheckboxNum"}})],1)]}}],null,!1,1886326170)}),t("span",[e._v(" 个, ")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCheckboxGredit,callback:function(t){e.$set(e.vo,"typeCheckboxGredit",e._n(t))},expression:"vo.typeCheckboxGredit"}})],1)]}}],null,!1,3910920869)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("判断题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeGudgeNum,callback:function(t){e.$set(e.vo,"typeGudgeNum",e._n(t))},expression:"vo.typeGudgeNum"}})],1)]}}],null,!1,2561326269)}),t("span",[e._v(" 个,")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeGudgeGredit,callback:function(t){e.$set(e.vo,"typeGudgeGredit",e._n(t))},expression:"vo.typeGudgeGredit"}})],1)]}}],null,!1,1972581282)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("填空题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCompletionNum,callback:function(t){e.$set(e.vo,"typeCompletionNum",e._n(t))},expression:"vo.typeCompletionNum"}})],1)]}}],null,!1,2977140237)}),t("span",[e._v(" 个,")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCompletionGredit,callback:function(t){e.$set(e.vo,"typeCompletionGredit",e._n(t))},expression:"vo.typeCompletionGredit"}})],1)]}}],null,!1,2526112018)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("问答题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeQaNum,callback:function(t){e.$set(e.vo,"typeQaNum",e._n(t))},expression:"vo.typeQaNum"}})],1)]}}],null,!1,3266266905)}),t("span",[e._v(" 个, ")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeQaGredit,callback:function(t){e.$set(e.vo,"typeQaGredit",e._n(t))},expression:"vo.typeQaGredit"}})],1)]}}],null,!1,1456823430)}),t("span",[e._v(" 分")])],2)])]),2===e.vo.type?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("选择题库")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"选择题库",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:"请选择题库"},model:{value:e.vo.bankNames,callback:function(t){e.$set(e.vo,"bankNames",t)},expression:"vo.bankNames"}},[t("el-button",{attrs:{slot:"append"},on:{click:function(t){return e.chooseDialog("2")}},slot:"append"},[e._v("选择题库")])],1)],1)]}}],null,!1,4170131838)})],1)]):e._e()])])])])])],1),t("el-tab-pane",{attrs:{label:"试卷信息",name:"second"}},[t("el-row",{staticStyle:{"margin-bottom":"10px",display:"flex"}},[t("el-input",{staticStyle:{"margin-right":"10px"},attrs:{placeholder:"搜索...",clear:"searchBar"},model:{value:e.outSearchText,callback:function(t){e.outSearchText=t},expression:"outSearchText"}},[t("el-button",{staticStyle:{width:"30px"},attrs:{slot:"append",icon:"el-icon-search"},slot:"append"})],1),1===e.vo.type?t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.chooseDialog("1")}}},[e._v("添加试题")]):e._e(),1===e.vo.type?t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.chooseDialog("3")}}},[e._v("随机选择")]):e._e()],1),t("div",{staticStyle:{"margin-bottom":"10px",display:"flex","align-items":"center","justify-content":"space-between"}},[t("el-radio-group",{model:{value:e.tabPosition,callback:function(t){e.tabPosition=t},expression:"tabPosition"}},[t("el-radio-button",{attrs:{label:"all"}},[e._v("全部("+e._s(e.tableData.length)+")")]),t("el-radio-button",{attrs:{label:"type-1"}},[e._v("单选题("+e._s(e.typeNum1)+")")]),t("el-radio-button",{attrs:{label:"type-2"}},[e._v("多选题("+e._s(e.typeNum2)+")")]),t("el-radio-button",{attrs:{label:"type-3"}},[e._v("判断题("+e._s(e.typeNum3)+")")]),t("el-radio-button",{attrs:{label:"type-4"}},[e._v("填空题("+e._s(e.typeNum4)+")")]),t("el-radio-button",{attrs:{label:"type-5"}},[e._v("问答题("+e._s(e.typeNum5)+")")])],1),t("div",["all"===e.tabPosition?t("span",[e._v("总分 "+e._s(e.typeNumSum)+" 分")]):e._e(),"type-1"===e.tabPosition?t("span",[e._v("总分 "+e._s(e.typeNumSum1)+" 分")]):e._e(),"type-2"===e.tabPosition?t("span",[e._v("总分 "+e._s(e.typeNumSum2)+" 分")]):e._e(),"type-3"===e.tabPosition?t("span",[e._v("总分 "+e._s(e.typeNumSum3)+" 分")]):e._e(),"type-4"===e.tabPosition?t("span",[e._v("总分 "+e._s(e.typeNumSum4)+" 分")]):e._e(),"type-5"===e.tabPosition?t("span",[e._v("总分 "+e._s(e.typeNumSum5)+" 分")]):e._e()])],1),1===e.vo.type?t("el-form",{staticClass:"elForm",staticStyle:{height:"406px"}},[t("el-table",{ref:"elTable",attrs:{data:e.tableDataFilter.filter((function(t){return!e.outSearchText||t.name.includes(e.outSearchText)})),border:"","tooltip-effect":"dark"},model:{value:e.tableDataFilter,callback:function(t){e.tableDataFilter=t},expression:"tableDataFilter"}},[t("el-table-column",{attrs:{type:"index",label:"序号",width:"50",align:"center"}}),t("el-table-column",{attrs:{label:"题目",align:"left"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.content||r.row.passenger.subjectManage.content))])]}}],null,!1,3497278225)}),e.isGetById?t("el-table-column",{attrs:{props:"passenger.subjectManage.type",label:"题型",width:"100",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[1===r.row.type?t("span",[e._v("单选题")]):e._e(),2===r.row.type?t("span",[e._v("多选题")]):e._e(),3===r.row.type?t("span",[e._v("判断题")]):e._e(),4===r.row.type?t("span",[e._v("填空题")]):e._e(),5===r.row.type?t("span",[e._v("问答题")]):e._e()]}}],null,!1,2049333141)}):e._e(),e.isGetById?e._e():t("el-table-column",{attrs:{props:"type",label:"题型",width:"100",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[1===r.row.type?t("span",[e._v("单选题")]):e._e(),2===r.row.type?t("span",[e._v("多选题")]):e._e(),3===r.row.type?t("span",[e._v("判断题")]):e._e(),4===r.row.type?t("span",[e._v("填空题")]):e._e(),5===r.row.type?t("span",[e._v("问答题")]):e._e()]}}],null,!1,582017845)}),t("el-table-column",{attrs:{label:"分值",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[1===r.row.type?t("el-input-number",{staticStyle:{width:"130px"},attrs:{min:1},model:{value:r.row.grade,callback:function(t){e.$set(r.row,"grade",t)},expression:"scope.row.grade"}}):e._e(),2===r.row.type?t("el-input-number",{staticStyle:{width:"130px"},attrs:{min:1},model:{value:r.row.grade,callback:function(t){e.$set(r.row,"grade",t)},expression:"scope.row.grade"}}):e._e(),3===r.row.type?t("el-input-number",{staticStyle:{width:"130px"},attrs:{min:1},model:{value:r.row.grade,callback:function(t){e.$set(r.row,"grade",t)},expression:"scope.row.grade"}}):e._e(),4===r.row.type?t("el-input-number",{staticStyle:{width:"130px"},attrs:{min:1},model:{value:r.row.grade,callback:function(t){e.$set(r.row,"grade",t)},expression:"scope.row.grade"}}):e._e(),5===r.row.type?t("el-input-number",{staticStyle:{width:"130px"},attrs:{min:1},model:{value:r.row.grade,callback:function(t){e.$set(r.row,"grade",t)},expression:"scope.row.grade"}}):e._e()]}}],null,!1,706969841)}),t("el-table-column",{attrs:{label:"操作",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},attrs:{icon:"el-icon-delete","font-size":"20px"},on:{click:function(t){return e.delChecked(r.$index,r.row)}}})]}}],null,!1,433972717)})],1)],1):e._e()],1)],1):e._e(),2===e.vo.type?t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("试卷名称 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"试卷名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:"请输入试卷名称"},model:{value:e.vo.name,callback:function(t){e.$set(e.vo,"name",t)},expression:"vo.name"}})],1)]}}],null,!1,3866165798)})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("试卷分类")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"试卷分类",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{readonly:"true",placeholder:"请选择所属分类"},model:{value:e.categoryValue,callback:function(t){e.categoryValue=t},expression:"categoryValue"}},[t("el-button",{attrs:{slot:"append"},on:{click:e.clickCascader},slot:"append"},[e._v("选择分类")])],1)],1)]}}],null,!1,3388951331)}),t("Cascader",{ref:"cascader",attrs:{"b-type":2,title:"试卷分类"}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("试卷类型")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("span",[e._v(e._s(1===e.vo.type?"固定试卷":"随机试卷"))])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("题型分值")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("单选题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeChoiceNum,callback:function(t){e.$set(e.vo,"typeChoiceNum",e._n(t))},expression:"vo.typeChoiceNum"}})],1)]}}],null,!1,2521854178)}),t("span",[e._v(" 个,")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeChoiceGredit,callback:function(t){e.$set(e.vo,"typeChoiceGredit",e._n(t))},expression:"vo.typeChoiceGredit"}})],1)]}}],null,!1,4229401309)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("多选题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCheckboxNum,callback:function(t){e.$set(e.vo,"typeCheckboxNum",e._n(t))},expression:"vo.typeCheckboxNum"}})],1)]}}],null,!1,1886326170)}),t("span",[e._v(" 个, ")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCheckboxGredit,callback:function(t){e.$set(e.vo,"typeCheckboxGredit",e._n(t))},expression:"vo.typeCheckboxGredit"}})],1)]}}],null,!1,3910920869)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("判断题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeGudgeNum,callback:function(t){e.$set(e.vo,"typeGudgeNum",e._n(t))},expression:"vo.typeGudgeNum"}})],1)]}}],null,!1,2561326269)}),t("span",[e._v(" 个,")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeGudgeGredit,callback:function(t){e.$set(e.vo,"typeGudgeGredit",e._n(t))},expression:"vo.typeGudgeGredit"}})],1)]}}],null,!1,1972581282)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("填空题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCompletionNum,callback:function(t){e.$set(e.vo,"typeCompletionNum",e._n(t))},expression:"vo.typeCompletionNum"}})],1)]}}],null,!1,2977140237)}),t("span",[e._v(" 个,")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCompletionGredit,callback:function(t){e.$set(e.vo,"typeCompletionGredit",e._n(t))},expression:"vo.typeCompletionGredit"}})],1)]}}],null,!1,2526112018)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("问答题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeQaNum,callback:function(t){e.$set(e.vo,"typeQaNum",e._n(t))},expression:"vo.typeQaNum"}})],1)]}}],null,!1,3266266905)}),t("span",[e._v(" 个, ")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeQaGredit,callback:function(t){e.$set(e.vo,"typeQaGredit",e._n(t))},expression:"vo.typeQaGredit"}})],1)]}}],null,!1,1456823430)}),t("span",[e._v(" 分")])],2)])]),2===e.vo.type?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("选择题库")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"选择题库",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:"请选择题库"},model:{value:e.vo.bankNames,callback:function(t){e.$set(e.vo,"bankNames",t)},expression:"vo.bankNames"}},[t("el-button",{attrs:{slot:"append"},on:{click:function(t){return e.chooseDialog("2")}},slot:"append"},[e._v("选择题库")])],1)],1)]}}],null,!1,4170131838)})],1)]):e._e()])])])])]):e._e(),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{plain:"",icon:"el-icon-close"},on:{click:function(t){return e.closeFuc()}}},[e._v("关 闭")]),2===e.vo.type?t("el-button",{attrs:{plain:"",icon:"el-icon-check"},on:{click:function(t){return e.clickSubmit("0")}}},[e._v("保 存")]):e._e(),2===e.vo.type?t("el-button",{attrs:{type:"primary",icon:"el-icon-check"},on:{click:function(t){return e.clickSubmit("1")}}},[e._v("发 布")]):e._e(),"first"===e.activeName&&1===e.vo.type?t("el-button",{attrs:{type:"primary",icon:"el-icon-arrow-right"},on:{click:function(t){return e.beforeLeaveFuc()}}},[e._v("下一步")]):e._e(),"first"!==e.activeName&&1===e.vo.type?t("el-button",{attrs:{plain:"",icon:"el-icon-arrow-left"},on:{click:function(t){e.activeName="first"}}},[e._v("上一步")]):e._e(),"first"!==e.activeName&&1===e.vo.type?t("el-button",{attrs:{plain:"",icon:"el-icon-check"},on:{click:function(t){return e.clickSubmit("0")}}},[e._v("保 存")]):e._e(),"first"!==e.activeName&&1===e.vo.type?t("el-button",{attrs:{type:"primary",icon:"el-icon-check"},on:{click:function(t){return e.clickSubmit("1")}}},[e._v("发 布")]):e._e()],1)],1),t("ChooseSubject",{ref:"chooseSub",attrs:{"dia-type":e.diaType,vo:e.vo}}),t("ChooseTree",{ref:"chooseTree",attrs:{"dia-type":e.diaType}})],1)},el=[],tl=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{width:"1100px",title:"选择题库","close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":!0,visible:e.outerVisible},on:{"update:visible":function(t){e.outerVisible=t}}},[t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{icon:"el-icon-close"},on:{click:function(t){e.outerVisible=!1}}},[e._v("取 消")])],1),t("el-row",{staticStyle:{"margin-bottom":"10px"}},[t("el-col",{attrs:{span:22}},[t("el-input",{attrs:{placeholder:"搜索...",clear:"searchBar"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearchTextOut.apply(null,arguments)}},model:{value:e.outSearchText,callback:function(t){e.outSearchText=t},expression:"outSearchText"}},[t("el-button",{staticStyle:{width:"30px"},attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.doSearchTextOut.apply(null,arguments)}},slot:"append"})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:2}},["3"===e.diaType?t("el-button",{attrs:{plain:"",icon:"el-icon-check"},on:{click:function(t){return e.submitClick()}}},[e._v("选择")]):e._e(),"2"===e.diaType?t("el-button",{attrs:{plain:"",icon:"el-icon-check"},on:{click:function(t){return e.xuanzeClick()}}},[e._v("选择")]):e._e()],1)],1),"2"===e.diaType&&e.multipleSelection.length>0?t("p",{staticStyle:{margin:"0","line-height":"30px"}},[e._v(" 共选题库 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.multipleSelection.length))]),e._v(" 个, "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.num1))]),e._v(" 道单选题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.num2))]),e._v(" 道多选题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.num3))]),e._v(" 道判断题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.num4))]),e._v(" 道填空题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.num5))]),e._v(" 道问答题 ")]):e._e(),"2"===e.diaType?t("data-table",{attrs:{mode:"dialog","module-info":e.moduleInfo,"tb-columns":e.tbColumns,"on-list-data-before-load":e.onListDataBeforeLoad,"toolbar-btns":e.listpageBtns,"on-cell-click":e.handleCellClick,"on-list-data-loaded":e.onListDataLoaded,"on-selected-rows-change":e.handleSelectionChangeAuto}}):e._e(),"3"===e.diaType?t("data-table",{attrs:{mode:"dialog","on-list-data-before-load":e.onListDataBeforeLoad,"module-info":e.moduleInfo,"tb-columns":e.tbColumns,"toolbar-btns":e.listpageBtns,"on-cell-click":e.handleCellClick,"on-list-data-loaded":e.onListDataLoaded,"on-selected-rows-change":e.onSelectedRowsChange}}):e._e()],1)],1)},rl=[];function nl(e){return nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nl(e)}function al(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */al=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==nl(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(nl(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ol(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function il(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ol(o,n,a,i,s,"next",e)}function s(e){ol(o,n,a,i,s,"throw",e)}i(void 0)}))}}var sl={components:{},props:{diaType:{type:String,default:function(){return""}},vo:{type:Object,default:function(){return{}}}},data:function(){return{outerVisible:!1,dialogFormVisible:!1,multipleSelection:[],outSearchText:"",checkedList:[],checkedIds:[],tikuList:[],innerAutoList:null,suijitkname:null,index:null,moduleInfo:{formTemplate:"vwSubjectBankType",moduleCode:"vwSubjectBankType",listDataUrl:"ksgl/vwSubjectBankType/listdata",listDefaultOrderBy:"",winWidth:800,winHeight:600},tbColumns:[{field:"state",checkbox:!0,width:"45px"},{field:"name",title:"题库名称",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0},{field:"subNum1",title:"单选题",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"subNum2",title:"多选题",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"subNum3",title:"判断题",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"subNum4",title:"填空题",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"subNum5",title:"问答题",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"subNum",title:"试题总数",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"tname",title:"题库分类",width:"110px",align:"center",valign:"middle",sortable:!0}],num1:"",num2:"",num3:"",num4:"",num5:""}},computed:{},watch:function(){},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{click:function(e){this.outerVisible=!0,this.index=e},onListDataBeforeLoad:function(e,t){t.urlsearch="orgCode:"+e.loginUser.orgCode+";status:1",t.orderBy="createTime desc"},onListDataLoaded:function(e,t){var r=[];t.list.map((function(e){e.subNum>0&&r.push(e)})),t.list=r,console.log(" listdata loaded")},handleSelectionChangeAuto:function(e){var t=this;this.num1=0,this.num2=0,this.num3=0,this.num4=0,this.num5=0,console.log(e),this.multipleSelection=e,this.innerSelectionAutoString=[],this.innerSelectionAutoName=[],this.multipleSelection.forEach((function(e){t.innerSelectionAutoString.push(e.id),t.innerSelectionAutoName.push(e.name)})),this.innerAutoList=this.innerSelectionAutoString.toString(),this.suijitkname=this.innerSelectionAutoName.toString(),this.innerSelectionAutoObject={ids:this.innerSelectionAutoString.toString(),names:this.innerSelectionAutoName.toString()},this.multipleSelection.map((function(e){t.num1+=parseInt(e.subNum1),t.num2+=parseInt(e.subNum2),t.num3+=parseInt(e.subNum3),t.num4+=parseInt(e.subNum4),t.num5+=parseInt(e.subNum5)}))},onSelectedRowsChange:function(e){var t=this;this.selectedRows=e,this.selectString=[],this.selectedRows.forEach((function(e){t.selectString.push(e.id)})),this.selectString=this.selectString.toString(),this.checkedList=this.selectString,this.tikuList=this.selectedRows},xuanzeClick:function(){var e=this;return il(al().mark((function t(){return al().wrap((function(t){while(1)switch(t.prev=t.next){case 0:"2"===e.diaType?e.vo.typeChoiceNum>e.num1?e.$message.error("所选题库中单选题数量不足,请重新选择!"):e.vo.typeCheckboxNum>e.num2?e.$message.error("所选题库中多选题数量不足,请重新选择!"):e.vo.typeGudgeNum>e.num3?e.$message.error("所选题库中判断题数量不足,请重新选择!"):e.vo.typeCompletionNum>e.num4?e.$message.error("所选题库中填空题数量不足,请重新选择!"):e.vo.typeQaNum>e.num5?e.$message.error("所选题库中问答题数量不足,请重新选择!"):(e.outerVisible=!1,e.selectNum1="",e.$bus.emit("autoChooseClose",{obj:e.innerAutoList,names:e.suijitkname,selectObj:e.multipleSelection})):e.checkedIds=e.checkedList;case 1:case"end":return t.stop()}}),t)})))()},doSearchTextOut:function(){this.$bus.emit("searchListData",this.outSearchText,"or","dialog")},submitClick:function(){var e=this;return il(al().mark((function t(){var r,n,a,o,i,s,l,c;return al().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.checkedList.length){t.next=3;break}return e.$message.error("请选择题库!"),t.abrupt("return",!1);case 3:return e.outerVisible=!1,r=[],n=0,a=0,o=0,i=0,s=0,e.tikuList.forEach((function(e){n+=e.subNum1,a+=e.subNum2,o+=e.subNum3,i+=e.subNum4,s+=e.subNum5})),r.push(n,a,o,i,s),l={bankIds:e.checkedList,counts:r.toString()},t.next=15,e.$app.listdata("ksgl/subjectManage/queryRand",l);case 15:c=t.sent,"success"===c.code?e.$bus.emit("innerSelection",c.body.listdata):e.$message.error(c.message);case 17:case"end":return t.stop()}}),t)})))()}}},ll=sl,cl=(r(7987),c(ll,tl,rl,!1,null,"29d3663c",null)),ul=cl.exports;function dl(e){return dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dl(e)}function pl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */pl=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==dl(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(dl(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function hl(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function fl(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){hl(o,n,a,i,s,"next",e)}function s(e){hl(o,n,a,i,s,"throw",e)}i(void 0)}))}}var ml={components:{Cascader:Te,ChooseSubject:ul,ChooseTree:Zo},props:{},data:function(){return{radio:1,activeName:"first",dialogVisible:!1,isGetById:!1,isShow:!0,categoryValue:"",categoryId:"",diaType:"",outSearchText:"",tableData:[],closeInner:!1,autoClose:!1,loading:!1,vo:{type:null},suijitkNameValue:"",suijitkidValue:"",typeNum1:0,typeNum2:0,typeNum3:0,typeNum4:0,typeNum5:0,typeNumSum:0,tabPosition:"all",tableDataFilter:[],typeNumSum1:0,typeNumSum2:0,typeNumSum3:0,typeNumSum4:0,typeNumSum5:0,hasNull:0}},computed:{},watch:{tableData:{handler:function(e,t){if(this.tabPosition.split("-")[1]){var r=parseInt(this.tabPosition.split("-")[1]);this.tableDataFilter=this.tableData.filter((function(e,t){return e.type===r}))}else this.tableDataFilter=this.tableData;this.tipNum()},deep:!0},tabPosition:{handler:function(e,t){if(e.split("-")[1]){var r=parseInt(e.split("-")[1]);this.tableDataFilter=this.tableData.filter((function(e,t){return e.type===r}))}else this.tableDataFilter=this.tableData;this.tipNum()},deep:!0}},created:function(){var e=this;this.$bus.on("openPaperDialog",(function(t){e.openPaperDialog(),e.paperGetbyId(t)}))},beforeDestroy:function(){this.$bus.off("openPaperDialog",this.openPaperDialog)},mounted:function(){var e=this;this.$bus.$on("innerSelection",(function(t){console.log(t,"选择的题"),e.tableData.length>0?t.forEach((function(t){var r=e.tableData.every((function(r){return e.isGetById?(void 0!==r.passenger&&void 0!==r.passenger.subjectManage?r.passenger.subjectManage.id:r.id)!==t.id:r.id!==t.id}));r&&(e.$set(t,"grade",parseInt(JSON.parse(JSON.stringify(1===t.type?e.vo.typeChoiceGredit:2===t.type?e.vo.typeCheckboxGredit:3===t.type?e.vo.typeGudgeGredit:4===t.type?e.vo.typeCompletionGredit:e.vo.typeQaGredit)))),e.tableData.push(t),e.tableData.sort(e.SortData("type")))})):(t.forEach((function(t){e.$set(t,"grade",parseInt(JSON.parse(JSON.stringify(1===t.type?e.vo.typeChoiceGredit:2===t.type?e.vo.typeCheckboxGredit:3===t.type?e.vo.typeGudgeGredit:4===t.type?e.vo.typeCompletionGredit:e.vo.typeQaGredit))))})),e.tableData=t,e.tableData.sort(e.SortData("type")))})),this.$bus.$on("autoChooseClose",(function(t){e.vo.bankNames=t.names,e.vo.bankIds=t.obj,console.log(e.tableDataAuto,t)})),this.$bus.$on("sureclick",(function(t){e.categoryValue=t.name,e.vo.categoryId=t.id,e.vo.categoryName=t.name})),this.$bus.$on("examNum",(function(t){e.Examresultobj=t}))},methods:{openPaperDialog:function(){this.dialogVisible=!0},paperGetbyId:function(e){var t=this;return fl(pl().mark((function r(){var n;return pl().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!e||1!==e.type){r.next=8;break}return t.isGetById=!0,r.next=4,t.$app.getById("ksgl/paper/getById",e.obj.id);case 4:n=r.sent,"success"===n.code?(t.vo=n.body.vo,t.vo.edit=1,1===t.vo.type&&(t.tableData=t.vo.passenger.paperTypePerson,t.tableData=t.vo.passenger.paperTypePerson.map((function(e){return e.type=e.passenger.subjectManage.type,e})),t.tableDataFilter=t.tableData),t.categoryValue=t.vo.passenger.category.fullName.replaceAll("-","/")):t.$message.error(n.message),r.next=10;break;case 8:t.isGetById=!1,t.initFormVo(e.testType);case 10:case"end":return r.stop()}}),r)})))()},tipNum:function(){var e=this;this.hasNull=0,this.typeNum1=0,this.typeNum2=0,this.typeNum3=0,this.typeNum4=0,this.typeNum5=0,this.typeNumSum=0,this.typeNumSum1=0,this.typeNumSum2=0,this.typeNumSum3=0,this.typeNumSum4=0,this.typeNumSum5=0,this.tableData.forEach((function(t){t.grade||e.hasNull++,1===t.type?(e.typeNum1++,e.typeNumSum1+=t.grade?t.grade:0,e.typeNumSum+=t.grade?t.grade:0):2===t.type?(e.typeNum2++,e.typeNumSum2+=t.grade?t.grade:0,e.typeNumSum+=t.grade?t.grade:0):3===t.type?(e.typeNum3++,e.typeNumSum3+=t.grade?t.grade:0,e.typeNumSum+=t.grade?t.grade:0):4===t.type?(e.typeNum4++,e.typeNumSum4+=t.grade?t.grade:0,e.typeNumSum+=t.grade?t.grade:0):(e.typeNum5++,e.typeNumSum5+=t.grade?t.grade:0,e.typeNumSum+=t.grade?t.grade:0)})),this.vo.typeChoiceNum=this.typeNum1,this.vo.typeCheckboxNum=this.typeNum2,this.vo.typeGudgeNum=this.typeNum3,this.vo.typeCompletionNum=this.typeNum4,this.vo.typeQaNum=this.typeNum5,this.vo.totalGrade=this.typeNumSum},handleClick:function(e,t){return!1},beforeLeaveFuc:function(e,t){return this.clickChooseSub(e,t)},closeFuc:function(){this.categoryValue=null,this.vo.categoryId=null,this.activeName="first",this.tableData=[],this.tabPosition="all",this.tableDataFilter=[],this.tableDataAuto=[],this.dialogVisible=!1,this.typeNum1=0,this.typeNum2=0,this.typeNum3=0,this.typeNum4=0,this.typeNum5=0,this.typeNumSum=0,this.typeNumSum1=0,this.typeNumSum2=0,this.typeNumSum3=0,this.typeNumSum4=0,this.typeNumSum5=0},initFormVo:function(e){var t=this;return fl(pl().mark((function r(){var n;return pl().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,t.$app.addNew("/ksgl/paper/addNew");case 2:n=r.sent,"success"===n.code?(t.vo=n.body.vo,t.vo.type=e,t.vo.edit=0,t.vo.passenger.paperTypePerson=[]):t.$message({type:"warning",message:n.body.message});case 4:case"end":return r.stop()}}),r)})))()},clickSubmit:function(e){var t=this,r=this;r.formValidate((function(){if(1===t.vo.type&&t.hasNull>0)t.$message.warning("试题分数不能为空");else{if(r.loading=!0,"2"!==r.diaType)r.vo.passenger.paperTypePerson=r.tableData.map((function(e,t){return{name:e.name,type:e.type,subjectId:e.subjectId||e.id,orderNo:t+1001,paperId:r.vo.id,grade:e.grade}})),r.vo.subjectNum=r.tableData.length;else if("2"===r.diaType){r.vo.passenger.paperTypePerson=[];for(var n=1;n<6;n++){var a={bankId:r.vo.bankIds,paperId:r.vo.id,type:n,typeNum:parseInt(1===n?r.vo.typeChoiceNum:2===n?r.vo.typeCheckboxNum:3===n?r.vo.typeGudgeNum:4===n?r.vo.typeCompletionNum:r.vo.typeQaNum)};r.vo.passenger.paperTypePerson.push(a)}r.vo.subjectNum=parseInt(r.vo.typeChoiceNum)+parseInt(r.vo.typeCheckboxNum)+parseInt(r.vo.typeGudgeNum)+parseInt(r.vo.typeCompletionNum)+parseInt(r.vo.typeQaNum)}"1"===e?r.vo.ispublish=1:"0"===e&&(r.vo.ispublish=0),r.vo.status=1,1===r.vo.edit?r.$http({method:"PUT",data:r.vo,url:"ksgl/paper/update"}).then((function(e){r.loading=!1,"success"===e.code&&(r.closeFuc(),r.$message.success(e.message),t.$bus.emit("refreshListData"))})):r.$http({method:"POST",data:r.vo,url:"ksgl/paper/insert"}).then((function(e){r.loading=!1,"success"===e.code&&(r.closeFuc(),r.$message.success(e.message),t.$bus.emit("refreshListData"))}))}}))},clickCascader:function(){this.$refs.cascader.click()},delChecked:function(e,t){var r=this;this.tableDataFilter.forEach((function(n){if(n.id===t.id)return r.tableDataFilter.splice(e,1),r.$message.success("删除成功!"),!1}));var n=this.tableData.findIndex((function(e,r){return e.id===t.id}));n>-1&&this.tableData.splice(n,1)},chooseDialog:function(e){"1"===e?(this.diaType="1",this.$refs.chooseTree.click()):"2"===e?(this.diaType="2",this.isTixing("random")?this.$refs.chooseSub.click():this.$message.error("请先填写题型数量,题型分值,分值需大于0!")):"3"===e&&(this.diaType="3",this.$refs.chooseSub.click())},clickChooseSub:function(e,t){var r=this,n=new Promise((function(t,n){"second"===e||void 0===e?r.vo.name?r.categoryValue?r.isTixing()?(r.activeName="second",t()):(r.$message.error("请填写题型分值,分值需大于0!"),n()):(r.$message.error("请选择试卷分类"),n()):(r.$message.error("请输入试卷名称"),n()):(r.activeName="first",t())}));return n},isTixing:function(e){var t=!1;return e?null!==this.vo.typeChoiceGredit&&null!==this.vo.typeCheckboxGredit&&null!==this.vo.typeGudgeGredit&&null!==this.vo.typeCompletionGredit&&null!==this.vo.typeQaGredit&&null!==this.vo.typeChoiceNum&&null!==this.vo.typeCheckboxNum&&null!==this.vo.typeGudgeNum&&null!==this.vo.typeCompletionNum&&null!==this.vo.typeQaNum&&(t=!0):this.vo.typeChoiceGredit&&this.vo.typeCheckboxGredit&&this.vo.typeGudgeGredit&&this.vo.typeCompletionGredit&&this.vo.typeQaGredit&&(t=!0),t},SortData:function(e){return function(t,r){var n=t[e],a=r[e];return n-a}}}},yl=ml,vl=(r(3813),c(yl,$s,el,!1,null,"55801308",null)),gl=vl.exports,_l=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{background:"#fff"}},[t("BlockFrame",{attrs:{header:{title:"我的学习",icon:e.appletData.icon,more:!1}}},[t("div",{staticClass:"contain"},[t("div",{staticClass:"row-box",staticStyle:{"margin-bottom":"9px"}},[t("div",{staticClass:"item",staticStyle:{background:"#EFF9F4","margin-right":"10px"},on:{click:function(t){return e.gotoPages("xyzx_wdkc")}}},[t("div",{staticClass:"centery"},[t("div",{staticClass:"icon-box",staticStyle:{background:"#D2F1E2"}},[t("svg",{staticClass:"svg-icon svg-icon-font",staticStyle:{width:"18px",height:"17px"},attrs:{"ria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-ksgl_index1"}})])])]),t("div",{staticClass:"center"},[t("span",{staticClass:"title2"},[e._v("学习课程")]),null!==e.tj1?t("span",{staticClass:"title1",staticStyle:{color:"#0EA04D"}},[e._v(e._s(null===e.tj2?0:e.tj2)+" 个")]):e._e()])]),t("div",{staticClass:"item",staticStyle:{background:"#FDF5EC"},on:{click:function(t){return e.gotoPages("ksglyiwancheng")}}},[t("div",{staticClass:"centery"},[t("div",{staticClass:"icon-box",staticStyle:{background:"#F5E5D3"}},[t("svg",{staticClass:"svg-icon svg-icon-fo5rent",staticStyle:{width:"18px",height:"17px"},attrs:{"ria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-ksgl_index2"}})])])]),t("div",{staticClass:"center"},[t("span",{staticClass:"title2"},[e._v("参加考试")]),null!==e.tj1?t("span",{staticClass:"title1",staticStyle:{color:"#EA7336"}},[e._v(e._s(null===e.tj1.examFinishNum?0:e.tj1.examFinishNum)+" 次")]):e._e()])])]),t("div",{staticClass:"row-box",staticStyle:{"margin-bottom":"9px"}},[t("div",{staticClass:"item",staticStyle:{background:"#EFF2F9","margin-right":"10px"},on:{click:function(t){return e.gotoPages("xyzx_wdxs")}}},[t("div",{staticClass:"centery"},[t("div",{staticClass:"icon-box",staticStyle:{background:"#DAE3F7"}},[t("svg",{staticClass:"svg-icon svg-icon-font",staticStyle:{width:"18px",height:"17px"},attrs:{"ria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-ksgl_index3"}})])])]),t("div",{staticClass:"center"},[t("span",{staticClass:"title2"},[e._v("学习时长")]),null!==e.tj1?t("span",{staticClass:"title1",staticStyle:{color:"#5094F2"}},[e._v(e._s(null===e.tj1.studyRecords?0:e.tj1.studyRecords))]):e._e()])]),t("div",{staticClass:"item",staticStyle:{background:"#F4EFF9"},on:{click:function(t){return e.gotoPages("xyzx_wdxf")}}},[t("div",{staticClass:"centery"},[t("div",{staticClass:"icon-box",staticStyle:{background:"#EAE0F4"}},[t("svg",{staticClass:"svg-icon svg-icon-font",staticStyle:{width:"18px",height:"17px"},attrs:{"ria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-ksgl_index4"}})])])]),t("div",{staticClass:"center"},[t("span",{staticClass:"title2"},[e._v("获得学分")]),null!==e.tj1?t("span",{staticClass:"title1",staticStyle:{color:"#AA83D1"}},[e._v(e._s(null===e.tj1.credits?0:e.tj1.credits)+" 分")]):e._e()])])]),t("div",{staticClass:"row-box"},e._l(e.listdata,(function(n){return t("div",{key:n.id,staticClass:"picture"},[t("div",{staticClass:"num"},[e._v(e._s(n.courseNum)+"人学习1")]),0===e.appletData.interfaceStatus||e.openInterface?t("img",{staticClass:"courseImg",attrs:{src:r(76),alt:""},on:{click:function(t){return e.goDetail(n.id)}}}):t("img",{staticClass:"courseImg",attrs:{src:e.base_api+"/ksgl/course/download?dataField=cover&nameField=coverUrl&id="+n.id,alt:""},on:{click:function(t){return e.goDetail(n.id)}}}),t("span",{staticClass:"name"},[e._v(e._s(n.name))])])})),0)])])],1)},bl=[];function wl(e){return wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wl(e)}function xl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */xl=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==wl(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(wl(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ll(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Ml(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ll(o,n,a,i,s,"next",e)}function s(e){Ll(o,n,a,i,s,"throw",e)}i(void 0)}))}}function kl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kl(Object(r),!0).forEach((function(t){Dl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Dl(e,t,r){return(t=Yl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yl(e){var t=Sl(e,"string");return"symbol"==wl(t)?t:t+""}function Sl(e,t){if("object"!=wl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Cl={props:{appletData:{type:Object,default:function(){return{}}}},data:function(){return{tj1:null,tj2:null,base_api:"",searchText:"",listdata:[],openInterface:window.openInterface}},computed:Tl({},ce(["routes","loginUser"])),watch:{},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.base_api="/apigw",this.init(),this.getData(),this.getnum()},beforeDestroy:function(){},mounted:function(){var e=this;this.$bus.on("searchListData",(function(t){e.searchText=t}))},methods:{init:function(){var e=this;return Ml(xl().mark((function t(){var r,n,a,o,i,s,l,c,u,d,p;return xl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.appletData.interfaceStatus&&!window.openInterface){t.next=11;break}return t.next=3,e.$getDefaultData(e,e.appletData.id);case 3:return r=t.sent,n=r.grmhWdxxdNumData,e.tj1=n,null===e.tj1.studyRecords&&(e.tj1.studyRecords=0),e.tj1.studyRecords<60?e.tj1.studyRecords=e.tj1.studyRecords+" 秒":(a=Math.floor(e.tj1.studyRecords/60),o=Math.floor(e.tj1.studyRecords%60),a<60?e.tj1.studyRecords=a+"分"+o+"秒":(i=Math.floor(a/60),s=Math.floor(a%60),e.tj1.studyRecords=i+"小时"+s+"分")),t.abrupt("return");case 11:return t.next=13,e.$app.querydata("/ksgl/vwPersonCourse/queryHomeStatistics");case 13:l=t.sent,"success"===l.code?(e.tj1=l.body,null===e.tj1.studyRecords&&(e.tj1.studyRecords=0),e.tj1.studyRecords<60?e.tj1.studyRecords=e.tj1.studyRecords+" 秒":(c=Math.floor(e.tj1.studyRecords/60),u=Math.floor(e.tj1.studyRecords%60),c<60?e.tj1.studyRecords=c+"分"+u+"秒":(d=Math.floor(c/60),p=Math.floor(c%60),e.tj1.studyRecords=d+"小时"+p+"分")),console.log(e.tj1,32131231)):e.$message.error(l.message);case 15:case"end":return t.stop()}}),t)})))()},getData:function(){var e=this;return Ml(xl().mark((function t(){var r,n,a,o,i;return xl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r={},r["name"]=e.searchText,n={pageNum:1,pageSize:2,orderBy:"lastStudyTime desc",orgCode:e.loginUser.orgCode,searchMap:r},a="",0!==e.appletData.interfaceStatus&&!window.openInterface){t.next=11;break}return t.next=7,e.$getDefaultData(e,e.appletData.id);case 7:return o=t.sent,i=o.grmhWdxxData,e.listdata=i,t.abrupt("return");case 11:return t.next=13,e.$app.listdata("/ksgl/vwPersonCourse/listdata?urlsearch=status:1;finishStatus:1,2;ispublish:1;personId:"+e.loginUser.personId,n);case 13:a=t.sent,"success"===a.code?e.listdata=a.body.pageInfo.list:e.$message.error(a.message);case 15:case"end":return t.stop()}}),t)})))()},getnum:function(){var e=this;return Ml(xl().mark((function t(){var r,n,a;return xl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r={},r["name"]=e.searchText,n={pageNum:100,pageSize:100,orderBy:"lastStudyTime desc",orgCode:e.loginUser.orgCode,searchMap:r},a="",t.next=6,e.$app.listdata("/ksgl/vwPersonCourse/listdata?urlsearch=status:1;finishStatus:1,2;ispublish:1;personId:"+e.loginUser.personId,n);case 6:a=t.sent,"success"===a.code?e.tj2=a.body.pageInfo.list.length:e.$message.error(a.message);case 8:case"end":return t.stop()}}),t)})))()},goDetail:function(e){0===this.appletData.interfaceStatus||window.openInterface?this.$bus.emit("openDefaultDialog",this.appletData.name):window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type=3&id="+e+"&logoTitle="+encodeURIComponent("学习考试/学员中心/我的课程"))},gotoPages:function(e){var t=e,r=this.getMenuCode(t);if(r&&r.path){var n;switch(r.meta.level){case 3:n=r.meta.activeMenu;break;case 4:n=r.meta.activeMenu+"/"+r.path;break;default:n=r.path}this.$router.push({path:n})}},getMenuCode:function(e){var t;function r(n){n.forEach((function(n){var a=n.meta&&n.meta.code?n.meta.code:"";if(a&&a.indexOf(".svg")>-1&&(a=n.meta.code.substring(0,a.indexOf(".svg"))),a===e)return t=n,!1;n.children&&r(n.children)}))}return r(this.routes),t},getMenuCode1:function(e){var t;function r(n){n.forEach((function(n){if(n.children&&r(n.children),!n.children&&n.meta&&n.meta.code===e)return t=n,!1}))}return r(this.routes),t}}},jl=Cl,El=(r(8696),c(jl,_l,bl,!1,null,"9fdba2be",null)),Ol=El.exports,Pl=function(){var e=this,t=e._self._c;return t("div",{ref:"todoElement",attrs:{id:"ksgl-body"}},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!1,code:"gwap.svg"}}},[t("div",{staticClass:"study-info"},[t("div",{staticClass:"learn-top"},[t("div",{staticClass:"learn-dv"},[t("span",{staticClass:"learn-num"},[e._v(e._s(e.vo.studyInfo.courseNum||0)+"个")]),t("span",{staticClass:"learn-name"},[e._v("学习课程")])]),t("div",{staticClass:"learn-dv"},[t("span",{staticClass:"learn-num"},[e._v(e._s(e.vo.studyInfo.examFinishNum||0)+"次")]),t("span",{staticClass:"learn-name"},[e._v("参加考试")])]),t("div",{staticClass:"learn-dv"},[t("span",{staticClass:"learn-num"},[e._v(e._s(e.formatStudyRecords)+"小时")]),t("span",{staticClass:"learn-name"},[e._v("学习时长")])]),t("div",{staticClass:"learn-dv"},[t("span",{staticClass:"learn-num"},[e._v(e._s(e.vo.studyInfo.credits||0)+"分")]),t("span",{staticClass:"learn-name"},[e._v("获得学分")])])]),t("div",{staticClass:"recentyStudy"},[t("div",{staticClass:"common-header"},[t("div",{staticClass:"header-name"},[e._v("最近学习")])]),"{}"!=JSON.stringify(e.vo.recentyStudy)?t("div",{staticClass:"recenty-main",staticStyle:{height:"130px"}},[t("div",{staticClass:"left"},[t("img",{attrs:{src:e.base_api+e.vo.recentyStudy.studyImgUrl,alt:""}})]),t("div",{staticClass:"right"},[t("div",{staticClass:"title"},[e._v(e._s(e.vo.recentyStudy.name))]),t("div",{staticClass:"prosses"},[t("el-progress",{attrs:{percentage:e.vo.recentyStudy.bfb,color:"#67c23a"}})],1),t("div",{staticClass:"tolearn"},[t("span",{staticClass:"jinru",on:{click:function(t){return e.toStudyClick()}}},[e._v("进入学习")])])])]):t("div",{staticClass:"recenty-main",staticStyle:{"flex-direction":"column"}},[t("p",[e._v("您还没有学习课程,给您推荐一下课程!")]),t("div",{staticClass:"recommend"},[t("div",{staticClass:"left recommend_left"},[t("img",{attrs:{src:r(76),alt:""}}),t("div",{staticClass:"font"},[e._v("推荐")])]),t("div",{staticClass:"right"},[t("div",{staticClass:"title"},[e._v("品牌进化·组织变革 GIIS2019国际餐饮创新峰会专题专题专题专专GIIS2019国际餐饮创新峰会专题专题专题专专")]),t("div",{staticClass:"prosses"},[e._v(" 999+人学习 ")]),t("div",{staticClass:"tolearn"},[t("span",{staticStyle:{padding:"0","background-color":"unset"}},[e._v("进入学习>> ")])])])])])]),t("div",{staticClass:"recentyText"},[t("div",{staticClass:"common-header"},[t("div",{staticClass:"header-name"},[e._v("最近考试")])]),e.vwKsglExamList.length?t("div",{staticClass:"list"},e._l(e.vwKsglExamList,(function(r,n){return t("div",{key:n,on:{click:function(t){return e.gotoDetail(r)}}},[t("div",{staticClass:"dv1"},[t("span",{staticStyle:{color:"#012964","font-weight":"600"}},[e._v("["+e._s(r.typeName)+"]")]),t("span",{staticStyle:{color:"#333",overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical"}},[e._v(e._s(r.name))])]),t("div",{staticClass:"dv2"},[t("span",{staticStyle:{color:"#999999"}},[e._v("截止日期 "+e._s(e._f("timeformat")(r.endTime)))]),t("span",[e._v(e._s(r.status))])])])})),0):t("div",{staticClass:"list-empty",style:{height:"{}"==JSON.stringify(e.vo.recentyStudy)?"180px":"220px"}},[t("p",[e._v("您最近没有需参加的考试!")])]),t("div",{staticClass:"btn"},[t("div",{staticClass:"tolearn",on:{click:e.tolearnClick}},[e._v("进入学员中心")])])])])])],1)},Al=[];function Nl(e){return Nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nl(e)}function Hl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Hl=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Nl(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Nl(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Il(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Fl(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Il(o,n,a,i,s,"next",e)}function s(e){Il(o,n,a,i,s,"throw",e)}i(void 0)}))}}function zl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(r),!0).forEach((function(t){Gl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gl(e,t,r){return(t=Rl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rl(e){var t=Wl(e,"string");return"symbol"==Nl(t)?t:t+""}function Wl(e,t){if("object"!=Nl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Nl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Vl=r(5093),Ul={name:"Xyxx",filters:{typeformat:function(e){var t="";switch(Number(e)){case 1:t="[正式考]";break;case 2:t="[模拟考]";break}return t},statusformat:function(e){var t="";switch(Number(e)){case 0:t="待考试";break;case 1:t="未批阅";break;case 2:t="已批阅";break;case 3:t="未完成";break}return t},timeformat:function(e){if(e)return e.replace("年","-").replace("月","-").replace("日","")}},props:{title:{type:String,default:"待办待阅"},appletData:{type:Object,default:function(){return{}}}},data:function(){return{loginUser:this.$store.getters.loginUser,vo:{},isEmpty:!1,base_api:"",vwKsglExamList:[]}},computed:Bl(Bl({},ce(["routes"])),{},{formatStudyRecords:function(){if(this.vo.studyInfo&&this.vo.studyInfo.studyRecords){var e=this.vo.studyInfo.studyRecords,t=parseInt(e/60/60%24);parseInt(e/60%60),parseInt(e%60);return t}return 0}}),created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.base_api="/apigw",this.getStudyInfo()},beforeDestroy:function(){},mounted:function(){},updated:function(){var e=$("#ksgl-body").height()-$(".learn-top").height()-$(".recentyStudy").height();$(".recentyText").height(e)},methods:{gotoDetail:function(e){if(0===this.appletData.interfaceStatus||window.openInterface)this.$bus.emit("openDefaultDialog",this.appletData.name);else{var t=1===e.type?"学习考试/正式考试":"学习考试/模拟考试";window.open("/#/commonHeader?workform=@/wapp/ksgl/grzx/wdks/KsglGrzxWdksExamDetail&type="+e.type+"&id="+e.examId+"&logoTitle="+t)}},toStudyClick:function(){0===this.appletData.interfaceStatus||window.openInterface?this.$bus.emit("openDefaultDialog",this.appletData.name):window.open("#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type=学习考试/课程中心&id=".concat(this.vo.recentyStudy.courseId,"&logoTitle=学习考试/讲师中心/我的课程"))},getStudyInfo:function(){var e=this;return Fl(Hl().mark((function t(){var r;return Hl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.appletData.interfaceStatus&&!window.openInterface){t.next=11;break}return t.next=3,e.$getDefaultData(e,e.appletData.id);case 3:if(r=t.sent,"学习信息"!==e.appletData.name){t.next=11;break}return e.vo=r,e.vwKsglExamList=r.recentyExam,e.vwKsglExamList.length&&e.vwKsglExamList.length>4&&(e.vwKsglExamList=e.vwKsglExamList.slice(0,4)),e.isEmpty=!1,e.$nextTick((function(){document.querySelector(".recentyText").style.height="300px"})),t.abrupt("return");case 11:e.$http({contentType:"application/x-www-form-urlencoded",url:"/ksgl/findMyStudyInfo",method:"get"}).then((function(t){"success"===t.code?(t.body.vo.recentyExam.forEach((function(e){e.time=Vl(e.endTime,"YYYY-MM-DD HH:mm:ss").valueOf()})),t.body.vo.recentyExam=t.body.vo.recentyExam.sort((function(e,t){return t.time-e.time})),t.body.vo.recentyExam=Array.from(t.body.vo.recentyExam),e.vo=t.body.vo,e.vwKsglExamList=t.body.vo.recentyExam,e.vwKsglExamList.length&&e.vwKsglExamList.length>4&&(e.vwKsglExamList=e.vwKsglExamList.slice(0,4)),console.log(t.body.vo,"学习信息数据"),e.isEmpty=!1):e.isEmpty=!0}));case 12:case"end":return t.stop()}}),t)})))()},tolearnClick:function(){var e="xyzx_wdkc",t=this.getMenuCode(e);if(t&&t.path){var r;switch(t.meta.level){case 3:r=t.meta.activeMenu;break;case 4:r=t.meta.activeMenu+"/"+t.path;break;default:r=t.path}this.$router.push({path:r})}},getMenuCode:function(e){var t;function r(n){n.forEach((function(n){if(n.children&&r(n.children),!n.children&&n.meta&&n.meta.code===e)return t=n,!1}))}return r(this.routes),t}}},ql=Ul,Xl=(r(3234),c(ql,Pl,Al,!1,null,"25fdd67a",null)),Kl=Xl.exports,Jl=function(){var e=this,t=e._self._c;return t("div",{ref:"todoElement",attrs:{id:"todo-body"}},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!1,code:"gwap.svg"}}},[t("div",{staticClass:"study-info"},[t("div",{staticClass:"info-top"},[t("div",{staticClass:"left"},[t("img",{attrs:{src:e.base_api+e.vo.personImg,alt:""}})]),t("div",{staticClass:"right"},[t("div",{staticClass:"name"},[t("span",[e._v(e._s(e.vo.personName))]),t("span",[e._v("学员")])]),t("div",{staticClass:"say"},[e._v("今天是您开启学习的 "),t("span",{staticStyle:{color:"#2792FB"}},[e._v(e._s(e.vo.studyDay))]),e._v(" 天,坚持就是胜利!")])])])])])],1)},Ql=[];function Zl(e){return Zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zl(e)}function $l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$l=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Zl(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Zl(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ec(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function tc(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ec(o,n,a,i,s,"next",e)}function s(e){ec(o,n,a,i,s,"throw",e)}i(void 0)}))}}var rc={name:"Xyxx",props:{title:{type:String,default:"待办待阅"},appletData:{type:Object,default:function(){return{}}}},data:function(){return{vo:{},isEmpty:!1,base_api:""}},computed:{curUser:function(){return this.$store.getters.loginUser}},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.base_api="/apigw",this.getStudyInfo()},beforeDestroy:function(){},mounted:function(){},methods:{getStudyInfo:function(){var e=this;return tc($l().mark((function t(){var r;return $l().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.appletData.interfaceStatus&&!window.openInterface){t.next=8;break}return t.next=3,e.$getDefaultData(e,e.appletData.id);case 3:if(r=t.sent,"学员信息"!==e.appletData.name){t.next=8;break}return e.vo=r,e.isEmpty=!1,t.abrupt("return");case 8:e.$http({contentType:"application/x-www-form-urlencoded",url:"/ksgl/findMyStudyInfo",method:"get"}).then((function(t){"success"===t.code?(e.vo=t.body.vo,e.isEmpty=!1,console.log(e.vo,"学员信息数据")):e.isEmpty=!0}));case 9:case"end":return t.stop()}}),t)})))()}}},nc=rc,ac=(r(8926),c(nc,Jl,Ql,!1,null,"7de2fd3c",null)),oc=ac.exports,ic=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[e.showTable1?t("data-table",{attrs:{"module-info":e.moduleInfo,"tb-columns":e.tbColumns,"on-list-data-before-load":e.onListDataBeforeLoad,"on-list-data-loaded":e.onListDataLoaded,"on-cell-click":e.OnCellClick,"on-delete-successed":e.onDeleteSuccessed}}):e._e()],1)},sc=[],lc={components:{},props:{},data:function(){return{showTable1:!0}},computed:{},watch:{$route:function(){this.$route.query.id?this.changeRouter(1):this.changeRouter(2)}},created:function(){},beforeDestroy:function(){},mounted:function(){this.$route.query.id?this.changeRouter(1):this.changeRouter(2)},methods:{OnCellClick:function(e,t,r,n){console.log(e),this.$router.push({path:this.$route.path,query:{id:e.personId}}),this.changeRouter(1)},changeRouter:function(e){var t=this;1===e?(this.showTable1=!1,this.moduleInfo={listDataUrl:"ksgl/configCredit/listdata?urlsearch=personId:".concat(this.$route.query.id)},this.tbColumns=[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"reason",title:"获得原由",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"credit",title:"获得学分",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"createTime",title:"获得时间",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0}],this.formTitle="学分明细",t.$nextTick((function(){t.showTable1=!0}))):(this.showTable1=!1,this.moduleInfo={listDataUrl:"/ksgl/configCredit/creditStatistics"},this.tbColumns=[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"personName",title:"姓名",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"deptName",title:"部门",width:"200px",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"totalCredits",title:"总学分",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"examCredit",title:"考试学分",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"courseCredit",title:"学习学分",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0}],this.formTitle="学分统计",this.$nextTick((function(){t.showTable1=!0})))},onListDataBeforeLoad:function(e,t){t.urlsearch="orgCode:"+e.loginUser.orgCode},onListDataLoaded:function(e,t){t.list.map((function(e){if(e.deptName){var t=e.deptName.indexOf("-");e.deptName=e.deptName.substring(t+1)}})),console.log("vwCoursePersonStatistics listdata loaded")}}},cc=lc,uc=c(cc,ic,sc,!1,null,"290c2e76",null),dc=uc.exports,pc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[e.showTable1?t("data-table",{attrs:{"module-info":e.moduleInfo,"tb-columns":e.tbColumns,"on-list-data-before-load":e.onListDataBeforeLoad,"on-list-data-loaded":e.onListDataLoaded,"on-cell-click":e.OnCellClick,"on-delete-successed":e.onDeleteSuccessed}}):e._e()],1)},hc=[],fc={components:{},props:{},data:function(){return{showTable1:!0}},computed:{},watch:{$route:function(){this.$route.query.id?this.changeRouter(1):this.changeRouter(2)}},created:function(){},beforeDestroy:function(){},mounted:function(){this.$route.query.id?this.changeRouter(1):this.changeRouter(2)},methods:{onListDataBeforeLoad:function(e,t){t.urlsearch="orgCode:"+e.loginUser.orgCode},onListDataLoaded:function(e,t){t.list.map((function(e){if(2===e.shoukeType?e.shoukeType="线下":e.shoukeType="线上",e.finishCount=e.finishCount+"/"+e.courseNum,e.deptName){var t=e.deptName.indexOf("-");e.deptName=e.deptName.substring(t+1)}})),console.log("vwCoursePersonStatistics listdata loaded")},OnCellClick:function(e,t,r,n){this.$router.push({path:this.$route.path,query:{id:e.personId}}),this.changeRouter(1)},changeRouter:function(e){var t=this;1===e?(this.showTable1=!1,this.moduleInfo={addNewUrl:"ksgl/vwCoursePersonStatistics/addNew",insertUrl:"ksgl/vwCoursePersonStatistics/insert",updateUrl:"ksgl/vwCoursePersonStatistics/update",listDataUrl:"ksgl/vwCoursePersonStatistics/listdata?urlsearch=personId:".concat(this.$route.query.id),getByIdUrl:"ksgl/vwCoursePersonStatistics/getById"},this.tbColumns=[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"name",title:"课程名称",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"teacherName",title:"讲师",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"shoukeType",title:"授课方式",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"finishCount",title:"学习进度",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"finishRate",title:"完成率",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"credit",title:"获得学分",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"totalTime",title:"学习时长/小时",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0}],this.formTitle="学习明细",t.$nextTick((function(){t.showTable1=!0}))):(this.showTable1=!1,this.moduleInfo={addNewUrl:"ksgl/vwCourseStatistics/addNew",insertUrl:"ksgl/vwCourseStatistics/insert",moduleCode:"vwCourseStatistics",listDataUrl:"/ksgl/configCredit/learningStatistics",getByIdUrl:"ksgl/vwCourseStatistics/getById"},this.tbColumns=[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"personName",title:"姓名",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"deptName",title:"部门",width:"200px",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"total",title:"全部课程",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"fraction",title:"完成课程",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"percentage",title:"完成率",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"credit",title:"获得学分",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"totalTime",title:"学习总时长",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0}],this.formTitle="学习统计",this.$nextTick((function(){t.showTable1=!0})))}}},mc=fc,yc=c(mc,pc,hc,!1,null,"56e92352",null),vc=yc.exports,gc=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"btn-froup"},[t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.openSpecification}},[e._v("输入规范")]),t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.openSample}},[e._v("输入范例")])],1),t("div",{staticClass:"content"},[t("div",{staticClass:"write-content",staticStyle:{display:"flex","flex-direction":"column"}},[t("div",{staticClass:"top-info",staticStyle:{height:"unset","min-height":"40px"}},[t("span",{staticClass:"title"},[e._v("输入区")]),t("el-radio-group",{model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},e._l(e.typeList,(function(r,n){return t("el-radio",{key:n,attrs:{label:r.lable}},[e._v(e._s(r.name))])})),1),t("i",{staticClass:"el-icon-question question-icon",on:{click:e.showQuestion}}),t("el-button",{staticStyle:{float:"right","margin-top":"5px"},attrs:{size:"mini",type:"text"},on:{click:e.clearHandler}},[e._v("清空")])],1),t("el-input",{staticClass:"textarea",attrs:{type:"textarea",resize:"none",autofocus:!0,spellcheck:"false"},model:{value:e.writeContent,callback:function(t){e.writeContent=t},expression:"writeContent"}})],1),t("div",{staticClass:"rule-content"},[t("div",{staticClass:"top-info"},[t("span",{staticClass:"title"},[e._v("识别区")]),e.errorNum>0?t("span",{staticStyle:{"font-size":"var(--portalFontSize13)"}},[e._v(" 共 "+e._s(e.errorNum)+" 处错误,请参照输入范例修改 ")]):e._e(),e.errorNum>0?t("el-button",{staticStyle:{float:"right","margin-top":"5px"},attrs:{size:"mini",type:"text"},on:{click:e.nextError}},[e._v("下一处")]):e._e()],1),t("div",{ref:"questionList",staticClass:"question-show"},e._l(e.questionList,(function(r,n){return t("div",{key:n,staticClass:"rule-info"},[1===r.type||2===r.type?t("XuanZe",{attrs:{list:r}}):e._e(),3===r.type||4===r.type||5===r.type?t("OtherType",{attrs:{list:r}}):e._e()],1)})),0)]),t("div",{staticStyle:{clear:"both"}})]),t("Specification"),t("Sample"),t("Question"),t("div",{staticClass:"btn-bottom"},[t("el-button",{attrs:{icon:"el-icon-close",plain:""},on:{click:e.closeHandler}},[e._v("关 闭")]),t("el-button",{attrs:{type:"primary",disabled:e.loading,icon:"el-icon-check"},on:{click:e.submitHandler}},[e._v("提 交")])],1)],1)},_c=[],bc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"question-list",class:[e.list.error?"error":""]},[t("div",{staticClass:"tm"},[""!==e.list.th?t("span",{staticClass:"th"},[e._v(e._s(e.list.th)+".")]):e._e(),t("span",{staticClass:"tm-type"},[e._v("["+e._s(e.list.typeName)+"]")]),t("span",{},[e._v(e._s(e.list.tm))])]),e.list.optionList.length>0?t("div",{staticClass:"select-list"},e._l(e.list.optionList,(function(r,n){return t("div",{key:n},[e._v(e._s(r.optionNo)+"、"+e._s(r.optionContent))])})),0):e._e(),t("div",{staticClass:"dan"},[e._v(" 答案:"+e._s(e.list.dan)+" ")]),""!==e.list.jx?t("div",{staticClass:"jx"},[e._v(" 解析:"+e._s(e.list.jx)+" ")]):e._e(),e.list.error?t("div",{staticClass:"error-info"},[e._v(" 错误原因:"+e._s(e.list.errorMsg[0])+" ")]):e._e()])},wc=[],xc={components:{},props:{list:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{}},Lc=xc,Mc=(r(9458),c(Lc,bc,wc,!1,null,"fa2f1fca",null)),kc=Mc.exports,Tc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"question-list",class:[e.list.error?"error":""]},[t("div",{staticClass:"tm"},[""!==e.list.th?t("span",{staticClass:"th"},[e._v(e._s(e.list.th)+".")]):e._e(),t("span",{staticClass:"tm-type"},[e._v("["+e._s(e.list.typeName)+"]")]),t("span",{},[e._v(e._s(e.list.tm))])]),t("div",{staticClass:"dan"},[e._v(" 答案:"+e._s(e.list.dan)+" ")]),""!==e.list.jx?t("div",{staticClass:"jx"},[e._v(" 解析:"+e._s(e.list.jx)+" ")]):e._e(),e.list.error?t("div",{staticClass:"error-info"},[e._v(" 错误原因:"+e._s(e.list.errorMsg[0])+" ")]):e._e()])},Dc=[],Yc={components:{},props:{list:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{}},Sc=Yc,Cc=(r(1041),c(Sc,Tc,Dc,!1,null,"e1ba9afe",null)),jc=Cc.exports,Ec=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.dialogFormVisible,"close-on-click-modal":!1,top:"10vh",width:"800px",title:"输入规范"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[t("div",{staticClass:"content"},[e._v(" 1、所有题型目标号支持1.或1、或(1)三种格式; "),t("br"),e._v(" 2、可在题目标号后用[单选题]、[多选题]、[判断题]、[填空题]、[问答题]来标注不同的题型,如无标注会智能识别;"),t("br"),e._v(" 3、所有题型必须含有“答案:”或“[答案]”字段;"),t("br"),e._v(" 4、所有题型“解析:”或“[解析]”字段必填,没有可不填;"),t("br"),e._v(" 5、所有题型中包含图片,则将图片插入到需要的位置即可;"),t("br"),e._v(" 6、不支持直接识别数学公式,可用图片的形式录入数学公式;"),t("br"),e._v(" 7、单选题/多选题至少要有两个/三个选项,最多支持A,B,C,D,E,F,G七个选项,大小写均支持,且必须按照顺序使用;"),t("br"),e._v(" 8、选择题A-G这些选项号与内容之间要用、或 . 分开,或用(A)表示选项;"),t("br"),e._v(" 9、选择题答案中请勿加多余的符号或文字;"),t("br"),e._v(" 10、当有多道题目的时候,题目与题目之间要使用“*”分隔。"),t("br")]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("知道了")])],1)])],1)},Oc=[],Pc={components:{},data:function(){return{dialogFormVisible:!1}},computed:{},watch:{},created:function(){this.$bus.on("openSpecification",this.openSpecification)},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){this.$bus.off("openSpecification",this.openSpecification)},destroyed:function(){},activated:function(){},methods:{openSpecification:function(){this.dialogFormVisible=!0}}},Ac=Pc,Nc=(r(6495),c(Ac,Ec,Oc,!1,null,"fcfc8474",null)),Hc=Nc.exports,Ic=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.SampledialogFormVisible,"close-on-click-modal":!1,top:"10vh",width:"800px",title:"输入范例"},on:{"update:visible":function(t){e.SampledialogFormVisible=t}}},[t("div",{staticClass:"content"},[t("el-scrollbar",[e._v(" 1.[单选题]以下选项不是中国古代四大美女的是"),t("br"),e._v(" A、杨玉环"),t("br"),e._v(" B、西施"),t("br"),e._v(" C、貂蝉"),t("br"),e._v(" D、杨幂"),t("br"),e._v(" 答案:D"),t("br"),e._v(" 解析:中国古代四大美女,即西施、王昭君、貂蝉、杨玉环 。四大美女享有“沉鱼落雁之容,闭月羞花之貌”的美誉。“沉鱼、落雁、闭月、羞花”是由精彩故事组成的历史典故。* "),t("br"),e._v(" 2.[多选题]四大发明是中国古代创新的智慧成果和科学技术,包括"),t("br"),e._v(" A、造纸术"),t("br"),e._v(" B、指南针"),t("br"),e._v(" C、火药"),t("br"),e._v(" D、印刷术"),t("br"),e._v(" E、万有引力"),t("br"),e._v(" 答案:ABCD"),t("br"),e._v(" 解析:四大发明是中国古代创新的智慧成果和科学技术,包括造纸术、指南针、火药、印刷术。*"),t("br"),e._v(" 3.[判断题]国际象棋起源于英国吗?"),t("br"),e._v(" 答案:错误"),t("br"),e._v(" 解析:根据历史传说记载,国际象棋起源于古印度,至今见诸于文献最早的记录是在萨珊王朝时期用波斯文写的。*"),t("br"),e._v(" 4.[填空题]我国古代四大名著是___、___、___、___。"),t("br"),e._v(" 答案:红楼梦|水浒传|三国演义|西游记"),t("br"),e._v(" 解析:我国古代四大名著包括:红楼梦、水浒传、三国演义、西游记。*"),t("br"),e._v(" 5.[问答题]论语记录的是什么_______"),t("br"),e._v(" 答案:论语是记录孔子及其弟子言行的一部语录体,叙事体的著作。"),t("br"),e._v(" 解析:论语是记录孔子及其弟子言行的一部语录体,叙事体的著作。"),t("br")])],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.SampledialogFormVisible=!1}}},[e._v("知道了")])],1)])],1)},Fc=[],zc={components:{},data:function(){return{SampledialogFormVisible:!1}},computed:{},watch:{},created:function(){this.$bus.on("openSampleHadler",this.openSampledialogFormVisible)},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){this.$bus.off("openSampleHadler",this.openSampledialogFormVisible)},destroyed:function(){},activated:function(){},methods:{openSampledialogFormVisible:function(){this.SampledialogFormVisible=!0}}},Bc=zc,Gc=(r(4372),c(Bc,Ic,Fc,!1,null,"148aaab5",null)),Rc=Gc.exports,Wc=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.questiondialogFormVisible,"close-on-click-modal":!1,top:"10vh",width:"800px",title:"按题型录入说明"},on:{"update:visible":function(t){e.questiondialogFormVisible=t}}},[t("div",{staticClass:"content"},[e._v(" 1、当选择全部题型时,可同时录入单选题、多选题、判断题、填空题、问答题,试题包含四部分:"),t("br"),e._v(" a、题型 :[单选题]、[多选题]、[判断题]、[填空题]、[问答题],用半角中括号标注题型,如:[填空题];"),t("br"),e._v(" b、题目:题目中如果有哪填写或表示选择答案的地方,请用下划线表示,可多个,如:_________;"),t("br"),e._v(" c、选项:多个选项,请一个一行且第一个选项必须为A;"),t("br"),e._v(" d、答案:用[答案]标注,多个答案用逗号分开,如:A,B,C 或 李白,太白,青莲居士"),t("br"),e._v(" e、解析:用[解析]标注,如:李白,唐代诗人,字太白,号青莲居士,被后人称为诗仙。"),t("br"),e._v(" 2、当选择非全部题型时,只能录入选中类型的同一类型试题不用标注题型,其他请按上面b、c、d、e、规范执行;"),t("br"),e._v(" 3、试题标号不做要求,可不填;"),t("br"),e._v(" 4、试题题目、选项、答案不支持图片和公式。"),t("br")]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.questiondialogFormVisible=!1}}},[e._v("知道了")])],1)])],1)},Vc=[],Uc={components:{},data:function(){return{questiondialogFormVisible:!1}},computed:{},watch:{},created:function(){this.$bus.on("showQuestion",this.showQuestion)},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){this.$bus.off("showQuestion",this.showQuestion)},destroyed:function(){},activated:function(){},methods:{showQuestion:function(){this.questiondialogFormVisible=!0}}},qc=Uc,Xc=(r(155),c(qc,Wc,Vc,!1,null,"bf4eb1aa",null)),Kc=Xc.exports;function Jc(e){return Jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jc(e)}function Qc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qc=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Jc(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Jc(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Zc(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function $c(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Zc(o,n,a,i,s,"next",e)}function s(e){Zc(o,n,a,i,s,"throw",e)}i(void 0)}))}}var eu={components:{XuanZe:kc,OtherType:jc,Specification:Hc,Sample:Rc,Question:Kc},data:function(){return{typeList:[{name:"全部题型",lable:0},{name:"单选题",lable:1},{name:"多选题",lable:2},{name:"判断题",lable:3},{name:"填空题",lable:4},{name:"问答题",lable:5}],api:"/apigw",writeContent:"",type:0,resultContent:"",questionList:[],errorNum:0,errorIndex:0,loginUser:this.$store.getters.loginUser,loading:!1}},computed:{},watch:{writeContent:function(e){this.resultContent=e.replace(/<[^<>]+>/g,"").replace(/ /gi,"").replace(/\s*/g,""),this.cutStringHandler(this.resultContent)},type:function(){this.cutStringHandler(this.resultContent)}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{cutStringHandler:function(e){var t=e.split("*").filter((function(e){return""!==e}));t.forEach((function(e,r){t[r]+="*"})),this.conduct(t)},conduct:function(e){var t=this,r=[];e.forEach((function(e){var n={},a="",o=e.match(/(([0-9]{1,}(\.|、))|((\(|()[0-9]{1,}(\)|))))(\S*)/);null!==o&&(a=o[1].replace(/[^0-9]/gi,"")),t.$set(n,"th",a);var i="",s="";if(0===t.type){var l=e.match(/\[(\S*)题\]/);if(null!==l){s=l[0].replace(/\[/gi,"").replace(/\]/gi,"");var c=t.typeList.filter((function(e){return s===e.name}));c.length>0?i=c[0].lable:(i=5,void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["请标注正确的题型"])):(n.error=!0,n.errorMsg.push("请标注正确的题型")))}else i=5,void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["请标注题型"])):(n.error=!0,n.errorMsg.push("请标注题型"))}else i=t.type,t.typeList.forEach((function(e){e.lable===i&&(s=e.name)}));t.$set(n,"type",i),t.$set(n,"typeName",s);var u="",d=e.match(/(答案|\[答案\])(\S*)/)||[];if(d.length>0){var p=d[0].match(/解析/);if(p){u=d[0].match(/((答案)|(\[答案\]))(\S*)(解析|\[解析\])/)[4].replace(/:|:|\[|\]/gi,"");var h=e.match(/(解析|\[解析\])(\S*)\*/)[2].replace(/:|:/gi,"");""===h&&(void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["解析不能为空"])):(n.error=!0,n.errorMsg.push("解析不能为空"))),t.$set(n,"jx",h)}else void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["请输入解析"])):(n.error=!0,n.errorMsg.push("请输入解析")),u=d[0].match(/((答案)|(\[答案\]))(\S*)\*/)[4].replace(/:|:/gi,""),t.$set(n,"jx","");""===u?void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["答案不能为空!"])):(n.error=!0,n.errorMsg.push("答案不能为空!")):3===i&&"正确"!==u&&"错误"!==u&&(void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["判断题答案只能为正确或者错误"])):(n.error=!0,n.errorMsg.push("判断题答案只能为正确或者错误"))),t.$set(n,"dan",u)}else void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["请填写答案"])):(n.error=!0,n.errorMsg.push("请填写答案"));1!==i&&2!==i||(n=t.XuanZeHandler(i,n,e)),3!==i&&5!==i&&4!==i||(n=t.PanDuanHandler(i,n,e)),r.push(n)})),this.questionList=r,this.getErrorNum(r)},PanDuanHandler:function(e,t,r){var n=r.match(/(\S*)(答案|\[答案\])(:|:)/)||[],a="";if(n.length>0&&(a=n[1].replace(/(\S*)题\]/,""),this.$set(t,"tm",a),this.$set(t,"content",a),""===a&&(void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["题目不能为空"])):(t.error=!0,t.errorMsg.push("题目不能为空"))),4===e)){var o=a.match(/_(\S*)/);if(null===o)void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["填空题必须包含下划线_____"])):(t.error=!0,t.errorMsg.push("填空题必须包含下划线_____"));else{var i=o[0].replace(/\,|,|、|\./g,"#").split("#").filter((function(e){return""!==e})),s=t.dan.split("|");s.length!==i.length&&(void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["填空数量与答案不符"])):(t.error=!0,t.errorMsg.push("填空数量与答案不符")))}}if(3===e){var l=[{istrue:0,optionContent:"",optionNo:"正确"},{istrue:0,optionContent:"",optionNo:"错误"}];this.$set(t,"optionList",l)}return t},XuanZeHandler:function(e,t,r){var n=r.match(/(\S*)\A[、|\,|\|\.|,|\:|:|.]/)||[],a="";if(n.length>0){a=n[1].replace(/(\S*)题\]/,""),this.$set(t,"tm",a),this.$set(t,"content",a),""===a&&(void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["题目不能为空"])):(t.error=!0,t.errorMsg.push("题目不能为空")));var o=r.match(/\A[、|\,|\|\.|,|\:|:|.](\S*)答案|\[答案\]/g)?r.match(/\A[、|\,|\|\.|,|\:|:|.](\S*)答案|\[答案\]/g)[0].replace(/答案|\[答案\]|\[|\]/gi,""):"",i=o.replace(/[A-Z][、|\,|\|\.|,|\:|:|.]/g,(function(e){return"|#|"+e})).split("|#|").filter((function(e){return""!==e})),s=[];if(i.length>0){i.forEach((function(e){var t={istrue:0,optionContent:"",optionNo:""},r=e.match(/[A-Z]([、|\,|\|\.|,|\:|:|.])(\S*)/);t.optionNo=e.replace(r[1],"").replace(r[2],""),t.optionContent=r[2],s.push(t)}));var l=t.dan.split("");if(1===e)if(l.length>1)void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["单选题答案只能有一个"])):(t.error=!0,t.errorMsg.push("单选题答案只能有一个"));else{var c=s.filter((function(e){return e.optionNo===l[0]}));0===c.length&&(void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["答案"+(void 0===l[0]?"":l[0])+"不存在"])):(t.error=!0,t.errorMsg.push("答案"+(void 0===l[0]?"":l[0])+"不存在")))}else if(2===e)if(l.length>s.length)void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["多选题答案数量不能超过选项数量"])):(t.error=!0,t.errorMsg.push("多选题答案数量不能超过选项数量"));else{var u=!0,d=[];l.forEach((function(e){var t=s.filter((function(t){return e===t.optionNo}));0===t.length&&(u=!1,d.push(e))})),u||(void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["答案"+d.join(",")+"不存在"])):(t.error=!0,t.errorMsg.push("答案"+d.join(",")+"不存在")))}}else void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["请填写答案"])):(t.error=!0,t.errorMsg.push("请填写答案"));this.$set(t,"optionList",s)}else this.$set(t,"optionList",[]),void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["选择题没有A选项"])):(t.error=!0,t.errorMsg.push("选择题没有A选项"));return t},getErrorNum:function(e){var t=0;e.forEach((function(e){e.error&&t++})),this.errorNum=t},clearHandler:function(){this.writeContent=""},openSpecification:function(){this.$bus.emit("openSpecification")},openSample:function(){this.$bus.emit("openSampleHadler")},showQuestion:function(){this.$bus.emit("showQuestion")},nextError:function(){var e=document.querySelectorAll(".error");e.forEach((function(e){e.className="question-list error"})),this.errorIndex>=e.length&&(this.errorIndex=0),e[this.errorIndex].className="question-list error active",this.$refs.questionList.scrollTop=e[this.errorIndex].offsetTop-this.$refs.questionList.offsetTop-10,this.errorIndex++},closeHandler:function(){this.$vnode.context.showAdd=!1,this.$route.query.label="",this.$router.go(-1)},submitHandler:function(){var e=this;return $c(Qc().mark((function t(){var r,n;return Qc().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.errorNum>0)){t.next=2;break}return t.abrupt("return",e.$alert("当前识别区存在未解决的错误","操作提示",{confirmButtonText:"确定"}));case 2:if(!(e.questionList.length<1)){t.next=4;break}return t.abrupt("return",e.$alert("识别区无内容,请添加","操作提示",{confirmButtonText:"确定"}));case 4:return e.loading=!0,r=e.mergeData(e.questionList),t.next=8,e.$app.insert("/ksgl/subjectManage/insertList",r);case 8:n=t.sent,"success"===n.code?(e.$message({message:"保存成功",type:"success"}),e.closeHandler(),e.loading=!1,e.$route.query.label=""):(e.$message.error(n.message),e.loading=!1);case 10:case"end":return t.stop()}}),t)})))()},mergeData:function(e){var t=this,r=[];return e.forEach((function(e){if(2===e.type||1===e.type){var n=e.dan.split("");n.forEach((function(t){e.optionList.forEach((function(e){e.optionNo===t&&(e.istrue=1)}))}))}3===e.type&&e.optionList.forEach((function(t){t.optionNo===e.dan&&(t.istrue=1)})),4===e.type&&(e.dan=e.dan.replace(/\|/g,"|#|")),2===e.type&&(e.dan=e.dan.split("").join(","));var a={answerExplain:e.jx,bankId:t.$route.query.taskId,content:e.content,name:e.tm.substring(0,10),optionList:e.optionList,orgCode:t.loginUser.orgCode,orgName:t.loginUser.orgName,trueOption:e.dan,type:e.type,status:1};r.push(a)})),r}}},tu=eu,ru=(r(7202),c(tu,gc,_c,!1,null,"8637aaea",null)),nu=ru.exports,au=function(){var e=this,t=e._self._c;return t("div",[t("a",{staticClass:"el-link el-link--default is-underline",staticStyle:{display:"inline-block"},attrs:{title:"题目管理"},on:{click:function(t){return e.ToManage(e.row,e.column,e.value,e.index)}}},[e._m(0)])])},ou=[function(){var e=this,t=e._self._c;return t("span",{staticClass:"el-link--inner"},[t("i",{staticClass:"el-icon-tickets"}),t("span",[e._v("题目管理")])])}],iu={components:{},props:{row:{type:Object,default:function(){return{}}},column:{type:Object,default:function(){return{}}},index:{type:String,default:function(){return"0"}}},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{ToManage:function(e,t,r,n){this.$bus.emit("changeList",e,t,r,n)}}},su=iu,lu=c(su,au,ou,!1,null,"5d45ebf2",null),cu=lu.exports,uu=function(){var e=this,t=e._self._c;return t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("题型")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("el-radio-group",{staticStyle:{width:"100%"},attrs:{disabled:e.vo.createTime},on:{change:e.changeQuestion},model:{value:e.vo.type,callback:function(t){e.$set(e.vo,"type",t)},expression:"vo.type"}},[t("el-radio",{attrs:{label:1}},[e._v("单选题")]),t("el-radio",{attrs:{label:2}},[e._v("多选题")]),t("el-radio",{attrs:{label:3}},[e._v("判断题")]),t("el-radio",{attrs:{label:4}},[e._v("填空题")]),t("el-radio",{attrs:{label:5}},[e._v("问答题")])],1)],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("题目名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题目",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{type:"textarea",rows:3,resize:"none",required:!0},on:{blur:e.MakeOpations},model:{value:e.vo.content,callback:function(t){e.$set(e.vo,"content",t)},expression:"vo.content"}})],1)]}}])}),4===e.vo.type?t("div",{staticStyle:{color:"#999"}},[e._v('通过输入连续的英文下划线"_____",设置填空项')]):e._e()],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("答案")]),1===e.vo.type?t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticClass:"widthall",on:{change:e.changeSureAnswer},model:{value:e.DXTValue,callback:function(t){e.DXTValue=t},expression:"DXTValue"}},e._l(e.vo.optionList,(function(r,n){return t("tr",{key:n,staticClass:"chooseitem"},[t("el-radio",{attrs:{label:r.optionNo}},[e._v(e._s(r.optionNo))]),t("ValidationProvider",{ref:"ValidationProvider",refInFor:!0,attrs:{name:"答案",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a[0]},attrs:{disabled:void 0===a[0],content:a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticClass:"fixwidth400",class:{"border-none":!e.canEdit},attrs:{type:"text",readonly:e.readonly},on:{input:function(t){return e.$forceUpdate()}},model:{value:r.optionContent,callback:function(t){e.$set(r,"optionContent",t)},expression:"item.optionContent"}})],1)]}}],null,!0)}),4===e.vo.type?t("div",[e._v("通过输入下划线来设置填空题")]):e._e(),"A"===r.optionNo||e.readonly?e._e():t("i",{staticClass:"el-icon-top pointer",on:{click:function(t){return e.GoUpItem(r,n)}}}),e.readonly?e._e():t("i",{staticClass:"el-icon-delete pointer",on:{click:function(t){return e.DeleteItem(r,n,e.vo.type)}}})],1)})),0),t("div",{staticStyle:{width:"555px"}},[t("span",{staticClass:"fonttext"},[e._v("注:选中选项为正确答案")]),e.readonly?e._e():t("span",{staticStyle:{float:"right"}},[t("i",{staticClass:"el-icon-circle-plus-outline pointer",staticStyle:{"font-size":"20px"},on:{click:e.AddNewItem}})])])],1):2===e.vo.type?t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("el-checkbox-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticClass:"widthall",on:{change:e.DXchange},model:{value:e.DXTValue,callback:function(t){e.DXTValue=t},expression:"DXTValue"}},e._l(e.vo.optionList,(function(r,n){return t("tr",{key:n,staticClass:"chooseitem"},[t("el-checkbox",{key:r,staticStyle:{"margin-right":"30px"},attrs:{label:r.optionNo}},[e._v(e._s(r.optionNo))]),t("ValidationProvider",{ref:"ValidationProvider",refInFor:!0,attrs:{name:"答案",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a[0]},attrs:{disabled:void 0===a[0],content:a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticClass:"fixwidth400",class:{"border-none":!e.canEdit},attrs:{type:"text",readonly:e.readonly},on:{input:function(t){return e.$forceUpdate()}},model:{value:r.optionContent,callback:function(t){e.$set(r,"optionContent",t)},expression:"item.optionContent"}})],1)]}}],null,!0)}),"A"===r.optionNo||e.readonly?e._e():t("i",{staticClass:"el-icon-top pointer",on:{click:function(t){return e.GoUpItem(r,n)}}}),e.readonly?e._e():t("i",{staticClass:"el-icon-delete pointer",on:{click:function(t){return e.DeleteItem(r,n,e.vo.type)}}})],1)})),0),t("div",{staticStyle:{width:"555px"}},[t("span",{staticClass:"fonttext"},[e._v("注:选中选项为正确答案")]),e.readonly?e._e():t("span",{staticStyle:{float:"right"}},[t("i",{staticClass:"el-icon-circle-plus-outline pointer",staticStyle:{"font-size":"20px"},on:{click:e.AddNewItem}})])])],1):3===e.vo.type?t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticClass:"widthall",on:{change:e.changeSureAnswer},model:{value:e.DXTValue,callback:function(t){e.DXTValue=t},expression:"DXTValue"}},e._l(e.vo.optionList,(function(r,n){return t("tr",{key:n,staticClass:"chooseitem"},[t("el-radio",{attrs:{label:r.optionNo}},[e._v(e._s(r.optionNo))])],1)})),0),t("div",{staticStyle:{width:"555px"}},[t("span",{staticClass:"fonttext"},[e._v("注:选中选项为正确答案")])])],1):4===e.vo.type?t("td",{staticClass:"el-table__cell tdcont tdw83"},[e._l(e.TKTarr,(function(r,n){return t("tr",{key:n,staticClass:"chooseitem"},[t("ValidationProvider",{ref:"ValidationProvider",refInFor:!0,attrs:{name:"答案",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var a=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a[0]},attrs:{disabled:void 0===a[0],content:a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.readonly?e._e():t("el-input",{staticClass:"fixwidth400",staticStyle:{"margin-top":"10px"},attrs:{type:"text",readonly:e.readonly},model:{value:e.ChooseValue[n],callback:function(t){e.$set(e.ChooseValue,n,t)},expression:"ChooseValue[index]"}}),e.readonly?t("span",{staticClass:"readonlyFont"},[e._v(e._s(e.ChooseValue[n]))]):e._e()],1)]}}],null,!0)})],1)})),t("div",{staticStyle:{width:"480px"}},[t("span",{staticClass:"fonttext"},[e._v("注:请按顺序填写")])])],2):5===e.vo.type?t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"答案内容",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.readonly?e._e():t("el-input",{attrs:{readonly:e.readonly,type:"textarea",rows:3,resize:"none"},model:{value:e.vo.trueOption,callback:function(t){e.$set(e.vo,"trueOption",t)},expression:"vo.trueOption"}}),e.readonly?t("span",{staticClass:"readonlyFont"},[e._v(e._s(e.vo.trueOption))]):e._e()],1)]}}])})],1):e._e()]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("答案解析")]),e.readonly?e._e():t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"答案解析",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{readonly:e.readonly,type:"textarea",rows:3,resize:"none"},model:{value:e.vo.answerExplain,callback:function(t){e.$set(e.vo,"answerExplain",t)},expression:"vo.answerExplain"}})],1)]}}],null,!1,1575459185)})],1),e.readonly?t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("span",[e._v(e._s(e.vo.answerExplain))])]):e._e()])])])])])])},du=[],pu={components:{},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:function(){return 1}}},data:function(){return{EngLishArr:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ChooseDXTArr:["A","B","C","D"],ChoosePDTArr:["正确","错误"],TKTarr:[],readonly:!1,ChooseValue:[],DXTValue:"",isAutoReview:"",textareaAnswerAnalysis:""}},computed:{},watch:{ChooseValue:{handler:function(e,t){this.DellTKTanswer(e)}}},created:function(){},beforeDestroy:function(){},mounted:function(){console.log(this.canEdit),0===this.canEdit?this.readonly=!0:this.readonly=!1,this.vo.bankId=this.$route.query.taskId,this.vo.status=1,null===this.vo.type&&(this.vo.type=1),null===this.vo.optionList&&4!==this.vo.type?(this.vo.optionList=[],this.changeQuestionType(this.vo.type)):1===this.vo.type||3===this.vo.type?this.DXTValue=this.vo.trueOption:2===this.vo.type?this.DXTValue=this.DellString(this.vo.trueOption):4===this.vo.type&&(this.TKTarr=this.DellTKTanswer(this.vo.trueOption))},methods:{GoUpItem:function(e,t){var r=this;if(0!==this.canEdit&&this.vo.optionList.length>0)for(var n=0;n<this.vo.optionList.length;n++)if(n===t){1===this.vo.type&&(1===this.vo.optionList[n].istrue?this.vo.trueOption=this.DXTValue=this.vo.optionList[n-1].optionNo:1===this.vo.optionList[n-1].istrue&&(this.vo.trueOption=this.DXTValue=this.vo.optionList[n].optionNo));var a=this.vo.optionList[n].optionContent,o=this.vo.optionList[n].istrue;this.vo.optionList[n].optionContent=this.vo.optionList[n-1].optionContent,this.vo.optionList[n-1].optionContent=a,this.vo.optionList[n].istrue=this.vo.optionList[n-1].istrue,this.vo.optionList[n-1].istrue=o,2===this.vo.type&&(this.DXTValue=[],this.vo.optionList.forEach((function(e){1===e.istrue&&r.DXTValue.push(e.optionNo)}))),this.$forceUpdate()}},DeleteItem:function(e,t,r){var n=this;if(0!==this.canEdit){for(var a=this.vo.optionList.length,o=t;o<this.vo.optionList.length-1;o++)if(o!==a){var i=this.vo.optionList[o+1].optionContent,s=this.vo.optionList[o+1].istrue;this.vo.optionList[o].optionContent=i,this.vo.optionList[o].istrue=s}this.vo.optionList.pop(),this.DXTValue=[],console.log(this.vo.optionList),this.vo.optionList.forEach((function(e){1===e.istrue&&(1===r?n.DXTValue=e.optionNo:2===r&&n.DXTValue.push(e.optionNo))})),console.log(this.DXTValue),0===this.DXTValue.length&&(this.vo.trueOption=""),this.$forceUpdate()}},AddNewItem:function(){if(0!==this.canEdit){var e=this.vo.optionList.length,t={istrue:0,optionContent:"",optionNo:this.EngLishArr[e],subjectId:this.vo.id};this.vo.optionList.push(t)}},changeQuestion:function(e){this.vo.optionList=[],this.vo.content="",this.vo.trueOption="",this.vo.answerExplain="",1===e||3===e?(this.DXTValue="",this.changeQuestionType(e)):2===e?(this.DXTValue=[],this.changeQuestionType(e)):4===e&&(this.TKTarr=[])},changeSureAnswer:function(e){this.vo.optionList.forEach((function(t){t.optionNo===e&&(t.istrue=1)})),this.vo.trueOption=e},DellString:function(e){if(!(e instanceof Array)){var t=e.split(",");return this.DXTValue=t,t}for(var r="",n=0;n<e.length;n++)r+=e[n]+",";var a=r.substring(0,r.length-1);this.vo.trueOption=a},DellTKTanswer:function(e){if(!(e instanceof Array)){var t=/\|\#\|/g,r=e.replace(t,",").split(",");return this.ChooseValue=r,r}for(var n="",a=0;a<e.length;a++)n+=e[a]+"|#|";var o=n.substring(0,n.length-3);this.vo.trueOption=o},DXchange:function(e){var t=this;e.forEach((function(e){t.vo.optionList.forEach((function(t){e===t.optionNo&&(t.istrue=1)}))})),this.DellString(e)},MakeOpations:function(e){if(""===this.vo.content)this.TKTarr=[],this.ChooseValue=[],this.$forceUpdate();else if(this.vo.name=this.vo.content,4===this.vo.type&&this.vo.content){this.TKTarr=[];for(var t=/\_{2,100}/g,r=this.vo.content.match(t).length,n=0;n<r;n++)this.TKTarr.push("_")}},changeQuestionType:function(e){if(1===this.vo.type||2===this.vo.type)for(var t=0;t<this.ChooseDXTArr.length;t++){var r={istrue:0,optionContent:"",optionNo:"",subjectId:""};r.subjectId=this.vo.id,r.optionNo=this.ChooseDXTArr[t],this.vo.optionList.push(r)}else if(3===e)for(var n=0;n<this.ChoosePDTArr.length;n++){var a={istrue:0,optionContent:"",optionNo:"",subjectId:""};a.subjectId=this.vo.id,a.optionNo=this.ChoosePDTArr[n],this.vo.optionList.push(a)}}}},hu=pu,fu=(r(492),c(hu,uu,du,!1,null,"0696402a",null)),mu=fu.exports,yu=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[t("GiantTree",{attrs:{nodes:e.treeData},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick}})],1),t("RightPanel",[null!==e.rootName?t("configCategoryType",{attrs:{"root-name":e.rootName,vo:e.vo,"z-tree":e.zTree,"is-click":e.isClick,"busi-type":e.busiType,"node-name":e.nodeName},on:{deleteObject:e.deleteObject}}):e._e()],1)],1)},vu=[],gu=function(){var e=this,t=e._self._c;return t("div",[t("PageContent",{attrs:{title:e.rootName}},[null!==e.vo&&"tsys"!==e.vo.id?t("configCategoryForm",{attrs:{vo:e.vo,"can-edit":0}}):e._e(),null!==e.vo&&"tsys"===e.vo.id?t("div",{staticStyle:{"text-align":"left",width:"500px",margin:"0 250px",color:"#303133","font-size":"var(--portalFontSize14)"}},[t("p",[e._v("1、选中"+e._s(e.rootName)+"根目录,点击添加子分类,添加试卷一级分类")]),t("p",[e._v("2、点一级分类,可查看分类信息,管理分类信息,添加二级分类")]),t("p",[e._v("3、分类目前最多支持三级")])]):e._e(),t("div",{attrs:{slot:"footer"},slot:"footer"},[null!==e.vo&&("tsys"===e.vo.id||e.vo.tlevel<3)?t("el-button",{attrs:{plain:"",icon:"el-icon-plus"},on:{click:e.addObject}},[e._v("添加子分类")]):e._e(),null!==e.vo&&"tsys"!==e.vo.id?t("el-button",{attrs:{plain:"",icon:"el-icon-edit"},on:{click:e.editObject}},[e._v("修改")]):e._e(),null!==e.vo&&"tsys"!==e.vo.id?t("el-button",{attrs:{plain:"",icon:"el-icon-close"},on:{click:function(t){return e.deleteObject(e.vo)}}},[e._v("删除")]):e._e()],1)],1),t("Basicform",{attrs:{title:e.rootName,"win-width":e.moduleInfo.winWidth,"win-height":e.moduleInfo.winHeight,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-opened":e.onBasicFormOpened,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit,"on-basic-form-submited":e.onBasicFormSubmited},scopedSlots:e._u([{key:"default",fn:function(r){return[t("configCategoryForm",{attrs:{vo:r.vo,":can-edit":1,"module-info":e.moduleInfo,title:e.selectTitle}})]}}])})],1)},_u=[],bu=function(){var e=this,t=e._self._c;return t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[e.vo.tlevel>1?[0===e.canEdit?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("上级分类")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",[t("span",[e._v(e._s(e.vo.getParentNode().name))])])])]):e._e()]:e._e(),1===e.canEdit&&""!==e.title?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("上级分类")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("span",[e._v(e._s(e.title)+" ")]),0===e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.tname)}}):e._e()])]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("分类名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:"请输入分类名称"},model:{value:e.vo.tname,callback:function(t){e.$set(e.vo,"tname",t)},expression:"vo.tname"}})],1)]}}],null,!1,3741890061)}):e._e(),0===e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.tname)}}):e._e()],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("排序编号")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"排序编号",rules:"required|length:4"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:"请输入4位数字排序编号"},model:{value:e.vo.orderNo,callback:function(t){e.$set(e.vo,"orderNo",t)},expression:"vo.orderNo"}})],1)]}}],null,!1,1960115379)}):e._e(),0===e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.orderNo)}}):e._e()],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[e._v("备注")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("form-item",{ref:"memo",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementType:"textarea",emptyMessage:"请输入备注",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:0,onClickEvent:null,passenger:{},propComment:"备注",propName:"remark",propType:"String",textFormatter:"textarea",valueMaxLength:500,valueMinLength:null,model:"vo.remark",option:[],autosize:!1},vo:e.vo,"can-edit":e.canEdit,autosize:!1}})],1)])],2)])])])])},wu=[],xu={components:{},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1},title:{type:String,default:""}},data:function(){return{rootName:""}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{}},Lu=xu,Mu=c(Lu,bu,wu,!1,null,"9c30cdc0",null),ku=Mu.exports,Tu={components:{configCategoryForm:ku},props:{vo:{type:Object,default:function(){return{}}},busiType:{type:String,default:function(){return{}}},rootName:{type:String,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},isClick:{type:Boolean,default:!1},nodeName:{type:String,default:function(){return""}}},data:function(){return{title:"学习设置",moduleInfo:{moduleCode:"Module",addNewUrl:"/ksgl/configCategory/addNew",insertUrl:"/ksgl/configCategory/insert",getByIdUrl:"/ksgl/configCategory/getById",updateUrl:"/ksgl/configCategory/update",delUrl:"/ksgl/configCategory/delete",winWidth:900,winHeight:600},opearType:"",editDataForm:{orgCode:this.$store.getters.loginUser.orgCode,orgName:this.$store.getters.loginUser.orgName,passenger:{},tlevel:1},selectTitle:""}},computed:{},watch:{},created:function(){this.$bus.on("addMenu",this.addMenu),this.$bus.on("editMenu",this.editMenu),this.$bus.on("deleteMenu",this.deleteMenu)},beforeDestroy:function(){this.$bus.off("addMenu",this.addMenu),this.$bus.off("editMenu",this.editMenu),this.$bus.off("deleteMenu",this.deleteMenu)},mounted:function(){},methods:{addObject:function(){this.opearType="add",this.selectTitle="";var e=this.moduleInfo.addNewUrl.split("?")[0];e+="?parentId=",null===this.vo?this.moduleInfo.addNewUrl=e:(this.moduleInfo.addNewUrl=e+this.vo.id,this.selectTitle=this.vo.tname),this.$bus.emit("openBusiform",this.moduleInfo,null,1)},editObject:function(){this.selectTitle="",this.opearType="edit";var e=this.vo.fullName.split("-");e.length>1&&(this.selectTitle=e[e.length-2]),this.$bus.emit("openBusiform",this.moduleInfo,this.vo,1)},deleteObject:function(e){var t=this;this.opearType="delete";var r="确认删除“"+e.name+"”吗?";e.children&&e.children.length>0&&(r="确认删除“"+e.name+"”及下级全部类型吗?"),this.$confirm(r,{type:"warning",closeOnClickModal:!1}).then((function(){t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:e.id},url:t.moduleInfo.delUrl}).then((function(r){if("success"===r.code){var n=e.getParentNode();t.zTree.removeNode(e),t.zTree.selectNode(n),t.$bus.emit("updateTreeNode",n),t.$message.success(r.message)}else t.$alert(r.message,{type:"error"})}))}))},onBasicFormBeforeOpen:function(e,t,r){"add"===this.opearType&&(t.status=1),r.resolve(!0)},onBasicFormOpened:function(e,t){0},onBasicFormBeforeSubmit:function(e,t,r){e.isnew&&(null!==this.vo?(this.vo.id&&"tsys"===this.vo.id?(t.fullOrder=t.orderNo,t.fullName=t.tname,t.busiType=this.busiType,t.tlevel=1,t.parentId=this.vo.id):(t.fullOrder=this.vo.orderNo+"-"+t.orderNo,t.fullName=this.vo.tname+"-"+t.tname,t.busiType=this.busiType,t.tlevel=this.vo.tlevel+1,t.parentId=this.vo.id),2===this.vo.tlevel&&(t.fullOrder=this.vo.fullOrder+"-"+t.orderNo,t.fullName=this.vo.fullName+"-"+t.tname)):(t.busiType=this.busiType,t.tlevel=1)),r.resolve(!0)},onBasicFormSubmited:function(e,t){t.title=t.name,void 0!==t.pId&&null!==t.pId||(t.pId=t.parentId||"tsys"),t.name=t.tname,this.$bus.emit("updateTreeNode",t)}}},Du=Tu,Yu=c(Du,gu,_u,!1,null,"0328b3b4",null),Su=Yu.exports;function Cu(e){return Cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cu(e)}function ju(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ju=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Cu(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Cu(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Eu(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Ou(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Eu(o,n,a,i,s,"next",e)}function s(e){Eu(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Pu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Au(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pu(Object(r),!0).forEach((function(t){Nu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nu(e,t,r){return(t=Hu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hu(e){var t=Iu(e,"string");return"symbol"==Cu(t)?t:t+""}function Iu(e,t){if("object"!=Cu(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Cu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Fu={components:{configCategoryType:Su},props:{},data:function(){return{moduleInfo:{moduleCode:"configCategory",addNewUrl:"/ksgl/configCategory/addNew",insertUrl:"/ksgl/configCategory/insert",updateUrl:"/ksgl/configCategory/update",delUrl:"/ksgl/configCategory/delete",winWidth:900,winHeight:600,getByIdUrl:"/ksgl/configCategory/getById",loadTreeNodeUrl:"/ksgl/configCategory/querydata"},root:null,vo:null,treeData:[],zTree:{},nodeName:"",isClick:!1,busiType:"",rootName:null}},computed:Au({},ce(["loginUser"])),watch:{},created:function(){var e=this;return Ou(ju().mark((function t(){var r,n;return ju().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.$route.meta.params,n=r.indexOf("="),e.busiType=r.slice(n+1,r.length),"3"===e.busiType?e.rootName="课程分类":"1"===e.busiType?e.rootName="题库分类":"2"===e.busiType&&(e.rootName="试卷分类"),e.root={id:"tsys",name:e.rootName,open:!0,title:e.rootName},t.next=7,e.loadTypeTree();case 7:e.$bus.emit("showNavSearch",!1),e.$bus.on("refreshTreeData",e.refreshTreeData);case 9:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.$bus.off("refreshTreeData",this.refreshTreeData)},mounted:function(){},methods:{loadTypeTree:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{orderBy:"orderNo asc"},data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode},{compare:"=",field:"busiType",merge:!0,value:this.busiType}],url:this.moduleInfo.loadTreeNodeUrl}).then((function(t){"success"===t.code?e.treeData=e.treeDataAdapter([e.root].concat(t.body.listdata)):e.$alert(t.message,"操作提示",{type:"error"})}))},treeDataAdapter:function(e){var t=this;return e.forEach((function(e){null===e.parentId?(e.pId=t.root.id,e.name=e.tname):void 0!==e.parentId&&null!==e.parentId&&(e.pId=e.parentId,e.name=e.tname),e.title=e.name})),e},refreshTreeData:function(e){null===e?this.loadTypeTree():this.treeData=this.treeDataAdapter([this.root].concat(e))},onTreeNodeClick:function(e,t,r){var n=this;"tsys"!==r.id?this.isClick=!0:this.isClick=!1,this.nodeName=r.name;var a=JSON.parse(JSON.stringify(this.root));this.root=null,this.$nextTick((function(e){"tsys"===r.id?n.vo=a:n.vo=r,n.root=a}))},onTreeCreated:function(e){this.zTree=e;var t=e.getNodes();if(0===t.length)return!1;void 0===t[0].children?(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0]),t[0].tlevel=1):t[0].children.length>=1?(this.onTreeNodeClick("",t[0].children[0].id,t[0].children[0]),e.selectNode(t[0].children[0])):(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0]),t[0].tlevel=1)},getDetailData:function(e){var t=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{id:e,canEdit:0},url:this.moduleInfo.getByIdUrl}).then((function(e){"success"===e.code?t.vo=e.body.vo:t.$alert(e.message,"操作提示",{type:"error"})}))},getNodeParentName:function(e){var t=e.getParentNode(),r="";while(null!==t&&t.getParentNode)r=t.name+"/"+r,t=t.getParentNode();return""===r?"/":r}}},zu=Fu,Bu=c(zu,yu,vu,!1,null,"6ddb7565",null),Gu=Bu.exports;function Ru(e){return Ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ru(e)}function Wu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wu(Object(r),!0).forEach((function(t){Uu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Uu(e,t,r){return(t=qu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qu(e){var t=Xu(e,"string");return"symbol"==Ru(t)?t:t+""}function Xu(e,t){if("object"!=Ru(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ru(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ku={KsglComponentDanxuanProblem:d,KsglComponentDuoxuanProblem:v,KsglComponentTiankongProblem:L,KsglComponentWendaProblem:S,KsglComponentChooseType:Ce,KsglComponentExportData:Ie,KsglComponentKsglCascaderType:Te,KsglComponentMyHeader:We,KsglComponentProblemDetail:ot,KsglGrzxSjpyExamPaperCorrecting:mt,KsglGrzxWdct:kt,KsglGrzxWdksExamDetail:zt,KsglGrzxWdksOnlineExam:tr,KsglGrzxWdksSubmitResult:yr,KsglGrzxWdxx:jr,KsglKcglCalendar:Qr,KsglKcglComponentDoExercise:dn,KsglKcglComponentExerciseDetail:Ln,KsglKcglComponentExerciseRecord:Qn,KsglKcglComponentComment:ca,KsglKcglComponentCourse:Da,KsglKcglComponentCourseDetail:Wa,KsglKcglComponentCourseTop:Rn,KsglKcglComponentCourseWare:io,KsglKcglComponentLessonList:ho,KsglKcglComponentPXTimeControl:Po,KsglKcglComponentTeacherList:zo,KsglKcglAddNewLesson:si,KsglKcglIndex:vi,KsglKcglIndexJS:Di,KsglKczx:Gi,KsglExamChoosePaperOrLesson:Xi,KsglExamOperationCloums:as,KsglExamPaperHeader:bs,KsglExamAddNewExam:Ns,KsglExamDetail:Gs,KsglPaperOperationCloums:Zs,KsglPaperEdit:gl,KsglPortletEntry:Ol,KsglPortletXxxx:Kl,KsglPortletXyxx:oc,KsglTjfxXftj:dc,KsglTjfxXxtj:vc,KsglTkglAddSome:nu,KsglTkglCloumsToMannger:cu,KsglTkglOtherType:jc,KsglTkglQuestion:Kc,KsglTkglSample:Rc,KsglTkglSpecification:Hc,KsglTkglXuanZe:kc,KsglTkglAddSubjectManage:mu,KsglXxszConfigCategory:Gu},Ju=function e(t){e.installed||(e.installed=!0,Object.keys(Ku).forEach((function(e){t.component(e,Ku[e])})))};"undefined"!==typeof window&&window.Vue&&Ju(window.Vue);var Qu=Vu({install:Ju},Ku),Zu=Qu}(),n}()}));
|
|
283
|
+
function P(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:n});else{var r=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,r.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var A="undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:{},N=A.__VUE_DEVTOOLS_GLOBAL_HOOK__;function H(e){N&&(e._devtoolHook=N,N.emit("vuex:init",e),N.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){N.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){N.emit("vuex:action",e,t)}),{prepend:!0}))}function I(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function F(e){return null!==e&&"object"===typeof e}function z(e){return e&&"function"===typeof e.then}function B(e,t){return function(){return e(t)}}var G=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"===typeof r?r():r)||{}},R={namespaced:{configurable:!0}};R.namespaced.get=function(){return!!this._rawModule.namespaced},G.prototype.addChild=function(e,t){this._children[e]=t},G.prototype.removeChild=function(e){delete this._children[e]},G.prototype.getChild=function(e){return this._children[e]},G.prototype.hasChild=function(e){return e in this._children},G.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},G.prototype.forEachChild=function(e){I(this._children,e)},G.prototype.forEachGetter=function(e){this._rawModule.getters&&I(this._rawModule.getters,e)},G.prototype.forEachAction=function(e){this._rawModule.actions&&I(this._rawModule.actions,e)},G.prototype.forEachMutation=function(e){this._rawModule.mutations&&I(this._rawModule.mutations,e)},Object.defineProperties(G.prototype,R);var W=function(e){this.register([],e,!1)};function V(e,t,r){if(t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n))return void 0;V(e.concat(n),t.getChild(n),r.modules[n])}}W.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},W.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return t=t.getChild(r),e+(t.namespaced?r+"/":"")}),"")},W.prototype.update=function(e){V([],this.root,e)},W.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0);var a=new G(t,r);if(0===e.length)this.root=a;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],a)}t.modules&&I(t.modules,(function(t,a){n.register(e.concat(a),t,r)}))},W.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n&&n.runtime&&t.removeChild(r)},W.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var U;var q=function(e){var t=this;void 0===e&&(e={}),!U&&"undefined"!==typeof window&&window.Vue&&le(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new W(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new U,this._makeLocalGettersCache=Object.create(null);var a=this,o=this,i=o.dispatch,s=o.commit;this.dispatch=function(e,t){return i.call(a,e,t)},this.commit=function(e,t,r){return s.call(a,e,t,r)},this.strict=n;var l=this._modules.root.state;Z(this,l,[],this._modules.root),Q(this,l),r.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:U.config.devtools;c&&H(this)},X={state:{configurable:!0}};function K(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function J(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;Z(e,r,[],e._modules.root,!0),Q(e,r,t)}function Q(e,t,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,o={};I(a,(function(t,r){o[r]=B(t,e),Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},enumerable:!0})}));var i=U.config.silent;U.config.silent=!0,e._vm=new U({data:{$$state:t},computed:o}),U.config.silent=i,e.strict&&oe(e),n&&(r&&e._withCommit((function(){n._data.$$state=null})),U.nextTick((function(){return n.$destroy()})))}function Z(e,t,r,n,a){var o=!r.length,i=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=n),!o&&!a){var s=ie(t,r.slice(0,-1)),l=r[r.length-1];e._withCommit((function(){U.set(s,l,n.state)}))}var c=n.context=ee(e,i,r);n.forEachMutation((function(t,r){var n=i+r;re(e,n,t,c)})),n.forEachAction((function(t,r){var n=t.root?r:i+r,a=t.handler||t;ne(e,n,a,c)})),n.forEachGetter((function(t,r){var n=i+r;ae(e,n,t,c)})),n.forEachChild((function(n,o){Z(e,t,r.concat(o),n,a)}))}function ee(e,t,r){var n=""===t,a={dispatch:n?e.dispatch:function(r,n,a){var o=se(r,n,a),i=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,i)},commit:n?e.commit:function(r,n,a){var o=se(r,n,a),i=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,i,s)}};return Object.defineProperties(a,{getters:{get:n?function(){return e.getters}:function(){return te(e,t)}},state:{get:function(){return ie(e.state,r)}}}),a}function te(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(a){if(a.slice(0,n)===t){var o=a.slice(n);Object.defineProperty(r,o,{get:function(){return e.getters[a]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function re(e,t,r,n){var a=e._mutations[t]||(e._mutations[t]=[]);a.push((function(t){r.call(e,n.state,t)}))}function ne(e,t,r,n){var a=e._actions[t]||(e._actions[t]=[]);a.push((function(t){var a=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return z(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):a}))}function ae(e,t,r,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)})}function oe(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function ie(e,t){return t.reduce((function(e,t){return e[t]}),e)}function se(e,t,r){return F(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}function le(e){U&&e===U||(U=e,P(U))}X.state.get=function(){return this._vm._data.$$state},X.state.set=function(e){0},q.prototype.commit=function(e,t,r){var n=this,a=se(e,t,r),o=a.type,i=a.payload,s=(a.options,{type:o,payload:i}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(s,n.state)})))},q.prototype.dispatch=function(e,t){var r=this,n=se(e,t),a=n.type,o=n.payload,i={type:a,payload:o},s=this._actions[a];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,r.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,r.state)}))}catch(c){0}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,r.state,e)}))}catch(c){0}t(e)}))}))}},q.prototype.subscribe=function(e,t){return K(e,this._subscribers,t)},q.prototype.subscribeAction=function(e,t){var r="function"===typeof e?{before:e}:e;return K(r,this._actionSubscribers,t)},q.prototype.watch=function(e,t,r){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,r)},q.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},q.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),Z(this,this.state,e,this._modules.get(e),r.preserveState),Q(this,this.state)},q.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var r=ie(t.state,e.slice(0,-1));U.delete(r,e[e.length-1])})),J(this)},q.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},q.prototype.hotUpdate=function(e){this._modules.update(e),J(this,!0)},q.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(q.prototype,X);pe((function(e,t){var r={};return ue(t).forEach((function(t){var n=t.key,a=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=he(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"===typeof a?a.call(this,t,r):t[a]},r[n].vuex=!0})),r})),pe((function(e,t){var r={};return ue(t).forEach((function(t){var n=t.key,a=t.val;r[n]=function(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var n=this.$store.commit;if(e){var o=he(this.$store,"mapMutations",e);if(!o)return;n=o.context.commit}return"function"===typeof a?a.apply(this,[n].concat(t)):n.apply(this.$store,[a].concat(t))}})),r}));var ce=pe((function(e,t){var r={};return ue(t).forEach((function(t){var n=t.key,a=t.val;a=e+a,r[n]=function(){if(!e||he(this.$store,"mapGetters",e))return this.$store.getters[a]},r[n].vuex=!0})),r}));pe((function(e,t){var r={};return ue(t).forEach((function(t){var n=t.key,a=t.val;r[n]=function(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var o=he(this.$store,"mapActions",e);if(!o)return;n=o.context.dispatch}return"function"===typeof a?a.apply(this,[n].concat(t)):n.apply(this.$store,[a].concat(t))}})),r}));function ue(e){return de(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function de(e){return Array.isArray(e)||F(e)}function pe(e){return function(t,r){return"string"!==typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function he(e,t,r){var n=e._modulesNamespaceMap[r];return n}function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function me(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */me=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==fe(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(fe(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ye(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function ve(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ye(o,n,a,i,s,"next",e)}function s(e){ye(o,n,a,i,s,"throw",e)}i(void 0)}))}}function ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(r),!0).forEach((function(t){be(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function be(e,t,r){return(t=we(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function we(e){var t=xe(e,"string");return"symbol"==fe(t)?t:t+""}function xe(e,t){if("object"!=fe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Le={components:{},props:{bType:{type:String,default:function(){return"1"}},title:{type:String,default:function(){return"课程分类"}}},data:function(){return{dialogVisible:!1,checkStrictly:!1,partyOrganId:[],cascaderData:[],sizeArea:"",idArea:"",getCheckedLabel:"",spanChecked:""}},computed:_e({},ce(["loginUser"])),watch:function(){},created:function(){var e=this;return ve(me().mark((function t(){return me().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getlevelFuc(e.bType);case 2:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.dialogVisible=!1,this.checkStrictly=!1,this.partyOrganId=[],this.cascaderData=[],this.sizeArea="",this.idArea="",this.getCheckedLabel="",this.spanChecked=""},mounted:function(){},methods:{click:function(){this.dialogVisible=!0},getlevelFuc:function(e){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{busiType:e,orderBy:"orderNo asc"},data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode}],url:"ksgl/configCategory/getLevelTable"}).then((function(e){"success"===e.code?(t.ones=e.body.categories,t.cascaderData=t.ones.map((function(e,t){return void 0===e.mapList?void 0===e.children||0===e.children.length?{value:e.id||e.value,label:e.tname||e.name||e.label}:{value:e.id||e.value,label:e.tname||e.name||e.label,children:e.children}:0===e.mapList.length?{value:e.id||e.value,label:e.tname||e.name||e.label}:{value:e.id||e.value,label:e.tname||e.name||e.label,children:e.mapList}}))):t.$alert(e.message,{type:"error"})}))},handleChange:function(e){var t=this;this.partyOrganId=e,this.getCheckedLabel=this.$refs["myCascader"].getCheckedNodes()[0].pathLabels,this.spanChecked="",this.getCheckedLabel.forEach((function(e){t.spanChecked+=e+" / "}))},handleItemChange:function(e){this.getNodes(e)},getNodes:function(e){e?1===e.length?(this.idArea=e[0],this.sizeArea=e.length):2===e.length&&(this.idArea=e[1],this.sizeArea=e.length):(this.idArea=null,this.sizeArea=0),0===this.sizeArea?this.cascaderData=this.ones.map((function(e,t){return void 0===e.mapList?void 0===e.children||0===e.children.length?{value:e.id||e.value,label:e.tname||e.name||e.label}:{value:e.id||e.value,label:e.tname||e.name||e.label,children:e.children}:0===e.mapList.length?{value:e.id||e.value,label:e.tname||e.name||e.label}:{value:e.id||e.value,label:e.tname||e.name||e.label,children:e.mapList}})):1===this.sizeArea?this.cascaderData.map((function(t,r){t.value===e[0]&&t.children.length>0&&(t.children=t.children.map((function(e,t){return void 0===e.mapList?void 0===e.children||0===e.children.length?{value:e.id||e.value,label:e.tname||e.name||e.label}:{value:e.id||e.value,label:e.tname||e.name||e.label,children:e.children}:0===e.mapList.length?{value:e.id||e.value,label:e.tname||e.name||e.label}:{value:e.id||e.value,label:e.tname||e.name||e.label,children:e.mapList}})))})):2===this.sizeArea&&this.cascaderData.map((function(t,r){t.value===e[0]&&t.children.map((function(t,r){t.value===e[1]&&t.children.length>0&&(t.children=t.children.map((function(e,t){return{value:e.id||e.value,label:e.tname||e.name||e.label}})))}))}))},categoryEdit:function(e){this.dialogVisible=!1;for(var t=[],r={id:"",name:""},n=/\//g,a=0;a<this.partyOrganId.length;a++){var o={id:"",name:""};o.id=this.partyOrganId[a],o.name=this.getCheckedLabel[a],r.name+=this.getCheckedLabel[a]+"/",t.push(o)}return r.id=t[t.length-1].id,n.test(r.name)&&(r.name=r.name.substring(0,r.name.length-1)),this.$bus.emit("sureclick",r),t}}},Me=Le,ke=(r(4846),r(8358),c(Me,E,O,!1,null,"540cfb3a",null)),Te=ke.exports,De={components:{Cascader:Te},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:function(){return 1}},btype:{type:String,default:function(){return""}}},data:function(){return{value:"",isShow:!1,placeholder:""}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){var e=this;console.log(this.canEdit),console.log(this.vo,1111111111),console.log(this.btype),1===this.btype?this.placeholder="请选择题库分类":2===this.btype?this.placeholder="请选择试卷分类":this.placeholder="请选择课件分类",this.$bus.$on("sureclick",(function(t){e.value=t.name,e.vo.categoryId=t.id,e.vo.typeId=t.id,e.vo.categoryName=t.name,console.log(e.vo,22222222)})),"{}"!==JSON.stringify(this.vo.passenger)&&this.vo.passenger.category&&(this.value=this.vo.passenger.category.fullName.replace(/\-/g,"/")),0===this.canEdit?this.isShow=!0:this.isShow=!1},methods:{onclick:function(){1===this.canEdit&&this.$refs.cascader.click()}}},Ye=De,Se=c(Ye,C,j,!1,null,"1f2060aa",null),Ce=Se.exports,je=function(){var e=this,t=e._self._c;return t("div")},Ee=[],Oe=r(5373),Pe=r.n(Oe),Ae={components:{},props:{},data:function(){return{loginUser:this.$store.getters.loginUser}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){this.$bus.on("exportData",this.exportData)},methods:{exportData:function(e,t,r,n){if(delete n.total,"studyScore"===e){n.pageSize=65e3,n.pageNum=1,n.urlsearch?-1===n.urlsearch.indexOf("personId")&&(n.urlsearch+=";personId:"+r):n.urlsearch="orgCode:".concat(this.loginUser.orgCode,";personId:").concat(r);var a="/apigw/ksgl/configCredit/exportdata?"+Pe().stringify(n)+"&fileName=统计分析-学分统计-"+t+"&httpPort="+location.port;window.open(a)}else if("study"===e){n.pageSize=65e3,n.pageNum=1,-1===n.urlsearch.indexOf("personId")&&(n.urlsearch+=";personId:"+r);var o="/apigw/ksgl/vwCoursePersonStatistics/exportdata?"+Pe().stringify(n)+"&fileName=统计分析-学习统计-"+t+"&httpPort="+location.port;window.open(o)}else if("exam"===e){n.pageSize=65e3,n.pageNum=1,n.urlsearch?-1===n.urlsearch.indexOf("examId")&&(n.urlsearch+=";examId:".concat(r,";")):n.urlsearch="orgCode:".concat(this.loginUser.orgCode,";examId:").concat(r,";");var i="/apigw/ksgl/vwPersonExemInfo/exportdata?"+Pe().stringify(n)+"&fileName=统计分析-考试统计-"+t+"&httpPort="+location.port;window.open(i)}}}},Ne=Ae,He=c(Ne,je,Ee,!1,null,"a7ace8dc",null),Ie=He.exports,Fe=function(){var e=this;e._self._c;return e._m(0)},ze=[function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"header-box"},[t("div",{staticClass:"header-left Fleft"},[t("img",{staticClass:"left-box-img MarginRight30 Fleft",attrs:{src:"/apigw/base/user/download?id=b3ee187d4ae549d79f02a1b13d741fb1&dataField=photoData&nameField=photoName",alt:""}}),t("div",{staticClass:"Fleft"},[t("p",[e._v("璃妹妹")]),t("p",{staticStyle:{color:"#999"}},[e._v("行政组")])])]),t("div",{staticClass:"header-right Fright"},[t("div",{staticClass:"MarginRight30 Fleft"},[t("p",{staticClass:"title"},[e._v("我的学时")]),t("p",{staticClass:"pointSize"},[e._v("446")])]),t("div",{staticClass:"MarginRight30 Fleft"},[t("p",{staticClass:"title"},[e._v("我的学分")]),t("p",{staticClass:"pointSize"},[e._v("446")])]),t("div",{staticClass:"Fleft"},[t("p",{staticClass:"title"},[e._v("我的收藏")]),t("p",{staticClass:"pointSize"},[e._v("446")])])])])])}],Be={components:{},props:{},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{}},Ge=Be,Re=(r(8063),c(Ge,Fe,ze,!1,null,"6524e0cf",null)),We=Re.exports,Ve=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{padding:"30px 0"}},[null!==e.vo?t("section",{staticClass:"problemDetailTop"},["1"!==e.typeContent?t("div",[t("div",{staticClass:"titleTop"},["2"===e.typeContent?t("h4",{staticStyle:{"padding-top":"0","padding-bottom":"20px",width:"100%","overflow-wrap":"break-word"}},[e._v(e._s(e.vo.passenger.exam.name))]):e._e(),"3"===e.typeContent?t("h4",{staticStyle:{"padding-top":"0","padding-bottom":"10px",width:"100%","overflow-wrap":"break-word"}},[e._v(e._s(e.chapterName))]):e._e(),"2"===e.typeContent?t("div",{staticClass:"btnBox",on:{click:e.Collection}},[t("svg-icon",{attrs:{"icon-class":e.isColl?"fiveStar1":"fiveStar"}}),t("span",[e._v(e._s(e.collectNum)+" 次")])],1):e._e(),"2"===e.typeContent?t("ul",{staticClass:"titleTop-time",staticStyle:{"font-size":"var(--portalFontSize12)",color:"#999"}},[t("li",[t("span",[e._v("答题时限:")]),t("span",[e._v(e._s(e.vo.passenger.exam.examLimit))])]),t("li",[t("span",[e._v("通过分数:")]),t("span",[e._v(e._s(e.vo.passenger.exam.passGrade))])]),-1!==e.FSvisible?t("li",[t("span",[e._v("我的分数:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.examRecord.grade)+"分")])]):e._e(),t("li",[t("span",[e._v("考试结果:")]),e._v(" "),t("span",{class:1===e.vo.passenger.examRecord.ispass?"greenSpan":"redSpan"},[e._v(e._s(1===e.vo.passenger.examRecord.ispass?"通过":"未通过"))])])]):e._e()])]):e._e(),"1"===e.typeContent?t("div",[2===e.vo.type?t("div",{staticClass:"titleTop"},[t("h4",{staticStyle:{"padding-top":"0","padding-bottom":"20px",width:"100%","overflow-wrap":"break-word"}},[e._v(e._s(e.vo.name))]),t("ul",{staticClass:"titleTop-time",staticStyle:{"font-size":"var(--portalFontSize12)",color:"#999"}},[t("li",[t("span",[e._v("全部试题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.subjectNum))])]),t("li",[t("span",[e._v("试卷总分:")]),t("span",[e._v(e._s(e.vo.totalGrade))])])])]):e._e(),1===e.vo.type?t("div",{staticClass:"titleTop"},[t("h4",{staticStyle:{"padding-top":"0","padding-bottom":"20px",width:"100%","overflow-wrap":"break-word"}},[e._v(e._s(e.vo.name))]),t("ul",{staticClass:"titleTop-long",staticStyle:{"font-size":"var(--portalFontSize12)",color:"#999"}},[t("li",[t("span",[e._v("全部试题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.TypeNum.totalNum))])]),t("li",[t("span",[e._v("单选题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.TypeNum.totalNum1))])]),t("li",[t("span",[e._v("多选题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.TypeNum.totalNum2))])]),t("li",[t("span",[e._v("判断题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.TypeNum.totalNum3))])]),t("li",[t("span",[e._v("填空题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.TypeNum.totalNum4))])]),t("li",[t("span",[e._v("问答题:")]),e._v(" "),t("span",[e._v(e._s(e.vo.passenger.TypeNum.totalNum5))])]),t("li",[t("span",[e._v("试卷总分:")]),t("span",[e._v(e._s(e.vo.totalGrade))])])])]):e._e()]):e._e()]):e._e(),null!==e.vo?t("section",{staticClass:"problemDetail"},[t("div",{staticClass:"box"},[["1"===e.typeContent?t("div",{staticClass:"problemBox"},[1===e.vo.type?t("div",e._l(e.vo.passenger.paperTypePerson,(function(r,n){return t("div",{key:r,staticClass:"paperInnerBox",staticStyle:{"border-bottom":"1px solid #EBEEF5"}},[1===r.passenger.subjectManage.type||3===r.passenger.subjectManage.type?t("danxuan",{attrs:{"current-index":n+1,"num-problem":e.numProblem,"problem-obj":r,"can-edit":0,"type-content":e.typeContent}}):e._e(),4===r.passenger.subjectManage.type?t("tiankong",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent}}):e._e(),2===r.passenger.subjectManage.type?t("duoxuan",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent}}):e._e(),5===r.passenger.subjectManage.type?t("wenda",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent}}):e._e()],1)})),0):e._e(),2===e.vo.type?t("el-form",{staticStyle:{margin:"20px 0"}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw34"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("题型分值")]),t("td",{staticClass:"el-table__cell tdcont tdw66",attrs:{colspan:"3"}},[t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("单选题 "+e._s(e.vo.typeChoiceNum)+" 个,")]),e._v(" "),t("span",[e._v("每题 "+e._s(e.vo.typeChoiceGredit)+" 分")])]),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("多选题 "+e._s(e.vo.typeCheckboxNum)+" 个,")]),e._v(" "),t("span",[e._v("每题 "+e._s(e.vo.typeCheckboxGredit)+" 分")])]),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("判断题 "+e._s(e.vo.typeGudgeNum)+" 个,")]),e._v(" "),t("span",[e._v("每题 "+e._s(e.vo.typeGudgeGredit)+" 分")])]),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("填空题 "+e._s(e.vo.typeCompletionNum)+" 个,")]),e._v(" "),t("span",[e._v("每题 "+e._s(e.vo.typeCompletionGredit)+" 分")])]),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("问答题 "+e._s(e.vo.typeQaNum)+" 个,")]),e._v(" "),t("span",[e._v("每题 "+e._s(e.vo.typeQaGredit)+" 分")])])])])])])])])]):e._e(),2===e.vo.type?t("el-form",{model:{value:e.vo.passenger.num,callback:function(t){e.$set(e.vo.passenger,"num",t)},expression:"vo.passenger.num"}},[t("el-table",{attrs:{border:"",data:e.vo.passenger.num,"tooltip-effect":"dark"}},[t("el-table-column",{attrs:{type:"index",label:"序号",width:"45",align:"center"}}),t("el-table-column",{attrs:{prop:e.name,label:"题库",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.name))])]}}],null,!1,2020036417)}),t("el-table-column",{attrs:{label:"单选题",width:"80",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(" "+e._s(r.row.num1))])]}}],null,!1,2475668522)}),t("el-table-column",{attrs:{label:"多选题",width:"80",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(" "+e._s(r.row.num2))])]}}],null,!1,170138665)}),t("el-table-column",{attrs:{label:"判断题",width:"80",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(" "+e._s(r.row.num3))])]}}],null,!1,1731372456)}),t("el-table-column",{attrs:{label:"填空题",width:"80",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(" "+e._s(r.row.num4))])]}}],null,!1,3296389807)}),t("el-table-column",{attrs:{label:"问答题",width:"80",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(" "+e._s(r.row.num5))])]}}],null,!1,662902062)})],1)],1):e._e(),2===e.vo.type?t("div",{staticClass:"answerNotice"},[t("h4",{staticClass:"answerNoticeTitle"},[e._v("随机试卷说明:")]),e._m(0)]):e._e()],1):e._e(),"2"===e.typeContent?t("div",{staticClass:"problemBox"},e._l(e.vo.passenger.subjectManageList,(function(r,n){return t("div",{key:r,staticStyle:{"border-bottom":"1px solid #EBEEF5"}},[t("div",{staticClass:"paperInnerBox"},[1===r.type||3===r.type?t("danxuan",{attrs:{"current-index":n+1,"num-problem":e.numProblem,"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":0,"type-content":e.typeContent}}):e._e(),4===r.type?t("tiankong",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent}}):e._e(),2===r.type?t("duoxuan",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent}}):e._e(),5===r.type?t("wenda",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent}}):e._e()],1),t("div",{key:r.id,staticClass:"answerDetail clearfix"},[4!==r.type&&5!==r.type?t("div",{staticClass:"innerBox"},[t("span",[e._v("我的答案:")]),t("span",[e._v(e._s(e.vo.passenger.examAnswerInfoList[n].answerContent))]),1===e.vo.passenger.examAnswerInfoList[n].istrue&&-1!==e.DCvisible?t("svg-icon",{staticClass:"chooseIcon",attrs:{"icon-class":"gzbg_xj_tj"}}):e._e(),0===e.vo.passenger.examAnswerInfoList[n].istrue&&-1!==e.DCvisible?t("svg-icon",{staticClass:"chooseIcon",attrs:{"icon-class":"wrong"}}):e._e()],1):e._e(),4===r.type||5===r.type?t("div",{staticClass:"innerBox"},[4===r.type?t("span",[e._v("我的答案:")]):e._e(),4===r.type?t("span",[e._v(e._s(e.translateTrue(e.vo.passenger.examAnswerInfoList[n].answerContent)))]):e._e(),5===r.type?t("span",[e._v("我的答案:")]):e._e(),5===r.type?t("span",[e._v(e._s(e.vo.passenger.examAnswerInfoList[n].answerContent))]):e._e(),t("p",{staticStyle:{margin:"0"}},[e._v("得分:"+e._s(e.vo.passenger.examAnswerInfoList[n].grade))])]):e._e(),-1!==e.DAvisible?t("div",{staticClass:"innerBox"},[e.collspse?e._e():t("p",{staticStyle:{width:"1000px","text-overflow":"clip",margin:"0"}},[t("span",[e._v("正确答案:")]),t("span",[e._v(e._s(4===r.type?e.translateTrue(e.vo.passenger.subjectManageList[n].trueOption):e.vo.passenger.subjectManageList[n].trueOption))]),e.vo.passenger.subjectManageList[n].trueOption.length>50&&!e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1),e.collspse?t("p",{staticStyle:{width:"1000px",height:"auto","max-height":"200px",overflow:"auto",margin:"0"}},[t("span",[e._v("正确答案:")]),t("span",[e._v(e._s(4===r.type?e.translateTrue(e.vo.passenger.subjectManageList[n].trueOption):e.vo.passenger.subjectManageList[n].trueOption))]),e.vo.passenger.subjectManageList[n].trueOption.length>50&&e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1):e._e()]):e._e(),-1!==e.JXvisible?t("div",{staticClass:"innerBox"},[e.collspse?e._e():t("p",{staticStyle:{width:"1000px","text-overflow":"clip",margin:"0"}},[t("span",[e._v("答案解析:")]),e._v(e._s(e.vo.passenger.subjectManageList[n].answerExplain.substr(0,50))+" "),e.vo.passenger.subjectManageList[n].answerExplain.length>50&&!e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1),e.collspse?t("p",{staticStyle:{width:"1000px",height:"auto","max-height":"200px",overflow:"auto",margin:"0"}},[t("span",[e._v("答案解析:")]),e._v(e._s(e.vo.passenger.subjectManageList[n].answerExplain)+" "),e.vo.passenger.subjectManageList[n].answerExplain.length>50&&e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1):e._e()]):e._e()])])})),0):e._e(),"3"===e.typeContent&&null!==e.vo?t("div",{staticClass:"problemBox"},e._l(e.vo.subjectManages,(function(r,n){return t("div",{key:r,staticStyle:{"border-bottom":"1px solid #EBEEF5"}},[t("div",{staticClass:"paperInnerBox"},[1===r.type||3===r.type?t("danxuan",{attrs:{"current-index":n+1,"num-problem":e.numProblem,"problem-obj":r,"answer-content":e.vo.exerciseSubjects[n].answerContent,"can-edit":0,"type-content":e.typeContent}}):e._e(),4===r.type?t("tiankong",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent,"answer-content":e.vo.exerciseSubjects[n].answerContent}}):e._e(),2===r.type?t("duoxuan",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent,"answer-content":e.vo.exerciseSubjects[n].answerContent}}):e._e(),5===r.type?t("wenda",{attrs:{"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"type-content":e.typeContent,"answer-content":e.vo.exerciseSubjects[n].answerContent}}):e._e()],1),t("div",{key:r.id,staticClass:"answerDetail clearfix"},[t("div",{staticClass:"innerBox"},[t("span",[e._v("我的答案:")]),t("span",[e._v(e._s(e.vo.exerciseSubjects[n].answerContent))])]),4===r.type?t("div",{staticClass:"innerBox"},[t("span",[e._v("正确答案:")]),t("span",[e._v(e._s(e.translateTrue(e.vo.subjectManages[n].trueOption)))])]):e._e(),4!==r.type?t("div",{staticClass:"innerBox"},[t("span",[e._v("正确答案:")]),t("span",[e._v(e._s(e.vo.subjectManages[n].trueOption))])]):e._e(),t("div",{staticClass:"innerBox",staticStyle:{width:"100%"}},[e.collspse?e._e():t("p",{staticStyle:{width:"1000px","text-overflow":"clip","white-space":"nowrap",margin:"0"}},[t("span",[e._v("答案解析:")]),e._v(e._s(e.vo.subjectManages[n].answerExplain.substr(0,50))+" "),e.vo.subjectManages[n].answerExplain.length>50&&!e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1),e.collspse?t("p",{staticStyle:{width:"1000px",height:"auto","max-height":"200px",overflow:"auto",margin:"0"}},[t("span",[e._v("答案解析:")]),e._v(e._s(e.vo.subjectManages[n].answerExplain)+" "),e.vo.subjectManages[n].answerExplain.length>50&&e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1):e._e()])])])})),0):e._e()]],2)]):e._e()])},Ue=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"Notice-p"},[t("p",[e._v("1.随机试卷须设置题型试题数量、每题分值及试题选择的题库。")]),t("p",[e._v("2.考试时系统根据上面规则从选择的题库中随机选题。")]),t("p",[e._v("3.由于是根据规则随机选择题,所以每次考试的试题都不相同。")])])}];function qe(e){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(e)}function Xe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xe=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==qe(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(qe(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ke(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Je(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ke(o,n,a,i,s,"next",e)}function s(e){Ke(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){$e(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $e(e,t,r){return(t=et(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function et(e){var t=tt(e,"string");return"symbol"==qe(t)?t:t+""}function tt(e,t){if("object"!=qe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var rt={components:{danxuan:d,duoxuan:v,wenda:S,tiankong:L},props:[],data:function(){return{vo:null,typeContent:"",editNum:"",numProblem:"",totalTypeNum1:0,totalTypeNum2:0,totalTypeNum3:0,totalTypeNum4:0,totalTypeNum5:0,FSvisible:-1,DCvisible:-1,DAvisible:-1,JXvisible:-1,chapterName:"",collspse:!1,collectVo:"",isColl:!1,collectNum:0}},computed:Ze({},ce(["routes","loginUser"])),watch:function(){},created:function(){var e=this;return Je(Xe().mark((function t(){return Xe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.typeContent=e.$route.query.type,e.chapterName=e.$route.query.chapterName,"2"!==e.typeContent){t.next=7;break}return t.next=5,e.recordFormVo();case 5:t.next=15;break;case 7:if("1"!==e.typeContent){t.next=12;break}return t.next=10,e.initFormVo();case 10:t.next=15;break;case 12:if("3"!==e.typeContent){t.next=15;break}return t.next=15,e.exerciseFuc();case 15:e.isCollect(),e.collectCount();case 17:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){},mounted:function(){},methods:{openCollspse:function(){this.collspse=!this.collspse},updateSj:function(){window.open("/#/commonHeader?workform=@/wapp/ksgl/ksgl/paper/KsglPaperEdit&header=考试试卷&addOrUpdate=1&id=".concat(this.vo.id))},exerciseFuc:function(){var e=this;this.$http({url:"ksgl/courseChapter/getExerciseRecordResurt",method:"GET",params:{recordId:this.$route.query.id,chapterId:this.$route.query.chapterId,personId:this.$route.query.personId?this.$route.query.personId:this.loginUser.personId}}).then((function(t){"success"===t.code?(e.vo=t.body,e.numProblem=t.body.subjectManages.length):e.$message({type:"warning",message:t.body.message})}))},initFormVo:function(){var e=this;return Je(Xe().mark((function t(){var r;return Xe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.getById("ksgl/paper/getById",e.$route.query.id);case 2:r=t.sent,"success"===r.code?(e.vo=r.body.vo,2===e.vo.type?e.vo.passenger.paperTypePerson.forEach((function(t){e.totalTypeNum1+=t.TypeNum1,e.totalTypeNum2+=t.TypeNum2,e.totalTypeNum3+=t.TypeNum3,e.totalTypeNum4+=t.TypeNum4,e.totalTypeNum5+=t.TypeNum5,t.editNum=t.TypeNum1+t.TypeNum2+t.TypeNum3+t.TypeNum4+t.TypeNum5})):e.numProblem=r.body.vo.passenger.paperTypePerson.length):e.$message({type:"warning",message:r.body.message});case 4:case"end":return t.stop()}}),t)})))()},recordFormVo:function(){var e=this;return Je(Xe().mark((function t(){return Xe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$http({url:"ksgl/exam/getexamRecordMoreInfo",method:"GET",params:{examRecordId:e.$route.query.id}}).then((function(t){if("success"===t.code){e.vo=t.body.paper,e.numProblem=t.body.paper.subjectNum;var r=(new Date).valueOf(),n=new Date(e.vo.passenger.exam.endTime).valueOf();e.vo.passenger.exam.visibleConfig&&(r<n?(e.FSvisible=e.vo.passenger.exam.visibleConfig.indexOf("1"),e.DCvisible=e.vo.passenger.exam.visibleConfig.indexOf("2"),e.DAvisible=e.vo.passenger.exam.visibleConfig.indexOf("3"),e.JXvisible=e.vo.passenger.exam.visibleConfig.indexOf("4"),console.log(e.vo.passenger.exam.visibleConfig,e.vo.passenger.exam.visibleConfig.split(","))):(e.FSvisible=e.vo.passenger.exam.visibleConfig.indexOf("5"),e.DCvisible=e.vo.passenger.exam.visibleConfig.indexOf("6"),e.DAvisible=e.vo.passenger.exam.visibleConfig.indexOf("7"),e.JXvisible=e.vo.passenger.exam.visibleConfig.indexOf("8"))),console.log(r,n)}else e.$message({type:"warning",message:t.body.message})}));case 1:case"end":return t.stop()}}),t)})))()},translateTrue:function(e){if(e){var t=/\|\#\|/g,r=e.replace(t,",");return r}return e},isCollect:function(){var e=this;this.$http({url:"/user/collection/getIfCollection",method:"GET",params:{busiDataId:this.$route.query.id,operationType:"1",ownerId:this.loginUser.personId}}).then((function(t){"success"===t.code?e.isColl=t.body.data:e.$message({type:"warning",message:t.body.message})}))},collectCount:function(){var e=this;this.$http({url:"/user/collection/getCollectionCount",method:"GET",params:{busiDataId:this.$route.query.id,operationType:"1"}}).then((function(t){"success"===t.code?e.collectNum=t.body.data:e.$message({type:"warning",message:t.body.message})}))},Collection:function(){var e=this;return Je(Xe().mark((function t(){var r,n;return Xe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.addNew("/user/collection/addNew");case 2:if(r=t.sent,"success"!==r.code){t.next=18;break}return e.collectVo=r.body.vo,e.collectVo.busiDataId=e.$route.query.id,e.collectVo.type="答题详情",e.collectVo.ownerId=e.loginUser.personId,e.collectVo.operationType="1",e.collectVo.url=e.$route.fullPath,e.collectVo.module="exam",e.collectVo.title=e.vo.name||e.chapterName,t.next=14,e.$app.insert("/user/collection/insert",e.collectVo);case 14:n=t.sent,"success"===n.code?(e.$message.success(n.message),e.isCollect(),e.collectCount()):e.$message.success(n.message),t.next=19;break;case 18:e.$message.success(r.message);case 19:case"end":return t.stop()}}),t)})))()}}},nt=rt,at=(r(137),c(nt,Ve,Ue,!1,null,"c1e4a5e0",null)),ot=at.exports,it=function(){var e=this,t=e._self._c;return null!==e.vo?t("div",{staticStyle:{height:"calc(100vh - 61px)","overflow-y":"auto"}},[t("div",{staticClass:"header"},[t("div",{staticStyle:{"padding-top":"30px"}},[e._v(e._s(e.vo.passenger.exam.name))]),t("div",{staticClass:"small-title marGtop20"},[t("span",[e._v(" 考生姓名:"+e._s(e.vo.passenger.examRecord.personName)+" ")]),t("span",{staticStyle:{margin:"0 20px"}},[e._v(" 部门:"+e._s(e.vo.passenger.examRecord.personDept.split("-")[1])+" ")]),t("span",[e._v(" 交卷时间:"+e._s(e.vo.passenger.examRecord.endTime)+" ")])])]),t("div",{staticClass:"content"},[e._l(e.vo.passenger.subjectManageList,(function(r,n){return t("div",{key:r.id,staticClass:"problemDetail-box"},[[t("div",{staticClass:"paperInnerBox"},[1===r.type||3===r.type?t("danxuan",{attrs:{"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":0,"current-index":n+1,"type-content":"2"}}):2===r.type?t("duoxuan",{attrs:{"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":0,"current-index":n+1,"type-content":"2"}}):t("div",{staticClass:"pro-title"},[t("span",[e._v(e._s(n+1)+". ")]),1===r.type?t("span",{},[e._v("【单选题】")]):e._e(),2===r.type?t("span",{},[e._v("【多选题】")]):e._e(),3===r.type?t("span",{},[e._v("【判断题】")]):e._e(),4===r.type?t("span",{},[e._v("【填空题】")]):e._e(),5===r.type?t("span",{},[e._v("【问答题】")]):e._e(),t("span",[e._v(e._s(r.content))]),t("span",{staticClass:"TKbox"},[e._v("("+e._s(r.passenger.grade)+"分)")])])],1)],t("div",{staticClass:"pro-answerbox"},[t("div",{staticClass:"personanswer-box"},[t("span",{staticStyle:{"font-weight":"700"}},[e._v("Ta的答案:")]),2===r.type?t("span",[e._v(e._s(r.passenger.examAnswerInfo.answerContent?r.passenger.examAnswerInfo.answerContent.split(",").sort().join(","):r.passenger.examAnswerInfo.answerContent))]):e._e(),2!==r.type?t("span",[e._v(e._s(r.passenger.examAnswerInfo.answerContent))]):e._e()]),t("div",{staticClass:"trueanswer-box"},[t("span",{staticStyle:{"font-weight":"700"}},[e._v("正确答案:")]),t("span",[e._v(e._s(4===r.type?e.filterAnswer(r.trueOption):r.trueOption))])]),e.isdetail?e._e():t("div",[1===r.type||2===r.type||3===r.type?[t("div",[t("span",[e._v("批阅:")]),t("el-button",{staticClass:"btn color-green",class:{bgGreen:1===r.isRight},on:{click:function(t){return e.correct(r,n,"right")}}},[t("i",{staticClass:"el-icon-check"}),e._v("正确")]),t("el-button",{staticClass:"btn color-red",class:{bgRed:0===r.isRight},staticStyle:{"margin-left":"20px"},on:{click:function(t){return e.correct(r,n,"wrong")}}},[t("i",{staticClass:"el-icon-close"}),e._v("错误")])],1)]:[t("span",[e._v("得分:")]),t("span",[t("el-input-number",{attrs:{min:0,max:Number(r.passenger.grade)},model:{value:r.passenger.examAnswerInfo.grade,callback:function(t){e.$set(r.passenger.examAnswerInfo,"grade",t)},expression:"item.passenger.examAnswerInfo.grade"}})],1),t("span",[e._v(" "+e._s(Number(r.passenger.grade))+" 分 ")])]],2),e.isdetail?t("div",[t("span",[e._v("得分:")]),t("span",[e._v(" "+e._s(r.passenger.examAnswerInfo.grade)+" 分 ")])]):e._e()])],2)})),e.isdetail?e._e():t("div",{staticClass:"submit-box marGtop20"},[t("span",{staticStyle:{"margin-right":"20px"}},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.SubmitPaper("1")}}},[e._v("提交")])],1),t("span",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.SubmitPaper("2")}}},[e._v("保存并批阅下一张")])],1)])],2)]):e._e()},st=[];function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function ct(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ct=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==lt(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(lt(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ut(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function dt(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ut(o,n,a,i,s,"next",e)}function s(e){ut(o,n,a,i,s,"throw",e)}i(void 0)}))}}var pt={components:{danxuan:d,duoxuan:v},props:{},data:function(){return{checked:!1,vo:null,typeQaGredit:"",typeCompletionGredit:"",examerAnswerList:[],status:0,isdetail:!1,TrueAnswerList:[]}},computed:{},watch:{},created:function(){this.initFun()},beforeDestroy:function(){},mounted:function(){this.checked=!1,"2"===this.$route.query.status&&(this.isdetail=!0)},methods:{correct:function(e,t,r){var n="right"===r?1:0;this.$delete(this.vo.passenger.subjectManageList[t],"isRight"),this.$set(this.vo.passenger.subjectManageList[t],"isRight",n),this.vo.passenger.subjectManageList[t].passenger.examAnswerInfo.grade=1===n?parseInt(e.passenger.grade):0},initFun:function(){var e=this;this.$http({url:"ksgl/exam/getPiyueExamRecordMoreInfo",method:"GET",params:{examRecordId:this.$route.query.id}}).then((function(t){"success"===t.code?(e.vo=t.body.paper,e.typeQaGredit=t.body.paper.typeQaGredit,e.typeCompletionGredit=t.body.paper.typeCompletionGredit,e.vo.passenger.subjectManageList.forEach((function(e,t){e.passenger.examAnswerInfo.grade=0,1!==e.type&&2!==e.type&&3!==e.type||(e.isRight=0,e.passenger.examAnswerInfo.grade=0,e.passenger.examAnswerInfo.answerContent&&2===e.type&&(e.passenger.examAnswerInfo.answerContent=e.passenger.examAnswerInfo.answerContent.split(",").sort().join(",")),e.passenger.examAnswerInfo.answerContent&&e.passenger.examAnswerInfo.answerContent===e.trueOption&&(e.isRight=1,e.passenger.examAnswerInfo.grade=parseInt(e.passenger.grade)))})),e.vo.passenger.subjectManageList.sort((function(e,t){return e.passenger.examAnswerInfo.examNo-t.passenger.examAnswerInfo.examNo}))):e.$message({type:"warning",message:t.body.message})}))},filterAnswer:function(e){if(e){var t=/\|\#\|/g,r=e.replace(t,",");return r}return e},SubmitPaper:function(e){var t=this;return dt(ct().mark((function r(){var n,a;return ct().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.vo.passenger.examRecord.passenger.examAnswerInfoList=[],t.vo.passenger.subjectManageList.forEach((function(e,r){e.passenger.examAnswerInfo.passenger.grade=e.passenger.grade,e.passenger.examAnswerInfo.grade===e.passenger.grade&&(e.passenger.examAnswerInfo.istrue=1),t.vo.passenger.examRecord.passenger.examAnswerInfoList.push(e.passenger.examAnswerInfo)})),r.next=4,t.$app.update("/ksgl/examRecord/piyueExamRecord",t.vo.passenger.examRecord);case 4:n=r.sent,console.log(n),"success"===n.code?("2"===e?null!==n.body.examRecordId?t.$message({type:"success",message:"批阅完成,即将跳转到下一份试卷",duration:1e3,onClose:function(){var e=n.body.examRecordId;window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/grzx/sjpy/KsglGrzxSjpyExamPaperCorrecting&id="+e),window.location.reload()}}):t.$message({type:"success",message:"您已批完所有试卷,辛苦了!",duration:1e3,onClose:function(){window.close()}}):t.$message({type:"success",message:"批阅完成",duration:1e3,onClose:function(){window.close()}}),a=window.opener.document.querySelector(".el-icon-refresh"),null!==a&&a.parentElement.click()):t.$message({type:"warning",message:n.message});case 7:case"end":return r.stop()}}),r)})))()}}},ht=pt,ft=(r(4625),c(ht,it,st,!1,null,"80570cf0",null)),mt=ft.exports,yt=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{visible:e.show,"append-to-body":!0,"close-on-click-modal":!1,title:"我的错题",width:"850px"},on:{"update:visible":function(t){e.show=t}}},[t("li",{staticClass:"problemBox"},[t("div",[t("div",{staticClass:"paperInnerBox"},[1===e.item.type||3===e.item.type&&e.isShow?t("danxuan",{attrs:{"problem-obj":e.item,"answer-content":e.item.answerContent,"can-edit":0,"type-content":"2"}}):e._e(),4===e.item.type&&e.isShow?t("tiankong",{attrs:{"problem-obj":e.item,"can-edit":0,"type-content":"2","answer-content":e.item.answerContent}}):e._e(),2===e.item.type&&e.isShow?t("duoxuan",{attrs:{"problem-obj":e.item,"can-edit":0,"type-content":"2","answer-content":e.item.answerContent}}):e._e(),5===e.item.type&&e.isShow?t("wenda",{attrs:{"problem-obj":e.item,"can-edit":0,"type-content":"2","show-wenda":!0,"answer-content":e.item.answerContent}}):e._e()],1),t("div",{key:e.item.id,staticClass:"answerDetail clearfix"},[t("div",{staticClass:"li"},[t("span",{staticStyle:{"font-weight":"700"}},[e._v("你的答案:")]),t("span",[e._v(e._s(e.item.answerContent))]),t("span",{staticStyle:{"font-weight":"700","margin-left":"80px"}},[e._v("正确答案:")]),t("span",[e._v(" "+e._s(e.item.trueOption))])]),t("div",{staticClass:"li",staticStyle:{"margin-top":"20px"}},[t("span",{staticStyle:{"font-weight":"700"}},[e._v("答案解析:")]),t("span",[e._v(" "+e._s(e.item.answerExplain))])]),t("div",{staticClass:"li",staticStyle:{width:"100%"}},[e.collspse?t("p",{staticStyle:{width:"650px",height:"auto","max-height":"200px",overflow:"auto"}},[e._v(e._s(e.item.answerExplain))]):e._e()])])])]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["{}"!==JSON.stringify(e.item)?[t("el-button",{attrs:{type:"primary",disabled:e.item&&!e.item.passenger.beforeId},on:{click:e.toUp}},[e._v("上一题")]),t("el-button",{attrs:{type:"primary",disabled:e.item&&!e.item.passenger.afterId},on:{click:e.toNext}},[e._v("下一题")])]:e._e()],2)])],1)},vt=[];function gt(e){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gt(e)}function _t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_t=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==gt(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(gt(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function bt(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function wt(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){bt(o,n,a,i,s,"next",e)}function s(e){bt(o,n,a,i,s,"throw",e)}i(void 0)}))}}var xt={components:{danxuan:d,duoxuan:v,wenda:S,tiankong:L},props:{row:{type:Object,default:function(){return{}}}},data:function(){return{data:{},show:!1,item:{},isShow:!1}},computed:{},watch:{},created:function(){var e=this;this.$bus.on("showlog",(function(t){e.show=!1,e.isShow=!1,e.getById(t).then((function(t){e.item=t,e.item.optionList=[],e.item.optionList=JSON.parse(e.item.subjectOption),e.$forceUpdate(),e.show=!0,e.isShow=!0}))}))},beforeDestroy:function(){},mounted:function(){},methods:{getById:function(e){var t=this,r={id:e.id};return this.$route.query&&this.$route.query.urlsearch&&(r={id:e.id,errorType:parseInt(this.$route.query.urlsearch.split(":")[1])}),new Promise(function(){var e=wt(_t().mark((function e(n,a){return _t().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$http({method:"get",contentType:"application/x-www-form-urlencoded",params:r,url:"ksgl/errorRecord/getById"}).then((function(e){"success"===e.code?n(e.body.vo):a(e.message)}));case 2:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}())},toNext:function(){var e=this;this.isShow=!1,this.getById({id:this.item.passenger.afterId}).then((function(t){e.item=t,e.item.optionList=[],e.item.optionList=JSON.parse(e.item.subjectOption),e.$forceUpdate(),e.isShow=!0}))},toUp:function(){var e=this;this.isShow=!1,this.getById({id:this.item.passenger.beforeId}).then((function(t){e.item=t,e.item.optionList=[],e.item.optionList=JSON.parse(e.item.subjectOption),e.$forceUpdate(),e.isShow=!0}))}}},Lt=xt,Mt=(r(7298),c(Lt,yt,vt,!1,null,"772e8499",null)),kt=Mt.exports,Tt=function(){var e=this,t=e._self._c;return null!==e.vo?t("div",{staticStyle:{"padding-top":"30px 50px 0"}},[t("p",{staticStyle:{"font-size":"24px","text-align":"center",margin:"20px 0 20px","font-weight":"bold"}},[e._v(e._s(e.vo.name))]),t("div",{staticStyle:{"text-align":"center"},on:{click:e.Collection}},[t("svg-icon",{attrs:{"icon-class":e.isColl?"fiveStar1":"fiveStar"}}),t("span",[e._v(e._s(e.collectNum)+" 次")])],1),t("el-form",{staticStyle:{"text-align":"center"}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%","margin-top":"30px","margin-bottom":"20px"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("考试时间")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.startTime.substr(0,16))+" 至 "+e._s(e.vo.endTime.substr(0,16)))])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("考试限时")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[0===e.vo.examLimit?t("span",[e._v("不限制")]):t("span",[e._v(e._s(e.vo.examLimit)+" 分钟")])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("试题总数")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.passenger.paper.subjectNum))])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("及格分数")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[0===e.vo.passGrade?t("span",[e._v("不限制")]):t("span",[e._v(e._s(e.vo.passGrade)+" 分")])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("试题总分")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.passenger.paper.totalGrade)+" 分")])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("可获学分")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.credit)+" 分")])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("考试次数")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(" "+e._s(e.vo.passenger.examCount)+"次/ "),0===e.vo.examTimes?t("span",[e._v("(不限制)")]):t("span",[e._v("(可考"+e._s(e.vo.examTimes)+"次)")])])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("最近一次交卷")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.passenger.examRecords.length>0?e.vo.passenger.examRecords[0].endTime:""))])])])])])])]),null!==e.vo?[t("el-button",{staticClass:"examBtn",attrs:{size:"small",type:1===e.vo.passenger.state||2===e.vo.passenger.state?"primary":"warning",disabled:0===e.vo.passenger.state},on:{click:function(t){return e.onlineExam()}}},[e._v(e._s(1===e.vo.passenger.state?"开始考试":2===e.vo.passenger.state?"重新考试":3===e.vo.passenger.state?"继续考试":"开始考试"))])]:e._e()],2),null!==e.vo&&e.vo.passenger.examCount>0?t("section",{staticClass:"answerDetail"},[t("h4",{staticClass:"answerTitle"},[e._v("答题情况")]),t("div",{staticStyle:{width:"100%",margin:"0 auto"}},[t("el-table",{attrs:{border:"",data:e.tableData,"tooltip-effect":"dark"}},[t("el-table-column",{attrs:{prop:"startTime",label:"开始时间",align:"center"}}),t("el-table-column",{attrs:{prop:"endTime",label:"交卷时间",align:"center"}}),t("el-table-column",{attrs:{prop:"grade",label:"考试成绩",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(" "+e._s(null===r.row.grade||2!==r.row.status&&9!==r.row.status?"--":r.row.grade)+" ")])]}}],null,!1,2939032910)}),t("el-table-column",{attrs:{label:"状态",width:"150",align:"center",prop:"status","column-key":"status"},scopedSlots:e._u([{key:"default",fn:function(r){return[3!==e.vo.passenger.state||r.row.endTime?[9===r.row.status?[0===r.row.ispass?t("span",{staticStyle:{color:"#F56C6C"}},[e._v("未通过")]):t("span",[e._v("无效")])]:t("span",{style:{color:1===r.row.status?"#E6A23C":2===r.row.status&&0===r.row.ispass?"#F56C6C":"#000"}},[e._v(" "+e._s(8===r.row.status?"未完成":9===r.row.status?"无效":1===r.row.status?"未批阅":2===r.row.status&&0===r.row.ispass?"未通过":"已通过")+" ")])]:[e._v("进行中")]]}}],null,!1,1740942823)}),t("el-table-column",{attrs:{label:"操作",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[3!==e.vo.passenger.state||r.row.endTime?[2!==r.row.status&&9!==r.row.status&&1!==r.row.status?t("span",{staticStyle:{color:"#909399"},attrs:{disabled:"",size:"mini"}},[e._v("查看答题详情")]):t("span",{staticStyle:{cursor:"pointer",color:"#409EFF"},attrs:{size:"mini"},on:{click:function(t){return e.getDeatil(r.row.id)}}},[e._v("查看答题详情")])]:[t("span",{staticStyle:{cursor:"pointer",color:"#409EFF"},attrs:{size:"mini"},on:{click:function(t){return e.onlineExam(r.row.id)}}},[e._v("继续考试")])]]}}],null,!1,392279428)})],1)],1)]):e._e(),t("section",{staticClass:"answerNotice"},[t("h4",{staticClass:"answerNoticeTitle"},[e._v("考试说明")]),t("div",{staticClass:"Notice-p"},[t("p",[e._v(e._s(e.vo.introduction))])])]),e._m(0)],1):e._e()},Dt=[function(){var e=this,t=e._self._c;return t("section",{staticClass:"answerNotice"},[t("h4",{staticClass:"answerNoticeTitle"},[e._v("答题须知")]),t("div",{staticClass:"Notice-p"},[t("p",[e._v("1.答题卡上通过颜色区分哪些已做,哪些未做,点击试题编号可快速定位试题。")]),t("p",[e._v("2.如果考试限定时间,请在倒计时结束前完成答卷,倒计时结束时会自动交卷。")]),t("p",[e._v("3.如果考试允许重考,取历次考试的最高分。")])])])}];function Yt(e){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(e)}function St(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */St=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Yt(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Yt(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ct(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function jt(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ct(o,n,a,i,s,"next",e)}function s(e){Ct(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(r),!0).forEach((function(t){Pt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pt(e,t,r){return(t=At(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function At(e){var t=Nt(e,"string");return"symbol"==Yt(t)?t:t+""}function Nt(e,t){if("object"!=Yt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ht={components:{},props:[],data:function(){return{vo:null,tableData:null,collectVo:"",isColl:!1,collectNum:0}},computed:Ot({},ce(["routes","loginUser"])),watch:function(){},created:function(){var e=this;return jt(St().mark((function t(){return St().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$http({url:"ksgl/exam/getByIdAndPersionId",method:"GET",params:{id:e.$route.query.id,personId:e.loginUser.personId}}).then((function(t){"success"===t.code?(e.vo=t.body.vo,e.tableData=t.body.vo.passenger.examRecords,e.isCollect(),e.collectCount()):e.$message({type:"warning",message:t.body.message})}));case 2:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){},mounted:function(){},methods:{isCollect:function(){var e=this;this.$http({url:"/user/collection/getIfCollection",method:"GET",params:{busiDataId:this.vo.id,operationType:"1",ownerId:this.loginUser.personId}}).then((function(t){"success"===t.code?e.isColl=t.body.data:e.$message({type:"warning",message:t.body.message})}))},collectCount:function(){var e=this;this.$http({url:"/user/collection/getCollectionCount",method:"GET",params:{busiDataId:this.vo.id,operationType:"1"}}).then((function(t){"success"===t.code?e.collectNum=t.body.data:e.$message({type:"warning",message:t.body.message})}))},Collection:function(){var e=this;return jt(St().mark((function t(){var r,n;return St().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.addNew("/user/collection/addNew");case 2:if(r=t.sent,"success"!==r.code){t.next=18;break}return e.collectVo=r.body.vo,e.collectVo.busiDataId=e.vo.id,e.collectVo.type="考试",e.collectVo.ownerId=e.loginUser.personId,e.collectVo.operationType="1",e.collectVo.url=e.$route.fullPath,e.collectVo.module="exam",e.collectVo.title=e.vo.name,t.next=14,e.$app.insert("/user/collection/insert",e.collectVo);case 14:n=t.sent,"success"===n.code?(e.$message.success(n.message),e.isCollect(),e.collectCount()):e.$message.success(n.message),t.next=19;break;case 18:e.$message.success(r.message);case 19:case"end":return t.stop()}}),t)})))()},getDeatil:function(e){var t=1===this.vo.type?"学习考试/正式考试/"+this.vo.name+"/答题详情":"学习考试/模拟考试/"+this.vo.name+"/答题详情";window.open("/#/commonHeader?workform=@/wapp/ksgl/components/KsglComponentProblemDetail&type=2&id="+e+"&logoTitle="+encodeURIComponent(t))},onlineExam:function(e){var t=1===this.vo.type?"学习考试/正式考试/"+this.vo.name+"/考试":"学习考试/模拟考试/"+this.vo.name+"/考试",r=e||this.vo.passenger.examRecords[0].id;window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/grzx/wdks/KsglGrzxWdksOnlineExam&id="+r+"&state="+this.vo.passenger.state+"&examId="+this.vo.id+"&logoTitle="+encodeURIComponent(t)+"&examLimit="+this.vo.examLimit),window.location.reload()}}},It=Ht,Ft=(r(1205),c(It,Tt,Dt,!1,null,"9e2748d8",null)),zt=Ft.exports,Bt=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"padding-top":"30px"}},[null!==e.vo?t("section",{staticClass:"online-top",staticStyle:{position:"relative"}},[t("p",{staticClass:"examTitle"},[e._v(e._s(e.examName))]),e._m(0),t("div",{staticClass:"timePostion"},[e.examLimit?t("span",{staticClass:"timeRemaining"},[t("span",[e._v("剩余时间:")]),t("span",[e._v(e._s(e.CutdownTime))])]):e._e(),t("el-button",{staticStyle:{position:"absolute",top:"56px",right:"0"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.submitpaper()}}},[e._v("提交试卷")])],1),t("ul",{staticClass:"cards clearfix"},e._l(e.vo.passenger.examAnswerInfoList,(function(r,n){return t("div",{key:r},[t("li",{class:n===e.defaultProblem?"zhengzaizuo":null!==r.answerContent&&""!==r.answerContent?"yizuo":"weizuo",on:{click:function(t){return e.linkNum(r,n)}}},[e._v(e._s(n+1))])])})),0)]):e._e(),null!==e.vo?t("section",{staticClass:"paperBox"},[t("ul",{staticClass:"paperInnerBox"},e._l(e.vo.passenger.subjectManageList,(function(r,n){return t("div",{key:r},[t("li",{directives:[{name:"show",rawName:"v-show",value:e.defaultProblem===n,expression:"defaultProblem === index"}],staticStyle:{"list-style":"none"}},[1===r.type||3===r.type?t("danxuan",{attrs:{"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e(),4===r.type?t("tiankong",{attrs:{"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e(),5===r.type?t("wenda",{attrs:{"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e(),2===r.type?t("duoxuan",{attrs:{"problem-obj":r,"answer-content":e.vo.passenger.examAnswerInfoList[n].answerContent,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e()],1)])})),0),t("div",{staticClass:"btnBox"},[e.defaultProblem>0?t("el-button",{attrs:{size:"mini",plain:""},on:{click:function(t){return e.beforeAndNext("before")}}},[e._v("上一题")]):e._e(),e.defaultProblem<e.numProblem-1?t("el-button",{attrs:{size:"mini",plain:""},on:{click:function(t){return e.beforeAndNext("next")}}},[e._v("下一题")]):e._e(),t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.beforeAndNext("nextAndSubmit")}}},[e._v("确定")])],1)]):e._e()])},Gt=[function(){var e=this,t=e._self._c;return t("ul",{staticClass:"cardTitle clearfix"},[t("li",[e._v("答题卡")]),t("li",[t("span",{staticStyle:{display:"inline-block",width:"10px",height:"10px","background-color":"rgba(64, 158, 255, 0.6)"}}),t("span",[e._v(" 已做")])]),t("li",[t("span",{staticStyle:{display:"inline-block",width:"10px",height:"10px","background-color":"rgba(235, 237, 240, 1)"}}),t("span",[e._v(" 未做")])]),t("li",[t("span",{staticStyle:{display:"inline-block",width:"10px",height:"10px","background-color":"rgba(64, 158, 255, 1)"}}),t("span",[e._v(" 当前")])])])}];function Rt(e){return Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(e)}function Wt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Rt(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Rt(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Vt(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Ut(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Vt(o,n,a,i,s,"next",e)}function s(e){Vt(o,n,a,i,s,"throw",e)}i(void 0)}))}}function qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(r),!0).forEach((function(t){Kt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Kt(e,t,r){return(t=Jt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jt(e){var t=Qt(e,"string");return"symbol"==Rt(t)?t:t+""}function Qt(e,t){if("object"!=Rt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Zt={components:{danxuan:d,duoxuan:v,wenda:S,tiankong:L},props:{},data:function(){return{vo:null,numProblem:"",problemsList:[],examAnswerList:[],defaultProblem:0,CutdownTime:"",examAnswerParams:null,examRecord:null,examLimit:null,examName:""}},computed:Xt({},ce(["routes","loginUser"])),watch:function(){},created:function(){this.getExamName(),this.initExamVo()},beforeDestroy:function(){},mounted:function(){var e=this;this.$bus.on("answerContentInner",(function(t){e.examAnswerParams=t,console.log(t)})),this.examLimit=parseInt(this.$route.query.examLimit)},methods:{getExamName:function(){var e=this;this.$http({url:"ksgl/exam/getByIdAndPersionId",method:"GET",params:{id:this.$route.query.examId,personId:this.loginUser.personId}}).then((function(t){"success"===t.code?e.examName=t.body.vo.name:e.$message({type:"warning",message:t.body.message})}))},initExamVo:function(){var e=this;this.$http({url:"ksgl/exam/getexamRecordInfo",method:"GET",params:{examRecordId:this.$route.query.id,state:this.$route.query.state,personId:this.loginUser.personId}}).then((function(t){"success"===t.code?(e.vo=t.body.paper,e.numProblem=t.body.paper.passenger.subjectManageList.length,e.problemsList=t.body.paper.passenger.subjectManageList,e.examAnswerList=t.body.paper.passenger.examAnswerInfoList,e.examRecord=t.body.paper.passenger.examRecord,e.DellTime()):e.$message({type:"warning",message:t.message})}))},beforeAndNext:function(e){var t=this;if(null!==this.examAnswerParams&&(this.examAnswerList.map((function(e,r){t.examAnswerList[t.examAnswerParams.indexProblem-1].answerContent=t.examAnswerParams.value,t.examAnswerList[t.examAnswerParams.indexProblem-1].grade=t.examAnswerParams.grade})),this.examAnswerParams.indexProblem===this.defaultProblem+1&&this.updataAnswer()),"before"===e)this.defaultProblem--;else if("next"===e)console.log(this.defaultProblem),console.log(123,this.numProblem),this.defaultProblem!==this.numProblem-1&&this.defaultProblem++;else if("nextAndSubmit"===e)if(this.defaultProblem!==this.numProblem-1)this.defaultProblem++;else{for(var r=!0,n=0;n<this.vo.passenger.examAnswerInfoList.length;n++)""!==this.vo.passenger.examAnswerInfoList[n].answerContent&&null!==this.vo.passenger.examAnswerInfoList[n].answerContent||(this.linkNum(n,n),r=!1);r&&this.$confirm("已经是最后一题,是否提交答卷!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.submitPaperFuc()}))}},linkNum:function(e,t){this.defaultProblem=t,console.log(this.defaultProblem)},updataAnswer:function(){var e=this;return Ut(Wt().mark((function t(){var r;return Wt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.vo.passenger.examAnswerInfoList[e.examAnswerParams.indexProblem-1].answerContent=e.examAnswerList[e.examAnswerParams.indexProblem-1].answerContent,t.next=3,e.$app.update("ksgl/examAnswerInfo/update",e.examAnswerList[e.examAnswerParams.indexProblem-1]);case 3:r=t.sent,"success"===r.code?console.log(r):e.$message({type:"warning",message:r.message});case 5:case"end":return t.stop()}}),t)})))()},submitpaper:function(){var e=this,t=this.examAnswerList.filter((function(t,r){return!e.examAnswerList[r].answerContent}));console.log(t),t.length>0?this.$confirm("你还有".concat(t.length,"道题尚未作答, 是否确认交卷?"),"交卷确认",{confirmButtonText:"确认提交",cancelButtonText:"取消",type:"warning"}).then((function(){e.submitPaperFuc()})).catch((function(){})):this.$confirm("是否确认交卷?","交卷确认",{confirmButtonText:"确认提交",cancelButtonText:"取消",type:"warning"}).then((function(){e.submitPaperFuc()})).catch((function(){}))},submitPaperFuc:function(){var e=this;this.$http({url:"ksgl/examRecord/submitExamRecord",method:"PUT",data:this.examRecord}).then((function(t){if("success"!==t.code)return e.$message({type:"warning",message:t.message}),!1;window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/grzx/wdks/KsglGrzxWdksSubmitResult&id="+t.body.examRecordId+"&type=2&logoTitle="+encodeURIComponent("学习考试")),window.location.reload(),clearInterval()}))},DellTime:function(){var e=parseInt(this.vo.passenger.remainingTime);this.CutdownTime=this.ChangeTime(e);var t=this;setInterval((function(){e-=1,t.CutdownTime=t.ChangeTime(e),0===e&&t.submitPaperFuc()}),1e3)},ChangeTime:function(e){var t=e,r="",n=0,a=0,o=0;return e===parseInt(0)?void 0:(t>=3600&&(n=parseInt(t/3600),t=parseInt(t%3600)),t>=60&&(a=parseInt(t/60),t=parseInt(t%60)),t>0&&(o=parseInt(t%60)),o>=0&&(r=o<10?"0"+o:o+""),a>0&&(r=a<10?"0"+a+":"+r:a+":"+r),n>0&&(r=n<10?"0"+n+":"+r:n+":"+r),r)}}},$t=Zt,er=(r(7564),c($t,Bt,Gt,!1,null,"1c54f623",null)),tr=er.exports,rr=function(){var e=this,t=e._self._c;return null!==e.vo?t("div",{staticClass:"outerBox"},[t("div",{staticClass:"titleMessage"},[t("h4",{staticStyle:{"font-size":"24px",margin:"0","margin-bottom":"20px","font-weight":"bold"}},[e._v(e._s(e.vo.passenger.exam.name))]),1!==e.vo.passenger.examRecord.status&&0===e.vo.passenger.examRecord.ispass?t("img",{staticClass:"imgStatus",attrs:{src:r(4969),alt:""}}):e._e(),1!==e.vo.passenger.examRecord.status&&1===e.vo.passenger.examRecord.ispass?t("img",{staticClass:"imgStatus",attrs:{src:r(7732),alt:""}}):e._e(),1===e.vo.passenger.examRecord.status?t("img",{staticClass:"imgStatus",attrs:{src:r(9942),alt:""}}):e._e(),t("p",[t("span",{staticStyle:{color:"#409EFF","font-size":"30px"}},[e._v(" "+e._s(null===e.vo.passenger.examRecord.grade?"--":e.vo.passenger.examRecord.grade)+" ")]),t("span",{staticStyle:{color:"#409EFF","font-size":"16px"}},[e._v(" 分")])]),1!==e.vo.passenger.examRecord.status&&0===e.vo.passenger.examRecord.ispass?t("p",[e._v("很遗憾,未通过,继续努力")]):e._e(),1===e.vo.passenger.examRecord.status?t("p",[e._v("待批阅,请等待!")]):e._e(),1!==e.vo.passenger.examRecord.status&&1===e.vo.passenger.examRecord.ispass?t("p",[e._v("恭喜您,本次考试通过!")]):e._e()]),t("el-form",{staticStyle:{"text-align":"center"}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%","margin-top":"10px","margin-bottom":"20px"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("考试时间")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.passenger.exam.startTime.substr(0,16))+" 至 "+e._s(e.vo.passenger.exam.endTime.substr(0,16)))])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("考试时长")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[0===e.vo.passenger.exam.examLimit?t("span",[e._v("不限制")]):t("span",[e._v(e._s(e.vo.passenger.exam.examLimit)+" 分钟")])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("试题总数")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.subjectNum))])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("及格分数")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[0===e.vo.passenger.exam.passGrade?t("span",[e._v("不限制")]):e._e(),t("span",[e._v(e._s(e.vo.passenger.exam.passGrade)+" 分")])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("试题总分")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.totalGrade)+" 分")])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("可获学分")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.passenger.exam.credit)+" 分")])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("考试次数")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(" "+e._s(e.vo.passenger.exam.passenger.examCount)+"次/ "),0===e.vo.passenger.exam.examTimes?t("span",[e._v("(不限制)")]):t("span",[e._v("(可考"+e._s(e.vo.passenger.exam.examTimes)+"次)")])])]),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("交卷时间")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("span",[e._v(e._s(e.vo.passenger.examRecord.endTime))])])])])])])])]),t("div",{staticClass:"btnBox"},[1!==e.vo.passenger.examRecord.status?t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.getDeatil()}}},[e._v("答题详情")]):e._e(),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.onlineExam()}}},[e._v("不满意,重新考试")])],1)],1):e._e()},nr=[];function ar(e){return ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ar(e)}function or(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */or=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ar(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ar(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ir(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function sr(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ir(o,n,a,i,s,"next",e)}function s(e){ir(o,n,a,i,s,"throw",e)}i(void 0)}))}}function lr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(r),!0).forEach((function(t){ur(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ur(e,t,r){return(t=dr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dr(e){var t=pr(e,"string");return"symbol"==ar(t)?t:t+""}function pr(e,t){if("object"!=ar(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ar(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var hr={components:{},props:[],data:function(){return{vo:null}},computed:cr({},ce(["routes","loginUser"])),created:function(){var e=this;return sr(or().mark((function t(){return or().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.recordFormVo();case 1:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){},mounted:function(){},methods:{getDeatil:function(){window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/components/KsglComponentProblemDetail&type=2&id="+this.$route.query.id+"&logoTitle="+encodeURIComponent("学习考试")),window.location.reload()},onlineExam:function(){window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/grzx/wdks/KsglGrzxWdksExamDetail&type=2&id="+this.vo.passenger.exam.id+"&logoTitle="+encodeURIComponent("学习考试")),window.location.reload()},recordFormVo:function(){var e=this;return sr(or().mark((function t(){return or().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$http({url:"ksgl/exam/getexamRecordMoreInfo",method:"GET",params:{examRecordId:e.$route.query.id,personId:e.loginUser.personId}}).then((function(t){"success"===t.code?e.vo=t.body.paper:e.$message({type:"warning",message:t.body.message})}));case 1:case"end":return t.stop()}}),t)})))()}}},fr=hr,mr=(r(4821),c(fr,rr,nr,!1,null,"607248c4",null)),yr=mr.exports,vr=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"app-container"},[t("div",{staticClass:"topBtn clearfix"},[t("el-radio-group",{attrs:{size:"small"},on:{change:function(t){return e.initCourse(e.activeType)}},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},[t("el-radio-button",{attrs:{label:"0"}},[e._v("全部")]),t("el-radio-button",{attrs:{label:"1"}},[e._v("线上")]),t("el-radio-button",{attrs:{label:"2"}},[e._v("线下")])],1)],1),e.loading?e._e():t("div",{staticClass:"contentBox",staticStyle:{width:"100%"}},[t("el-row",{attrs:{gutter:"10",justify:"space-between"}},e._l(e.listdata,(function(r){return t("el-col",{key:r,attrs:{xs:8,sm:6,md:6,lg:6,xl:4}},[t("div",{staticClass:"outerBox",staticStyle:{width:"100%"}},[t("div",{staticClass:"courseBox"},[t("div",{staticClass:"imgCont"},[2===r.courseType?t("svg-icon",{staticStyle:{position:"absolute",width:"48px",height:"48px"},attrs:{"icon-class":"triangle"}}):e._e(),2===r.courseType?t("span",{staticStyle:{position:"absolute",transform:"rotate(-45deg)",top:"10px",left:"2px",color:"#fff"}},[e._v("选修")]):e._e(),t("img",{staticClass:"courseImg",attrs:{src:e.base_api+"/ksgl/course/download?dataField=cover&nameField=coverUrl&id="+r.id,alt:""},on:{click:function(t){return e.goDetail(r.id)}}}),"0"===e.activeType?t("span",{staticClass:"shoukeType"},[e._v(e._s(1===r.shoukeType?"线上":"线下"))]):e._e()],1),t("div",{staticClass:"courseTitle"},[t("div",{staticClass:"courseTitleTop clearfix"},[t("p",{staticClass:"l",staticStyle:{width:"100%",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis","font-size":"16px","margin-top":"7px",margin:"0"}},[e._v(e._s(r.name))]),r.lastStudyTime?t("p",{staticClass:"color3 margin5",staticStyle:{color:"#999","line-height":"20px"}},[e._v("最近学习:"+e._s(r.lastStudyTime)+" ")]):t("p",{staticClass:"color3 margin5",staticStyle:{color:"#999","line-height":"20px"}},[e._v("暂无学习记录 ")])]),t("div",{staticClass:"courseTitleBottom clearfix"},[t("el-progress",{staticClass:"l",staticStyle:{width:"80%","margin-top":"16px"},attrs:{"stroke-width":10,"show-text":!1,color:"#48BA79",percentage:r.coursePercentage}}),void 0!==r.finishChapterNum?t("span",{staticClass:"r"},[e._v(e._s(r.coursePercentage)+"%")]):e._e()],1)]),t("div",{staticClass:"dialog",on:{click:function(t){return e.goDetail(r.id)}}},[t("div",{staticClass:"btn-content"},[t("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.goDetail(r.id)}}},[e._v("查看课程")])],1)])])])])})),1),e.total>0?t("el-pagination",{attrs:{align:"right","current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total,"page-sizes":[12,18,24,36,48],"page-size":e.pageSize},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),0===e.total&&"w"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"images/w-imgs/nomessage.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("暂无数据")])]):e._e(),0===e.total&&"m"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"./images/m-imgs/nosearch.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("抱歉,无相关内容")])]):e._e()],1)])},gr=[];function _r(e){return _r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r(e)}function br(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */br=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==_r(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(_r(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function wr(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function xr(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){wr(o,n,a,i,s,"next",e)}function s(e){wr(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Lr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(r),!0).forEach((function(t){kr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kr(e,t,r){return(t=Tr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tr(e){var t=Dr(e,"string");return"symbol"==_r(t)?t:t+""}function Dr(e,t){if("object"!=_r(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Yr={components:{},props:{},data:function(){return{total:"",listdata:[],currentPage:1,pageNum:1,pageSize:100,checkList:[],activeType:"0",loading:!0,base_api:"",percentage:0,searchText:"",useImg:"w"}},computed:Mr({},ce(["routes","loginUser"])),watch:{},created:function(){this.base_api="/apigw",this.initCourse(),this.$bus.emit("hiddenAdvSearch",!0)},beforeDestroy:function(){this.$bus.emit("hiddenAdvSearch",!1)},mounted:function(){var e=this;this.$bus.on("searchListData",(function(t){e.useImg="m",e.searchText=t,e.initCourse(e.activeType)}))},methods:{handleSizeChange:function(e){console.log("每页 ".concat(e," 条"))},handleCurrentChange:function(e){console.log("当前页: ".concat(e)),this.currentPage=e,this.initCourse(this.activeType)},coursePercentage:function(e,t){return 0===t?0:(e/t*100).toFixed(1)},goDetail:function(e){window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type=3&id="+e+"&logoTitle="+encodeURIComponent("学习考试/学员中心/我的课程"))},initCourse:function(e){var t=this;return xr(br().mark((function r(){var n,a,o;return br().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(t.loading=!0,n={},n["name"]=t.searchText,a={pageNum:t.currentPage,pageSize:t.pageSize,orderBy:"lastStudyTime desc",orgCode:t.loginUser.orgCode,searchMap:n},o="","1"!==e){r.next=12;break}return t.activeType="1",r.next=9,t.$app.listdata("/ksgl/vwPersonCourse/listdata?urlsearch=shoukeType:1;finishStatus:1,2;status:1;ispublish:1;personId:"+t.loginUser.personId,a);case 9:o=r.sent,r.next=23;break;case 12:if("2"!==e){r.next=19;break}return t.activeType="2",r.next=16,t.$app.listdata("/ksgl/vwPersonCourse/listdata?urlsearch=shoukeType:2;finishStatus:1,2;status:1;ispublish:1;personId:"+t.loginUser.personId,a);case 16:o=r.sent,r.next=23;break;case 19:return t.activeType="0",r.next=22,t.$app.listdata("/ksgl/vwPersonCourse/listdata?urlsearch=status:1;finishStatus:1,2;ispublish:1;personId:"+t.loginUser.personId,a);case 22:o=r.sent;case 23:"success"===o.code?(console.log(o,12121212),t.total=o.body.pageInfo.total,t.listdata=o.body.pageInfo.list,t.listdata.forEach((function(e){e.coursePercentage=t.coursePercentage(e.finishChapterNum,e.courseNum)}))):t.$message.error(o.message),t.loading=!1;case 25:case"end":return r.stop()}}),r)})))()},transTime:function(e){if(null===e)return e=0,e;if(e<60)return e+="秒",e;var t=Math.floor(e/60),r=Math.floor(e%60);if(t<60)return e=t+"分"+r+"秒",e;var n=Math.floor(t/60),a=Math.floor(t%60);return e=n+"小时"+a+"分"+r+"秒",e}}},Sr=Yr,Cr=(r(4762),r(1989),c(Sr,vr,gr,!1,null,"18334cb0",null)),jr=Cr.exports,Er=function(){var e=this,t=e._self._c;return t("div",[t("section",{staticClass:"wh_container"},[t("div",{staticClass:"wh_content_all"},[e.isSwitchover?e._e():t("div",{staticClass:"wh_top_title"},[t("div",{staticStyle:{"padding-left":"30px"},on:{click:function(t){e.leftArrowShow&&e.swiperight()}}},[t("el-button",{class:e.leftArrowShow?"":"topArrow",attrs:{icon:"el-icon-arrow-left"}})],1),t("div",{staticStyle:{width:"100%","text-align":"center","font-size":"16px"}},[e._v(e._s(e.dateTop))]),t("div",{staticStyle:{"padding-right":"30px"},on:{click:function(t){e.rightArrowShow&&e.swipeleft()}}},[t("el-button",{class:e.rightArrowShow?"":"topArrow",attrs:{icon:"el-icon-arrow-right"}})],1)]),e.isSwitchover?t("div",{staticClass:"wh_top_changge"},[t("li",{on:{click:function(t){return e.PreMonth(e.myDate,!1)}}},[t("div",{staticClass:"wh_jiantou1"})]),t("li",{staticClass:"wh_content_li"},[e._v(e._s(e.dateTop))]),t("li",{on:{click:function(t){return e.NextMonth(e.myDate,!1)}}},[t("div",{staticClass:"wh_jiantou2"})])]):e._e(),t("div",{staticClass:"wh_content"},e._l(e.textTop,(function(r,n){return t("div",{key:n,staticClass:"wh_content_item"},[t("div",{staticClass:"wh_top_tag"},[e._v(e._s(r))])])})),0),"month"===e.userType?t("div",{staticClass:"clendar_inner"},[t("div",{staticClass:"wh_content"},e._l(e.list.nowMonth,(function(r,n){return t("div",{key:n,staticClass:"wh_content_item",class:e.errorDay[r.id]&&e.errorDay[r.id].month===r.date?0===e.errorDay[r.id].flag?"succFlag":"errorFlag":"",on:{click:function(t){!r.isExceed&&e.clickSomeDay(r,n)}}},[t("div",{staticClass:"wh_item_date",class:[{wh_isExceed:r.isExceed},{wh_isMark:r.isMark},{wh_other_dayhide:"nowMonth"!==r.otherMonth},{wh_want_dayhide:r.dayHide},{wh_isToday:r.isToday&&!r.chooseDay},{wh_chose_day:r.chooseDay}]},[e._v(e._s(r.id))])])})),0)]):e._e(),e.dialogVisible?t("van-dialog",{attrs:{"close-on-click-overlay":!0,"lock-scroll":!0,"close-on-popstate":!0,"show-confirm-button":!1,"show-cancel-button":!1},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[t("div",{staticClass:"van_col_title",on:{click:function(t){return e.selectYearClick(e.selectYear)}}},[e._v(e._s(e.dialogTitle))]),t("div",{staticStyle:{padding:"10px"},on:{touchstart:e.gotouchstart,touchend:e.gotouchend,touchmove:e.gotouchmove}},[t("van-row",{attrs:{align:"center"}},[e._l(e.options,(function(r,n){return[t("van-col",{key:n,staticClass:"van_col",attrs:{span:"8"},on:{click:function(t){return e.choose(n,r)}}},[t("span",{staticStyle:{"line-height":"20px"},style:{color:"month"===e.selectType&&(e.nowYear===e.selectYear||e.currerYear===e.selectYear)&&e.selectMonth===n+1||e.selectYear===r?"#1989fa":""}},[e._v(e._s(r))])])]}))],2)],1)]):e._e()],1)])])},Or=[];function Pr(e){return Ir(e)||Hr(e)||Nr(e)||Ar()}function Ar(){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 Nr(e,t){if(e){if("string"==typeof e)return Fr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fr(e,t):void 0}}function Hr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ir(e){if(Array.isArray(e))return Fr(e)}function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var zr={getDaysInOneMonth:function(e){var t=e.getFullYear(),r=e.getMonth()+1,n=new Date(t,r,0);return n.getDate()},getMonthweek:function(e){var t=e.getFullYear(),r=e.getMonth()+1,n=new Date(t+"/"+r+"/1");return this.sundayStart?0===n.getDay()?7:n.getDay():0===n.getDay()?6:n.getDay()-1},getOtherMonth:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nextMonth",n=this.dateFormat(e).split("/"),a=n[0],o=n[1],i=n[2],s=a;"nextMonth"===r?(t=parseInt(o)+1,13===t&&(s=parseInt(s)+1,t=1)):(t=parseInt(o)-1,0===t&&(s=parseInt(s)-1,t=12));var l=i,c=new Date(s,t,0).getDate();l>c&&(l=c),t<10&&(t="0"+t),l<10&&(l="0"+l);var u=s+"/"+t+"/"+l;return new Date(u)},getOtherWeek:function(e,t){var r=new Date(e);return"preWeek"===t?new Date(new Date(r).getTime()-6048e5):new Date(new Date(r).getTime()+6048e5)},getLeftArr:function(e){for(var t=[],r=this.getMonthweek(e),n=this.getDaysInOneMonth(this.getOtherMonth(e,"preMonth"))-r+1,a=this.getOtherMonth(e,"preMonth"),o=0;o<r;o++){var i=a.getFullYear()+"/"+(a.getMonth()+1)+"/"+(n+o);t.push({id:n+o,date:i,isToday:!1,otherMonth:"preMonth"})}return t},getRightArr:function(e){for(var t=[],r=this.getOtherMonth(e,"nextMonth"),n=this.getDaysInOneMonth(e)+this.getMonthweek(e),a=7-n%7,o=0;o<a;o++){var i=r.getFullYear()+"/"+(r.getMonth()+1)+"/"+(o+1);t.push({id:o+1,date:i,isToday:!1,otherMonth:"nextMonth"})}return t},dateFormat:function(e){return e="string"===typeof e?new Date(e.replace(/\-/g,"/")):e,e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()},getMonthListNoOther:function(e){for(var t=[],r=this.getDaysInOneMonth(e),n=e.getFullYear(),a=e.getMonth()+1,o=this.dateFormat(new Date),i=0;i<r;i++){var s=n+"/"+a+"/"+(i+1);t.push({id:i+1,date:s,isToday:o===s,otherMonth:"nowMonth"})}return t},getMonthList:function(e){var t=new Date(e.getFullYear(),e.getMonth()-1),r=new Date(e.getFullYear(),e.getMonth()+1),n={};return n.lastMonth=[].concat(Pr(this.getLeftArr(t)),Pr(this.getMonthListNoOther(t)),Pr(this.getRightArr(t))),n.nowMonth=[].concat(Pr(this.getLeftArr(e)),Pr(this.getMonthListNoOther(e)),Pr(this.getRightArr(e))),n.nextMonth=[].concat(Pr(this.getLeftArr(r)),Pr(this.getMonthListNoOther(r)),Pr(this.getRightArr(r))),n},createClendar:function(e,t,n){for(var a=new Date(t),o=r(5093),i=new Date,s=[],l=0;l<7;l++){var c=new Date(e.getTime()+24*l*60*60*1e3),u=null;u=c.getFullYear()===a.getFullYear()?c.getMonth()===a.getMonth()?"nowMonth":c.getMonth()<a.getMonth()?"preMonth":"nextMonth":c.getFullYear()<a.getFullYear()?"preMonth":"nextMonth",s.push({id:c.getDate(),date:o(c).format(n?"YYYY/MM/DD":"YYYY/M/D"),isToday:o(c).format(n?"YYYY/MM/DD":"YYYY/M/D")===o(i).format(n?"YYYY/MM/DD":"YYYY/M/D"),otherMonth:u})}return s},getNowWeek:function(e,t){var r=e.getDay(),n=null,a=null,o=null;return this.sundayStart?(n=new Date(new Date(e).getTime()-24*r*60*60*1e3),a=new Date(new Date(n).getTime()-6048e5),o=new Date(new Date(n).getTime()+6048e5)):(n=new Date(new Date(e).getTime()-24*(0===r?6:r-1)*60*60*1e3),a=new Date(new Date(n).getTime()-6048e5),o=new Date(new Date(n).getTime()+6048e5)),{lastWeek:this.createClendar(a,e,t),nowWeek:this.createClendar(n,e,t),nextWeek:this.createClendar(o,e,t)}},getYearlist:function(e){for(var t=[],r=Number(e.toString().substr(0,3)+0),n=0;n<10;n++)t.push(r++);return t},getLeftAfteryear:function(e){for(var t=[],r=e-20;r<=e;r++)t.push(r);return t},getWeeklist:function(e,t){for(var r=new Date(e,t-1),n=r.getDay(),a=r.getTime()-24*(0===n?6:n-1)*60*60*1e3,o=a+5184e5,i=new Date(new Date(e,t).setDate(0)).getDate(),s=r.getTime()+24*(i-1)*60*60*1e3,l=new Date(s).getDay(),c=s+24*(7-(0===l?7:l))*60*60*1e3,u=(c-a+864e5)/1e3/60/60/24/7,d=[],p=0;p<u;p++)0!==p&&(a+=6048e5,o+=6048e5),d.push({start:new Date(a),end:new Date(o),num:p+1,month:t});return d},sundayStart:!1};function Br(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Wr(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function Gr(e,t){return qr(e)||Ur(e,t)||Wr(e,t)||Rr()}function Rr(){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 Wr(e,t){if(e){if("string"==typeof e)return Vr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vr(e,t):void 0}}function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ur(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}function qr(e){if(Array.isArray(e))return e}var Xr={props:{markDate:{type:Array,default:function(){return[]}},markDateMore:{type:Array,default:function(){return[]}},textTop:{type:Array,default:function(){return["一","二","三","四","五","六","日"]}},sundayStart:{type:Boolean,default:!1},agoDayHide:{type:String,default:"0"},futureDayHide:{type:String,default:"2554387200"},getDayDetails:{type:Function,default:function(){return null}},errorDay:{type:Array,default:function(){return[]}},changeDate:{type:Function,default:function(){return null}},isSwitchover:{type:Boolean,default:!1},defaultType:{type:String,default:"month"},startTime:{type:String,default:""},endTime:{type:String,default:""}},data:function(){return{myDate:new Date,list:{},historyChose:[],dateTop:"",choseOtherDay:!1,dialogVisible:!1,vueMoves:!1,vueLeave:!1,longTouch:!1,vueTouches:{},updateDate:!1,dialogTitle:"",allMonth:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],options:[],someDayArr:[],selectMonth:"",selectYear:"",selectType:"month",userType:"",leftArrowShow:!0,rightArrowShow:!0}},watch:{markDate:{handler:function(e,t){this.getList(this.myDate)},deep:!0},markDateMore:{handler:function(e,t){this.getList(this.myDate)},deep:!0},agoDayHide:{handler:function(e,t){this.getList(this.myDate)},deep:!0},futureDayHide:{handler:function(e,t){this.getList(this.myDate)},deep:!0},sundayStart:{handler:function(e,t){this.intStart(),this.getList(this.myDate)},deep:!0},myDate:{handler:function(e){this.arrowShow(e)},immediate:!0,deep:!0}},created:function(){var e=new Date;this.startTime&&(e=new Date(this.startTime.replace(/-/g,"/")),this.myDate=e),this.nowMonth=e.getMonth()+1,this.nowYear=e.getFullYear(),this.currerYear=e.getFullYear(),this.intStart()},mounted:function(){this.userType=this.defaultType,this.getList(this.myDate),this.someDayArr=[]},methods:{arrowShow:function(e){var t=e.getFullYear(),r=e.getMonth(),n=new Date(t,r+1,0).getDate();r>12&&(r-=12,t++);var a=new Date(t,r,1),o=new Date(a.getTime()+864e5*n);o>new Date(this.endTime)?this.rightArrowShow=!1:this.rightArrowShow=!0,a<new Date(this.startTime)?this.leftArrowShow=!1:this.leftArrowShow=!0},intStart:function(){zr.sundayStart=this.sundayStart},setClass:function(e){var t={};return t[e.markClassName]=e.markClassName,t.dayHide=!0,t},gotouchstart:function(e){this.vueMoves=!0,this.vueLeave=!0,this.longTouch=!0,this.vueTouches={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}},gotouchend:function(e){var t=e.changedTouches[0].pageX-this.vueTouches.x,r=e.changedTouches[0].pageY-this.vueTouches.y;(Math.abs(t)>10||Math.abs(r)>100)&&(Math.abs(t)>Math.abs(r)?(t>10&&this.swiperight(),t<-10&&this.swipeleft()):(r>10&&this.swipedown(),r<-10&&this.swipeup()))},gotouchmove:function(e){this.vueMoves=!1},swipeup:function(){this.dialogVisible||(this.userType="week",this.getList(this.myDate))},swipedown:function(){this.dialogVisible||(this.userType="month",this.getList(this.myDate))},swipeleft:function(){this.NextMonth(this.myDate,!1),this.$forceUpdate()},swiperight:function(){this.PreMonth(this.myDate,!1),this.$forceUpdate()},clickDay:function(e,t){if(this.myDate=new Date(e.date),null!==this.getDayDetails&&this.getDayDetails(e,t),"month"===this.userType)"nowMonth"!==e.otherMonth||e.dayHide||this.getList(this.myDate,e.date,!1,this.userType),"nowMonth"!==e.otherMonth&&("preMonth"===e.otherMonth?this.PreMonth(e.date,!0):this.NextMonth(e.date,!0));else{var r=new Date(e.date);this.getList(r,e.date,!0,this.userType)}},selectMonthClick:function(e,t){this.dialogTitle=e+"年",this.options=this.allMonth,this.selectMonth=t,this.selectYear=e,this.dialogVisible=!0},selectYearClick:function(e){this.selectType="year",this.options=zr.getYearlist(e),this.dialogTitle=this.options[0]+"年 - "+this.options[9]+"年"},choose:function(e,t){"month"===this.selectType?(this.selectMonth=e+1,this.myDate=new Date(this.selectYear,e,1),this.nowMonth=this.selectMonth,this.nowYear=this.selectYear,this.getList(this.myDate),this.dialogVisible=!1):"year"===this.selectType&&(this.selectYear=t,t===(new Date).getFullYear()&&(this.selectMonth=(new Date).getMonth()+1),this.dialogTitle=t+"年",this.selectType="month",this.options=this.allMonth)},preSelectDialog:function(e){if("pre"===e){if("month"===this.selectType){if(1970===this.selectYear)return;this.selectYear-=1,this.dialogTitle=this.selectYear+"年"}else if("year"===this.selectType){if(1970===this.options[0])return;this.selectYearClick(this.options[0]-10)}}else if("month"===this.selectType){if(this.selectYear===(new Date).getFullYear()+19)return;this.selectYear+=1,this.dialogTitle=this.selectYear+"年"}else if("year"===this.selectType){if(this.options[0]===(new Date).getFullYear()+10)return;this.selectYearClick(this.options[0]+10)}},PreMonth:function(e,t){1970===e.getFullYear()&&e.getMonth()+1===1||(e=zr.dateFormat(e),this.myDate="month"===this.userType?zr.getOtherMonth(this.myDate,"preMonth"):zr.getOtherWeek(this.myDate,"preWeek"),this.nowMonth=this.myDate.getMonth()+1,this.nowYear=this.myDate.getFullYear(),this.$emit("changeDate",zr.dateFormat(this.myDate)),null!==this.changeDate&&this.changeDate(zr.dateFormat(this.myDate)),t?this.getList(this.myDate,e,t):this.getList(this.myDate))},NextMonth:function(e,t){"string"===typeof e&&(e=new Date(e)),e.getFullYear()===(new Date).getFullYear()+19&&e.getMonth()+1===12||(e=zr.dateFormat(e),this.myDate="month"===this.userType?zr.getOtherMonth(this.myDate,"nextMonth"):zr.getOtherWeek(this.myDate,"nextWeek"),this.nowMonth=this.myDate.getMonth()+1,this.nowYear=this.myDate.getFullYear(),this.$emit("changeDate",zr.dateFormat(this.myDate)),null!==this.changeDate&&this.changeDate(zr.dateFormat(this.myDate)),t?this.getList(this.myDate,e,t):this.getList(this.myDate))},forMatArgs:function(){var e=this.markDate,t=this.markDateMore;return e=e.map((function(e){return zr.dateFormat(e)})),t=t.map((function(e){return e.date=zr.dateFormat(e.date),e})),[e,t]},clickSomeDay:function(e,t){var r=this;this.choseOtherDay||(this.choseOtherDay=!0),e.chooseDay?this.someDayArr.forEach((function(t,n){e.id===t.id&&r.someDayArr.splice(n,1)})):this.someDayArr.push(e),e.chooseDay=!e.chooseDay,this.getDayDetails(this.someDayArr,t)},getList:function(e,t){var r=this,n=this.forMatArgs(),a=Gr(n,2),o=a[0],i=a[1];e&&(this.dateTop="".concat(e.getFullYear(),"年").concat(e.getMonth()+1,"月"));var s=null;for(var l in s="month"===this.userType?zr.getMonthList(this.myDate):zr.getNowWeek(this.myDate,!1),s)for(var c=s[l],u=function(){var e="",n=c[d];n.chooseDay=!1,n.isExceed=!1;var a,s=n.date,l=new Date(s).getTime()/1e3,u=Br(i);try{for(u.s();!(a=u.n()).done;){var p=a.value;p.date===s&&(e=p.className||"")}}catch(f){u.e(f)}finally{u.f()}r.someDayArr.forEach((function(e){e.date.replace(/\-0/g,"-")===n.date.replace(/\//g,"-")&&(console.log(n),n.chooseDay=!0)})),n.markClassName=e,n.isMark=o.indexOf(s)>-1,n.dayHide=l<r.agoDayHide||l>r.futureDayHide,n.isToday&&r.$emit("isToday",s);var h=!n.dayHide&&"nowMonth"===n.otherMonth||"week"===r.userType;t&&t===s&&h?(r.$emit("choseDay",s),r.historyChose.push(s),n.chooseDay=!0,n.isToday?r.choseOtherDay=!1:r.choseOtherDay=!0):r.historyChose[r.historyChose.length-1]===s&&!t&&h&&(n.chooseDay=!0,n.isToday?r.choseOtherDay=!1:r.choseOtherDay=!0),(new Date(n.date)>new Date(r.endTime)||new Date(n.date)<new Date(r.startTime))&&(n.isExceed=!0)},d=0;d<c.length;d++)u();this.list=s,this.$nextTick((function(){r.updateDate=!0}))}}},Kr=Xr,Jr=(r(937),r(5950),c(Kr,Er,Or,!1,null,"5a92668a",null)),Qr=Jr.exports,Zr=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"padding-top":"30px"}},[null!==e.vo?t("section",{staticClass:"online-top",staticStyle:{position:"relative"}},[t("p",{staticClass:"examTitle"},[e._v(e._s(e.chapterName))]),e._m(0),t("el-button",{staticStyle:{position:"absolute",top:"40px",right:"30px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.submitpaper()}}},[e._v("提交试卷")]),t("ul",{staticClass:"cards clearfix"},e._l(e.vo.subjectManages,(function(r,n){return t("div",{key:r},[t("li",{class:n===e.defaultProblem?"zhengzaizuo":null!==r.answerContent?"yizuo":"weizuo",on:{click:function(t){return e.linkNum(r,n)}}},[e._v(e._s(n+1))])])})),0)],1):e._e(),null!==e.vo?t("section",{staticClass:"paperBox"},[t("ul",{staticClass:"paperInnerBox"},e._l(e.vo.subjectManages,(function(r,n){return t("div",{key:r},[t("li",{directives:[{name:"show",rawName:"v-show",value:e.defaultProblem===n,expression:"defaultProblem === index"}],staticStyle:{"list-style":"none"}},[1===r.type||3===r.type?t("danxuan",{attrs:{grade:!1,"problem-obj":r,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e(),4===r.type?t("tiankong",{attrs:{"problem-obj":r,grade:!1,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e(),5===r.type?t("wenda",{attrs:{"problem-obj":r,grade:!1,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e(),2===r.type?t("duoxuan",{attrs:{"problem-obj":r,grade:!1,"can-edit":1,"current-index":n+1,"num-problem":e.numProblem}}):e._e()],1)])})),0),t("div",{staticClass:"btnBox"},[e.defaultProblem>0?t("el-button",{attrs:{size:"mini",plain:""},on:{click:function(t){return e.beforeAndNext("before")}}},[e._v("上一题")]):e._e(),e.defaultProblem<e.numProblem-1?t("el-button",{attrs:{size:"mini",plain:""},on:{click:function(t){return e.beforeAndNext("next")}}},[e._v("下一题")]):e._e(),t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.beforeAndNext("nextAndSubmit")}}},[e._v("确定")])],1)]):e._e()])},$r=[function(){var e=this,t=e._self._c;return t("ul",{staticClass:"cardTitle clearfix"},[t("li",[e._v("答题卡")]),t("li",[t("span",{staticStyle:{display:"inline-block",width:"10px",height:"10px","background-color":"rgba(64, 158, 255, 0.6)"}}),t("span",[e._v(" 已做")])]),t("li",[t("span",{staticStyle:{display:"inline-block",width:"10px",height:"10px","background-color":"rgba(235, 237, 240, 1)"}}),t("span",[e._v(" 未做")])]),t("li",[t("span",{staticStyle:{display:"inline-block",width:"10px",height:"10px","background-color":"rgba(64, 158, 255, 1)"}}),t("span",[e._v(" 当前")])])])}];function en(e){return en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},en(e)}function tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(r),!0).forEach((function(t){nn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nn(e,t,r){return(t=an(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function an(e){var t=on(e,"string");return"symbol"==en(t)?t:t+""}function on(e,t){if("object"!=en(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=en(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var sn=r(5093),ln={components:{danxuan:d,duoxuan:v,wenda:S,tiankong:L},props:{},data:function(){return{vo:null,numProblem:0,problemsList:[],examAnswerList:[],defaultProblem:0,CutdownTime:"",examAnswerParams:null,exerciseRecord:{},chapterId:"",recordId:"",startTime:"",chapterName:""}},computed:rn({},ce(["routes","loginUser"])),watch:function(){},created:function(){this.chapterId=this.$route.query.id,this.chapterName=this.$route.query.chapterName,this.startTime=new Date,console.log(sn(new Date(this.startTime)).format("YYYY-MM-DD HH:mm:ss")),this.addNew(),this.doExercise()},beforeDestroy:function(){},mounted:function(){var e=this;this.$bus.on("answerContentInner",(function(t){e.examAnswerParams=t,console.log(t)}))},methods:{addNew:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/ksgl/exerciseRecord/addNew"}).then((function(t){"success"===t.code?e.recordId=t.body.vo.id:e.$message.error(t.message)}))},doExercise:function(){var e=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{chapterId:this.chapterId},url:"/ksgl/courseChapter/getExerciseRecordInfo"}).then((function(t){"success"===t.code?(e.numProblem=t.body.subjectManages.length,e.vo=t.body,e.vo.subjectManages.map((function(e){e.answerContent=null})),console.log(e.vo)):e.$message.error(t.message)}))},beforeAndNext:function(e){var t=this;console.log(this.examAnswerParams),"before"===e?this.defaultProblem--:"next"===e?this.defaultProblem!==this.numProblem-1&&this.defaultProblem++:"nextAndSubmit"===e&&(null!==this.examAnswerParams&&this.examAnswerList.map((function(e,r){t.examAnswerList[t.examAnswerParams.indexProblem-1].answerContent=t.examAnswerParams.value,t.examAnswerList[t.examAnswerParams.indexProblem-1].grade=t.examAnswerParams.grade})),this.defaultProblem!==this.numProblem-1&&this.defaultProblem++),null!==this.examAnswerParams&&this.vo.subjectManages.map((function(e,r){t.vo.subjectManages[t.examAnswerParams.indexProblem-1].answerContent=t.examAnswerParams.value}))},linkNum:function(e,t){this.defaultProblem=t},submitpaper:function(){var e=this;console.log(this.vo.subjectManages);var t=this.vo.subjectManages.filter((function(t,r){return null===e.vo.subjectManages[r].answerContent}));console.log(t),this.submitPaperFuc()},submitPaperFuc:function(){var e=this,t=[];this.vo.subjectManages.map((function(r,n){var a={answerContent:r.answerContent,id:"",istrue:0,passenger:{},personId:e.loginUser.personId,recordId:e.recordId,subjectId:r.id,subjectNo:n};t.push(a)})),this.exerciseRecord.chapterId=this.chapterId,this.exerciseRecord.personId=this.loginUser.personId,this.exerciseRecord.personName=this.loginUser.personName,this.exerciseRecord.startTime=this.startTime,this.exerciseRecord.id=this.recordId,this.exerciseRecord.passenger={},this.exerciseRecord.passenger.exerciseSubjectList=t,this.$http({url:"/ksgl/exerciseRecord/insert",method:"POST",data:this.exerciseRecord}).then((function(t){if("success"!==t.code)return e.$message({type:"warning",message:t.message}),!1;window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/components/KsglComponentProblemDetail&logoTitle=学习考试&chapterName="+e.chapterName+"&chapterId="+e.chapterId+"&type=3&id="+t.body.vo.recordId),window.location.reload()}))}}},cn=ln,un=(r(952),c(cn,Zr,$r,!1,null,"81864332",null)),dn=un.exports,pn=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"padding-top":"30px"}},[null!==e.vo?t("section",{staticClass:"problemDetailTop"},[t("p",{staticClass:"examTitle"},[e._v(e._s(e.chapterName))]),t("div",{staticClass:"titleTop"},[t("h4",{staticStyle:{"padding-top":"0","padding-bottom":"10px"}},[e._v(e._s(e.vo.name))]),t("ul",{staticClass:"titleTop-long",staticStyle:{"font-size":"var(--portalFontSize12)",color:"#999"}},[t("li",[t("span",[e._v("全部试题:")]),e._v(" "),t("span",[e._v(e._s(e.numProblem))])]),t("li",[t("span",[e._v("单选题:")]),e._v(" "),t("span",[e._v(e._s(e.typeCount.danXCount))])]),t("li",[t("span",[e._v("多选题:")]),e._v(" "),t("span",[e._v(e._s(e.typeCount.duoXCount))])]),t("li",[t("span",[e._v("判断题:")]),e._v(" "),t("span",[e._v(e._s(e.typeCount.panDCount))])]),t("li",[t("span",[e._v("填空题:")]),e._v(" "),t("span",[e._v(e._s(e.typeCount.tianKCount))])]),t("li",[t("span",[e._v("问答题:")]),e._v(" "),t("span",[e._v(e._s(e.typeCount.wenDCount))])])])])]):e._e(),null!==e.vo?t("section",{staticClass:"paperBox"},[t("ul",{staticClass:"paperInnerBox"},e._l(e.vo.subjectManages,(function(r,n){return t("div",{key:r,staticStyle:{"border-bottom":"1px solid rgb(235, 238, 245)"}},[t("li",{staticStyle:{"list-style":"none"}},[1===r.type||3===r.type?t("danxuan",{attrs:{grade:!1,"problem-obj":r,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"answer-content":r.trueOption,"type-content":"3"}}):e._e(),4===r.type?t("tiankong",{attrs:{"problem-obj":r,grade:!1,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"answer-content":r.trueOption,"type-content":"3"}}):e._e(),5===r.type?t("wenda",{attrs:{"problem-obj":r,grade:!1,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"answer-content":r.trueOption,"type-content":"3"}}):e._e(),2===r.type?t("duoxuan",{attrs:{"problem-obj":r,grade:!1,"can-edit":0,"current-index":n+1,"num-problem":e.numProblem,"answer-content":r.trueOption,"type-content":"3"}}):e._e()],1),t("div",{staticClass:"innerBox"},[t("p",[t("span",[e._v("正确答案:")]),t("span",[e._v(e._s(4===r.type?e.translateTrue(r.trueOption):r.trueOption))])])]),t("div",{staticClass:"innerBox",staticStyle:{width:"100%"}},[t("p",[t("span",[e._v("答案解析:")]),e._v(e._s(e.vo.subjectManages[n].answerExplain.substr(0,50))+" ")])])])})),0)]):e._e()])},hn=[];function fn(e){return fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fn(e)}function mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(r),!0).forEach((function(t){vn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vn(e,t,r){return(t=gn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gn(e){var t=_n(e,"string");return"symbol"==fn(t)?t:t+""}function _n(e,t){if("object"!=fn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var bn={components:{danxuan:d,duoxuan:v,wenda:S,tiankong:L},props:{},data:function(){return{vo:null,numProblem:0,problemsList:[],examAnswerList:[],chapterId:"",chapterName:"",typeCount:[],answerType:["正确答案","答案解析"]}},computed:yn({},ce(["routes","loginUser"])),watch:function(){},created:function(){this.chapterId=this.$route.query.id,this.chapterName=this.$route.query.chapterName,this.doExercise()},beforeDestroy:function(){},mounted:function(){},methods:{translateTrue:function(e){if(e){var t=/\|\#\|/g,r=e.replace(t,",");return r}return e},doExercise:function(){var e=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{chapterId:this.chapterId},url:"/ksgl/courseChapter/getExerciseRecordInfo"}).then((function(t){"success"===t.code?(e.numProblem=t.body.subjectManages.length,e.typeCount=t.body.subjectTypeCount,e.vo=t.body,e.vo.subjectManages.map((function(e){e.answerContent=null})),console.log(e.vo)):e.$message.error(t.message)}))}}},wn=bn,xn=(r(659),c(wn,pn,hn,!1,null,"046f4635",null)),Ln=xn.exports,Mn=function(){var e=this,t=e._self._c;return t("div",[t("courseTop",{attrs:{vo:e.courseData.courseVo,title:"章节练习记录"}}),t("div",{staticStyle:{margin:"0","margin-top":"20px",border:"1px solid #EBEEF5"}},[t("p",{staticClass:"clearfix",staticStyle:{padding:"0 2%"}},[t("span",{staticClass:"l"},[e._v(e._s(e.chapterName))]),e._v(" "),t("span",{staticClass:"color1 r",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.doExercise(e.chapterName)}}},[e._v("练习")])]),t("div",{staticStyle:{width:"100%","border-top":"1px solid #EBEEF5"}},["2"===e.typeEnter?t("div",[t("el-table",{staticStyle:{width:"96%",margin:"0 2%","margin-bottom":"20px","margin-top":"20px"},attrs:{border:"",data:e.tableData}},[t("el-table-column",{attrs:{label:"序号",align:"center",type:"index"}}),t("el-table-column",{attrs:{label:"开始时间",align:"center",prop:"startTime"}}),t("el-table-column",{attrs:{label:"结束时间",align:"center",prop:"endTime"}}),t("el-table-column",{attrs:{label:"用时/分",align:"center",prop:"useTime"}}),t("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",{staticStyle:{cursor:"pointer",color:"#409EFE"},attrs:{"font-size":"20px"},on:{click:function(t){return e.exerciseDetail(r.row.id)}}},[e._v("查看练习详情")])]}}],null,!1,1235908438)})],1)],1):e._e(),t("div",[t("el-input",{staticClass:"r",staticStyle:{width:"200px",margin:"5px 2%"},attrs:{size:"mini",placeholder:"部门/姓名/章节"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),t("el-table",{staticStyle:{width:"96%",margin:"0 2%","margin-bottom":"20px"},attrs:{border:"",data:e.tableData}},[t("el-table-column",{attrs:{label:"序号",align:"center",type:"index"}}),t("el-table-column",{attrs:{label:"开始时间",align:"center",prop:"startTime"}}),t("el-table-column",{attrs:{label:"结束时间",align:"center",prop:"endTime"}}),t("el-table-column",{attrs:{label:"用时/分",align:"center",prop:"useTime"}}),t("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",{staticStyle:{cursor:"pointer",color:"#409EFE"},attrs:{"font-size":"20px"},on:{click:function(t){return e.exerciseDetail(r.row.id)}}},[e._v("查看练习详情")])]}}])})],1),t("el-pagination",{staticStyle:{margin:"0 2%","margin-bottom":"10px"},attrs:{align:"right","current-page":e.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)])])],1)},kn=[],Tn=function(){var e=this,t=e._self._c;return t("div",[t("section",{staticClass:"courseBox1 clearfix"},[t("div",{staticClass:"imgCont l",staticStyle:{width:"260px"}},["2"!==e.typeEnter?t("svg-icon",{staticStyle:{position:"absolute",width:"48px",height:"48px"},attrs:{"icon-class":"triangle"}}):e._e(),"2"!==e.typeEnter?t("span",{staticStyle:{position:"absolute",transform:"rotate(-45deg)",top:"10px",left:"2px",color:"#fff","font-size":"var(--portalFontSize12)"}},[e._v(e._s(1===e.vo.courseVo.bmState||1===e.bmState?"已报名":"未报名"))]):e._e(),t("img",{staticClass:"courseImg",attrs:{src:e.base_api+"/ksgl/course/download?dataField=cover&isOriginal=true&nameField=coverUrl&id="+e.$route.query.id,alt:""}}),"2"!==e.typeEnter&&1!==e.vo.courseVo.shoukeType?t("span",{staticClass:"shoukeType1"},[e._v(e._s(e.courseTimeJudge(e.vo.courseVo.stateTime,e.vo.courseVo.endTime)))]):e._e(),t("span",{staticClass:"shoukeType"},[e._v(e._s(1===e.vo.courseVo.shoukeType?"线上":"线下"))])],1),t("div",{staticClass:"courseBox1-right l",staticStyle:{width:"calc(100% - 280px)"}},[t("p",{staticClass:"clearfix",staticStyle:{width:"calc(100% - 60px)","max-height":"60px",overflow:"hidden","white-space":"nowrap"}},[t("span",{staticClass:"l mR10",staticStyle:{"font-size":"22px","font-weight":"600"}},[e._v(e._s(e.vo.courseVo.name))])]),t("p",{staticClass:"color2"},[t("span",[e._v("培训对象:")]),t("span",{staticClass:"study-name"},[e._v(e._s(e.vo.courseVo.studyName||"全体"))])]),t("p",{staticClass:"color2"},[t("span",[e._v("课程学分:")]),t("span",{staticClass:"mR10"},[e._v(" "+e._s(e.vo.courseVo.credit)+"分")])]),2===e.vo.courseVo.shoukeType?t("p",{staticClass:"color2"},[t("span",[e._v("课程日期:")]),t("span",[e._v(e._s(e.timeFormat(e.vo.courseVo.stateTime)+" 至 "+e.timeFormat(e.vo.courseVo.endTime)))])]):e._e(),t("p",{staticClass:"color2"},[t("span",[e._v("授课方式:")]),t("span",[e._v(e._s(1===e.vo.courseVo.shoukeType?"线上":"线下"))])]),2===e.vo.courseVo.shoukeType?t("p",{staticClass:"color2"},[t("span",[e._v("上课地址:")]),t("span",[e._v(e._s(e.vo.courseVo.address))])]):e._e(),1===e.vo.courseVo.shoukeType?t("p",{staticClass:"color2"},[t("span",{staticClass:"color1",staticStyle:{"font-size":"20px"}},[e._v(e._s(e.vo.yi||0))]),t("span",{staticClass:"mR10"},[e._v("人已学完")]),t("span",{staticClass:"color1",staticStyle:{"font-size":"20px"}},[e._v(e._s(e.vo.wei||0))]),t("span",[e._v("人正在学")])]):e._e(),"2"!==e.typeEnter?t("div",{staticStyle:{display:"flex"}},[1===e.vo.courseVo.bmState||1===e.bmState?t("div",{staticStyle:{flex:"1"}},[t("p",[t("span",{staticClass:"study-progress"},[e._v("学习进度:"),t("el-progress",{staticStyle:{width:"300px"},attrs:{"stroke-width":10,color:"#67C23A",percentage:e.percentage}})],1)]),1===e.vo.courseVo.shoukeType?t("p",{staticClass:"color2"},[0===Number(e.percentage)?t("span",[e._v("课程很精彩,你还没有进行学习,赶紧学习卷起来吧!")]):Number(e.percentage)<100?t("span",[e._v("目前已学习了"+e._s(e.percentage)+"%,继续加油啊!")]):t("span",[e._v("恭喜你!课程已全部学完,学习要懂得温故而知新,记得时常来看看我哦!")])]):e._e(),1===e.vo.courseVo.shoukeType?t("p",{staticClass:"color2"},[e._v("学习时长:"+e._s(e.formatSeconds(e.vo.totalTime)))]):e._e()]):e._e(),t("div",[1!==e.vo.courseVo.shoukeType||1!==e.vo.courseVo.bmState&&1!==e.bmState?e._e():t("el-button",{staticStyle:{width:"156px"},attrs:{disabled:"已结束"===e.courseTimeJudge(e.vo.stateTime,e.vo.endTime),type:"primary"},on:{click:e.toStudy}},[0===Number(e.percentage)?t("span",[e._v("开始学习")]):Number(e.percentage)<100?t("span",[e._v("继续学习")]):t("span",[e._v("再次学习")])]),0===e.vo.courseVo.bmState&&1!==e.bmState?t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.enlist(e.vo.courseVo.id)}}},[e._v("学习报名")]):e._e()],1)]):e._e()]),"2"!==e.typeEnter?t("div",{staticClass:"btnBox",on:{click:e.Collection}},[t("svg-icon",{attrs:{"icon-class":e.isColl?"fiveStar1":"fiveStar"}}),t("span",[e._v(" "+e._s(e.collectNum)+" 次")])],1):e._e()]),t("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"btnRefresh"},on:{click:e.reloadCourseVo}})],1)},Dn=[];function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Sn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Sn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Yn(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Yn(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Cn(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function jn(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Cn(o,n,a,i,s,"next",e)}function s(e){Cn(o,n,a,i,s,"throw",e)}i(void 0)}))}}function En(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function On(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?En(Object(r),!0).forEach((function(t){Pn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):En(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pn(e,t,r){return(t=An(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function An(e){var t=Nn(e,"string");return"symbol"==Yn(t)?t:t+""}function Nn(e,t){if("object"!=Yn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Hn=r(5093),In=r(8957),Fn=In.uuid,zn={components:{},props:{vo:{type:Object,default:function(){return{}}},typeEnter:{type:Number,default:function(){return 2}},num:{type:Number,default:function(){return 1}},allNum:{type:Number,default:function(){return 1}},title:{type:String,default:function(){return""}},toNowStudyChapterId:{type:String,default:function(){return""}},toNowStudyWareId:{type:String,default:function(){return""}},nowStudyOrderNo:{type:String,default:function(){return""}},nowStudyWeekId:{type:String,default:function(){return""}},couseId:{type:String,default:function(){return""}}},data:function(){return{base_api:"",percentage:0,courseStatus:"",collectVo:"",isColl:!1,collectNum:0,courseChapterData:[],chapterIndex:0,wareIndex:0,bmState:0,logoTitle:""}},computed:On({},ce(["routes","avatar","loginUser"])),watch:{num:function(){0===this.allNum?this.percentage=0:this.percentage=(this.num/this.allNum*100).toFixed(1)}},created:function(){this.base_api="/apigw",this.logoTitle=this.$route.query.logoTitle,this.isCollect(),this.collectCount(),0===this.allNum?this.percentage=0:this.percentage=(this.num/this.allNum*100).toFixed(1)},beforeDestroy:function(){},mounted:function(){},methods:{timeFormat:function(e){return Hn(e).format("YYYY-MM-DD")},reloadCourseVo:function(){this.$vnode.context.getById(this.vo.courseVo.id),this.$vnode.context.courseChapterFuc()},isCollect:function(){var e=this;this.$http({url:"/user/collection/getIfCollection",method:"GET",params:{busiDataId:this.vo.courseVo.id,operationType:"1",ownerId:this.loginUser.personId}}).then((function(t){"success"===t.code?e.isColl=t.body.data:e.$message({type:"warning",message:t.body.message})}))},collectCount:function(){var e=this;this.$http({url:"/user/collection/getCollectionCount",method:"GET",params:{busiDataId:this.vo.courseVo.id,operationType:"1"}}).then((function(t){"success"===t.code?e.collectNum=t.body.data:e.$message({type:"warning",message:t.body.message})}))},Collection:function(){var e=this;return jn(Sn().mark((function t(){var r,n;return Sn().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.addNew("/user/collection/addNew");case 2:if(r=t.sent,"success"!==r.code){t.next=18;break}return e.collectVo=r.body.vo,e.collectVo.busiDataId=e.vo.courseVo.id,e.collectVo.type="课程",e.collectVo.ownerId=e.loginUser.personId,e.collectVo.operationType="1",e.collectVo.url=e.$route.fullPath,e.collectVo.module="course",e.collectVo.title=e.vo.courseVo.name,t.next=14,e.$app.insert("/user/collection/insert",e.collectVo);case 14:n=t.sent,"success"===n.code?(e.$message.success(n.message),e.isCollect(),e.collectCount()):e.$message.success(n.message),t.next=19;break;case 18:e.$message.error(r.message);case 19:case"end":return t.stop()}}),t)})))()},courseTimeJudge:function(e,t){var r="";return(new Date).getTime()>new Date(t).getTime()?(r="已结束",r):(new Date).getTime()<new Date(e).getTime()?(r="未开始",r):(new Date).getTime()>new Date(e).getTime()&&(new Date).getTime()<new Date(t).getTime()?(r="进行中",r):void 0},toStudy:function(){var e=this;return jn(Sn().mark((function t(){var r;return Sn().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e,t.next=3,r.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{courseId:r.vo.courseVo.id,orderNo:"desc"},url:"ksgl/courseChapter/getBycourseId"}).then((function(t){if("success"===t.code)if(r.courseChapterData=t.body.listdata,r.courseChapterData&&r.courseChapterData.length>0)if(Number(!e.num||100===(e.num/e.allNum*100).toFixed())){var n=r.courseChapterData[0].passenger.chapterList[0].id,a=r.courseChapterData[0].passenger.chapterList[0].format,o=r.courseChapterData[0].passenger.chapterList[0];console.log("_this.courseChapterData[0].passenger.chapterList[0]",r.courseChapterData[0].passenger.chapterList[0]),r.courseWare(n,a,o,0,0)}else{for(var i=0,s=0,l=0;l<r.courseChapterData.length;l++)for(var c=0;c<e.courseChapterData[l].passenger.chapterList.length;c++)if(1===Number(r.courseChapterData[l].passenger.chapterList[c].finshState)){i=l,s=c;break}var u=r.courseChapterData[i].passenger.chapterList[s].id,d=r.courseChapterData[i].passenger.chapterList[s].format,p=r.courseChapterData[i].passenger.chapterList[s];r.courseWare(u,d,p,i,s)}else r.$message.error("该课程暂无章节!");else r.$message.error(t.message)}));case 3:case"end":return t.stop()}}),t)})))()},enlist:function(e){var t=this;this.$confirm("是否确定学习该课程?","确认操作",{type:"warning"}).then(jn(Sn().mark((function r(){var n,a,o,i,s,l;return Sn().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.bmState=0,n=t.loginUser.personId,a=t.loginUser.staffList[0].orgFullName.split("-")[1],o=t.loginUser.staffList[0].orgFullId.split("-")[1],i={},i.courseId=e,i.personId=n,i.personName=t.loginUser.personName,i.personDept=a,i.deptId=o,i.id=Fn(),i.orgCode=t.loginUser.orgCode,i.orgName=t.loginUser.orgName,i.status=0,r.next=16,t.$app.insert("/ksgl/studyCourse/insert",i);case 16:s=r.sent,"success"===s.code?(l=t,l.$nextTick((function(){l.bmState=1,l.typeEnter="3",l.$route.query.typeEnter="3",l.$bus.emit("bmState",t.bmState),l.reloadCourseVo})),t.$message.success(s.message)):t.$message.error(s.message);case 18:case"end":return r.stop()}}),r)}))))},courseWare:function(e,t,r,n,a){var o=this,i=this.typeEnter;if("2"!==i&&(i=3),t=t.toLowerCase(),0===Number(this.percentage)){var s={chapterId:this.toNowStudyChapterId,courseTimeId:"",endTime:r.timeLengthView,isFinish:"",personId:this.loginUser.personId,personName:this.loginUser.personName,signTime:"",signStatus:"",startTime:"",courseId:this.couseId,timeLength:"",weekId:r.id,orderNo:this.nowStudyOrderNo};this.$http({method:"post",url:"/ksgl/studywareRecord/record",data:s,params:{type:t}}).then((function(s){"success"===s.code&&window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseWare&typeMedia="+t+"&typeEnter="+i+"&id="+e+"&courseId="+o.$route.query.id+"&index="+n+"&domIndex="+a+"&orderNo="+o.nowStudyOrderNo+"&weekId="+r.id+"&logoTitle="+o.logoTitle+"&fileName="+r.courseFileName)}))}else window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseWare&typeMedia="+t+"&typeEnter="+i+"&id="+e+"&courseId="+this.$route.query.id+"&index="+n+"&domIndex="+a+"&orderNo="+this.nowStudyOrderNo+"&weekId="+r.id+"&logoTitle="+this.logoTitle+"&fileName="+r.courseFileName)},formatSeconds:function(e){var t=parseInt(e),r=Math.floor(t/3600)<10?"0"+Math.floor(t/3600):Math.floor(t/3600),n=Math.floor(t/60%60)<10?"0"+Math.floor(t/60%60):Math.floor(t/60%60),a=Math.floor(t%60)<10?"0"+Math.floor(t%60):Math.floor(t%60),o="";return"00"!==r&&(o+="".concat(r,"时")),"00"!==n&&(o+="".concat(n,"分")),o+="".concat(a,"秒"),o}}},Bn=zn,Gn=(r(5107),c(Bn,Tn,Dn,!1,null,"6be114fe",null)),Rn=Gn.exports;function Wn(e){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(e)}function Vn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Wn(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Wn(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Un(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function qn(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Un(o,n,a,i,s,"next",e)}function s(e){Un(o,n,a,i,s,"throw",e)}i(void 0)}))}}var Xn={components:{courseTop:Rn},props:{},data:function(){return{vo:"",courseData:"",courseId:"",chapterName:"",typeEnter:"",chapterId:"",tableData:[],loginUser:this.$store.getters.loginUser}},computed:{},watch:{},created:function(){this.courseId=this.$route.query.courseId,this.chapterName=this.$route.query.chapterName,this.typeEnter=this.$route.query.typeEnter,this.chapterId=this.$route.query.id,this.getByIdFuc(),this.initRecordFuc()},beforeDestroy:function(){},mounted:function(){},methods:{getByIdFuc:function(){var e=this;return qn(Vn().mark((function t(){var r;return Vn().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.getById("ksgl/course/getById",e.courseId);case 2:r=t.sent,"success"===r.code?e.courseData=r.body:e.$message.error(r.message);case 4:case"end":return t.stop()}}),t)})))()},initRecordFuc:function(){var e=this;return qn(Vn().mark((function t(){var r,n;return Vn().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r={pageNum:1,pageSize:1e4,order:"desc",orgCode:e.loginUser.orgCode},t.next=3,e.$app.listdata("/ksgl/exerciseRecord/listdata?urlsearch=id:"+e.$route.query.id,r);case 3:n=t.sent,"success"===n.code?e.tableData=n.body.pageInfo.list:e.$message.error(n.message);case 5:case"end":return t.stop()}}),t)})))()},doExercise:function(e){window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/exercise/KsglKcglComponentDoExercise&logoTitle=学习考试&chapterName="+this.chapterName+"&id="+this.chapterId)},exerciseDetail:function(e){window.location.replace("/#/commonHeader?workform=@/wapp/ksgl/components/KsglComponentProblemDetail&logoTitle=学习考试&chapterName="+this.chapterName+"&chapterId="+this.chapterId+"&type=3&id="+e),window.location.reload()}}},Kn=Xn,Jn=(r(3327),c(Kn,Mn,kn,!1,null,"aa7219e6",null)),Qn=Jn.exports,Zn=function(){var e=this,t=e._self._c;return t("div",[1===e.bmState?t("div",{staticClass:"postComment"},[t("el-input",{staticStyle:{position:"absolute"},attrs:{type:"textarea",placeholder:"请输入内容",maxlength:"200",rows:"4","show-word-limit":""},model:{value:e.discussCont,callback:function(t){e.discussCont=t},expression:"discussCont"}}),t("el-button",{staticStyle:{position:"absolute",right:"0",top:"111px"},attrs:{type:"primary"},on:{click:e.insertDiscuss}},[e._v("发表评论")])],1):e._e(),t("div",{staticClass:"commentList"},[t("p",{staticStyle:{"margin-top":"30px","font-weight":"600"}},[t("span",{staticStyle:{color:"#333","font-size":"var(--portalFontSize14)"}},[e._v("全部评论")]),t("span",{staticStyle:{color:"#999"}},[e._v(e._s(e.totalCount>999?"999+":e.totalCount))])]),e._l(e.discussListdata,(function(r,n){return t("div",{key:r,staticClass:"listInner",on:{mouseover:function(t){return e.mouseOver(n)},mouseleave:function(t){return e.mouseLeave(n)}}},[t("div",{staticStyle:{width:"70px"}},[r.noPhoto?t("div",{staticStyle:{width:"50px",height:"50px","border-radius":"50%",overflow:"hidden",display:"flex","justify-content":"center","align-items":"center",background:"rgb(255, 148, 148)",position:"absolute"},style:{background:e.initPhoto(r.contenter.substr(0,1))}},[t("span",{staticStyle:{color:"#fff"}},[e._v(e._s(r.contenter.substr(-2)))])]):t("img",{staticStyle:{width:"50px",height:"50px","border-radius":"50%",overflow:"hidden"},attrs:{src:e.base_api+"/base/user/download?id="+(r.userId||r.createId)+"&dataField=photoData&nameField=photoName",alt:""},on:{error:function(t){return e.imgerrorfn(r)}}})]),t("div",{staticClass:"innerCont"},[t("p",{staticStyle:{color:"#333333","font-size":"16px"}},[e._v(e._s(r.contenter))]),t("p",{staticStyle:{padding:"8px 0px 10px","font-size":"var(--portalFontSize14)",color:"#666","overflow-wrap":"anywhere"}},[e._v(e._s(r.content))]),t("div",{staticStyle:{color:"#999999"}},[t("span",{staticStyle:{float:"left"}},[e._v(e._s(e.changeTimes(r.contentTime)))]),e.discussListdata.length>0?t("div",{staticClass:"btnInner"},[r.userId===e.loginUser.userId||e.roles.indexOf("ksglAdmin")>-1?t("svg-icon",{staticStyle:{width:"15px",height:"15px",color:"#999999","margin-right":"24px",cursor:"pointer"},attrs:{"icon-class":"del"},on:{click:function(t){return e.delDiscuss(r,n)}}}):e._e(),t("svg-icon",{staticStyle:{width:"15px",height:"15px",cursor:"pointer"},style:{color:r.iszan?"#409EFF":"#999999"},attrs:{"icon-class":r.iszan?"zan":"notzan"},on:{click:function(t){return e.Collection(r,n)}}}),t("span",{staticStyle:{color:"#999"}},[e._v(e._s(r.zanNum))])],1):e._e()])])])})),0===e.discussListdata.length?t("div",{staticStyle:{"text-align":"center",color:"#999","font-size":"var(--portalFontSize14)"}},[t("img",{attrs:{src:"./images/w-imgs/nomessage.png",width:"120px",height:"70px",alt:""}}),t("p",[e._v("暂无数据")])]):e.pageMore?t("p",{staticStyle:{color:"#409eff","text-align":"center",cursor:"pointer"},on:{click:e.moreLoading}},[e._v("点击加载更多")]):e.isMore&&e.discussListdata.length>0?t("p",{staticStyle:{color:"#999999","text-align":"center"}},[e._v("没有更多了")]):e._e()],2)])},$n=[];function ea(e){return ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ea(e)}function ta(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ta=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ea(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ea(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ra(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function na(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ra(o,n,a,i,s,"next",e)}function s(e){ra(o,n,a,i,s,"throw",e)}i(void 0)}))}}var aa=r(5093),oa=r(553).A,ia={components:{},props:{vo:{type:Object,default:function(){return{}}},bmState:{type:Number,default:0}},data:function(){return{roles:[],pageSize:10,pageNum:1,totalCount:0,discussVo:"",discussCont:"",discussListdata:[],zanNum:"",loginUser:this.$store.getters.loginUser,base_api:"",isMore:!1,pageMore:!1}},computed:{changeTimes:function(){return function(e){if(e)return aa(e).format("YYYY-MM-DD HH:mm")}}},watch:{},created:function(){this.roles=this.$store.state.user.roles,this.base_api="/apigw",this.discusslist(),this.discussCount()},beforeDestroy:function(){},mounted:function(){},methods:{imgerrorfn:function(e){this.$set(e,"noPhoto",!0)},initPhoto:function(e){return oa.getInitialColor(e)},mouseOver:function(e){this.discussListdata[e].showDel=!0},mouseLeave:function(e){this.discussListdata[e].showDel=!1},insertDiscuss:function(){var e=this;return na(ta().mark((function t(){var r,n;return ta().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(""!==e.discussCont.trim()){t.next=3;break}return e.$message.error("请输入评论内容!"),t.abrupt("return",!1);case 3:return t.next=5,e.$app.addNew("/user/discuss/addNew");case 5:if(r=t.sent,"success"!==r.code){t.next=19;break}return e.discussVo=r.body.vo,e.discussVo.resId=e.vo.id,e.discussVo.resType="课程",e.discussVo.deviceType="0",e.discussVo.resTitle=e.vo.name,e.discussVo.content=e.discussCont,t.next=15,e.$app.insert("/user/discuss/insert",e.discussVo);case 15:n=t.sent,"success"===n.code?(e.$message.success("发表成功"),e.discussCont="",e.discussListdata=[],e.discusslist(),e.discussCount()):e.$message.success(n.message),t.next=20;break;case 19:e.$message.error(r.message);case 20:case"end":return t.stop()}}),t)})))()},moreLoading:function(){this.pageNum++,this.discusslist()},discusslist:function(){var e=this;return na(ta().mark((function t(){var r,n;return ta().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return 1===e.pageNum&&(e.discussListdata=[]),r={pageSize:e.pageSize,pageNum:e.pageNum,orderBy:"contentTime desc"},t.next=4,e.$app.listdata("/user/discuss/listdata?urlsearch=resId:"+e.vo.id,r);case 4:n=t.sent,"success"===n.code?(n.body.pageInfo.list.map((function(t,r){t.iszan=!1,t.zanNum=0,t.showDel=!1,e.discussListdata.push(t),e.collectCount(t,r)})),n.body.pageInfo.list.length<e.pageSize||e.pageNum===n.body.pageInfo.pages?(e.isMore=!0,e.pageMore=!1):(e.isMore=!1,e.pageMore=!0)):e.$message.error(n.message);case 6:case"end":return t.stop()}}),t)})))()},discussCount:function(){var e=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{resId:this.vo.id},url:"/user/discuss/getDiscussCount"}).then((function(t){"success"===t.code?e.totalCount=t.body.data:e.$message.error(t.message)}))},collectCount:function(e,t){var r=this;return na(ta().mark((function n(){return ta().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,r.$http({url:"/user/collection/getCollectionCount",method:"GET",params:{busiDataId:e.id,operationType:"2"}}).then((function(n){"success"===n.code&&(r.discussListdata[t].zanNum=n.body.data,r.$http({url:"/user/collection/getIfCollection",method:"GET",params:{busiDataId:e.id,operationType:"2",ownerId:r.loginUser.personId}}).then((function(e){"success"===e.code&&(r.discussListdata[t].iszan=e.body.data)})))}));case 2:case"end":return n.stop()}}),n)})))()},Collection:function(e,t){var r=this;return na(ta().mark((function n(){var a,o,i;return ta().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,r.$app.addNew("/user/collection/addNew");case 2:if(a=n.sent,"success"!==a.code){n.next=17;break}return o=a.body.vo,o.busiDataId=e.id,o.type="课程",o.ownerId=r.loginUser.personId,o.operationType="2",o.module="course",o.url=r.$route.fullPath,n.next=13,r.$app.insert("/user/collection/insert",o);case 13:i=n.sent,"success"===i.code?(r.discussListdata[t].iszan=!r.discussListdata[t].iszan,r.$http({contentType:"application/x-www-form-urlencoded",url:"/user/collection/getCollectionCount?busiDataId=".concat(e.id,"&operationType=2"),method:"GET"}).then((function(e){if("success"===e.code){var n=r.discussListdata[t].iszan?"点赞成功":"取消点赞";r.$message.success(n),r.discussListdata[t].zanNum=e.body.data}else r.$message.error(e.message)}))):r.$message.success(i.message),n.next=18;break;case 17:r.$message.error(a.message);case 18:case"end":return n.stop()}}),n)})))()},delDiscuss:function(e,t){var r=this;return na(ta().mark((function n(){return ta().wrap((function(n){while(1)switch(n.prev=n.next){case 0:r.$confirm("确定删除该评论?","确认操作",{type:"warning",closeOnClickModal:!1}).then((function(){r.$http({contentType:"application/x-www-form-urlencoded",url:"/user/discuss/delete?ids="+e.id,method:"DELETE"}).then((function(e){"success"===e.code&&(r.$message.success("删除成功"),r.discussListdata.splice(t,1),r.totalCount-=1)}))})).catch((function(e){"cancel"!==e&&console.error(e)}));case 1:case"end":return n.stop()}}),n)})))()}}},sa=ia,la=(r(9618),c(sa,Zn,$n,!1,null,"1308eeee",null)),ca=la.exports,ua=function(){var e=this,t=e._self._c;return t("div",{staticClass:"outerBox",staticStyle:{width:"100%"}},[t("section",{staticClass:"courseBox"},[t("div",{staticClass:"imgCont"},[2!=e.typeEnter&&1===e.courseObj.bmState||1===e.bmState?t("svg-icon",{staticStyle:{position:"absolute",width:"48px",height:"48px"},attrs:{"icon-class":"triangle"}}):e._e(),2!=e.typeEnter&&1===e.courseObj.bmState||1===e.bmState?t("span",{staticStyle:{position:"absolute",transform:"rotate(-45deg)",top:"10px",left:"2px",color:"#fff"}},[e._v("已报名")]):e._e(),t("img",{staticClass:"courseImg",attrs:{src:e.base_api+"/ksgl/course/download?dataField=cover&nameField=coverUrl&id="+e.courseObj.id,alt:""},on:{click:function(t){return e.goDetail(e.courseObj.id,e.courseObj.finishChapterNum,e.courseObj.courseNum)}}}),t("span",{staticClass:"shoukeType"},[e._v(e._s(1===e.courseObj.shoukeType?"线上":"线下"))])],1),t("div",{staticClass:"courseTitle"},[t("div",{staticClass:"courseTitleTop clearfix"},[t("span",{on:{click:function(e){e.stopPropagation()}}},[2===e.typeEnter?t("el-checkbox",{staticClass:"checkBox l",attrs:{label:e.courseObj.id}},[t("span",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.courseObj.name))])]):e._e()],1),t("p",{staticClass:"l",staticStyle:{width:"100%",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis","font-size":"16px"}},[e._v(e._s(e.courseObj.name))])]),t("div",{staticClass:"courseTitleBottom clearfix"},[1===e.typeEnter?t("p",{staticClass:"l color3 margin5"},[e._v(e._s(e.timeFormat(e.courseObj.createTime)))]):e._e(),1===e.typeEnter?t("p",{staticClass:"r color3 margin5"},[e._v(e._s(e.courseObj.studyNum||0)+"人学习 ")]):e._e(),2===e.typeEnter?t("p",{staticClass:"l color3 margin5"},[e._v(e._s(e.timeFormat(e.courseObj.createTime)))]):e._e(),2===e.typeEnter?t("p",{staticClass:"color2 r margin5",on:{click:function(t){return e.ToDetail(e.courseObj)}}},[e._v(e._s(0===e.courseObj.ispublish?"编辑":"查看"))]):e._e(),2===e.typeEnter?t("p",{staticClass:"color2 r margin5",on:{click:function(t){return e.courseDeleted(e.courseObj,e.courseObj.ispublish)}}},[e._v(e._s(0===e.courseObj.ispublish?"上架":"下架"))]):e._e()])]),2!=e.typeEnter?t("div",{staticClass:"dialog",on:{click:function(t){return e.goDetail(e.courseObj.id,e.courseObj.finishChapterNum,e.courseObj.courseNum)}}},[t("div",{staticClass:"btn-content"},[t("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.goDetail(e.courseObj.id,e.courseObj.finishChapterNum,e.courseObj.courseNum)}}},[e._v("查看课程")]),1!==e.courseObj.bmState&&1!==e.bmState?t("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.enlist(e.courseObj.id)}}},[e._v("学习报名")]):e._e()],1)]):e._e()])])},da=[];function pa(e){return pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa(e)}function ha(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ha=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==pa(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(pa(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function fa(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function ma(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){fa(o,n,a,i,s,"next",e)}function s(e){fa(o,n,a,i,s,"throw",e)}i(void 0)}))}}function ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function va(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(r),!0).forEach((function(t){ga(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ya(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ga(e,t,r){return(t=_a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _a(e){var t=ba(e,"string");return"symbol"==pa(t)?t:t+""}function ba(e,t){if("object"!=pa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var wa=r(8957),xa=wa.uuid,La=r(5093),Ma={components:{},props:{courseObj:{type:Object,default:function(){return{}}},typeEnter:{type:String,default:function(){return""}},activeType:{type:String,default:function(){return""}},isCourseManage:{type:Number,default:function(){return 0}}},data:function(){return{checked:"",photoUrl:"",base_api:"",percentage:0,logoTitle:"",bmState:0}},computed:va({},ce(["routes","avatar","loginUser"])),watch:function(){},created:function(){this.base_api="/apigw",1===this.typeEnter?this.logoTitle="学习考试/课程中心":1===this.isCourseManage?this.logoTitle="学习考试/课程管理/课程管理":this.logoTitle="学习考试/讲师中心/我的课程"},beforeDestroy:function(){},mounted:function(){this.photoUrl=this.avatar,""!==window.productCode&&(this.photoUrl+="&productCode="+window.productCode),this.courseObj.finishChapterNum&&this.courseObj.courseNum?this.percentage=this.courseObj.finishChapterNum/this.courseObj.courseNum*100:this.percentage=0},methods:{enlist:function(e){var t=this;this.$confirm("是否确定学习该课程?","确认操作",{type:"warning"}).then(ma(ha().mark((function r(){var n,a,o,i,s;return ha().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.bmState=0,n=t.loginUser.personId,a=t.loginUser.staffList[0].orgFullName.split("-")[1],o=t.loginUser.staffList[0].orgFullId.split("-")[1],i={},i.courseId=e,i.personId=n,i.personName=t.loginUser.personName,i.personDept=a,i.deptId=o,i.id=xa(),i.orgCode=t.loginUser.orgCode,i.orgName=t.loginUser.orgName,i.status=0,r.next=16,t.$app.insert("/ksgl/studyCourse/insert",i);case 16:s=r.sent,"success"===s.code?(t.$nextTick((function(){t.bmState=1})),t.$message.success("报名成功!"),t.$vnode.context.initCourse(t.$vnode.context.activeType)):t.$message.error(s.message);case 18:case"end":return r.stop()}}),r)}))))},goDetail:function(e){window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type="+this.typeEnter+"&id="+e+"&logoTitle="+encodeURIComponent(this.logoTitle))},ToDetail:function(e){this.$vnode.context.isAdd=!1,0===e.ispublish?this.$bus.emit("update",e,1):this.$bus.emit("update",e,0)},courseDeleted:function(e,t){var r=this;return ma(ha().mark((function n(){return ha().wrap((function(n){while(1)switch(n.prev=n.next){case 0:t=0===t?1:2,r.$bus.emit("courseDeleted",t,e);case 2:case"end":return n.stop()}}),n)})))()},transTime:function(e){if(null===e)return e=0,e;if(e<60)return e+="秒",e;var t=Math.floor(e/60),r=Math.floor(e%60);if(t<60)return e=t+"分"+r+"秒",e;var n=Math.floor(t/60),a=Math.floor(t%60);return e=n+"小时"+a+"分"+r+"秒",e},timeFormat:function(e){return La(e).format("YYYY年MM月DD日")}}},ka=Ma,Ta=(r(6360),c(ka,ua,da,!1,null,"59fcee94",null)),Da=Ta.exports,Ya=function(){var e=this,t=e._self._c;return e.loading?e._e():t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{padding:"30px 100px 0",height:"calc(100vh - 61px)",overflow:"auto"}},[t("courseTop",{attrs:{vo:e.vo,title:"课程详情","type-enter":e.typeEnter,num:e.vo.finishCount,"all-num":e.vo.totalCount,"to-now-study-chapter-id":e.toNowStudyChapterId,"couse-id":e.couseId,"to-now-study-ware-id":e.toNowStudyWareId,"now-study-order-no":e.nowStudyOrderNo,"now-study-week-id":e.nowStudyWeekId}}),null!==e.vo.teacher?t("section",{staticClass:"courseBox2"},[t("h4",[e._v("讲师介绍")]),t("div",{staticClass:"clearfix courseBox-bottom2"},[null!==e.vo.teacher?t("img",{staticClass:"l imgHead",attrs:{src:e.base_api+"/ksgl/teacher/download?dataField=photoData&nameField=photoName&id="+e.vo.teacher.id,alt:""}}):e._e(),null!==e.vo.teacher?t("div",{staticClass:"l"},[t("p",{staticClass:"person-message"},[t("span",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.vo.teacher.name))]),e._v(" "),t("span",[e._v(e._s(0===e.vo.teacher.type?"内部":"外部"))]),e._v(" "),t("span",[e._v(e._s(e.vo.teacher.email))]),e._v(" "),t("span",[e._v(e._s(e.vo.teacher.phone))])]),e.collspse?e._e():t("p",{staticStyle:{width:"650px","text-overflow":"clip","white-space":"nowrap",color:"#666"}},[e._v(e._s(e.vo.teacher.introduction.substr(0,50))+" "),e.vo.teacher.introduction.length>50&&!e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1),e.collspse?t("p",{staticStyle:{width:"650px",height:"auto","max-height":"200px",overflow:"auto",color:"#666"}},[e._v(e._s(e.vo.teacher.introduction)+" "),e.vo.teacher.introduction.length>50&&e.collspse?t("el-link",{attrs:{type:"primary"},on:{click:e.openCollspse}},[e._v(" "+e._s(e.collspse?"收起":"展开")+" "),e.collspse?t("i",{staticClass:"el-icon-arrow-right"}):t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1):e._e()]):e._e()])]):e._e(),t("el-row",{staticClass:"tabs"},[t("el-col",{attrs:{span:"24"}},[t("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"课程简介",name:"first"}},[t("div",{staticStyle:{color:"#666","line-height":"20px"}},[e._v(" "+e._s(e.vo.courseVo.introduction?e.vo.courseVo.introduction:"暂无简介"))])]),t("el-tab-pane",{attrs:{label:"课程章节",name:"second"}},[e.courseChapterData.length>0?t("ul",{staticClass:"zhangjieUl"},e._l(e.courseChapterData,(function(r,n){return t("li",{key:r},[t("div",{staticClass:"clearfix"},[t("p",{staticClass:"titleName"},[t("span",{staticClass:"l",staticStyle:{"font-weight":"700","margin-right":"10px"}},[e._v(e._s(r.title)+" ")]),t("span",{staticClass:"l"},[e._v(" "+e._s(r.name))]),1===e.vo.courseVo.bmState||1===e.bmState?t("span",{staticClass:"color1 r margin10",on:{click:function(t){return e.doExercise(r.id,r.name)}}},[e._v(e._s(0===r.passenger.isHasSubject?"":"2"===e.typeEnter?"查看":"练习"))]):e._e()]),e._l(r.passenger.chapterList,(function(r,a){return t("div",{key:r},[t("p",{staticClass:"detailP",on:{click:function(t){return e.courseWare(r.id,r.format,r,n,a)}}},[t("svg-icon",{staticClass:"l",staticStyle:{"margin-top":"12px",width:"18px",height:"14px","margin-right":"10px"},attrs:{"icon-class":"DOC"===r.format?"lianxi_icon":"VIDEO"===r.format?"shipin_icon":"AUDIO"===r.format?"yinpin_icon":"tupian_icon"}}),t("span",{staticClass:"l"},[e._v(e._s(r.name))]),1===e.vo.courseVo.bmState||1===e.bmState?t("span",{staticClass:"color1 r margin10"},[e._v(e._s(e._f("finshState")(r.finshState))+" ")]):e._e(),t("span",{staticClass:"r margin10"},[e._v(e._s(e.transTime(r.timeLengthView)))])],1)])}))],2)])})),0):t("div",{staticStyle:{"text-align":"center",color:"#999","font-size":"var(--portalFontSize14)"}},[t("img",{attrs:{src:"./images/w-imgs/nomessage.png",width:"120px",height:"70px",alt:""}}),t("p",[e._v("暂无数据")])])]),2===e.vo.courseVo.shoukeType?t("el-tab-pane",{attrs:{label:"培训时间",name:"fifth"}},["fifth"===e.activeName?t("data-table",{attrs:{"is-cell-click":!1,"on-list-data-before-load":e.onListDataBeforeLoadTime,"module-info":e.moduleInfoTime,"tb-columns":e.tbColumnsTime,"toolbar-btns":e.listpageTimeBtns,"on-cell-click":e.exerciseClick,"on-list-data-loaded":e.onListDataLoadedTime}}):e._e()],1):e._e(),t("el-tab-pane",{attrs:{label:1===e.vo.courseVo.shoukeType?"学习记录":"签到记录",name:"third"}},[t("div",[1===e.vo.courseVo.shoukeType?t("data-table",{attrs:{"on-list-data-before-load":e.onListDataBeforeLoadStudy,"module-info":e.moduleInfoStudy,"tb-columns":"2"!==e.typeEnter?e.tbColumnsStudy1:e.tbColumnsStudy,"toolbar-btns":[],"on-list-data-loaded":e.onListDataLoadedStudy,"is-cell-click":!1}}):e._e(),2===e.vo.courseVo.shoukeType?t("data-table",{attrs:{"on-list-data-before-load":e.onListDataBeforeLoadStudy,"module-info":e.moduleInfoStudy,"tb-columns":"2"!==e.typeEnter?e.tbColumnsSign1:e.tbColumnsSign,"toolbar-btns":[],"on-list-data-loaded":e.onListDataLoadedTime,"is-cell-click":!1}}):e._e()],1)]),t("el-tab-pane",{attrs:{label:"练习记录",name:"fourth"}},["fourth"===e.activeName?t("data-table",{attrs:{"on-list-data-before-load":e.onListDataBeforeLoadExercise,"module-info":e.moduleInfo,"tb-columns":"2"!==e.typeEnter?e.tbColumnsExercise:e.tbColumnsExercise1,"toolbar-btns":[],"on-cell-click":e.exerciseClick,"on-list-data-loaded":e.onListDataLoadedExercise}}):e._e()],1),t("el-tab-pane",{attrs:{label:"课程点评",name:"sixth"}},["sixth"===e.activeName?t("comment",{attrs:{vo:e.vo.courseVo,"bm-state":1===e.vo.courseVo.bmState||1===e.bmState?1:0}}):e._e()],1)],1)],1)],1),t("el-dialog",{staticClass:"code-dialog",staticStyle:{"text-align":"center",color:"#3333","font-size":"var(--portalFontSize14)"},attrs:{title:"签到二维码",visible:e.dialogVisible,width:"600","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticStyle:{"font-size":"22px","font-weight":"600"}},[e._v(e._s(e.dialogCourse))]),t("div",{staticStyle:{"font-size":"var(--portalFontSize14)"}},[e._v(e._s(e.dialogChapter))]),t("el-image",{staticStyle:{width:"300px",height:"300px","margin-bottom":"50px"},attrs:{src:e.imageUrl,alt:""}},[t("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v(" 加载中"),t("span",{staticClass:"dot"},[e._v("...")])])])],1)],1)},Sa=[];function Ca(e){return Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ca(e)}function ja(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ja=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Ca(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Ca(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ea(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Oa(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ea(o,n,a,i,s,"next",e)}function s(e){Ea(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Pa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Aa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(r),!0).forEach((function(t){Na(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Na(e,t,r){return(t=Ha(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ha(e){var t=Ia(e,"string");return"symbol"==Ca(t)?t:t+""}function Ia(e,t){if("object"!=Ca(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ca(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Fa=r(5093),za=void 0,Ba={components:{courseTop:Rn,comment:ca},filters:{finshState:function(e){return 1!==za.vo.courseVo.shoukeType||"2"===za.typeEnter?"查看":0===Number(e)?"开始学习":1===Number(e)?"继续学习":"再次学习"}},props:{},data:function(){return{imageUrl:"",activeName:"first",tableData:[],tableDataTime:[],courseId:"",vo:null,courseChapterData:[],typeEnter:"",base_api:"",timeSign:"",toNowStudyChapterId:"",toNowStudyWareId:"",nowStudyOrderNo:"",nowStudyWeekId:"",dialogVisible:!1,couseId:"",collspse:!1,moduleInfo:{formTemplate:"vwExerciseRecord",moduleCode:"vwExerciseRecord",listDataUrl:"/ksgl/vwExerciseRecord/listdata"},moduleInfoTime:{formTemplate:"courseTime",moduleCode:"courseTime",listDataUrl:"/ksgl/courseTime/listdata"},moduleInfoStudy:{formTemplate:"vwStudyRecord",moduleCode:"vwStudyRecord",listDataUrl:"/ksgl/vwStudyRecord/listdata"},tbColumnsStudy:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"chapterName",title:"章节名称",align:"left",valign:"middle",searchable:!0},{field:"wareName",title:"课件名称",width:"150px",align:"left",valign:"middle",searchable:!0},{field:"personName",title:"姓名",width:"80px",align:"center",valign:"middle",sortable:!0},{field:"endTime",title:"学习时间",width:"150px",align:"center",valign:"middle",sortable:!0},{field:"timeLength",title:"学习时长",width:"110px",align:"center",valign:"middle",sortable:!0}],tbColumnsStudy1:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"chapterName",title:"章节名称",align:"left",valign:"middle",searchable:!0},{field:"wareName",title:"课件名称",width:"150px",align:"left",valign:"middle",searchable:!0},{field:"endTime",title:"学习时间",width:"150px",align:"center",valign:"middle",sortable:!0},{field:"timeLength",title:"学习时长",width:"110px",align:"center",valign:"middle",sortable:!0}],tbColumnsExercise:[{field:"index",title:"序号",width:"45",align:"center",valign:"middle"},{field:"chapterName",title:"章节名称",align:"left",valign:"middle",searchable:!0},{field:"startTime",title:"开始时间",width:"150",align:"center",valign:"middle",sortable:!0},{field:"endTime",title:"结束时间",width:"150",align:"center",valign:"middle",sortable:!0},{field:"useTime",title:"用时/分",width:"110",align:"center",valign:"middle",sortable:!0}],tbColumnsExercise1:[{field:"index",title:"序号",width:"45",align:"center",valign:"middle"},{field:"chapterName",title:"章节名称",align:"left",valign:"middle",searchable:!0},{field:"personName",title:"姓名",width:"80",align:"center",valign:"middle",searchable:!0},{field:"startTime",title:"开始时间",width:"150",align:"center",valign:"middle",sortable:!0},{field:"endTime",title:"结束时间",width:"150",align:"center",valign:"middle",sortable:!0},{field:"useTime",title:"用时/分",width:"110",align:"center",valign:"middle",sortable:!0}],tbColumnsSign:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"courseDate",title:"上课日期",align:"left",valign:"middle"},{field:"courseTime",title:"上课时间",width:"150px",align:"center",valign:"middle"},{field:"personName",title:"姓名",width:"80px",align:"center",valign:"middle",sortable:!0},{field:"signTime",title:"签到时间",width:"150px",align:"center",valign:"middle",sortable:!0},{field:"signStatus",title:"签到状态",width:"100px",align:"center",valign:"middle",sortable:!0,elementFormatter:"0:未签到\r\n1:正常\r\n2:迟到"}],tbColumnsSign1:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"courseDate",title:"上课日期",align:"left",valign:"middle"},{field:"courseTime",title:"上课时间",width:"150px",align:"center",valign:"middle"},{field:"signTime",title:"签到时间",width:"150px",align:"center",valign:"middle",sortable:!0},{field:"signStatus",title:"签到状态",width:"100px",align:"center",valign:"middle",sortable:!0,elementFormatter:"0:未签到\r\n1:正常\r\n2:迟到"}],tbColumnsTime:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"courseDate",title:"上课日期",align:"left",valign:"middle",searchable:!0},{field:"courseTime",title:"上课时间",width:"150px",align:"center",valign:"middle",sortable:!0},{field:"weekTime",title:"星期",width:"150px",align:"center",valign:"middle",sortable:!0},{field:"column_operate",title:"操作",width:"100px",align:"center",valign:"middle"}],listpageTimeBtns:[{id:"btn_qrCode",btnName:"签到二维码",btnIcon:"",btnClick:"getQRcode(row)",btnPermission:"qrCode",btnType:"column"}],dialogCourse:"",dialogChapter:"",loading:!0,logoTitle:"",finshState:"",bmState:0}},computed:Aa({},ce(["routes","avatar","loginUser"])),watch:{},beforeCreate:function(){za=this},created:function(){this.logoTitle=this.$route.query.logoTitle,this.base_api="/apigw",this.courseId=this.$route.query.id,this.typeEnter=this.$route.query.type,this.$bus.on("nextCourseWare",this.nextWare)},beforeDestroy:function(){this.$bus.off("nextCourseWare",this.nextWare)},mounted:function(){this.$bus.on("bmState",this.bmStateSu),this.getById(this.courseId)},methods:{bmStateSu:function(e){var t=this;this.$nextTick((function(){t.bmState=e}))},openCollspse:function(){this.collspse=!this.collspse},timeFormat:function(e){return Fa(e).format("YYYY-MM-DD HH:mm")},exerciseClick:function(e){window.open("/#/commonHeader?workform=@/wapp/ksgl/components/KsglComponentProblemDetail&logoTitle=学习考试&chapterName="+e.chapterName+"&chapterId="+e.chapterId+"&type=3&id="+e.id+"&personId="+e.personId)},getQRcode:function(e){var t=this;this.dialogVisible=!0,this.dialogCourse=this.vo.courseVo.name,this.dialogChapter="培训时间:"+Fa(e.stateTime).format("YYYY年MM月DD日")+" "+Fa(e.stateTime).format("HH:mm")+" 至 "+Fa(e.endTime).format("HH:mm"),this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",url:"/base/paramConfig/findParamValueByName",params:{orgCode:this.loginUser.orgCode,paramName:"mpp.h5app.baseurl"}}).then((function(r){if("success"===r.code){var n=r.body.value+"#/signRes?apigateway="+location.host+"&courseId="+e.courseId+"&id="+e.id+"&name="+e.name+"&courseName="+t.vo.courseVo.name+"&isDefine=true";t.$http({method:"GET",url:"/ksgl/courseChapter/getQrCode",params:{url:encodeURI(n)}}).then((function(e){"success"===e.code?t.imageUrl="data:image/png;base64,"+e.body.image:t.$message.error(e.message)}))}}))},handleClick:function(e,t){"second"===e.name&&this.courseChapterFuc()},courseWare:function(e,t,r,n,a){var o=this.typeEnter;if("2"!==o){if(1!==this.bmState&&1!==this.vo.courseVo.bmState)return void this.$alert("您还未报名,暂不能查看。","操作提示",{type:"warning"});o=3}t=t.toLowerCase(),window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseWare&typeMedia="+t+"&typeEnter="+o+"&id="+e+"&courseId="+this.courseId+"&index="+n+"&domIndex="+a+"&orderNo="+this.nowStudyOrderNo+"&weekId="+r.id+"&logoTitle="+this.logoTitle)},doExercise:function(e,t){"2"!==this.typeEnter?window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/exercise/KsglKcglComponentDoExercise&chapterName="+t+"&id="+e+"&logoTitle="+this.logoTitle):window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/exercise/KsglKcglComponentExerciseDetail&id="+e+"&chapterName="+t+"&logoTitle="+this.logoTitle)},getById:function(e){var t=this;this.$app.getById("ksgl/course/getById",e).then((function(e){"success"===e.code?(t.vo=e.body,t.toNowStudyChapterId=t.vo.toNowStudyChapterId,t.toNowStudyWareId=t.vo.toNowStudyWareId,t.nowStudyOrderNo=t.vo.orderNo,t.nowStudyWeekId=t.vo.toNowStudyWareId,t.couseId=t.vo.courseChapter.length>0?t.vo.courseChapter[0].courseId:"",t.loading=!1):(t.$message.error(e.message),t.loading=!1)}))},courseChapterFuc:function(){var e=this;return Oa(ja().mark((function t(){return ja().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{courseId:e.vo.courseVo.id,orderNo:"desc"},url:"ksgl/courseChapter/getBycourseId"}).then((function(t){"success"===t.code?e.courseChapterData=t.body.listdata:e.$message.error(t.message)}));case 1:case"end":return t.stop()}}),t)})))()},onListDataBeforeLoadStudy:function(e,t){1===this.vo.courseVo.shoukeType?t.orderBy="endTime desc":t.orderBy="signTime desc","2"!==this.typeEnter?t.urlsearch="courseId:"+this.vo.courseVo.id+";personId:"+this.loginUser.personId:t.urlsearch="courseId:"+this.vo.courseVo.id},onListDataBeforeLoadExercise:function(e,t){t.orderBy="endTime desc","2"!==this.typeEnter?t.urlsearch="courseId:"+this.vo.courseVo.id+";orgCode:"+this.loginUser.orgCode+";personId:"+this.loginUser.personId:t.urlsearch="courseId:"+this.vo.courseVo.id+";orgCode:"+this.loginUser.orgCode},onListDataBeforeLoadTime:function(e,t){t.orderBy="stateTime asc",t.urlsearch="courseId:"+this.vo.courseVo.id},onListDataLoadedStudy:function(e,t){t.list.forEach((function(e,t){if(e.timeLength<60)e.timeLength=e.timeLength+"秒";else{var r=Math.floor(e.timeLength/60),n=Math.floor(e.timeLength%60);if(r<60)e.timeLength=r+"分"+n+"秒";else{var a=Math.floor(r/60),o=Math.floor(r%60);e.timeLength=a+"小时"+o+"分"+n+"秒"}}}))},onListDataLoadedTime:function(e,t){var r=this;t.list.forEach((function(e,t){r.$set(e,"stateTime",e.stateTime||e.startTime),r.$set(e,"weekTime",r.getweekday(Fa(e.stateTime).format("YYYY-MM-DD"))),r.$set(e,"courseDate",Fa(e.stateTime).format("YYYY-MM-DD")),r.$set(e,"courseTime",Fa(e.stateTime).format("HH:mm:ss")+"~"+Fa(e.endTime).format("HH:mm:ss"))}))},onListDataLoadedExercise:function(e,t){"fourth"===this.activeName&&t.list.forEach((function(e,t){if(e.useTime<60)e.useTime=e.useTime+"秒";else{var r=Math.floor(e.useTime/60),n=Math.floor(e.useTime%60);if(r<60)e.useTime=r+"分"+n+"秒";else{var a=Math.floor(r/60),o=Math.floor(r%60);e.useTime=a+"小时"+o+"分"+n+"秒"}}})),console.log(" listdata loaded")},transTime:function(e){return Fa(new Date(e)).format("HH:mm:ss")},getweekday:function(e){var t=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],r=t[new Date(e).getDay()];return r}}},Ga=Ba,Ra=(r(1410),r(4294),c(Ga,Ya,Sa,!1,null,"75dd16c8",null)),Wa=Ra.exports,Va=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ware-container",staticStyle:{padding:"50px 100px 0","overflow-y":"auto",height:"calc(100vh - 61px)"}},[e.updateform?["video"===e.typeMedia&&""!==e.videoUrl?t("videoData",{attrs:{width:"1000px",height:"550px",autoplay:!1,loop:!1,"video-url":e.videoUrl,"player-time":e.playerTime,"on-time-update":e.onVideoTimeUpdate}}):e._e(),"audio"===e.typeMedia?t("div",[t("audio",{ref:"audio",staticStyle:{width:"100%",outline:"none"},attrs:{controls:"",src:e.videoUrl},on:{loadeddata:e.oAudionLoadeddata,timeupdate:e.onAudioTimeUpdate}})]):e._e(),"image"===e.typeMedia?t("img",{staticStyle:{"max-width":"100%"},attrs:{src:e.base_api+"/ksgl/courseware/download?dataField=courseFile&nameField=courseFileName&id="+e.courseWareId}}):e._e(),"doc"===e.typeMedia?t("div",{staticClass:"bodyfile-container",attrs:{id:"bodyfilebox"}},[t("iframe",{attrs:{id:"pdfHtml",width:"100%",height:"100%",frameborder:"0",src:e.bodyFileUrl}})]):e._e()]:e._e(),t("div",{staticStyle:{position:"relative","margin-top":"20px",width:"100%",border:"1px solid #ebedf0","line-height":"40px"}},[e.updateform?t("a",{staticStyle:{flex:"1","margin-left":"10px"},attrs:{href:e.base_api+"/ksgl/courseware/download?dataField=courseFile&nameField=courseFileName&id="+e.courseWareId}},[t("b",[e._v("课件名称:")]),e._v(" "+e._s(e.wareName)+" "),t("i",{staticClass:"el-icon-download",staticStyle:{"margin-left":"10px"}})]):e._e(),t("div",{staticClass:"btnBox"},[t("svg-icon",{attrs:{"icon-class":e.isColl?"fiveStar1":"fiveStar"},on:{click:e.Collection}}),t("span",[e._v(e._s(e.collectNum)+" 次")]),e.isNNextFile?t("el-button",{staticStyle:{"margin-left":"10px"},on:{click:e.nextWare}},[e._v("下一个课件")]):e._e()],1),t("div",{staticStyle:{width:"100%","padding-left":"10px"}},[t("svg-icon",{staticClass:"l",staticStyle:{"margin-top":"12px",width:"18px",height:"14px","margin-right":"10px"},attrs:{"icon-class":"doc"===e.typeMedia?"lianxi_icon":"video"===e.typeMedia?"shipin_icon":"audio"===e.typeMedia?"yinpin_icon":"tupian_icon"}}),t("span",{staticClass:"l"},[e._v(e._s(e.courseFileName))]),t("span",{staticClass:"r margin10"},[e._v("学习时长:"+e._s(e.transTime(e.timeLengthView)))])],1),t("div",{staticStyle:{width:"100%","line-height":"28px",display:"flex","padding-left":"10px","padding-bottom":"10px"}},[t("span",{staticStyle:{"font-weight":"600",display:"contents"}},[e._v("课件介绍:")]),e._v(" "+e._s(e.introduction)+" ")])])],2)},Ua=[];function qa(e){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qa(e)}function Xa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xa=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==qa(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(qa(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ka(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Ja(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ka(o,n,a,i,s,"next",e)}function s(e){Ka(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Qa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Za(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(r),!0).forEach((function(t){$a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $a(e,t,r){return(t=eo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eo(e){var t=to(e,"string");return"symbol"==qa(t)?t:t+""}function to(e,t){if("object"!=qa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=qa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ro=r(5093),no={props:{},data:function(){return{base_api:"",courseWareId:"",courseFileName:"",typeMedia:"",courseChapterData:[],index:0,domIndex:0,nowStudyOrderNo:"",nowStudyWeekId:"",collectVo:"",isColl:!1,collectNum:0,wareName:"",timeLengthView:"",introduction:"",videoUrl:"",updateform:!0,bodyFileUrl:"",isNNextFile:!0,playerTime:0,timeLength:0,isFinish:0}},computed:Za({},ce(["routes","avatar","loginUser"])),watch:{},created:function(){this.$options.components["videoData"]=this.$loadComponent("@/wapp/common/components/Video/index")},beforeDestroy:function(){clearTimeout()},destroyed:function(){},mounted:function(){var e=this;return Ja(Xa().mark((function t(){return Xa().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.courseWareId=e.$route.query.id,e.courseFileName=e.$route.query.fileName,e.typeMedia=e.$route.query.typeMedia,e.base_api="/apigw",e.courseId=e.$route.query.courseId,e.index=Number(e.$route.query.index),e.domIndex=Number(e.$route.query.domIndex),e.nowStudyOrderNo=e.$route.query.orderNo,e.nowStudyWeekId=e.$route.query.weekId,e.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{courseId:e.courseId,orderNo:"desc"},url:"ksgl/courseChapter/getBycourseId"}).then((function(t){if("success"===t.code){e.courseChapterData=t.body.listdata;var r=null;e.courseChapterData[e.index].passenger.chapterList.map((function(t,n){t.id===e.$route.query.id&&(e.wareName=t.name,e.courseFileName=t.courseFileName,e.timeLengthView=t.timeLengthView,e.introduction=t.introduction||"暂无",e.chapterListIndex=n,r=t)}));var n=0;e.courseChapterData.forEach((function(t,r){e.index<=r&&t.passenger.chapterList.forEach((function(t,a){(e.index===r&&e.domIndex<a||e.index<r)&&n++}))})),e.isNNextFile=n>0,"video"===e.typeMedia||"audio"===e.typeMedia?e.getVideo():e.viewBodyfile(r,e.index,e.domIndex),e.saveStudyRecord()}else e.$message.error(t.message)})),e.isCollect(),e.collectCount();case 12:case"end":return t.stop()}}),t)})))()},methods:{getVideo:function(){var e=this;this.$http({url:"/ksgl/courseware/getAttachUrl?id=".concat(this.courseChapterData[this.index].passenger.chapterList[this.domIndex].id),method:"GET"}).then((function(t){"success"===t.code?(e.videoUrl="/apigw"+"/ksgl/courseware/download?id=".concat(e.courseChapterData[e.index].passenger.chapterList[e.domIndex].id),e.playerTime=e.courseChapterData[e.index].passenger.chapterList[e.domIndex].studyTimeLength,e.timeLength=e.courseChapterData[e.index].passenger.chapterList[e.domIndex].timeLength,e.isFinish=e.playerTime>=e.timeLength?1:0):e.$message(t.body.message)}))},onVideoTimeUpdate:function(e){var t=this;"3"===this.$route.query.typeEnter&&(e=parseInt(e),1!==this.isFinish&&(e-this.playerTime>=10||e>=this.timeLength)&&(this.playerTime=e,this.isFinish=e>=this.timeLength?1:0,this.$http({url:"/ksgl/studywareRecord/playerTime?weekId=".concat(this.courseChapterData[this.index].passenger.chapterList[this.domIndex].id,"&playerTime=").concat(e,"&chapterId=").concat(this.courseChapterData[this.index].id,"&isFinish=").concat(this.isFinish),method:"POST"}).then((function(e){if("success"!==e.code)t.$message(e.body.message);else if(1===t.isFinish){var r=window.opener.document.querySelector("#btnRefresh");null!==r&&r.click()}}))))},oAudionLoadeddata:function(){this.$refs["audio"].currentTime=this.playerTime},onAudioTimeUpdate:function(){this.onVideoTimeUpdate(this.$refs["audio"].currentTime)},nextWare:function(){var e=this;return Ja(Xa().mark((function t(){var r,n,a,o;return Xa().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r={IMAGE:"image",VIDEO:"video",AUDIO:"audio",DOC:"doc"},e.domIndex++,0===e.courseChapterData[e.index].passenger.chapterList.length&&e.index++,e.domIndex>e.courseChapterData[e.index].passenger.chapterList.length-1&&(e.index++,e.domIndex=0),n=0,e.courseChapterData.forEach((function(t,r){e.index<=r&&t.passenger.chapterList.forEach((function(t,a){(e.index===r&&e.domIndex<a||e.index<r)&&n++}))})),e.isNNextFile=n>0,a=e.courseChapterData[e.index].passenger.chapterList[e.domIndex],!a){t.next=36;break}if(o=JSON.parse(JSON.stringify(e.$route.query)),o.id=a.id,o.index=e.index,o.domIndex=e.domIndex,o.typeMedia=e.typeMedia,o.orderNo=e.nowStudyOrderNo,o.nowStudyWeekId=a.id,e.$router.replace({path:e.$route.path,query:o}),e.updateform=!1,e.wareName=a.name,e.typeMedia=r[a.format],e.courseFileName=a.courseFileName,e.timeLengthView=a.timeLengthView,e.introduction=a.introduction||"暂无","video"!==e.typeMedia&&"audio"!==e.typeMedia){t.next=29;break}return e.videoUrl="",t.next=27,e.getVideo();case 27:t.next=35;break;case 29:if("image"!==e.typeMedia){t.next=33;break}e.courseWareId=a.id,t.next=35;break;case 33:return t.next=35,e.viewBodyfile(a,e.index,e.domIndex);case 35:e.$nextTick((function(){e.updateform=!0,e.saveStudyRecord()}));case 36:case"end":return t.stop()}}),t)})))()},viewBodyfile:function(e,t,r){var n="/apigw/ksgl/courseware/download?inline=true&topdf=true&id="+e.id+"&fileName="+this.courseFileName;n+="&httpPort="+location.port,this.bodyFileUrl="./plugins/PDFjs/web/viewer.html?file="+encodeURIComponent(n)},saveStudyRecord:function(){var e=this;return Ja(Xa().mark((function t(){var r,n,a,o;return Xa().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("3"===e.$route.query.typeEnter){t.next=2;break}return t.abrupt("return");case 2:if("null"!==e.nowStudyOrderNo){t.next=4;break}return t.abrupt("return");case 4:if(r=e.courseChapterData[e.index].passenger.chapterList[e.domIndex].finshState,0!==r){t.next=11;break}return n={chapterId:e.courseChapterData[e.index].id,courseId:e.courseChapterData[e.index].courseId,orderNo:e.nowStudyOrderNo,weekId:e.courseChapterData[e.index].passenger.chapterList[e.domIndex].id},t.next=9,e.$app.insert("/ksgl/studywareRecord/record?type=".concat(e.courseChapterData[e.index].passenger.chapterList[e.domIndex].format),n);case 9:a=t.sent,"success"===a.code&&(e.isFinish=a.body.vo.isFinish,1===e.isFinish&&(o=window.opener.document.querySelector("#btnRefresh"),null!==o&&o.click()));case 11:case"end":return t.stop()}}),t)})))()},isCollect:function(){var e=this;this.$http({url:"/user/collection/getIfCollection",method:"GET",params:{busiDataId:this.$route.query.id,operationType:"1",ownerId:this.loginUser.personId}}).then((function(t){"success"===t.code?e.isColl=t.body.data:e.$message({type:"warning",message:t.body.message})}))},collectCount:function(){var e=this;this.$http({url:"/user/collection/getCollectionCount",method:"GET",params:{busiDataId:this.$route.query.id,operationType:"1"}}).then((function(t){"success"===t.code?e.collectNum=t.body.data:e.$message({type:"warning",message:t.body.message})}))},Collection:function(){var e=this;return Ja(Xa().mark((function t(){var r,n;return Xa().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.addNew("/user/collection/addNew");case 2:if(r=t.sent,"success"!==r.code){t.next=18;break}return e.collectVo=r.body.vo,e.collectVo.busiDataId=e.$route.query.id,e.collectVo.type="课件",e.collectVo.ownerId=e.loginUser.personId,e.collectVo.operationType="1",e.collectVo.url=e.$route.fullPath,e.collectVo.title=e.wareName,e.collectVo.module="courseChapter",t.next=14,e.$app.insert("/user/collection/insert",e.collectVo);case 14:n=t.sent,"success"===n.code?(e.$message.success(n.message),e.isCollect(),e.collectCount()):e.$message.success(n.message),t.next=19;break;case 18:e.$message.success(r.message);case 19:case"end":return t.stop()}}),t)})))()},transTime:function(e){return ro(new Date(e)).format("HH:mm:ss")}}},ao=no,oo=(r(1971),c(ao,Va,Ua,!1,null,"1c169dd8",null)),io=oo.exports,so=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{width:"800px",title:"选择课件",visible:e.innerVisible,"append-to-body":""},on:{"update:visible":function(t){e.innerVisible=t}}},[e.innerVisible?t("div",{staticClass:"right-toolbar-container"},[t("el-input",{staticStyle:{width:"655px"},attrs:{placeholder:"搜索...",clear:"searchBar"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearchTextInner.apply(null,arguments)}},model:{value:e.innerSearchText,callback:function(t){e.innerSearchText=t},expression:"innerSearchText"}},[t("el-button",{staticStyle:{width:"30px"},attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.doSearchTextInner.apply(null,arguments)}},slot:"append"})],1),t("el-button",{staticStyle:{"margin-left":"10px"},attrs:{plain:"",icon:"el-icon-check"},on:{click:e.innerChooseClick}},[e._v("选择")])],1):e._e(),e.innerVisible?t("data-table",{ref:"KJTable",attrs:{"on-list-data-before-load":e.onListDataBeforeLoad,"module-info":e.moduleInfo,"tb-columns":e.tbColumns1,"toolbar-btns":e.listpageBtns,"on-cell-click":e.handleCellClick,"on-selected-rows-change":e.onSelectedRowsChange}}):e._e()],1)],1)},lo=[],co={components:{},props:{vo:{type:Object,default:function(){return{}}}},data:function(){return{moduleInfo:{formTemplate:"courseware",moduleCode:"courseware",listDataUrl:"/ksgl/courseware/listdata",listDefaultOrderBy:"",winWidth:800,winHeight:600},tbColumns1:[{field:"state",checkbox:!0,width:"45px"},{field:"name",title:"课件名称",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0},{field:"categoryName",title:"分类名称",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"createTime",title:"创建时间",width:"130px",align:"center",valign:"middle",sortable:!0,propType:"java.util.Date",elementFormatter:"format:yyyy-MM-dd HH:mm"}],listpageBtns:[],innerVisible:!1,selectedRows:[],selectString:"",index:null}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{click:function(e){console.log(e),this.index=e,this.innerVisible=!0},doSearchTextInner:function(){this.$bus.emit("searchListData",this.innerSearchText,"or","dialog")},onListDataBeforeLoad:function(e,t){t.urlsearch="orgCode:"+e.loginUser.orgCode},onSelectedRowsChange:function(e){var t=this;this.selectedRows=e,this.selectString=[],this.selectedRows.forEach((function(e){t.selectString.push(e.id)})),this.selectString=this.selectString.toString()},innerChooseClick:function(){this.$bus.emit("selectedCrouseString",this.selectString,this.index),this.$bus.emit("selectedCrouseObj",this.selectedRows,this.index),this.innerVisible=!1}}},uo=co,po=(r(7978),c(uo,so,lo,!1,null,"6c8f933c",null)),ho=po.exports,fo=function(){var e=this,t=e._self._c;return t("div",[t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("div",{staticClass:"header-table-title",staticStyle:{"text-align":"left"},attrs:{colspan:"6"}},[t("span",[e._v("培训时间")]),t("span",{staticClass:"Fright"},[t("el-button",{attrs:{plain:"",size:"mini",icon:"el-icon-delete",disabled:1!==e.canEdit},on:{click:e.delChecked}},[e._v("删除")])],1),t("span",{staticClass:"Fright"},[t("el-button",{attrs:{plain:"",size:"mini",icon:"el-icon-plus",disabled:1!==e.canEdit},on:{click:e.AddTimeInCycle}},[e._v("按周排课")])],1),t("span",{staticClass:"Fright"},[t("el-button",{attrs:{plain:"",size:"mini",icon:"el-icon-plus",disabled:1!==e.canEdit},on:{click:e.AddasCalender}},[e._v("按天排课")])],1)]),t("el-table",{ref:"elTable",attrs:{border:"",data:e.ManagetableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange},model:{value:e.ManagetableData,callback:function(t){e.ManagetableData=t},expression:"ManagetableData"}},[t("el-table-column",{attrs:{type:"selection",width:"45",align:"center"}}),t("el-table-column",{attrs:{type:"index",label:"序号",width:"55",align:"center"}}),t("el-table-column",{attrs:{label:"上课日期",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(e.dellTime(r.row.stateTime))+" "+e._s(e.dellDay(r.row.stateTime))+" ")])]}}])}),t("el-table-column",{attrs:{label:"上课时间",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(e.dellotherTime(r.row.stateTime))+" ~ "+e._s(e.dellotherTime(r.row.endTime)))])]}}])}),1===e.canEdit?t("el-table-column",{attrs:{label:"操作",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer","margin-right":"6px"},attrs:{icon:"el-icon-edit","font-size":"20px"},on:{click:function(t){return e.updateChecked(r.$index,r.row)}}}),t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},attrs:{icon:"el-icon-delete","font-size":"20px"},on:{click:function(t){return e.delChecked(r.$index,r.row)}}})]}}],null,!1,1522554131)}):e._e()],1),e.ShowCycleTimeDialog?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{title:"按周排课",visible:e.ShowCycleTimeDialog,width:"650px","append-to-body":"","before-close":e.CyclehandleClose,"close-on-click-modal":!1},on:{"update:visible":function(t){e.ShowCycleTimeDialog=t}}},[t("div",{staticStyle:{"text-align":"center","font-size":"16px"}},[e._v("课程时间:"+e._s(e.formatTime(e.vo.stateTime,"YYYY年MM月DD日"))+" 至 "+e._s(e.formatTime(e.vo.endTime,"YYYY年MM月DD日")))]),t("div",{staticClass:"cycle-box",staticStyle:{height:"369px"}},[t("el-scrollbar",{attrs:{native:!1}},[t("div",[t("el-checkbox-group",{on:{change:e.chooseDay},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.TimeList,(function(r,n){return t("div",{key:r.type},[t("el-row",{staticClass:"cycle-week-box"},[t("el-col",{staticStyle:{"text-align":"center",display:"flex","padding-left":"10px"},attrs:{span:"6"}},[t("div",{staticStyle:{"line-height":"36px"}},[t("el-checkbox",{attrs:{label:r.name,name:r.type}})],1),t("div",{staticClass:"MarginL20",staticStyle:{"line-height":"36px"}},[e._v("上课时间")])]),t("el-col",{attrs:{span:"16"}},e._l(r.courseList,(function(r,n){return t("div",{key:n,staticClass:"flex time-box"},[t("el-time-picker",{attrs:{format:"HH:mm",placeholder:"任意时间点",disabled:r.disabled},model:{value:r.startTime,callback:function(t){e.$set(r,"startTime",t)},expression:"data.startTime"}}),t("div",{staticClass:"text"},[e._v("至")]),t("el-time-picker",{attrs:{format:"HH:mm",placeholder:"任意时间点",disabled:r.disabled},model:{value:r.endTime,callback:function(t){e.$set(r,"endTime",t)},expression:"data.endTime"}})],1)})),0),t("el-col",{staticStyle:{align:"center"},attrs:{span:"2"}},[0===e.num?t("i",{staticClass:"el-icon-plus icon-box",staticStyle:{"line-height":"36px"},on:{click:function(t){return e.addThisTime(r,n)}}}):t("i",{staticClass:"el-icon-delete icon-box",staticStyle:{"line-height":"36px"},on:{click:function(t){return e.deleteOneTime(r,e.num)}}})])],1)],1)})),0)],1)])],1),t("div",{staticClass:"footer"},[t("el-button",{attrs:{plain:""},on:{click:function(t){e.ShowCycleTimeDialog=!e.ShowCycleTimeDialog}}},[e._v("关 闭")]),t("el-button",{attrs:{type:"primary"},on:{click:e.zhouqiclick}},[e._v("确 定")])],1)]):e._e(),e.ShowCalenderDialog?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{title:"按天排课",visible:e.ShowCalenderDialog,width:"520px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.ShowCalenderDialog=t}}},[t("div",{staticStyle:{"text-align":"center","font-size":"16px"}},[e._v("课程时间:"+e._s(e.formatTime(e.vo.stateTime,"YYYY年MM月DD日"))+" 至 "+e._s(e.formatTime(e.vo.endTime,"YYYY年MM月DD日")))]),t("div",{staticClass:"calendar-box"},[e.ShowCalenderDialog?t("calendar",{attrs:{"get-day-details":e.getDay,"default-type":"month","start-time":e.vo.stateTime,"end-time":e.vo.endTime}}):e._e()],1),t("div",{staticClass:"cycle-box"},[t("el-scrollbar",{attrs:{native:!1,tag:"div"}},[t("div",{staticStyle:{"text-align":"left"}},e._l(e.CalenderTimeList,(function(r,n){return t("div",{key:n},[t("el-row",{staticClass:"calender-week-box"},[t("el-col",{staticStyle:{"text-align":"center","font-size":"var(--portalFontSize15)"},attrs:{span:"4"}},[e._v("上课时间")]),t("el-col",{attrs:{span:"18"}},[t("div",{staticClass:"flex time-box"},[t("el-time-picker",{attrs:{format:"HH:mm",placeholder:"任意时间点","default-value":new Date(0,0,0,8,0,0)},model:{value:r.startTime,callback:function(t){e.$set(r,"startTime",t)},expression:"item.startTime"}}),t("div",{staticClass:"text"},[e._v("至")]),t("el-time-picker",{attrs:{format:"HH:mm",placeholder:"任意时间点","default-value":new Date(0,0,0,18,0,0)},model:{value:r.endTime,callback:function(t){e.$set(r,"endTime",t)},expression:"item.endTime"}})],1)]),t("el-col",{attrs:{span:"2"}},[0===n?t("i",{staticClass:"el-icon-plus icon-box",staticStyle:{"line-height":"36px"},on:{click:function(t){return e.CalenderaddThisTime(r,n)}}}):e._e(),n>0?t("i",{staticClass:"el-icon-delete icon-box",staticStyle:{"line-height":"36px"},on:{click:function(t){return e.CalenderdeleteOneTime(r,e.num)}}}):e._e()])],1)],1)})),0)])],1),t("div",{staticClass:"footer"},[t("el-button",{attrs:{plain:""},on:{click:function(t){e.ShowCalenderDialog=!e.ShowCalenderDialog}}},[e._v("关 闭")]),t("el-button",{attrs:{type:"primary"},on:{click:e.Calenderclick}},[e._v("确定")])],1)]):e._e(),e.showUpdateTime?t("el-dialog",{attrs:{title:"培训时间",visible:e.showUpdateTime,width:"520px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.showUpdateTime=t}}},[t("div",[t("span",[e._v("开始时间")]),t("span",[t("el-date-picker",{attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm",placeholder:"选择开始时间","default-value":new Date(0,0,0,0,0,0)},model:{value:e.dialogTime.stateTime,callback:function(t){e.$set(e.dialogTime,"stateTime",t)},expression:"dialogTime.stateTime"}})],1)]),t("div",{staticStyle:{"margin-top":"10px"}},[t("span",[e._v("结束时间")]),t("span",[t("el-date-picker",{attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm",placeholder:"选择结束时间","default-value":new Date(0,0,0,0,0,0)},model:{value:e.dialogTime.endTime,callback:function(t){e.$set(e.dialogTime,"endTime",t)},expression:"dialogTime.endTime"}})],1)]),t("div",{staticClass:"updatefooter"},[t("el-button",{attrs:{plain:""},on:{click:function(t){e.showUpdateTime=!e.showUpdateTime}}},[e._v("关 闭")]),t("el-button",{attrs:{type:"primary"},on:{click:e.sureTime}},[e._v("确定")])],1)]):e._e()],1)])])],1)},mo=[],yo=r(5093);function vo(e,t,r,n,a){var o={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},i=[];if("scheduleTime"===a)for(var s=0;s<n.length;s++){var l=new Date(n[s]),c={data:yo(l).format("YYYY-MM-DD"),weekNum:l.getDay(),weekName:o[l.getDay()]};i.push(c)}else for(var u=new Date(e).getTime(),d=new Date(t).getTime(),p=(d-u)/24/60/60/1e3+1,h=0;h<p;h++){var f=new Date(u+24*h*60*60*1e3);if(r.indexOf(f.getDay())>-1){var m={data:yo(f).format("YYYY-MM-DD"),weekNum:f.getDay(),weekName:o[f.getDay()]};i.push(m)}}return i}function go(e){for(var t in e)if(!r(t,e))return!1;return!0;function r(e,t){for(var r in t)if(e!==r){if(t[r].startTime<=t[e].startTime&&t[r].endTime>t[e].startTime)return!1;if(t[r].startTime<t[e].endTime&&t[r].endTime>=t[e].endTime)return!1}return!0}}function _o(e){return _o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_o(e)}function bo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */bo=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==_o(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(_o(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function wo(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function xo(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){wo(o,n,a,i,s,"next",e)}function s(e){wo(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Lo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(r),!0).forEach((function(t){ko(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ko(e,t,r){return(t=To(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function To(e){var t=Do(e,"string");return"symbol"==_o(t)?t:t+""}function Do(e,t){if("object"!=_o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Yo=r(8957),So=Yo.sortByKey,Co=r(5093),jo={components:{calendar:Qr},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{ShowCycleTimeDialog:!1,ShowCalenderDialog:!1,checkList:[],WeekList:["周一","周二","周三","周四","周五","周六","周日"],TimeList:[{type:2,name:"周一",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]},{type:3,name:"周二",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]},{type:4,name:"周三",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]},{type:5,name:"周四",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]},{type:6,name:"周五",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]},{type:7,name:"周六",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]},{type:1,name:"周日",courseList:[{startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,0,0,0),disabled:!0}]}],CalenderTimeList:[{startTime:new Date(0,0,0,9,0,0),endTime:new Date(0,0,0,18,0,0)}],byDayArr:[],ManagetableData:[],DayWeekArr:{0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},showUpdateTime:!1,dialogTime:{},stateTime1:"",endTime1:"",selectIds:""}},computed:Mo({},ce(["routes","loginUser"])),watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){this.getTimeList()},methods:{init:function(){this.TimeList=[{type:2,name:"周一",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]},{type:3,name:"周二",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]},{type:4,name:"周三",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]},{type:5,name:"周四",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]},{type:6,name:"周五",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]},{type:7,name:"周六",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]},{type:1,name:"周日",courseList:[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0),disabled:!0}]}],this.CalenderTimeList=[{startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,0,0)}]},AddTimeInCycle:function(){this.ShowCycleTimeDialog=!0,this.init()},click:function(){},addThisTime:function(e,t){if(e.courseList[0].disabled)this.$confirm("请选择要添加的周期!","提示",{type:"warning",closeOnClickModal:!1});else{var r={startTime:e.courseList[0].startTime,endTime:e.courseList[0].endTime,disabled:!1};this.TimeList[t].courseList.push(r),this.$forceUpdate()}},chooseDay:function(e){this.TimeList.forEach((function(t){t.courseList[0].disabled=-1===e.indexOf(t.name),t.courseList[0].disabled&&t.courseList.length>1&&t.courseList.splice(1,t.courseList.length)})),this.$forceUpdate()},deleteOneTime:function(e,t){e.courseList.splice(t,1)},AddasCalender:function(){this.ShowCalenderDialog=!0,this.init()},CalenderaddThisTime:function(e,t){var r={startTime:e.startTime,endTime:e.endTime};this.CalenderTimeList.push(r),this.$forceUpdate()},CalenderdeleteOneTime:function(e,t){this.CalenderTimeList.splice(t,1),this.$forceUpdate()},getDay:function(e,t){this.byDayArr=e;var r=/\//g;this.byDayArr.forEach((function(e){e.date=e.date.replace(r,"-"),e.date=Co(new Date(e.date)).format("YYYY-MM-DD")}))},Calenderclick:function(){var e=this,t=JSON.parse(JSON.stringify(this.CalenderTimeList));t.forEach((function(e){e.startTime=Co(new Date(e.startTime)).format("HH:mm"),e.endTime=Co(new Date(e.endTime)).format("HH:mm")}));var r={calenderTimeList:t,byDayArr:this.byDayArr},n=this.judgeTime(t,"calender");if(null!==n&&(n.errorOverlapMessage||n.errorConflictMessage)){var a=n.errorConflictMessage?n.errorConflictMessage+"起止时间选择错误":"";a+=n.errorOverlapMessage?""!==a?",所选时间有重叠":"所选时间有重叠":"",this.$alert(a+",请重新选择!","提示",{type:"warning"})}else{var o,i=[];this.byDayArr.forEach((function(e){i.push(e.date)}));var s=vo(null,null,null,i,"scheduleTime");0===s.length&&this.$alert("请选择授课日期!","提示",{type:"warning"});var l=JSON.parse(JSON.stringify(this.ManagetableData)),c="";if(s.forEach((function(e){var r=t;l.forEach((function(t){e.data===t.stateTime.split(" ")&&r.push({startTime:t.stateTime.substr(11,5),endTime:t.endTime.substr(11,5)})}));var n=go(r);n||(""!==c&&(c+="、"),c+=e.data)})),""!==c)return void this.$alert(c+"所选时间段和已保存的课程时间冲突,请重新选择!","提示",{type:"warning"});var u=[];s.forEach((function(e){t.forEach((function(t){u.push({endTime:e.data+" "+t.endTime+":00",stateTime:e.data+" "+t.startTime+":00"})}))})),(o=l).push.apply(o,u),l=So(l,"stateTime","asc");var d=this.vo.stateTime.split(" ")[0]+" 00:00:00",p=this.vo.endTime.split(" ")[0]+" 24:00:00";if(l[0].stateTime<d||l[l.length-1].endTime>p)return void this.$alert("所选时间周期超出指定的课程时间范围,请重新选择!","提示",{type:"warning"});this.$http({url:"/ksgl/courseTime/insertCourseTimeByDay",method:"POST",data:r,params:{startTime:d,endTime:p,courseId:this.vo.id},contentType:"application/x-www-form-urlencoded"}).then((function(t){"success"===t.code?(e.ShowCalenderDialog=!1,e.getTimeList(),e.$forceUpdate()):e.$message({type:"warning",center:!0,message:t.message})}))}},zhouqiclick:function(){var e=this,t=JSON.parse(JSON.stringify(this.TimeList));t.forEach((function(e){e.courseList.length>0&&e.courseList.forEach((function(e){e.startTime=Co(new Date(e.startTime)).format("HH:mm"),e.endTime=Co(new Date(e.endTime)).format("HH:mm")}))}));var r=[],n=t.filter((function(e){if(!e.courseList[0].disabled)return r.push(e.type-1),!e.courseList[0].disabled})),a=this.judgeTime(n,"cycle");if(null!==a&&(a.errorOverlapMessage||a.errorConflictMessage)){var o=a.errorConflictMessage?a.errorConflictMessage+"起止时间选择错误":"";o+=a.errorOverlapMessage?""!==o?","+a.errorOverlapMessage+"所选时间有重叠":a.errorOverlapMessage+"所选时间有重叠":"",this.$alert(o+",请重新选择!","提示",{type:"warning"})}else{var i,s=vo(this.vo.stateTime.split(" ")[0],this.vo.endTime.split(" ")[0],r),l=this,c="";if(n.forEach((function(e){var t=JSON.parse(JSON.stringify(e.courseList));l.ManagetableData.forEach((function(r){var n=new Date(r.stateTime);n.getDay()===e.type-1&&t.push({startTime:r.stateTime.substr(11,5),endTime:r.endTime.substr(11,5)})}));var r=go(t);r||(""!==c&&(c+="、"),c+=e.name)})),""!==c)return void this.$alert(c+"所选时间段已保存的课程时间冲突,请重新选择!","提示",{type:"warning"});var u=[];s.forEach((function(e){n.forEach((function(t){t.type-1===e.weekNum&&t.courseList.length>0&&t.courseList.forEach((function(t){u.push({endTime:e.data+" "+t.endTime+":00",stateTime:e.data+" "+t.startTime+":00"})}))}))}));var d=JSON.parse(JSON.stringify(this.ManagetableData));(i=d).push.apply(i,u),d=So(d,"stateTime","asc");var p=this.vo.stateTime.split(" ")[0]+" 00:00:00",h=this.vo.endTime.split(" ")[0]+" 24:00:00";if(d[0].stateTime<p||d[d.length-1].endTime>h)return void this.$alert("所选时间周期超出指定的课程时间范围,请重新选择!","提示",{type:"warning"});this.ShowCycleTimeDialog=!1,this.$http({url:"/ksgl/courseTime/insertCourseTimeByWeek",method:"POST",data:n,params:{startTime:p,endTime:h,courseId:this.vo.id},contentType:"application/x-www-form-urlencoded"}).then((function(t){"success"===t.code?(e.ShowCycleTimeDialog=!1,e.checkList=[],e.ManagetableData=t.body.courseTimes,e.getTimeList(),e.$forceUpdate()):e.$message({type:"warning",center:!0,message:t.message})}))}},judgeTime:function(e,t){var r=Co(new Date).format("YYYY-MM-DD"),n="",a="";if("cycle"===t)return e.forEach((function(e,t){var o="";e.courseList.forEach((function(t){var n=r+" "+t.startTime+":00",a=r+" "+t.endTime+":00";new Date(n).getTime()>new Date(a).getTime()&&(o=e.name+" "+t.startTime+" - "+t.endTime)}));var i=go(e.courseList);i||(""!==a&&(a+="、"),a+=e.name),""!==n&&""!==o&&(n+="、"),n+=o})),""!==n||""!==a?{errorConflictMessage:n,errorOverlapMessage:a}:null;if("calender"===t){e.forEach((function(e,t){var a=r+" "+e.startTime+":00",o=r+" "+e.endTime+":00";new Date(a).getTime()>new Date(o).getTime()&&(""!==n&&(n+="、"),n+=e.startTime+" - "+e.endTime)}));var o=go(e);return o||(a=!0),""!==n||""!==a?{errorConflictMessage:n,errorOverlapMessage:a}:null}},dellTime:function(e){return e?Co(new Date(e)).format("YYYY-MM-DD"):""},dellotherTime:function(e){return e?Co(new Date(e)).format("HH:mm"):""},dellDay:function(e){return e?this.DayWeekArr[new Date(e).getDay()]:""},updateChecked:function(e,t){this.showUpdateTime=!0,this.stateTime1=t.stateTime,this.endTime1=t.endTime,this.dialogTime=t},sureTime:function(){var e=this;return xo(bo().mark((function t(){var r;return bo().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(new Date(e.stateTime1).getDate()===new Date(e.dialogTime.stateTime).getDate()&&new Date(e.endTime1).getDate()===new Date(e.dialogTime.endTime).getDate()){t.next=4;break}e.$message({type:"warning",center:!0,message:"不可以选择跨天时间"}),t.next=10;break;case 4:return e.dialogTime.stateTime=Co(e.dialogTime.stateTime).format("YYYY-MM-DD HH:mm"),e.dialogTime.endTime=Co(e.dialogTime.endTime).format("YYYY-MM-DD HH:mm"),t.next=8,e.$app.update("/ksgl/courseTime/update",e.dialogTime);case 8:r=t.sent,"success"===r.code?(e.showUpdateTime=!1,e.$message({message:"修改成功",type:"success"}),e.$http({url:"/ksgl/courseTime/listdata",method:"POST",params:{courseId:e.vo.id},contentType:"application/x-www-form-urlencoded"}).then((function(t){"success"===t.code?(e.getTimeList(),e.$forceUpdate()):e.$message({type:"warning",center:!0,message:t.message})}))):e.$message({type:"warning",center:!0,message:r.message});case 10:case"end":return t.stop()}}),t)})))()},delChecked:function(e,t){var r=this;t||this.selectIds?this.$confirm("您是否确认删除?","确认操作",{type:"warning",closeOnClickModal:!1}).then((function(){r.$http({url:"/ksgl/courseTime/delete",method:"DELETE",params:{ids:t?t.id:r.selectIds},contentType:"application/x-www-form-urlencoded"}).then((function(e){"success"===e.code?(r.$message({type:"success",center:!0,message:"删除成功"}),r.getTimeList(),r.$forceUpdate()):r.$message({type:"warning",center:!0,message:e.message})}))})).catch((function(){r.$message({type:"info",message:"已取消删除"})})):this.$message.warning("请先选择需要删除的排课信息")},getTimeList:function(){var e=this;this.ManagetableData=[],this.$http({url:"/ksgl/courseTime/listdata?urlsearch=courseId:".concat(this.vo.id),method:"POST",params:{orderBy:"stateTime asc"},contentType:"application/x-www-form-urlencoded"}).then((function(t){"success"===t.code?(e.ManagetableData=t.body.pageInfo.list,e.$forceUpdate()):e.$message({type:"warning",center:!0,message:t.message})}))},CyclehandleClose:function(){this.checkList=[],this.ShowCycleTimeDialog=!1},handleSelectionChange:function(e){var t="";e.forEach((function(e){""!==t&&(t+=","),t+=e.id})),this.selectIds=t},formatTime:function(e,t){return Co(e).format(t)}}},Eo=jo,Oo=(r(6110),c(Eo,fo,mo,!1,null,"cf9db4e2",null)),Po=Oo.exports,Ao=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{width:"620px",title:"选择讲师",visible:e.innerVisible,"append-to-body":""},on:{"update:visible":function(t){e.innerVisible=t}}},[e.innerVisible?t("div",{staticClass:"right-toolbar-container top-inpit"},[t("el-input",{attrs:{placeholder:"搜索...",clear:"searchBar"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearchTextInner.apply(null,arguments)}},model:{value:e.innerSearchText,callback:function(t){e.innerSearchText=t},expression:"innerSearchText"}},[t("el-button",{staticStyle:{width:"30px"},attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.doSearchTextInner.apply(null,arguments)}},slot:"append"})],1)],1):e._e(),e.innerVisible?t("data-table",{attrs:{"on-list-data-before-load":e.onListDataBeforeLoad,"module-info":e.moduleInfo,"tb-columns":e.tbColumns1,"on-list-data-loaded":e.onListDataLoaded,"toolbar-btns":e.listpageBtns}}):e._e()],1)],1)},No=[],Ho={components:{},props:{},data:function(){return{moduleInfo:{formTemplate:"teacher",moduleCode:"teacher",listDataUrl:"/ksgl/teacher/listdata",listDefaultOrderBy:"",winWidth:800,winHeight:600},tbColumns1:[{field:"name",title:"讲师姓名",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0},{field:"type",title:"讲师类型",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"createTime",title:"创建时间",width:"130px",align:"center",valign:"middle",sortable:!0,propType:"java.util.Date",elementFormatter:"format:yyyy-MM-dd HH:mm"},{field:"column_operate",title:"操作",width:"70px",align:"center",valign:"middle"}],listpageBtns:[{id:"btn_deleteId",btnName:"选择",btnClick:this.chooseItem,btnPermission:"deleteIds",btnType:"column",btnIcon:""}],innerVisible:!1,selectedRows:[],selectString:"",innerSearchText:"",searchMap:{}}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{click:function(){this.innerVisible=!0},doSearchTextInner:function(){this.$bus.emit("refreshListData")},onListDataBeforeLoad:function(e,t){console.log(t.urlsearch,22222222),t.urlsearch="orgCode:"+e.loginUser.orgCode,t.orderBy="createTime desc",t.searchMap["name"]=this.innerSearchText,t.searchMap["type"]=this.innerSearchText,t.searchMap["createTime"]=this.innerSearchText,t.searchAndOr="or"},chooseItem:function(e){console.log(e);var t={id:"",name:""};t.id=e.id,t.name=e.name,this.$bus.emit("chooseTeacher",t),this.innerVisible=!1},onListDataLoaded:function(e,t){console.log(e,t),console.log(66666,t),t.list.forEach((function(e){e.type=0===e.type?"内部":"外部"}))}}},Io=Ho,Fo=(r(7346),c(Io,Ao,No,!1,null,"d72aae4e",null)),zo=Fo.exports,Bo=function(){var e=this,t=e._self._c;return t("div",{staticClass:"addnew-lesson-content"},[e.showlog?t("div",[t("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{class:2===e.addType?"":"online",attrs:{label:"基本信息",name:"frist"}},[t("el-scrollbar",{attrs:{native:!1}},[t("el-form",{staticStyle:{width:"809px"},attrs:{model:e.basicvo}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{ref:"tdlbl_课程名称",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 课程名称 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"name",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"input",emptyMessage:"请输入课程名称",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"课程名称",propName:"name",propType:"String",textFormatter:"textfield",valueMaxLength:null,valueMinLength:null,model:"vo.name",option:[]},vo:e.basicvo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_课程分类",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 课程分类 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("choose-type",{attrs:{vo:e.basicvo,"can-edit":e.canEdit,btype:3}})],1)]),t("tr",[t("td",{ref:"tdlbl_授课方式 ",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 授课方式 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("span",[e._v(e._s(1===e.basicvo.shoukeType?"线上课程":"线下课程"))])])]),t("tr",[t("td",{ref:"tdlbl_课程封面",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 课程封面 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"cover",attrs:{field:{defaultValue:"coverUrl",elementCanEdit:"{{canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:null,elementType:"file",emptyMessage:"请选择课程封面",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"课程封面",propName:"cover",propType:"byte[]",textFormatter:".jpg,.png",valueMaxLength:null,valueMinLength:null,model:"vo.cover",option:[],downloadUrl:"/ksgl/course/download",nameField:"coverUrl"},vo:e.basicvo,"can-edit":e.canEdit}})],1)]),2===e.basicvo.shoukeType?t("tr",[t("td",{ref:"tdlbl_讲师ID",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 讲师 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},["admin"===e.type&&1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"讲师",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{readonly:"true",required:"true",placeholder:"请选择讲师"},model:{value:e.Teachervalue,callback:function(t){e.Teachervalue=t},expression:"Teachervalue"}},[t("el-button",{attrs:{slot:"append"},on:{click:e.onclickTeacher},slot:"append"},[e._v("...")])],1)],1)]}}],null,!1,24320017)}):t("span",[e._v(e._s(e.Teachervalue))])],1)]):e._e(),2===e.basicvo.shoukeType?t("tr",[t("td",{ref:"tdlbl_开始时间",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 开始时间 ")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("form-item",{ref:"stateTime",attrs:{field:{defaultValue:null,elementCanEdit:"{{canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:1,elementType:"date",emptyMessage:"请选择开始时间",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"开始时间",propName:"stateTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd HH:mm",valueMaxLength:null,valueMinLength:null,model:"vo.stateTime",option:[]},vo:e.basicvo,"can-edit":e.canEdit}})],1),t("td",{ref:"tdlbl_结束时间",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 结束时间 ")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("form-item",{ref:"endTime",attrs:{field:{defaultValue:null,elementCanEdit:"{{canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:1,elementType:"date",emptyMessage:"请选择结束时间",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"结束时间",propName:"endTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd HH:mm",valueMaxLength:null,valueMinLength:null,model:"vo.endTime",option:[]},vo:e.basicvo,"can-edit":e.canEdit}})],1)]):e._e(),2===e.basicvo.shoukeType?t("tr",[t("td",{ref:"tdlbl_培训地点",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 培训地点 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"培训地点",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"100%","margin-right":"20px"},attrs:{readonly:e.PassStartTime},model:{value:e.basicvo.address,callback:function(t){e.$set(e.basicvo,"address",t)},expression:"basicvo.address"}})],1)]}}],null,!1,1199847786)}):t("span",[e._v(e._s(e.basicvo.address))])],1)]):e._e(),2===e.basicvo.shoukeType?t("tr",[t("td",{ref:"tdlbl_是否签到",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 是否签到 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("el-radio-group",{attrs:{disabled:e.PassStartTime||1!==e.canEdit},model:{value:e.basicvo.issign,callback:function(t){e.$set(e.basicvo,"issign",t)},expression:"basicvo.issign"}},[t("el-radio",{attrs:{label:0}},[e._v("否")]),t("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)]):e._e(),1===e.basicvo.issign?t("tr",[t("td",{ref:"tdlbl_签到时间",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 签到时间 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e._v(" 开课时间前 "),1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"考试次数",rules:"required|integer|max:100"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"100px","margin-right":"20px"},attrs:{readonly:e.PassStartTime},model:{value:e.basicvo.advanceTime,callback:function(t){e.$set(e.basicvo,"advanceTime",t)},expression:"basicvo.advanceTime"}})],1)]}}],null,!1,3699611454)}):t("span",[e._v(e._s(e.basicvo.advanceTime))]),e._v(" 分钟内签到有效 ")],1)]):e._e(),t("tr",[t("td",{ref:"tdlbl_学分获得选项",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 学分获得选项 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("div",[t("el-radio-group",{attrs:{disabled:e.PassStartTime||1!==e.canEdit},on:{change:e.changeRadio},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[t("span",[t("el-radio",{staticStyle:{"margin-right":"0px"},attrs:{label:0}},[t("span",{staticStyle:{"margin-right":"0px"}},[e._v("章节学习率超过")])]),t("span",[1===e.canEdit?t("el-input",{staticStyle:{width:"50px"},attrs:{readonly:e.readonly},model:{value:e.basicvo.needRate,callback:function(t){e.$set(e.basicvo,"needRate",t)},expression:"basicvo.needRate"}}):t("span",[e._v(e._s(e.basicvo.needRate))])],1),t("span",[e._v("%即可获得学分")])],1),t("span",{staticStyle:{"margin-left":"30px"}},[t("el-radio",{attrs:{label:1}},[t("span",[e._v("不启用学分")])])],1)])],1)])]),e.readonly?e._e():t("tr",[t("td",{ref:"tdlbl_学分",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 学分 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"答案选项",rules:"required|integer|max:3|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{readonly:e.PassStartTime||e.readonly,placeholder:"请输入可获得学分奖励"},model:{value:e.basicvo.credit,callback:function(t){e.$set(e.basicvo,"credit",t)},expression:"basicvo.credit"}})],1)]}}],null,!1,2600078227)}):t("span",[e._v(e._s(e.basicvo.credit))])],1)]),t("tr",[t("td",{ref:"tdlbl_学员设置",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 学员设置 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("div",[t("div",[t("el-radio-group",{attrs:{disabled:e.PassStartTime||1!==e.canEdit},on:{change:e.khChange},model:{value:e.basicvo.studyType,callback:function(t){e.$set(e.basicvo,"studyType",t)},expression:"basicvo.studyType"}},[t("el-radio",{attrs:{label:1}},[e._v("全部")]),t("el-radio",{attrs:{label:2}},[e._v("部门")]),t("el-radio",{attrs:{label:3}},[e._v("群组")]),t("el-radio",{attrs:{label:4}},[e._v("指定人")])],1)],1)])])]),2===e.basicvo.studyType||3===e.basicvo.studyType||4===e.basicvo.studyType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),2===e.basicvo.studyType?t("span",[e._v("指定部门")]):e._e(),3===e.basicvo.studyType?t("span",[e._v("指定群组")]):e._e(),4===e.basicvo.studyType?t("span",[e._v("指定人员")]):e._e()]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?[2===e.basicvo.studyType&&e.isUpdate?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定部门",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{placeholder:"请选择指定部门","org-level":"2",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds"},model:{value:e.basicvo.studyName,callback:function(t){e.$set(e.basicvo,"studyName",t)},expression:"basicvo.studyName"}})],1)]}}],null,!1,3629509076)}):e._e(),3===e.basicvo.studyType&&e.isUpdate?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定群组",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"workgroup",expression:"'workgroup'"}],attrs:{placeholder:"请选择指定群组",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds2"},model:{value:e.basicvo.studyName,callback:function(t){e.$set(e.basicvo,"studyName",t)},expression:"basicvo.studyName"}})],1)]}}],null,!1,2026669603)}):e._e(),4===e.basicvo.studyType&&e.isUpdate?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定人员",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{placeholder:"请选择指定人员",readonly:"readonly",multiple:"true",type:"textarea",name:"studyId",nametype:"2","root-org-code":e.vo.orgCode},model:{value:e.basicvo.studyName,callback:function(t){e.$set(e.basicvo,"studyName",t)},expression:"basicvo.studyName"}})],1)]}}],null,!1,81454577)}):e._e()]:t("span",[e._v(e._s(e.basicvo.studyName))])],2)]):e._e(),t("tr",[t("td",{ref:"tdlbl_课程说明",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 课程说明 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"introduction",attrs:{field:{defaultValue:null,elementCanEdit:"{{canEdit}}",elementCssHeight:70,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"textarea",emptyMessage:"请输入课程说明",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"课程说明",propName:"introduction",propType:"String",textFormatter:"textarea",valueMaxLength:null,valueMinLength:null,model:"vo.introduction",option:[]},vo:e.basicvo,"can-edit":e.canEdit}})],1)])])])])])])],1)],1),t("el-tab-pane",{attrs:{label:"课程章节",name:"course"}},[t("el-scrollbar",{attrs:{native:!1}},[t("el-form",{staticStyle:{width:"809px"},attrs:{model:e.basicvo}},[void 0!==e.basicvo.passenger.chapterList?t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("div",{staticClass:"header-table-title",staticStyle:{"text-align":"left"},attrs:{colspan:"6"}},[t("span",[e._v("课程章节")]),t("span",{staticClass:"Fright"},[t("el-button",{attrs:{disabled:1!==e.canEdit,type:"plain",size:"mini",icon:"el-icon-plus"},on:{click:function(t){return e.openChapterDialog()}}},[e._v("新增")])],1)]),t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("el-collapse",{attrs:{accordion:""},on:{change:e.changecollaspe},model:{value:e.activeCollapse,callback:function(t){e.activeCollapse=t},expression:"activeCollapse"}},[e._l(e.basicvo.passenger.chapterList,(function(r,n){return[t("el-collapse-item",{key:r.id,attrs:{name:n+""}},[t("template",{slot:"title"},[t("div",{staticClass:"header-table-zjtitle"},[t("span",{staticClass:"MarginL20"},[e._v(e._s(r.title)+" "+e._s(r.name))]),1===e.canEdit?t("span",{staticClass:"Fright"},[t("el-button",{attrs:{type:"plain",size:"mini",icon:"el-icon-delete",title:"删除章节"},on:{click:function(t){return t.stopPropagation(),e.DeleteListItem("3","",n,r)}}})],1):e._e(),1===e.canEdit?t("span",{staticClass:"Fright",staticStyle:{position:"relative"}},[t("div",{on:{click:function(t){return t.stopPropagation(),e.ClickDropdown.apply(null,arguments)}}},[t("el-dropdown",{attrs:{trigger:"click",tabindex:n},on:{command:e.ClickDropdown}},[t("span",{staticClass:"el-dropdown-link"},[t("el-button",{attrs:{type:"plain",size:"mini",icon:"el-icon-plus"}})],1),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:e.beforeHandleCommand(n,"课件")}},[e._v("课件")]),t("el-dropdown-item",{attrs:{command:e.beforeHandleCommand(n,"练习")}},[e._v("练习")])],1)],1)],1)]):e._e(),1===e.canEdit?t("span",{staticClass:"Fright"},[t("el-button",{attrs:{type:"plain",size:"mini",icon:"el-icon-edit"},on:{click:function(t){return t.stopPropagation(),e.openChapterDialog(r,n)}}})],1):e._e()])]),e.showcollspan?t("div",[e._l(r.passenger.RouseList,(function(r,a){return t("div",{key:r.passenger.id},[t("div",{staticClass:"box-collapseItem"},[t("svg-icon",{staticClass:"l",staticStyle:{"margin-top":"12px",width:"18px",height:"14px","margin-right":"10px"},attrs:{"icon-class":"DOC"===r.passenger.format?"lianxi_icon":"VIDEO"===r.passenger.format?"shipin_icon":"AUDIO"===r.passenger.format?"yinpin_icon":"tupian_icon"}}),t("span",[e._v(e._s(r.passenger.name)+" "+e._s(r.passenger.timeLengthView?e.formatTime(r.passenger.timeLengthView,"HH:mm:ss"):""))]),1===e.canEdit?t("span",{staticClass:"Fright"},[t("el-button",{attrs:{type:"plain",size:"mini",icon:"el-icon-delete",title:"删除课件"},on:{click:function(t){return e.DeleteListItem("1",a,n,r)}}})],1):e._e()],1)])})),r.passenger.showManage?t("div",[t("div",{staticClass:"box-collapseItem"},[t("div",{staticStyle:{display:"inline-block"}},[t("div",[e._v("[练习]已选试题[单选:"+e._s(r.passenger.DanXnum)+";多选:"+e._s(r.passenger.DuoXnum)+";判断:"+e._s(r.passenger.PDnum)+";填空:"+e._s(r.passenger.TKnum)+";问答:"+e._s(r.passenger.WDnum)+";]")])]),t("span",{staticClass:"Fright"},[t("el-button",{attrs:{type:"plain",size:"mini",icon:"el-icon-edit",title:"章节练习题"},on:{click:function(t){return e.ShowManageTable(n)}}})],1)])]):e._e()],2):e._e()],2)]}))],2)],1)])]):e._e()])],1)],1),2===e.addType?t("el-tab-pane",{attrs:{label:"培训时间",name:"courseTime"}},[t("el-scrollbar",{attrs:{native:!1}},[null!==e.vo.stateTime&&null!==e.vo.endTime?t("ChooseTimeControl",{attrs:{vo:e.basicvo,"can-edit":e.canEdit}}):e._e()],1)],1):e._e()],1),e.uploading?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.uploading,"close-on-click-modal":!1,width:"600px",title:"上传文件"},on:{"update:visible":function(t){e.uploading=t}}},[e._v(" "+e._s(e.uploadingFile.name)+" "),t("el-progress",{attrs:{"text-inside":!0,"stroke-width":20,percentage:e.uploadingFile.progress,status:"success"}})],1):e._e()],1):e._e(),e.uploading?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.uploading,"close-on-click-modal":!1,width:"600px",title:"上传文件"},on:{"update:visible":function(t){e.uploading=t}}},[e._v(" "+e._s(e.uploadingFile.name)+" "),t("el-progress",{attrs:{"text-inside":!0,"stroke-width":20,percentage:e.uploadingFile.progress,status:"success"}})],1):e._e(),t("ChooseSubjectTree",{ref:"chooseSub",attrs:{"dia-type":"1",vo:e.basicvo}}),t("LessonList",{ref:"lessonlist"}),t("TeacherList",{ref:"TeacherDialog",attrs:{type:e.type}}),t("el-dialog",{attrs:{width:"800px",title:"章节练习题",visible:e.ShowManage,"append-to-body":""},on:{"update:visible":function(t){e.ShowManage=t}}},[t("el-form",[t("div",{staticClass:"el-table-toolbar"},[t("el-row",[t("el-col",{staticClass:"el-table-toolbar-right",attrs:{span:24}},[t("el-button-group",{staticClass:"toolbar-button-group"},[t("el-button",{staticClass:"refresh_btn",attrs:{plain:"",size:"small",icon:"el-icon-close"},on:{click:function(t){return e.delChecked()}}},[e._v("批量删除")])],1)],1)],1)],1),t("el-table",{ref:"elTable",staticStyle:{"max-height":"400px","overflow-y":"auto"},attrs:{border:"",data:e.ManagetableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectChange},model:{value:e.ManagetableData,callback:function(t){e.ManagetableData=t},expression:"ManagetableData"}},[t("el-table-column",{attrs:{align:"center",type:"selection",width:"45","class-name":"column_checkbox"}}),t("el-table-column",{attrs:{type:"index",label:"序号",width:"45",align:"center"}}),t("el-table-column",{attrs:{label:"题目",align:"left"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.passenger.content||r.row.passenger.subjectManage.content))])]}}])}),t("el-table-column",{attrs:{props:"passenger.subjectManage.type",label:"题型",width:"100",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[1===r.row.passenger.type?t("span",[e._v("单选题")]):e._e(),2===r.row.passenger.type?t("span",[e._v("多选题")]):e._e(),3===r.row.passenger.type?t("span",[e._v("判断题")]):e._e(),4===r.row.passenger.type?t("span",[e._v("填空题")]):e._e(),5===r.row.passenger.type?t("span",[e._v("问答题")]):e._e()]}}])}),t("el-table-column",{attrs:{label:"操作",width:"70",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},attrs:{icon:"el-icon-delete","font-size":"20px"},on:{click:function(t){return e.delChecked(r.$index,r.row)}}})]}}])})],1)],1)],1),e.ShowChapterSet?t("el-dialog",{staticClass:"chapter-set-dialog",attrs:{width:"600px",title:"章节设置",visible:e.ShowChapterSet,"append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.ShowChapterSet=t}}},[t("el-form",{staticClass:"demo-ruleForm",model:{value:e.chapterObj,callback:function(t){e.chapterObj=t},expression:"chapterObj"}},[t("el-form-item",{attrs:{label:"章节编号"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"章节编号",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{autocomplete:"off",placeholder:"请输入章节编号"},model:{value:e.chapterObj.title,callback:function(t){e.$set(e.chapterObj,"title",t)},expression:"chapterObj.title"}})],1)]}}],null,!1,2003007429)})],1),t("el-form-item",{attrs:{label:"章节名称"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"章节名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"place-holder":"请输入章节名称","popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{autocomplete:"off",placeholder:"请输入章节名称"},model:{value:e.chapterObj.name,callback:function(t){e.$set(e.chapterObj,"name",t)},expression:"chapterObj.name"}})],1)]}}],null,!1,1279778360)})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.ShowChapterSet=!1,e.isDisabled=!0}}},[e._v(" 取 消 ")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateChapter()}}},[e._v("确 定")])],1)],1):e._e()],1)},Go=[],Ro=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{staticClass:"selectSt",attrs:{width:"1000px",title:"选择试题","close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":!0,visible:e.outerVisible},on:{"update:visible":function(t){e.outerVisible=t}}},[t("el-row",{attrs:{type:"flex",justify:"space-between"}},[t("el-col",{staticClass:"leftTree",staticStyle:{border:"1px solid #EBEEF5","min-height":"400px","max-height":"604px"},attrs:{span:5}},[t("el-scrollbar",[t("GiantTree",{attrs:{nodes:e.treeData},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick}})],1)],1),t("el-col",{attrs:{span:18}},[t("el-row",[t("el-col",{attrs:{span:21}},[t("el-input",{attrs:{placeholder:"搜索...",clear:"searchBar"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearchTextOut.apply(null,arguments)}},model:{value:e.outSearchText,callback:function(t){e.outSearchText=t},expression:"outSearchText"}},[t("el-button",{staticStyle:{width:"30px"},attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.doSearchTextOut.apply(null,arguments)}},slot:"append"})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:3}},[t("el-button",{attrs:{plain:"",icon:"el-icon-check"},on:{click:function(t){return e.xuanzeClick()}}},[e._v("选择")])],1)],1),t("p",{staticStyle:{margin:"0","line-height":"30px"}},[e._v(" 共选 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.multipleSelection.length))]),e._v(" 题,其中 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.typeNum1))]),e._v(" 道单选题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.typeNum2))]),e._v(" 道多选题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.typeNum3))]),e._v(" 道判断题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.typeNum4))]),e._v(" 道填空题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.typeNum5))]),e._v(" 道问答题 ")]),null!==e.bankId?t("data-table",{ref:"tablePaper",attrs:{"list-style":e.listStyle,"module-info":e.moduleInfo,"tb-columns":e.tbColumns2,"on-list-data-before-load":e.onListDataBeforeLoad,"toolbar-btns":e.listpageBtns,"on-cell-click":e.handleCellClick,"on-selected-rows-change":e.handleSelectionChange}}):e._e()],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{icon:"el-icon-close"},on:{click:function(t){e.outerVisible=!1}}},[e._v("取 消")])],1)],1)],1)},Wo=[];function Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function Uo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Uo=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Vo(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Vo(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function qo(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Xo(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){qo(o,n,a,i,s,"next",e)}function s(e){qo(o,n,a,i,s,"throw",e)}i(void 0)}))}}var Ko={components:{},props:{diaType:{type:String,default:function(){return""}}},data:function(){return{tableData:[],typeNum1:0,typeNum2:0,typeNum3:0,typeNum4:0,typeNum5:0,moduleInfo:{formTemplate:"subjectManage",moduleCode:"subjectManage",listDataUrl:"ksgl/vwSubjectManage/listdata",listDefaultOrderBy:"type",winWidth:800,winHeight:600},tbColumns2:[{field:"state",checkbox:!0,width:"45px"},{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"content",title:"题目",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}}},{field:"type",title:"题型",width:"110px",align:"center",valign:"middle",elementFormatter:"1:单选题\r\n2:多选题\r\n3:判断题\r\n4:填空题\r\n5:问答题\r\n"}],root:null,vo:null,treeData:[],zTree:{},nodeName:"",isClick:!1,busiType:"",rootName:"",bankId:null,listpageBtns:[],nodeType:"",outSearchText:"",outerVisible:!1,index:"",multipleSelection:[]}},computed:{},watch:{},created:function(){},beforeDestroy:function(){this.$bus.off("innerSelection"),this.$bus.emit("showNavSearch",!0)},mounted:function(){var e=this;return Xo(Uo().mark((function t(){return Uo().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.loadTypeTree();case 2:case"end":return t.stop()}}),t)})))()},methods:{click:function(e){this.outerVisible=!0,this.index=e},loadTypeTree:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/ksgl/subjectBank/selectSubjectNum"}).then((function(t){"success"===t.code?e.treeData=e.treeDataAdapter(t.body.treeList):e.$alert(t.message,"操作提示",{type:"error"})}))},treeDataAdapter:function(e){var t=this;return e.forEach((function(e){null===e.parentId?(e.pId=t.root.id,e.name=e.tname):void 0!==e.parentId&&null!==e.parentId&&(e.pId=e.parentId,e.name=e.tname),e.tlevel>1&&(e.name=(1===e.name?"单选题":2===e.name?"多选题":3===e.name?"判断题":4===e.name?"填空题":"问答题")+"("+e.num+")"),e.title=e.name})),e},refreshTreeData:function(e){null===e?this.loadTypeTree():this.treeData=this.treeDataAdapter([this.root].concat(e))},onTreeNodeClick:function(e,t,r){var n=this;this.typeNum1=0,this.typeNum2=0,this.typeNum3=0,this.typeNum4=0,this.typeNum5=0,"tsys"!==r.id?this.isClick=!0:this.isClick=!1,this.nodeName=r.name;var a=JSON.parse(JSON.stringify(this.root));this.root=null,this.$nextTick((function(e){"tsys"===r.id?n.vo=a:n.vo=r,n.root=a})),r.tlevel>1?(this.nodeType=r.tname,this.bankId=r.parentId):(this.nodeType="",this.bankId=r.id),this.$bus.emit("refreshListData")},onTreeCreated:function(e){this.zTree=e;var t=e.getNodes();if(0===t.length)return!1;void 0===t[0].children?(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0]),t[0].tlevel=1):t[0].children.length>=1?(this.onTreeNodeClick("",t[0].children[0].id,t[0].children[0]),e.selectNode(t[0].children[0])):(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0]),t[0].tlevel=1),this.bankId=t[0].id},onListDataBeforeLoad:function(e,t){t.searchMap={name:this.outSearchText},t.urlsearch="bankId:"+this.bankId+";status:1;type:"+this.nodeType+";orgCode:"+e.loginUser.orgCode},handleSelectionChange:function(e){var t=this;this.typeNum1=0,this.typeNum2=0,this.typeNum3=0,this.typeNum4=0,this.typeNum5=0,this.multipleSelection=[],this.multipleSelection=e,console.log(this.multipleSelection),this.multipleSelection.forEach((function(e){1===e.type&&t.typeNum1++,2===e.type&&t.typeNum2++,3===e.type&&t.typeNum3++,4===e.type&&t.typeNum4++,5===e.type&&t.typeNum5++}))},xuanzeClick:function(){0===this.multipleSelection.length?this.$message.error("请选择试题!"):(this.$bus.emit("innerSelection",this.multipleSelection,this.index),this.outerVisible=!1,this.multipleSelection=[])},doSearchTextOut:function(){var e={};e["name"]=this.outSearchText,this.$bus.emit("refreshListData",e,"or")}}},Jo=Ko,Qo=(r(6644),c(Jo,Ro,Wo,!1,null,"3655c836",null)),Zo=Qo.exports;function $o(e){return $o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$o(e)}function ei(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ei=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==$o(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError($o(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ti(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function ri(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ti(o,n,a,i,s,"next",e)}function s(e){ti(o,n,a,i,s,"throw",e)}i(void 0)}))}}var ni=r(5093),ai={components:{chooseType:Ce,ChooseSubjectTree:Zo,LessonList:ho,ChooseTimeControl:Po,TeacherList:zo},props:{canEdit:{type:Number,default:1},courseid:{type:String,default:""},type:{type:String,default:""},addType:{type:Number,default:1}},data:function(){return{loginUser:this.$store.getters.loginUser,vo:{},basicvo:{},coursewareList:[],coursewareIdList:[],ProblemList:[],ProblemIdList:[],showLX:!1,ShowManage:!1,ManagetableData:[],UpdateManageListIndex:"",Teachervalue:"",readonly:!1,radio:0,uploading:!1,fileList:[],FormItem:{},loading:!1,showlog:!1,activeName:"frist",ManageIndex:0,courseId:"",uploadFiles:[],datearr:[],pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},ShowChapterSet:!1,chapterObj:{},chapterIndex:0,isAdd:!0,teacherId:"",selectedRows:[],activeCollapse:"",isUpdate:!0}},computed:{},watch:{},created:function(){this.$bus.on("addUploadFiles",this.addUploadFiles)},beforeDestroy:function(){this.$bus.off("updatecourse"),this.$bus.off("innerSelection"),this.$bus.off("chooseTeacher"),this.$bus.off("selectedCrouseObj"),this.$bus.off("addUploadFiles",this.addUploadFiles)},mounted:function(){var e=ri(ei().mark((function e(){var t,r=this;return ei().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this,this.$bus.on("updatecourse",function(){var e=ri(ei().mark((function e(t,n){return ei().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("teacher"!==r.type){e.next=3;break}return e.next=3,r.getTeacherId(r.loginUser.personId);case 3:r.activeName="frist",r.basicvo={},r.initFormVo(t,n);case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),this.$bus.$on("innerSelection",(function(e,n){var a=[];e.forEach((function(e){var r={};r.chapterId=t.basicvo.passenger.chapterList[n].id,r.bankId=e.bankId,r.subjectId=e.id,r.subjectType=e.type,r.passenger=e,a.push(r)})),t.$http({contentType:"application/x-www-form-urlencoded",method:"POST",url:"/ksgl/courseChapterSubject/insertList",data:a}).then((function(e){if("success"===e.code){if(e.body.courseChapterSubjectList){r.changecollaspe(n),r.activeCollapse=[n+""];var a=t.basicvo.passenger.chapterList[n].passenger.ManageList;a=a.concat(e.body.courseChapterSubjectList),t.basicvo.passenger.chapterList[n].passenger.ManageList=a.sort(t.SortData("type")),t.ManageTypeNum(a,r.basicvo.passenger.chapterList[n]),t.basicvo.passenger.chapterList[n].passenger.showManage=!0,t.$forceUpdate()}t.$message.success(e.message)}else t.$message.error(e.message)}))})),this.$bus.$on("chooseTeacher",(function(e){r.basicvo.teacherId=e.id,r.basicvo.teacherName=e.name,r.Teachervalue=e.name})),this.$bus.$on("selectedCrouseObj",(function(e,n){var a=[],o=[];t.basicvo.passenger.chapterList[n]&&(a=t.filterData(t.basicvo.passenger.chapterList[n].passenger.RouseList,e),o=t.DeleteSurplus(t.basicvo.passenger.chapterList[n].id,a,"course"));var i=o.filter((function(e){return!e.id}));t.$http({contentType:"application/x-www-form-urlencoded",method:"POST",url:"/ksgl/courseChapterData/insertList",data:i}).then((function(e){"success"===e.code?r.$nextTick((function(){t.basicvo.passenger.chapterList[n].passenger.RouseList||(t.basicvo.passenger.chapterList[n].passenger.RouseList=[]),t.basicvo.passenger.chapterList[n].passenger.RouseList=t.basicvo.passenger.chapterList[n].passenger.RouseList.concat(e.body.courseChapterDataList);var r=t.basicvo.passenger.chapterList[n].passenger.RouseList.filter((function(e){return e.hasOwnProperty("orderNo")}));t.basicvo.passenger.chapterList[n].passenger.RouseList=r,t.$message.success(e.message),t.$forceUpdate()})):r.$message.error(e.message)}))}));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{handleTabClick:function(){this.$vnode.context.isAdd&&"first"!==this.activeName&&this.courseUpdate(this.$vnode.context.isAdd,3,this.$vnode.context.addType,this.activeName),this.$vnode.context.childActiveName=this.activeName},initFormVo:function(e,t){var r=this;return ri(ei().mark((function n(){var a,o,i,s;return ei().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=r,a.activeCollapse="",t){n.next=10;break}return r.showlog=!1,n.next=6,r.$app.addNew("/ksgl/course/addNew");case 6:o=n.sent,"success"===o.code?(r.basicvo=o.body.vo,r.showlog=!0,r.basicvo.passenger.chapterList=[],r.basicvo.studyType=1,r.basicvo.status=1,r.basicvo.shoukeType=r.addType,r.basicvo.courseType=1,r.basicvo.ispublish=0,r.basicvo.credit=0,r.basicvo.advanceTime=1,r.courseId=o.body.vo.id,r.basicvo.id=o.body.vo.id,r.basicvo.needRate=100,"teacher"===r.type&&(r.basicvo.teacherId=r.teacherId,r.basicvo.teacherName=r.loginUser.personName,r.Teachervalue=r.loginUser.personName),r.$forceUpdate()):r.$message({type:"warning",message:o.body.message}),n.next=18;break;case 10:if(!t){n.next=18;break}return a.canEdit=e,i=r.courseid||t,r.showlog=!1,n.next=16,r.$app.getById("/ksgl/course/getById",i);case 16:s=n.sent,"success"===s.code?(r.basicvo=s.body.courseVo,r.courseId=r.basicvo.id,r.PaperName=s.body.courseVo.passenger.paperName,null!==s.body.teacher&&(r.Teachervalue=s.body.teacher.name),r.basicvo.passenger.chapterList=s.body.courseChapter,r.datearr=[r.basicvo.stateTime||"",r.basicvo.endTime||""],r.showlog=!0):r.$message({type:"warning",message:s.body.message});case 18:case"end":return n.stop()}}),n)})))()},getTeacherId:function(e){var t=this;return ri(ei().mark((function r(){var n;return ei().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,t.$http({method:"post",url:"ksgl/teacher/listdata",data:t.$qs.stringify({urlsearch:"orgCode:".concat(t.loginUser.orgCode,";personId:").concat(e),pageSize:1,pageNum:1})});case 2:n=r.sent,"success"===n.code?n.body.pageInfo.list.forEach((function(r){r.personId===e&&(t.teacherId=r.id)})):t.$message({type:"warning",message:n.body.message});case 4:case"end":return r.stop()}}),r)})))()},beforeHandleCommand:function(e,t){return{index:e,command:t}},ClickDropdown:function(e){"课件"===e.command?this.$refs.lessonlist.click(e.index):"练习"===e.command&&this.$refs.chooseSub.click(e.index),void 0!==e.index&&(this.changecollaspe(e.index),this.activeCollapse=[e.index+""])},filterData:function(e,t){return e&&e.length>0?t.forEach((function(t){var r=e.every((function(e){return e.id!==t.id}));r&&e.push(t)})):e=t,e},ManageTypeNum:function(e,t){t.passenger.DanXnum=0,t.passenger.DuoXnum=0,t.passenger.PDnum=0,t.passenger.TKnum=0,t.passenger.WDnum=0,e.forEach((function(e){if(e.chapterId)switch(e.passenger.type){case 1:t.passenger.DanXnum+=1;break;case 2:t.passenger.DuoXnum+=1;break;case 3:t.passenger.PDnum+=1;break;case 4:t.passenger.TKnum+=1;break;case 5:t.passenger.WDnum+=1;break}else switch(e.type){case 1:t.passenger.DanXnum+=1;break;case 2:t.passenger.DuoXnum+=1;break;case 3:t.passenger.PDnum+=1;break;case 4:t.passenger.TKnum+=1;break;case 5:t.passenger.WDnum+=1;break}}))},DeleteListItem:function(e,t,r,n){var a=this;return ri(ei().mark((function o(){return ei().wrap((function(o){while(1)switch(o.prev=o.next){case 0:"1"===e?a.$confirm("确认要删除课件“"+n.passenger.name+"”吗?","确认操作",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",closeOnClickModal:!1}).then((function(){var e=[];e[0]=n.id;var o=e.toString();a.$http({url:"/ksgl/courseChapterData/delete",method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:o}}).then((function(e){"success"===e.code?(a.$message.success(e.message),a.basicvo.passenger.chapterList[r].passenger.RouseList.splice(t,1),a.$forceUpdate()):a.$message.error(e.message)}))})):"3"===e&&a.$confirm("此操作将删除该章节以及所包含的内容, 是否继续?","确认操作",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",closeOnClickModal:!1}).then((function(){var e=[];e[0]=n.id;var t=e.toString();a.$http({url:"/ksgl/courseChapter/delete",method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:t}}).then((function(e){"success"===e.code?(a.$message.success("删除成功"),a.basicvo.passenger.chapterList.splice(r,1)):a.$message.error(e.message),a.$forceUpdate()}))}));case 1:case"end":return o.stop()}}),o)})))()},delChecked:function(e,t){var r=this,n=[];"undefined"===typeof e?(e=0,this.selectedRows.forEach((function(e){n.push(e.id)}))):n=[t.id],0!==n.length?this.$confirm("您是否确认删除选择的数据?","确认操作",{type:"warning"}).then(ri(ei().mark((function t(){return ei().wrap((function(t){while(1)switch(t.prev=t.next){case 0:r.$http({url:"/ksgl/courseChapterSubject/delete",method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:n.join()}}).then((function(t){"success"===t.code?(r.ManagetableData.splice(e,n.length),r.basicvo.passenger.chapterList[r.ManageIndex].passenger.ManageList.splice(e,n.length),r.ManageTypeNum(r.basicvo.passenger.chapterList[r.UpdateManageListIndex].passenger.ManageList,r.basicvo.passenger.chapterList[r.UpdateManageListIndex]),r.$message.success(t.message),r.$forceUpdate()):r.$message.error(t.message),r.$forceUpdate()}));case 1:case"end":return t.stop()}}),t)})))):this.$alert("请选择需要删除的数据。","操作提示",{type:"info"})},openChapterDialog:function(e,t){var r=this;return ri(ei().mark((function n(){var a;return ei().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e){n.next=7;break}r.chapterObj=JSON.parse(JSON.stringify(e)),r.chapterIndex=t,r.ShowChapterSet=!0,r.isAdd=!1,n.next=13;break;case 7:return r.ShowChapterSet=!0,r.isAdd=!0,n.next=11,r.$app.addNew("/ksgl/courseChapter/addNew");case 11:a=n.sent,"success"===a.code?(r.chapterObj=a.body.vo,r.chapterObj.courseId=r.courseId):r.$message.error(a.message);case 13:case"end":return n.stop()}}),n)})))()},updateChapter:function(){var e=this,t=this;this.formValidate(ri(ei().mark((function r(){var n,a;return ei().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(t.showcollspan=!1,!0!==e.isAdd){r.next=8;break}return r.next=4,e.$app.insert("/ksgl/courseChapter/insert",e.chapterObj);case 4:n=r.sent,"success"===n.code?(e.ShowChapterSet=!1,e.basicvo.passenger.chapterList.push(e.chapterObj),e.$nextTick((function(){t.showcollspan=!0})),e.$message.success(n.message)):e.$message.error(n.message),r.next=12;break;case 8:return r.next=10,e.$app.update("/ksgl/courseChapter/update",e.chapterObj);case 10:a=r.sent,"success"===a.code?(e.ShowChapterSet=!1,e.basicvo.passenger.chapterList[e.chapterIndex]=e.chapterObj,e.$message.success(a.message),e.$forceUpdate()):e.$message({type:"warning",message:a.message});case 12:case"end":return r.stop()}}),r)}))),null,1)},SortData:function(e){return function(t,r){var n=t[e],a=r[e];return n-a}},onclickTeacher:function(){this.$refs.TeacherDialog.click()},ShowManageTable:function(e){this.ShowManage=!0,this.ManagetableData=[],this.ManageIndex=e;for(var t=this.basicvo.passenger.chapterList[e].passenger.ManageList,r=0;r<t.length;r++)this.ManagetableData.push(t[r]);this.UpdateManageListIndex=e},closePaper:function(){var e=window.opener.document.querySelector(".el-icon-refresh");null!==e&&e.parentElement.click(),window.close()},DeleteSurplus:function(e,t,r){if("course"===r){for(var n=[],a=0;a<t.length;a++){var o={chapterId:"",id:"",orderNo:"",passenger:{},wareId:""};t[a].hasOwnProperty("orderNo")?console.log(t[a]):(o.chapterId=e,o.orderNo=a+1001,o.wareId=null!==t[a].id?t[a].id:t[a].passenger.id,o.passenger=t[a],n.push(o))}t=n}else if("manage"===r){for(var i=[],s=0;s<t.length;s++){var l={chapterId:"",id:"",bankId:"",subjectId:"",passenger:{},subjectType:""};t[s].chapterId||(l.chapterId=e,l.bankId=t[s].bankId,l.subjectId=t[s].id,l.subjectType=t[s].type,l.passenger=t[s],i.push(l))}t=i}return t},changeRadio:function(e){1===e?(this.basicvo.needRate=100,this.readonly=!0,this.basicvo.credit=0):(this.basicvo.needRate=100,this.readonly=!1)},onSelectSuborgCompleted:function(e,t){var r="",n="";e.forEach((function(e){""!==r&&(r+="、"),r+=e.name,n+=e.id+","})),this.$set(this.basicvo,"studyId",n.substring(0,n.length-1)),this.$set(this.basicvo,"studyName",r)},onSelectWorkgroupCompleted:function(e,t){var r="",n="";e.forEach((function(e){""!==r&&(r+="、"),r+=e.name,n+=e.id+","})),this.$set(this.basicvo,"studyId",n.substring(0,n.length-1)),this.$set(this.basicvo,"studyName",r)},onSelectStaffCompleted:function(e,t){if("2"===t.nametype){var r="",n="";this.basicvo.passenger.studyId=e,e.forEach((function(e){""!==r&&(r+="、"),r+=e.name,n+=e.personId+","})),this.$set(this.basicvo,"studyName",r),this.$set(this.basicvo,"studyId",n.substring(0,n.length-1))}else{var a="",o="";this.basicvo.passenger.teacherId=e,e.forEach((function(e){""!==a&&(a+="、"),a+=e.name,o=e.personId})),this.$set(this.basicvo,"studyName",a),this.$set(this.basicvo,"studyId",o)}},courseUpdate:function(e,t,r,n){var a=this,o=this;this.formValidate(ri(ei().mark((function i(){var s,l,c,u;return ei().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(0!==a.radio||null!==a.basicvo.needRate){i.next=3;break}return a.$message({type:"warning",message:"章节学习率是必填的"}),i.abrupt("return");case 3:if(2!==a.basicvo.shoukeType||null!==a.basicvo.issign){i.next=6;break}return a.$message({type:"error",message:"请选择是否签到"}),i.abrupt("return");case 6:if(!(a.basicvo.needRate>100)){i.next=9;break}return a.$message({type:"warning",message:"章节学习率不可大于100%"}),i.abrupt("return");case 9:if(a.basicvo.ispublish=2===t?1:0,console.log("this.basicvo===",a.basicvo),3===t){i.next=27;break}if(s=a.basicvo.passenger.chapterList,s&&s.length){i.next=17;break}return a.$alert("请添加课程章节。","操作提示",{type:"warning"}),a.activeName="course",i.abrupt("return");case 17:l=0;case 18:if(!(l<s.length)){i.next=27;break}if(c=s[l],c.passenger.RouseList&&c.passenger.RouseList.length){i.next=24;break}return a.$alert('章节"'.concat(c.title,'"未添加课件。'),"操作提示",{type:"warning"}),a.activeName="course",i.abrupt("return");case 24:l++,i.next=18;break;case 27:if(!e&&3===t){i.next=59;break}if(a.$bus.emit("isdisabled"),u={},!0!==e){i.next=38;break}return i.next=33,a.$app.insert("/ksgl/course/insert",a.basicvo);case 33:u=i.sent,a.$vnode.context.isAdd=!1,a.$vnode.context.activeType="2",i.next=43;break;case 38:return a.basicvo.status=1,a.basicvo.courseNum=null,i.next=42,a.$app.update("/ksgl/course/update",a.basicvo);case 42:u=i.sent;case 43:if(a.$bus.emit("isNotdisabled"),"success"!==u.code){i.next=56;break}if(!u.body.vo){i.next=50;break}return i.next=48,a.startUploadFile(u.body.vo.id);case 48:i.next=52;break;case 50:return i.next=52,a.startUploadFile(a.basicvo.id);case 52:3!==t&&a.$message.success(u.message),u.body.vo.id&&(a.courseId=u.body.vo.id,a.basicvo.id=u.body.vo.id),i.next=59;break;case 56:return 2===t&&(a.basicvo.ispublish=0),a.$alert(u.message,"操作提示",{type:"error",dangerouslyUseHTMLString:!0}),i.abrupt("return");case 59:"frist"===o.activeName?(a.activeName=n||"course",a.$bus.emit("changeActive",a.activeName)):"course"===a.activeName&&2===r&&(a.activeName=n||"courseTime",a.$bus.emit("changeActive",a.activeName)),3!==t&&a.$bus.emit("closeDialog");case 61:case"end":return i.stop()}}),i)}))),(function(){"frist"!==a.activeName&&(a.activeName="frist",a.$bus.emit("changeActive",a.activeName))}))},back:function(){"course"===this.activeName?(this.activeName="frist",this.$bus.emit("changeActive",this.activeName)):"courseTime"===this.activeName&&(this.activeName="course",this.$bus.emit("changeActive",this.activeName))},changecollaspe:function(e){var t=this;this.showcollspan=!1;var r="";""!==e&&(r=this.basicvo.passenger.chapterList[e].id),r&&(this.$http({url:"/ksgl/courseChapter/getCourseChapterById?id=".concat(r),method:"GET",contentType:"application/x-www-form-urlencoded"}).then((function(e){if("success"===e.code){for(var r in e.body)e.body[r].forEach((function(e){e.passenger=e.passenger.item}));e.body.DanXnum=0,e.body.DuoXnum=0,e.body.PDnum=0,e.body.TKnum=0,e.body.WDnum=0,e.body.showManage=!1,t.basicvo.passenger.chapterList.forEach((function(r){(0!==e.body.ManageList.length&&e.body.ManageList[0].chapterId&&r.id===e.body.ManageList[0].chapterId||0!==e.body.RouseList.length&&e.body.RouseList[0].chapterId&&r.id===e.body.RouseList[0].chapterId)&&(0!==e.body.ManageList.length&&(t.ManageTypeNum(e.body.ManageList,r),e.body.ManageList=e.body.ManageList.sort(t.SortData("type")),r.passenger.showManage=!0,r.passenger.ManageList=e.body.ManageList),r.passenger.RouseList=e.body.RouseList)})),t.showcollspan=!0,t.$forceUpdate()}else t.$message.error(e.message)})),this.$forceUpdate())},addUploadFiles:function(e,t){for(var r=0;r<this.uploadFiles.length;r++)e.propName===this.uploadFiles[r].propName&&this.uploadFiles.splice(r--,1);e.fileList=t,this.uploadFiles.push(e)},startUploadFile:function(e){var t=this;return ri(ei().mark((function r(){var n,a,o,i,s,l;return ei().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t,0!==t.uploadFiles.length){r.next=3;break}return r.abrupt("return");case 3:a={onUploadProgress:function(e){var r=e.loaded/e.total*100|0;n.uploadingFile=t.FormItem,n.uploadingFile.progress=r,n.$forceUpdate()}},o=0;case 5:if(!(o<t.uploadFiles.length)){r.next=18;break}i=t.uploadFiles[o],s=0;case 8:if(!(s<i.fileList.length)){r.next=15;break}return l=i.fileList[s],r.next=12,t.$app.upload("/ksgl/course/upload",l.raw,{id:e,nameField:"coverUrl",dataField:"cover"},a);case 12:s++,r.next=8;break;case 15:o++,r.next=5;break;case 18:t.uploadFiles=[];case 19:case"end":return r.stop()}}),r)})))()},khChange:function(){var e=this;this.$set(this.basicvo,"studyName",null),this.$set(this.basicvo,"studyId",null),this.basicvo.passenger.studyId="",this.isUpdate=!1,this.$nextTick((function(){e.isUpdate=!0}))},changeTime:function(e){null!==e?(this.$set(this.basicvo,"stateTime",e[0]),this.$set(this.basicvo,"endTime",e[1])):(this.$set(this.basicvo,"stateTime",null),this.$set(this.basicvo,"startTime",null))},formatTime:function(e,t){return ni(e).format(t)},handleSelectChange:function(e){this.selectedRows=e}}},oi=ai,ii=(r(7831),c(oi,Bo,Go,!1,null,"fa49e854",null)),si=ii.exports,li=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"app-container"},[t("div",{staticClass:"topBtn clearfix"},[t("el-radio-group",{staticClass:"lbtn",attrs:{size:"small"},on:{change:function(t){return e.initCourse(e.activeType)}},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},[t("el-radio-button",{attrs:{label:"0"}},[e._v("已上架")]),t("el-radio-button",{attrs:{label:"1"}},[e._v("未上架")]),t("el-radio-button",{attrs:{label:"2"}},[e._v("全部")])],1),t("el-button-group",{staticClass:"rbtn"},[t("el-button",{attrs:{size:"small ",icon:"el-icon-refresh"},on:{click:e.refreshFuc}}),t("el-button",{staticClass:"add_btn",attrs:{size:"small ",plain:"",icon:"el-icon-plus"},on:{click:function(t){t.stopPropagation(),e.openBtnPopup(),e.isAdd=!0}}},[e._v("新增")]),"1"===e.activeType||"2"===e.activeType?t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-upload2"},on:{click:function(t){return e.courseDeleted(1)}}},[e._v("上架")]):e._e(),"0"===e.activeType||"2"===e.activeType?t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-download"},on:{click:function(t){return e.courseDeleted(2)}}},[e._v("下架")]):e._e(),t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-close"},on:{click:function(t){return e.courseDeleted(0)}}},[e._v("删除")])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.addPopper,expression:"addPopper"}],staticClass:"el-popover el-popper tip_popper_xxks",attrs:{id:"el-popover-4751",role:"tooltip","aria-hidden":"false",tabindex:"0"}},[t("div",{staticClass:"tip_popper_btn"},[t("el-link",{staticClass:"tip_popper_link",attrs:{underline:!1},on:{click:function(t){return e.clickdt(1)}}},[t("span",[e._v("线上课程")])])],1),t("div",{staticClass:"tip_popper_btn"},[t("el-link",{staticClass:"tip_popper_link",attrs:{underline:!1},on:{click:function(t){return e.clickdt(2)}}},[t("span",[e._v("线下课程")])])],1)]),null===e.vo||e.loading?e._e():t("div",{staticClass:"contentBox",staticStyle:{width:"100%"}},[e.vo.pageInfo.list.length>0?t("el-row",{attrs:{gutter:"10",justify:"space-between"}},[t("el-checkbox-group",{key:e.item,model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.vo.pageInfo.list,(function(r){return t("el-col",{key:r,attrs:{xs:8,sm:6,md:6,lg:6,xl:4}},[t("course",{attrs:{"course-obj":r,"type-enter":2,"active-type":e.activeType,"is-course-manage":1}})],1)})),1)],1):e._e(),e.vo.pageInfo.list.length>0?t("el-pagination",{staticClass:"xxks_pagination",attrs:{align:"right","current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total,"page-sizes":[12,18,24,36,48],"page-size":e.pageSize},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),0===e.vo.pageInfo.list.length&&"w"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"images/w-imgs/nomessage.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("暂无数据")])]):e._e(),0===e.vo.pageInfo.list.length&&"m"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"./images/m-imgs/nosearch.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("抱歉,无相关内容")])]):e._e()],1),t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.show,"close-on-click-modal":!1,title:"课程管理",width:"850px"},on:{"update:visible":function(t){e.show=t},close:e.closeAddDialog}},[t("div",{staticStyle:{"min-height":"476px","padding-top":"15px"}},[t("add-Lesson",{ref:"lesson",attrs:{"can-edit":e.canEdit,courseid:e.itemId,type:"admin","add-type":e.addType}})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.closeAddDialog}},[e._v("关 闭")]),1===e.canEdit&&"frist"!==e.childActiveName?t("el-button",{on:{click:e.ToBack}},[e._v("上一步")]):e._e(),1!==e.canEdit||"courseTime"===e.childActiveName||1===e.addType&&"course"===e.childActiveName?e._e():t("el-button",{attrs:{disabled:e.disabled,type:"primary"},on:{click:e.ToNext}},[e._v("下一步")]),1===e.canEdit&&("courseTime"===e.childActiveName||1===e.addType&&"course"===e.childActiveName)?t("el-button",{attrs:{disabled:e.disabled},on:{click:function(t){return e.submit(1)}}},[e._v("保 存")]):e._e(),1===e.canEdit&&("courseTime"===e.childActiveName||1===e.addType&&"course"===e.childActiveName)?t("el-button",{attrs:{disabled:e.disabled,type:"primary"},on:{click:function(t){return e.submit(2)}}},[e._v("发 布")]):e._e()],1)])],1)},ci=[];function ui(e){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(e)}function di(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */di=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ui(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ui(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function pi(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function hi(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){pi(o,n,a,i,s,"next",e)}function s(e){pi(o,n,a,i,s,"throw",e)}i(void 0)}))}}var fi={components:{course:Da,addLesson:si},props:{},data:function(){return{vo:null,total:"",currentPage:1,pageNum:1,pageSize:12,checkList:[],activeType:"0",show:!1,canEdit:0,itemId:"",childActiveName:"frist",disabled:!1,loading:!0,moduleInfo:{formTemplate:"dcontent/busiformurl?vwtype=W&url=/ksgl/course/form.html",winWidth:850,delUrl:"ksgl/course/delete",addNewUrl:"ksgl/course/addNew",insertUrl:"ksgl/course/insert",moduleCode:"course",winHeight:800,updateUrl:"ksgl/course/update",listDataUrl:"ksgl/course/listdata",getByIdUrl:"ksgl/course/getById"},loginUser:this.$store.getters.loginUser,addPopper:!1,addType:1,isAdd:!1,useImg:"w"}},computed:{},watch:{itemId:{handler:function(e){this.isAdd=!1},deep:!0}},created:function(){var e=this;window.screen.width>1920&&(this.pageSize=18),this.initCourse("0"),this.$bus.on("update",this.updateClick),this.$bus.on("isdisabled",(function(){e.disabled=!0})),this.$bus.on("isNotdisabled",(function(){e.disabled=!1})),this.$bus.on("changeActive",(function(t){e.childActiveName=t})),this.$bus.on("activeClick",(function(t){e.childActiveName=t})),this.$bus.on("closeDialog",(function(){e.show=!1,e.refreshFuc()})),this.$bus.on("courseDeleted",this.courseDeleted),this.$bus.emit("hiddenAdvSearch",!0)},beforeDestroy:function(){this.$bus.off("update",this.updateClick),this.$bus.off("activeClick"),this.$bus.off("isdisabled"),this.$bus.off("isNotdisabled"),this.$bus.off("changeActive"),this.$bus.off("closeDialog"),this.$bus.off("courseDeleted",this.courseDeleted),document.removeEventListener("click",this.windowClick,!1);var e=document.querySelector(".app-main .main-scrollbar .el-scrollbar__wrap");e&&e.removeEventListener("scroll",this.windowClick,!1),this.$bus.emit("hiddenAdvSearch",!1)},mounted:function(){var e=this;document.addEventListener("click",this.windowClick,!1);var t=document.querySelector(".app-main .main-scrollbar .el-scrollbar__wrap");t&&t.addEventListener("scroll",this.windowClick,!1),this.$bus.on("searchListData",(function(t){e.useImg="m",e.searchText=t,e.initCourse(e.activeType)}))},methods:{windowClick:function(){this.addPopper=!1},closeAddDialog:function(){this.show=!1,this.childActiveName="frist"},clickdt:function(e){var t=this;this.addType=e,this.canEdit=1,this.show=!0,this.loading=!0,this.$nextTick((function(){t.$bus.emit("updatecourse",t.canEdit),t.loading=!1,t.disabled=!1}))},updateClick:function(e,t){var r=this;this.addType=e.shoukeType,this.canEdit=void 0!==t?t:1,this.itemId=e.id,this.show=!0,this.childActiveName="frist",this.$nextTick((function(){r.$bus.emit("updatecourse",r.canEdit,r.itemId)}))},handleSizeChange:function(e){this.pageSize=e,this.initCourse(this.activeType)},handleCurrentChange:function(e){this.currentPage=e,this.initCourse(this.activeType)},initCourse:function(e){var t=this;return hi(di().mark((function r(){var n,a,o;return di().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n={},t.uploadFiles=[],n["name"]=t.searchText,a={pageNum:t.currentPage,pageSize:t.pageSize,orderBy:"createTime desc",searchMap:n},t.loading=!0,o="","1"!==e){r.next=13;break}return t.activeType="1",r.next=10,t.$app.listdata("/ksgl/course/listdata?urlsearch=ispublish:0;status:1;orgCode:"+t.loginUser.orgCode,a);case 10:o=r.sent,r.next=24;break;case 13:if("2"!==e){r.next=20;break}return t.activeType="2",r.next=17,t.$app.listdata("/ksgl/course/listdata?urlsearch=status:1;orgCode:"+t.loginUser.orgCode,a);case 17:o=r.sent,r.next=24;break;case 20:return t.activeType="0",r.next=23,t.$app.listdata("/ksgl/course/listdata?urlsearch=ispublish:1;status:1;orgCode:"+t.loginUser.orgCode,a);case 23:o=r.sent;case 24:"success"===o.code?(t.loading=!1,t.vo=o.body,t.total=o.body.pageInfo.total):t.$message.error(o.message);case 25:case"end":return r.stop()}}),r)})))()},courseDeleted:function(e,t){var r=this;return hi(di().mark((function n(){var a;return di().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(0!==r.checkList.length||t){n.next=3;break}return r.$alert("请选择课程!","操作提示",{type:"warning"}),n.abrupt("return",!1);case 3:a="",0===e?a="确认要删除选择的课程吗?":1===e?a="确认要上架选择的课程吗?":2===e&&(a="确认要下架选择的课程吗?"),r.$confirm(a,"确认操作",{type:"warning",closeOnClickModal:!1}).then((function(){r.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:t?t.id:r.checkList,type:e},paramsSerializer:function(e){return Pe().stringify(e,{indices:!1})},url:"/ksgl/course/delete"}).then((function(e){"success"===e.code?(r.$message.success(e.message),r.initCourse(r.activeType),r.checkList=[]):(r.initCourse(r.activeType),r.$alert(e.message,"操作提示",{type:"error",dangerouslyUseHTMLString:!0}))}))})).catch((function(e){"cancel"!==e&&console.error(e)}));case 6:case"end":return n.stop()}}),n)})))()},refreshFuc:function(){this.initCourse(this.activeType)},goDetail:function(e){window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type=1&id="+e+"&logoTitle="+encodeURIComponent("学习考试/课程管理/课程管理"))},ToNext:function(){!0===this.isAdd?this.$refs.lesson.courseUpdate(this.isAdd,3,this.addType):this.$refs.lesson.courseUpdate(!1,3,this.addType),this.$forceUpdate()},ToBack:function(){this.$refs.lesson.back(),this.isAdd=!1},submit:function(e){this.$refs.lesson.courseUpdate(!1,e,this.addType)},openBtnPopup:function(){var e=document.querySelector(".tip_popper_xxks"),t=document.querySelector(".el-button-group.rbtn");e.style.left="calc(100% - "+(t.offsetWidth-19)+"px)",this.addPopper=!this.addPopper}}},mi=fi,yi=(r(1680),r(5499),c(mi,li,ci,!1,null,"12c06822",null)),vi=yi.exports,gi=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"app-container"},[t("div",{staticClass:"topBtn clearfix"},[t("el-radio-group",{staticClass:"lbtn",attrs:{size:"small"},on:{change:function(t){return e.initCourse(e.activeType)}},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},[t("el-radio-button",{attrs:{label:"0"}},[e._v("已上架")]),t("el-radio-button",{attrs:{label:"1"}},[e._v("已下架")]),t("el-radio-button",{attrs:{label:"2"}},[e._v("全部")])],1),t("el-button-group",{staticClass:"rbtn"},[t("el-button",{attrs:{size:"small ",icon:"el-icon-refresh"},on:{click:e.refreshFuc}}),t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-plus"},on:{click:[function(t){return e.clickdt(2)},function(t){t.stopPropagation(),e.isAdd=!0}]}},[e._v("新增")]),"1"===e.activeType||"2"===e.activeType?t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-upload2"},on:{click:function(t){return e.courseDeleted(1)}}},[e._v("上架")]):e._e(),"0"===e.activeType||"2"===e.activeType?t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-download"},on:{click:function(t){return e.courseDeleted(2)}}},[e._v("下架")]):e._e(),t("el-button",{attrs:{size:"small ",plain:"",icon:"el-icon-close"},on:{click:function(t){return e.courseDeleted(0)}}},[e._v("删除")])],1)],1),null!==e.vo?t("div",{staticClass:"contentBox",staticStyle:{width:"100%"}},[e.vo.pageInfo.list.length>0?t("el-row",{attrs:{gutter:"10",justify:"space-between"}},[t("el-checkbox-group",{key:e.item,model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.vo.pageInfo.list,(function(r){return t("el-col",{key:r,attrs:{xs:8,sm:6,md:6,lg:6,xl:4}},[t("course",{attrs:{"course-obj":r,"type-enter":2,"active-type":e.activeType}})],1)})),1)],1):e._e(),e.vo.pageInfo.list.length>0?t("el-pagination",{attrs:{align:"right","current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total,"page-sizes":[12,18,24,36,48],"page-size":e.pageSize},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),0===e.vo.pageInfo.list.length&&"w"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"images/w-imgs/nomessage.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("暂无数据")])]):e._e(),0===e.vo.pageInfo.list.length&&"m"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"images/w-imgs/nomessage.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("抱歉,无相关内容")])]):e._e()],1):e._e(),e.show?t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],staticStyle:{"margin-top":"-4vh"},attrs:{visible:e.show,"close-on-click-modal":!1,title:"课程管理",width:"850px"},on:{"update:visible":function(t){e.show=t},close:e.closeAddDialog}},[t("div",{staticStyle:{"min-height":"550px","padding-top":"15px"}},[e.show?t("add-Lesson",{ref:"lesson",attrs:{"can-edit":e.canEdit,courseid:e.itemId,type:"teacher","add-type":e.addType}}):e._e()],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.closeAddDialog}},[e._v("关 闭")]),1===e.canEdit&&"frist"!==e.childActiveName?t("el-button",{on:{click:e.ToBack}},[e._v("上一步")]):e._e(),1!==e.canEdit||"courseTime"===e.childActiveName||1===e.addType&&"course"===e.childActiveName?e._e():t("el-button",{attrs:{disabled:e.disabled,type:"primary"},on:{click:e.ToNext}},[e._v("下一步")]),1===e.canEdit&&("courseTime"===e.childActiveName||1===e.addType&&"course"===e.childActiveName)?t("el-button",{attrs:{disabled:e.disabled},on:{click:function(t){return e.submit(1)}}},[e._v("保 存")]):e._e(),1===e.canEdit&&("courseTime"===e.childActiveName||1===e.addType&&"course"===e.childActiveName)?t("el-button",{attrs:{disabled:e.disabled,type:"primary"},on:{click:function(t){return e.submit(2)}}},[e._v("发 布")]):e._e()],1)]):e._e()],1)},_i=[];function bi(e){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bi(e)}function wi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */wi=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==bi(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(bi(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function xi(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Li(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){xi(o,n,a,i,s,"next",e)}function s(e){xi(o,n,a,i,s,"throw",e)}i(void 0)}))}}var Mi={components:{course:Da,addLesson:si},props:{},data:function(){return{vo:null,total:"",currentPage:1,pageNum:1,pageSize:12,checkList:[],activeType:"0",show:!1,canEdit:0,itemId:"",childActiveName:"frist",disabled:!1,loading:!0,moduleInfo:{formTemplate:"dcontent/busiformurl?vwtype=W&url=/ksgl/course/form.html",winWidth:850,delUrl:"ksgl/course/delete",addNewUrl:"ksgl/course/addNew",insertUrl:"ksgl/course/insert",moduleCode:"course",winHeight:800,updateUrl:"ksgl/course/update",listDataUrl:"ksgl/course/listdata",getByIdUrl:"ksgl/course/getById"},loginUser:this.$store.getters.loginUser,addPopper:!1,addType:1,isAdd:!1,useImg:"w"}},computed:{},watch:{itemId:{handler:function(e){this.isAdd=!1},deep:!0}},created:function(){var e=this;return Li(wi().mark((function t(){var r;return wi().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return window.screen.width>1920&&(e.pageSize=18),t.next=3,e.$app.querydata("/ksgl/teacher/querydata",[{compare:"=",field:"personId",merge:!1,value:e.loginUser.personId}]);case 3:r=t.sent,"success"===r.code&&(r.body.listdata.length>0?(e.teacherFlag=r.body.listdata[0].id,e.initCourse()):e.loading=!1),e.$bus.on("update",e.updateClick),e.$bus.on("isdisabled",(function(){e.disabled=!0})),e.$bus.on("isNotdisabled",(function(){e.disabled=!1})),e.$bus.on("changeActive",(function(t){e.childActiveName=t})),e.$bus.on("activeClick",(function(t){e.childActiveName=t})),e.$bus.on("closeDialog",(function(){e.show=!1,e.childActiveName="frist",e.refreshFuc()})),e.$bus.on("courseDeleted",e.courseDeleted),e.$bus.emit("hiddenAdvSearch",!0);case 13:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.$bus.off("update",this.updateClick),this.$bus.off("activeClick"),this.$bus.off("isdisabled"),this.$bus.off("isNotdisabled"),this.$bus.off("changeActive"),this.$bus.off("closeDialog"),this.$bus.off("courseDeleted",this.courseDeleted),this.$bus.emit("hiddenAdvSearch",!1)},mounted:function(){var e=this;document.addEventListener("click",this.windowClick,!1),this.$bus.on("searchListData",(function(t){e.useImg="m",e.searchText=t,e.initCourse(e.activeType)}))},methods:{windowClick:function(){this.addPopper=!1},closeAddDialog:function(){this.show=!1,this.childActiveName="frist",this.refreshFuc()},clickdt:function(e){var t=this;this.addType=e,this.canEdit=1,this.show=!0,this.loading=!0,this.$nextTick((function(){t.$bus.emit("updatecourse",t.canEdit),t.loading=!1,t.disabled=!1}))},updateClick:function(e,t){var r=this;this.addType=e.shoukeType,this.canEdit=void 0!==t?t:1,this.itemId=e.id,this.show=!0,this.childActiveName="frist",this.$nextTick((function(){r.$bus.emit("updatecourse",r.canEdit,r.itemId)}))},handleSizeChange:function(e){this.pageSize=e,this.initCourse(this.activeType)},handleCurrentChange:function(e){this.currentPage=e,this.initCourse(this.activeType)},initCourse:function(e){var t=this;return Li(wi().mark((function r(){var n,a,o;return wi().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n={},n["name"]=t.searchText,a={pageNum:t.currentPage,pageSize:t.pageSize,orderBy:"createTime desc",searchMap:n},t.loading=!0,o="","1"!==e){r.next=12;break}return t.activeType="1",r.next=9,t.$app.listdata("/ksgl/course/listdata?urlsearch=ispublish:0;status:1;orgCode:"+t.loginUser.orgCode+";teacherId in "+t.teacherFlag+","+t.loginUser.personId,a);case 9:o=r.sent,r.next=23;break;case 12:if("2"!==e){r.next=19;break}return t.activeType="2",r.next=16,t.$app.listdata("/ksgl/course/listdata?urlsearch=status:1;orgCode:"+t.loginUser.orgCode+";teacherId in "+t.teacherFlag+","+t.loginUser.personId,a);case 16:o=r.sent,r.next=23;break;case 19:return t.activeType="0",r.next=22,t.$app.listdata("/ksgl/course/listdata?urlsearch=ispublish:1;status:1;orgCode:"+t.loginUser.orgCode+";teacherId in "+t.teacherFlag+","+t.loginUser.personId,a);case 22:o=r.sent;case 23:"success"===o.code?(t.loading=!1,t.vo=o.body,t.total=o.body.pageInfo.total):t.$message.error(o.message);case 24:case"end":return r.stop()}}),r)})))()},courseDeleted:function(e,t){var r=this;return Li(wi().mark((function n(){return wi().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(0!==r.checkList.length||t){n.next=3;break}return r.$alert("请选择课程!","操作提示",{type:"warning"}),n.abrupt("return",!1);case 3:0===e?r.$confirm("确定删除选择的课程?","确认操作",{type:"warning",closeOnClickModal:!1}).then((function(){r.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:t?t.id:r.checkList,type:e},paramsSerializer:function(e){return Pe().stringify(e,{indices:!1})},url:"/ksgl/course/delete"}).then((function(e){"success"===e.code?(r.$message.success(e.message),r.initCourse(r.activeType),r.checkList=[]):(r.initCourse(r.activeType),r.$message.error(e.message))}))})).catch((function(e){"cancel"!==e&&console.error(e)})):r.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:t?t.id:r.checkList,type:e},paramsSerializer:function(e){return Pe().stringify(e,{indices:!1})},url:"/ksgl/course/delete"}).then((function(e){"success"===e.code?(r.$message.success(e.message),r.initCourse(r.activeType),r.checkList=[]):(r.initCourse(r.activeType),r.$message.error(e.message))}));case 4:case"end":return n.stop()}}),n)})))()},refreshFuc:function(){this.initCourse(this.activeType)},goDetail:function(e){window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type=1&id="+e+"&logoTitle="+encodeURIComponent("学习考试/讲师中心/我的课程"))},ToNext:function(){!0===this.isAdd?this.$refs.lesson.courseUpdate(this.isAdd,3,this.addType):this.$refs.lesson.courseUpdate(!1,3,this.addType),this.$forceUpdate()},ToBack:function(){this.$refs.lesson.back(),this.isAdd=!1},submit:function(e){this.$refs.lesson.courseUpdate(!1,e,this.addType)}}},ki=Mi,Ti=(r(9107),r(9671),c(ki,gi,_i,!1,null,"4f024830",null)),Di=Ti.exports,Yi=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"app-container"},[t("div",{staticClass:"topBtn clearfix"},[t("el-radio-group",{staticClass:"lbtn",attrs:{size:"small"},on:{change:function(t){return e.initCourse(e.activeType)}},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},[t("el-radio-button",{attrs:{label:"0"}},[e._v("全部")]),t("el-radio-button",{attrs:{label:"1"}},[e._v("线上")]),t("el-radio-button",{attrs:{label:"2"}},[e._v("线下")])],1)],1),null!==e.vo?t("div",{staticClass:"contentBox",staticStyle:{width:"100%"}},[t("el-row",{attrs:{gutter:"10",justify:"space-between"}},[t("el-checkbox-group",{key:e.item,model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.vo.pageInfo.list,(function(r){return t("el-col",{key:r,attrs:{xs:8,sm:6,md:6,lg:6,xl:4}},[t("course",{attrs:{"course-obj":r,"type-enter":1,"active-type":e.activeType}})],1)})),1)],1),e.vo.pageInfo.list.length>0?t("el-pagination",{attrs:{align:"right","current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total,"page-sizes":[12,18,24,36,48],"page-size":e.pageSize},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),0===e.vo.pageInfo.list.length&&"w"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"images/w-imgs/nomessage.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("暂无数据")])]):e._e(),0===e.vo.pageInfo.list.length&&"m"===e.useImg?t("div",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"./images/m-imgs/nosearch.png"}}),t("br"),t("span",{staticStyle:{"font-size":"var(--portalFontSize15)",color:"#dbdbdb"}},[e._v("抱歉,无相关内容")])]):e._e()],1):e._e()])},Si=[];function Ci(e){return Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ci(e)}function ji(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ji=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Ci(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Ci(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ei(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Oi(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ei(o,n,a,i,s,"next",e)}function s(e){Ei(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Pi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ai(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(r),!0).forEach((function(t){Ni(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ni(e,t,r){return(t=Hi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hi(e){var t=Ii(e,"string");return"symbol"==Ci(t)?t:t+""}function Ii(e,t){if("object"!=Ci(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ci(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Fi={components:{course:Da},props:{},data:function(){return{vo:null,total:"",currentPage:1,pageNum:1,pageSize:12,checkList:[],activeType:"0",loading:!0,useImg:"w"}},computed:Ai({},ce(["routes","loginUser"])),watch:{},created:function(){if(window.screen.width>1920&&(this.pageSize=18),this.$route.query.choseType){this.activeType=this.$route.query.choseType;var e=decodeURIComponent(location.href),t=e.split("?")[0];window.history.pushState(null,null,t)}this.initCourse(this.activeType),this.$bus.emit("hiddenAdvSearch",!0)},beforeDestroy:function(){this.$bus.emit("hiddenAdvSearch",!1)},mounted:function(){var e=this;this.$bus.on("searchListData",(function(t){e.useImg="m",e.searchText=t,e.initCourse(e.activeType)}))},methods:{clickdt:function(){console.log(this.checkList)},handleSizeChange:function(e){console.log("每页 ".concat(e," 条")),this.pageSize=e,this.initCourse()},handleCurrentChange:function(e){console.log("当前页: ".concat(e)),this.currentPage=e,this.initCourse(this.activeType)},initCourse:function(e){var t=this;return Oi(ji().mark((function r(){var n,a,o;return ji().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.loading=!0,n={},n["name"]=t.searchText,a={pageNum:t.currentPage,pageSize:t.pageSize,orderBy:"createTime desc",searchMap:n},"1"===e?(t.activeType="1",a.urlsearch="shoukeType:1;ispublish:1;status:1;orgCode:"+t.loginUser.orgCode):"2"===e?(t.activeType="2",a.urlsearch="shoukeType:2;ispublish:1;status:1;orgCode:"+t.loginUser.orgCode):(t.activeType="0",a.urlsearch="ispublish:1;status:1;orgCode:"+t.loginUser.orgCode),r.next=7,t.$app.listdata("ksgl/course/listdataCourseCenter",a);case 7:o=r.sent,"success"===o.code?(t.loading=!1,t.vo=o.body,t.total=o.body.pageInfo.total):t.$message.error(o.message);case 9:case"end":return r.stop()}}),r)})))()},goDetail:function(e,t,r){window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type=2&num="+t+"&allNum="+r+"&id="+e+"&logoTitle="+encodeURIComponent("学习考试/课程中心"))}}},zi=Fi,Bi=(r(9646),r(785),c(zi,Yi,Si,!1,null,"22a47d4c",null)),Gi=Bi.exports,Ri=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,width:"800px","before-close":e.handleClose,"append-to-body":!0,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"right-toolbar-container"},[t("el-input",{style:"width:100%",attrs:{placeholder:"请输入搜索内容",clear:"searchBar"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearchTextOut.apply(null,arguments)}},model:{value:e.outSearchText,callback:function(t){e.outSearchText=t},expression:"outSearchText"}},[t("el-button",{staticStyle:{width:"30px"},attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.doSearchTextOut.apply(null,arguments)}},slot:"append"})],1)],1),"选择试卷"===e.chooseType?t("data-table",{attrs:{"module-info":e.moduleInfo,"tb-columns":e.tbColumns,"toolbar-btns":e.listpageBtns,"on-list-data-before-load":e.onListDataBeforeLoad}}):e._e(),"选择课程"===e.chooseType?t("data-table",{attrs:{"module-info":e.moduleInfoKC,"tb-columns":e.tbColumnsKC,"toolbar-btns":e.listpageBtnsKC,"on-list-data-before-load":e.onListDataBeforeLoad,"on-list-data-loaded":e.onListDataLoaded}}):e._e()],1)],1)},Wi=[],Vi={components:{},props:{},data:function(){return{dialogVisible:!1,loginUser:this.$store.getters.loginUser,title:"选择试题",moduleInfo:{moduleCode:"paper",listDataUrl:"ksgl/paper/listdata/?urlsearch=status:1;ispublish:1;orgCode:"+this.$store.getters.loginUser.orgCode,winWidth:800,winHeight:600},moduleInfoKC:{moduleCode:"course",listDataUrl:"ksgl/course/listdataAndTypeName/?urlsearch=status:1;orgCode:"+this.$store.getters.loginUser.orgCode,winWidth:800,winHeight:600},tbColumns:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"name",title:"试卷名称",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}}},{field:"categoryName",title:"试卷分类",width:"120px",align:"center",valign:"middle"},{field:"type",title:"试卷类型",width:"100px",align:"center",valign:"middle",elementFormatter:"1:固定试卷\r\n2:随机试卷\r\n"},{field:"totalGrade",title:"总分数",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}}},{field:"subjectNum",title:"题目数量",width:"100px",align:"center",valign:"middle"},{field:"column_operate",title:"操作",width:"70px",align:"center",valign:"middle"}],tbColumnsKC:[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"name",title:"课程名称",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}}},{field:"categoryName",title:"分类",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}}},{field:"shoukeType",title:"授课方式",width:"100px",align:"center",valign:"middle"},{field:"column_operate",title:"操作",width:"70px",align:"center",valign:"middle"}],listpageBtns:[{id:"btn_deleteId",btnName:"选择",btnClick:this.chooseItem,btnPermission:"deleteIds",btnType:"column",btnIcon:""}],listpageBtnsKC:[{id:"btn_deleteId",btnName:"选择",btnClick:this.chooseItem,btnPermission:"deleteIds",btnType:"column",btnIcon:""}],chooseType:"",outSearchText:""}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{click:function(e){console.log(e),this.title=e,this.outSearchText="",this.dialogVisible=!0,this.chooseType=e},handleClose:function(){this.dialogVisible=!1,this.chooseType="",this.$forceUpdate()},doSearchTextOut:function(){this.$bus.emit("refreshListData")},chooseItem:function(e){if(console.log(e),"选择试卷"===this.chooseType){var t={id:"",name:"",totalGrade:0};t.id=e.id,t.name=e.name,t.totalGrade=e.totalGrade,this.$bus.emit("choosePaper",t)}else if("选择课程"===this.chooseType){var r={id:"",name:""};r.id=e.id,r.name=e.name,this.$bus.emit("chooseCourse",r)}this.chooseType="",this.dialogVisible=!1},onListDataBeforeLoad:function(e,t){"选择试卷"===this.chooseType?(t.orderBy="createTime desc",t.searchMap["name"]=this.outSearchText,t.searchMap["totalGrade"]=this.outSearchText,t.searchMap["subjectNum"]=this.outSearchText,t.searchAndOr="or"):"选择课程"===this.chooseType&&(t.searchMap["name"]=this.outSearchText,t.searchAndOr="or")},onListDataLoaded:function(e,t){var r=this;t.list.forEach((function(e){e.shoukeType=1===e.shoukeType?"线上课程":"线下课程",e.courseType=1===e.courseType?"必修课":"选修课"})),"选择课程"==this.chooseType&&t.list.forEach((function(e){r.$set(e,"categoryName",e.passenger.categoryName)})),this.$forceUpdate()}}},Ui=Vi,qi=(r(6438),c(Ui,Ri,Wi,!1,null,"273f2641",null)),Xi=qi.exports,Ki=function(){var e=this,t=e._self._c;return t("div",[t("el-button",{staticStyle:{display:"contents"},style:{color:e.passtime?"#999":""},attrs:{disabled:!!e.passtime,type:"text"},on:{click:function(t){!e.passtime&&e.updateData()}}},[t("i",{staticClass:"el-icon-edit",staticStyle:{"margin-right":"5px"}})]),t("el-button",{staticStyle:{display:"contents"},style:{color:e.passtime?"#999":""},attrs:{disabled:!!e.passtime,type:"text"},on:{click:function(t){!e.passtime&&e.deleteData()}}},[t("i",{staticClass:"el-icon-delete"})])],1)},Ji=[];function Qi(e){return Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qi(e)}function Zi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Zi=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Qi(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Qi(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function $i(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function es(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){$i(o,n,a,i,s,"next",e)}function s(e){$i(o,n,a,i,s,"throw",e)}i(void 0)}))}}var ts={components:{},props:{row:{type:Object,default:function(){return{}}},column:{type:Object,default:function(){return{}}},index:{type:String,default:function(){return"0"}}},data:function(){return{showButton:!1,passtime:!1,moduleInfo:{formTemplate:"dcontent/busiformurl?vwtype=W&url=/ksgl/exam/form.html",winWidth:1e3,delUrl:"ksgl/exam/delete",addNewUrl:"ksgl/exam/addNew",insertUrl:"ksgl/exam/insert",moduleCode:"exam",winHeight:600,updateUrl:"ksgl/exam/update",listDataUrl:"ksgl/exam/listdata",getByIdUrl:"ksgl/exam/getById",listAdvSearchAllFields:0}}},computed:{},watch:{},created:function(){var e=new Date;-1!==this.$store.state.user.roles.indexOf("ksglAdmin")&&(this.showButton=!0),new Date(this.row.startTime)>=e||0===this.row.status?this.passtime=!1:this.passtime=!0},beforeDestroy:function(){},mounted:function(){},methods:{update:function(){var e=new Date;new Date(this.row.startTime)>=e||0===this.row.status?this.passtime=!1:this.passtime=!0},deleteData:function(){var e=this;this.$confirm("您是否确认删除选择的数据?","确认操作",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(es(Zi().mark((function t(){var r,n;return Zi().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.row,t.next=3,e.$app.deleteByIds("/ksgl/exam/delete",[r.id]);case 3:n=t.sent,"success"===n.code?(e.$message({type:"success",message:"删除成功!"}),e.$bus.emit("refreshListData")):e.$message({type:"info",message:n.message});case 5:case"end":return t.stop()}}),t)})))).catch((function(){}))},updateData:function(){console.log(!this.row.passtime);var e=this.row;this.$bus.emit("updateAddDialog",e,0)},handleClose:function(){this.dialogVisible=!1}}},rs=ts,ns=c(rs,Ki,Ji,!1,null,"b7ee2c86",null),as=ns.exports,os=function(){var e=this,t=e._self._c;return t("div",{staticClass:"exam-header"},[null!==e.examVo?t("div",[t("p",{staticClass:"exam-header-name"},[t("span",[e._v(e._s(e.examVo.name))]),t("svg-icon",{staticStyle:{width:"72px",height:"24px"},attrs:{"icon-class":"进行中"===e.courseTimeJudge(e.examVo.startTime,e.examVo.endTime)?"ksgl_couser_ing":"未开始"===e.courseTimeJudge(e.examVo.startTime,e.examVo.endTime)?"ksgl_couser_no":"ksgl_couser_done"}}),t("span",{staticStyle:{"font-size":"var(--portalFontSize14)","font-weight":"400",left:"-60px",position:"relative","z-index":"2",top:"-3px"},style:{color:"已结束"===e.courseTimeJudge(e.examVo.startTime,e.examVo.endTime)?"#999999":"#fff"}},[e._v(e._s(e.courseTimeJudge(e.examVo.startTime,e.examVo.endTime)))])],1),t("div",{staticClass:"exam-header-info1"},[t("div",{staticClass:"flex",staticStyle:{width:"max-content",margin:"0 auto","line-height":"28px"}},[t("div",{staticClass:"sizemiddle MRight36"},[e._v("考试时间:"+e._s(e.startTime)+" 至 "+e._s(e.EndTime))]),t("div",{staticClass:"sizemiddle flex aling-item"},[t("div",{staticStyle:{width:"80px"}},[t("el-progress",{attrs:{percentage:e.percentage,width:83,"show-text":!1,color:"rgba(80,227,194,1)"}})],1),e._v(" "),t("div",{staticClass:"sizesmall",staticStyle:{"margin-left":"10px"}},[e._v(" 通过率:"+e._s(e.piyueVo.passRate)+" %")])])])]),t("div",{staticClass:"exam-header-info2 sizesmall"},[t("span",[e._v("使用试卷:"+e._s(e.examVo.passenger.paperName))]),t("span",[e._v("考试限时: "),0===e.examVo.examLimit?t("span",[e._v("不限制")]):t("span",[e._v(e._s(e.examVo.examLimit)+" 分钟")])]),t("span",[e._v("可考次数: "),0===e.examVo.examTimes?t("span",[e._v("不限制")]):t("span",[e._v(e._s(e.examVo.examTimes)+" 次")])]),t("span",[e._v("学分奖励:"+e._s(e.examVo.credit)+" 分")]),t("span",[e._v("满分分数:"+e._s(e.piyueVo.totalGrade)+" 分")]),t("span",[e._v("通过分数: "),0===e.examVo.passGrade?t("span",[e._v("不限制")]):t("span",[e._v(e._s(e.examVo.passGrade)+" 分")])]),t("span",[e._v("已考人数:"+e._s(e.piyueVo.attentNum)+" / "+e._s(e.piyueVo.examNum))])])]):e._e()])},is=[];function ss(e){return ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ss(e)}function ls(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ls=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ss(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ss(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function cs(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function us(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){cs(o,n,a,i,s,"next",e)}function s(e){cs(o,n,a,i,s,"throw",e)}i(void 0)}))}}function ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ps(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(r),!0).forEach((function(t){hs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function hs(e,t,r){return(t=fs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fs(e){var t=ms(e,"string");return"symbol"==ss(t)?t:t+""}function ms(e,t){if("object"!=ss(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ss(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ys=r(5093),vs={components:{},props:{examId:{type:String,default:function(){return""}}},data:function(){return{examVo:null,piyueVo:{totalGrade:"",passRate:"",examNum:"",attentNum:""},startTime:"",EndTime:"",percentage:""}},computed:ps({},ce(["routes","loginUser"])),watch:{$route:function(){this.$route.query.id&&(this.examId=this.$route.query.id)}},created:function(){this.$route.query.id&&(this.examId=this.$route.query.id,this.examFun(),this.piyueFun())},beforeDestroy:function(){},mounted:function(){},methods:{examFun:function(){var e=this;return us(ls().mark((function t(){var r;return ls().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$app.getById("/ksgl/exam/getById",e.examId);case 2:r=t.sent,"success"===r.code?(console.log(r),e.examVo=r.body.vo,e.ChangeDate(e.examVo)):e.$message.error(r.message);case 4:case"end":return t.stop()}}),t)})))()},piyueFun:function(){var e=this;return us(ls().mark((function t(){var r,n;return ls().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r={orderBy:"",orgCode:e.loginUser.orgCode},t.next=3,e.$app.listdata("/ksgl/vwPiyue/listdata?urlsearch=id:"+e.examId,r);case 3:n=t.sent,"success"===n.code?(console.log(n),e.piyueVo=n.body.pageInfo.list[0],e.piyueVo.passRate=null===e.piyueVo.passRate?0:e.piyueVo.passRate,e.piyueVo.passRate=e.piyueVo.passRate.toFixed(2),e.percentage=n.body.pageInfo.list[0].passRate):e.$message.error(n.message);case 5:case"end":return t.stop()}}),t)})))()},ChangeDate:function(e){this.startTime=ys(e.startTime).format("MM-DD HH:mm"),this.EndTime=ys(e.endTime).format("MM-DD HH:mm")},courseTimeJudge:function(e,t){var r="";return(new Date).getTime()>new Date(t).getTime()?(r="已结束",r):(new Date).getTime()<new Date(e).getTime()?(r="未开始",r):(new Date).getTime()>new Date(e).getTime()&&(new Date).getTime()<new Date(t).getTime()?(r="进行中",r):void 0}}},gs=vs,_s=(r(3426),c(gs,os,is,!1,null,"598f087e",null)),bs=_s.exports,ws=function(){var e=this,t=e._self._c;return t("div",[e.showaddExam?t("el-dialog",{attrs:{width:"1000px",title:e.title,visible:e.showaddExam,"close-on-click-modal":!1},on:{"update:visible":function(t){e.showaddExam=t},close:e.closeAddDialog}},[t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{ref:"tdlbl_考试名称",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 考试名称 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"name",attrs:{field:{defaultValue:null,elementCanEdit:e.canEdit,elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:"0",elementType:"input",emptyMessage:"请输入考试名称",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"考试名称",propName:"name",propType:"String",textFormatter:"textfield",valueMaxLength:null,valueMinLength:null,model:"vo.name",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_考试说明",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 考试说明 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"introduction",attrs:{field:{defaultValue:null,elementCanEdit:e.canEdit,elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:"0",elementType:"textarea",row:"3",emptyMessage:"请输入考试说明",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"考试说明",propName:"introduction",propType:"String",textFormatter:"textarea",valueMaxLength:null,valueMinLength:null,model:"vo.introduction",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_考试对象",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 考试对象 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("div",[t("el-radio-group",{attrs:{disabled:0===e.canEdit},on:{change:e.khChange},model:{value:e.vo.examerType,callback:function(t){e.$set(e.vo,"examerType",t)},expression:"vo.examerType"}},[t("el-radio",{attrs:{label:1}},[e._v("全部")]),t("el-radio",{attrs:{label:2}},[e._v("部门")]),t("el-radio",{attrs:{label:3}},[e._v("群组")]),t("el-radio",{attrs:{label:4}},[e._v("指定人")])],1)],1)])]),2===e.vo.examerType||3===e.vo.examerType||4===e.vo.examerType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),2===e.vo.examerType?t("span",[e._v("指定部门")]):e._e(),3===e.vo.examerType?t("span",[e._v("指定群组")]):e._e(),4===e.vo.examerType?t("span",[e._v("指定人员")]):e._e()]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[2===e.vo.examerType&&e.isUpdate?[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定部门",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{placeholder:"请选择指定部门","org-level":"2",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds"},model:{value:e.vo.examerName,callback:function(t){e.$set(e.vo,"examerName",t)},expression:"vo.examerName"}})],1)]}}],null,!1,1533252551)}):t("span",[e._v(e._s(e.vo.examerName))])]:e._e(),3===e.vo.examerType&&e.isUpdate?[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定群组",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[3===e.vo.examerType?t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"workgroup",expression:"'workgroup'"}],attrs:{placeholder:"请选择指定群组",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds2"},model:{value:e.vo.examerName,callback:function(t){e.$set(e.vo,"examerName",t)},expression:"vo.examerName"}}):e._e()],1)]}}],null,!1,1002921096)}):t("span",[e._v(e._s(e.vo.examerName))])]:e._e(),4===e.vo.examerType&&e.isUpdate?[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定人员",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[4===e.vo.examerType?t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{placeholder:"请选择指定人员",readonly:"readonly",multiple:"true",type:"textarea",name:"studyId",nametype:"2","root-org-code":e.vo.orgCode},model:{value:e.vo.examerName,callback:function(t){e.$set(e.vo,"examerName",t)},expression:"vo.examerName"}}):e._e()],1)]}}],null,!1,1550134077)}):t("span",[e._v(e._s(e.vo.examerName))])]:e._e()],2)]):e._e(),t("tr",[t("td",{ref:"tdlbl_所用试卷",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 所用试卷 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",class:{choose:1===e.canEdit},attrs:{colspan:"2"}},[1===e.canEdit?t("el-input",{attrs:{readonly:"",placeholder:"请选择所用试卷"},model:{value:e.PaperName,callback:function(t){e.PaperName=t},expression:"PaperName"}},[t("el-button",{attrs:{slot:"append"},on:{click:function(t){return e.chooseExamPaper("选择试卷")}},slot:"append"},[e._v("...")])],1):t("span",[e._v(e._s(e.PaperName))])],1),t("td",{ref:"tdlbl_选择课程",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("选择课程")]),t("td",{staticClass:"el-table__cell tdcont tdw83",class:{choose:1===e.canEdit},attrs:{colspan:"2"}},[1===e.canEdit?t("el-input",{attrs:{readonly:"",placeholder:"请选择课程"},model:{value:e.CourseName,callback:function(t){e.CourseName=t},expression:"CourseName"}},[t("el-button",{attrs:{slot:"append"},on:{click:function(t){return e.chooseLesson("选择课程")}},slot:"append"},[e._v("...")])],1):t("span",[e._v(e._s(e.CourseName))])],1)]),e.isHasBigMannger?t("tr",[t("td",{ref:"tdlbl_批阅人",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v("批阅人")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"批阅人",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{readonly:"true",placeholder:"请选择批阅人"},model:{value:e.Teachervalue,callback:function(t){e.Teachervalue=t},expression:"Teachervalue"}},[t("el-button",{attrs:{slot:"append"},on:{click:e.onclickTeacher},slot:"append"},[e._v("...")])],1)],1)]}}],null,!1,3939612996)}):t("span",[e._v(e._s(e.Teachervalue))])],1)]):e._e(),t("tr",[t("td",{ref:"tdlbl_考试开始时间",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v("开始时间")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("form-item",{ref:"startTime",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:1,elementType:"date",emptyMessage:"请选择开始时间",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"考试开始时间",propName:"startTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd HH:mm:ss",valueMaxLength:null,valueMinLength:null,model:"vo.startTime",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1),t("td",{ref:"tdlbl_考试结束时间",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v("结束时间")]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"2"}},[t("form-item",{ref:"endTime",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:1,elementType:"date",emptyMessage:"请选择结束时间",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"考试结束时间",propName:"endTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd HH:mm:ss",valueMaxLength:null,valueMinLength:null,model:"vo.endTime",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_考试限时",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 考试限时 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"2"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"考试限时",rules:"required|integer|max:3|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"60px","margin-right":"10px"},model:{value:e.vo.examLimit,callback:function(t){e.$set(e.vo,"examLimit",t)},expression:"vo.examLimit"}})],1)]}}],null,!1,3057467763)}):t("span",[e._v(e._s(e.vo.examLimit))]),t("span",[e._v("分钟(限制考试时间,0表示不限制)")])],1),t("td",{ref:"tdlbl_考试次数",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 考试次数 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"2"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"考试次数",rules:"required|integer|max:3|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"60px","margin-right":"10px"},model:{value:e.vo.examTimes,callback:function(t){e.$set(e.vo,"examTimes",t)},expression:"vo.examTimes"}})],1)]}}],null,!1,1760955904)}):t("span",[e._v(e._s(e.vo.examTimes))]),t("span",[e._v("(限制考试次数,0表示不限制)")])],1)]),t("tr",[t("td",{ref:"tdlbl_通过分数",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 通过分数 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"2"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"通过分数",rules:{required:!0,integer:!0,max_value:e.maxGrade,min_value:0}},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"60px","margin-right":"10px"},model:{value:e.vo.passGrade,callback:function(t){e.$set(e.vo,"passGrade",t)},expression:"vo.passGrade"}})],1)]}}],null,!1,824956179)}):t("span",[e._v(e._s(e.vo.passGrade))]),t("span",[e._v("(达到多少算通过,0表示不限制)")])],1),t("td",{ref:"tdlbl_学分奖励",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" 学分奖励 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"2"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"学分奖励",rules:"required|integer|max:3|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"60px","margin-right":"10px"},model:{value:e.vo.credit,callback:function(t){e.$set(e.vo,"credit",t)},expression:"vo.credit"}})],1)]}}],null,!1,2669242874)}):t("span",[e._v(e._s(e.vo.credit))])],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("交卷后可见")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"2"}},[t("el-checkbox-group",{attrs:{disabled:0===e.canEdit},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[t("el-checkbox",{attrs:{label:"1"}},[e._v("分数")]),t("el-checkbox",{attrs:{label:"2"}},[e._v("对错")]),t("el-checkbox",{attrs:{label:"3"}},[e._v("答案")]),t("el-checkbox",{attrs:{label:"4"}},[e._v("解析")])],1)],1),t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),e._v("考试结束后可见")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"2"}},[t("el-checkbox-group",{attrs:{disabled:0===e.canEdit},model:{value:e.checkList1,callback:function(t){e.checkList1=t},expression:"checkList1"}},[t("el-checkbox",{attrs:{label:"5"}},[e._v("分数")]),t("el-checkbox",{attrs:{label:"6"}},[e._v("对错")]),t("el-checkbox",{attrs:{label:"7"}},[e._v("答案")]),t("el-checkbox",{attrs:{label:"8"}},[e._v("解析")])],1)],1)]),t("tr",[t("td",{ref:"tdlbl_是否乱序 ",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("题目是否乱序")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("el-radio-group",{attrs:{disabled:0===e.canEdit},model:{value:e.vo.ismess,callback:function(t){e.$set(e.vo,"ismess",t)},expression:"vo.ismess"}},[t("el-radio",{attrs:{label:0}},[e._v("乱序")]),t("el-radio",{attrs:{label:1}},[e._v("不乱序")])],1)],1)])])]),t("ChooseDialog",{ref:"choosedialogs"})],1)])]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{icon:"el-icon-close",disabled:e.buttondisabled},on:{click:e.closeAddDialog}},[e._v("关 闭")]),1===e.canEdit?[t("el-button",{attrs:{icon:"el-icon-check",disabled:e.buttondisabled},on:{click:function(t){return e.AddNewExam("draft")}}},[e._v("保 存")]),t("el-button",{attrs:{icon:"el-icon-check",disabled:e.buttondisabled,type:"primary"},on:{click:function(t){return e.AddNewExam("submit")}}},[e._v("发 布")])]:[t("el-button",{attrs:{icon:"el-icon-edit",type:"primary"},on:{click:function(t){e.canEdit=1}}},[e._v("修 改")])]],2)],1):e._e(),t("TeacherList",{ref:"TeacherDialog"})],1)},xs=[];function Ls(e){return Ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ls(e)}function Ms(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ms=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Ls(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Ls(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ks(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Ts(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ks(o,n,a,i,s,"next",e)}function s(e){ks(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ys(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(r),!0).forEach((function(t){Ss(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ds(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ss(e,t,r){return(t=Cs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cs(e){var t=js(e,"string");return"symbol"==Ls(t)?t:t+""}function js(e,t){if("object"!=Ls(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ls(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Es=r(5093),Os={components:{ChooseDialog:Xi,TeacherList:zo},props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{loginUser:this.$store.getters.loginUser,vo:null,PaperName:"",checkList:[],checkList1:[],PassStartTime:!1,fullscreenLoading:!1,CourseName:"",canEdit:1,showaddExam:!1,buttondisabled:!1,isHasBigMannger:!1,title:"正式考试",Teachervalue:"",maxGrade:0,isUpdate:!0}},computed:Ys({},ce(["routes"])),watch:{},created:function(){var e=this;this.$bus.on("submitClick",(function(){e.AddNewExam()})),this.$bus.on("updateAddDialog",(function(t,r){e.canEdit=r,e.showaddExam=!0,1===t.type?e.title="正式考试":2===t.type&&(e.title="模拟考试"),e.initFormVo(t)})),this.$bus.on("openexamdialog",(function(t){e.Teachervalue="",e.isHasBigMannger=!1,"1"===t?e.title="正式考试":"2"===t&&(e.title="模拟考试"),e.showaddExam=!0,e.canEdit=1,e.initFormVo()})),this.$bus.$on("chooseTeacher",(function(t){e.vo.piyueId=t.id,e.vo.piyueUser=t.name,e.Teachervalue=t.name}))},beforeDestroy:function(){this.$bus.off("submitClick"),this.$bus.off("choosePaper"),this.$bus.off("openexamdialog"),this.$bus.off("chooseCourse"),this.$bus.off("updateAddDialog")},mounted:function(){var e=this;this.$bus.on("submitClick",(function(){e.AddNewExam()})),this.$bus.on("updateAddDialog",(function(t,r){e.canEdit=r,e.showaddExam=!0,1===t.type?e.title="正式考试":2===t.type&&(e.title="模拟考试"),e.initFormVo(t)})),this.$bus.on("openexamdialog",(function(t){e.Teachervalue="",e.isHasBigMannger=!1,"1"===t?e.title="正式考试":"2"===t&&(e.title="模拟考试"),e.showaddExam=!0,e.canEdit=1,e.initFormVo()})),this.$bus.$on("chooseTeacher",(function(t){e.vo.piyueId=t.id,e.vo.piyueUser=t.name,e.Teachervalue=t.name})),this.$bus.$on("choosePaper",(function(t){e.PaperName=t.name,e.maxGrade=t.totalGrade,e.vo.paperId=t.id,Number(t.typeQaNum)+Number(t.typeCompletionNum)!==0?e.isHasBigMannger=!0:e.isHasBigMannger=!1})),this.$bus.$on("chooseCourse",(function(t){e.CourseName=t.name,e.vo.courseId=t.id,e.vo.passenger.courseName=t.name}))},methods:{onclickTeacher:function(){this.$refs.TeacherDialog.click()},initFormVo:function(e){var t=this;return Ts(Ms().mark((function r(){var n,a;return Ms().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!e){r.next=7;break}return r.next=3,t.$app.getById("/ksgl/exam/getById",e.id);case 3:n=r.sent,"success"===n.code?(t.vo=n.body.vo,t.vo.isnew=!1,t.vo.piyueId&&(t.isHasBigMannger=!0,t.Teachervalue=t.vo.piyueUser),t.PaperName=n.body.vo.passenger.paperName,t.maxGrade=n.body.vo.passenger.totalGrade,t.CourseName=n.body.vo.passenger.courseName,t.DXchoose("show"),t.checkTime()):t.$message({type:"warning",message:n.body.message}),r.next=11;break;case 7:return r.next=9,t.$app.addNew("/ksgl/exam/addNew");case 9:a=r.sent,"success"===a.code?(t.vo=a.body.vo,t.vo.examerType=1,t.vo.type="type=2"===t.$route.meta.params?2:1,t.vo.isnew=!0,t.$forceUpdate()):t.$message({type:"warning",message:a.body.message});case 11:case"end":return r.stop()}}),r)})))()},chooseExamPaper:function(e){this.$refs.choosedialogs.click(e)},chooseLesson:function(e){this.$refs.choosedialogs.click(e)},AddNewExam:function(e){var t=this;if(this.vo.status="draft"===e?0:1,Es(this.vo.startTime)>Es(this.vo.endTime))return this.$message.error("开始时间不能大于结束时间");this.formValidate(Ts(Ms().mark((function e(){var r,n;return Ms().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.vo.piyueUser&&null!==t.vo.piyueUser?t.vo.whetherHaveReview=1:t.vo.whetherHaveReview=0,0!==t.checkList1.length||null!==t.vo.visibleConfig){e.next=5;break}t.$alert("考试结束后可见是必须的","操作提示",{confirmButtonText:"确定",type:"warning"}),e.next=27;break;case 5:if(t.buttondisabled=!0,t.vo.passGrade=parseInt(t.vo.passGrade),t.vo.examLimit=parseInt(t.vo.examLimit),t.vo.examTimes=parseInt(t.vo.examTimes),t.vo.credit=parseInt(t.vo.credit),t.vo.type=parseInt(t.vo.type),!t.vo.isnew){e.next=20;break}return e.next=14,t.DXchoose("add");case 14:return e.next=16,t.$app.insert("/ksgl/exam/insert",t.vo);case 16:r=e.sent,"success"===r.code?(t.buttondisabled=!1,t.$bus.emit("refreshListData"),t.closeAddDialog(),t.$message({type:"success",center:!0,message:r.message,onClose:function(){}})):(t.$bus.emit("refreshListData"),t.buttondisabled=!1,t.$message({type:"warning",center:!0,message:r.message})),e.next=26;break;case 20:return e.next=22,t.DXchoose("add");case 22:return e.next=24,t.$app.update("/ksgl/exam/update",t.vo);case 24:n=e.sent,"success"===n.code?(t.buttondisabled=!1,t.closeAddDialog(),t.$bus.emit("refreshListData"),t.$message({type:"success",center:!0,message:n.message})):(t.$bus.emit("refreshListData"),t.buttondisabled=!1,t.$message({type:"warning",center:!0,message:n.message}));case 26:t.$bus.emit("updateCloums");case 27:case"end":return e.stop()}}),e)})))),this.$bus.emit("refreshListData")},DXchoose:function(e){var t=this;if("add"===e){for(var r=this.checkList.concat(this.checkList1),n="",a=0;a<r.length;a++)n+=r[a]+",";var o=n.substring(0,n.length-1);this.vo.visibleConfig=o}else if("show"===e){this.checkList=[],this.checkList1=[];var i=this.vo.visibleConfig.split(",");i.forEach((function(e){e<=4?t.checkList.push(e):t.checkList1.push(e)}))}},checkTime:function(){var e=new Date,t=new Date(this.vo.startTime);e>t&&(this.PassStartTime=!0)},onSelectSuborgCompleted:function(e,t){var r="",n="";e.forEach((function(e){""!==r&&(r+="、"),r+=e.name,n+=e.id+","})),this.$set(this.vo,"examerId",n.substring(0,n.length-1)),this.$set(this.vo,"examerName",r)},onSelectWorkgroupCompleted:function(e,t){var r="",n="";e.forEach((function(e){""!==r&&(r+="、"),r+=e.name,n+=e.id+","})),this.$set(this.vo,"examerId",n.substring(0,n.length-1)),this.$set(this.vo,"examerName",r)},onSelectStaffCompleted:function(e,t){if("2"===t.nametype){var r="",n="";this.vo.passenger.examerId=e,e.forEach((function(e){""!==r&&(r+="、"),r+=e.name,n+=e.id+","})),this.$set(this.vo,"examerName",r),this.$set(this.vo,"examerId",n.substring(0,n.length-1))}else{var a="",o="";this.vo.passenger.piyueUser=e,e.forEach((function(e){""!==a&&(a+="、"),a+=e.name,o=e.id})),this.$set(this.vo,"piyueUser",a),this.$set(this.vo,"piyueId",o)}},closeAddDialog:function(){this.showaddExam=!1,this.vo=null,this.PaperName="",this.CourseName="",this.checkList=[],this.checkList1=[],this.PassStartTime=!1},khChange:function(){var e=this;this.$set(this.vo,"examerName",null),this.$set(this.vo,"examerId",null),this.vo.passenger.examerId="",this.isUpdate=!1,this.$nextTick((function(){e.isUpdate=!0}))}}},Ps=Os,As=(r(5831),c(Ps,ws,xs,!1,null,"6f8584cc",null)),Ns=As.exports,Hs=function(){var e=this,t=e._self._c;return t("div",[null!==e.examId?t("paperHeader",{attrs:{"exam-id":e.examId}}):e._e(),null!==e.examId?t("data-table",{staticClass:"leftLongTable",attrs:{"module-info":e.moduleInfo,"module-code":e.moduleInfo.moduleCode,"tb-columns":e.tbColumns,"toolbar-btns":e.listpageBtns,"custom-toolbar-btns":e.customToolbarBtns,"on-cell-click":e.onCellClick,"advanced-search":e.advancedSearch,"custom-toolbar-btns-click":e.customToolbarBtnsClick,"on-list-data-before-load":e.onListDataBeforeLoad,"on-list-data-loaded":e.onListDataLoaded}}):e._e()],1)},Is=[],Fs={components:{paperHeader:bs},props:{},data:function(){return{vo:{},startTime:"",EndTime:"",customToolbarBtns:[{name:"全部",value:"",type:"custom_btn"},{name:"未参加",value:"0",type:"custom_btn"},{name:"待批阅",value:"1",type:"custom_btn"},{name:"通过",value:"pass",type:"custom_btn"},{name:"未通过",value:"nopass",type:"custom_btn"}],listpageBtns:[],tbColumns:[{field:"index",width:"45px",valign:"middle",sortable:!1,propType:"",title:"序号",align:"center",searchable:!1},{field:"personName",valign:"middle",width:"100",sortable:!0,title:"姓名",align:"center",searchable:!0},{field:"personDept",valign:"middle",sortable:!0,propType:"String",title:"部门",align:"left",searchable:!0},{field:"grade",width:"120",valign:"middle",sortable:!0,propType:"String",title:"成绩",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!1},{listAdvSearchElement:"date",field:"endTime",width:"150",valign:"middle",sortable:!0,propType:"Short",title:"交卷时间",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!1},{field:"status",width:"120",valign:"middle",sortable:!1,propType:"String",title:"状态 ",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!1}],advancedSearch:{show:!0,optionName:"类型",selectiveType:"radio",option:[{name:"部门",filed:"module",code:"personDept"},{name:"成绩",filed:"module",code:"grade"},{name:"交卷时间",filed:"module",code:"endTime"}]},moduleInfo:{listDataUrl:"/ksgl/examRecord/listdata",moduleCode:"examRecordDeTail"},status:"",ispass:"",id:"",examId:null,cno:0}},computed:{},watch:{$route:{handler:function(){this.$route.query.id&&(this.examId=this.$route.query.id)},deep:!0}},created:function(){console.log("查看详情")},beforeDestroy:function(){},mounted:function(){var e=this;this.$route.query.id&&(this.examId=this.$route.query.id,this.customToolbarBtns=[{no:0,name:"全部",value:"all",type:"custom_btn"},{no:1,name:"未参加",value:"0",type:"custom_btn"},{no:2,name:"待批阅",value:"1",type:"custom_btn"},{no:3,name:"通过",value:"pass",type:"custom_btn"},{no:4,name:"未通过",value:"nopass",type:"custom_btn"}]),this.$bus.on("sendId",(function(t){e.examId=t}))},methods:{onListDataBeforeLoad:function(e,t){t.orderBy="endTime desc",console.log(this.examId),"all"===this.status||""===this.status?t.urlsearch="examId:"+this.examId:"0"===this.status?t.urlsearch="startTime:null;examId:"+this.examId:"1"===this.status?t.urlsearch="status:1;examtimes>0;examId:"+this.examId:"pass"!==this.status&&"nopass"!==this.status||(t.urlsearch="ispass:"+("pass"===this.status?1:0)+";examId:"+this.examId),t.urlsearch+=";orgCode:"+e.loginUser.orgCode},customToolbarBtnsClick:function(e){var t=this;this.status=e.value,0===e.no?this.tbColumns=[{field:"index",width:"45px",valign:"middle",sortable:!1,propType:"",title:"序号",align:"center",searchable:!1},{field:"personName",valign:"middle",width:"100",sortable:!0,title:"姓名",align:"center"},{field:"personDept",valign:"middle",sortable:!0,propType:"String",title:"部门",align:"left",searchable:!0},{field:"grade",width:"120",valign:"middle",sortable:!0,propType:"String",title:"成绩",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!0},{field:"status",width:"120",valign:"middle",sortable:!1,propType:"String",title:"状态 ",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!1},{listAdvSearchElement:"select",field:"endTime",width:"150",valign:"middle",sortable:!0,propType:"Short",title:"交卷时间",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!0}]:1===e.no?this.tbColumns=[{field:"index",width:"45px",valign:"middle",sortable:!1,propType:"",title:"序号",align:"center",searchable:!1},{field:"personName",valign:"middle",width:"100",sortable:!0,title:"姓名",align:"center"},{field:"personDept",valign:"middle",sortable:!0,propType:"String",title:"部门",align:"left",searchable:!0}]:2===e.no?this.tbColumns=[{field:"index",width:"45px",valign:"middle",sortable:!1,propType:"",title:"序号",align:"center",searchable:!1},{field:"personName",valign:"middle",width:"100",sortable:!0,title:"姓名",align:"center"},{field:"personDept",valign:"middle",sortable:!0,propType:"String",title:"部门",align:"left",searchable:!0},{listAdvSearchElement:"select",field:"endTime",width:"150",valign:"middle",sortable:!0,propType:"Short",title:"交卷时间",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!0}]:(3===e.no||4===e.no)&&(this.tbColumns=[{field:"index",width:"45px",valign:"middle",sortable:!1,propType:"",title:"序号",align:"center",searchable:!1},{field:"personName",valign:"middle",width:"100",sortable:!0,title:"姓名",align:"center"},{field:"personDept",valign:"middle",sortable:!0,propType:"String",title:"部门",align:"left",searchable:!0},{field:"grade",width:"120",valign:"middle",sortable:!0,propType:"String",title:"成绩",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!0},{listAdvSearchElement:"select",field:"endTime",width:"150",valign:"middle",sortable:!0,propType:"Short",title:"交卷时间",align:"center",cellStyle:{css:{cursor:"pointer"}},searchable:!0}]),this.$nextTick((function(){t.$bus.emit("refreshListData")}))},onListDataLoaded:function(e,t){console.log("urgent listdata loaded"),t.list.forEach((function(e){e.startTime?1===e.status?e.status="待批阅":0===e.ispass?e.status="未通过":1===e.ispass&&(e.status="通过"):e.status="未参加",e.personDept&&(e.personDept=e.personDept.substr(e.personDept.indexOf("-")+1))}))}}},zs=Fs,Bs=(r(9728),c(zs,Hs,Is,!1,null,"d094c402",null)),Gs=Bs.exports,Rs=function(){var e=this,t=e._self._c;return t("div",[0===e.row.ispublish?t("a",{staticClass:"el-link el-link--default is-underline",staticStyle:{display:"inline-block"},attrs:{title:"编辑"},on:{click:e.updateData}},[e._m(0)]):e._e(),t("a",{staticClass:"el-link el-link--default is-underline",staticStyle:{display:"inline-block"},attrs:{title:"删除"},on:{click:e.deleteData}},[e._m(1)])])},Ws=[function(){var e=this,t=e._self._c;return t("span",{staticClass:"el-link--inner"},[t("i",{staticClass:"el-icon-edit"})])},function(){var e=this,t=e._self._c;return t("span",{staticClass:"el-link--inner"},[t("i",{staticClass:"el-icon-delete"})])}];function Vs(e){return Vs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vs(e)}function Us(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Us=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Vs(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Vs(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function qs(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Xs(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){qs(o,n,a,i,s,"next",e)}function s(e){qs(o,n,a,i,s,"throw",e)}i(void 0)}))}}var Ks={components:{},props:{row:{type:Object,default:function(){return{}}},column:{type:Object,default:function(){return{}}},index:{type:String,default:function(){return"0"}}},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{deleteData:function(){var e=this;this.$confirm("您是否确认删除选择的数据?","确认操作",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Xs(Us().mark((function t(){var r,n;return Us().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.row,t.next=3,e.$app.deleteByIds("/ksgl/paper/delete",[r.id]);case 3:n=t.sent,"success"===n.code?(e.$message({type:"success",message:"删除成功!"}),e.$bus.emit("refreshListData")):e.$message({type:"info",message:n.message});case 5:case"end":return t.stop()}}),t)})))).catch((function(){}))},updateData:function(){var e=this;return Xs(Us().mark((function t(){var r;return Us().wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=e.row,e.$bus.emit("openPaperDialog",{obj:r,type:1});case 2:case"end":return t.stop()}}),t)})))()}}},Js=Ks,Qs=c(Js,Rs,Ws,!1,null,"911737a6",null),Zs=Qs.exports,$s=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{title:"试卷管理",visible:e.dialogVisible,width:"1000px","close-on-click-modal":!1,"before-close":e.closeFuc},on:{"update:visible":function(t){e.dialogVisible=t}}},[1===e.vo.type?t("el-tabs",{staticClass:"height-unset",attrs:{"before-leave":e.beforeLeaveFuc},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"基本信息",name:"first"}},[t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("试卷名称 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"试卷名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:"请输入试卷名称"},model:{value:e.vo.name,callback:function(t){e.$set(e.vo,"name",t)},expression:"vo.name"}})],1)]}}],null,!1,3866165798)})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("试卷分类")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"试卷分类",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{readonly:"true",placeholder:"请选择所属分类"},model:{value:e.categoryValue,callback:function(t){e.categoryValue=t},expression:"categoryValue"}},[t("el-button",{attrs:{slot:"append"},on:{click:e.clickCascader},slot:"append"},[e._v("选择分类")])],1)],1)]}}],null,!1,3388951331)}),t("Cascader",{ref:"cascader",attrs:{"b-type":2,title:"试卷分类"}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("试卷类型")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("span",[e._v(e._s(1===e.vo.type?"固定试卷":"随机试卷"))])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("题型分值")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("单选题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeChoiceNum,callback:function(t){e.$set(e.vo,"typeChoiceNum",e._n(t))},expression:"vo.typeChoiceNum"}})],1)]}}],null,!1,2521854178)}),t("span",[e._v(" 个,")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeChoiceGredit,callback:function(t){e.$set(e.vo,"typeChoiceGredit",e._n(t))},expression:"vo.typeChoiceGredit"}})],1)]}}],null,!1,4229401309)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("多选题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCheckboxNum,callback:function(t){e.$set(e.vo,"typeCheckboxNum",e._n(t))},expression:"vo.typeCheckboxNum"}})],1)]}}],null,!1,1886326170)}),t("span",[e._v(" 个, ")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCheckboxGredit,callback:function(t){e.$set(e.vo,"typeCheckboxGredit",e._n(t))},expression:"vo.typeCheckboxGredit"}})],1)]}}],null,!1,3910920869)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("判断题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeGudgeNum,callback:function(t){e.$set(e.vo,"typeGudgeNum",e._n(t))},expression:"vo.typeGudgeNum"}})],1)]}}],null,!1,2561326269)}),t("span",[e._v(" 个,")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeGudgeGredit,callback:function(t){e.$set(e.vo,"typeGudgeGredit",e._n(t))},expression:"vo.typeGudgeGredit"}})],1)]}}],null,!1,1972581282)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("填空题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCompletionNum,callback:function(t){e.$set(e.vo,"typeCompletionNum",e._n(t))},expression:"vo.typeCompletionNum"}})],1)]}}],null,!1,2977140237)}),t("span",[e._v(" 个,")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCompletionGredit,callback:function(t){e.$set(e.vo,"typeCompletionGredit",e._n(t))},expression:"vo.typeCompletionGredit"}})],1)]}}],null,!1,2526112018)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("问答题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeQaNum,callback:function(t){e.$set(e.vo,"typeQaNum",e._n(t))},expression:"vo.typeQaNum"}})],1)]}}],null,!1,3266266905)}),t("span",[e._v(" 个, ")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeQaGredit,callback:function(t){e.$set(e.vo,"typeQaGredit",e._n(t))},expression:"vo.typeQaGredit"}})],1)]}}],null,!1,1456823430)}),t("span",[e._v(" 分")])],2)])]),2===e.vo.type?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("选择题库")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"选择题库",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:"请选择题库"},model:{value:e.vo.bankNames,callback:function(t){e.$set(e.vo,"bankNames",t)},expression:"vo.bankNames"}},[t("el-button",{attrs:{slot:"append"},on:{click:function(t){return e.chooseDialog("2")}},slot:"append"},[e._v("选择题库")])],1)],1)]}}],null,!1,4170131838)})],1)]):e._e()])])])])])],1),t("el-tab-pane",{attrs:{label:"试卷信息",name:"second"}},[t("el-row",{staticStyle:{"margin-bottom":"10px",display:"flex"}},[t("el-input",{staticStyle:{"margin-right":"10px"},attrs:{placeholder:"搜索...",clear:"searchBar"},model:{value:e.outSearchText,callback:function(t){e.outSearchText=t},expression:"outSearchText"}},[t("el-button",{staticStyle:{width:"30px"},attrs:{slot:"append",icon:"el-icon-search"},slot:"append"})],1),1===e.vo.type?t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.chooseDialog("1")}}},[e._v("添加试题")]):e._e(),1===e.vo.type?t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.chooseDialog("3")}}},[e._v("随机选择")]):e._e()],1),t("div",{staticStyle:{"margin-bottom":"10px",display:"flex","align-items":"center","justify-content":"space-between"}},[t("el-radio-group",{model:{value:e.tabPosition,callback:function(t){e.tabPosition=t},expression:"tabPosition"}},[t("el-radio-button",{attrs:{label:"all"}},[e._v("全部("+e._s(e.tableData.length)+")")]),t("el-radio-button",{attrs:{label:"type-1"}},[e._v("单选题("+e._s(e.typeNum1)+")")]),t("el-radio-button",{attrs:{label:"type-2"}},[e._v("多选题("+e._s(e.typeNum2)+")")]),t("el-radio-button",{attrs:{label:"type-3"}},[e._v("判断题("+e._s(e.typeNum3)+")")]),t("el-radio-button",{attrs:{label:"type-4"}},[e._v("填空题("+e._s(e.typeNum4)+")")]),t("el-radio-button",{attrs:{label:"type-5"}},[e._v("问答题("+e._s(e.typeNum5)+")")])],1),t("div",["all"===e.tabPosition?t("span",[e._v("总分 "+e._s(e.typeNumSum)+" 分")]):e._e(),"type-1"===e.tabPosition?t("span",[e._v("总分 "+e._s(e.typeNumSum1)+" 分")]):e._e(),"type-2"===e.tabPosition?t("span",[e._v("总分 "+e._s(e.typeNumSum2)+" 分")]):e._e(),"type-3"===e.tabPosition?t("span",[e._v("总分 "+e._s(e.typeNumSum3)+" 分")]):e._e(),"type-4"===e.tabPosition?t("span",[e._v("总分 "+e._s(e.typeNumSum4)+" 分")]):e._e(),"type-5"===e.tabPosition?t("span",[e._v("总分 "+e._s(e.typeNumSum5)+" 分")]):e._e()])],1),1===e.vo.type?t("el-form",{staticClass:"elForm",staticStyle:{height:"406px"}},[t("el-table",{ref:"elTable",attrs:{data:e.tableDataFilter.filter((function(t){return!e.outSearchText||t.name.includes(e.outSearchText)})),border:"","tooltip-effect":"dark"},model:{value:e.tableDataFilter,callback:function(t){e.tableDataFilter=t},expression:"tableDataFilter"}},[t("el-table-column",{attrs:{type:"index",label:"序号",width:"50",align:"center"}}),t("el-table-column",{attrs:{label:"题目",align:"left"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.content||r.row.passenger.subjectManage.content))])]}}],null,!1,3497278225)}),e.isGetById?t("el-table-column",{attrs:{props:"passenger.subjectManage.type",label:"题型",width:"100",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[1===r.row.type?t("span",[e._v("单选题")]):e._e(),2===r.row.type?t("span",[e._v("多选题")]):e._e(),3===r.row.type?t("span",[e._v("判断题")]):e._e(),4===r.row.type?t("span",[e._v("填空题")]):e._e(),5===r.row.type?t("span",[e._v("问答题")]):e._e()]}}],null,!1,2049333141)}):e._e(),e.isGetById?e._e():t("el-table-column",{attrs:{props:"type",label:"题型",width:"100",align:"center","column-key":"type"},scopedSlots:e._u([{key:"default",fn:function(r){return[1===r.row.type?t("span",[e._v("单选题")]):e._e(),2===r.row.type?t("span",[e._v("多选题")]):e._e(),3===r.row.type?t("span",[e._v("判断题")]):e._e(),4===r.row.type?t("span",[e._v("填空题")]):e._e(),5===r.row.type?t("span",[e._v("问答题")]):e._e()]}}],null,!1,582017845)}),t("el-table-column",{attrs:{label:"分值",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[1===r.row.type?t("el-input-number",{staticStyle:{width:"130px"},attrs:{min:1},model:{value:r.row.grade,callback:function(t){e.$set(r.row,"grade",t)},expression:"scope.row.grade"}}):e._e(),2===r.row.type?t("el-input-number",{staticStyle:{width:"130px"},attrs:{min:1},model:{value:r.row.grade,callback:function(t){e.$set(r.row,"grade",t)},expression:"scope.row.grade"}}):e._e(),3===r.row.type?t("el-input-number",{staticStyle:{width:"130px"},attrs:{min:1},model:{value:r.row.grade,callback:function(t){e.$set(r.row,"grade",t)},expression:"scope.row.grade"}}):e._e(),4===r.row.type?t("el-input-number",{staticStyle:{width:"130px"},attrs:{min:1},model:{value:r.row.grade,callback:function(t){e.$set(r.row,"grade",t)},expression:"scope.row.grade"}}):e._e(),5===r.row.type?t("el-input-number",{staticStyle:{width:"130px"},attrs:{min:1},model:{value:r.row.grade,callback:function(t){e.$set(r.row,"grade",t)},expression:"scope.row.grade"}}):e._e()]}}],null,!1,706969841)}),t("el-table-column",{attrs:{label:"操作",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},attrs:{icon:"el-icon-delete","font-size":"20px"},on:{click:function(t){return e.delChecked(r.$index,r.row)}}})]}}],null,!1,433972717)})],1)],1):e._e()],1)],1):e._e(),2===e.vo.type?t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("试卷名称 ")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"试卷名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:"请输入试卷名称"},model:{value:e.vo.name,callback:function(t){e.$set(e.vo,"name",t)},expression:"vo.name"}})],1)]}}],null,!1,3866165798)})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("试卷分类")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"试卷分类",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{readonly:"true",placeholder:"请选择所属分类"},model:{value:e.categoryValue,callback:function(t){e.categoryValue=t},expression:"categoryValue"}},[t("el-button",{attrs:{slot:"append"},on:{click:e.clickCascader},slot:"append"},[e._v("选择分类")])],1)],1)]}}],null,!1,3388951331)}),t("Cascader",{ref:"cascader",attrs:{"b-type":2,title:"试卷分类"}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("试卷类型")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("span",[e._v(e._s(1===e.vo.type?"固定试卷":"随机试卷"))])])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("题型分值")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("单选题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeChoiceNum,callback:function(t){e.$set(e.vo,"typeChoiceNum",e._n(t))},expression:"vo.typeChoiceNum"}})],1)]}}],null,!1,2521854178)}),t("span",[e._v(" 个,")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeChoiceGredit,callback:function(t){e.$set(e.vo,"typeChoiceGredit",e._n(t))},expression:"vo.typeChoiceGredit"}})],1)]}}],null,!1,4229401309)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("多选题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCheckboxNum,callback:function(t){e.$set(e.vo,"typeCheckboxNum",e._n(t))},expression:"vo.typeCheckboxNum"}})],1)]}}],null,!1,1886326170)}),t("span",[e._v(" 个, ")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCheckboxGredit,callback:function(t){e.$set(e.vo,"typeCheckboxGredit",e._n(t))},expression:"vo.typeCheckboxGredit"}})],1)]}}],null,!1,3910920869)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("判断题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeGudgeNum,callback:function(t){e.$set(e.vo,"typeGudgeNum",e._n(t))},expression:"vo.typeGudgeNum"}})],1)]}}],null,!1,2561326269)}),t("span",[e._v(" 个,")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeGudgeGredit,callback:function(t){e.$set(e.vo,"typeGudgeGredit",e._n(t))},expression:"vo.typeGudgeGredit"}})],1)]}}],null,!1,1972581282)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("填空题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCompletionNum,callback:function(t){e.$set(e.vo,"typeCompletionNum",e._n(t))},expression:"vo.typeCompletionNum"}})],1)]}}],null,!1,2977140237)}),t("span",[e._v(" 个,")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeCompletionGredit,callback:function(t){e.$set(e.vo,"typeCompletionGredit",e._n(t))},expression:"vo.typeCompletionGredit"}})],1)]}}],null,!1,2526112018)}),t("span",[e._v(" 分")])],2),t("div",{staticClass:"tifen clearfix"},[t("span",[e._v("问答题")]),2===e.vo.type?[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型数量",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeQaNum,callback:function(t){e.$set(e.vo,"typeQaNum",e._n(t))},expression:"vo.typeQaNum"}})],1)]}}],null,!1,3266266905)}),t("span",[e._v(" 个, ")])]:e._e(),t("span",[e._v("每题")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题型分值",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{"οninput":"value=value.replace(/[^0-9]/g,'')",placeholder:"0"},model:{value:e.vo.typeQaGredit,callback:function(t){e.$set(e.vo,"typeQaGredit",e._n(t))},expression:"vo.typeQaGredit"}})],1)]}}],null,!1,1456823430)}),t("span",[e._v(" 分")])],2)])]),2===e.vo.type?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("选择题库")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"选择题库",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:"请选择题库"},model:{value:e.vo.bankNames,callback:function(t){e.$set(e.vo,"bankNames",t)},expression:"vo.bankNames"}},[t("el-button",{attrs:{slot:"append"},on:{click:function(t){return e.chooseDialog("2")}},slot:"append"},[e._v("选择题库")])],1)],1)]}}],null,!1,4170131838)})],1)]):e._e()])])])])]):e._e(),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{plain:"",icon:"el-icon-close"},on:{click:function(t){return e.closeFuc()}}},[e._v("关 闭")]),2===e.vo.type?t("el-button",{attrs:{plain:"",icon:"el-icon-check"},on:{click:function(t){return e.clickSubmit("0")}}},[e._v("保 存")]):e._e(),2===e.vo.type?t("el-button",{attrs:{type:"primary",icon:"el-icon-check"},on:{click:function(t){return e.clickSubmit("1")}}},[e._v("发 布")]):e._e(),"first"===e.activeName&&1===e.vo.type?t("el-button",{attrs:{type:"primary",icon:"el-icon-arrow-right"},on:{click:function(t){return e.beforeLeaveFuc()}}},[e._v("下一步")]):e._e(),"first"!==e.activeName&&1===e.vo.type?t("el-button",{attrs:{plain:"",icon:"el-icon-arrow-left"},on:{click:function(t){e.activeName="first"}}},[e._v("上一步")]):e._e(),"first"!==e.activeName&&1===e.vo.type?t("el-button",{attrs:{plain:"",icon:"el-icon-check"},on:{click:function(t){return e.clickSubmit("0")}}},[e._v("保 存")]):e._e(),"first"!==e.activeName&&1===e.vo.type?t("el-button",{attrs:{type:"primary",icon:"el-icon-check"},on:{click:function(t){return e.clickSubmit("1")}}},[e._v("发 布")]):e._e()],1)],1),t("ChooseSubject",{ref:"chooseSub",attrs:{"dia-type":e.diaType,vo:e.vo}}),t("ChooseTree",{ref:"chooseTree",attrs:{"dia-type":e.diaType}})],1)},el=[],tl=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{width:"1100px",title:"选择题库","close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":!0,visible:e.outerVisible},on:{"update:visible":function(t){e.outerVisible=t}}},[t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{icon:"el-icon-close"},on:{click:function(t){e.outerVisible=!1}}},[e._v("取 消")])],1),t("el-row",{staticStyle:{"margin-bottom":"10px"}},[t("el-col",{attrs:{span:22}},[t("el-input",{attrs:{placeholder:"搜索...",clear:"searchBar"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearchTextOut.apply(null,arguments)}},model:{value:e.outSearchText,callback:function(t){e.outSearchText=t},expression:"outSearchText"}},[t("el-button",{staticStyle:{width:"30px"},attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.doSearchTextOut.apply(null,arguments)}},slot:"append"})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:2}},["3"===e.diaType?t("el-button",{attrs:{plain:"",icon:"el-icon-check"},on:{click:function(t){return e.submitClick()}}},[e._v("选择")]):e._e(),"2"===e.diaType?t("el-button",{attrs:{plain:"",icon:"el-icon-check"},on:{click:function(t){return e.xuanzeClick()}}},[e._v("选择")]):e._e()],1)],1),"2"===e.diaType&&e.multipleSelection.length>0?t("p",{staticStyle:{margin:"0","line-height":"30px"}},[e._v(" 共选题库 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.multipleSelection.length))]),e._v(" 个, "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.num1))]),e._v(" 道单选题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.num2))]),e._v(" 道多选题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.num3))]),e._v(" 道判断题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.num4))]),e._v(" 道填空题、 "),t("span",{staticClass:"spanRed"},[e._v(e._s(e.num5))]),e._v(" 道问答题 ")]):e._e(),"2"===e.diaType?t("data-table",{attrs:{mode:"dialog","module-info":e.moduleInfo,"tb-columns":e.tbColumns,"on-list-data-before-load":e.onListDataBeforeLoad,"toolbar-btns":e.listpageBtns,"on-cell-click":e.handleCellClick,"on-list-data-loaded":e.onListDataLoaded,"on-selected-rows-change":e.handleSelectionChangeAuto}}):e._e(),"3"===e.diaType?t("data-table",{attrs:{mode:"dialog","on-list-data-before-load":e.onListDataBeforeLoad,"module-info":e.moduleInfo,"tb-columns":e.tbColumns,"toolbar-btns":e.listpageBtns,"on-cell-click":e.handleCellClick,"on-list-data-loaded":e.onListDataLoaded,"on-selected-rows-change":e.onSelectedRowsChange}}):e._e()],1)],1)},rl=[];function nl(e){return nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nl(e)}function al(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */al=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==nl(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(nl(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ol(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function il(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ol(o,n,a,i,s,"next",e)}function s(e){ol(o,n,a,i,s,"throw",e)}i(void 0)}))}}var sl={components:{},props:{diaType:{type:String,default:function(){return""}},vo:{type:Object,default:function(){return{}}}},data:function(){return{outerVisible:!1,dialogFormVisible:!1,multipleSelection:[],outSearchText:"",checkedList:[],checkedIds:[],tikuList:[],innerAutoList:null,suijitkname:null,index:null,moduleInfo:{formTemplate:"vwSubjectBankType",moduleCode:"vwSubjectBankType",listDataUrl:"ksgl/vwSubjectBankType/listdata",listDefaultOrderBy:"",winWidth:800,winHeight:600},tbColumns:[{field:"state",checkbox:!0,width:"45px"},{field:"name",title:"题库名称",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0},{field:"subNum1",title:"单选题",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"subNum2",title:"多选题",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"subNum3",title:"判断题",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"subNum4",title:"填空题",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"subNum5",title:"问答题",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"subNum",title:"试题总数",width:"110px",align:"center",valign:"middle",sortable:!0},{field:"tname",title:"题库分类",width:"110px",align:"center",valign:"middle",sortable:!0}],num1:"",num2:"",num3:"",num4:"",num5:""}},computed:{},watch:function(){},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{click:function(e){this.outerVisible=!0,this.index=e},onListDataBeforeLoad:function(e,t){t.urlsearch="orgCode:"+e.loginUser.orgCode+";status:1",t.orderBy="createTime desc"},onListDataLoaded:function(e,t){var r=[];t.list.map((function(e){e.subNum>0&&r.push(e)})),t.list=r,console.log(" listdata loaded")},handleSelectionChangeAuto:function(e){var t=this;this.num1=0,this.num2=0,this.num3=0,this.num4=0,this.num5=0,console.log(e),this.multipleSelection=e,this.innerSelectionAutoString=[],this.innerSelectionAutoName=[],this.multipleSelection.forEach((function(e){t.innerSelectionAutoString.push(e.id),t.innerSelectionAutoName.push(e.name)})),this.innerAutoList=this.innerSelectionAutoString.toString(),this.suijitkname=this.innerSelectionAutoName.toString(),this.innerSelectionAutoObject={ids:this.innerSelectionAutoString.toString(),names:this.innerSelectionAutoName.toString()},this.multipleSelection.map((function(e){t.num1+=parseInt(e.subNum1),t.num2+=parseInt(e.subNum2),t.num3+=parseInt(e.subNum3),t.num4+=parseInt(e.subNum4),t.num5+=parseInt(e.subNum5)}))},onSelectedRowsChange:function(e){var t=this;this.selectedRows=e,this.selectString=[],this.selectedRows.forEach((function(e){t.selectString.push(e.id)})),this.selectString=this.selectString.toString(),this.checkedList=this.selectString,this.tikuList=this.selectedRows},xuanzeClick:function(){var e=this;return il(al().mark((function t(){return al().wrap((function(t){while(1)switch(t.prev=t.next){case 0:"2"===e.diaType?e.vo.typeChoiceNum>e.num1?e.$message.error("所选题库中单选题数量不足,请重新选择!"):e.vo.typeCheckboxNum>e.num2?e.$message.error("所选题库中多选题数量不足,请重新选择!"):e.vo.typeGudgeNum>e.num3?e.$message.error("所选题库中判断题数量不足,请重新选择!"):e.vo.typeCompletionNum>e.num4?e.$message.error("所选题库中填空题数量不足,请重新选择!"):e.vo.typeQaNum>e.num5?e.$message.error("所选题库中问答题数量不足,请重新选择!"):(e.outerVisible=!1,e.selectNum1="",e.$bus.emit("autoChooseClose",{obj:e.innerAutoList,names:e.suijitkname,selectObj:e.multipleSelection})):e.checkedIds=e.checkedList;case 1:case"end":return t.stop()}}),t)})))()},doSearchTextOut:function(){this.$bus.emit("searchListData",this.outSearchText,"or","dialog")},submitClick:function(){var e=this;return il(al().mark((function t(){var r,n,a,o,i,s,l,c;return al().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.checkedList.length){t.next=3;break}return e.$message.error("请选择题库!"),t.abrupt("return",!1);case 3:return e.outerVisible=!1,r=[],n=0,a=0,o=0,i=0,s=0,e.tikuList.forEach((function(e){n+=e.subNum1,a+=e.subNum2,o+=e.subNum3,i+=e.subNum4,s+=e.subNum5})),r.push(n,a,o,i,s),l={bankIds:e.checkedList,counts:r.toString()},t.next=15,e.$app.listdata("ksgl/subjectManage/queryRand",l);case 15:c=t.sent,"success"===c.code?e.$bus.emit("innerSelection",c.body.listdata):e.$message.error(c.message);case 17:case"end":return t.stop()}}),t)})))()}}},ll=sl,cl=(r(7987),c(ll,tl,rl,!1,null,"29d3663c",null)),ul=cl.exports;function dl(e){return dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dl(e)}function pl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */pl=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==dl(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(dl(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function hl(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function fl(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){hl(o,n,a,i,s,"next",e)}function s(e){hl(o,n,a,i,s,"throw",e)}i(void 0)}))}}var ml={components:{Cascader:Te,ChooseSubject:ul,ChooseTree:Zo},props:{},data:function(){return{radio:1,activeName:"first",dialogVisible:!1,isGetById:!1,isShow:!0,categoryValue:"",categoryId:"",diaType:"",outSearchText:"",tableData:[],closeInner:!1,autoClose:!1,loading:!1,vo:{type:null},suijitkNameValue:"",suijitkidValue:"",typeNum1:0,typeNum2:0,typeNum3:0,typeNum4:0,typeNum5:0,typeNumSum:0,tabPosition:"all",tableDataFilter:[],typeNumSum1:0,typeNumSum2:0,typeNumSum3:0,typeNumSum4:0,typeNumSum5:0,hasNull:0}},computed:{},watch:{tableData:{handler:function(e,t){if(this.tabPosition.split("-")[1]){var r=parseInt(this.tabPosition.split("-")[1]);this.tableDataFilter=this.tableData.filter((function(e,t){return e.type===r}))}else this.tableDataFilter=this.tableData;this.tipNum()},deep:!0},tabPosition:{handler:function(e,t){if(e.split("-")[1]){var r=parseInt(e.split("-")[1]);this.tableDataFilter=this.tableData.filter((function(e,t){return e.type===r}))}else this.tableDataFilter=this.tableData;this.tipNum()},deep:!0}},created:function(){var e=this;this.$bus.on("openPaperDialog",(function(t){e.openPaperDialog(),e.paperGetbyId(t)}))},beforeDestroy:function(){this.$bus.off("openPaperDialog",this.openPaperDialog)},mounted:function(){var e=this;this.$bus.$on("innerSelection",(function(t){console.log(t,"选择的题"),e.tableData.length>0?t.forEach((function(t){var r=e.tableData.every((function(r){return e.isGetById?(void 0!==r.passenger&&void 0!==r.passenger.subjectManage?r.passenger.subjectManage.id:r.id)!==t.id:r.id!==t.id}));r&&(e.$set(t,"grade",parseInt(JSON.parse(JSON.stringify(1===t.type?e.vo.typeChoiceGredit:2===t.type?e.vo.typeCheckboxGredit:3===t.type?e.vo.typeGudgeGredit:4===t.type?e.vo.typeCompletionGredit:e.vo.typeQaGredit)))),e.tableData.push(t),e.tableData.sort(e.SortData("type")))})):(t.forEach((function(t){e.$set(t,"grade",parseInt(JSON.parse(JSON.stringify(1===t.type?e.vo.typeChoiceGredit:2===t.type?e.vo.typeCheckboxGredit:3===t.type?e.vo.typeGudgeGredit:4===t.type?e.vo.typeCompletionGredit:e.vo.typeQaGredit))))})),e.tableData=t,e.tableData.sort(e.SortData("type")))})),this.$bus.$on("autoChooseClose",(function(t){e.vo.bankNames=t.names,e.vo.bankIds=t.obj,console.log(e.tableDataAuto,t)})),this.$bus.$on("sureclick",(function(t){e.categoryValue=t.name,e.vo.categoryId=t.id,e.vo.categoryName=t.name})),this.$bus.$on("examNum",(function(t){e.Examresultobj=t}))},methods:{openPaperDialog:function(){this.dialogVisible=!0},paperGetbyId:function(e){var t=this;return fl(pl().mark((function r(){var n;return pl().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!e||1!==e.type){r.next=8;break}return t.isGetById=!0,r.next=4,t.$app.getById("ksgl/paper/getById",e.obj.id);case 4:n=r.sent,"success"===n.code?(t.vo=n.body.vo,t.vo.edit=1,1===t.vo.type&&(t.tableData=t.vo.passenger.paperTypePerson,t.tableData=t.vo.passenger.paperTypePerson.map((function(e){return e.type=e.passenger.subjectManage.type,e})),t.tableDataFilter=t.tableData),t.categoryValue=t.vo.passenger.category.fullName.replaceAll("-","/")):t.$message.error(n.message),r.next=10;break;case 8:t.isGetById=!1,t.initFormVo(e.testType);case 10:case"end":return r.stop()}}),r)})))()},tipNum:function(){var e=this;this.hasNull=0,this.typeNum1=0,this.typeNum2=0,this.typeNum3=0,this.typeNum4=0,this.typeNum5=0,this.typeNumSum=0,this.typeNumSum1=0,this.typeNumSum2=0,this.typeNumSum3=0,this.typeNumSum4=0,this.typeNumSum5=0,this.tableData.forEach((function(t){t.grade||e.hasNull++,1===t.type?(e.typeNum1++,e.typeNumSum1+=t.grade?t.grade:0,e.typeNumSum+=t.grade?t.grade:0):2===t.type?(e.typeNum2++,e.typeNumSum2+=t.grade?t.grade:0,e.typeNumSum+=t.grade?t.grade:0):3===t.type?(e.typeNum3++,e.typeNumSum3+=t.grade?t.grade:0,e.typeNumSum+=t.grade?t.grade:0):4===t.type?(e.typeNum4++,e.typeNumSum4+=t.grade?t.grade:0,e.typeNumSum+=t.grade?t.grade:0):(e.typeNum5++,e.typeNumSum5+=t.grade?t.grade:0,e.typeNumSum+=t.grade?t.grade:0)})),this.vo.typeChoiceNum=this.typeNum1,this.vo.typeCheckboxNum=this.typeNum2,this.vo.typeGudgeNum=this.typeNum3,this.vo.typeCompletionNum=this.typeNum4,this.vo.typeQaNum=this.typeNum5,this.vo.totalGrade=this.typeNumSum},handleClick:function(e,t){return!1},beforeLeaveFuc:function(e,t){return this.clickChooseSub(e,t)},closeFuc:function(){this.categoryValue=null,this.vo.categoryId=null,this.activeName="first",this.tableData=[],this.tabPosition="all",this.tableDataFilter=[],this.tableDataAuto=[],this.dialogVisible=!1,this.typeNum1=0,this.typeNum2=0,this.typeNum3=0,this.typeNum4=0,this.typeNum5=0,this.typeNumSum=0,this.typeNumSum1=0,this.typeNumSum2=0,this.typeNumSum3=0,this.typeNumSum4=0,this.typeNumSum5=0},initFormVo:function(e){var t=this;return fl(pl().mark((function r(){var n;return pl().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,t.$app.addNew("/ksgl/paper/addNew");case 2:n=r.sent,"success"===n.code?(t.vo=n.body.vo,t.vo.type=e,t.vo.edit=0,t.vo.passenger.paperTypePerson=[]):t.$message({type:"warning",message:n.body.message});case 4:case"end":return r.stop()}}),r)})))()},clickSubmit:function(e){var t=this,r=this;r.formValidate((function(){if(1===t.vo.type&&t.hasNull>0)t.$message.warning("试题分数不能为空");else{if(r.loading=!0,"2"!==r.diaType)r.vo.passenger.paperTypePerson=r.tableData.map((function(e,t){return{name:e.name,type:e.type,subjectId:e.subjectId||e.id,orderNo:t+1001,paperId:r.vo.id,grade:e.grade}})),r.vo.subjectNum=r.tableData.length;else if("2"===r.diaType){r.vo.passenger.paperTypePerson=[];for(var n=1;n<6;n++){var a={bankId:r.vo.bankIds,paperId:r.vo.id,type:n,typeNum:parseInt(1===n?r.vo.typeChoiceNum:2===n?r.vo.typeCheckboxNum:3===n?r.vo.typeGudgeNum:4===n?r.vo.typeCompletionNum:r.vo.typeQaNum)};r.vo.passenger.paperTypePerson.push(a)}r.vo.subjectNum=parseInt(r.vo.typeChoiceNum)+parseInt(r.vo.typeCheckboxNum)+parseInt(r.vo.typeGudgeNum)+parseInt(r.vo.typeCompletionNum)+parseInt(r.vo.typeQaNum)}"1"===e?r.vo.ispublish=1:"0"===e&&(r.vo.ispublish=0),r.vo.status=1,1===r.vo.edit?r.$http({method:"PUT",data:r.vo,url:"ksgl/paper/update"}).then((function(e){r.loading=!1,"success"===e.code&&(r.closeFuc(),r.$message.success(e.message),t.$bus.emit("refreshListData"))})):r.$http({method:"POST",data:r.vo,url:"ksgl/paper/insert"}).then((function(e){r.loading=!1,"success"===e.code&&(r.closeFuc(),r.$message.success(e.message),t.$bus.emit("refreshListData"))}))}}))},clickCascader:function(){this.$refs.cascader.click()},delChecked:function(e,t){var r=this;this.tableDataFilter.forEach((function(n){if(n.id===t.id)return r.tableDataFilter.splice(e,1),r.$message.success("删除成功!"),!1}));var n=this.tableData.findIndex((function(e,r){return e.id===t.id}));n>-1&&this.tableData.splice(n,1)},chooseDialog:function(e){"1"===e?(this.diaType="1",this.$refs.chooseTree.click()):"2"===e?(this.diaType="2",this.isTixing("random")?this.$refs.chooseSub.click():this.$message.error("请先填写题型数量,题型分值,分值需大于0!")):"3"===e&&(this.diaType="3",this.$refs.chooseSub.click())},clickChooseSub:function(e,t){var r=this,n=new Promise((function(t,n){"second"===e||void 0===e?r.vo.name?r.categoryValue?r.isTixing()?(r.activeName="second",t()):(r.$message.error("请填写题型分值,分值需大于0!"),n()):(r.$message.error("请选择试卷分类"),n()):(r.$message.error("请输入试卷名称"),n()):(r.activeName="first",t())}));return n},isTixing:function(e){var t=!1;return e?null!==this.vo.typeChoiceGredit&&null!==this.vo.typeCheckboxGredit&&null!==this.vo.typeGudgeGredit&&null!==this.vo.typeCompletionGredit&&null!==this.vo.typeQaGredit&&null!==this.vo.typeChoiceNum&&null!==this.vo.typeCheckboxNum&&null!==this.vo.typeGudgeNum&&null!==this.vo.typeCompletionNum&&null!==this.vo.typeQaNum&&(t=!0):this.vo.typeChoiceGredit&&this.vo.typeCheckboxGredit&&this.vo.typeGudgeGredit&&this.vo.typeCompletionGredit&&this.vo.typeQaGredit&&(t=!0),t},SortData:function(e){return function(t,r){var n=t[e],a=r[e];return n-a}}}},yl=ml,vl=(r(3813),c(yl,$s,el,!1,null,"55801308",null)),gl=vl.exports,_l=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{background:"#fff"}},[t("BlockFrame",{attrs:{header:{title:"我的学习",icon:e.appletData.icon,more:!1}}},[t("div",{staticClass:"contain"},[t("div",{staticClass:"row-box",staticStyle:{"margin-bottom":"9px"}},[t("div",{staticClass:"item",staticStyle:{background:"#EFF9F4","margin-right":"10px"},on:{click:function(t){return e.gotoPages("xyzx_wdkc")}}},[t("div",{staticClass:"centery"},[t("div",{staticClass:"icon-box",staticStyle:{background:"#D2F1E2"}},[t("svg",{staticClass:"svg-icon svg-icon-font",staticStyle:{width:"18px",height:"17px"},attrs:{"ria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-ksgl_index1"}})])])]),t("div",{staticClass:"center"},[t("span",{staticClass:"title2"},[e._v("学习课程")]),null!==e.tj1?t("span",{staticClass:"title1",staticStyle:{color:"#0EA04D"}},[e._v(e._s(null===e.tj2?0:e.tj2)+" 个")]):e._e()])]),t("div",{staticClass:"item",staticStyle:{background:"#FDF5EC"},on:{click:function(t){return e.gotoPages("ksglyiwancheng")}}},[t("div",{staticClass:"centery"},[t("div",{staticClass:"icon-box",staticStyle:{background:"#F5E5D3"}},[t("svg",{staticClass:"svg-icon svg-icon-fo5rent",staticStyle:{width:"18px",height:"17px"},attrs:{"ria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-ksgl_index2"}})])])]),t("div",{staticClass:"center"},[t("span",{staticClass:"title2"},[e._v("参加考试")]),null!==e.tj1?t("span",{staticClass:"title1",staticStyle:{color:"#EA7336"}},[e._v(e._s(null===e.tj1.examFinishNum?0:e.tj1.examFinishNum)+" 次")]):e._e()])])]),t("div",{staticClass:"row-box",staticStyle:{"margin-bottom":"9px"}},[t("div",{staticClass:"item",staticStyle:{background:"#EFF2F9","margin-right":"10px"},on:{click:function(t){return e.gotoPages("xyzx_wdxs")}}},[t("div",{staticClass:"centery"},[t("div",{staticClass:"icon-box",staticStyle:{background:"#DAE3F7"}},[t("svg",{staticClass:"svg-icon svg-icon-font",staticStyle:{width:"18px",height:"17px"},attrs:{"ria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-ksgl_index3"}})])])]),t("div",{staticClass:"center"},[t("span",{staticClass:"title2"},[e._v("学习时长")]),null!==e.tj1?t("span",{staticClass:"title1",staticStyle:{color:"#5094F2"}},[e._v(e._s(null===e.tj1.studyRecords?0:e.tj1.studyRecords))]):e._e()])]),t("div",{staticClass:"item",staticStyle:{background:"#F4EFF9"},on:{click:function(t){return e.gotoPages("xyzx_wdxf")}}},[t("div",{staticClass:"centery"},[t("div",{staticClass:"icon-box",staticStyle:{background:"#EAE0F4"}},[t("svg",{staticClass:"svg-icon svg-icon-font",staticStyle:{width:"18px",height:"17px"},attrs:{"ria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-ksgl_index4"}})])])]),t("div",{staticClass:"center"},[t("span",{staticClass:"title2"},[e._v("获得学分")]),null!==e.tj1?t("span",{staticClass:"title1",staticStyle:{color:"#AA83D1"}},[e._v(e._s(null===e.tj1.credits?0:e.tj1.credits)+" 分")]):e._e()])])]),t("div",{staticClass:"row-box"},e._l(e.listdata,(function(n){return t("div",{key:n.id,staticClass:"picture"},[t("div",{staticClass:"num"},[e._v(e._s(n.courseNum)+"人学习1")]),0===e.appletData.interfaceStatus||e.openInterface?t("img",{staticClass:"courseImg",attrs:{src:r(76),alt:""},on:{click:function(t){return e.goDetail(n.id)}}}):t("img",{staticClass:"courseImg",attrs:{src:e.base_api+"/ksgl/course/download?dataField=cover&nameField=coverUrl&id="+n.id,alt:""},on:{click:function(t){return e.goDetail(n.id)}}}),t("span",{staticClass:"name"},[e._v(e._s(n.name))])])})),0)])])],1)},bl=[];function wl(e){return wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wl(e)}function xl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */xl=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==wl(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(wl(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ll(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Ml(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ll(o,n,a,i,s,"next",e)}function s(e){Ll(o,n,a,i,s,"throw",e)}i(void 0)}))}}function kl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kl(Object(r),!0).forEach((function(t){Dl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Dl(e,t,r){return(t=Yl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yl(e){var t=Sl(e,"string");return"symbol"==wl(t)?t:t+""}function Sl(e,t){if("object"!=wl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Cl={props:{appletData:{type:Object,default:function(){return{}}}},data:function(){return{tj1:null,tj2:null,base_api:"",searchText:"",listdata:[],openInterface:window.openInterface}},computed:Tl({},ce(["routes","loginUser"])),watch:{},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.base_api="/apigw",this.init(),this.getData(),this.getnum()},beforeDestroy:function(){},mounted:function(){var e=this;this.$bus.on("searchListData",(function(t){e.searchText=t}))},methods:{init:function(){var e=this;return Ml(xl().mark((function t(){var r,n,a,o,i,s,l,c,u,d,p;return xl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.appletData.interfaceStatus&&!window.openInterface){t.next=11;break}return t.next=3,e.$getDefaultData(e,e.appletData.id);case 3:return r=t.sent,n=r.grmhWdxxdNumData,e.tj1=n,null===e.tj1.studyRecords&&(e.tj1.studyRecords=0),e.tj1.studyRecords<60?e.tj1.studyRecords=e.tj1.studyRecords+" 秒":(a=Math.floor(e.tj1.studyRecords/60),o=Math.floor(e.tj1.studyRecords%60),a<60?e.tj1.studyRecords=a+"分"+o+"秒":(i=Math.floor(a/60),s=Math.floor(a%60),e.tj1.studyRecords=i+"小时"+s+"分")),t.abrupt("return");case 11:return t.next=13,e.$app.querydata("/ksgl/vwPersonCourse/queryHomeStatistics");case 13:l=t.sent,"success"===l.code?(e.tj1=l.body,null===e.tj1.studyRecords&&(e.tj1.studyRecords=0),e.tj1.studyRecords<60?e.tj1.studyRecords=e.tj1.studyRecords+" 秒":(c=Math.floor(e.tj1.studyRecords/60),u=Math.floor(e.tj1.studyRecords%60),c<60?e.tj1.studyRecords=c+"分"+u+"秒":(d=Math.floor(c/60),p=Math.floor(c%60),e.tj1.studyRecords=d+"小时"+p+"分")),console.log(e.tj1,32131231)):e.$message.error(l.message);case 15:case"end":return t.stop()}}),t)})))()},getData:function(){var e=this;return Ml(xl().mark((function t(){var r,n,a,o,i;return xl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r={},r["name"]=e.searchText,n={pageNum:1,pageSize:2,orderBy:"lastStudyTime desc",orgCode:e.loginUser.orgCode,searchMap:r},a="",0!==e.appletData.interfaceStatus&&!window.openInterface){t.next=11;break}return t.next=7,e.$getDefaultData(e,e.appletData.id);case 7:return o=t.sent,i=o.grmhWdxxData,e.listdata=i,t.abrupt("return");case 11:return t.next=13,e.$app.listdata("/ksgl/vwPersonCourse/listdata?urlsearch=status:1;finishStatus:1,2;ispublish:1;personId:"+e.loginUser.personId,n);case 13:a=t.sent,"success"===a.code?e.listdata=a.body.pageInfo.list:e.$message.error(a.message);case 15:case"end":return t.stop()}}),t)})))()},getnum:function(){var e=this;return Ml(xl().mark((function t(){var r,n,a;return xl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r={},r["name"]=e.searchText,n={pageNum:100,pageSize:100,orderBy:"lastStudyTime desc",orgCode:e.loginUser.orgCode,searchMap:r},a="",t.next=6,e.$app.listdata("/ksgl/vwPersonCourse/listdata?urlsearch=status:1;finishStatus:1,2;ispublish:1;personId:"+e.loginUser.personId,n);case 6:a=t.sent,"success"===a.code?e.tj2=a.body.pageInfo.list.length:e.$message.error(a.message);case 8:case"end":return t.stop()}}),t)})))()},goDetail:function(e){0===this.appletData.interfaceStatus||window.openInterface?this.$bus.emit("openDefaultDialog",this.appletData.name):window.open("/#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type=3&id="+e+"&logoTitle="+encodeURIComponent("学习考试/学员中心/我的课程"))},gotoPages:function(e){var t=e,r=this.getMenuCode(t);if(r&&r.path){var n;switch(r.meta.level){case 3:n=r.meta.activeMenu;break;case 4:n=r.meta.activeMenu+"/"+r.path;break;default:n=r.path}this.$router.push({path:n})}},getMenuCode:function(e){var t;function r(n){n.forEach((function(n){var a=n.meta&&n.meta.code?n.meta.code:"";if(a&&a.indexOf(".svg")>-1&&(a=n.meta.code.substring(0,a.indexOf(".svg"))),a===e)return t=n,!1;n.children&&r(n.children)}))}return r(this.routes),t},getMenuCode1:function(e){var t;function r(n){n.forEach((function(n){if(n.children&&r(n.children),!n.children&&n.meta&&n.meta.code===e)return t=n,!1}))}return r(this.routes),t}}},jl=Cl,El=(r(8696),c(jl,_l,bl,!1,null,"9fdba2be",null)),Ol=El.exports,Pl=function(){var e=this,t=e._self._c;return t("div",{ref:"todoElement",attrs:{id:"ksgl-body"}},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!1,code:"gwap.svg"}}},[t("div",{staticClass:"study-info"},[t("div",{staticClass:"learn-top"},[t("div",{staticClass:"learn-dv"},[t("span",{staticClass:"learn-num"},[e._v(e._s(e.vo.studyInfo.courseNum||0)+"个")]),t("span",{staticClass:"learn-name"},[e._v("学习课程")])]),t("div",{staticClass:"learn-dv"},[t("span",{staticClass:"learn-num"},[e._v(e._s(e.vo.studyInfo.examFinishNum||0)+"次")]),t("span",{staticClass:"learn-name"},[e._v("参加考试")])]),t("div",{staticClass:"learn-dv"},[t("span",{staticClass:"learn-num"},[e._v(e._s(e.formatStudyRecords)+"小时")]),t("span",{staticClass:"learn-name"},[e._v("学习时长")])]),t("div",{staticClass:"learn-dv"},[t("span",{staticClass:"learn-num"},[e._v(e._s(e.vo.studyInfo.credits||0)+"分")]),t("span",{staticClass:"learn-name"},[e._v("获得学分")])])]),t("div",{staticClass:"recentyStudy"},[t("div",{staticClass:"common-header"},[t("div",{staticClass:"header-name"},[e._v("最近学习")])]),"{}"!=JSON.stringify(e.vo.recentyStudy)?t("div",{staticClass:"recenty-main",staticStyle:{height:"130px"}},[t("div",{staticClass:"left"},[t("img",{attrs:{src:e.base_api+e.vo.recentyStudy.studyImgUrl,alt:""}})]),t("div",{staticClass:"right"},[t("div",{staticClass:"title"},[e._v(e._s(e.vo.recentyStudy.name))]),t("div",{staticClass:"prosses"},[t("el-progress",{attrs:{percentage:e.vo.recentyStudy.bfb,color:"#67c23a"}})],1),t("div",{staticClass:"tolearn"},[t("span",{staticClass:"jinru",on:{click:function(t){return e.toStudyClick()}}},[e._v("进入学习")])])])]):t("div",{staticClass:"recenty-main",staticStyle:{"flex-direction":"column"}},[t("p",[e._v("您还没有学习课程,给您推荐一下课程!")]),t("div",{staticClass:"recommend"},[t("div",{staticClass:"left recommend_left"},[t("img",{attrs:{src:r(76),alt:""}}),t("div",{staticClass:"font"},[e._v("推荐")])]),t("div",{staticClass:"right"},[t("div",{staticClass:"title"},[e._v("品牌进化·组织变革 GIIS2019国际餐饮创新峰会专题专题专题专专GIIS2019国际餐饮创新峰会专题专题专题专专")]),t("div",{staticClass:"prosses"},[e._v(" 999+人学习 ")]),t("div",{staticClass:"tolearn"},[t("span",{staticStyle:{padding:"0","background-color":"unset"}},[e._v("进入学习>> ")])])])])])]),t("div",{staticClass:"recentyText"},[t("div",{staticClass:"common-header"},[t("div",{staticClass:"header-name"},[e._v("最近考试")])]),e.vwKsglExamList.length?t("div",{staticClass:"list"},e._l(e.vwKsglExamList,(function(r,n){return t("div",{key:n,on:{click:function(t){return e.gotoDetail(r)}}},[t("div",{staticClass:"dv1"},[t("span",{staticStyle:{color:"#012964","font-weight":"600"}},[e._v("["+e._s(r.typeName)+"]")]),t("span",{staticStyle:{color:"#333",overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical"}},[e._v(e._s(r.name))])]),t("div",{staticClass:"dv2"},[t("span",{staticStyle:{color:"#999999"}},[e._v("截止日期 "+e._s(e._f("timeformat")(r.endTime)))]),t("span",[e._v(e._s(r.status))])])])})),0):t("div",{staticClass:"list-empty",style:{height:"{}"==JSON.stringify(e.vo.recentyStudy)?"180px":"220px"}},[t("p",[e._v("您最近没有需参加的考试!")])]),t("div",{staticClass:"btn"},[t("div",{staticClass:"tolearn",on:{click:e.tolearnClick}},[e._v("进入学员中心")])])])])])],1)},Al=[];function Nl(e){return Nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nl(e)}function Hl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Hl=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Nl(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Nl(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Il(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Fl(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Il(o,n,a,i,s,"next",e)}function s(e){Il(o,n,a,i,s,"throw",e)}i(void 0)}))}}function zl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(r),!0).forEach((function(t){Gl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gl(e,t,r){return(t=Rl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rl(e){var t=Wl(e,"string");return"symbol"==Nl(t)?t:t+""}function Wl(e,t){if("object"!=Nl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Nl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Vl=r(5093),Ul={name:"Xyxx",filters:{typeformat:function(e){var t="";switch(Number(e)){case 1:t="[正式考]";break;case 2:t="[模拟考]";break}return t},statusformat:function(e){var t="";switch(Number(e)){case 0:t="待考试";break;case 1:t="未批阅";break;case 2:t="已批阅";break;case 3:t="未完成";break}return t},timeformat:function(e){if(e)return e.replace("年","-").replace("月","-").replace("日","")}},props:{title:{type:String,default:"待办待阅"},appletData:{type:Object,default:function(){return{}}}},data:function(){return{loginUser:this.$store.getters.loginUser,vo:{},isEmpty:!1,base_api:"",vwKsglExamList:[]}},computed:Bl(Bl({},ce(["routes"])),{},{formatStudyRecords:function(){if(this.vo.studyInfo&&this.vo.studyInfo.studyRecords){var e=this.vo.studyInfo.studyRecords,t=parseInt(e/60/60%24);parseInt(e/60%60),parseInt(e%60);return t}return 0}}),created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.base_api="/apigw",this.getStudyInfo()},beforeDestroy:function(){},mounted:function(){},updated:function(){var e=$("#ksgl-body").height()-$(".learn-top").height()-$(".recentyStudy").height();$(".recentyText").height(e)},methods:{gotoDetail:function(e){if(0===this.appletData.interfaceStatus||window.openInterface)this.$bus.emit("openDefaultDialog",this.appletData.name);else{var t=1===e.type?"学习考试/正式考试":"学习考试/模拟考试";window.open("/#/commonHeader?workform=@/wapp/ksgl/grzx/wdks/KsglGrzxWdksExamDetail&type="+e.type+"&id="+e.examId+"&logoTitle="+t)}},toStudyClick:function(){0===this.appletData.interfaceStatus||window.openInterface?this.$bus.emit("openDefaultDialog",this.appletData.name):window.open("#/commonHeader?workform=@/wapp/ksgl/kcgl/components/KsglKcglComponentCourseDetail&type=学习考试/课程中心&id=".concat(this.vo.recentyStudy.courseId,"&logoTitle=学习考试/讲师中心/我的课程"))},getStudyInfo:function(){var e=this;return Fl(Hl().mark((function t(){var r;return Hl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.appletData.interfaceStatus&&!window.openInterface){t.next=11;break}return t.next=3,e.$getDefaultData(e,e.appletData.id);case 3:if(r=t.sent,"学习信息"!==e.appletData.name){t.next=11;break}return e.vo=r,e.vwKsglExamList=r.recentyExam,e.vwKsglExamList.length&&e.vwKsglExamList.length>4&&(e.vwKsglExamList=e.vwKsglExamList.slice(0,4)),e.isEmpty=!1,e.$nextTick((function(){document.querySelector(".recentyText").style.height="300px"})),t.abrupt("return");case 11:e.$http({contentType:"application/x-www-form-urlencoded",url:"/ksgl/findMyStudyInfo",method:"get"}).then((function(t){"success"===t.code?(t.body.vo.recentyExam.forEach((function(e){e.time=Vl(e.endTime,"YYYY-MM-DD HH:mm:ss").valueOf()})),t.body.vo.recentyExam=t.body.vo.recentyExam.sort((function(e,t){return t.time-e.time})),t.body.vo.recentyExam=Array.from(t.body.vo.recentyExam),e.vo=t.body.vo,e.vwKsglExamList=t.body.vo.recentyExam,e.vwKsglExamList.length&&e.vwKsglExamList.length>4&&(e.vwKsglExamList=e.vwKsglExamList.slice(0,4)),console.log(t.body.vo,"学习信息数据"),e.isEmpty=!1):e.isEmpty=!0}));case 12:case"end":return t.stop()}}),t)})))()},tolearnClick:function(){var e="xyzx_wdkc",t=this.getMenuCode(e);if(t&&t.path){var r;switch(t.meta.level){case 3:r=t.meta.activeMenu;break;case 4:r=t.meta.activeMenu+"/"+t.path;break;default:r=t.path}this.$router.push({path:r})}},getMenuCode:function(e){var t;function r(n){n.forEach((function(n){if(n.children&&r(n.children),!n.children&&n.meta&&n.meta.code===e)return t=n,!1}))}return r(this.routes),t}}},ql=Ul,Xl=(r(3234),c(ql,Pl,Al,!1,null,"25fdd67a",null)),Kl=Xl.exports,Jl=function(){var e=this,t=e._self._c;return t("div",{ref:"todoElement",attrs:{id:"todo-body"}},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!1,code:"gwap.svg"}}},[t("div",{staticClass:"study-info"},[t("div",{staticClass:"info-top"},[t("div",{staticClass:"left"},[t("img",{attrs:{src:e.base_api+e.vo.personImg,alt:""}})]),t("div",{staticClass:"right"},[t("div",{staticClass:"name"},[t("span",[e._v(e._s(e.vo.personName))]),t("span",[e._v("学员")])]),t("div",{staticClass:"say"},[e._v("今天是您开启学习的 "),t("span",{staticStyle:{color:"#2792FB"}},[e._v(e._s(e.vo.studyDay))]),e._v(" 天,坚持就是胜利!")])])])])])],1)},Ql=[];function Zl(e){return Zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zl(e)}function $l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$l=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Zl(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Zl(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ec(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function tc(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){ec(o,n,a,i,s,"next",e)}function s(e){ec(o,n,a,i,s,"throw",e)}i(void 0)}))}}var rc={name:"Xyxx",props:{title:{type:String,default:"待办待阅"},appletData:{type:Object,default:function(){return{}}}},data:function(){return{vo:{},isEmpty:!1,base_api:""}},computed:{curUser:function(){return this.$store.getters.loginUser}},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.base_api="/apigw",this.getStudyInfo()},beforeDestroy:function(){},mounted:function(){},methods:{getStudyInfo:function(){var e=this;return tc($l().mark((function t(){var r;return $l().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.appletData.interfaceStatus&&!window.openInterface){t.next=8;break}return t.next=3,e.$getDefaultData(e,e.appletData.id);case 3:if(r=t.sent,"学员信息"!==e.appletData.name){t.next=8;break}return e.vo=r,e.isEmpty=!1,t.abrupt("return");case 8:e.$http({contentType:"application/x-www-form-urlencoded",url:"/ksgl/findMyStudyInfo",method:"get"}).then((function(t){"success"===t.code?(e.vo=t.body.vo,e.isEmpty=!1,console.log(e.vo,"学员信息数据")):e.isEmpty=!0}));case 9:case"end":return t.stop()}}),t)})))()}}},nc=rc,ac=(r(8926),c(nc,Jl,Ql,!1,null,"7de2fd3c",null)),oc=ac.exports,ic=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[e.showTable1?t("data-table",{attrs:{"module-info":e.moduleInfo,"tb-columns":e.tbColumns,"on-list-data-before-load":e.onListDataBeforeLoad,"on-list-data-loaded":e.onListDataLoaded,"on-cell-click":e.OnCellClick,"on-delete-successed":e.onDeleteSuccessed}}):e._e()],1)},sc=[],lc={components:{},props:{},data:function(){return{showTable1:!0}},computed:{},watch:{$route:function(){this.$route.query.id?this.changeRouter(1):this.changeRouter(2)}},created:function(){},beforeDestroy:function(){},mounted:function(){this.$route.query.id?this.changeRouter(1):this.changeRouter(2)},methods:{OnCellClick:function(e,t,r,n){console.log(e),this.$router.push({path:this.$route.path,query:{id:e.personId}}),this.changeRouter(1)},changeRouter:function(e){var t=this;1===e?(this.showTable1=!1,this.moduleInfo={listDataUrl:"ksgl/configCredit/listdata?urlsearch=personId:".concat(this.$route.query.id)},this.tbColumns=[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"reason",title:"获得原由",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"credit",title:"获得学分",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"createTime",title:"获得时间",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0}],this.formTitle="学分明细",t.$nextTick((function(){t.showTable1=!0}))):(this.showTable1=!1,this.moduleInfo={listDataUrl:"/ksgl/configCredit/creditStatistics"},this.tbColumns=[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"personName",title:"姓名",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"deptName",title:"部门",width:"200px",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"totalCredits",title:"总学分",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"examCredit",title:"考试学分",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"courseCredit",title:"学习学分",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0}],this.formTitle="学分统计",this.$nextTick((function(){t.showTable1=!0})))},onListDataBeforeLoad:function(e,t){t.urlsearch="orgCode:"+e.loginUser.orgCode},onListDataLoaded:function(e,t){t.list.map((function(e){if(e.deptName){var t=e.deptName.indexOf("-");e.deptName=e.deptName.substring(t+1)}})),console.log("vwCoursePersonStatistics listdata loaded")}}},cc=lc,uc=c(cc,ic,sc,!1,null,"290c2e76",null),dc=uc.exports,pc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[e.showTable1?t("data-table",{attrs:{"module-info":e.moduleInfo,"tb-columns":e.tbColumns,"on-list-data-before-load":e.onListDataBeforeLoad,"on-list-data-loaded":e.onListDataLoaded,"on-cell-click":e.OnCellClick,"on-delete-successed":e.onDeleteSuccessed}}):e._e()],1)},hc=[],fc={components:{},props:{},data:function(){return{showTable1:!0}},computed:{},watch:{$route:function(){this.$route.query.id?this.changeRouter(1):this.changeRouter(2)}},created:function(){},beforeDestroy:function(){},mounted:function(){this.$route.query.id?this.changeRouter(1):this.changeRouter(2)},methods:{onListDataBeforeLoad:function(e,t){t.urlsearch="orgCode:"+e.loginUser.orgCode},onListDataLoaded:function(e,t){t.list.map((function(e){if(2===e.shoukeType?e.shoukeType="线下":e.shoukeType="线上",e.finishCount=e.finishCount+"/"+e.courseNum,e.deptName){var t=e.deptName.indexOf("-");e.deptName=e.deptName.substring(t+1)}})),console.log("vwCoursePersonStatistics listdata loaded")},OnCellClick:function(e,t,r,n){this.$router.push({path:this.$route.path,query:{id:e.personId}}),this.changeRouter(1)},changeRouter:function(e){var t=this;1===e?(this.showTable1=!1,this.moduleInfo={addNewUrl:"ksgl/vwCoursePersonStatistics/addNew",insertUrl:"ksgl/vwCoursePersonStatistics/insert",updateUrl:"ksgl/vwCoursePersonStatistics/update",listDataUrl:"ksgl/vwCoursePersonStatistics/listdata?urlsearch=personId:".concat(this.$route.query.id),getByIdUrl:"ksgl/vwCoursePersonStatistics/getById"},this.tbColumns=[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"name",title:"课程名称",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"teacherName",title:"讲师",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"shoukeType",title:"授课方式",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"finishCount",title:"学习进度",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"finishRate",title:"完成率",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"credit",title:"获得学分",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"totalTime",title:"学习时长/小时",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0}],this.formTitle="学习明细",t.$nextTick((function(){t.showTable1=!0}))):(this.showTable1=!1,this.moduleInfo={addNewUrl:"ksgl/vwCourseStatistics/addNew",insertUrl:"ksgl/vwCourseStatistics/insert",moduleCode:"vwCourseStatistics",listDataUrl:"/ksgl/configCredit/learningStatistics",getByIdUrl:"ksgl/vwCourseStatistics/getById"},this.tbColumns=[{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"personName",title:"姓名",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"deptName",title:"部门",width:"200px",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"total",title:"全部课程",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"fraction",title:"完成课程",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"percentage",title:"完成率",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"credit",title:"获得学分",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"totalTime",title:"学习总时长",width:"150px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0}],this.formTitle="学习统计",this.$nextTick((function(){t.showTable1=!0})))}}},mc=fc,yc=c(mc,pc,hc,!1,null,"56e92352",null),vc=yc.exports,gc=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"btn-froup"},[t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.openSpecification}},[e._v("输入规范")]),t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.openSample}},[e._v("输入范例")])],1),t("div",{staticClass:"content"},[t("div",{staticClass:"write-content",staticStyle:{display:"flex","flex-direction":"column"}},[t("div",{staticClass:"top-info",staticStyle:{height:"unset","min-height":"40px"}},[t("span",{staticClass:"title"},[e._v("输入区")]),t("el-radio-group",{model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},e._l(e.typeList,(function(r,n){return t("el-radio",{key:n,attrs:{label:r.lable}},[e._v(e._s(r.name))])})),1),t("i",{staticClass:"el-icon-question question-icon",on:{click:e.showQuestion}}),t("el-button",{staticStyle:{float:"right","margin-top":"5px"},attrs:{size:"mini",type:"text"},on:{click:e.clearHandler}},[e._v("清空")])],1),t("el-input",{staticClass:"textarea",attrs:{type:"textarea",resize:"none",autofocus:!0,spellcheck:"false"},model:{value:e.writeContent,callback:function(t){e.writeContent=t},expression:"writeContent"}})],1),t("div",{staticClass:"rule-content"},[t("div",{staticClass:"top-info"},[t("span",{staticClass:"title"},[e._v("识别区")]),e.errorNum>0?t("span",{staticStyle:{"font-size":"var(--portalFontSize13)"}},[e._v(" 共 "+e._s(e.errorNum)+" 处错误,请参照输入范例修改 ")]):e._e(),e.errorNum>0?t("el-button",{staticStyle:{float:"right","margin-top":"5px"},attrs:{size:"mini",type:"text"},on:{click:e.nextError}},[e._v("下一处")]):e._e()],1),t("div",{ref:"questionList",staticClass:"question-show"},e._l(e.questionList,(function(r,n){return t("div",{key:n,staticClass:"rule-info"},[1===r.type||2===r.type?t("XuanZe",{attrs:{list:r}}):e._e(),3===r.type||4===r.type||5===r.type?t("OtherType",{attrs:{list:r}}):e._e()],1)})),0)]),t("div",{staticStyle:{clear:"both"}})]),t("Specification"),t("Sample"),t("Question"),t("div",{staticClass:"btn-bottom"},[t("el-button",{attrs:{icon:"el-icon-close",plain:""},on:{click:e.closeHandler}},[e._v("关 闭")]),t("el-button",{attrs:{type:"primary",disabled:e.loading,icon:"el-icon-check"},on:{click:e.submitHandler}},[e._v("提 交")])],1)],1)},_c=[],bc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"question-list",class:[e.list.error?"error":""]},[t("div",{staticClass:"tm"},[""!==e.list.th?t("span",{staticClass:"th"},[e._v(e._s(e.list.th)+".")]):e._e(),t("span",{staticClass:"tm-type"},[e._v("["+e._s(e.list.typeName)+"]")]),t("span",{},[e._v(e._s(e.list.tm))])]),e.list.optionList.length>0?t("div",{staticClass:"select-list"},e._l(e.list.optionList,(function(r,n){return t("div",{key:n},[e._v(e._s(r.optionNo)+"、"+e._s(r.optionContent))])})),0):e._e(),t("div",{staticClass:"dan"},[e._v(" 答案:"+e._s(e.list.dan)+" ")]),""!==e.list.jx?t("div",{staticClass:"jx"},[e._v(" 解析:"+e._s(e.list.jx)+" ")]):e._e(),e.list.error?t("div",{staticClass:"error-info"},[e._v(" 错误原因:"+e._s(e.list.errorMsg[0])+" ")]):e._e()])},wc=[],xc={components:{},props:{list:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{}},Lc=xc,Mc=(r(9458),c(Lc,bc,wc,!1,null,"fa2f1fca",null)),kc=Mc.exports,Tc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"question-list",class:[e.list.error?"error":""]},[t("div",{staticClass:"tm"},[""!==e.list.th?t("span",{staticClass:"th"},[e._v(e._s(e.list.th)+".")]):e._e(),t("span",{staticClass:"tm-type"},[e._v("["+e._s(e.list.typeName)+"]")]),t("span",{},[e._v(e._s(e.list.tm))])]),t("div",{staticClass:"dan"},[e._v(" 答案:"+e._s(e.list.dan)+" ")]),""!==e.list.jx?t("div",{staticClass:"jx"},[e._v(" 解析:"+e._s(e.list.jx)+" ")]):e._e(),e.list.error?t("div",{staticClass:"error-info"},[e._v(" 错误原因:"+e._s(e.list.errorMsg[0])+" ")]):e._e()])},Dc=[],Yc={components:{},props:{list:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{}},Sc=Yc,Cc=(r(1041),c(Sc,Tc,Dc,!1,null,"e1ba9afe",null)),jc=Cc.exports,Ec=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.dialogFormVisible,"close-on-click-modal":!1,top:"10vh",width:"800px",title:"输入规范"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[t("div",{staticClass:"content"},[e._v(" 1、所有题型目标号支持1.或1、或(1)三种格式; "),t("br"),e._v(" 2、可在题目标号后用[单选题]、[多选题]、[判断题]、[填空题]、[问答题]来标注不同的题型,如无标注会智能识别;"),t("br"),e._v(" 3、所有题型必须含有“答案:”或“[答案]”字段;"),t("br"),e._v(" 4、所有题型“解析:”或“[解析]”字段必填,没有可不填;"),t("br"),e._v(" 5、所有题型中包含图片,则将图片插入到需要的位置即可;"),t("br"),e._v(" 6、不支持直接识别数学公式,可用图片的形式录入数学公式;"),t("br"),e._v(" 7、单选题/多选题至少要有两个/三个选项,最多支持A,B,C,D,E,F,G七个选项,大小写均支持,且必须按照顺序使用;"),t("br"),e._v(" 8、选择题A-G这些选项号与内容之间要用、或 . 分开,或用(A)表示选项;"),t("br"),e._v(" 9、选择题答案中请勿加多余的符号或文字;"),t("br"),e._v(" 10、当有多道题目的时候,题目与题目之间要使用“*”分隔。"),t("br")]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("知道了")])],1)])],1)},Oc=[],Pc={components:{},data:function(){return{dialogFormVisible:!1}},computed:{},watch:{},created:function(){this.$bus.on("openSpecification",this.openSpecification)},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){this.$bus.off("openSpecification",this.openSpecification)},destroyed:function(){},activated:function(){},methods:{openSpecification:function(){this.dialogFormVisible=!0}}},Ac=Pc,Nc=(r(6495),c(Ac,Ec,Oc,!1,null,"fcfc8474",null)),Hc=Nc.exports,Ic=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.SampledialogFormVisible,"close-on-click-modal":!1,top:"10vh",width:"800px",title:"输入范例"},on:{"update:visible":function(t){e.SampledialogFormVisible=t}}},[t("div",{staticClass:"content"},[t("el-scrollbar",[e._v(" 1.[单选题]以下选项不是中国古代四大美女的是"),t("br"),e._v(" A、杨玉环"),t("br"),e._v(" B、西施"),t("br"),e._v(" C、貂蝉"),t("br"),e._v(" D、杨幂"),t("br"),e._v(" 答案:D"),t("br"),e._v(" 解析:中国古代四大美女,即西施、王昭君、貂蝉、杨玉环 。四大美女享有“沉鱼落雁之容,闭月羞花之貌”的美誉。“沉鱼、落雁、闭月、羞花”是由精彩故事组成的历史典故。* "),t("br"),e._v(" 2.[多选题]四大发明是中国古代创新的智慧成果和科学技术,包括"),t("br"),e._v(" A、造纸术"),t("br"),e._v(" B、指南针"),t("br"),e._v(" C、火药"),t("br"),e._v(" D、印刷术"),t("br"),e._v(" E、万有引力"),t("br"),e._v(" 答案:ABCD"),t("br"),e._v(" 解析:四大发明是中国古代创新的智慧成果和科学技术,包括造纸术、指南针、火药、印刷术。*"),t("br"),e._v(" 3.[判断题]国际象棋起源于英国吗?"),t("br"),e._v(" 答案:错误"),t("br"),e._v(" 解析:根据历史传说记载,国际象棋起源于古印度,至今见诸于文献最早的记录是在萨珊王朝时期用波斯文写的。*"),t("br"),e._v(" 4.[填空题]我国古代四大名著是___、___、___、___。"),t("br"),e._v(" 答案:红楼梦|水浒传|三国演义|西游记"),t("br"),e._v(" 解析:我国古代四大名著包括:红楼梦、水浒传、三国演义、西游记。*"),t("br"),e._v(" 5.[问答题]论语记录的是什么_______"),t("br"),e._v(" 答案:论语是记录孔子及其弟子言行的一部语录体,叙事体的著作。"),t("br"),e._v(" 解析:论语是记录孔子及其弟子言行的一部语录体,叙事体的著作。"),t("br")])],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.SampledialogFormVisible=!1}}},[e._v("知道了")])],1)])],1)},Fc=[],zc={components:{},data:function(){return{SampledialogFormVisible:!1}},computed:{},watch:{},created:function(){this.$bus.on("openSampleHadler",this.openSampledialogFormVisible)},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){this.$bus.off("openSampleHadler",this.openSampledialogFormVisible)},destroyed:function(){},activated:function(){},methods:{openSampledialogFormVisible:function(){this.SampledialogFormVisible=!0}}},Bc=zc,Gc=(r(4372),c(Bc,Ic,Fc,!1,null,"148aaab5",null)),Rc=Gc.exports,Wc=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.questiondialogFormVisible,"close-on-click-modal":!1,top:"10vh",width:"800px",title:"按题型录入说明"},on:{"update:visible":function(t){e.questiondialogFormVisible=t}}},[t("div",{staticClass:"content"},[e._v(" 1、当选择全部题型时,可同时录入单选题、多选题、判断题、填空题、问答题,试题包含四部分:"),t("br"),e._v(" a、题型 :[单选题]、[多选题]、[判断题]、[填空题]、[问答题],用半角中括号标注题型,如:[填空题];"),t("br"),e._v(" b、题目:题目中如果有哪填写或表示选择答案的地方,请用下划线表示,可多个,如:_________;"),t("br"),e._v(" c、选项:多个选项,请一个一行且第一个选项必须为A;"),t("br"),e._v(" d、答案:用[答案]标注,多个答案用逗号分开,如:A,B,C 或 李白,太白,青莲居士"),t("br"),e._v(" e、解析:用[解析]标注,如:李白,唐代诗人,字太白,号青莲居士,被后人称为诗仙。"),t("br"),e._v(" 2、当选择非全部题型时,只能录入选中类型的同一类型试题不用标注题型,其他请按上面b、c、d、e、规范执行;"),t("br"),e._v(" 3、试题标号不做要求,可不填;"),t("br"),e._v(" 4、试题题目、选项、答案不支持图片和公式。"),t("br")]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.questiondialogFormVisible=!1}}},[e._v("知道了")])],1)])],1)},Vc=[],Uc={components:{},data:function(){return{questiondialogFormVisible:!1}},computed:{},watch:{},created:function(){this.$bus.on("showQuestion",this.showQuestion)},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){this.$bus.off("showQuestion",this.showQuestion)},destroyed:function(){},activated:function(){},methods:{showQuestion:function(){this.questiondialogFormVisible=!0}}},qc=Uc,Xc=(r(155),c(qc,Wc,Vc,!1,null,"bf4eb1aa",null)),Kc=Xc.exports;function Jc(e){return Jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jc(e)}function Qc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qc=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Jc(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Jc(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Zc(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function $c(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Zc(o,n,a,i,s,"next",e)}function s(e){Zc(o,n,a,i,s,"throw",e)}i(void 0)}))}}var eu={components:{XuanZe:kc,OtherType:jc,Specification:Hc,Sample:Rc,Question:Kc},data:function(){return{typeList:[{name:"全部题型",lable:0},{name:"单选题",lable:1},{name:"多选题",lable:2},{name:"判断题",lable:3},{name:"填空题",lable:4},{name:"问答题",lable:5}],api:"/apigw",writeContent:"",type:0,resultContent:"",questionList:[],errorNum:0,errorIndex:0,loginUser:this.$store.getters.loginUser,loading:!1}},computed:{},watch:{writeContent:function(e){this.resultContent=e.replace(/<[^<>]+>/g,"").replace(/ /gi,"").replace(/\s*/g,""),this.cutStringHandler(this.resultContent)},type:function(){this.cutStringHandler(this.resultContent)}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{cutStringHandler:function(e){var t=e.split("*").filter((function(e){return""!==e}));t.forEach((function(e,r){t[r]+="*"})),this.conduct(t)},conduct:function(e){var t=this,r=[];e.forEach((function(e){var n={},a="",o=e.match(/(([0-9]{1,}(\.|、))|((\(|()[0-9]{1,}(\)|))))(\S*)/);null!==o&&(a=o[1].replace(/[^0-9]/gi,"")),t.$set(n,"th",a);var i="",s="";if(0===t.type){var l=e.match(/\[(\S*)题\]/);if(null!==l){s=l[0].replace(/\[/gi,"").replace(/\]/gi,"");var c=t.typeList.filter((function(e){return s===e.name}));c.length>0?i=c[0].lable:(i=5,void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["请标注正确的题型"])):(n.error=!0,n.errorMsg.push("请标注正确的题型")))}else i=5,void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["请标注题型"])):(n.error=!0,n.errorMsg.push("请标注题型"))}else i=t.type,t.typeList.forEach((function(e){e.lable===i&&(s=e.name)}));t.$set(n,"type",i),t.$set(n,"typeName",s);var u="",d=e.match(/(答案|\[答案\])(\S*)/)||[];if(d.length>0){var p=d[0].match(/解析/);if(p){u=d[0].match(/((答案)|(\[答案\]))(\S*)(解析|\[解析\])/)[4].replace(/:|:|\[|\]/gi,"");var h=e.match(/(解析|\[解析\])(\S*)\*/)[2].replace(/:|:/gi,"");""===h&&(void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["解析不能为空"])):(n.error=!0,n.errorMsg.push("解析不能为空"))),t.$set(n,"jx",h)}else void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["请输入解析"])):(n.error=!0,n.errorMsg.push("请输入解析")),u=d[0].match(/((答案)|(\[答案\]))(\S*)\*/)[4].replace(/:|:/gi,""),t.$set(n,"jx","");""===u?void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["答案不能为空!"])):(n.error=!0,n.errorMsg.push("答案不能为空!")):3===i&&"正确"!==u&&"错误"!==u&&(void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["判断题答案只能为正确或者错误"])):(n.error=!0,n.errorMsg.push("判断题答案只能为正确或者错误"))),t.$set(n,"dan",u)}else void 0===n.error?(t.$set(n,"error",!0),t.$set(n,"errorMsg",["请填写答案"])):(n.error=!0,n.errorMsg.push("请填写答案"));1!==i&&2!==i||(n=t.XuanZeHandler(i,n,e)),3!==i&&5!==i&&4!==i||(n=t.PanDuanHandler(i,n,e)),r.push(n)})),this.questionList=r,this.getErrorNum(r)},PanDuanHandler:function(e,t,r){var n=r.match(/(\S*)(答案|\[答案\])(:|:)/)||[],a="";if(n.length>0&&(a=n[1].replace(/(\S*)题\]/,""),this.$set(t,"tm",a),this.$set(t,"content",a),""===a&&(void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["题目不能为空"])):(t.error=!0,t.errorMsg.push("题目不能为空"))),4===e)){var o=a.match(/_(\S*)/);if(null===o)void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["填空题必须包含下划线_____"])):(t.error=!0,t.errorMsg.push("填空题必须包含下划线_____"));else{var i=o[0].replace(/\,|,|、|\./g,"#").split("#").filter((function(e){return""!==e})),s=t.dan.split("|");s.length!==i.length&&(void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["填空数量与答案不符"])):(t.error=!0,t.errorMsg.push("填空数量与答案不符")))}}if(3===e){var l=[{istrue:0,optionContent:"",optionNo:"正确"},{istrue:0,optionContent:"",optionNo:"错误"}];this.$set(t,"optionList",l)}return t},XuanZeHandler:function(e,t,r){var n=r.match(/(\S*)\A[、|\,|\|\.|,|\:|:|.]/)||[],a="";if(n.length>0){a=n[1].replace(/(\S*)题\]/,""),this.$set(t,"tm",a),this.$set(t,"content",a),""===a&&(void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["题目不能为空"])):(t.error=!0,t.errorMsg.push("题目不能为空")));var o=r.match(/\A[、|\,|\|\.|,|\:|:|.](\S*)答案|\[答案\]/g)?r.match(/\A[、|\,|\|\.|,|\:|:|.](\S*)答案|\[答案\]/g)[0].replace(/答案|\[答案\]|\[|\]/gi,""):"",i=o.replace(/[A-Z][、|\,|\|\.|,|\:|:|.]/g,(function(e){return"|#|"+e})).split("|#|").filter((function(e){return""!==e})),s=[];if(i.length>0){i.forEach((function(e){var t={istrue:0,optionContent:"",optionNo:""},r=e.match(/[A-Z]([、|\,|\|\.|,|\:|:|.])(\S*)/);t.optionNo=e.replace(r[1],"").replace(r[2],""),t.optionContent=r[2],s.push(t)}));var l=t.dan.split("");if(1===e)if(l.length>1)void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["单选题答案只能有一个"])):(t.error=!0,t.errorMsg.push("单选题答案只能有一个"));else{var c=s.filter((function(e){return e.optionNo===l[0]}));0===c.length&&(void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["答案"+(void 0===l[0]?"":l[0])+"不存在"])):(t.error=!0,t.errorMsg.push("答案"+(void 0===l[0]?"":l[0])+"不存在")))}else if(2===e)if(l.length>s.length)void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["多选题答案数量不能超过选项数量"])):(t.error=!0,t.errorMsg.push("多选题答案数量不能超过选项数量"));else{var u=!0,d=[];l.forEach((function(e){var t=s.filter((function(t){return e===t.optionNo}));0===t.length&&(u=!1,d.push(e))})),u||(void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["答案"+d.join(",")+"不存在"])):(t.error=!0,t.errorMsg.push("答案"+d.join(",")+"不存在")))}}else void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["请填写答案"])):(t.error=!0,t.errorMsg.push("请填写答案"));this.$set(t,"optionList",s)}else this.$set(t,"optionList",[]),void 0===t.error?(this.$set(t,"error",!0),this.$set(t,"errorMsg",["选择题没有A选项"])):(t.error=!0,t.errorMsg.push("选择题没有A选项"));return t},getErrorNum:function(e){var t=0;e.forEach((function(e){e.error&&t++})),this.errorNum=t},clearHandler:function(){this.writeContent=""},openSpecification:function(){this.$bus.emit("openSpecification")},openSample:function(){this.$bus.emit("openSampleHadler")},showQuestion:function(){this.$bus.emit("showQuestion")},nextError:function(){var e=document.querySelectorAll(".error");e.forEach((function(e){e.className="question-list error"})),this.errorIndex>=e.length&&(this.errorIndex=0),e[this.errorIndex].className="question-list error active",this.$refs.questionList.scrollTop=e[this.errorIndex].offsetTop-this.$refs.questionList.offsetTop-10,this.errorIndex++},closeHandler:function(){this.$vnode.context.showAdd=!1,this.$route.query.label="",this.$router.go(-1)},submitHandler:function(){var e=this;return $c(Qc().mark((function t(){var r,n;return Qc().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.errorNum>0)){t.next=2;break}return t.abrupt("return",e.$alert("当前识别区存在未解决的错误","操作提示",{confirmButtonText:"确定"}));case 2:if(!(e.questionList.length<1)){t.next=4;break}return t.abrupt("return",e.$alert("识别区无内容,请添加","操作提示",{confirmButtonText:"确定"}));case 4:return e.loading=!0,r=e.mergeData(e.questionList),t.next=8,e.$app.insert("/ksgl/subjectManage/insertList",r);case 8:n=t.sent,"success"===n.code?(e.$message({message:"保存成功",type:"success"}),e.closeHandler(),e.loading=!1,e.$route.query.label=""):(e.$message.error(n.message),e.loading=!1);case 10:case"end":return t.stop()}}),t)})))()},mergeData:function(e){var t=this,r=[];return e.forEach((function(e){if(2===e.type||1===e.type){var n=e.dan.split("");n.forEach((function(t){e.optionList.forEach((function(e){e.optionNo===t&&(e.istrue=1)}))}))}3===e.type&&e.optionList.forEach((function(t){t.optionNo===e.dan&&(t.istrue=1)})),4===e.type&&(e.dan=e.dan.replace(/\|/g,"|#|")),2===e.type&&(e.dan=e.dan.split("").join(","));var a={answerExplain:e.jx,bankId:t.$route.query.taskId,content:e.content,name:e.tm.substring(0,10),optionList:e.optionList,orgCode:t.loginUser.orgCode,orgName:t.loginUser.orgName,trueOption:e.dan,type:e.type,status:1};r.push(a)})),r}}},tu=eu,ru=(r(7202),c(tu,gc,_c,!1,null,"8637aaea",null)),nu=ru.exports,au=function(){var e=this,t=e._self._c;return t("div",[t("a",{staticClass:"el-link el-link--default is-underline",staticStyle:{display:"inline-block"},attrs:{title:"题目管理"},on:{click:function(t){return e.ToManage(e.row,e.column,e.value,e.index)}}},[e._m(0)])])},ou=[function(){var e=this,t=e._self._c;return t("span",{staticClass:"el-link--inner"},[t("i",{staticClass:"el-icon-tickets"}),t("span",[e._v("题目管理")])])}],iu={components:{},props:{row:{type:Object,default:function(){return{}}},column:{type:Object,default:function(){return{}}},index:{type:String,default:function(){return"0"}}},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{ToManage:function(e,t,r,n){this.$bus.emit("changeList",e,t,r,n)}}},su=iu,lu=c(su,au,ou,!1,null,"5d45ebf2",null),cu=lu.exports,uu=function(){var e=this,t=e._self._c;return t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("题型")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("el-radio-group",{staticStyle:{width:"100%"},attrs:{disabled:e.vo.createTime},on:{change:e.changeQuestion},model:{value:e.vo.type,callback:function(t){e.$set(e.vo,"type",t)},expression:"vo.type"}},[t("el-radio",{attrs:{label:1}},[e._v("单选题")]),t("el-radio",{attrs:{label:2}},[e._v("多选题")]),t("el-radio",{attrs:{label:3}},[e._v("判断题")]),t("el-radio",{attrs:{label:4}},[e._v("填空题")]),t("el-radio",{attrs:{label:5}},[e._v("问答题")])],1)],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("题目名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"题目",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{type:"textarea",rows:3,resize:"none",required:!0},on:{blur:e.MakeOpations},model:{value:e.vo.content,callback:function(t){e.$set(e.vo,"content",t)},expression:"vo.content"}})],1)]}}])}),4===e.vo.type?t("div",{staticStyle:{color:"#999"}},[e._v('通过输入连续的英文下划线"_____",设置填空项')]):e._e()],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("答案")]),1===e.vo.type?t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticClass:"widthall",on:{change:e.changeSureAnswer},model:{value:e.DXTValue,callback:function(t){e.DXTValue=t},expression:"DXTValue"}},e._l(e.vo.optionList,(function(r,n){return t("tr",{key:n,staticClass:"chooseitem"},[t("el-radio",{attrs:{label:r.optionNo}},[e._v(e._s(r.optionNo))]),t("ValidationProvider",{ref:"ValidationProvider",refInFor:!0,attrs:{name:"答案",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a[0]},attrs:{disabled:void 0===a[0],content:a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticClass:"fixwidth400",class:{"border-none":!e.canEdit},attrs:{type:"text",readonly:e.readonly},on:{input:function(t){return e.$forceUpdate()}},model:{value:r.optionContent,callback:function(t){e.$set(r,"optionContent",t)},expression:"item.optionContent"}})],1)]}}],null,!0)}),4===e.vo.type?t("div",[e._v("通过输入下划线来设置填空题")]):e._e(),"A"===r.optionNo||e.readonly?e._e():t("i",{staticClass:"el-icon-top pointer",on:{click:function(t){return e.GoUpItem(r,n)}}}),e.readonly?e._e():t("i",{staticClass:"el-icon-delete pointer",on:{click:function(t){return e.DeleteItem(r,n,e.vo.type)}}})],1)})),0),t("div",{staticStyle:{width:"555px"}},[t("span",{staticClass:"fonttext"},[e._v("注:选中选项为正确答案")]),e.readonly?e._e():t("span",{staticStyle:{float:"right"}},[t("i",{staticClass:"el-icon-circle-plus-outline pointer",staticStyle:{"font-size":"20px"},on:{click:e.AddNewItem}})])])],1):2===e.vo.type?t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("el-checkbox-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticClass:"widthall",on:{change:e.DXchange},model:{value:e.DXTValue,callback:function(t){e.DXTValue=t},expression:"DXTValue"}},e._l(e.vo.optionList,(function(r,n){return t("tr",{key:n,staticClass:"chooseitem"},[t("el-checkbox",{key:r,staticStyle:{"margin-right":"30px"},attrs:{label:r.optionNo}},[e._v(e._s(r.optionNo))]),t("ValidationProvider",{ref:"ValidationProvider",refInFor:!0,attrs:{name:"答案",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a[0]},attrs:{disabled:void 0===a[0],content:a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticClass:"fixwidth400",class:{"border-none":!e.canEdit},attrs:{type:"text",readonly:e.readonly},on:{input:function(t){return e.$forceUpdate()}},model:{value:r.optionContent,callback:function(t){e.$set(r,"optionContent",t)},expression:"item.optionContent"}})],1)]}}],null,!0)}),"A"===r.optionNo||e.readonly?e._e():t("i",{staticClass:"el-icon-top pointer",on:{click:function(t){return e.GoUpItem(r,n)}}}),e.readonly?e._e():t("i",{staticClass:"el-icon-delete pointer",on:{click:function(t){return e.DeleteItem(r,n,e.vo.type)}}})],1)})),0),t("div",{staticStyle:{width:"555px"}},[t("span",{staticClass:"fonttext"},[e._v("注:选中选项为正确答案")]),e.readonly?e._e():t("span",{staticStyle:{float:"right"}},[t("i",{staticClass:"el-icon-circle-plus-outline pointer",staticStyle:{"font-size":"20px"},on:{click:e.AddNewItem}})])])],1):3===e.vo.type?t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticClass:"widthall",on:{change:e.changeSureAnswer},model:{value:e.DXTValue,callback:function(t){e.DXTValue=t},expression:"DXTValue"}},e._l(e.vo.optionList,(function(r,n){return t("tr",{key:n,staticClass:"chooseitem"},[t("el-radio",{attrs:{label:r.optionNo}},[e._v(e._s(r.optionNo))])],1)})),0),t("div",{staticStyle:{width:"555px"}},[t("span",{staticClass:"fonttext"},[e._v("注:选中选项为正确答案")])])],1):4===e.vo.type?t("td",{staticClass:"el-table__cell tdcont tdw83"},[e._l(e.TKTarr,(function(r,n){return t("tr",{key:n,staticClass:"chooseitem"},[t("ValidationProvider",{ref:"ValidationProvider",refInFor:!0,attrs:{name:"答案",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var a=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a[0]},attrs:{disabled:void 0===a[0],content:a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.readonly?e._e():t("el-input",{staticClass:"fixwidth400",staticStyle:{"margin-top":"10px"},attrs:{type:"text",readonly:e.readonly},model:{value:e.ChooseValue[n],callback:function(t){e.$set(e.ChooseValue,n,t)},expression:"ChooseValue[index]"}}),e.readonly?t("span",{staticClass:"readonlyFont"},[e._v(e._s(e.ChooseValue[n]))]):e._e()],1)]}}],null,!0)})],1)})),t("div",{staticStyle:{width:"480px"}},[t("span",{staticClass:"fonttext"},[e._v("注:请按顺序填写")])])],2):5===e.vo.type?t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"答案内容",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.readonly?e._e():t("el-input",{attrs:{readonly:e.readonly,type:"textarea",rows:3,resize:"none"},model:{value:e.vo.trueOption,callback:function(t){e.$set(e.vo,"trueOption",t)},expression:"vo.trueOption"}}),e.readonly?t("span",{staticClass:"readonlyFont"},[e._v(e._s(e.vo.trueOption))]):e._e()],1)]}}])})],1):e._e()]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("答案解析")]),e.readonly?e._e():t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"答案解析",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{readonly:e.readonly,type:"textarea",rows:3,resize:"none"},model:{value:e.vo.answerExplain,callback:function(t){e.$set(e.vo,"answerExplain",t)},expression:"vo.answerExplain"}})],1)]}}],null,!1,1575459185)})],1),e.readonly?t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("span",[e._v(e._s(e.vo.answerExplain))])]):e._e()])])])])])])},du=[],pu={components:{},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:function(){return 1}}},data:function(){return{EngLishArr:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ChooseDXTArr:["A","B","C","D"],ChoosePDTArr:["正确","错误"],TKTarr:[],readonly:!1,ChooseValue:[],DXTValue:"",isAutoReview:"",textareaAnswerAnalysis:""}},computed:{},watch:{ChooseValue:{handler:function(e,t){this.DellTKTanswer(e)}}},created:function(){},beforeDestroy:function(){},mounted:function(){console.log(this.canEdit),0===this.canEdit?this.readonly=!0:this.readonly=!1,this.vo.bankId=this.$route.query.taskId,this.vo.status=1,null===this.vo.type&&(this.vo.type=1),null===this.vo.optionList&&4!==this.vo.type?(this.vo.optionList=[],this.changeQuestionType(this.vo.type)):1===this.vo.type||3===this.vo.type?this.DXTValue=this.vo.trueOption:2===this.vo.type?this.DXTValue=this.DellString(this.vo.trueOption):4===this.vo.type&&(this.TKTarr=this.DellTKTanswer(this.vo.trueOption))},methods:{GoUpItem:function(e,t){var r=this;if(0!==this.canEdit&&this.vo.optionList.length>0)for(var n=0;n<this.vo.optionList.length;n++)if(n===t){1===this.vo.type&&(1===this.vo.optionList[n].istrue?this.vo.trueOption=this.DXTValue=this.vo.optionList[n-1].optionNo:1===this.vo.optionList[n-1].istrue&&(this.vo.trueOption=this.DXTValue=this.vo.optionList[n].optionNo));var a=this.vo.optionList[n].optionContent,o=this.vo.optionList[n].istrue;this.vo.optionList[n].optionContent=this.vo.optionList[n-1].optionContent,this.vo.optionList[n-1].optionContent=a,this.vo.optionList[n].istrue=this.vo.optionList[n-1].istrue,this.vo.optionList[n-1].istrue=o,2===this.vo.type&&(this.DXTValue=[],this.vo.optionList.forEach((function(e){1===e.istrue&&r.DXTValue.push(e.optionNo)}))),this.$forceUpdate()}},DeleteItem:function(e,t,r){var n=this;if(0!==this.canEdit){for(var a=this.vo.optionList.length,o=t;o<this.vo.optionList.length-1;o++)if(o!==a){var i=this.vo.optionList[o+1].optionContent,s=this.vo.optionList[o+1].istrue;this.vo.optionList[o].optionContent=i,this.vo.optionList[o].istrue=s}this.vo.optionList.pop(),this.DXTValue=[],console.log(this.vo.optionList),this.vo.optionList.forEach((function(e){1===e.istrue&&(1===r?n.DXTValue=e.optionNo:2===r&&n.DXTValue.push(e.optionNo))})),console.log(this.DXTValue),0===this.DXTValue.length&&(this.vo.trueOption=""),this.$forceUpdate()}},AddNewItem:function(){if(0!==this.canEdit){var e=this.vo.optionList.length,t={istrue:0,optionContent:"",optionNo:this.EngLishArr[e],subjectId:this.vo.id};this.vo.optionList.push(t)}},changeQuestion:function(e){this.vo.optionList=[],this.vo.content="",this.vo.trueOption="",this.vo.answerExplain="",1===e||3===e?(this.DXTValue="",this.changeQuestionType(e)):2===e?(this.DXTValue=[],this.changeQuestionType(e)):4===e&&(this.TKTarr=[])},changeSureAnswer:function(e){this.vo.optionList.forEach((function(t){t.optionNo===e&&(t.istrue=1)})),this.vo.trueOption=e},DellString:function(e){if(!(e instanceof Array)){var t=e.split(",");return this.DXTValue=t,t}for(var r="",n=0;n<e.length;n++)r+=e[n]+",";var a=r.substring(0,r.length-1);this.vo.trueOption=a},DellTKTanswer:function(e){if(!(e instanceof Array)){var t=/\|\#\|/g,r=e.replace(t,",").split(",");return this.ChooseValue=r,r}for(var n="",a=0;a<e.length;a++)n+=e[a]+"|#|";var o=n.substring(0,n.length-3);this.vo.trueOption=o},DXchange:function(e){var t=this;e.forEach((function(e){t.vo.optionList.forEach((function(t){e===t.optionNo&&(t.istrue=1)}))})),this.DellString(e)},MakeOpations:function(e){if(""===this.vo.content)this.TKTarr=[],this.ChooseValue=[],this.$forceUpdate();else if(this.vo.name=this.vo.content,4===this.vo.type&&this.vo.content){this.TKTarr=[];for(var t=/\_{2,100}/g,r=this.vo.content.match(t).length,n=0;n<r;n++)this.TKTarr.push("_")}},changeQuestionType:function(e){if(1===this.vo.type||2===this.vo.type)for(var t=0;t<this.ChooseDXTArr.length;t++){var r={istrue:0,optionContent:"",optionNo:"",subjectId:""};r.subjectId=this.vo.id,r.optionNo=this.ChooseDXTArr[t],this.vo.optionList.push(r)}else if(3===e)for(var n=0;n<this.ChoosePDTArr.length;n++){var a={istrue:0,optionContent:"",optionNo:"",subjectId:""};a.subjectId=this.vo.id,a.optionNo=this.ChoosePDTArr[n],this.vo.optionList.push(a)}}}},hu=pu,fu=(r(492),c(hu,uu,du,!1,null,"0696402a",null)),mu=fu.exports,yu=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[t("GiantTree",{attrs:{nodes:e.treeData},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick}})],1),t("RightPanel",[null!==e.rootName?t("configCategoryType",{attrs:{"root-name":e.rootName,vo:e.vo,"z-tree":e.zTree,"is-click":e.isClick,"busi-type":e.busiType,"node-name":e.nodeName},on:{deleteObject:e.deleteObject}}):e._e()],1)],1)},vu=[],gu=function(){var e=this,t=e._self._c;return t("div",[t("PageContent",{attrs:{title:e.rootName}},[null!==e.vo&&"tsys"!==e.vo.id?t("configCategoryForm",{attrs:{vo:e.vo,"can-edit":0}}):e._e(),null!==e.vo&&"tsys"===e.vo.id?t("div",{staticStyle:{"text-align":"left",width:"500px",margin:"0 250px",color:"#303133","font-size":"var(--portalFontSize14)"}},[t("p",[e._v("1、选中"+e._s(e.rootName)+"根目录,点击添加子分类,添加试卷一级分类")]),t("p",[e._v("2、点一级分类,可查看分类信息,管理分类信息,添加二级分类")]),t("p",[e._v("3、分类目前最多支持三级")])]):e._e(),t("div",{attrs:{slot:"footer"},slot:"footer"},[null!==e.vo&&("tsys"===e.vo.id||e.vo.tlevel<3)?t("el-button",{attrs:{plain:"",icon:"el-icon-plus"},on:{click:e.addObject}},[e._v("添加子分类")]):e._e(),null!==e.vo&&"tsys"!==e.vo.id?t("el-button",{attrs:{plain:"",icon:"el-icon-edit"},on:{click:e.editObject}},[e._v("修改")]):e._e(),null!==e.vo&&"tsys"!==e.vo.id?t("el-button",{attrs:{plain:"",icon:"el-icon-close"},on:{click:function(t){return e.deleteObject(e.vo)}}},[e._v("删除")]):e._e()],1)],1),t("Basicform",{attrs:{title:e.rootName,"win-width":e.moduleInfo.winWidth,"win-height":e.moduleInfo.winHeight,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-opened":e.onBasicFormOpened,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit,"on-basic-form-submited":e.onBasicFormSubmited},scopedSlots:e._u([{key:"default",fn:function(r){return[t("configCategoryForm",{attrs:{vo:r.vo,":can-edit":1,"module-info":e.moduleInfo,title:e.selectTitle}})]}}])})],1)},_u=[],bu=function(){var e=this,t=e._self._c;return t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[e.vo.tlevel>1?[0===e.canEdit?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("上级分类")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",[t("span",[e._v(e._s(e.vo.getParentNode().name))])])])]):e._e()]:e._e(),1===e.canEdit&&""!==e.title?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("上级分类")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("span",[e._v(e._s(e.title)+" ")]),0===e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.tname)}}):e._e()])]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("分类名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:"请输入分类名称"},model:{value:e.vo.tname,callback:function(t){e.$set(e.vo,"tname",t)},expression:"vo.tname"}})],1)]}}],null,!1,3741890061)}):e._e(),0===e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.tname)}}):e._e()],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v("排序编号")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"排序编号",rules:"required|length:4"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n[0]},attrs:{disabled:void 0===n[0],content:n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:"请输入4位数字排序编号"},model:{value:e.vo.orderNo,callback:function(t){e.$set(e.vo,"orderNo",t)},expression:"vo.orderNo"}})],1)]}}],null,!1,1960115379)}):e._e(),0===e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.orderNo)}}):e._e()],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[e._v("备注")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("form-item",{ref:"memo",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementType:"textarea",emptyMessage:"请输入备注",errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:0,onClickEvent:null,passenger:{},propComment:"备注",propName:"remark",propType:"String",textFormatter:"textarea",valueMaxLength:500,valueMinLength:null,model:"vo.remark",option:[],autosize:!1},vo:e.vo,"can-edit":e.canEdit,autosize:!1}})],1)])],2)])])])])},wu=[],xu={components:{},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1},title:{type:String,default:""}},data:function(){return{rootName:""}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{}},Lu=xu,Mu=c(Lu,bu,wu,!1,null,"9c30cdc0",null),ku=Mu.exports,Tu={components:{configCategoryForm:ku},props:{vo:{type:Object,default:function(){return{}}},busiType:{type:String,default:function(){return{}}},rootName:{type:String,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},isClick:{type:Boolean,default:!1},nodeName:{type:String,default:function(){return""}}},data:function(){return{title:"学习设置",moduleInfo:{moduleCode:"Module",addNewUrl:"/ksgl/configCategory/addNew",insertUrl:"/ksgl/configCategory/insert",getByIdUrl:"/ksgl/configCategory/getById",updateUrl:"/ksgl/configCategory/update",delUrl:"/ksgl/configCategory/delete",winWidth:900,winHeight:600},opearType:"",editDataForm:{orgCode:this.$store.getters.loginUser.orgCode,orgName:this.$store.getters.loginUser.orgName,passenger:{},tlevel:1},selectTitle:""}},computed:{},watch:{},created:function(){this.$bus.on("addMenu",this.addMenu),this.$bus.on("editMenu",this.editMenu),this.$bus.on("deleteMenu",this.deleteMenu)},beforeDestroy:function(){this.$bus.off("addMenu",this.addMenu),this.$bus.off("editMenu",this.editMenu),this.$bus.off("deleteMenu",this.deleteMenu)},mounted:function(){},methods:{addObject:function(){this.opearType="add",this.selectTitle="";var e=this.moduleInfo.addNewUrl.split("?")[0];e+="?parentId=",null===this.vo?this.moduleInfo.addNewUrl=e:(this.moduleInfo.addNewUrl=e+this.vo.id,this.selectTitle=this.vo.tname),this.$bus.emit("openBusiform",this.moduleInfo,null,1)},editObject:function(){this.selectTitle="",this.opearType="edit";var e=this.vo.fullName.split("-");e.length>1&&(this.selectTitle=e[e.length-2]),this.$bus.emit("openBusiform",this.moduleInfo,this.vo,1)},deleteObject:function(e){var t=this;this.opearType="delete";var r="确认删除“"+e.name+"”吗?";e.children&&e.children.length>0&&(r="确认删除“"+e.name+"”及下级全部类型吗?"),this.$confirm(r,{type:"warning",closeOnClickModal:!1}).then((function(){t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:e.id},url:t.moduleInfo.delUrl}).then((function(r){if("success"===r.code){var n=e.getParentNode();t.zTree.removeNode(e),t.zTree.selectNode(n),t.$bus.emit("updateTreeNode",n),t.$message.success(r.message)}else t.$alert(r.message,{type:"error"})}))}))},onBasicFormBeforeOpen:function(e,t,r){"add"===this.opearType&&(t.status=1),r.resolve(!0)},onBasicFormOpened:function(e,t){0},onBasicFormBeforeSubmit:function(e,t,r){e.isnew&&(null!==this.vo?(this.vo.id&&"tsys"===this.vo.id?(t.fullOrder=t.orderNo,t.fullName=t.tname,t.busiType=this.busiType,t.tlevel=1,t.parentId=this.vo.id):(t.fullOrder=this.vo.orderNo+"-"+t.orderNo,t.fullName=this.vo.tname+"-"+t.tname,t.busiType=this.busiType,t.tlevel=this.vo.tlevel+1,t.parentId=this.vo.id),2===this.vo.tlevel&&(t.fullOrder=this.vo.fullOrder+"-"+t.orderNo,t.fullName=this.vo.fullName+"-"+t.tname)):(t.busiType=this.busiType,t.tlevel=1)),r.resolve(!0)},onBasicFormSubmited:function(e,t){t.title=t.name,void 0!==t.pId&&null!==t.pId||(t.pId=t.parentId||"tsys"),t.name=t.tname,this.$bus.emit("updateTreeNode",t)}}},Du=Tu,Yu=c(Du,gu,_u,!1,null,"0328b3b4",null),Su=Yu.exports;function Cu(e){return Cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cu(e)}function ju(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ju=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function _(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=_.prototype=v.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Cu(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function T(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=D(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function D(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,D(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function Y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Y,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Cu(t)+" is not iterable")}return g.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(L),c(L,l,"Generator"),c(L,i,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Eu(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Ou(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Eu(o,n,a,i,s,"next",e)}function s(e){Eu(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Pu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Au(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pu(Object(r),!0).forEach((function(t){Nu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nu(e,t,r){return(t=Hu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hu(e){var t=Iu(e,"string");return"symbol"==Cu(t)?t:t+""}function Iu(e,t){if("object"!=Cu(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Cu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Fu={components:{configCategoryType:Su},props:{},data:function(){return{moduleInfo:{moduleCode:"configCategory",addNewUrl:"/ksgl/configCategory/addNew",insertUrl:"/ksgl/configCategory/insert",updateUrl:"/ksgl/configCategory/update",delUrl:"/ksgl/configCategory/delete",winWidth:900,winHeight:600,getByIdUrl:"/ksgl/configCategory/getById",loadTreeNodeUrl:"/ksgl/configCategory/querydata"},root:null,vo:null,treeData:[],zTree:{},nodeName:"",isClick:!1,busiType:"",rootName:null}},computed:Au({},ce(["loginUser"])),watch:{},created:function(){var e=this;return Ou(ju().mark((function t(){var r,n;return ju().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.$route.meta.params,n=r.indexOf("="),e.busiType=r.slice(n+1,r.length),"3"===e.busiType?e.rootName="课程分类":"1"===e.busiType?e.rootName="题库分类":"2"===e.busiType&&(e.rootName="试卷分类"),e.root={id:"tsys",name:e.rootName,open:!0,title:e.rootName},t.next=7,e.loadTypeTree();case 7:e.$bus.emit("showNavSearch",!1),e.$bus.on("refreshTreeData",e.refreshTreeData);case 9:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.$bus.off("refreshTreeData",this.refreshTreeData)},mounted:function(){},methods:{loadTypeTree:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{orderBy:"orderNo asc"},data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode},{compare:"=",field:"busiType",merge:!0,value:this.busiType}],url:this.moduleInfo.loadTreeNodeUrl}).then((function(t){"success"===t.code?e.treeData=e.treeDataAdapter([e.root].concat(t.body.listdata)):e.$alert(t.message,"操作提示",{type:"error"})}))},treeDataAdapter:function(e){var t=this;return e.forEach((function(e){null===e.parentId?(e.pId=t.root.id,e.name=e.tname):void 0!==e.parentId&&null!==e.parentId&&(e.pId=e.parentId,e.name=e.tname),e.title=e.name})),e},refreshTreeData:function(e){null===e?this.loadTypeTree():this.treeData=this.treeDataAdapter([this.root].concat(e))},onTreeNodeClick:function(e,t,r){var n=this;"tsys"!==r.id?this.isClick=!0:this.isClick=!1,this.nodeName=r.name;var a=JSON.parse(JSON.stringify(this.root));this.root=null,this.$nextTick((function(e){"tsys"===r.id?n.vo=a:n.vo=r,n.root=a}))},onTreeCreated:function(e){this.zTree=e;var t=e.getNodes();if(0===t.length)return!1;void 0===t[0].children?(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0]),t[0].tlevel=1):t[0].children.length>=1?(this.onTreeNodeClick("",t[0].children[0].id,t[0].children[0]),e.selectNode(t[0].children[0])):(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0]),t[0].tlevel=1)},getDetailData:function(e){var t=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{id:e,canEdit:0},url:this.moduleInfo.getByIdUrl}).then((function(e){"success"===e.code?t.vo=e.body.vo:t.$alert(e.message,"操作提示",{type:"error"})}))},getNodeParentName:function(e){var t=e.getParentNode(),r="";while(null!==t&&t.getParentNode)r=t.name+"/"+r,t=t.getParentNode();return""===r?"/":r}}},zu=Fu,Bu=c(zu,yu,vu,!1,null,"6ddb7565",null),Gu=Bu.exports;function Ru(e){return Ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ru(e)}function Wu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wu(Object(r),!0).forEach((function(t){Uu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Uu(e,t,r){return(t=qu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qu(e){var t=Xu(e,"string");return"symbol"==Ru(t)?t:t+""}function Xu(e,t){if("object"!=Ru(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ru(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ku={KsglComponentDanxuanProblem:d,KsglComponentDuoxuanProblem:v,KsglComponentTiankongProblem:L,KsglComponentWendaProblem:S,KsglComponentChooseType:Ce,KsglComponentExportData:Ie,KsglComponentKsglCascaderType:Te,KsglComponentMyHeader:We,KsglComponentProblemDetail:ot,KsglGrzxSjpyExamPaperCorrecting:mt,KsglGrzxWdct:kt,KsglGrzxWdksExamDetail:zt,KsglGrzxWdksOnlineExam:tr,KsglGrzxWdksSubmitResult:yr,KsglGrzxWdxx:jr,KsglKcglCalendar:Qr,KsglKcglComponentDoExercise:dn,KsglKcglComponentExerciseDetail:Ln,KsglKcglComponentExerciseRecord:Qn,KsglKcglComponentComment:ca,KsglKcglComponentCourse:Da,KsglKcglComponentCourseDetail:Wa,KsglKcglComponentCourseTop:Rn,KsglKcglComponentCourseWare:io,KsglKcglComponentLessonList:ho,KsglKcglComponentPXTimeControl:Po,KsglKcglComponentTeacherList:zo,KsglKcglAddNewLesson:si,KsglKcglIndex:vi,KsglKcglIndexJS:Di,KsglKczx:Gi,KsglExamChoosePaperOrLesson:Xi,KsglExamOperationCloums:as,KsglExamPaperHeader:bs,KsglExamAddNewExam:Ns,KsglExamDetail:Gs,KsglPaperOperationCloums:Zs,KsglPaperEdit:gl,KsglPortletEntry:Ol,KsglPortletXxxx:Kl,KsglPortletXyxx:oc,KsglTjfxXftj:dc,KsglTjfxXxtj:vc,KsglTkglAddSome:nu,KsglTkglCloumsToMannger:cu,KsglTkglOtherType:jc,KsglTkglQuestion:Kc,KsglTkglSample:Rc,KsglTkglSpecification:Hc,KsglTkglXuanZe:kc,KsglTkglAddSubjectManage:mu,KsglXxszConfigCategory:Gu},Ju=function e(t){e.installed||(e.installed=!0,Object.keys(Ku).forEach((function(e){t.component(e,Ku[e])})))};"undefined"!==typeof window&&window.Vue&&Ju(window.Vue);var Qu=Vu({install:Ju},Ku),Zu=Qu}(),n}()}));
|