7.js 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648
  1. webpackJsonp([7],{
  2. /***/ 295:
  3. /***/ (function(module, exports, __webpack_require__) {
  4. var disposed = false
  5. function injectStyle (ssrContext) {
  6. if (disposed) return
  7. __webpack_require__(981)
  8. __webpack_require__(983)
  9. }
  10. var normalizeComponent = __webpack_require__(2)
  11. /* script */
  12. var __vue_script__ = __webpack_require__(985)
  13. /* template */
  14. var __vue_template__ = __webpack_require__(986)
  15. /* template functional */
  16. var __vue_template_functional__ = false
  17. /* styles */
  18. var __vue_styles__ = injectStyle
  19. /* scopeId */
  20. var __vue_scopeId__ = "data-v-689d329c"
  21. /* moduleIdentifier (server only) */
  22. var __vue_module_identifier__ = null
  23. var Component = normalizeComponent(
  24. __vue_script__,
  25. __vue_template__,
  26. __vue_template_functional__,
  27. __vue_styles__,
  28. __vue_scopeId__,
  29. __vue_module_identifier__
  30. )
  31. Component.options.__file = "resources/assets/js/main/pages/team.vue"
  32. /* hot reload */
  33. if (false) {(function () {
  34. var hotAPI = require("vue-hot-reload-api")
  35. hotAPI.install(require("vue"), false)
  36. if (!hotAPI.compatible) return
  37. module.hot.accept()
  38. if (!module.hot.data) {
  39. hotAPI.createRecord("data-v-689d329c", Component.options)
  40. } else {
  41. hotAPI.reload("data-v-689d329c", Component.options)
  42. }
  43. module.hot.dispose(function (data) {
  44. disposed = true
  45. })
  46. })()}
  47. module.exports = Component.exports
  48. /***/ }),
  49. /***/ 307:
  50. /***/ (function(module, exports, __webpack_require__) {
  51. var disposed = false
  52. function injectStyle (ssrContext) {
  53. if (disposed) return
  54. __webpack_require__(308)
  55. }
  56. var normalizeComponent = __webpack_require__(2)
  57. /* script */
  58. var __vue_script__ = __webpack_require__(310)
  59. /* template */
  60. var __vue_template__ = __webpack_require__(311)
  61. /* template functional */
  62. var __vue_template_functional__ = false
  63. /* styles */
  64. var __vue_styles__ = injectStyle
  65. /* scopeId */
  66. var __vue_scopeId__ = "data-v-35be3d57"
  67. /* moduleIdentifier (server only) */
  68. var __vue_module_identifier__ = null
  69. var Component = normalizeComponent(
  70. __vue_script__,
  71. __vue_template__,
  72. __vue_template_functional__,
  73. __vue_styles__,
  74. __vue_scopeId__,
  75. __vue_module_identifier__
  76. )
  77. Component.options.__file = "resources/assets/js/main/components/WContent.vue"
  78. /* hot reload */
  79. if (false) {(function () {
  80. var hotAPI = require("vue-hot-reload-api")
  81. hotAPI.install(require("vue"), false)
  82. if (!hotAPI.compatible) return
  83. module.hot.accept()
  84. if (!module.hot.data) {
  85. hotAPI.createRecord("data-v-35be3d57", Component.options)
  86. } else {
  87. hotAPI.reload("data-v-35be3d57", Component.options)
  88. }
  89. module.hot.dispose(function (data) {
  90. disposed = true
  91. })
  92. })()}
  93. module.exports = Component.exports
  94. /***/ }),
  95. /***/ 308:
  96. /***/ (function(module, exports, __webpack_require__) {
  97. // style-loader: Adds some css to the DOM by adding a <style> tag
  98. // load the styles
  99. var content = __webpack_require__(309);
  100. if(typeof content === 'string') content = [[module.i, content, '']];
  101. if(content.locals) module.exports = content.locals;
  102. // add the styles to the DOM
  103. var update = __webpack_require__(1)("5ee96958", content, false, {});
  104. // Hot Module Replacement
  105. if(false) {
  106. // When the styles change, update the <style> tags
  107. if(!content.locals) {
  108. 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() {
  109. 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");
  110. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  111. update(newContent);
  112. });
  113. }
  114. // When the module is disposed, remove the <style> tags
  115. module.hot.dispose(function() { update(); });
  116. }
  117. /***/ }),
  118. /***/ 309:
  119. /***/ (function(module, exports, __webpack_require__) {
  120. exports = module.exports = __webpack_require__(0)(false);
  121. // imports
  122. // module
  123. 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", ""]);
  124. // exports
  125. /***/ }),
  126. /***/ 310:
  127. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  128. "use strict";
  129. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  130. //
  131. //
  132. //
  133. //
  134. //
  135. //
  136. //
  137. //
  138. //
  139. //
  140. //
  141. //
  142. //
  143. //
  144. //
  145. //
  146. //
  147. //
  148. //
  149. //
  150. //
  151. //
  152. //
  153. //
  154. /* harmony default export */ __webpack_exports__["default"] = ({
  155. name: 'WContent',
  156. data: function data() {
  157. return {
  158. bgid: -1
  159. };
  160. },
  161. mounted: function mounted() {
  162. this.bgid = $A.runNum(this.usrInfo.bgid);
  163. },
  164. watch: {
  165. usrInfo: {
  166. handler: function handler(info) {
  167. this.bgid = $A.runNum(info.bgid);
  168. },
  169. deep: true
  170. }
  171. },
  172. methods: {
  173. getBgUrl: function getBgUrl(id, thumb) {
  174. if (id < 0) {
  175. return 'none';
  176. }
  177. id = Math.max(1, parseInt(id));
  178. return 'url(' + window.location.origin + '/images/bg/' + (thumb ? 'thumb/' : '') + id + '.jpg' + ')';
  179. }
  180. }
  181. });
  182. /***/ }),
  183. /***/ 311:
  184. /***/ (function(module, exports, __webpack_require__) {
  185. var render = function() {
  186. var _vm = this
  187. var _h = _vm.$createElement
  188. var _c = _vm._self._c || _h
  189. return _c(
  190. "div",
  191. {
  192. staticClass: "w-content",
  193. style: "background-image:" + _vm.getBgUrl(_vm.bgid)
  194. },
  195. [_vm._t("default")],
  196. 2
  197. )
  198. }
  199. var staticRenderFns = []
  200. render._withStripped = true
  201. module.exports = { render: render, staticRenderFns: staticRenderFns }
  202. if (false) {
  203. module.hot.accept()
  204. if (module.hot.data) {
  205. require("vue-hot-reload-api") .rerender("data-v-35be3d57", module.exports)
  206. }
  207. }
  208. /***/ }),
  209. /***/ 339:
  210. /***/ (function(module, exports, __webpack_require__) {
  211. var disposed = false
  212. function injectStyle (ssrContext) {
  213. if (disposed) return
  214. __webpack_require__(340)
  215. }
  216. var normalizeComponent = __webpack_require__(2)
  217. /* script */
  218. var __vue_script__ = __webpack_require__(342)
  219. /* template */
  220. var __vue_template__ = __webpack_require__(343)
  221. /* template functional */
  222. var __vue_template_functional__ = false
  223. /* styles */
  224. var __vue_styles__ = injectStyle
  225. /* scopeId */
  226. var __vue_scopeId__ = null
  227. /* moduleIdentifier (server only) */
  228. var __vue_module_identifier__ = null
  229. var Component = normalizeComponent(
  230. __vue_script__,
  231. __vue_template__,
  232. __vue_template_functional__,
  233. __vue_styles__,
  234. __vue_scopeId__,
  235. __vue_module_identifier__
  236. )
  237. Component.options.__file = "resources/assets/js/main/components/TagInput.vue"
  238. /* hot reload */
  239. if (false) {(function () {
  240. var hotAPI = require("vue-hot-reload-api")
  241. hotAPI.install(require("vue"), false)
  242. if (!hotAPI.compatible) return
  243. module.hot.accept()
  244. if (!module.hot.data) {
  245. hotAPI.createRecord("data-v-63d616a5", Component.options)
  246. } else {
  247. hotAPI.reload("data-v-63d616a5", Component.options)
  248. }
  249. module.hot.dispose(function (data) {
  250. disposed = true
  251. })
  252. })()}
  253. module.exports = Component.exports
  254. /***/ }),
  255. /***/ 340:
  256. /***/ (function(module, exports, __webpack_require__) {
  257. // style-loader: Adds some css to the DOM by adding a <style> tag
  258. // load the styles
  259. var content = __webpack_require__(341);
  260. if(typeof content === 'string') content = [[module.i, content, '']];
  261. if(content.locals) module.exports = content.locals;
  262. // add the styles to the DOM
  263. var update = __webpack_require__(1)("72d872d6", content, false, {});
  264. // Hot Module Replacement
  265. if(false) {
  266. // When the styles change, update the <style> tags
  267. if(!content.locals) {
  268. 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() {
  269. 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");
  270. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  271. update(newContent);
  272. });
  273. }
  274. // When the module is disposed, remove the <style> tags
  275. module.hot.dispose(function() { update(); });
  276. }
  277. /***/ }),
  278. /***/ 341:
  279. /***/ (function(module, exports, __webpack_require__) {
  280. exports = module.exports = __webpack_require__(0)(false);
  281. // imports
  282. // module
  283. 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", ""]);
  284. // exports
  285. /***/ }),
  286. /***/ 342:
  287. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  288. "use strict";
  289. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  290. //
  291. //
  292. //
  293. //
  294. //
  295. //
  296. //
  297. //
  298. //
  299. //
  300. //
  301. //
  302. //
  303. //
  304. //
  305. //
  306. //
  307. //
  308. //
  309. //
  310. //
  311. //
  312. //
  313. //
  314. //
  315. //
  316. //
  317. //
  318. //
  319. //
  320. //
  321. //
  322. //
  323. //
  324. //
  325. //
  326. //
  327. //
  328. //
  329. //
  330. //
  331. //
  332. //
  333. //
  334. //
  335. //
  336. //
  337. //
  338. //
  339. //
  340. //
  341. //
  342. //
  343. //
  344. //
  345. //
  346. //
  347. //
  348. //
  349. //
  350. //
  351. //
  352. //
  353. //
  354. //
  355. //
  356. //
  357. //
  358. //
  359. //
  360. //
  361. //
  362. //
  363. //
  364. //
  365. //
  366. //
  367. //
  368. //
  369. //
  370. //
  371. //
  372. /* harmony default export */ __webpack_exports__["default"] = ({
  373. name: 'TagInput',
  374. props: {
  375. value: {
  376. default: ''
  377. },
  378. cut: {
  379. default: ','
  380. },
  381. disabled: {
  382. type: Boolean,
  383. default: false
  384. },
  385. readonly: {
  386. type: Boolean,
  387. default: false
  388. },
  389. placeholder: {
  390. default: ''
  391. },
  392. max: {
  393. default: 0
  394. }
  395. },
  396. data: function data() {
  397. var disSource = [];
  398. this.value.split(",").forEach(function (item) {
  399. if (item) {
  400. disSource.push(item);
  401. }
  402. });
  403. return {
  404. minWidth: 80,
  405. tis: '',
  406. tisTimeout: null,
  407. showPlaceholder: true,
  408. content: '',
  409. disSource: disSource
  410. };
  411. },
  412. mounted: function mounted() {
  413. this.wayMinWidth();
  414. },
  415. watch: {
  416. placeholder: function placeholder() {
  417. this.wayMinWidth();
  418. },
  419. value: function value(val) {
  420. var disSource = [];
  421. if ($A.count(val) > 0) {
  422. val.split(",").forEach(function (item) {
  423. if (item) {
  424. disSource.push(item);
  425. }
  426. });
  427. }
  428. this.disSource = disSource;
  429. },
  430. disSource: function disSource(val) {
  431. var _this = this;
  432. var temp = '';
  433. val.forEach(function (item) {
  434. if (temp != '') {
  435. temp += _this.cut;
  436. }
  437. temp += item;
  438. });
  439. this.$emit('input', temp);
  440. }
  441. },
  442. methods: {
  443. wayMinWidth: function wayMinWidth() {
  444. var _this2 = this;
  445. this.showPlaceholder = true;
  446. this.$nextTick(function () {
  447. if (_this2.$refs.myPlaceholder) {
  448. _this2.minWidth = Math.max(_this2.minWidth, _this2.$refs.myPlaceholder.offsetWidth);
  449. }
  450. setTimeout(function () {
  451. try {
  452. _this2.minWidth = Math.max(_this2.minWidth, _this2.$refs.myPlaceholder.offsetWidth);
  453. _this2.showPlaceholder = false;
  454. } catch (e) {}
  455. if (!$A(_this2.$refs.myPlaceholder).is(":visible")) {
  456. _this2.wayMinWidth();
  457. }
  458. }, 500);
  459. });
  460. },
  461. pasteText: function pasteText(e) {
  462. e.preventDefault();
  463. var content = (e.clipboardData || window.clipboardData).getData('text');
  464. this.addTag(false, content);
  465. },
  466. clickWrap: function clickWrap() {
  467. this.$refs.myTextarea.focus();
  468. },
  469. downEnter: function downEnter(e) {
  470. e.preventDefault();
  471. },
  472. addTag: function addTag(e, content) {
  473. var _this3 = this;
  474. if (e.keyCode === 13 || e === false) {
  475. if (content.trim() != '' && this.disSource.indexOf(content.trim()) === -1) {
  476. this.disSource.push(content.trim());
  477. }
  478. this.content = '';
  479. } else {
  480. if (this.max > 0 && this.disSource.length >= this.max) {
  481. this.content = '';
  482. this.tis = '最多只能添加' + this.max + '个';
  483. clearInterval(this.tisTimeout);
  484. this.tisTimeout = setTimeout(function () {
  485. _this3.tis = '';
  486. }, 2000);
  487. return;
  488. }
  489. var temp = content.trim();
  490. var cutPos = temp.length - this.cut.length;
  491. if (temp != '' && temp.substring(cutPos) === this.cut) {
  492. temp = temp.substring(0, cutPos);
  493. if (temp.trim() != '' && this.disSource.indexOf(temp.trim()) === -1) {
  494. this.disSource.push(temp.trim());
  495. }
  496. this.content = '';
  497. }
  498. }
  499. },
  500. delTag: function delTag(index) {
  501. if (index === false) {
  502. if (this.content !== '') {
  503. return;
  504. }
  505. index = this.disSource.length - 1;
  506. }
  507. this.disSource.splice(index, 1);
  508. }
  509. }
  510. });
  511. /***/ }),
  512. /***/ 343:
  513. /***/ (function(module, exports, __webpack_require__) {
  514. var render = function() {
  515. var _vm = this
  516. var _h = _vm.$createElement
  517. var _c = _vm._self._c || _h
  518. return _c(
  519. "div",
  520. {
  521. staticClass: "tags-wrap",
  522. on: {
  523. paste: function($event) {
  524. return _vm.pasteText($event)
  525. },
  526. click: _vm.clickWrap
  527. }
  528. },
  529. [
  530. _vm._l(_vm.disSource, function(text, index) {
  531. return _c("div", { staticClass: "tags-item" }, [
  532. _c(
  533. "span",
  534. {
  535. staticClass: "tags-content",
  536. on: {
  537. click: function($event) {
  538. $event.stopPropagation()
  539. }
  540. }
  541. },
  542. [_vm._v(_vm._s(text))]
  543. ),
  544. _c(
  545. "span",
  546. {
  547. staticClass: "tags-del",
  548. on: {
  549. click: function($event) {
  550. $event.stopPropagation()
  551. return _vm.delTag(index)
  552. }
  553. }
  554. },
  555. [_vm._v("×")]
  556. )
  557. ])
  558. }),
  559. _vm._v(" "),
  560. _c("textarea", {
  561. directives: [
  562. {
  563. name: "model",
  564. rawName: "v-model",
  565. value: _vm.content,
  566. expression: "content"
  567. }
  568. ],
  569. ref: "myTextarea",
  570. staticClass: "tags-input",
  571. style: { minWidth: _vm.minWidth + "px" },
  572. attrs: {
  573. placeholder: _vm.tis || _vm.placeholder,
  574. disabled: _vm.disabled,
  575. readonly: _vm.readonly
  576. },
  577. domProps: { value: _vm.content },
  578. on: {
  579. keydown: [
  580. function($event) {
  581. if (
  582. !$event.type.indexOf("key") &&
  583. _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
  584. ) {
  585. return null
  586. }
  587. return _vm.downEnter($event)
  588. },
  589. function($event) {
  590. if (
  591. !$event.type.indexOf("key") &&
  592. _vm._k($event.keyCode, "delete", [8, 46], $event.key, [
  593. "Backspace",
  594. "Delete",
  595. "Del"
  596. ])
  597. ) {
  598. return null
  599. }
  600. return _vm.delTag(false)
  601. }
  602. ],
  603. keyup: function($event) {
  604. return _vm.addTag($event, _vm.content)
  605. },
  606. blur: function($event) {
  607. return _vm.addTag(false, _vm.content)
  608. },
  609. input: function($event) {
  610. if ($event.target.composing) {
  611. return
  612. }
  613. _vm.content = $event.target.value
  614. }
  615. }
  616. }),
  617. _vm._v(" "),
  618. _vm.showPlaceholder || _vm.tis !== ""
  619. ? _c(
  620. "span",
  621. { ref: "myPlaceholder", staticClass: "tags-placeholder" },
  622. [_vm._v(_vm._s(_vm.tis || _vm.placeholder))]
  623. )
  624. : _vm._e()
  625. ],
  626. 2
  627. )
  628. }
  629. var staticRenderFns = []
  630. render._withStripped = true
  631. module.exports = { render: render, staticRenderFns: staticRenderFns }
  632. if (false) {
  633. module.hot.accept()
  634. if (module.hot.data) {
  635. require("vue-hot-reload-api") .rerender("data-v-63d616a5", module.exports)
  636. }
  637. }
  638. /***/ }),
  639. /***/ 981:
  640. /***/ (function(module, exports, __webpack_require__) {
  641. // style-loader: Adds some css to the DOM by adding a <style> tag
  642. // load the styles
  643. var content = __webpack_require__(982);
  644. if(typeof content === 'string') content = [[module.i, content, '']];
  645. if(content.locals) module.exports = content.locals;
  646. // add the styles to the DOM
  647. var update = __webpack_require__(1)("02c58cc5", content, false, {});
  648. // Hot Module Replacement
  649. if(false) {
  650. // When the styles change, update the <style> tags
  651. if(!content.locals) {
  652. 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() {
  653. 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");
  654. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  655. update(newContent);
  656. });
  657. }
  658. // When the module is disposed, remove the <style> tags
  659. module.hot.dispose(function() { update(); });
  660. }
  661. /***/ }),
  662. /***/ 982:
  663. /***/ (function(module, exports, __webpack_require__) {
  664. exports = module.exports = __webpack_require__(0)(false);
  665. // imports
  666. // module
  667. 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", ""]);
  668. // exports
  669. /***/ }),
  670. /***/ 983:
  671. /***/ (function(module, exports, __webpack_require__) {
  672. // style-loader: Adds some css to the DOM by adding a <style> tag
  673. // load the styles
  674. var content = __webpack_require__(984);
  675. if(typeof content === 'string') content = [[module.i, content, '']];
  676. if(content.locals) module.exports = content.locals;
  677. // add the styles to the DOM
  678. var update = __webpack_require__(1)("895aec1e", content, false, {});
  679. // Hot Module Replacement
  680. if(false) {
  681. // When the styles change, update the <style> tags
  682. if(!content.locals) {
  683. 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() {
  684. 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");
  685. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  686. update(newContent);
  687. });
  688. }
  689. // When the module is disposed, remove the <style> tags
  690. module.hot.dispose(function() { update(); });
  691. }
  692. /***/ }),
  693. /***/ 984:
  694. /***/ (function(module, exports, __webpack_require__) {
  695. exports = module.exports = __webpack_require__(0)(false);
  696. // imports
  697. // module
  698. 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", ""]);
  699. // exports
  700. /***/ }),
  701. /***/ 985:
  702. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  703. "use strict";
  704. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  705. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_WContent__ = __webpack_require__(307);
  706. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_WContent___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__components_WContent__);
  707. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_ImgUpload__ = __webpack_require__(17);
  708. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_ImgUpload___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_ImgUpload__);
  709. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_TagInput__ = __webpack_require__(339);
  710. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_TagInput___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_TagInput__);
  711. //
  712. //
  713. //
  714. //
  715. //
  716. //
  717. //
  718. //
  719. //
  720. //
  721. //
  722. //
  723. //
  724. //
  725. //
  726. //
  727. //
  728. //
  729. //
  730. //
  731. //
  732. //
  733. //
  734. //
  735. //
  736. //
  737. //
  738. //
  739. //
  740. //
  741. //
  742. //
  743. //
  744. //
  745. //
  746. //
  747. //
  748. //
  749. //
  750. //
  751. //
  752. //
  753. //
  754. //
  755. //
  756. //
  757. //
  758. //
  759. //
  760. //
  761. //
  762. //
  763. //
  764. //
  765. //
  766. //
  767. //
  768. //
  769. //
  770. //
  771. //
  772. //
  773. //
  774. //
  775. //
  776. //
  777. //
  778. //
  779. //
  780. //
  781. //
  782. //
  783. //
  784. //
  785. //
  786. //
  787. //
  788. //
  789. //
  790. //
  791. //
  792. //
  793. //
  794. //
  795. //
  796. //
  797. //
  798. //
  799. //
  800. //
  801. //
  802. //
  803. //
  804. //
  805. //
  806. //
  807. //
  808. //
  809. //
  810. //
  811. //
  812. //
  813. //
  814. //
  815. //
  816. //
  817. //
  818. //
  819. //
  820. //
  821. //
  822. //
  823. //
  824. //
  825. //
  826. //
  827. //
  828. //
  829. //
  830. //
  831. //
  832. //
  833. /* harmony default export */ __webpack_exports__["default"] = ({
  834. 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 },
  835. data: function data() {
  836. return {
  837. loadIng: 0,
  838. isAdmin: false,
  839. columns: [],
  840. lists: [],
  841. listPage: 1,
  842. listTotal: 0,
  843. noDataText: "",
  844. addShow: false,
  845. formData: {
  846. id: 0,
  847. userimg: '',
  848. profession: '',
  849. username: '',
  850. nickname: '',
  851. userpass: ''
  852. }
  853. };
  854. },
  855. mounted: function mounted() {
  856. this.getLists(true);
  857. },
  858. deactivated: function deactivated() {
  859. this.addShow = false;
  860. },
  861. watch: {
  862. usrName: function usrName() {
  863. this.usrLogin && this.getLists(true);
  864. }
  865. },
  866. methods: {
  867. initLanguage: function initLanguage() {
  868. var _this = this;
  869. this.isAdmin = $A.identity('admin');
  870. this.noDataText = this.$L("数据加载中.....");
  871. this.columns = [{
  872. "title": this.$L("头像"),
  873. "minWidth": 60,
  874. "maxWidth": 100,
  875. render: function render(h, params) {
  876. return h('UserImg', {
  877. props: {
  878. info: params.row
  879. },
  880. style: {
  881. width: "30px",
  882. height: "30px",
  883. fontSize: "16px",
  884. lineHeight: "30px",
  885. borderRadius: "15px",
  886. verticalAlign: "middle"
  887. }
  888. });
  889. }
  890. }, {
  891. "title": this.$L("用户名"),
  892. "key": 'username',
  893. "minWidth": 80,
  894. "ellipsis": true,
  895. render: function render(h, params) {
  896. var arr = [];
  897. if (params.row.username == _this.usrName) {
  898. arr.push(h('span', {
  899. style: {
  900. color: '#ff0000',
  901. paddingRight: '4px'
  902. }
  903. }, '[自己]'));
  904. }
  905. if ($A.identityRaw('admin', params.row.identity)) {
  906. arr.push(h('span', {
  907. style: {
  908. color: '#ff0000',
  909. paddingRight: '4px'
  910. }
  911. }, '[管理员]'));
  912. }
  913. arr.push(h('span', params.row.username));
  914. return h('span', arr);
  915. }
  916. }, {
  917. "title": this.$L("昵称"),
  918. "minWidth": 80,
  919. "ellipsis": true,
  920. render: function render(h, params) {
  921. return h('span', params.row.nickname || '-');
  922. }
  923. }, {
  924. "title": this.$L("职位/职称"),
  925. "minWidth": 100,
  926. "ellipsis": true,
  927. render: function render(h, params) {
  928. return h('span', params.row.profession || '-');
  929. }
  930. }, {
  931. "title": this.$L("加入时间"),
  932. "width": 160,
  933. render: function render(h, params) {
  934. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.regdate));
  935. }
  936. }, {
  937. "title": this.$L("操作"),
  938. "key": 'action',
  939. "width": this.isAdmin ? 160 : 80,
  940. "align": 'center',
  941. render: function render(h, params) {
  942. var array = [];
  943. array.push(h('Button', {
  944. props: {
  945. type: 'primary',
  946. size: 'small'
  947. },
  948. style: {
  949. fontSize: '12px'
  950. },
  951. on: {
  952. click: function click() {
  953. _this.$Modal.info({
  954. title: _this.$L('会员信息'),
  955. content: "<p>" + _this.$L('昵称') + ": " + (params.row.nickname || '-') + "</p><p>" + _this.$L('职位/职称') + ": " + (params.row.profession || '-') + "</p>"
  956. });
  957. }
  958. }
  959. }, _this.$L('查看')));
  960. if (_this.isAdmin) {
  961. array.push(h('Dropdown', {
  962. props: {
  963. trigger: 'click',
  964. transfer: true
  965. },
  966. on: {
  967. 'on-click': function onClick(name) {
  968. _this.handleUser(name, params.row);
  969. }
  970. }
  971. }, [h('Button', {
  972. props: {
  973. type: 'warning',
  974. size: 'small'
  975. },
  976. style: {
  977. fontSize: '12px',
  978. marginLeft: '5px'
  979. }
  980. }, _this.$L('操作')), h('DropdownMenu', {
  981. slot: 'list'
  982. }, [h('DropdownItem', {
  983. props: {
  984. name: 'edit'
  985. }
  986. }, _this.$L('修改成员信息')), h('DropdownItem', {
  987. props: {
  988. name: $A.identityRaw('admin', params.row.identity) ? 'deladmin' : 'setadmin'
  989. }
  990. }, _this.$L($A.identityRaw('admin', params.row.identity) ? '取消管理员' : '设为管理员')), h('DropdownItem', {
  991. props: {
  992. name: 'delete'
  993. }
  994. }, _this.$L('删除'))])]));
  995. }
  996. return h('div', array);
  997. }
  998. }];
  999. },
  1000. setPage: function setPage(page) {
  1001. this.listPage = page;
  1002. this.getLists();
  1003. },
  1004. setPageSize: function setPageSize(size) {
  1005. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  1006. this.listPageSize = size;
  1007. this.getLists();
  1008. }
  1009. },
  1010. getLists: function getLists(resetLoad) {
  1011. var _this2 = this;
  1012. if (resetLoad === true) {
  1013. this.listPage = 1;
  1014. }
  1015. this.loadIng++;
  1016. this.noDataText = this.$L("数据加载中.....");
  1017. $A.apiAjax({
  1018. url: 'users/team/lists',
  1019. data: {
  1020. page: Math.max(this.listPage, 1),
  1021. pagesize: Math.max($A.runNum(this.listPageSize), 10)
  1022. },
  1023. complete: function complete() {
  1024. _this2.loadIng--;
  1025. },
  1026. error: function error() {
  1027. _this2.noDataText = _this2.$L("数据加载失败!");
  1028. },
  1029. success: function success(res) {
  1030. if (res.ret === 1) {
  1031. _this2.lists = res.data.lists;
  1032. _this2.listTotal = res.data.total;
  1033. _this2.noDataText = _this2.$L("没有相关的数据");
  1034. } else {
  1035. _this2.lists = [];
  1036. _this2.listTotal = 0;
  1037. _this2.noDataText = res.msg;
  1038. }
  1039. }
  1040. });
  1041. },
  1042. onAdd: function onAdd() {
  1043. var _this3 = this;
  1044. this.loadIng++;
  1045. var id = $A.runNum(this.formData.id);
  1046. $A.apiAjax({
  1047. url: 'users/team/add',
  1048. data: this.formData,
  1049. complete: function complete() {
  1050. _this3.loadIng--;
  1051. },
  1052. success: function success(res) {
  1053. if (res.ret === 1) {
  1054. _this3.addShow = false;
  1055. _this3.$Message.success(res.msg);
  1056. _this3.$refs.add.resetFields();
  1057. //
  1058. _this3.getLists(id == 0);
  1059. } else {
  1060. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  1061. }
  1062. }
  1063. });
  1064. },
  1065. handleUser: function handleUser(act, info) {
  1066. var _this4 = this;
  1067. switch (act) {
  1068. case "add":
  1069. {
  1070. this.addShow = true;
  1071. this.formData = {
  1072. id: 0,
  1073. userimg: '',
  1074. profession: '',
  1075. username: '',
  1076. nickname: '',
  1077. userpass: '',
  1078. changepass: 1
  1079. };
  1080. break;
  1081. }
  1082. case "edit":
  1083. {
  1084. this.addShow = true;
  1085. this.formData = Object.assign($A.cloneData(info));
  1086. break;
  1087. }
  1088. case "delete":
  1089. {
  1090. this.$Modal.confirm({
  1091. title: this.$L('删除团队成员'),
  1092. content: this.$L('你确定要删除此团队成员吗?'),
  1093. loading: true,
  1094. onOk: function onOk() {
  1095. $A.apiAjax({
  1096. url: 'users/team/delete?username=' + info.username,
  1097. error: function error() {
  1098. _this4.$Modal.remove();
  1099. alert(_this4.$L('网络繁忙,请稍后再试!'));
  1100. },
  1101. success: function success(res) {
  1102. _this4.$Modal.remove();
  1103. _this4.getLists();
  1104. setTimeout(function () {
  1105. if (res.ret === 1) {
  1106. _this4.$Message.success(res.msg);
  1107. } else {
  1108. _this4.$Modal.error({ title: _this4.$L('温馨提示'), content: res.msg });
  1109. }
  1110. }, 350);
  1111. }
  1112. });
  1113. }
  1114. });
  1115. break;
  1116. }
  1117. case "setadmin":
  1118. case "deladmin":
  1119. {
  1120. this.$Modal.confirm({
  1121. title: this.$L('确定操作'),
  1122. content: this.$L(act == 'deladmin' ? '你确定取消管理员身份的操作吗?' : '你确定设置管理员的操作吗?'),
  1123. loading: true,
  1124. onOk: function onOk() {
  1125. $A.apiAjax({
  1126. url: 'users/team/admin?act=' + (act == 'deladmin' ? 'del' : 'set') + '&username=' + info.username,
  1127. error: function error() {
  1128. _this4.$Modal.remove();
  1129. alert(_this4.$L('网络繁忙,请稍后再试!'));
  1130. },
  1131. success: function success(res) {
  1132. _this4.$Modal.remove();
  1133. if (res.ret === 1) {
  1134. _this4.lists.some(function (item) {
  1135. if (item.username == info.username) {
  1136. _this4.$set(item, 'identity', res.data.identity);
  1137. return true;
  1138. }
  1139. });
  1140. if (res.data.up === 1) {
  1141. var data = {
  1142. type: 'text',
  1143. username: _this4.usrInfo.username,
  1144. userimg: _this4.usrInfo.userimg,
  1145. indate: Math.round(new Date().getTime() / 1000),
  1146. text: _this4.$L(act == 'deladmin' ? '您的管理员身份已被撤销。' : '恭喜您成为管理员。')
  1147. };
  1148. $A.WSOB.sendTo('user', info.username, data, 'special');
  1149. $A.WSOB.sendTo('info', info.username, { 'type': 'update' });
  1150. }
  1151. }
  1152. setTimeout(function () {
  1153. if (res.ret === 1) {
  1154. _this4.$Message.success(res.msg);
  1155. } else {
  1156. _this4.$Modal.error({ title: _this4.$L('温馨提示'), content: res.msg });
  1157. }
  1158. }, 350);
  1159. }
  1160. });
  1161. }
  1162. });
  1163. break;
  1164. }
  1165. }
  1166. }
  1167. }
  1168. });
  1169. /***/ }),
  1170. /***/ 986:
  1171. /***/ (function(module, exports, __webpack_require__) {
  1172. var render = function() {
  1173. var _vm = this
  1174. var _h = _vm.$createElement
  1175. var _c = _vm._self._c || _h
  1176. return _c(
  1177. "div",
  1178. { staticClass: "w-main team" },
  1179. [
  1180. _c("v-title", [_vm._v(_vm._s(_vm.$L("团队")))]),
  1181. _vm._v(" "),
  1182. _c("div", { staticClass: "w-nav" }, [
  1183. _c("div", { staticClass: "nav-row" }, [
  1184. _c("div", { staticClass: "w-nav-left" }, [
  1185. _c("div", { staticClass: "page-nav-left" }, [
  1186. _c("span", [
  1187. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  1188. _vm._v(" " + _vm._s(_vm.$L("团队成员")))
  1189. ]),
  1190. _vm._v(" "),
  1191. _vm.loadIng > 0
  1192. ? _c(
  1193. "div",
  1194. { staticClass: "page-nav-loading" },
  1195. [_c("w-loading")],
  1196. 1
  1197. )
  1198. : _c("div", { staticClass: "page-nav-refresh" }, [
  1199. _c(
  1200. "em",
  1201. {
  1202. on: {
  1203. click: function($event) {
  1204. return _vm.getLists(true)
  1205. }
  1206. }
  1207. },
  1208. [_vm._v(_vm._s(_vm.$L("刷新")))]
  1209. )
  1210. ])
  1211. ])
  1212. ]),
  1213. _vm._v(" "),
  1214. _c("div", { staticClass: "w-nav-flex" }),
  1215. _vm._v(" "),
  1216. _c(
  1217. "div",
  1218. { staticClass: "m768-show w-nav-right" },
  1219. [
  1220. _c(
  1221. "Dropdown",
  1222. {
  1223. attrs: { trigger: "click", transfer: "" },
  1224. on: { "on-click": _vm.handleUser }
  1225. },
  1226. [
  1227. _c("Icon", { attrs: { type: "md-menu", size: "18" } }),
  1228. _vm._v(" "),
  1229. _c(
  1230. "DropdownMenu",
  1231. { attrs: { slot: "list" }, slot: "list" },
  1232. [
  1233. _c("DropdownItem", { attrs: { name: "add" } }, [
  1234. _vm._v(_vm._s(_vm.$L("添加团队成员")))
  1235. ])
  1236. ],
  1237. 1
  1238. )
  1239. ],
  1240. 1
  1241. )
  1242. ],
  1243. 1
  1244. ),
  1245. _vm._v(" "),
  1246. _c("div", { staticClass: "m768-hide w-nav-right" }, [
  1247. _c(
  1248. "span",
  1249. {
  1250. staticClass: "ft hover",
  1251. on: {
  1252. click: function($event) {
  1253. return _vm.handleUser("add")
  1254. }
  1255. }
  1256. },
  1257. [
  1258. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  1259. _vm._v(" " + _vm._s(_vm.$L("添加团队成员")))
  1260. ]
  1261. )
  1262. ])
  1263. ])
  1264. ]),
  1265. _vm._v(" "),
  1266. _c("w-content", [
  1267. _c("div", { staticClass: "team-main" }, [
  1268. _c(
  1269. "div",
  1270. { staticClass: "team-body" },
  1271. [
  1272. _c("Table", {
  1273. ref: "tableRef",
  1274. staticClass: "tableFill",
  1275. attrs: {
  1276. columns: _vm.columns,
  1277. data: _vm.lists,
  1278. loading: _vm.loadIng > 0,
  1279. "no-data-text": _vm.noDataText,
  1280. stripe: ""
  1281. }
  1282. }),
  1283. _vm._v(" "),
  1284. _c("Page", {
  1285. staticClass: "pageBox",
  1286. attrs: {
  1287. total: _vm.listTotal,
  1288. current: _vm.listPage,
  1289. disabled: _vm.loadIng > 0,
  1290. "page-size-opts": [10, 20, 30, 50, 100],
  1291. placement: "top",
  1292. "show-elevator": "",
  1293. "show-sizer": "",
  1294. "show-total": "",
  1295. simple: _vm.windowMax768
  1296. },
  1297. on: {
  1298. "on-change": _vm.setPage,
  1299. "on-page-size-change": _vm.setPageSize
  1300. }
  1301. })
  1302. ],
  1303. 1
  1304. )
  1305. ])
  1306. ]),
  1307. _vm._v(" "),
  1308. _c(
  1309. "Modal",
  1310. {
  1311. attrs: {
  1312. title: _vm.$L(
  1313. _vm.formData.id > 0 ? "修改团队成员" : "添加团队成员"
  1314. ),
  1315. closable: false,
  1316. "mask-closable": false,
  1317. "class-name": "simple-modal"
  1318. },
  1319. model: {
  1320. value: _vm.addShow,
  1321. callback: function($$v) {
  1322. _vm.addShow = $$v
  1323. },
  1324. expression: "addShow"
  1325. }
  1326. },
  1327. [
  1328. _c(
  1329. "Form",
  1330. {
  1331. ref: "add",
  1332. attrs: { model: _vm.formData, "label-width": 80 },
  1333. nativeOn: {
  1334. submit: function($event) {
  1335. $event.preventDefault()
  1336. }
  1337. }
  1338. },
  1339. [
  1340. _c(
  1341. "FormItem",
  1342. { attrs: { prop: "userimg", label: _vm.$L("头像") } },
  1343. [
  1344. _c("ImgUpload", {
  1345. model: {
  1346. value: _vm.formData.userimg,
  1347. callback: function($$v) {
  1348. _vm.$set(_vm.formData, "userimg", $$v)
  1349. },
  1350. expression: "formData.userimg"
  1351. }
  1352. })
  1353. ],
  1354. 1
  1355. ),
  1356. _vm._v(" "),
  1357. _c(
  1358. "FormItem",
  1359. { attrs: { prop: "nickname", label: _vm.$L("昵称") } },
  1360. [
  1361. _c("Input", {
  1362. attrs: { type: "text" },
  1363. model: {
  1364. value: _vm.formData.nickname,
  1365. callback: function($$v) {
  1366. _vm.$set(_vm.formData, "nickname", $$v)
  1367. },
  1368. expression: "formData.nickname"
  1369. }
  1370. })
  1371. ],
  1372. 1
  1373. ),
  1374. _vm._v(" "),
  1375. _c(
  1376. "FormItem",
  1377. { attrs: { prop: "profession", label: _vm.$L("职位/职称") } },
  1378. [
  1379. _c("Input", {
  1380. model: {
  1381. value: _vm.formData.profession,
  1382. callback: function($$v) {
  1383. _vm.$set(_vm.formData, "profession", $$v)
  1384. },
  1385. expression: "formData.profession"
  1386. }
  1387. })
  1388. ],
  1389. 1
  1390. ),
  1391. _vm._v(" "),
  1392. _c(
  1393. "FormItem",
  1394. { attrs: { prop: "username" } },
  1395. [
  1396. _c("div", { attrs: { slot: "label" }, slot: "label" }, [
  1397. _vm.formData.id == 0
  1398. ? _c("em", { staticClass: "team-add-red-input" }, [
  1399. _vm._v("*")
  1400. ])
  1401. : _vm._e(),
  1402. _vm._v(_vm._s(_vm.$L("用户名")))
  1403. ]),
  1404. _vm._v(" "),
  1405. _vm.formData.id > 0
  1406. ? _c("Input", {
  1407. attrs: { disabled: "" },
  1408. model: {
  1409. value: _vm.formData.username,
  1410. callback: function($$v) {
  1411. _vm.$set(_vm.formData, "username", $$v)
  1412. },
  1413. expression: "formData.username"
  1414. }
  1415. })
  1416. : _c("TagInput", {
  1417. attrs: {
  1418. placeholder: _vm.$L(
  1419. "添加后不可修改,使用英文逗号添加多个。"
  1420. )
  1421. },
  1422. model: {
  1423. value: _vm.formData.username,
  1424. callback: function($$v) {
  1425. _vm.$set(_vm.formData, "username", $$v)
  1426. },
  1427. expression: "formData.username"
  1428. }
  1429. })
  1430. ],
  1431. 1
  1432. ),
  1433. _vm._v(" "),
  1434. _c(
  1435. "FormItem",
  1436. { attrs: { prop: "userpass" } },
  1437. [
  1438. _c("div", { attrs: { slot: "label" }, slot: "label" }, [
  1439. _vm.formData.id == 0
  1440. ? _c("em", { staticClass: "team-add-red-input" }, [
  1441. _vm._v("*")
  1442. ])
  1443. : _vm._e(),
  1444. _vm._v(_vm._s(_vm.$L("登录密码")))
  1445. ]),
  1446. _vm._v(" "),
  1447. _c("Input", {
  1448. attrs: {
  1449. type: "password",
  1450. placeholder: _vm.$L(
  1451. _vm.formData.id > 0 ? "留空不修改" : "最少6位数"
  1452. )
  1453. },
  1454. model: {
  1455. value: _vm.formData.userpass,
  1456. callback: function($$v) {
  1457. _vm.$set(_vm.formData, "userpass", $$v)
  1458. },
  1459. expression: "formData.userpass"
  1460. }
  1461. })
  1462. ],
  1463. 1
  1464. ),
  1465. _vm._v(" "),
  1466. _vm.formData.id == 0
  1467. ? _c(
  1468. "FormItem",
  1469. {
  1470. staticClass: "team-add-form-item-changepass",
  1471. class: { show: _vm.formData.userpass },
  1472. attrs: { prop: "changepass" }
  1473. },
  1474. [
  1475. _c(
  1476. "Checkbox",
  1477. {
  1478. attrs: { "true-value": 1, "false-value": 0 },
  1479. model: {
  1480. value: _vm.formData.changepass,
  1481. callback: function($$v) {
  1482. _vm.$set(_vm.formData, "changepass", $$v)
  1483. },
  1484. expression: "formData.changepass"
  1485. }
  1486. },
  1487. [_vm._v(_vm._s(_vm.$L("首次登陆需修改密码")))]
  1488. )
  1489. ],
  1490. 1
  1491. )
  1492. : _vm._e()
  1493. ],
  1494. 1
  1495. ),
  1496. _vm._v(" "),
  1497. _c(
  1498. "div",
  1499. { attrs: { slot: "footer" }, slot: "footer" },
  1500. [
  1501. _c(
  1502. "Button",
  1503. {
  1504. attrs: { type: "default" },
  1505. on: {
  1506. click: function($event) {
  1507. _vm.addShow = false
  1508. }
  1509. }
  1510. },
  1511. [_vm._v(_vm._s(_vm.$L("取消")))]
  1512. ),
  1513. _vm._v(" "),
  1514. _c(
  1515. "Button",
  1516. {
  1517. attrs: { type: "primary", loading: _vm.loadIng > 0 },
  1518. on: { click: _vm.onAdd }
  1519. },
  1520. [_vm._v(_vm._s(_vm.$L(_vm.formData.id > 0 ? "修改" : "添加")))]
  1521. )
  1522. ],
  1523. 1
  1524. )
  1525. ],
  1526. 1
  1527. )
  1528. ],
  1529. 1
  1530. )
  1531. }
  1532. var staticRenderFns = []
  1533. render._withStripped = true
  1534. module.exports = { render: render, staticRenderFns: staticRenderFns }
  1535. if (false) {
  1536. module.hot.accept()
  1537. if (module.hot.data) {
  1538. require("vue-hot-reload-api") .rerender("data-v-689d329c", module.exports)
  1539. }
  1540. }
  1541. /***/ })
  1542. });