123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967 |
- webpackJsonp([6,12],{
- /***/ 292:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(843)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(845)
- /* template */
- var __vue_template__ = __webpack_require__(856)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-0172190c"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/pages/docs.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-0172190c", Component.options)
- } else {
- hotAPI.reload("data-v-0172190c", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 307:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(308)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(310)
- /* template */
- var __vue_template__ = __webpack_require__(311)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-35be3d57"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/WContent.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-35be3d57", Component.options)
- } else {
- hotAPI.reload("data-v-35be3d57", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 308:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(309);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("5ee96958", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-35be3d57\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./WContent.vue", function() {
- var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-35be3d57\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./WContent.vue");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 309:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- exports.push([module.i, "\n.w-content[data-v-35be3d57] {\n position: absolute;\n top: 72px;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: auto;\n background-repeat: no-repeat;\n background-position: center;\n background-color: #EEEEEE;\n background-size: cover;\n}\n.w-content .w-container[data-v-35be3d57] {\n min-height: 500px;\n}\n", ""]);
- // exports
- /***/ }),
- /***/ 310:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'WContent',
- data: function data() {
- return {
- bgid: -1
- };
- },
- mounted: function mounted() {
- this.bgid = $A.runNum(this.usrInfo.bgid);
- },
- watch: {
- usrInfo: {
- handler: function handler(info) {
- this.bgid = $A.runNum(info.bgid);
- },
- deep: true
- }
- },
- methods: {
- getBgUrl: function getBgUrl(id, thumb) {
- if (id < 0) {
- return 'none';
- }
- id = Math.max(1, parseInt(id));
- return 'url(' + window.location.origin + '/images/bg/' + (thumb ? 'thumb/' : '') + id + '.jpg' + ')';
- }
- }
- });
- /***/ }),
- /***/ 311:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "w-content",
- style: "background-image:" + _vm.getBgUrl(_vm.bgid)
- },
- [_vm._t("default")],
- 2
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-35be3d57", module.exports)
- }
- }
- /***/ }),
- /***/ 327:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(361)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(363)
- /* template */
- var __vue_template__ = __webpack_require__(364)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-455d3017"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/docs/NestedDraggable.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-455d3017", Component.options)
- } else {
- hotAPI.reload("data-v-455d3017", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 361:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(362);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("02b85fe6", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-455d3017\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./NestedDraggable.vue", function() {
- var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-455d3017\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./NestedDraggable.vue");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 362:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- exports.push([module.i, "\n.docs-group[data-v-455d3017] {\n cursor: move;\n}\n.docs-group.readonly[data-v-455d3017] {\n cursor: default;\n}\n.docs-group.hidden-children .docs-group[data-v-455d3017] {\n display: none;\n}\n.docs-group.hidden-children .item .together[data-v-455d3017] {\n display: block;\n}\n.docs-group .docs-group[data-v-455d3017] {\n padding-left: 14px;\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAABS2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIi8+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJyIj8+LUNEtwAAAEtJREFUSIntzzEVwAAMQkFSKfi3FKzQqQ5oJm5h5P3ZXQMYkrgwtk+OPo8kSzo7bGFcC+NaGNfCuBbGtTCuhXEtzB+SHAAGAEm/7wv2LKvDNoBjfgAAAABJRU5ErkJggg==) no-repeat -2px -9px;\n margin-left: 18px;\n border-left: 1px dotted #ddd;\n}\n.docs-group .item[data-v-455d3017] {\n padding: 4px 0 0 4px;\n background-color: #ffffff;\n border: solid 1px #ffffff;\n line-height: 24px;\n position: relative;\n}\n.docs-group .item .together[data-v-455d3017] {\n display: none;\n cursor: pointer;\n position: absolute;\n font-size: 12px;\n color: #ffb519;\n top: 50%;\n left: -2px;\n margin-top: 1px;\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n z-index: 1;\n}\n.docs-group .item .dashed[data-v-455d3017] {\n position: absolute;\n margin: 0;\n padding: 0;\n top: 16px;\n right: 0;\n left: 20px;\n height: 2px;\n border-width: 0 0 1px 0;\n border-bottom: dashed 1px #eee;\n}\n.docs-group .item .header[data-v-455d3017] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n position: relative;\n background: #fff;\n padding: 0 8px;\n cursor: pointer;\n}\n.docs-group .item .header .tip[data-v-455d3017] {\n display: inline-block;\n position: relative;\n}\n.docs-group .item .header .tip > img[data-v-455d3017] {\n display: inline-block;\n width: 14px;\n height: 14px;\n margin-top: 5px;\n vertical-align: top;\n}\n.docs-group .item .header .title[data-v-455d3017] {\n display: inline-block;\n border-bottom: 1px solid transparent;\n cursor: pointer;\n padding: 0 3px 0 7px;\n color: #555555;\n word-break: break-all;\n}\n.docs-group .item .header .title.active[data-v-455d3017] {\n color: #0396f2;\n}\n.docs-group .item .info[data-v-455d3017] {\n position: absolute;\n background: #fff;\n padding-left: 12px;\n color: #666;\n right: 3px;\n top: 5px;\n}\n.docs-group .item .info > i[data-v-455d3017] {\n padding: 0 2px;\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n cursor: pointer;\n}\n.docs-group .item .info > i[data-v-455d3017]:hover {\n -webkit-transform: scale(1.2);\n transform: scale(1.2);\n}\n", ""]);
- // exports
- /***/ }),
- /***/ 363:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuedraggable__ = __webpack_require__(51);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuedraggable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vuedraggable__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: "NestedDraggable",
- props: {
- lists: {
- required: true,
- type: Array
- },
- isChildren: {
- type: Boolean,
- default: false
- },
- disabled: {
- type: Boolean,
- default: false
- },
- readonly: {
- type: Boolean,
- default: false
- },
- activeid: {
- default: ''
- }
- },
- data: function data() {
- return {
- listSortData: '',
- childrenHidden: false
- };
- },
- components: {
- draggable: __WEBPACK_IMPORTED_MODULE_0_vuedraggable___default.a
- },
- mounted: function mounted() {
- this.listSortData = this.getSort(this.lists);
- },
- methods: {
- getSort: function getSort(lists) {
- var _this = this;
- var parentid = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
- var sortData = "";
- lists.forEach(function (item) {
- sortData += item.id + ":" + parentid + ";" + _this.getSort(item.children, item.id);
- });
- return sortData;
- },
- handleClick: function handleClick(act, detail) {
- if (act == 'open') {
- if (detail.type == 'folder') {
- this.$set(detail, 'hiddenChildren', !detail.hiddenChildren);
- return;
- }
- }
- if (act == 'sort') {
- if (this.isChildren) {
- this.$emit("change", act, detail);
- } else {
- var tempSortData = this.getSort(this.lists);
- if (tempSortData != this.listSortData) {
- this.listSortData = tempSortData;
- this.$emit("change", act, tempSortData);
- }
- }
- return;
- }
- this.$emit("change", act, detail);
- }
- }
- });
- /***/ }),
- /***/ 364:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "draggable",
- {
- attrs: {
- tag: "div",
- list: _vm.lists,
- group: { name: "docs-nested" },
- animation: 150,
- disabled: _vm.disabled || _vm.readonly
- },
- on: {
- sort: function($event) {
- return _vm.handleClick("sort")
- }
- }
- },
- _vm._l(_vm.lists, function(detail) {
- return _c(
- "div",
- {
- key: detail.id,
- staticClass: "docs-group",
- class: {
- readonly: _vm.readonly,
- "hidden-children": detail.hiddenChildren === true
- }
- },
- [
- _c(
- "div",
- { staticClass: "item" },
- [
- _c("Icon", {
- staticClass: "together",
- attrs: { type: "md-add" },
- on: {
- click: function($event) {
- return _vm.handleClick("open", detail)
- }
- }
- }),
- _vm._v(" "),
- _c("div", { staticClass: "dashed" }),
- _vm._v(" "),
- _c("div", { staticClass: "header" }, [
- _c("div", { staticClass: "tip" }, [
- _c("img", { attrs: { src: detail.icon } })
- ]),
- _vm._v(" "),
- _c(
- "div",
- {
- staticClass: "title",
- class: { active: _vm.activeid == detail.id },
- on: {
- click: function($event) {
- return _vm.handleClick("open", detail)
- }
- }
- },
- [_vm._v(_vm._s(detail.title))]
- )
- ]),
- _vm._v(" "),
- !_vm.readonly
- ? _c(
- "div",
- { staticClass: "info" },
- [
- _c("Icon", {
- attrs: { type: "md-create" },
- on: {
- click: function($event) {
- return _vm.handleClick("edit", detail)
- }
- }
- }),
- _vm._v(" "),
- _c("Icon", {
- attrs: { type: "md-add" },
- on: {
- click: function($event) {
- return _vm.handleClick("add", detail)
- }
- }
- }),
- _vm._v(" "),
- _c("Icon", {
- attrs: { type: "md-trash" },
- on: {
- click: function($event) {
- return _vm.handleClick("delete", detail)
- }
- }
- })
- ],
- 1
- )
- : _vm._e()
- ],
- 1
- ),
- _vm._v(" "),
- typeof detail.children === "object" && detail.children !== null
- ? _c("nested-draggable", {
- attrs: {
- lists: detail.children,
- isChildren: true,
- disabled: _vm.disabled,
- readonly: _vm.readonly,
- activeid: _vm.activeid
- },
- on: { change: _vm.handleClick }
- })
- : _vm._e()
- ],
- 1
- )
- }),
- 0
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-455d3017", module.exports)
- }
- }
- /***/ }),
- /***/ 843:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(844);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("529cbb4f", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-0172190c\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./docs.vue", function() {
- var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-0172190c\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./docs.vue");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 844:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- exports.push([module.i, "\n.docs .docs-main[data-v-0172190c] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n width: 100%;\n min-width: 1024px;\n height: 100%;\n padding: 15px;\n}\n.docs .docs-main .docs-body[data-v-0172190c] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n width: 100%;\n height: 100%;\n min-height: 500px;\n}\n.docs .docs-main .docs-body .docs-menu[data-v-0172190c] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n width: 230px;\n border-radius: 3px 0 0 3px;\n background: rgba(255, 255, 255, 0.8);\n}\n.docs .docs-main .docs-body .docs-menu h3[data-v-0172190c] {\n font-size: 18px;\n font-weight: normal;\n padding: 10px 12px;\n color: #333333;\n}\n.docs .docs-main .docs-body .docs-menu ul[data-v-0172190c] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n overflow: auto;\n}\n.docs .docs-main .docs-body .docs-menu ul li[data-v-0172190c] {\n padding: 12px;\n cursor: pointer;\n}\n.docs .docs-main .docs-body .docs-menu ul li.more[data-v-0172190c] {\n text-align: center;\n color: #555555;\n margin-bottom: 6px;\n}\n.docs .docs-main .docs-body .docs-menu ul li.more[data-v-0172190c]:hover {\n color: #333333;\n}\n.docs .docs-main .docs-body .docs-menu ul li.load[data-v-0172190c] {\n text-align: center;\n height: 42px;\n margin-bottom: 9px;\n}\n.docs .docs-main .docs-body .docs-menu ul li.none[data-v-0172190c] {\n background-color: transparent;\n text-align: center;\n color: #666666;\n padding: 8px 18px;\n}\n.docs .docs-main .docs-body .docs-menu ul li.active[data-v-0172190c] {\n background-color: #ffffff;\n}\n.docs .docs-main .docs-body .docs-menu ul li .docs-title[data-v-0172190c] {\n color: #242424;\n font-size: 13px;\n}\n.docs .docs-main .docs-body .docs-menu ul li .docs-time[data-v-0172190c] {\n display: block;\n color: #999;\n font-size: 12px;\n margin-top: 2px;\n position: relative;\n}\n.docs .docs-main .docs-body .docs-container[data-v-0172190c] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n background-color: #ffffff;\n border-radius: 0 3px 3px 0;\n}\n.docs .docs-main .docs-body .docs-container .docs-box[data-v-0172190c] {\n width: 100%;\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.docs .docs-main .docs-body .docs-container .docs-header[data-v-0172190c] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n margin: 6px 24px 0;\n padding: 12px 0;\n border-bottom: 1px solid #eeeeee;\n}\n.docs .docs-main .docs-body .docs-container .docs-header .docs-h1[data-v-0172190c] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-size: 16px;\n white-space: nowrap;\n}\n.docs .docs-main .docs-body .docs-container .docs-header .docs-setting[data-v-0172190c] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.docs .docs-main .docs-body .docs-container .docs-header .docs-setting > button[data-v-0172190c] {\n margin: 0 6px;\n}\n.docs .docs-main .docs-body .docs-container .docs-header .docs-setting > button[data-v-0172190c]:last-child {\n margin-right: 0;\n}\n.docs .docs-main .docs-body .docs-container .docs-section[data-v-0172190c] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n padding: 12px 26px;\n overflow: auto;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n}\n.docs .docs-main .docs-body .docs-container .docs-section .none[data-v-0172190c] {\n background-color: transparent;\n text-align: center;\n color: #666666;\n padding: 48px 24px;\n}\n", ""]);
- // exports
- /***/ }),
- /***/ 845:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_WContent__ = __webpack_require__(307);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_WContent___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__components_WContent__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_docs_NestedDraggable__ = __webpack_require__(327);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_docs_NestedDraggable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_docs_NestedDraggable__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_docs_setting__ = __webpack_require__(846);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_docs_setting___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_docs_setting__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_docs_users__ = __webpack_require__(851);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_docs_users___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__components_docs_users__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_iview_WDrawer__ = __webpack_require__(49);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_iview_WDrawer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__components_iview_WDrawer__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- components: { WDrawer: __WEBPACK_IMPORTED_MODULE_4__components_iview_WDrawer___default.a, BookUsers: __WEBPACK_IMPORTED_MODULE_3__components_docs_users___default.a, BookSetting: __WEBPACK_IMPORTED_MODULE_2__components_docs_setting___default.a, NestedDraggable: __WEBPACK_IMPORTED_MODULE_1__components_docs_NestedDraggable___default.a, WContent: __WEBPACK_IMPORTED_MODULE_0__components_WContent___default.a },
- data: function data() {
- return {
- loadIng: 0,
- bookLists: [],
- bookListPage: 1,
- bookListTotal: 0,
- bookLoading: false,
- bookHasMorePages: false,
- bookNoDataText: "",
- addBookId: 0,
- addBookShow: false,
- formBookAdd: {
- title: ''
- },
- ruleBookAdd: {},
- selectBookData: {},
- sectionLists: [],
- sectionNoDataText: "",
- addSectionId: 0,
- addSectionShow: false,
- formSectionAdd: {
- title: '',
- type: 'document'
- },
- ruleSectionAdd: {},
- sectionTypeLists: [],
- sortDisabled: false,
- settingDrawerShow: false,
- settingDrawerTab: 'setting'
- };
- },
- mounted: function mounted() {
- this.getBookLists(true);
- },
- deactivated: function deactivated() {
- this.addBookShow = false;
- this.addSectionShow = false;
- },
- computed: {},
- watch: {
- usrName: function usrName() {
- this.usrLogin && this.getBookLists(true);
- },
- addBookShow: function addBookShow(val) {
- var _this = this;
- if (val && this.addBookId > 0) {
- var tempLists = this.bookLists.filter(function (res) {
- return res.id == _this.addBookId;
- });
- if (tempLists.length === 1) {
- this.$set(this.formBookAdd, 'title', tempLists[0].title);
- } else {
- this.$set(this.formBookAdd, 'title', '');
- }
- }
- },
- addSectionShow: function addSectionShow(val) {
- var _this2 = this;
- if (val && this.addSectionId > 0) {
- var tempLists = this.children2lists(this.sectionLists).filter(function (res) {
- return res.id == _this2.addSectionId;
- });
- if (tempLists.length === 1) {
- this.$set(this.formSectionAdd, 'title', tempLists[0].title);
- } else {
- this.$set(this.formSectionAdd, 'title', '');
- }
- }
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- this.bookNoDataText = this.$L("数据加载中.....");
- this.sectionNoDataText = this.$L("数据加载中.....");
- this.sectionTypeLists = [{ value: 'document', text: this.$L("文本") }, { value: 'mind', text: this.$L("脑图") }, { value: 'sheet', text: this.$L("表格") }, { value: 'flow', text: this.$L("流程图") }, { value: 'folder', text: this.$L("目录") }];
- this.ruleBookAdd = {
- title: [{ required: true, message: this.$L('请填写知识库名称!'), trigger: 'change' }, { type: 'string', min: 2, message: this.$L('知识库名称长度至少2位!'), trigger: 'change' }]
- };
- this.ruleSectionAdd = {
- title: [{ required: true, message: this.$L('请填写文档标题!'), trigger: 'change' }, { type: 'string', min: 2, message: this.$L('文档标题长度至少2位!'), trigger: 'change' }],
- type: [{ required: true }]
- };
- },
- children2lists: function children2lists(lists) {
- var _this3 = this;
- var array = [];
- lists.forEach(function (item) {
- array.push({
- id: item.id,
- title: item.title
- });
- array = array.concat(_this3.children2lists(item.children));
- });
- return array;
- },
- getBookLists: function getBookLists(resetLoad) {
- var _this4 = this;
- if (resetLoad === true) {
- this.bookListPage = 1;
- } else {
- if (this.bookHasMorePages === false) {
- return;
- }
- this.bookListPage++;
- }
- this.bookLoading = true;
- this.bookNoDataText = this.$L("数据加载中.....");
- this.bookHasMorePages = false;
- $A.apiAjax({
- url: 'docs/book/lists',
- data: {
- page: Math.max(this.bookListPage, 1),
- pagesize: 20
- },
- complete: function complete() {
- _this4.bookLoading = false;
- },
- error: function error() {
- _this4.bookNoDataText = _this4.$L("数据加载失败!");
- },
- success: function success(res) {
- if (res.ret === 1) {
- res.data.lists.forEach(function (item) {
- var find = _this4.bookLists.find(function (t) {
- return t.id == item.id;
- });
- if (!find) {
- _this4.bookLists.push(item);
- }
- });
- _this4.bookListTotal = res.data.total;
- _this4.bookNoDataText = _this4.$L("没有相关的数据");
- _this4.bookHasMorePages = res.data.hasMorePages;
- if (typeof _this4.selectBookData.id === "undefined") {
- _this4.selectBookData = _this4.bookLists[0];
- _this4.getSectionLists();
- }
- } else {
- _this4.bookLists = [];
- _this4.bookListTotal = 0;
- _this4.bookNoDataText = res.msg;
- }
- }
- });
- },
- onBookAdd: function onBookAdd() {
- var _this5 = this;
- this.$refs.bookAdd.validate(function (valid) {
- if (valid) {
- _this5.loadIng++;
- $A.apiAjax({
- url: 'docs/book/add',
- data: Object.assign(_this5.formBookAdd, { id: _this5.addBookId }),
- complete: function complete() {
- _this5.loadIng--;
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this5.addBookShow = false;
- _this5.$Message.success(res.msg);
- _this5.$refs.bookAdd.resetFields();
- //
- if (_this5.addBookId > 0) {
- _this5.bookLists.some(function (item) {
- if (item.id == _this5.addBookId) {
- _this5.$set(item, 'title', res.data.title);
- return true;
- }
- });
- } else {
- _this5.bookLists.unshift(res.data);
- _this5.selectBookData = _this5.bookLists[0];
- _this5.getSectionLists();
- }
- } else {
- _this5.$Modal.error({ title: _this5.$L('温馨提示'), content: res.msg });
- }
- }
- });
- }
- });
- },
- onBookDelete: function onBookDelete(bookId) {
- var _this6 = this;
- this.$Modal.confirm({
- title: this.$L('删除知识库'),
- content: this.$L('你确定要删除此知识库吗?'),
- loading: true,
- onOk: function onOk() {
- $A.apiAjax({
- url: 'docs/book/delete',
- data: {
- id: bookId
- },
- error: function error() {
- _this6.$Modal.remove();
- alert(_this6.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this6.$Modal.remove();
- _this6.bookLists.some(function (item, index) {
- if (item.id == bookId) {
- _this6.bookLists.splice(index, 1);
- return true;
- }
- });
- _this6.selectBookData = _this6.bookLists.length > 0 ? _this6.bookLists[0] : {};
- _this6.getSectionLists();
- //
- setTimeout(function () {
- if (res.ret === 1) {
- _this6.$Message.success(res.msg);
- } else {
- _this6.$Modal.error({ title: _this6.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- }
- });
- },
- getSectionLists: function getSectionLists(isClear) {
- var _this7 = this;
- if (isClear === true) {
- this.sectionLists = [];
- }
- var bookid = this.selectBookData.id;
- this.loadIng++;
- this.sectionNoDataText = this.$L("数据加载中.....");
- $A.apiAjax({
- url: 'docs/section/lists',
- data: {
- act: 'edit',
- bookid: bookid
- },
- complete: function complete() {
- _this7.loadIng--;
- },
- error: function error() {
- if (bookid != _this7.selectBookData.id) {
- return;
- }
- _this7.sectionNoDataText = _this7.$L("数据加载失败!");
- },
- success: function success(res) {
- if (bookid != _this7.selectBookData.id) {
- return;
- }
- if (res.ret === 1) {
- _this7.sectionLists = res.data.tree;
- _this7.sectionNoDataText = _this7.$L("没有相关的数据");
- } else {
- _this7.sectionLists = [];
- _this7.sectionNoDataText = res.msg;
- }
- }
- });
- },
- onSectionAdd: function onSectionAdd() {
- var _this8 = this;
- this.$refs.sectionAdd.validate(function (valid) {
- if (valid) {
- _this8.loadIng++;
- var bookid = _this8.selectBookData.id;
- $A.apiAjax({
- url: 'docs/section/add',
- data: Object.assign(_this8.formSectionAdd, {
- id: _this8.addSectionId,
- bookid: bookid
- }),
- complete: function complete() {
- _this8.loadIng--;
- },
- success: function success(res) {
- if (bookid != _this8.selectBookData.id) {
- return;
- }
- if (res.ret === 1) {
- _this8.addSectionShow = false;
- _this8.$Message.success(res.msg);
- _this8.$refs.sectionAdd.resetFields();
- //
- _this8.getSectionLists();
- } else {
- _this8.$Modal.error({ title: _this8.$L('温馨提示'), content: res.msg });
- }
- }
- });
- }
- });
- },
- onSectionDelete: function onSectionDelete(detail) {
- var _this9 = this;
- var sectionType = this.sectionTypeLists.find(function (item) {
- return item.value == detail.type;
- });
- this.$Modal.confirm({
- title: this.$L('删除文档'),
- content: this.$L('你确定要删除%【%】吗?', sectionType ? sectionType.text : '', detail.title),
- loading: true,
- onOk: function onOk() {
- $A.apiAjax({
- url: 'docs/section/delete',
- data: {
- id: detail.id
- },
- error: function error() {
- _this9.$Modal.remove();
- alert(_this9.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this9.$Modal.remove();
- _this9.getSectionLists();
- //
- setTimeout(function () {
- if (res.ret === 1) {
- _this9.$Message.success(res.msg);
- } else {
- _this9.$Modal.error({ title: _this9.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- }
- });
- },
- handleSection: function handleSection(act, detail) {
- var _this10 = this;
- switch (act) {
- case 'open':
- this.goForward({ name: 'docs-edit', params: { sid: detail.id, other: detail || {} } });
- break;
- case 'edit':
- this.addSectionId = detail.id;
- this.addSectionShow = true;
- break;
- case 'add':
- this.addSectionId = detail.id * -1;
- this.addSectionShow = true;
- break;
- case 'delete':
- if (this.sortDisabled) {
- this.$Modal.warning({
- title: this.$L('温馨提示'),
- content: this.$L('正在进行其他操作,请稍后重试...')
- });
- return;
- }
- this.onSectionDelete(detail);
- break;
- case 'sort':
- this.sortDisabled = true;
- this.loadIng++;
- $A.apiAjax({
- url: 'docs/section/sort',
- data: {
- bookid: this.selectBookData.id,
- newsort: detail
- },
- complete: function complete() {
- _this10.sortDisabled = false;
- _this10.loadIng--;
- },
- error: function error() {
- _this10.getSectionLists();
- alert(_this10.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this10.$Message.success(res.msg);
- } else {
- _this10.getSectionLists();
- _this10.$Modal.error({ title: _this10.$L('温馨提示'), content: res.msg });
- }
- }
- });
- break;
- }
- },
- showShare: function showShare() {
- var _this11 = this;
- this.$Modal.confirm({
- render: function render(h) {
- return h('div', [h('div', {
- style: {
- fontSize: '16px',
- fontWeight: '500',
- marginBottom: '20px'
- }
- }, _this11.$L('文档链接')), h('Input', {
- props: {
- value: $A.webUrl('docs/view/b' + _this11.selectBookData.id),
- readonly: true
- }
- })]);
- }
- });
- },
- settingCallback: function settingCallback(data) {
- var _this12 = this;
- var tmpData = this.bookLists.find(function (_ref) {
- var id = _ref.id;
- return id == data.id;
- });
- if (tmpData) {
- $A.each(data, function (key, val) {
- _this12.$set(tmpData, key, val);
- });
- }
- }
- }
- });
- /***/ }),
- /***/ 846:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(847)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(849)
- /* template */
- var __vue_template__ = __webpack_require__(850)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-b2d13f9e"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/docs/setting.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-b2d13f9e", Component.options)
- } else {
- hotAPI.reload("data-v-b2d13f9e", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 847:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(848);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("94f30462", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-b2d13f9e\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./setting.vue", function() {
- var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-b2d13f9e\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./setting.vue");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 848:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- exports.push([module.i, "\n.book-setting[data-v-b2d13f9e] {\n padding: 0 12px;\n}\n.book-setting .form-title[data-v-b2d13f9e] {\n font-weight: bold;\n}\n.book-setting .form-link[data-v-b2d13f9e] {\n text-decoration: underline;\n}\n.book-setting .form-placeholder[data-v-b2d13f9e] {\n font-size: 12px;\n color: #999999;\n}\n.book-setting .form-placeholder[data-v-b2d13f9e]:hover {\n color: #000000;\n}\n", ""]);
- // exports
- /***/ }),
- /***/ 849:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BookSetting',
- components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
- props: {
- id: {
- default: 0
- },
- canload: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- loadYet: false,
- loadIng: 0,
- formSystem: {}
- };
- },
- mounted: function mounted() {
- if (this.canload) {
- this.loadYet = true;
- this.getSetting();
- }
- },
- watch: {
- id: function id() {
- if (this.loadYet) {
- this.getSetting();
- }
- },
- canload: function canload(val) {
- if (val && !this.loadYet) {
- this.loadYet = true;
- this.getSetting();
- }
- }
- },
- methods: {
- getSetting: function getSetting(save) {
- var _this = this;
- this.loadIng++;
- $A.apiAjax({
- url: 'docs/book/setting?type=' + (save ? 'save' : 'get'),
- data: Object.assign(this.formSystem, {
- id: this.id
- }),
- complete: function complete() {
- _this.loadIng--;
- },
- success: function success(res) {
- if (res.ret === 1) {
- var data = res.data;
- data.role_edit = data.role_edit || 'reg';
- data.role_look = data.role_look || 'edit';
- data.role_view = data.role_view || 'all';
- _this.formSystem = data;
- _this.formSystem__reset = $A.cloneData(_this.formSystem);
- if (save) {
- _this.$emit('on-setting-callback', Object.assign(data, {
- id: _this.id
- }));
- _this.$Message.success(_this.$L('修改成功'));
- }
- } else {
- if (save) {
- _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
- }
- }
- }
- });
- },
- handleSubmit: function handleSubmit(name) {
- var _this2 = this;
- this.$refs[name].validate(function (valid) {
- if (valid) {
- switch (name) {
- case "formSystem":
- {
- _this2.getSetting(true);
- break;
- }
- }
- }
- });
- },
- handleReset: function handleReset(name) {
- if (typeof this[name + '__reset'] !== "undefined") {
- this[name] = $A.cloneData(this[name + '__reset']);
- return;
- }
- this.$refs[name].resetFields();
- }
- }
- });
- /***/ }),
- /***/ 850:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("drawer-tabs-container", [
- _c(
- "div",
- { staticClass: "book-setting" },
- [
- _c(
- "Form",
- {
- ref: "formSystem",
- attrs: { model: _vm.formSystem, "label-width": 80 },
- nativeOn: {
- submit: function($event) {
- $event.preventDefault()
- }
- }
- },
- [
- _c("FormItem", { attrs: { label: _vm.$L("文档链接") } }, [
- _c(
- "a",
- {
- staticClass: "form-link",
- attrs: {
- target: "_blank",
- href: _vm.$A.webUrl("docs/view/b" + this.id)
- }
- },
- [_vm._v(_vm._s(_vm.$A.webUrl("docs/view/b" + this.id)))]
- )
- ]),
- _vm._v(" "),
- _c("FormItem", { attrs: { label: _vm.$L("管理权限") } }, [
- _c("div", [
- _c(
- "div",
- [
- _c(
- "RadioGroup",
- {
- model: {
- value: _vm.formSystem.role_edit,
- callback: function($$v) {
- _vm.$set(_vm.formSystem, "role_edit", $$v)
- },
- expression: "formSystem.role_edit"
- }
- },
- [
- _c("Radio", { attrs: { label: "private" } }, [
- _vm._v(_vm._s(_vm.$L("私有文库")))
- ]),
- _vm._v(" "),
- _c("Radio", { attrs: { label: "member" } }, [
- _vm._v(_vm._s(_vm.$L("成员开放")))
- ]),
- _vm._v(" "),
- _c("Radio", { attrs: { label: "reg" } }, [
- _vm._v(_vm._s(_vm.$L("注册会员")))
- ])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _vm.formSystem.role_edit == "private"
- ? _c("div", { staticClass: "form-placeholder" }, [
- _vm._v(
- "\n " +
- _vm._s(_vm.$L("仅作者可以修改。")) +
- "\n "
- )
- ])
- : _vm.formSystem.role_edit == "member"
- ? _c("div", { staticClass: "form-placeholder" }, [
- _vm._v(
- "\n " +
- _vm._s(_vm.$L("仅作者和文档成员可以修改。")) +
- "\n "
- )
- ])
- : _vm.formSystem.role_edit == "reg"
- ? _c("div", { staticClass: "form-placeholder" }, [
- _vm._v(
- "\n " +
- _vm._s(_vm.$L("所有会员都可以修改。")) +
- "\n "
- )
- ])
- : _vm._e()
- ])
- ]),
- _vm._v(" "),
- _c("FormItem", { attrs: { label: _vm.$L("阅读权限") } }, [
- _c(
- "div",
- [
- _c(
- "RadioGroup",
- {
- model: {
- value: _vm.formSystem.role_view,
- callback: function($$v) {
- _vm.$set(_vm.formSystem, "role_view", $$v)
- },
- expression: "formSystem.role_view"
- }
- },
- [
- _c("Radio", { attrs: { label: "private" } }, [
- _vm._v(_vm._s(_vm.$L("私有文库")))
- ]),
- _vm._v(" "),
- _c("Radio", { attrs: { label: "member" } }, [
- _vm._v(_vm._s(_vm.$L("成员开放")))
- ]),
- _vm._v(" "),
- _c("Radio", { attrs: { label: "reg" } }, [
- _vm._v(_vm._s(_vm.$L("注册会员")))
- ]),
- _vm._v(" "),
- _c("Radio", { attrs: { label: "all" } }, [
- _vm._v(_vm._s(_vm.$L("完全开放")))
- ])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _vm.formSystem.role_view == "private"
- ? _c("div", { staticClass: "form-placeholder" }, [
- _vm._v(
- "\n " +
- _vm._s(_vm.$L("仅作者可以阅读分享地址。")) +
- "\n "
- )
- ])
- : _vm.formSystem.role_view == "member"
- ? _c("div", { staticClass: "form-placeholder" }, [
- _vm._v(
- "\n " +
- _vm._s(_vm.$L("仅作者和文档成员可以阅读分享地址。")) +
- "\n "
- )
- ])
- : _vm.formSystem.role_view == "reg"
- ? _c("div", { staticClass: "form-placeholder" }, [
- _vm._v(
- "\n " +
- _vm._s(_vm.$L("所有会员都可以阅读分享地址。")) +
- "\n "
- )
- ])
- : _vm.formSystem.role_view == "all"
- ? _c("div", { staticClass: "form-placeholder" }, [
- _vm._v(
- "\n " +
- _vm._s(_vm.$L("所有人(含游客)都可以阅读分享地址。")) +
- "\n "
- )
- ])
- : _vm._e()
- ]),
- _vm._v(" "),
- _c(
- "FormItem",
- [
- _c(
- "Button",
- {
- attrs: { loading: _vm.loadIng > 0, type: "primary" },
- on: {
- click: function($event) {
- return _vm.handleSubmit("formSystem")
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("提交")))]
- ),
- _vm._v(" "),
- _c(
- "Button",
- {
- staticStyle: { "margin-left": "8px" },
- attrs: { loading: _vm.loadIng > 0 },
- on: {
- click: function($event) {
- return _vm.handleReset("formSystem")
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("重置")))]
- )
- ],
- 1
- )
- ],
- 1
- )
- ],
- 1
- )
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-b2d13f9e", module.exports)
- }
- }
- /***/ }),
- /***/ 851:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(852)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(854)
- /* template */
- var __vue_template__ = __webpack_require__(855)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-df98fbae"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/docs/users.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-df98fbae", Component.options)
- } else {
- hotAPI.reload("data-v-df98fbae", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 852:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(853);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("136d5f94", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-df98fbae\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./users.vue", function() {
- var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-df98fbae\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./users.vue");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 853:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- exports.push([module.i, "\n.book-users[data-v-df98fbae] {\n padding: 0 12px;\n}\n.book-users .tableFill[data-v-df98fbae] {\n margin: 12px 0 20px;\n}\n", ""]);
- // exports
- /***/ }),
- /***/ 854:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BookUsers',
- components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
- props: {
- id: {
- default: 0
- },
- canload: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- loadYet: false,
- loadIng: 0,
- columns: [],
- lists: [],
- listPage: 1,
- listTotal: 0,
- noDataText: ""
- };
- },
- mounted: function mounted() {
- if (this.canload) {
- this.loadYet = true;
- this.getLists(true);
- }
- },
- watch: {
- id: function id() {
- if (this.loadYet) {
- this.getLists(true);
- }
- },
- canload: function canload(val) {
- if (val && !this.loadYet) {
- this.loadYet = true;
- this.getLists(true);
- }
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- var _this = this;
- this.noDataText = this.$L("数据加载中.....");
- this.columns = [{
- "title": this.$L("头像"),
- "minWidth": 60,
- "maxWidth": 100,
- render: function render(h, params) {
- return h('UserImg', {
- props: {
- info: params.row
- },
- style: {
- width: "30px",
- height: "30px",
- fontSize: "16px",
- lineHeight: "30px",
- borderRadius: "15px",
- verticalAlign: "middle"
- }
- });
- }
- }, {
- "title": this.$L("用户名"),
- "key": 'username',
- "minWidth": 80,
- "ellipsis": true
- }, {
- "title": this.$L("昵称"),
- "minWidth": 80,
- "ellipsis": true,
- render: function render(h, params) {
- return h('span', params.row.nickname || '-');
- }
- }, {
- "title": this.$L("职位/职称"),
- "minWidth": 100,
- "ellipsis": true,
- render: function render(h, params) {
- return h('span', params.row.profession || '-');
- }
- }, {
- "title": this.$L("加入时间"),
- "width": 160,
- render: function render(h, params) {
- return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
- }
- }, {
- "title": this.$L("操作"),
- "key": 'action',
- "width": 80,
- "align": 'center',
- render: function render(h, params) {
- return h('Button', {
- props: {
- type: 'primary',
- size: 'small'
- },
- style: {
- fontSize: '12px'
- },
- on: {
- click: function click() {
- _this.$Modal.confirm({
- title: _this.$L('移出成员'),
- content: _this.$L('你确定要将此成员移出项目吗?'),
- loading: true,
- onOk: function onOk() {
- $A.apiAjax({
- url: 'docs/users/join',
- data: {
- act: 'delete',
- id: params.row.bookid,
- username: params.row.username
- },
- error: function error() {
- _this.$Modal.remove();
- alert(_this.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this.$Modal.remove();
- _this.getLists();
- setTimeout(function () {
- if (res.ret === 1) {
- _this.$Message.success(res.msg);
- } else {
- _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- }
- });
- }
- }
- }, _this.$L('删除'));
- }
- }];
- },
- setPage: function setPage(page) {
- this.listPage = page;
- this.getLists();
- },
- setPageSize: function setPageSize(size) {
- if (Math.max($A.runNum(this.listPageSize), 10) != size) {
- this.listPageSize = size;
- this.getLists();
- }
- },
- getLists: function getLists(resetLoad) {
- var _this2 = this;
- if (resetLoad === true) {
- this.listPage = 1;
- }
- if (this.id == 0) {
- this.lists = [];
- this.listTotal = 0;
- this.noDataText = this.$L("没有相关的数据");
- return;
- }
- this.loadIng++;
- this.noDataText = this.$L("数据加载中.....");
- $A.apiAjax({
- url: 'docs/users/lists',
- data: {
- page: Math.max(this.listPage, 1),
- pagesize: Math.max($A.runNum(this.listPageSize), 10),
- id: this.id
- },
- complete: function complete() {
- _this2.loadIng--;
- },
- error: function error() {
- _this2.noDataText = _this2.$L("数据加载失败!");
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this2.lists = res.data.lists;
- _this2.listTotal = res.data.total;
- _this2.noDataText = _this2.$L("没有相关的数据");
- } else {
- _this2.lists = [];
- _this2.listTotal = 0;
- _this2.noDataText = res.msg;
- }
- }
- });
- },
- addUser: function addUser() {
- var _this3 = this;
- this.userValue = "";
- this.$Modal.confirm({
- render: function render(h) {
- return h('div', [h('div', {
- style: {
- fontSize: '16px',
- fontWeight: '500',
- marginBottom: '20px'
- }
- }, _this3.$L('添加成员')), h('UserInput', {
- props: {
- value: _this3.userValue,
- multiple: true,
- nousername: _this3.usrName,
- nobookid: _this3.id,
- placeholder: _this3.$L('请输入昵称/用户名搜索')
- },
- on: {
- input: function input(val) {
- _this3.userValue = val;
- }
- }
- })]);
- },
- loading: true,
- onOk: function onOk() {
- if (_this3.userValue) {
- var username = _this3.userValue;
- $A.apiAjax({
- url: 'docs/users/join',
- data: {
- act: 'join',
- id: _this3.id,
- username: username
- },
- error: function error() {
- _this3.$Modal.remove();
- alert(_this3.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this3.$Modal.remove();
- _this3.getLists();
- setTimeout(function () {
- if (res.ret === 1) {
- _this3.$Message.success(res.msg);
- } else {
- _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- } else {
- _this3.$Modal.remove();
- }
- }
- });
- }
- }
- });
- /***/ }),
- /***/ 855:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("drawer-tabs-container", [
- _c(
- "div",
- { staticClass: "book-users" },
- [
- _c(
- "Button",
- {
- attrs: {
- loading: _vm.loadIng > 0,
- type: "primary",
- icon: "md-add"
- },
- on: { click: _vm.addUser }
- },
- [_vm._v(_vm._s(_vm.$L("添加成员")))]
- ),
- _vm._v(" "),
- _c("Table", {
- ref: "tableRef",
- staticClass: "tableFill",
- attrs: {
- columns: _vm.columns,
- data: _vm.lists,
- loading: _vm.loadIng > 0,
- "no-data-text": _vm.noDataText,
- stripe: ""
- }
- }),
- _vm._v(" "),
- _c("Page", {
- staticClass: "pageBox",
- attrs: {
- total: _vm.listTotal,
- current: _vm.listPage,
- disabled: _vm.loadIng > 0,
- "page-size-opts": [10, 20, 30, 50, 100],
- placement: "top",
- "show-elevator": "",
- "show-sizer": "",
- "show-total": "",
- transfer: "",
- simple: _vm.windowMax768
- },
- on: {
- "on-change": _vm.setPage,
- "on-page-size-change": _vm.setPageSize
- }
- })
- ],
- 1
- )
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-df98fbae", module.exports)
- }
- }
- /***/ }),
- /***/ 856:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- { staticClass: "w-main docs" },
- [
- _c("v-title", [_vm._v(_vm._s(_vm.$L("知识库")))]),
- _vm._v(" "),
- _c("div", { staticClass: "w-nav" }, [
- _c("div", { staticClass: "nav-row" }, [
- _c("div", { staticClass: "w-nav-left" }, [
- _c("div", { staticClass: "page-nav-left" }, [
- _c(
- "span",
- {
- staticClass: "hover",
- on: {
- click: function($event) {
- ;[(_vm.addBookId = 0), (_vm.addBookShow = true)]
- }
- }
- },
- [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(" " + _vm._s(_vm.$L("新建知识库")))
- ]
- ),
- _vm._v(" "),
- _vm.loadIng > 0
- ? _c(
- "div",
- { staticClass: "page-nav-loading" },
- [_c("w-loading")],
- 1
- )
- : _c("div", { staticClass: "page-nav-refresh" }, [
- _c(
- "em",
- {
- on: {
- click: function($event) {
- return _vm.getBookLists(true)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("刷新")))]
- )
- ])
- ])
- ]),
- _vm._v(" "),
- _c("div", { staticClass: "w-nav-flex" })
- ])
- ]),
- _vm._v(" "),
- _c("w-content", [
- _c("div", { staticClass: "docs-main" }, [
- _c("div", { staticClass: "docs-body" }, [
- _c("div", { staticClass: "docs-menu" }, [
- _c("h3", [_vm._v(_vm._s(_vm.$L("我的知识库")))]),
- _vm._v(" "),
- _c(
- "ul",
- [
- _vm._l(_vm.bookLists, function(book) {
- return _c(
- "li",
- {
- class: { active: book.id == _vm.selectBookData.id },
- on: {
- click: function($event) {
- ;[
- (_vm.selectBookData = book),
- _vm.getSectionLists(true)
- ]
- }
- }
- },
- [
- _c("div", { staticClass: "docs-title" }, [
- _vm._v(_vm._s(book.title))
- ]),
- _vm._v(" "),
- _c("div", { staticClass: "docs-time" }, [
- _vm._v(
- _vm._s(
- _vm.$A.formatDate("Y-m-d H:i:s", book.indate)
- )
- )
- ])
- ]
- )
- }),
- _vm._v(" "),
- _vm.bookHasMorePages
- ? _c(
- "li",
- {
- staticClass: "more",
- on: { click: _vm.getBookLists }
- },
- [_vm._v(_vm._s(_vm.$L("加载下一页...")))]
- )
- : _vm.bookLoading
- ? _c("li", { staticClass: "load" }, [_c("WLoading")], 1)
- : _vm.bookLists.length == 0
- ? _c("li", { staticClass: "none" }, [
- _vm._v(_vm._s(_vm.bookNoDataText))
- ])
- : _vm._e()
- ],
- 2
- )
- ]),
- _vm._v(" "),
- _c("div", { staticClass: "docs-container" }, [
- _vm.selectBookData.id > 0
- ? _c("div", { staticClass: "docs-box" }, [
- _c("div", { staticClass: "docs-header" }, [
- _c("div", { staticClass: "docs-h1" }, [
- _vm._v(_vm._s(_vm.selectBookData.title))
- ]),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "docs-setting" },
- [
- _c(
- "Button",
- {
- on: {
- click: function($event) {
- ;[
- (_vm.addSectionId = 0),
- (_vm.addSectionShow = true)
- ]
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("新增章节")))]
- ),
- _vm._v(" "),
- _c(
- "Button",
- {
- on: {
- click: function($event) {
- ;[
- (_vm.addBookId = _vm.selectBookData.id),
- (_vm.addBookShow = true)
- ]
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("修改标题")))]
- ),
- _vm._v(" "),
- _c("Button", { on: { click: _vm.showShare } }, [
- _vm._v(_vm._s(_vm.$L("分享")))
- ]),
- _vm._v(" "),
- _c(
- "Button",
- {
- on: {
- click: function($event) {
- ;[
- (_vm.settingDrawerShow = true),
- (_vm.settingDrawerTab = "setting")
- ]
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("设置")))]
- ),
- _vm._v(" "),
- _c(
- "Button",
- {
- attrs: { type: "warning", ghost: "" },
- on: {
- click: function($event) {
- return _vm.onBookDelete(_vm.selectBookData.id)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("删除")))]
- )
- ],
- 1
- )
- ]),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "docs-section" },
- [
- _c("nested-draggable", {
- attrs: {
- lists: _vm.sectionLists,
- disabled: _vm.sortDisabled
- },
- on: { change: _vm.handleSection }
- }),
- _vm._v(" "),
- _vm.sectionLists.length == 0
- ? _c("div", { staticClass: "none" }, [
- _vm._v(_vm._s(_vm.sectionNoDataText))
- ])
- : _vm._e()
- ],
- 1
- )
- ])
- : _vm._e()
- ])
- ])
- ])
- ]),
- _vm._v(" "),
- _c(
- "Modal",
- {
- attrs: {
- title: _vm.$L(_vm.addBookId > 0 ? "修改标题" : "新建知识库"),
- closable: false,
- "mask-closable": false,
- "class-name": "simple-modal"
- },
- model: {
- value: _vm.addBookShow,
- callback: function($$v) {
- _vm.addBookShow = $$v
- },
- expression: "addBookShow"
- }
- },
- [
- _c(
- "Form",
- {
- ref: "bookAdd",
- attrs: {
- model: _vm.formBookAdd,
- rules: _vm.ruleBookAdd,
- "label-width": 110
- },
- nativeOn: {
- submit: function($event) {
- $event.preventDefault()
- }
- }
- },
- [
- _c(
- "FormItem",
- {
- staticStyle: { "margin-right": "28px" },
- attrs: { prop: "title", label: _vm.$L("知识库名称") }
- },
- [
- _c("Input", {
- attrs: { type: "text", maxlength: 32 },
- model: {
- value: _vm.formBookAdd.title,
- callback: function($$v) {
- _vm.$set(_vm.formBookAdd, "title", $$v)
- },
- expression: "formBookAdd.title"
- }
- })
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { attrs: { slot: "footer" }, slot: "footer" },
- [
- _c(
- "Button",
- {
- attrs: { type: "default" },
- on: {
- click: function($event) {
- _vm.addBookShow = false
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("取消")))]
- ),
- _vm._v(" "),
- _c(
- "Button",
- {
- attrs: { type: "primary", loading: _vm.loadIng > 0 },
- on: { click: _vm.onBookAdd }
- },
- [_vm._v(_vm._s(_vm.$L(_vm.addBookId > 0 ? "提交" : "添加")))]
- )
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "Modal",
- {
- attrs: {
- title: _vm.$L(_vm.addSectionId > 0 ? "修改文档标题" : "新建文档"),
- closable: false,
- "mask-closable": false,
- "class-name": "simple-modal"
- },
- model: {
- value: _vm.addSectionShow,
- callback: function($$v) {
- _vm.addSectionShow = $$v
- },
- expression: "addSectionShow"
- }
- },
- [
- _c(
- "Form",
- {
- ref: "sectionAdd",
- attrs: {
- model: _vm.formSectionAdd,
- rules: _vm.ruleSectionAdd,
- "label-width": 110
- },
- nativeOn: {
- submit: function($event) {
- $event.preventDefault()
- }
- }
- },
- [
- _c(
- "FormItem",
- {
- staticStyle: { "margin-right": "28px" },
- attrs: { prop: "title", label: _vm.$L("文档标题") }
- },
- [
- _c("Input", {
- attrs: { type: "text", maxlength: 32 },
- model: {
- value: _vm.formSectionAdd.title,
- callback: function($$v) {
- _vm.$set(_vm.formSectionAdd, "title", $$v)
- },
- expression: "formSectionAdd.title"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _vm.addSectionId <= 0
- ? _c(
- "FormItem",
- {
- staticStyle: { "margin-right": "28px" },
- attrs: { prop: "type", label: _vm.$L("文档类型") }
- },
- [
- _c(
- "ButtonGroup",
- _vm._l(_vm.sectionTypeLists, function(it, ik) {
- return _c(
- "Button",
- {
- key: ik,
- attrs: {
- type:
- "" +
- (_vm.formSectionAdd.type == it.value
- ? "primary"
- : "default")
- },
- on: {
- click: function($event) {
- _vm.formSectionAdd.type = it.value
- }
- }
- },
- [_vm._v(_vm._s(it.text))]
- )
- }),
- 1
- )
- ],
- 1
- )
- : _vm._e()
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { attrs: { slot: "footer" }, slot: "footer" },
- [
- _c(
- "Button",
- {
- attrs: { type: "default" },
- on: {
- click: function($event) {
- _vm.addSectionShow = false
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("取消")))]
- ),
- _vm._v(" "),
- _c(
- "Button",
- {
- attrs: { type: "primary", loading: _vm.loadIng > 0 },
- on: { click: _vm.onSectionAdd }
- },
- [_vm._v(_vm._s(_vm.$L(_vm.addSectionId > 0 ? "提交" : "添加")))]
- )
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "WDrawer",
- {
- attrs: { maxWidth: "750" },
- model: {
- value: _vm.settingDrawerShow,
- callback: function($$v) {
- _vm.settingDrawerShow = $$v
- },
- expression: "settingDrawerShow"
- }
- },
- [
- _vm.settingDrawerShow
- ? _c(
- "Tabs",
- {
- model: {
- value: _vm.settingDrawerTab,
- callback: function($$v) {
- _vm.settingDrawerTab = $$v
- },
- expression: "settingDrawerTab"
- }
- },
- [
- _c(
- "TabPane",
- { attrs: { label: _vm.$L("文档设置"), name: "setting" } },
- [
- _c("book-setting", {
- attrs: {
- canload:
- _vm.settingDrawerShow &&
- _vm.settingDrawerTab == "setting",
- id: _vm.selectBookData.id
- },
- on: { "on-setting-callback": _vm.settingCallback }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "TabPane",
- { attrs: { label: _vm.$L("文档成员"), name: "member" } },
- [
- _c("book-users", {
- attrs: {
- canload:
- _vm.settingDrawerShow &&
- _vm.settingDrawerTab == "member",
- id: _vm.selectBookData.id
- }
- })
- ],
- 1
- )
- ],
- 1
- )
- : _vm._e()
- ],
- 1
- )
- ],
- 1
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-0172190c", module.exports)
- }
- }
- /***/ })
- });
|