12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652 |
- webpackJsonp([24],{
- /***/ 539:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(986)
- __webpack_require__(988)
- }
- var normalizeComponent = __webpack_require__(4)
- /* script */
- var __vue_script__ = __webpack_require__(990)
- /* template */
- var __vue_template__ = __webpack_require__(991)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-689d329c"
- /* 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/team.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-689d329c", Component.options)
- } else {
- hotAPI.reload("data-v-689d329c", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 550:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(551)
- }
- var normalizeComponent = __webpack_require__(4)
- /* script */
- var __vue_script__ = __webpack_require__(553)
- /* template */
- var __vue_template__ = __webpack_require__(554)
- /* 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
- /***/ }),
- /***/ 551:
- /***/ (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__(552);
- 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__(3)("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(); });
- }
- /***/ }),
- /***/ 552:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(2)(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
- /***/ }),
- /***/ 553:
- /***/ (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' + ')';
- }
- }
- });
- /***/ }),
- /***/ 554:
- /***/ (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)
- }
- }
- /***/ }),
- /***/ 578:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(579)
- }
- var normalizeComponent = __webpack_require__(4)
- /* script */
- var __vue_script__ = __webpack_require__(581)
- /* template */
- var __vue_template__ = __webpack_require__(582)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = null
- /* 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/TagInput.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-63d616a5", Component.options)
- } else {
- hotAPI.reload("data-v-63d616a5", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 579:
- /***/ (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__(580);
- 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__(3)("72d872d6", 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-63d616a5\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./TagInput.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-63d616a5\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./TagInput.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(); });
- }
- /***/ }),
- /***/ 580:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(2)(false);
- // imports
- // module
- exports.push([module.i, "\n.tags-wrap {\n display: inline-block;\n width: 100%;\n min-height: 32px;\n padding: 2px 7px;\n border: 1px solid #dddee1;\n border-radius: 4px;\n color: #495060;\n background: #fff;\n position: relative;\n cursor: text;\n vertical-align: middle;\n line-height: normal;\n -webkit-transition: border .2s ease-in-out, background .2s ease-in-out, -webkit-box-shadow .2s ease-in-out;\n transition: border .2s ease-in-out, background .2s ease-in-out, -webkit-box-shadow .2s ease-in-out;\n}\n.tags-wrap .tags-item, .tags-wrap .tags-input {\n position: relative;\n float: left;\n color: #495060;\n background-color: #f1f8ff;\n border-radius: 3px;\n line-height: 22px;\n margin: 2px 6px 2px 0;\n padding: 0 20px 0 6px;\n}\n.tags-wrap .tags-item .tags-content, .tags-wrap .tags-input .tags-content {\n line-height: 22px;\n}\n.tags-wrap .tags-item .tags-del, .tags-wrap .tags-input .tags-del {\n width: 20px;\n height: 22px;\n text-align: center;\n cursor: pointer;\n position: absolute;\n top: -1px;\n right: 0;\n}\n.tags-wrap .tags-input {\n max-width: 80%;\n padding: 0;\n background-color: inherit;\n border: none;\n color: inherit;\n height: 22px;\n line-height: 22px;\n -webkit-appearance: none;\n outline: none;\n resize: none;\n overflow: hidden;\n}\n.tags-wrap .tags-input::-webkit-input-placeholder {\n color: #bbbbbb;\n}\n.tags-wrap .tags-input::-moz-placeholder {\n color: #bbbbbb;\n}\n.tags-wrap .tags-input::-ms-input-placeholder {\n color: #bbbbbb;\n}\n.tags-wrap .tags-input::placeholder {\n color: #bbbbbb;\n}\n.tags-wrap .tags-placeholder {\n position: absolute;\n left: 0;\n top: 0;\n z-index: -1;\n color: #ffffff00;\n}\n.tags-wrap::after {\n content: \"\";\n display: block;\n height: 0;\n clear: both;\n}\n", ""]);
- // exports
- /***/ }),
- /***/ 581:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TagInput',
- props: {
- value: {
- default: ''
- },
- cut: {
- default: ','
- },
- disabled: {
- type: Boolean,
- default: false
- },
- readonly: {
- type: Boolean,
- default: false
- },
- placeholder: {
- default: ''
- },
- max: {
- default: 0
- }
- },
- data: function data() {
- var disSource = [];
- this.value.split(",").forEach(function (item) {
- if (item) {
- disSource.push(item);
- }
- });
- return {
- minWidth: 80,
- tis: '',
- tisTimeout: null,
- showPlaceholder: true,
- content: '',
- disSource: disSource
- };
- },
- mounted: function mounted() {
- this.wayMinWidth();
- },
- watch: {
- placeholder: function placeholder() {
- this.wayMinWidth();
- },
- value: function value(val) {
- var disSource = [];
- if ($A.count(val) > 0) {
- val.split(",").forEach(function (item) {
- if (item) {
- disSource.push(item);
- }
- });
- }
- this.disSource = disSource;
- },
- disSource: function disSource(val) {
- var _this = this;
- var temp = '';
- val.forEach(function (item) {
- if (temp != '') {
- temp += _this.cut;
- }
- temp += item;
- });
- this.$emit('input', temp);
- }
- },
- methods: {
- wayMinWidth: function wayMinWidth() {
- var _this2 = this;
- this.showPlaceholder = true;
- this.$nextTick(function () {
- if (_this2.$refs.myPlaceholder) {
- _this2.minWidth = Math.max(_this2.minWidth, _this2.$refs.myPlaceholder.offsetWidth);
- }
- setTimeout(function () {
- try {
- _this2.minWidth = Math.max(_this2.minWidth, _this2.$refs.myPlaceholder.offsetWidth);
- _this2.showPlaceholder = false;
- } catch (e) {}
- if (!$A(_this2.$refs.myPlaceholder).is(":visible")) {
- _this2.wayMinWidth();
- }
- }, 500);
- });
- },
- pasteText: function pasteText(e) {
- e.preventDefault();
- var content = (e.clipboardData || window.clipboardData).getData('text');
- this.addTag(false, content);
- },
- clickWrap: function clickWrap() {
- this.$refs.myTextarea.focus();
- },
- downEnter: function downEnter(e) {
- e.preventDefault();
- },
- addTag: function addTag(e, content) {
- var _this3 = this;
- if (e.keyCode === 13 || e === false) {
- if (content.trim() != '' && this.disSource.indexOf(content.trim()) === -1) {
- this.disSource.push(content.trim());
- }
- this.content = '';
- } else {
- if (this.max > 0 && this.disSource.length >= this.max) {
- this.content = '';
- this.tis = '最多只能添加' + this.max + '个';
- clearInterval(this.tisTimeout);
- this.tisTimeout = setTimeout(function () {
- _this3.tis = '';
- }, 2000);
- return;
- }
- var temp = content.trim();
- var cutPos = temp.length - this.cut.length;
- if (temp != '' && temp.substring(cutPos) === this.cut) {
- temp = temp.substring(0, cutPos);
- if (temp.trim() != '' && this.disSource.indexOf(temp.trim()) === -1) {
- this.disSource.push(temp.trim());
- }
- this.content = '';
- }
- }
- },
- delTag: function delTag(index) {
- if (index === false) {
- if (this.content !== '') {
- return;
- }
- index = this.disSource.length - 1;
- }
- this.disSource.splice(index, 1);
- }
- }
- });
- /***/ }),
- /***/ 582:
- /***/ (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: "tags-wrap",
- on: {
- paste: function($event) {
- return _vm.pasteText($event)
- },
- click: _vm.clickWrap
- }
- },
- [
- _vm._l(_vm.disSource, function(text, index) {
- return _c("div", { staticClass: "tags-item" }, [
- _c(
- "span",
- {
- staticClass: "tags-content",
- on: {
- click: function($event) {
- $event.stopPropagation()
- }
- }
- },
- [_vm._v(_vm._s(text))]
- ),
- _c(
- "span",
- {
- staticClass: "tags-del",
- on: {
- click: function($event) {
- $event.stopPropagation()
- return _vm.delTag(index)
- }
- }
- },
- [_vm._v("×")]
- )
- ])
- }),
- _vm._v(" "),
- _c("textarea", {
- directives: [
- {
- name: "model",
- rawName: "v-model",
- value: _vm.content,
- expression: "content"
- }
- ],
- ref: "myTextarea",
- staticClass: "tags-input",
- style: { minWidth: _vm.minWidth + "px" },
- attrs: {
- placeholder: _vm.tis || _vm.placeholder,
- disabled: _vm.disabled,
- readonly: _vm.readonly
- },
- domProps: { value: _vm.content },
- on: {
- keydown: [
- function($event) {
- if (
- !$event.type.indexOf("key") &&
- _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
- ) {
- return null
- }
- return _vm.downEnter($event)
- },
- function($event) {
- if (
- !$event.type.indexOf("key") &&
- _vm._k($event.keyCode, "delete", [8, 46], $event.key, [
- "Backspace",
- "Delete",
- "Del"
- ])
- ) {
- return null
- }
- return _vm.delTag(false)
- }
- ],
- keyup: function($event) {
- return _vm.addTag($event, _vm.content)
- },
- blur: function($event) {
- return _vm.addTag(false, _vm.content)
- },
- input: function($event) {
- if ($event.target.composing) {
- return
- }
- _vm.content = $event.target.value
- }
- }
- }),
- _vm._v(" "),
- _vm.showPlaceholder || _vm.tis !== ""
- ? _c(
- "span",
- { ref: "myPlaceholder", staticClass: "tags-placeholder" },
- [_vm._v(_vm._s(_vm.tis || _vm.placeholder))]
- )
- : _vm._e()
- ],
- 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-63d616a5", module.exports)
- }
- }
- /***/ }),
- /***/ 986:
- /***/ (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__(987);
- 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__(3)("02c58cc5", 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-689d329c\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./team.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-689d329c\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./team.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(); });
- }
- /***/ }),
- /***/ 987:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(2)(false);
- // imports
- // module
- exports.push([module.i, "\n.team-add-red-input {\n display: inline-block;\n margin-right: 4px;\n line-height: 1;\n font-family: SimSun,serif;\n font-size: 14px;\n color: #ed4014;\n}\n.team-add-form-item-changepass {\n margin-top: -18px;\n margin-bottom: 18px;\n height: 0;\n overflow: hidden;\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n}\n.team-add-form-item-changepass.show {\n height: 32px;\n}\n", ""]);
- // exports
- /***/ }),
- /***/ 988:
- /***/ (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__(989);
- 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__(3)("895aec1e", 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-689d329c\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./team.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-689d329c\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./team.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(); });
- }
- /***/ }),
- /***/ 989:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(2)(false);
- // imports
- // module
- exports.push([module.i, "\n.team .team-main[data-v-689d329c] {\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 height: 100%;\n padding: 15px;\n}\n.team .team-main .team-body[data-v-689d329c] {\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 height: 100%;\n min-height: 500px;\n background: #fefefe;\n border-radius: 3px;\n}\n.team .team-main .team-body .tableFill[data-v-689d329c] {\n margin: 20px;\n background-color: #ffffff;\n}\n", ""]);
- // exports
- /***/ }),
- /***/ 990:
- /***/ (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__(550);
- /* 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_ImgUpload__ = __webpack_require__(22);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_ImgUpload___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_ImgUpload__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_TagInput__ = __webpack_require__(578);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_TagInput___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_TagInput__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- components: { TagInput: __WEBPACK_IMPORTED_MODULE_2__components_TagInput___default.a, ImgUpload: __WEBPACK_IMPORTED_MODULE_1__components_ImgUpload___default.a, WContent: __WEBPACK_IMPORTED_MODULE_0__components_WContent___default.a },
- data: function data() {
- return {
- loadIng: 0,
- isAdmin: false,
- columns: [],
- lists: [],
- listPage: 1,
- listTotal: 0,
- noDataText: "",
- addShow: false,
- formData: {
- id: 0,
- userimg: '',
- profession: '',
- username: '',
- nickname: '',
- userpass: ''
- }
- };
- },
- mounted: function mounted() {
- this.getLists(true);
- },
- deactivated: function deactivated() {
- this.addShow = false;
- },
- watch: {
- usrName: function usrName() {
- this.usrLogin && this.getLists(true);
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- var _this = this;
- this.isAdmin = $A.identity('admin');
- 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,
- render: function render(h, params) {
- var arr = [];
- if (params.row.username == _this.usrName) {
- arr.push(h('span', {
- style: {
- color: '#ff0000',
- paddingRight: '4px'
- }
- }, '[自己]'));
- }
- if ($A.identityRaw('admin', params.row.identity)) {
- arr.push(h('span', {
- style: {
- color: '#ff0000',
- paddingRight: '4px'
- }
- }, '[管理员]'));
- }
- arr.push(h('span', params.row.username));
- return h('span', arr);
- }
- }, {
- "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.regdate));
- }
- }, {
- "title": this.$L("操作"),
- "key": 'action',
- "width": this.isAdmin ? 160 : 80,
- "align": 'center',
- render: function render(h, params) {
- var array = [];
- array.push(h('Button', {
- props: {
- type: 'primary',
- size: 'small'
- },
- style: {
- fontSize: '12px'
- },
- on: {
- click: function click() {
- _this.$Modal.info({
- title: _this.$L('会员信息'),
- content: "<p>" + _this.$L('昵称') + ": " + (params.row.nickname || '-') + "</p><p>" + _this.$L('职位/职称') + ": " + (params.row.profession || '-') + "</p>"
- });
- }
- }
- }, _this.$L('查看')));
- if (_this.isAdmin) {
- array.push(h('Dropdown', {
- props: {
- trigger: 'click',
- transfer: true
- },
- on: {
- 'on-click': function onClick(name) {
- _this.handleUser(name, params.row);
- }
- }
- }, [h('Button', {
- props: {
- type: 'warning',
- size: 'small'
- },
- style: {
- fontSize: '12px',
- marginLeft: '5px'
- }
- }, _this.$L('操作')), h('DropdownMenu', {
- slot: 'list'
- }, [h('DropdownItem', {
- props: {
- name: 'edit'
- }
- }, _this.$L('修改成员信息')), h('DropdownItem', {
- props: {
- name: $A.identityRaw('admin', params.row.identity) ? 'deladmin' : 'setadmin'
- }
- }, _this.$L($A.identityRaw('admin', params.row.identity) ? '取消管理员' : '设为管理员')), h('DropdownItem', {
- props: {
- name: 'delete'
- }
- }, _this.$L('删除'))])]));
- }
- return h('div', array);
- }
- }];
- },
- 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;
- }
- this.loadIng++;
- this.noDataText = this.$L("数据加载中.....");
- $A.apiAjax({
- url: 'users/team/lists',
- data: {
- page: Math.max(this.listPage, 1),
- pagesize: Math.max($A.runNum(this.listPageSize), 10)
- },
- 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;
- }
- }
- });
- },
- onAdd: function onAdd() {
- var _this3 = this;
- this.loadIng++;
- var id = $A.runNum(this.formData.id);
- $A.apiAjax({
- url: 'users/team/add',
- data: this.formData,
- complete: function complete() {
- _this3.loadIng--;
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this3.addShow = false;
- _this3.$Message.success(res.msg);
- _this3.$refs.add.resetFields();
- //
- _this3.getLists(id == 0);
- } else {
- _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
- }
- }
- });
- },
- handleUser: function handleUser(act, info) {
- var _this4 = this;
- switch (act) {
- case "add":
- {
- this.addShow = true;
- this.formData = {
- id: 0,
- userimg: '',
- profession: '',
- username: '',
- nickname: '',
- userpass: '',
- changepass: 1
- };
- break;
- }
- case "edit":
- {
- this.addShow = true;
- this.formData = Object.assign($A.cloneData(info));
- break;
- }
- case "delete":
- {
- this.$Modal.confirm({
- title: this.$L('删除团队成员'),
- content: this.$L('你确定要删除此团队成员吗?'),
- loading: true,
- onOk: function onOk() {
- $A.apiAjax({
- url: 'users/team/delete?username=' + info.username,
- error: function error() {
- _this4.$Modal.remove();
- alert(_this4.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this4.$Modal.remove();
- _this4.getLists();
- setTimeout(function () {
- if (res.ret === 1) {
- _this4.$Message.success(res.msg);
- } else {
- _this4.$Modal.error({ title: _this4.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- }
- });
- break;
- }
- case "setadmin":
- case "deladmin":
- {
- this.$Modal.confirm({
- title: this.$L('确定操作'),
- content: this.$L(act == 'deladmin' ? '你确定取消管理员身份的操作吗?' : '你确定设置管理员的操作吗?'),
- loading: true,
- onOk: function onOk() {
- $A.apiAjax({
- url: 'users/team/admin?act=' + (act == 'deladmin' ? 'del' : 'set') + '&username=' + info.username,
- error: function error() {
- _this4.$Modal.remove();
- alert(_this4.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this4.$Modal.remove();
- if (res.ret === 1) {
- _this4.lists.some(function (item) {
- if (item.username == info.username) {
- _this4.$set(item, 'identity', res.data.identity);
- return true;
- }
- });
- if (res.data.up === 1) {
- var data = {
- type: 'text',
- username: _this4.usrInfo.username,
- userimg: _this4.usrInfo.userimg,
- indate: Math.round(new Date().getTime() / 1000),
- text: _this4.$L(act == 'deladmin' ? '您的管理员身份已被撤销。' : '恭喜您成为管理员。')
- };
- $A.WSOB.sendTo('user', info.username, data, 'special');
- $A.WSOB.sendTo('info', info.username, { 'type': 'update' });
- }
- }
- setTimeout(function () {
- if (res.ret === 1) {
- _this4.$Message.success(res.msg);
- } else {
- _this4.$Modal.error({ title: _this4.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- }
- });
- break;
- }
- }
- }
- }
- });
- /***/ }),
- /***/ 991:
- /***/ (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 team" },
- [
- _c("v-title", [
- _vm._v(
- _vm._s(_vm.$L("团队")) + "-" + _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", [
- _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.getLists(true)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("刷新")))]
- )
- ])
- ])
- ]),
- _vm._v(" "),
- _c("div", { staticClass: "w-nav-flex" }),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "m768-show w-nav-right" },
- [
- _c(
- "Dropdown",
- {
- attrs: { trigger: "click", transfer: "" },
- on: { "on-click": _vm.handleUser }
- },
- [
- _c("Icon", { attrs: { type: "md-menu", size: "18" } }),
- _vm._v(" "),
- _c(
- "DropdownMenu",
- { attrs: { slot: "list" }, slot: "list" },
- [
- _c("DropdownItem", { attrs: { name: "add" } }, [
- _vm._v(_vm._s(_vm.$L("添加团队成员")))
- ])
- ],
- 1
- )
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c("div", { staticClass: "m768-hide w-nav-right" }, [
- _c(
- "span",
- {
- staticClass: "ft hover",
- on: {
- click: function($event) {
- return _vm.handleUser("add")
- }
- }
- },
- [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(" " + _vm._s(_vm.$L("添加团队成员")))
- ]
- )
- ])
- ])
- ]),
- _vm._v(" "),
- _c("w-content", [
- _c("div", { staticClass: "team-main" }, [
- _c(
- "div",
- { staticClass: "team-body" },
- [
- _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": "",
- simple: _vm.windowMax768
- },
- on: {
- "on-change": _vm.setPage,
- "on-page-size-change": _vm.setPageSize
- }
- })
- ],
- 1
- )
- ])
- ]),
- _vm._v(" "),
- _c(
- "Modal",
- {
- attrs: {
- title: _vm.$L(
- _vm.formData.id > 0 ? "修改团队成员" : "添加团队成员"
- ),
- closable: false,
- "mask-closable": false,
- "class-name": "simple-modal"
- },
- model: {
- value: _vm.addShow,
- callback: function($$v) {
- _vm.addShow = $$v
- },
- expression: "addShow"
- }
- },
- [
- _c(
- "Form",
- {
- ref: "add",
- attrs: { model: _vm.formData, "label-width": 80 },
- nativeOn: {
- submit: function($event) {
- $event.preventDefault()
- }
- }
- },
- [
- _c(
- "FormItem",
- { attrs: { prop: "userimg", label: _vm.$L("头像") } },
- [
- _c("ImgUpload", {
- model: {
- value: _vm.formData.userimg,
- callback: function($$v) {
- _vm.$set(_vm.formData, "userimg", $$v)
- },
- expression: "formData.userimg"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "FormItem",
- { attrs: { prop: "nickname", label: _vm.$L("昵称") } },
- [
- _c("Input", {
- attrs: { type: "text" },
- model: {
- value: _vm.formData.nickname,
- callback: function($$v) {
- _vm.$set(_vm.formData, "nickname", $$v)
- },
- expression: "formData.nickname"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "FormItem",
- { attrs: { prop: "profession", label: _vm.$L("职位/职称") } },
- [
- _c("Input", {
- model: {
- value: _vm.formData.profession,
- callback: function($$v) {
- _vm.$set(_vm.formData, "profession", $$v)
- },
- expression: "formData.profession"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "FormItem",
- { attrs: { prop: "username" } },
- [
- _c("div", { attrs: { slot: "label" }, slot: "label" }, [
- _vm.formData.id == 0
- ? _c("em", { staticClass: "team-add-red-input" }, [
- _vm._v("*")
- ])
- : _vm._e(),
- _vm._v(_vm._s(_vm.$L("用户名")))
- ]),
- _vm._v(" "),
- _vm.formData.id > 0
- ? _c("Input", {
- attrs: { disabled: "" },
- model: {
- value: _vm.formData.username,
- callback: function($$v) {
- _vm.$set(_vm.formData, "username", $$v)
- },
- expression: "formData.username"
- }
- })
- : _c("TagInput", {
- attrs: {
- placeholder: _vm.$L(
- "添加后不可修改,使用英文逗号添加多个。"
- )
- },
- model: {
- value: _vm.formData.username,
- callback: function($$v) {
- _vm.$set(_vm.formData, "username", $$v)
- },
- expression: "formData.username"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "FormItem",
- { attrs: { prop: "userpass" } },
- [
- _c("div", { attrs: { slot: "label" }, slot: "label" }, [
- _vm.formData.id == 0
- ? _c("em", { staticClass: "team-add-red-input" }, [
- _vm._v("*")
- ])
- : _vm._e(),
- _vm._v(_vm._s(_vm.$L("登录密码")))
- ]),
- _vm._v(" "),
- _c("Input", {
- attrs: {
- type: "password",
- placeholder: _vm.$L(
- _vm.formData.id > 0 ? "留空不修改" : "最少6位数"
- )
- },
- model: {
- value: _vm.formData.userpass,
- callback: function($$v) {
- _vm.$set(_vm.formData, "userpass", $$v)
- },
- expression: "formData.userpass"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _vm.formData.id == 0
- ? _c(
- "FormItem",
- {
- staticClass: "team-add-form-item-changepass",
- class: { show: _vm.formData.userpass },
- attrs: { prop: "changepass" }
- },
- [
- _c(
- "Checkbox",
- {
- attrs: { "true-value": 1, "false-value": 0 },
- model: {
- value: _vm.formData.changepass,
- callback: function($$v) {
- _vm.$set(_vm.formData, "changepass", $$v)
- },
- expression: "formData.changepass"
- }
- },
- [_vm._v(_vm._s(_vm.$L("首次登陆需修改密码")))]
- )
- ],
- 1
- )
- : _vm._e()
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { attrs: { slot: "footer" }, slot: "footer" },
- [
- _c(
- "Button",
- {
- attrs: { type: "default" },
- on: {
- click: function($event) {
- _vm.addShow = false
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("取消")))]
- ),
- _vm._v(" "),
- _c(
- "Button",
- {
- attrs: { type: "primary", loading: _vm.loadIng > 0 },
- on: { click: _vm.onAdd }
- },
- [_vm._v(_vm._s(_vm.$L(_vm.formData.id > 0 ? "修改" : "添加")))]
- )
- ],
- 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-689d329c", module.exports)
- }
- }
- /***/ })
- });
|