/******/ (function(modules) { // webpackBootstrap /******/ // install a JSONP callback for chunk loading /******/ function webpackJsonpCallback(data) { /******/ var chunkIds = data[0]; /******/ var moreModules = data[1]; /******/ var executeModules = data[2]; /******/ /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; /******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; /******/ } /******/ for(moduleId in moreModules) { /******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { /******/ modules[moduleId] = moreModules[moduleId]; /******/ } /******/ } /******/ if(parentJsonpFunction) parentJsonpFunction(data); /******/ /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } /******/ /******/ // add entry modules from loaded chunk to deferred list /******/ deferredModules.push.apply(deferredModules, executeModules || []); /******/ /******/ // run deferred modules when all chunks ready /******/ return checkDeferredModules(); /******/ }; /******/ function checkDeferredModules() { /******/ var result; /******/ for(var i = 0; i < deferredModules.length; i++) { /******/ var deferredModule = deferredModules[i]; /******/ var fulfilled = true; /******/ for(var j = 1; j < deferredModule.length; j++) { /******/ var depId = deferredModule[j]; /******/ if(installedChunks[depId] !== 0) fulfilled = false; /******/ } /******/ if(fulfilled) { /******/ deferredModules.splice(i--, 1); /******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); /******/ } /******/ } /******/ /******/ return result; /******/ } /******/ /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // object to store loaded and loading chunks /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // Promise = chunk loading, 0 = chunk loaded /******/ var installedChunks = { /******/ "app": 0 /******/ }; /******/ /******/ var deferredModules = []; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ /******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || []; /******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); /******/ jsonpArray.push = webpackJsonpCallback; /******/ jsonpArray = jsonpArray.slice(); /******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]); /******/ var parentJsonpFunction = oldJsonpFunction; /******/ /******/ /******/ // add entry module to deferred list /******/ deferredModules.push([0,"chunk-vendors"]); /******/ // run deferred modules when ready /******/ return checkDeferredModules(); /******/ }) /************************************************************************/ /******/ ({ /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js&": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js& ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"App\"\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/App.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/components/Breadcrumb/index.vue?vue&type=script&lang=js&": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/components/Breadcrumb/index.vue?vue&type=script&lang=js& ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.json.stringify.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.json.stringify.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.filter.js\");\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.trim.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.trim.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _personnel = __webpack_require__(/*! @/api/personnel */ \"./src/api/personnel/index.js\");\n\nvar _pathToRegexp = _interopRequireDefault(__webpack_require__(/*! path-to-regexp */ \"./node_modules/_path-to-regexp@2.4.0@path-to-regexp/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n levelList: null\n };\n },\n watch: {\n $route: function $route() {\n this.getBreadcrumb();\n }\n },\n created: function created() {\n this.getBreadcrumb();\n this.getNationList();\n },\n methods: {\n getNationList: function getNationList() {\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _personnel.getNationList)().then(function (res) {\n //console.log(res.data['App\\Repositories\\Enums\\NationEnum'], \"班级列表\")\n sessionStorage.setItem(\"status\", JSON.stringify(res[\"data\"]));\n });\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n getBreadcrumb: function getBreadcrumb() {\n // only show routes with meta.title\n var matched = this.$route.matched.filter(function (item) {\n return item.meta && item.meta.title;\n });\n var first = matched[0];\n\n if (!this.isDashboard(first)) {//matched = [{ path: '/dashboard', meta: { title: '首页' }}].concat(matched)//去掉最上边标题导航上边的Dashboard\n }\n\n this.levelList = matched.filter(function (item) {\n return item.meta && item.meta.title && item.meta.breadcrumb !== false;\n });\n },\n isDashboard: function isDashboard(route) {\n var name = route && route.name;\n\n if (!name) {\n return false;\n }\n\n return name.trim().toLocaleLowerCase() === \"Dashboard\".toLocaleLowerCase();\n },\n pathCompile: function pathCompile(path) {\n // To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561\n var params = this.$route.params;\n\n var toPath = _pathToRegexp.default.compile(path);\n\n return toPath(params);\n },\n handleLink: function handleLink(item) {\n var redirect = item.redirect,\n path = item.path;\n\n if (redirect) {\n this.$router.push(redirect);\n return;\n }\n\n this.$router.push(this.pathCompile(path));\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/components/Breadcrumb/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/components/Hamburger/index.vue?vue&type=script&lang=js&": /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/components/Hamburger/index.vue?vue&type=script&lang=js& ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: 'Hamburger',\n props: {\n isActive: {\n type: Boolean,\n default: false\n }\n },\n methods: {\n toggleClick: function toggleClick() {\n this.$emit('toggleClick');\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/components/Hamburger/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/components/SvgIcon/index.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/components/SvgIcon/index.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _validate = __webpack_require__(/*! @/utils/validate */ \"./src/utils/validate.js\");\n\n//\n//\n//\n//\n//\n//\n//\n// doc: https://panjiachen.github.io/vue-element-admin-site/feature/component/svg-icon.html#usage\nvar _default = {\n name: 'SvgIcon',\n props: {\n iconClass: {\n type: String,\n required: true\n },\n className: {\n type: String,\n default: ''\n }\n },\n computed: {\n isExternal: function isExternal() {\n return (0, _validate.isExternal)(this.iconClass);\n },\n iconName: function iconName() {\n return \"#icon-\".concat(this.iconClass);\n },\n svgClass: function svgClass() {\n if (this.className) {\n return 'svg-icon ' + this.className;\n } else {\n return 'svg-icon';\n }\n },\n styleExternalIcon: function styleExternalIcon() {\n return {\n mask: \"url(\".concat(this.iconClass, \") no-repeat 50% 50%\"),\n '-webkit-mask': \"url(\".concat(this.iconClass, \") no-repeat 50% 50%\")\n };\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/components/SvgIcon/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/components/Tinymce/components/EditorImage.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/components/Tinymce/components/EditorImage.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.keys.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.iterator.js\");\n\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/web.dom-collections.iterator.js\");\n\n__webpack_require__(/*! core-js/modules/web.url.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/web.url.js\");\n\n__webpack_require__(/*! core-js/modules/web.url-search-params.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/web.url-search-params.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// import { getToken } from 'api/qiniu'\nvar _default = {\n name: 'EditorSlideUpload',\n props: {\n color: {\n type: String,\n default: '#1890ff'\n }\n },\n data: function data() {\n return {\n dialogVisible: false,\n listObj: {},\n fileList: []\n };\n },\n methods: {\n checkAllSuccess: function checkAllSuccess() {\n var _this = this;\n\n return Object.keys(this.listObj).every(function (item) {\n return _this.listObj[item].hasSuccess;\n });\n },\n handleSubmit: function handleSubmit() {\n var _this2 = this;\n\n var arr = Object.keys(this.listObj).map(function (v) {\n return _this2.listObj[v];\n });\n\n if (!this.checkAllSuccess()) {\n this.$message('Please wait for all images to be uploaded successfully. If there is a network problem, please refresh the page and upload again!');\n return;\n }\n\n this.$emit('successCBK', arr);\n this.listObj = {};\n this.fileList = [];\n this.dialogVisible = false;\n },\n handleSuccess: function handleSuccess(response, file) {\n var uid = file.uid;\n var objKeyArr = Object.keys(this.listObj);\n\n for (var i = 0, len = objKeyArr.length; i < len; i++) {\n if (this.listObj[objKeyArr[i]].uid === uid) {\n this.listObj[objKeyArr[i]].url = response.files.file;\n this.listObj[objKeyArr[i]].hasSuccess = true;\n return;\n }\n }\n },\n handleRemove: function handleRemove(file) {\n var uid = file.uid;\n var objKeyArr = Object.keys(this.listObj);\n\n for (var i = 0, len = objKeyArr.length; i < len; i++) {\n if (this.listObj[objKeyArr[i]].uid === uid) {\n delete this.listObj[objKeyArr[i]];\n return;\n }\n }\n },\n beforeUpload: function beforeUpload(file) {\n var _self = this;\n\n var _URL = window.URL || window.webkitURL;\n\n var fileName = file.uid;\n this.listObj[fileName] = {};\n return new Promise(function (resolve, reject) {\n var img = new Image();\n img.src = _URL.createObjectURL(file);\n\n img.onload = function () {\n _self.listObj[fileName] = {\n hasSuccess: false,\n uid: file.uid,\n width: this.width,\n height: this.height\n };\n };\n\n resolve(true);\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/components/Tinymce/components/EditorImage.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/components/Tinymce/index.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/components/Tinymce/index.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.number.to-fixed.js\");\n\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.number.constructor.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.exec.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.test.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.test.js\");\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/web.dom-collections.for-each.js\");\n\nvar _EditorImage = _interopRequireDefault(__webpack_require__(/*! ./components/EditorImage */ \"./src/components/Tinymce/components/EditorImage.vue\"));\n\nvar _plugins = _interopRequireDefault(__webpack_require__(/*! ./plugins */ \"./src/components/Tinymce/plugins.js\"));\n\nvar _toolbar = _interopRequireDefault(__webpack_require__(/*! ./toolbar */ \"./src/components/Tinymce/toolbar.js\"));\n\nvar _dynamicLoadScript = _interopRequireDefault(__webpack_require__(/*! ./dynamicLoadScript */ \"./src/components/Tinymce/dynamicLoadScript.js\"));\n\nvar _index = __webpack_require__(/*! ./api/index */ \"./src/components/Tinymce/api/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/**\n * docs:\n * https://panjiachen.github.io/vue-element-admin-site/feature/component/rich-editor.html#tinymce\n */\n// why use this cdn, detail see https://github.com/PanJiaChen/tinymce-all-in-one\nvar tinymceCDN = 'https://cdn.jsdelivr.net/npm/tinymce-all-in-one@4.9.3/tinymce.min.js';\nvar _default2 = {\n name: 'Tinymce',\n components: {\n editorImage: _EditorImage.default\n },\n props: {\n id: {\n type: String,\n default: function _default() {\n return 'vue-tinymce-' + +new Date() + ((Math.random() * 1000).toFixed(0) + '');\n }\n },\n value: {\n type: String,\n default: ''\n },\n toolbar: {\n type: Array,\n required: false,\n default: function _default() {\n return [];\n }\n },\n menubar: {\n type: String,\n default: 'file edit insert view format table'\n },\n height: {\n type: [Number, String],\n required: false,\n default: 360\n },\n width: {\n type: [Number, String],\n required: false,\n default: 'auto'\n }\n },\n data: function data() {\n return {\n hasChange: false,\n hasInit: false,\n tinymceId: this.id,\n fullscreen: false,\n languageTypeList: {\n 'en': 'en',\n 'zh': 'zh_CN',\n 'es': 'es_MX',\n 'ja': 'ja'\n }\n };\n },\n computed: {\n containerWidth: function containerWidth() {\n var width = this.width;\n\n if (/^[\\d]+(\\.[\\d]+)?$/.test(width)) {\n // matches `100`, `'100'`\n return \"\".concat(width, \"px\");\n }\n\n return width;\n }\n },\n watch: {\n value: function value(val) {\n var _this2 = this;\n\n if (!this.hasChange && this.hasInit) {\n this.$nextTick(function () {\n return window.tinymce.get(_this2.tinymceId).setContent(val || '');\n });\n }\n }\n },\n mounted: function mounted() {\n this.init();\n },\n activated: function activated() {\n if (window.tinymce) {\n this.initTinymce();\n }\n },\n deactivated: function deactivated() {\n this.destroyTinymce();\n },\n destroyed: function destroyed() {\n this.destroyTinymce();\n },\n methods: {\n init: function init() {\n var _this3 = this;\n\n // dynamic load tinymce from cdn\n (0, _dynamicLoadScript.default)(tinymceCDN, function (err) {\n if (err) {\n _this3.$message.error(err.message);\n\n return;\n }\n\n _this3.initTinymce();\n });\n },\n initTinymce: function initTinymce() {\n var _this4 = this;\n\n var _this = this;\n\n window.tinymce.init({\n selector: \"#\".concat(this.tinymceId),\n language: this.languageTypeList['zh'],\n height: this.height,\n body_class: 'panel-body ',\n object_resizing: false,\n toolbar: this.toolbar.length > 0 ? this.toolbar : _toolbar.default,\n menubar: this.menubar,\n plugins: _plugins.default,\n end_container_on_empty_block: true,\n powerpaste_word_import: 'clean',\n code_dialog_height: 450,\n code_dialog_width: 1000,\n advlist_bullet_styles: 'square',\n advlist_number_styles: 'default',\n imagetools_cors_hosts: ['www.tinymce.com', 'codepen.io'],\n default_link_target: '_blank',\n link_title: false,\n nonbreaking_force_tab: true,\n // inserting nonbreaking space   need Nonbreaking Space Plugin\n init_instance_callback: function init_instance_callback(editor) {\n if (_this.value) {\n editor.setContent(_this.value);\n }\n\n _this.hasInit = true;\n editor.on('NodeChange Change KeyUp SetContent', function () {\n _this4.hasChange = true;\n\n _this4.$emit('input', editor.getContent());\n });\n },\n setup: function setup(editor) {\n editor.on('FullscreenStateChanged', function (e) {\n _this.fullscreen = e.state;\n });\n },\n // 整合七牛上传\n // images_dataimg_filter(img) {\n // setTimeout(() => {\n // const $image = $(img);\n // $image.removeAttr('width');\n // $image.removeAttr('height');\n // if ($image[0].height && $image[0].width) {\n // $image.attr('data-wscntype', 'image');\n // $image.attr('data-wscnh', $image[0].height);\n // $image.attr('data-wscnw', $image[0].width);\n // $image.addClass('wscnph');\n // }\n // }, 0);\n // return img\n // },\n // images_upload_handler(blobInfo, success, failure, progress) {\n // progress(0);\n // const token = _this.$store.getters.token;\n // getToken(token).then(response => {\n // const url = response.data.qiniu_url;\n // const formData = new FormData();\n // formData.append('token', response.data.qiniu_token);\n // formData.append('key', response.data.qiniu_key);\n // formData.append('file', blobInfo.blob(), url);\n // upload(formData).then(() => {\n // success(url);\n // progress(100);\n // })\n // }).catch(err => {\n // failure('出现未知问题,刷新页面,或者联系程序员')\n // console.log(err);\n // });\n // },\n images_upload_handler: function images_upload_handler(blobInfo, success, failure) {\n if (blobInfo.blob().size / 1024 / 1024 > 2) {\n failure('上传失败,图片大小请控制在 2M 以内');\n } else {\n // 本地base64图片显示\n // const img = \"data:image/jpeg;base64,\" + blobInfo.base64();\n // success(img);\n var params = new FormData(); // let data = {\n // file_type: 'img',\n // type: 'article',\n // }\n\n params.append('file', blobInfo.blob());\n params.append('sourceTable', 'harmonize_knowledge_article');\n params.append('file_type', 'img');\n params.append('type', 'article');\n console.log(params, 'params'); //自己后台的上传接口\n\n (0, _index.uploadImg)(params).then(function (res) {\n console.log(res, 'lllll');\n var imgUrl = res.data.url;\n success(imgUrl);\n });\n }\n }\n });\n },\n destroyTinymce: function destroyTinymce() {\n var tinymce = window.tinymce.get(this.tinymceId);\n\n if (this.fullscreen) {\n tinymce.execCommand('mceFullScreen');\n }\n\n if (tinymce) {\n tinymce.destroy();\n }\n },\n setContent: function setContent(value) {\n window.tinymce.get(this.tinymceId).setContent(value);\n },\n getContent: function getContent() {\n window.tinymce.get(this.tinymceId).getContent();\n },\n imageSuccessCBK: function imageSuccessCBK(arr) {\n var _this = this;\n\n arr.forEach(function (v) {\n window.tinymce.get(_this.tinymceId).insertContent(\"\"));\n });\n }\n }\n};\nexports.default = _default2;\n\n//# sourceURL=webpack:///./src/components/Tinymce/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/components/UploadExcel/index.vue?vue&type=script&lang=js&": /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/components/UploadExcel/index.vue?vue&type=script&lang=js& ***! \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.exec.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.test.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.test.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\nvar _xlsx = _interopRequireDefault(__webpack_require__(/*! xlsx */ \"./node_modules/_xlsx@0.16.9@xlsx/xlsx.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n props: {\n beforeUpload: Function,\n // eslint-disable-line\n onSuccess: Function // eslint-disable-line\n\n },\n data: function data() {\n return {\n loading: false,\n excelData: {\n header: null,\n results: null\n }\n };\n },\n methods: {\n generateData: function generateData(_ref) {\n var header = _ref.header,\n results = _ref.results;\n this.excelData.header = header;\n this.excelData.results = results;\n this.onSuccess && this.onSuccess(this.excelData);\n },\n handleDrop: function handleDrop(e) {\n e.stopPropagation();\n e.preventDefault();\n if (this.loading) return;\n var files = e.dataTransfer.files;\n\n if (files.length !== 1) {\n this.$message.error('Only support uploading one file!');\n return;\n }\n\n var rawFile = files[0]; // only use files[0]\n\n if (!this.isExcel(rawFile)) {\n this.$message.error('Only supports upload .xlsx, .xls, .csv suffix files');\n return false;\n }\n\n this.upload(rawFile);\n e.stopPropagation();\n e.preventDefault();\n },\n handleDragover: function handleDragover(e) {\n e.stopPropagation();\n e.preventDefault();\n e.dataTransfer.dropEffect = 'copy';\n },\n handleUpload: function handleUpload() {\n this.$refs['excel-upload-input'].click();\n },\n handleClick: function handleClick(e) {\n var files = e.target.files;\n var rawFile = files[0]; // only use files[0]\n\n if (!rawFile) return;\n this.upload(rawFile);\n },\n upload: function upload(rawFile) {\n this.$refs['excel-upload-input'].value = null; // fix can't select the same excel\n\n if (!this.beforeUpload) {\n this.readerData(rawFile);\n return;\n }\n\n var before = this.beforeUpload(rawFile);\n\n if (before) {\n this.readerData(rawFile);\n }\n },\n readerData: function readerData(rawFile) {\n var _this = this;\n\n this.loading = true;\n return new Promise(function (resolve, reject) {\n var reader = new FileReader();\n\n reader.onload = function (e) {\n var data = e.target.result;\n\n var workbook = _xlsx.default.read(data, {\n type: 'array'\n });\n\n var firstSheetName = workbook.SheetNames[0];\n var worksheet = workbook.Sheets[firstSheetName];\n\n var header = _this.getHeaderRow(worksheet);\n\n var results = _xlsx.default.utils.sheet_to_json(worksheet);\n\n _this.generateData({\n header: header,\n results: results\n });\n\n _this.loading = false;\n resolve();\n };\n\n reader.readAsArrayBuffer(rawFile);\n });\n },\n getHeaderRow: function getHeaderRow(sheet) {\n var headers = [];\n\n var range = _xlsx.default.utils.decode_range(sheet['!ref']);\n\n var C;\n var R = range.s.r;\n /* start in the first row */\n\n for (C = range.s.c; C <= range.e.c; ++C) {\n /* walk every column in the range */\n var cell = sheet[_xlsx.default.utils.encode_cell({\n c: C,\n r: R\n })];\n /* find the cell in the first row */\n\n\n var hdr = 'UNKNOWN ' + C; // <-- replace with your desired default\n\n if (cell && cell.t) hdr = _xlsx.default.utils.format_cell(cell);\n headers.push(hdr);\n }\n\n return headers;\n },\n isExcel: function isExcel(file) {\n return /\\.(xlsx|xls|csv)$/.test(file.name);\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/components/UploadExcel/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/layout/components/AppMain.vue?vue&type=script&lang=js&": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/layout/components/AppMain.vue?vue&type=script&lang=js& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"AppMain\",\n computed: {\n key: function key() {\n return this.$route.path;\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/layout/components/AppMain.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/layout/components/Navbar.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/layout/components/Navbar.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/objectSpread2.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/objectSpread2.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _vuex = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.0@vuex/dist/vuex.esm.js\");\n\nvar _Breadcrumb = _interopRequireDefault(__webpack_require__(/*! @/components/Breadcrumb */ \"./src/components/Breadcrumb/index.vue\"));\n\nvar _Hamburger = _interopRequireDefault(__webpack_require__(/*! @/components/Hamburger */ \"./src/components/Hamburger/index.vue\"));\n\nvar _index = __webpack_require__(/*! @/api/users/index */ \"./src/api/users/index.js\");\n\nvar _store = _interopRequireDefault(__webpack_require__(/*! @/store */ \"./src/store/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n components: {\n Breadcrumb: _Breadcrumb.default,\n Hamburger: _Hamburger.default\n },\n data: function data() {\n return {\n politics: \"\"\n };\n },\n created: function created() {\n var _this = this;\n\n var roles = _store.default.getters.roles;\n\n if (roles.includes(\"Student\")) {\n (0, _index.message)().then(function (res) {\n _this.politics = res.data.politics_status_text;\n });\n }\n },\n computed: (0, _objectSpread2.default)({}, (0, _vuex.mapGetters)([\"sidebar\", \"avatar\", \"nickname\"])),\n methods: {\n toggleSideBar: function toggleSideBar() {\n this.$store.dispatch(\"app/toggleSideBar\");\n },\n logout: function logout() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this2.$store.dispatch(\"user/logout\").then(function () {\n _this2.$router.push(\"/login\");\n\n sessionStorage.clear();\n });\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n usersMessage: function usersMessage() {\n this.$router.push({\n name: \"usersmessage\"\n });\n },\n resetPassward: function resetPassward() {\n this.$router.push({\n name: \"resetpassword\"\n });\n },\n openUrl: function openUrl() {\n var url = \"\";\n\n if (_store.default.getters.roles == \"Student\") {\n url = \"http://docs.site.ximengnaikang.com/web/#/23/207\";\n } else {\n url = \"http://docs.site.ximengnaikang.com/web/#/24/220\";\n }\n\n window.open(url, \"_blank\");\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/layout/components/Navbar.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/layout/components/Sidebar/Item.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/layout/components/Sidebar/Item.vue?vue&type=script&lang=js& ***! \************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _default = {\n name: 'MenuItem',\n functional: true,\n props: {\n icon: {\n type: String,\n default: ''\n },\n title: {\n type: String,\n default: ''\n }\n },\n render: function render(h, context) {\n var _context$props = context.props,\n icon = _context$props.icon,\n title = _context$props.title;\n var vnodes = [];\n\n if (icon) {\n if (icon.includes('el-icon')) {\n vnodes.push(h(\"i\", {\n \"class\": [icon, 'sub-el-icon']\n }));\n } else {\n vnodes.push(h(\"svg-icon\", {\n \"attrs\": {\n \"icon-class\": icon\n }\n }));\n }\n }\n\n if (title) {\n vnodes.push(h(\"span\", {\n \"slot\": 'title'\n }, [title]));\n }\n\n return vnodes;\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/layout/components/Sidebar/Item.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/layout/components/Sidebar/Link.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/layout/components/Sidebar/Link.vue?vue&type=script&lang=js& ***! \************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _validate = __webpack_require__(/*! @/utils/validate */ \"./src/utils/validate.js\");\n\n//\n//\n//\n//\n//\n//\nvar _default = {\n props: {\n to: {\n type: String,\n required: true\n }\n },\n computed: {\n isExternal: function isExternal() {\n return (0, _validate.isExternal)(this.to);\n },\n type: function type() {\n if (this.isExternal) {\n return 'a';\n }\n\n return 'router-link';\n }\n },\n methods: {\n linkProps: function linkProps(to) {\n if (this.isExternal) {\n return {\n href: to,\n target: '_blank',\n rel: 'noopener'\n };\n }\n\n return {\n to: to\n };\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/layout/components/Sidebar/Link.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/layout/components/Sidebar/Logo.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/layout/components/Sidebar/Logo.vue?vue&type=script&lang=js& ***! \************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar defaultSettings = __webpack_require__(/*! @/settings.js */ \"./src/settings.js\");\n\nvar _default = {\n name: \"SidebarLogo\",\n props: {\n collapse: {\n type: Boolean,\n required: true\n }\n },\n data: function data() {\n return {\n title: defaultSettings.SidebarTitle,\n logo: this.base_url + \"/images/logo-mini.png\"\n };\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/layout/components/Sidebar/Logo.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/layout/components/Sidebar/SidebarItem.vue?vue&type=script&lang=js&": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/layout/components/Sidebar/SidebarItem.vue?vue&type=script&lang=js& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/objectSpread2.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/objectSpread2.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.filter.js\");\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\nvar _path = _interopRequireDefault(__webpack_require__(/*! path */ \"./node_modules/_path-browserify@0.0.1@path-browserify/index.js\"));\n\nvar _validate = __webpack_require__(/*! @/utils/validate */ \"./src/utils/validate.js\");\n\nvar _Item = _interopRequireDefault(__webpack_require__(/*! ./Item */ \"./src/layout/components/Sidebar/Item.vue\"));\n\nvar _Link = _interopRequireDefault(__webpack_require__(/*! ./Link */ \"./src/layout/components/Sidebar/Link.vue\"));\n\nvar _FixiOSBug = _interopRequireDefault(__webpack_require__(/*! ./FixiOSBug */ \"./src/layout/components/Sidebar/FixiOSBug.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"SidebarItem\",\n components: {\n Item: _Item.default,\n AppLink: _Link.default\n },\n mixins: [_FixiOSBug.default],\n props: {\n // route object\n item: {\n type: Object,\n required: true\n },\n isNest: {\n type: Boolean,\n default: false\n },\n basePath: {\n type: String,\n default: \"\"\n }\n },\n data: function data() {\n // To fix https://github.com/PanJiaChen/vue-admin-template/issues/237\n // TODO: refactor with render function\n this.onlyOneChild = null;\n return {};\n },\n methods: {\n hasOneShowingChild: function hasOneShowingChild() {\n var _this = this;\n\n var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var parent = arguments.length > 1 ? arguments[1] : undefined;\n var showingChildren = children.filter(function (item) {\n if (item.hidden) {\n return false;\n } else {\n // Temp set(will be used if only has one showing child)\n _this.onlyOneChild = item;\n return true;\n }\n }); // When there is only one child router, the child router is displayed by default\n\n if (showingChildren.length === 1) {\n return true;\n } // Show parent if there are no child router to display\n\n\n if (showingChildren.length === 0) {\n this.onlyOneChild = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, parent), {}, {\n path: \"\",\n noShowingChildren: true\n });\n return true;\n }\n\n return false;\n },\n resolvePath: function resolvePath(routePath) {\n if ((0, _validate.isExternal)(routePath)) {\n return routePath;\n }\n\n if ((0, _validate.isExternal)(this.basePath)) {\n return this.basePath;\n }\n\n return _path.default.resolve(this.basePath, routePath);\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/layout/components/Sidebar/SidebarItem.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/layout/components/Sidebar/index.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/layout/components/Sidebar/index.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/objectSpread2.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/objectSpread2.js\"));\n\nvar _vuex = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.0@vuex/dist/vuex.esm.js\");\n\nvar _Logo = _interopRequireDefault(__webpack_require__(/*! ./Logo */ \"./src/layout/components/Sidebar/Logo.vue\"));\n\nvar _SidebarItem = _interopRequireDefault(__webpack_require__(/*! ./SidebarItem */ \"./src/layout/components/Sidebar/SidebarItem.vue\"));\n\nvar _variables2 = _interopRequireDefault(__webpack_require__(/*! @/styles/variables.scss */ \"./src/styles/variables.scss\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n components: {\n SidebarItem: _SidebarItem.default,\n Logo: _Logo.default\n },\n computed: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _vuex.mapGetters)(['sidebar', 'permissions_routes'])), {}, {\n //routes() {\n //return this.$router.options.routes\n // },\n activeMenu: function activeMenu() {\n var route = this.$route;\n var meta = route.meta,\n path = route.path; // if set path, the sidebar will highlight the path you set\n\n if (meta.activeMenu) {\n return meta.activeMenu;\n }\n\n return path;\n },\n showLogo: function showLogo() {\n return this.$store.state.settings.sidebarLogo;\n },\n variables: function variables() {\n return _variables2.default;\n },\n isCollapse: function isCollapse() {\n return !this.sidebar.opened;\n }\n })\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/layout/components/Sidebar/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/layout/components/changePwd.vue?vue&type=script&lang=js&": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/layout/components/changePwd.vue?vue&type=script&lang=js& ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/users/index */ \"./src/api/users/index.js\");\n\nvar _store = _interopRequireDefault(__webpack_require__(/*! @/store */ \"./src/store/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n dialogVisible: true,\n password: {\n newPwd: \"\",\n oldPwd: \"\"\n },\n rule: {\n newPwd: [{\n required: true,\n message: \"请输入新密码\",\n trigger: \"blur\"\n }],\n oldPwd: [{\n required: true,\n message: \"请输入确认密码\",\n trigger: \"blur\"\n }]\n }\n };\n },\n // watch() {\n // let is_reset_password = this.$store.state.user.is_reset_password;\n // },\n created: function created() {\n console.log(this.$store.state.user.is_reset_password, \"stats\");\n var is_reset_password = this.$store.state.user.is_reset_password;\n\n if (is_reset_password == 1) {\n this.dialogVisible = true;\n } else {\n this.dialogVisible = false;\n }\n },\n methods: {\n submitForm: function submitForm() {\n var _this = this;\n\n this.$refs[\"password\"].validate(function (valid) {\n if (valid) {\n if (_this.password.newPwd !== _this.password.oldPwd) {\n _this.$message.warning(\"您两次输入的密码不相同,请重新输入\");\n\n return;\n }\n\n var data = {\n id: _store.default.getters.id,\n password: _this.password.newPwd\n };\n (0, _index.changePwd)(data).then(function (res) {\n console.log(res, \"xiuga9\");\n\n _this.$message.success(\"修改成功!\");\n\n _this.logout();\n });\n }\n });\n },\n logout: function logout() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this2.$store.dispatch(\"user/logout\").then(function () {\n _this2.$router.push(\"/login\");\n });\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/layout/components/changePwd.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/layout/index.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/layout/index.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _components = __webpack_require__(/*! ./components */ \"./src/layout/components/index.js\");\n\nvar _ResizeHandler = _interopRequireDefault(__webpack_require__(/*! ./mixin/ResizeHandler */ \"./src/layout/mixin/ResizeHandler.js\"));\n\nvar _changePwd = _interopRequireDefault(__webpack_require__(/*! ./components/changePwd */ \"./src/layout/components/changePwd.vue\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"Layout\",\n components: {\n Navbar: _components.Navbar,\n Sidebar: _components.Sidebar,\n AppMain: _components.AppMain,\n changePwd: _changePwd.default\n },\n mixins: [_ResizeHandler.default],\n computed: {\n sidebar: function sidebar() {\n return this.$store.state.app.sidebar;\n },\n device: function device() {\n return this.$store.state.app.device;\n },\n fixedHeader: function fixedHeader() {\n return this.$store.state.settings.fixedHeader;\n },\n classObj: function classObj() {\n return {\n hideSidebar: !this.sidebar.opened,\n openSidebar: this.sidebar.opened,\n withoutAnimation: this.sidebar.withoutAnimation,\n mobile: this.device === \"mobile\"\n };\n }\n },\n methods: {\n handleClickOutside: function handleClickOutside() {\n this.$store.dispatch(\"app/closeSideBar\", {\n withoutAnimation: false\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/layout/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/active/detail.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/active/detail.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/defineProperty.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/defineProperty.js\"));\n\nvar _index = __webpack_require__(/*! @/api/organizationDetail/index */ \"./src/api/organizationDetail/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n var _ref;\n\n return _ref = {\n id: \"\",\n detail: {},\n check: false,\n fullscreenLoading: false,\n organization_id: \"\",\n fileList: [],\n dialogVisible: false\n }, (0, _defineProperty2.default)(_ref, \"detail\", \"\"), (0, _defineProperty2.default)(_ref, \"file\", \"\"), _ref;\n },\n created: function created() {\n console.log(\"idididii\");\n var route = this.$route;\n this.id = route.query.id;\n this.organization_id = route.query.organization_id;\n console.log(route.query.id, \"idididii\"); // this.courseId = route.query.id\n\n this.fullscreenLoading = true;\n this.getDetail();\n },\n methods: {\n getDetail: function getDetail() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$recordDetails, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _index.recordDetails)(_this.id);\n\n case 2:\n _yield$recordDetails = _context.sent;\n data = _yield$recordDetails.data;\n _this.fullscreenLoading = false;\n console.log(data, \"公告详情\");\n _this.detail = data;\n console.log(_this.detail, \"detail\");\n\n _this.getFileList(data.id);\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n getFileList: function getFileList(id) {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var _yield$danganList, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return (0, _index.danganList)({\n organization_activity_id: id\n });\n\n case 2:\n _yield$danganList = _context2.sent;\n data = _yield$danganList.data;\n _this2.fileList = data.data;\n console.log(data, \"---------------------------------pppppp\");\n\n case 6:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //查看文件详情\n lookDetails: function lookDetails(item) {\n this.dialogVisible = true;\n this.file = item;\n },\n // 返回上一页\n goBack: function goBack() {\n this.$router.push({\n path: \"/active/list\",\n query: {\n id: this.organization_id\n }\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/active/detail.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/active/list.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/active/list.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.to-string.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/organizationDetail/index */ \"./src/api/organizationDetail/index.js\");\n\nvar _user = __webpack_require__(/*! @/api/user */ \"./src/api/user.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"SortManage\",\n data: function data() {\n return {\n queryForm: {\n page: 1,\n limit: 15\n },\n total: 0,\n listLoading: true,\n layout: \"total, sizes, prev, pager, next, jumper\",\n child_id: \"\",\n isChecked: -1,\n navArr: [],\n nav_child_arr: [],\n isChild_checked: -1,\n type_checked: -1,\n flag1: true,\n //点击推荐变化的变量\n type_arr: [\"热门\", \"最新\", \"好评\"],\n news: [],\n news_list: [],\n all_id: \"\",\n fullscreenLoading: false,\n zan: \"\",\n organization_ids: \"\"\n };\n },\n created: function created() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.getContent();\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n methods: {\n getUserInfo: function getUserInfo() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var _yield$getInfo, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return (0, _user.getInfo)();\n\n case 2:\n _yield$getInfo = _context2.sent;\n data = _yield$getInfo.data;\n console.log(data.organization_ids[0], \"999999999\");\n _this2.organization_ids = data.organization_ids[0];\n\n case 6:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //pageSize 改变时会触发\n handleSizeChange: function handleSizeChange(val) {\n console.log(val, \"handleSizeChange\");\n this.queryForm.limit = val;\n this.getContent();\n },\n //\tcurrentPage 改变时会触发\n handleCurrentChange: function handleCurrentChange(val) {\n console.log(val, \"handleCurrentChange\");\n this.queryForm.page = val;\n this.getContent();\n },\n //查看新闻详情\n to_detail: function to_detail(item) {\n this.$router.push({\n path: \"/active/detail\",\n query: {\n id: item.id\n }\n });\n console.log(item, \"新闻详情\");\n },\n getContent: function getContent() {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n var _yield$changeRecords, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _this3.fullscreenLoading = true;\n _context3.next = 3;\n return (0, _index.changeRecords)();\n\n case 3:\n _yield$changeRecords = _context3.sent;\n data = _yield$changeRecords.data;\n console.log(data, \"YYYYYYYYY\");\n _this3.news_list = data.data;\n _this3.total = data.meta.pagination.total;\n _this3.fullscreenLoading = false;\n\n case 9:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n good: function (_good) {\n function good(_x) {\n return _good.apply(this, arguments);\n }\n\n good.toString = function () {\n return _good.toString();\n };\n\n return good;\n }(function (params) {\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _context4.next = 2;\n return good(params);\n\n case 2:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n })\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/active/list.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/administrator/index.vue?vue&type=script&lang=js&": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/administrator/index.vue?vue&type=script&lang=js& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.number.constructor.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/administrator/index */ \"./src/api/administrator/index.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/organizationList/index */ \"./src/api/organizationList/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n loadingFull: false,\n dialogVisible: false,\n editDialogVisible: false,\n passwordVisible: false,\n //修改\n detailVisible: false,\n detailList: \"\",\n userTable: [],\n type: \"\",\n creatForm: {\n name: \"\",\n account: \"\",\n status: 1,\n password: \"\",\n organization_ids: [],\n role: \"2\"\n },\n editPassword: {\n name: \"\",\n account: \"\",\n password: \"\"\n },\n organizationIds: \"\",\n roles: [],\n status: [{\n value: 0,\n name: \"暂停\"\n }, {\n value: 1,\n name: \"正常\"\n }],\n searchParams: {\n name: \"\",\n account: \"\",\n status: 1,\n is_admin: 1,\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n },\n //搜索框数据\n totalPage: 0,\n //总页码\n isAdmin: [{\n value: 0,\n label: \"学生\"\n }, {\n value: 1,\n label: \"管理员\"\n }, {\n value: 2,\n label: \"超级管理员\"\n }],\n treeList: [{\n pid: 0,\n id: 0,\n name: \"未选择\"\n }],\n //支部列表\n rules: {\n name: [{\n required: true,\n message: \"请输入姓名\",\n trigger: \"blur\"\n }],\n account: [{\n required: true,\n message: \"请输入账号\",\n trigger: \"blur\"\n }],\n password: [{\n required: true,\n message: \"请输入密码\",\n trigger: \"blur\"\n }],\n status: [{\n required: true,\n message: \"请选择状态\",\n trigger: \"change\"\n }],\n role: [{\n required: true,\n message: \"请选择角色\",\n trigger: \"change\"\n }]\n }\n };\n },\n created: function created() {\n var _this = this;\n\n this.usersLists(this.searchParams);\n var allStatus = JSON.parse(sessionStorage.getItem(\"status\"));\n this.roles = {\n 2: \"管理员\",\n 3: \"超级管理员\"\n }; //获取父级组织列表\n\n (0, _index2.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this.treeList = res.data;\n console.log(\"opopop\");\n });\n },\n methods: {\n // close() {\n // this.$refs['creatForm'].resetFields()\n // // this.form = this.$options.data().form\n // this.editDialogVisible = false\n // },\n add: function add() {\n this.dialogVisible = true;\n },\n searchList: function searchList() {\n this.searchParams.page = 1;\n this.usersLists(this.searchParams);\n },\n //选择支部\n selectOrg: function selectOrg() {\n this.creatForm.organization_ids = this.organizationIds;\n console.log(this.organizationIds, 'organizationIds');\n console.log(this.creatForm.organization_ids, 'organizationIds');\n this.$refs.select.blur();\n },\n //管理员列表\n usersLists: function usersLists(params) {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this2.loadingFull = true;\n _context.next = 3;\n return (0, _index.usersLists)(params).then(function (res) {\n console.log(res, \"人员列表\");\n _this2.userTable = res.data.data;\n _this2.loadingFull = false;\n _this2.totalPage = res.data.meta.pagination.total;\n }).catch(function (err) {\n _this2.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //查看详情\n getDetail: function getDetail(id) {\n var _this3 = this;\n\n this.loadingFull = true;\n (0, _index.usersDetail)(id).then(function (res) {\n _this3.detailList = res.data;\n _this3.detailVisible = true;\n _this3.loadingFull = false;\n }).catch(function (err) {\n _this3.loadingFull = false;\n });\n },\n createUsers: function createUsers(formName) {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //this.creatForm.organization_ids = this.organizationIds;\n console.log(_this4.creatForm.organization_ids, \"crest\");\n\n if (_this4.creatForm.organization_ids) {\n _context2.next = 4;\n break;\n }\n\n _this4.$message.error(\"请选择支部\");\n\n return _context2.abrupt(\"return\");\n\n case 4:\n _this4.$refs[formName].validate(function (valid) {\n if (valid) {\n _this4.addUsers();\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n\n case 5:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //新增管理员\n addUsers: function addUsers() {\n var _this5 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return (0, _index.addUsers)(_this5.creatForm).then(function (res) {\n console.log(res, \"新增\");\n\n _this5.$message.success(\"新增成功\");\n\n _this5.dialogVisible = false;\n\n _this5.usersLists(_this5.searchParams);\n }).catch(function (err) {\n _this5.loadingFull = false;\n });\n\n case 2:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n //取消新增管理员\n cancelCreated: function cancelCreated() {\n this.dialogVisible = false;\n this.organizationIds = [];\n this.$refs.creatForm.resetFields();\n },\n //删除管理员\n deleteUser: function deleteUser(id) {\n var _this6 = this;\n\n this.$confirm(\"此操作将删除管理员账号, 是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n (0, _index.deleteUsers)(id).then(function (res) {\n if (res.code == 200) {\n _this6.$message({\n type: \"success\",\n message: \"删除成功!\"\n });\n\n _this6.usersLists(_this6.searchParams);\n } else {\n _this6.$message({\n type: \"error\",\n message: \"删除失败!\"\n });\n }\n });\n }).catch(function () {\n _this6.$message({\n type: \"info\",\n message: \"已取消删除\"\n });\n });\n },\n putUsers: function putUsers() {\n var _this7 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _context4.next = 2;\n return (0, _index.putUsers)(_this7.creatForm).then(function (res) {\n _this7.$message.success(\"修改成功\");\n\n _this7.editDialogVisible = false;\n\n _this7.usersLists(_this7.searchParams);\n }).catch(function (err) {\n _this7.editDialogVisible = false;\n });\n\n case 2:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n },\n //禁用账号\n stopUser: function stopUser(row) {\n var _this8 = this;\n\n console.log(row, \"pppppppppppppppppppppppppp\");\n this.$confirm(\"此操作将禁用该账号, 是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n var data = {\n id: row.id,\n name: row.nickname,\n account: row.account,\n status: 0,\n role: 1,\n organization_ids: row.organization_ids\n };\n (0, _index.putUsers)(data).then(function (res) {\n _this8.$message({\n type: \"success\",\n message: \"禁用成功!\"\n });\n\n _this8.usersLists(_this8.searchParams);\n }).catch(function (err) {\n _this8.$message({\n type: \"error\",\n message: \"禁用失败!\"\n });\n\n _this8.usersLists(_this8.searchParams);\n });\n }).catch(function () {\n _this8.$message({\n type: \"info\",\n message: \"已取消删除\"\n });\n });\n },\n //编辑管理员信息\n editAdmin: function editAdmin(row) {\n //this.organizationIds = arr.push(Number(row.organization_ids[0])),\n var arr = [];\n\n for (var i in row.organization_ids) {\n arr.push(Number(row.organization_ids[i]));\n }\n\n console.log(arr, 'PPPPPPPPPPPPPPPPPPPPPPPPPP');\n this.editDialogVisible = true;\n this.creatForm = {\n name: row.nickname,\n id: row.id,\n account: row.account,\n status: 1,\n password: row.password,\n organization_ids: arr,\n role: \"2\"\n };\n },\n //选择支部\n selectOrganiz: function selectOrganiz(item) {\n console.log(item);\n var arr = [];\n arr.push(item);\n this.creatForm.organization_ids = arr; // this.$refs.selectblur.blur()\n },\n //修改密码\n userPwd: function userPwd(row) {\n this.passwordVisible = true;\n this.type = 0;\n this.editPassword = {\n id: row.id,\n name: row.nickname,\n account: row.account,\n password: \"\"\n };\n },\n //修改用户角色\n userRole: function userRole(row) {\n this.passwordVisible = true;\n this.type = 1;\n this.editPassword = {\n id: row.id,\n name: row.nickname,\n account: row.account,\n role: \"\"\n };\n\n if (row.is_admin == 0) {\n this.roles = {\n 1: \"用户\",\n 2: \"管理员\",\n 3: \"超级管理员\"\n };\n this.editPassword.role = \"1\";\n } else {\n this.editPassword.role = \"2\";\n }\n },\n sureRole: function sureRole() {\n var _this9 = this;\n\n (0, _index.changeUserRole)(this.editPassword).then(function (res) {\n _this9.$message({\n type: \"success\",\n message: \"身份修改成功\"\n });\n\n _this9.usersLists(_this9.searchParams);\n\n _this9.passwordVisible = false;\n }).catch(function (err) {\n _this9.$message({\n type: \"error\",\n message: \"修改失败\"\n });\n\n _this9.passwordVisible = false;\n });\n },\n surePwd: function surePwd() {\n var _this10 = this;\n\n (0, _index.changeUserPwd)(this.editPassword).then(function (res) {\n _this10.$message({\n type: \"success\",\n message: \"密码修改成功\"\n });\n\n _this10.usersLists(_this10.searchParams);\n\n _this10.passwordVisible = false;\n }).catch(function (err) {\n _this10.$message({\n type: \"error\",\n message: \"修改失败\"\n });\n\n _this10.passwordVisible = false;\n });\n },\n //切换页码\n handleSizeChange: function handleSizeChange(e) {\n console.log(e, \"切换页码\");\n this.searchParams.limit = e;\n var data = this.searchParams;\n this.usersLists(data);\n },\n //切换每页显示数量\n handleCurrentChange: function handleCurrentChange(e) {\n console.log(e, \"当前页码\");\n this.searchParams.page = e;\n var data = this.searchParams;\n this.usersLists(data);\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/administrator/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/dashboard/admin/components/HuanChart.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/dashboard/admin/components/HuanChart.vue?vue&type=script&lang=js& ***! \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.slice.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _echarts = _interopRequireDefault(__webpack_require__(/*! echarts */ \"./node_modules/_echarts@4.9.0@echarts/index.js\"));\n\n//\n//\n//\n//\n__webpack_require__(/*! echarts/theme/macarons */ \"./node_modules/_echarts@4.9.0@echarts/theme/macarons.js\"); // echarts theme\n// import resize from \"./mixins/resize\";\n\n\nvar _default = {\n // mixins: [resize],\n props: {\n className: {\n type: String,\n default: \"chart\"\n },\n politicsStatus: \"\",\n width: {\n type: String,\n default: \"100%\"\n },\n chartDate: \"\",\n height: {\n type: String,\n default: \"280px\"\n }\n },\n watch: {\n chartDate: function chartDate(value) {\n value = value.map(function (item) {\n return {\n name: item.name + item.nums + \"人\",\n value: item.nums\n };\n });\n this.initChart(value);\n }\n },\n data: function data() {\n return {\n chart: null,\n nation: []\n };\n },\n mounted: function mounted() {\n console.log(this.chartDate, \"youma\"); // this.initChart(this.chartDate);\n },\n beforeDestroy: function beforeDestroy() {\n if (!this.chart) {\n return;\n }\n\n this.chart.dispose();\n this.chart = null;\n },\n methods: {\n initChart: function initChart(value) {\n var _this = this;\n\n this.chart = _echarts.default.init(this.$el, \"macarons\");\n this.chart.setOption({\n tooltip: {\n trigger: \"item\"\n },\n legend: {\n top: \"0%\",\n left: \"center\"\n },\n series: [{\n type: \"pie\",\n radius: [\"40%\", \"70%\"],\n avoidLabelOverlap: false,\n itemStyle: {\n borderRadius: 10,\n borderColor: \"#fff\",\n borderWidth: 2\n },\n label: {\n show: false,\n position: \"center\"\n },\n emphasis: {\n label: {\n show: true,\n fontSize: \"40\",\n fontWeight: \"bold\"\n }\n },\n labelLine: {\n show: false\n },\n data: value\n }]\n });\n this.chart.on(\"click\", function (params) {\n console.log(params, 'pppppppppppppppppppppppppppppppppppppp');\n var name = params.name;\n var nation = name.slice(0, 2);\n\n _this.$router.push({\n path: \"/personnel/index\",\n query: {\n politics_status: _this.politicsStatus,\n nation: nation\n }\n });\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/dashboard/admin/components/HuanChart.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/dashboard/admin/components/PieChart.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/dashboard/admin/components/PieChart.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.slice.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _echarts = _interopRequireDefault(__webpack_require__(/*! echarts */ \"./node_modules/_echarts@4.9.0@echarts/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n__webpack_require__(/*! echarts/theme/macarons */ \"./node_modules/_echarts@4.9.0@echarts/theme/macarons.js\"); // echarts theme\n// import resize from \"./mixins/resize\";\n\n\nvar _default = {\n // mixins: [resize],\n props: {\n className: {\n type: String,\n default: \"chart\"\n },\n chartDate: \"\",\n width: {\n type: String,\n default: \"100%\"\n },\n height: {\n type: String,\n default: \"380px\"\n }\n },\n watch: {\n chartDate: function chartDate(value) {\n this.chartDate = value;\n this.initChart();\n }\n },\n data: function data() {\n return {\n chart: null,\n indexDate: \"\",\n sex: []\n };\n },\n mounted: function mounted() {},\n beforeDestroy: function beforeDestroy() {\n if (!this.chart) {\n return;\n }\n\n this.chart.dispose();\n this.chart = null;\n },\n methods: {\n initChart: function initChart() {\n var _this = this;\n\n this.chart = _echarts.default.init(this.$el, \"macarons\");\n this.chart.setOption({\n tooltip: {\n trigger: \"item\"\n },\n // legend: {\n // orient: \"vertical\",\n // left: \"left\"\n // },\n color: [\"#fac858\", \"#ee6666\", \"#73c0de\", \"#3ba272\", \"#fc8452\", \"#9a60b4\", \"#ea7ccc\"],\n series: [{\n name: \"总图表\",\n type: \"pie\",\n radius: \"50%\",\n data: [{\n value: this.chartDate.dy_nums,\n name: \"正式党员\" + this.chartDate.dy_nums + \"人\"\n }, {\n value: this.chartDate.ybdy_nums,\n name: \"预备党员\" + this.chartDate.ybdy_nums + \"人\"\n }, {\n value: this.chartDate.ybdy_nums,\n name: \"发展对象\" + this.chartDate.fzdx_nums + \"人\"\n }, {\n value: this.chartDate.jjfz_nums,\n name: \"积极分子\" + this.chartDate.jjfz_nums + \"人\"\n }, {\n value: this.chartDate.apply_for_nums,\n name: \"上交入党申请书数\" + this.chartDate.apply_for_nums + \"人\"\n }],\n emphasis: {\n itemStyle: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: \"rgba(0, 0, 0, 0.5)\"\n }\n }\n }] // tooltip: {\n // trigger: \"item\",\n // formatter: \"{a}
{b} : {c} ({d}%)\"\n // },\n // color: [\"#ee6666\", \"#73c0de\", \"#fc8452\"],\n // legend: {\n // left: \"center\",\n // bottom: \"10\",\n // data: [\"正式党员\", \"预备党员\",\"发展对象\", \"积极分子\"]\n // },\n // series: [\n // {\n // name: \"总图表\",\n // type: \"pie\",\n // roseType: \"radius\",\n // radius: [15, 95],\n // center: [\"50%\", \"38%\"],\n // data: [\n // { value: this.chartDate.dy_nums , name: \"正式党员\"+ this.chartDate.dy_nums +'人' },\n // { value: this.chartDate.ybdy_nums, name: \"预备党员\" + this.chartDate.ybdy_nums +'人'},\n // { value: this.chartDate.ybdy_nums, name: \"发展对象\" + this.chartDate.fzdx_nums +'人'},\n // { value: this.chartDate.jjfz_nums, name: \"积极分子\" + this.chartDate.jjfz_nums +'人'}\n // ],\n // animationEasing: \"cubicInOut\",\n // animationDuration: 2600\n // }\n // ]\n\n }); // 将这段代码复制粘贴到 你echarts setOptions() 方法后 运行就可以了。\n\n this.chart.on(\"click\", function (params) {\n console.log(params, \"par\");\n var name = params.name;\n name = name.slice(0, 4);\n console.log(name, \"par\");\n var query = {};\n if (name == \"积极分子\") query = {\n politics_status: 3\n };\n if (name == \"发展对象\") query = {\n politics_status: 6\n };\n if (name == \"预备党员\") query = {\n politics_status: 4\n };\n if (name == \"正式党员\") query = {\n politics_status: 5\n };\n if (name == \"上交入党\") query = {\n is_rdsqs: 1\n };\n\n _this.$router.push({\n path: \"/personnel/index\",\n query: query\n });\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/dashboard/admin/components/PieChart.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/dashboard/admin/components/RaddarChart.vue?vue&type=script&lang=js&": /*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/dashboard/admin/components/RaddarChart.vue?vue&type=script&lang=js& ***! \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _echarts = _interopRequireDefault(__webpack_require__(/*! echarts */ \"./node_modules/_echarts@4.9.0@echarts/index.js\"));\n\nvar _resize = _interopRequireDefault(__webpack_require__(/*! ./mixins/resize */ \"./src/views/dashboard/admin/components/mixins/resize.js\"));\n\nvar _index = __webpack_require__(/*! @/api/index/index */ \"./src/api/index/index.js\");\n\n//\n//\n//\n//\n__webpack_require__(/*! echarts/theme/macarons */ \"./node_modules/_echarts@4.9.0@echarts/theme/macarons.js\"); // echarts theme\n\n\nvar animationDuration = 3000;\nvar _default = {\n mixins: [_resize.default],\n props: {\n className: {\n type: String,\n default: 'chart'\n },\n width: {\n type: String,\n default: '100%'\n },\n height: {\n type: String,\n default: '400px'\n }\n },\n data: function data() {\n return {\n chart: null,\n sex: []\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n var that = this;\n (0, _index.statistics)().then(function (res) {\n _this.indexDate = res.data;\n console.log(res, \"index\");\n setTimeout(function () {\n that.initChart();\n }, 200);\n _this.sex = res.data.sex_group;\n });\n },\n beforeDestroy: function beforeDestroy() {\n if (!this.chart) {\n return;\n }\n\n this.chart.dispose();\n this.chart = null;\n },\n methods: {\n initChart: function initChart() {\n this.chart = _echarts.default.init(this.$el, 'macarons');\n this.chart.setOption({\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n // 坐标轴指示器,坐标轴触发有效\n type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'\n\n }\n },\n radar: {\n radius: '66%',\n center: ['50%', '42%'],\n splitNumber: 8,\n splitArea: {\n areaStyle: {\n color: 'rgba(127,95,132,.3)',\n opacity: 1,\n shadowBlur: 45,\n shadowColor: 'rgba(0,0,0,.5)',\n shadowOffsetX: 0,\n shadowOffsetY: 15\n }\n },\n indicator: [{\n name: 'Sales',\n max: 10000\n }, {\n name: 'Administration',\n max: 20000\n }, {\n name: 'Information Technology',\n max: 20000\n }, {\n name: 'Customer Support',\n max: 20000\n }, {\n name: 'Development',\n max: 20000\n }, {\n name: 'Marketing',\n max: 20000\n }]\n },\n legend: {\n left: 'center',\n bottom: '10',\n data: ['男', '女']\n },\n series: [{\n type: 'radar',\n symbolSize: 0,\n areaStyle: {\n normal: {\n shadowBlur: 13,\n shadowColor: 'rgba(0,0,0,.2)',\n shadowOffsetX: 0,\n shadowOffsetY: 10,\n opacity: 1\n }\n },\n data: [{\n value: [5000, 7000, 12000, 11000, 15000, 14000],\n name: '男'\n }, {\n value: [4000, 9000, 15000, 15000, 13000, 11000],\n name: '女'\n }],\n animationDuration: animationDuration\n }]\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/dashboard/admin/components/RaddarChart.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/dashboard/admin/components/SexChart.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/dashboard/admin/components/SexChart.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.slice.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _echarts = _interopRequireDefault(__webpack_require__(/*! echarts */ \"./node_modules/_echarts@4.9.0@echarts/index.js\"));\n\n//\n//\n//\n//\n__webpack_require__(/*! echarts/theme/macarons */ \"./node_modules/_echarts@4.9.0@echarts/theme/macarons.js\"); // echarts theme\n// import resize from \"./mixins/resize\";\n\n\nvar _default = {\n // mixins: [resize],\n props: {\n className: {\n type: String,\n default: \"chart\"\n },\n chartDate: \"\",\n politicsStatus: \"\",\n width: {\n type: String,\n default: \"100%\"\n },\n height: {\n type: String,\n default: \"350px\"\n },\n sexDate: \"\"\n },\n watch: {\n chartDate: function chartDate(value) {\n // this.chartDate = value;\n console.log(value, \"value\");\n value = value.map(function (item) {\n return {\n name: item.name + \"(\" + item.nums + \"人)\",\n value: item.nums\n };\n });\n console.log(this.sex, \"---------------------sex\");\n this.initChart(value);\n }\n },\n data: function data() {\n return {\n chart: null,\n sex: 1\n };\n },\n beforeDestroy: function beforeDestroy() {\n if (!this.chart) {\n return;\n }\n\n this.chart.dispose();\n this.chart = null;\n },\n methods: {\n initChart: function initChart(value) {\n var _this = this;\n\n this.chart = _echarts.default.init(this.$el, \"macarons\");\n this.chart.setOption({\n tooltip: {\n trigger: \"item\"\n },\n legend: {\n orient: \"vertical\",\n left: \"left\"\n },\n color: [\"#fac858\", \"#ee6666\", \"#73c0de\", \"#3ba272\", \"#fc8452\", \"#9a60b4\", \"#ea7ccc\"],\n series: [{\n name: \"访问来源\",\n type: \"pie\",\n radius: \"50%\",\n data: value,\n emphasis: {\n itemStyle: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: \"rgba(0, 0, 0, 0.5)\"\n }\n }\n }]\n }); // 将这段代码复制粘贴到 你echarts setOptions() 方法后 运行就可以了。\n\n this.chart.on(\"click\", function (params) {\n var name = params.name;\n var name1 = name.slice(0, 1);\n var sex;\n if (name1 == '男') sex = 1;\n if (name1 == '女') sex = 2;\n\n _this.$router.push({\n path: \"/personnel/index\",\n query: {\n politics_status: _this.politicsStatus,\n sex: sex\n }\n });\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/dashboard/admin/components/SexChart.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/dashboard/index.vue?vue&type=script&lang=js&": /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/dashboard/index.vue?vue&type=script&lang=js& ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _vueCountTo = _interopRequireDefault(__webpack_require__(/*! vue-count-to */ \"./node_modules/_vue-count-to@1.0.13@vue-count-to/dist/vue-count-to.min.js\"));\n\nvar _index = __webpack_require__(/*! @/api/index/index */ \"./src/api/index/index.js\");\n\nvar _PieChart = _interopRequireDefault(__webpack_require__(/*! ./admin/components/PieChart */ \"./src/views/dashboard/admin/components/PieChart.vue\"));\n\nvar _HuanChart = _interopRequireDefault(__webpack_require__(/*! ./admin/components/HuanChart */ \"./src/views/dashboard/admin/components/HuanChart.vue\"));\n\nvar _SexChart = _interopRequireDefault(__webpack_require__(/*! ./admin/components/SexChart */ \"./src/views/dashboard/admin/components/SexChart.vue\"));\n\nvar _RaddarChart = _interopRequireDefault(__webpack_require__(/*! ./admin/components/RaddarChart */ \"./src/views/dashboard/admin/components/RaddarChart.vue\"));\n\nvar _store = _interopRequireDefault(__webpack_require__(/*! @/store */ \"./src/store/index.js\"));\n\nvar _index2 = __webpack_require__(/*! @/api/organizationList/index */ \"./src/api/organizationList/index.js\");\n\nvar _index3 = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\nvar _index4 = __webpack_require__(/*! @/api/reminder/index */ \"./src/api/reminder/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n components: {\n CountTo: _vueCountTo.default,\n PieChart: _PieChart.default,\n RaddarChart: _RaddarChart.default,\n HuanChart: _HuanChart.default,\n SexChart: _SexChart.default\n },\n data: function data() {\n return {\n roles: _store.default.getters.roles[0],\n indexDate: {\n graduate_nums: 0,\n dy_nums: 0,\n organization_nums: 0,\n user_nums: 0\n },\n girlPercent: 0,\n boyPercent: 0,\n loadingFull: false,\n noticeList: [],\n searchParams: {\n classes: [],\n organization_id: \"\",\n grade: \"\",\n with_graduate: 1\n },\n selected: [],\n classList: \"\",\n treeList: [{\n pid: 0,\n id: 0,\n name: \"未选择\"\n }],\n //支部列表\n dyData_sex: [],\n dyData_nation: [],\n jjData_sex: [],\n jjData_nation: [],\n ybData_sex: [],\n ybData_nation: [],\n fzData_sex: [],\n fzData_nation: []\n };\n },\n created: function created() {\n var _this = this;\n\n this.messagesList();\n this.statistics(); //获取班级列表\n\n (0, _index2.classLists)().then(function (res) {\n _this.classList = res;\n });\n (0, _index2.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this.treeList = res.data;\n });\n },\n methods: {\n changeZb: function changeZb(e) {},\n //筛选\n screenClick: function screenClick() {\n this.statistics();\n },\n statistics: function statistics() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this2.loadingFull = true;\n _context.next = 3;\n return (0, _index.statistics)(_this2.searchParams).then(function (res) {\n _this2.indexDate = res.data;\n res.data.statistics.map(function (item) {\n switch (item.name) {\n case \"积极分子\":\n _this2.jjData_sex = item.sex_group;\n\n if (item.nation_group.length == 0) {\n _this2.jjData_nation = [{\n name: \"汉族\",\n nums: 0\n }];\n } else {\n _this2.jjData_nation = item.nation_group;\n }\n\n break;\n\n case \"中共预备党员\":\n _this2.ybData_sex = item.sex_group;\n\n if (item.nation_group.length == 0) {\n _this2.ybData_nation = [{\n name: \"汉族\",\n nums: 0\n }];\n } else {\n _this2.ybData_nation = item.nation_group;\n }\n\n break;\n\n case \"中共党员\":\n _this2.dyData_sex = item.sex_group;\n\n if (item.nation_group.length == 0) {\n _this2.dyData_nation = [{\n name: \"汉族\",\n nums: 0\n }];\n } else {\n _this2.dyData_nation = item.nation_group;\n }\n\n break;\n\n case \"发展对象\":\n _this2.fzData_sex = item.sex_group;\n\n if (item.nation_group.length == 0) {\n _this2.fzData_nation = [{\n name: \"汉族\",\n nums: 0\n }];\n } else {\n _this2.fzData_nation = item.nation_group;\n }\n\n break;\n }\n });\n _this2.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n changeSelect: function changeSelect(select) {\n var arr = [];\n select.map(function (item) {\n arr.push(item);\n });\n this.searchParams.classes = arr;\n },\n messagesList: function messagesList() {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this3.loadingFull = true;\n _context2.next = 3;\n return (0, _index4.messagesList)().then(function (res) {\n _this3.noticeList = res.data.data;\n _this3.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n changeAd: function changeAd(e) {},\n handleSetLineChartData: function handleSetLineChartData(type) {\n this.$router.push({\n path: \"/personnel/index\",\n query: {\n politics_status: type\n }\n });\n },\n //跳转支部列表\n skipZhibuList: function skipZhibuList() {\n if (this.roles == \"Admin\") {\n this.organizationsList();\n } else {\n this.$router.push({\n path: \"/organization/list\"\n });\n }\n },\n //上传入党志愿书\n skipRudangZhiyuan: function skipRudangZhiyuan() {\n this.$router.push({\n path: \"/personnel/index\",\n query: {\n is_rdsqs: 1\n }\n });\n },\n //获取组织列表\n organizationsList: function organizationsList() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n var _yield$_organizations, data, id;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return (0, _index2.organizationsList)();\n\n case 2:\n _yield$_organizations = _context3.sent;\n data = _yield$_organizations.data;\n id = data.data[0].id;\n\n _this4.$router.push({\n path: \"/organization/detail\",\n query: {\n id: id\n }\n });\n\n case 6:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/dashboard/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaohe/checkList.vue?vue&type=script&lang=js&": /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaohe/checkList.vue?vue&type=script&lang=js& ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\nvar _uploadFile = _interopRequireDefault(__webpack_require__(/*! ./components/uploadFile */ \"./src/views/kaohe/components/uploadFile.vue\"));\n\nvar _detail = _interopRequireDefault(__webpack_require__(/*! ./components/detail */ \"./src/views/kaohe/components/detail.vue\"));\n\nvar _index = __webpack_require__(/*! ./api/index */ \"./src/views/kaohe/api/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n components: {\n uploadFile: _uploadFile.default,\n Detail: _detail.default\n },\n data: function data() {\n return {\n loadingFull: true,\n list: []\n };\n },\n created: function created() {\n this.geteExamines();\n },\n methods: {\n lookDetail: function lookDetail(row) {\n this.$router.push({\n path: \"/kaohe/uploadList\",\n query: {\n id: row.id,\n type: row.type,\n name: row.name\n }\n });\n },\n lookDetailList: function lookDetailList(row) {\n this.$router.push({\n path: \"/kaohe/rewardList\",\n query: {\n id: row.id\n }\n });\n },\n //考核列表\n geteExamines: function geteExamines() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$getExamineAdmi, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.loadingFull = true;\n _context.next = 3;\n return (0, _index.getExamineAdmin)();\n\n case 3:\n _yield$getExamineAdmi = _context.sent;\n data = _yield$getExamineAdmi.data;\n _this.list = data.examine;\n _this.loadingFull = false;\n\n case 7:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaohe/checkList.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaohe/components/checkOut.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaohe/components/checkOut.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! ../api/index */ \"./src/views/kaohe/api/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n dialogVisible: false,\n form: {\n id: \"\",\n examine_question_id: \"\",\n check_status: 2\n },\n id: \"\",\n type: 1,\n is_single: 1,\n //是否单个审核\n rules: {\n check_status: [{\n required: true,\n message: \"请选择审核状态\",\n trigger: \"change\"\n }],\n check_point: [{\n required: true,\n message: \"审核分支\",\n trigger: \"blur\"\n }]\n },\n examine_lists_id: \"\"\n };\n },\n methods: {\n showEdit: function showEdit(row) {\n var route = this.$route.query;\n console.log(row, \"-------\");\n\n if (row.type == 2) {\n this.type = row.type;\n this.id = row.id;\n this.form.examine_question_id = route.examine_question_id;\n this.form.id = row.examine_id;\n this.form.is_single = row.is_single;\n this.dialogVisible = true;\n } else {\n this.form.examine_question_id = row.examine_question_id;\n this.type = route.type;\n this.form.check_point = row.point;\n this.form.id = row.examine_id;\n this.dialogVisible = true;\n }\n },\n sureCheck: function sureCheck() {\n var _this = this;\n\n this.$refs[\"form\"].validate( /*#__PURE__*/function () {\n var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(valid) {\n var obj, _yield$checkOut, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (_this.type == 2) {\n obj = {\n id: _this.id,\n check_point: _this.form.check_point,\n check_status: _this.form.check_status\n };\n _this.form.examine_lists = [obj];\n delete _this.form.check_point;\n delete _this.form.check_status;\n }\n\n if (!valid) {\n _context.next = 9;\n break;\n }\n\n _context.next = 4;\n return (0, _index.checkOut)(_this.form);\n\n case 4:\n _yield$checkOut = _context.sent;\n message = _yield$checkOut.message;\n\n _this.handleClose();\n\n _this.$emit(\"fetch-data\");\n\n _this.$emit(\"handle-close\");\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n },\n handleClose: function handleClose() {\n this.form = {\n id: \"\",\n examine_question_id: \"\",\n check_status: 2\n };\n this.dialogVisible = false;\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaohe/components/checkOut.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaohe/components/detail.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaohe/components/detail.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _checkOut = _interopRequireDefault(__webpack_require__(/*! ./checkOut */ \"./src/views/kaohe/components/checkOut.vue\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n components: {\n checkOut: _checkOut.default\n },\n data: function data() {\n return {\n activeName: \"first\",\n dialogVisible: false,\n form: {},\n fileData: {\n file_type: \"file\"\n },\n examine_id: \"\",\n detail: {},\n point: 0,\n fileList: [],\n can_check: false\n };\n },\n methods: {\n //审核\n doCheck: function doCheck() {\n this.$refs[\"check-out\"].showEdit({\n type: 2,\n examine_id: this.examine_id,\n point: this.point,\n id: this.detail.id,\n is_single: 1\n });\n },\n handleClose: function handleClose() {\n this.$emit(\"fetch-data\");\n this.dialogVisible = false;\n },\n showEdit: function showEdit(row) {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var route, roles, data1, arr, key;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n route = _this.$route.query;\n roles = _this.$store.state.user.roles;\n\n if (roles.includes(\"Super admin\") || roles.includes(\"Admin\")) {\n _this.can_check = true;\n }\n\n _this.examine_id = route.id;\n _this.detail = row;\n data1 = row.resources;\n _this.point = row.point;\n arr = [];\n\n for (key in data1) {\n arr.push({\n id: key,\n url: data1[key]\n });\n }\n\n _this.fileList = arr;\n _this.dialogVisible = true;\n\n case 11:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaohe/components/detail.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaohe/components/uploadFile.vue?vue&type=script&lang=js&": /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaohe/components/uploadFile.vue?vue&type=script&lang=js& ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\nvar _store = _interopRequireDefault(__webpack_require__(/*! @/store */ \"./src/store/index.js\"));\n\nvar _index = __webpack_require__(/*! ../api/index */ \"./src/views/kaohe/api/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n dialogVisible: false,\n form: {},\n formList: [],\n fileList: [],\n fileData: {\n file_type: \"file\"\n },\n rules: {},\n ids: [],\n fileList1: []\n };\n },\n methods: {\n showEdit: function showEdit(row) {\n var _this = this;\n\n var data = Object.assign({}, row);\n\n if (data.extra) {\n this.gradeList = data.extra.position_grade;\n }\n\n if (data.verification) {\n var arr = [];\n data.verification.map(function (item) {\n arr.push({\n key: item.key,\n name: item.name\n });\n var rule = item.rule.substring(0, 8);\n _this.rules[item.key] = [{\n required: rule == \"required\" ? true : false,\n trigger: \"blur\",\n message: item.name + \"不能为空\"\n }];\n _this.form[item.key] = \"\";\n });\n this.formList = arr;\n }\n\n this.form.examine_question_id = data.id;\n this.form.staff_id = _store.default.getters.staff_id;\n this.dialogVisible = true;\n },\n handleClose: function handleClose() {\n this.formList = [];\n this.fileList = [];\n this.fileList1 = [];\n this.ids = [];\n this.rules = {};\n this.form = {};\n this.dialogVisible = false;\n },\n //确定添加\n sureSubmit: function sureSubmit() {\n var _this2 = this;\n\n var is_ref = false;\n\n for (var key in this.form) {\n if (key == \"prove_files\") {\n is_ref = true;\n }\n }\n\n if (this.ids.length == 0) {\n this.$message({\n message: \"请上传附件!\",\n type: \"warning\"\n });\n return;\n }\n\n if (is_ref && !this.form.prove_files) {\n this.$message({\n message: \"请上传证明材料\",\n type: \"warning\"\n });\n return;\n }\n\n this.$refs[\"form\"].validate( /*#__PURE__*/function () {\n var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(valid) {\n var _yield$formUpload, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!valid) {\n _context.next = 8;\n break;\n }\n\n _context.next = 3;\n return (0, _index.formUpload)(_this2.form);\n\n case 3:\n _yield$formUpload = _context.sent;\n message = _yield$formUpload.message;\n\n _this2.$message({\n message: message,\n type: \"success\"\n });\n\n _this2.handleClose();\n\n _this2.$emit(\"fetch-data\");\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n },\n clickUpload: function clickUpload() {\n this.fileList = [];\n this.ids = [];\n },\n clickUpload1: function clickUpload1() {\n this.fileList1 = [];\n this.form.prove_files = \"\";\n },\n //上传成功\n uploadSuccess: function uploadSuccess(response) {\n if (response.code == 200) {\n this.ids = [response.data.id];\n this.form.resource_ids = this.ids;\n }\n },\n //移除当前上传的文件\n uploadRemove: function uploadRemove() {\n this.ids = [];\n this.form.resource_ids = \"\";\n },\n uploadSuccess1: function uploadSuccess1(response) {\n if (response.code == 200) {\n this.form.prove_files = response.data.url;\n }\n },\n //移除当前上传的文件\n uploadRemove1: function uploadRemove1() {\n this.form.prove_files = \"\";\n },\n //上传事变\n uploadError: function uploadError(e) {\n this.$message({\n message: \"附件上传失败\",\n type: \"error\"\n });\n },\n //上传事变\n uploadError1: function uploadError1(e) {\n this.$message({\n message: \"附件上传失败\",\n type: \"error\"\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaohe/components/uploadFile.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaohe/fileDetail.vue?vue&type=script&lang=js&": /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaohe/fileDetail.vue?vue&type=script&lang=js& ***! \****************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/defineProperty.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/defineProperty.js\"));\n\nvar _checkOut = _interopRequireDefault(__webpack_require__(/*! ./components/checkOut */ \"./src/views/kaohe/components/checkOut.vue\"));\n\nvar _index = __webpack_require__(/*! ./api/index */ \"./src/views/kaohe/api/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n components: {\n checkOut: _checkOut.default\n },\n data: function data() {\n var _ref;\n\n return _ref = {\n activeName: \"first\",\n dialogVisible: false,\n form: {},\n fileData: {\n file_type: \"file\"\n },\n examine_id: \"\",\n detail: {},\n point: 0,\n fileList: [],\n //文件列表\n name: \"\",\n examine_question_id: \"\",\n id: \"\",\n can_check: false,\n type: 2,\n //当前信息\n fileType: 1\n }, (0, _defineProperty2.default)(_ref, \"examine_id\", \"\"), (0, _defineProperty2.default)(_ref, \"extraFile\", \"\"), _ref;\n },\n created: function created() {\n var roles = this.$store.state.user.roles;\n\n if (roles.includes(\"Super admin\") || roles.includes(\"Admin\")) {\n this.can_check = true;\n }\n\n var route = this.$route.query;\n this.name = route.name;\n this.id = route.id;\n var role = route.role;\n this.examine_question_id = route.examine_question_id;\n\n if (role == \"admin\") {\n this.examine_id = route.examine_id;\n this.getDetailStu();\n } else {\n this.fileType = route.type;\n this.getDetail(route.examine_question_id);\n }\n },\n methods: {\n //审核\n doCheck: function doCheck() {\n var route = this.$route.query;\n this.$refs[\"check-out\"].showEdit({\n type: this.fileType,\n examine_id: this.detail.id,\n point: this.point,\n examine_question_id: route.examine_question_id\n });\n },\n handleClose: function handleClose() {\n var route = this.$route.query;\n var role = route.role; // this.type = 2;\n\n if (role == \"admin\") {\n this.examine_id = route.examine_id;\n this.getDetailStu();\n } else {\n this.fileType = route.type;\n this.getDetail(route.examine_question_id);\n }\n },\n getDetail: function getDetail(id) {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$fileDetailStu, data, data1, arr, key;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _index.fileDetailStu)({\n examine_question_id: id\n });\n\n case 2:\n _yield$fileDetailStu = _context.sent;\n data = _yield$fileDetailStu.data;\n _this.detail = data;\n _this.examine_id = data.id;\n data1 = data.resources;\n _this.point = data.point;\n arr = [];\n\n for (key in data1) {\n arr.push({\n id: key,\n url: data1[key]\n });\n }\n\n _this.fileList = arr;\n\n if (data.extra) {\n _this.extraFile = data.extra;\n }\n\n console.log(data, \"shujushushsu\");\n\n case 13:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n getDetailStu: function getDetailStu() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var route, row, _yield$examineDetail, data, data1, arr, key;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n route = _this2.$route.query;\n row = {\n // type: route.type,\n type: _this2.type,\n examine_question_id: route.examine_question_id,\n examine_id: _this2.examine_id\n };\n _context2.next = 4;\n return (0, _index.examineDetail)(row);\n\n case 4:\n _yield$examineDetail = _context2.sent;\n data = _yield$examineDetail.data;\n\n if (data.id) {\n _this2.detail = data; // this.examine_id = data.id;\n\n data1 = data.resources;\n _this2.point = data.point;\n arr = [];\n\n for (key in data1) {\n arr.push({\n id: key,\n url: data1[key]\n });\n }\n\n _this2.fileList = arr;\n\n if (data.extra) {\n _this2.extraFile = data.extra;\n }\n } else {\n _this2.$message.warning(\"当前已是最后一条!\");\n }\n\n case 7:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //上一个\n lastOne: function lastOne() {\n this.type = 1;\n this.getDetailStu();\n },\n //返回考核列表\n goBack: function goBack() {\n var route = this.$route.query;\n\n if (route.role == \"admin\") {\n this.$router.push({\n path: \"/kaohe/uploadList\",\n query: {\n type: 1,\n id: route.examine_question_id\n }\n });\n } else {\n this.$router.push({\n path: \"/kaohe/index\"\n });\n }\n } // //下一个\n // nextOne() {\n // this.type = 1;\n // this.examine_id = detail.id;\n // this.getDetailStu();\n // },\n\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaohe/fileDetail.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaohe/index.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaohe/index.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\nvar _uploadFile = _interopRequireDefault(__webpack_require__(/*! ./components/uploadFile */ \"./src/views/kaohe/components/uploadFile.vue\"));\n\nvar _detail = _interopRequireDefault(__webpack_require__(/*! ./components/detail */ \"./src/views/kaohe/components/detail.vue\"));\n\nvar _index = __webpack_require__(/*! ./api/index */ \"./src/views/kaohe/api/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n components: {\n uploadFile: _uploadFile.default,\n Detail: _detail.default\n },\n data: function data() {\n return {\n loadingFull: true,\n list: [],\n is_student: false,\n is_open: false //是否开始文件上传\n\n };\n },\n created: function created() {\n var roles = this.$store.state.user.roles;\n\n if (roles.includes(\"Student\")) {\n this.is_student = true;\n }\n\n this.geteExamines();\n this.getSettings();\n },\n methods: {\n getSettings: function getSettings() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$_getSettings, data, now_time, start_time, end_time;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _index.getSettings)({\n keys: [\"EMAMINE_START_TIME\", \"EMAMINE_END_TIME\"]\n });\n\n case 2:\n _yield$_getSettings = _context.sent;\n data = _yield$_getSettings.data;\n now_time = new Date().valueOf();\n start_time = data.EMAMINE_START_TIME;\n start_time = new Date(start_time).valueOf();\n end_time = data.EMAMINE_END_TIME;\n end_time = new Date(end_time).valueOf();\n\n if (now_time >= start_time && now_time <= end_time) {\n _this.is_open = true;\n } else {\n _this.is_open = false;\n }\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //学生上传文件\n uploadFileStu: function uploadFileStu(row) {\n this.$refs[\"upload-file\"].showEdit(row);\n },\n lookDetail: function lookDetail(row) {\n // this.$refs[\"details\"].showEdit(row.examine, row.id);\n if (row.type == 1) {\n this.$router.push({\n path: \"/kaohe/fileDetail\",\n query: {\n examine_question_id: row.id,\n name: row.name,\n type: row.type\n }\n });\n } else {\n this.$router.push({\n path: \"/kaohe/rewardList\",\n query: {\n id: row.id\n }\n });\n }\n },\n //单文件删除\n handleDelete: function handleDelete(row) {\n var _this2 = this;\n\n this.$confirm(\"您确定要删除当前上传的文件吗?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return (0, _index.deleteFile)({\n id: row.examine.id,\n examine_question_id: row.id,\n staff_id: _this2.$store.state.user.staff_id\n });\n\n case 2:\n _this2.$message({\n type: \"success\",\n message: \"删除成功\"\n });\n\n _context2.next = 5;\n return _this2.geteExamines();\n\n case 5:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n })));\n },\n lookDetailList: function lookDetailList(row) {},\n //学生上传列表\n uploadList: function uploadList(row) {\n this.$router.push({\n path: \"/kaohe/uploadList\",\n query: {\n id: row.id\n }\n });\n },\n //考核列表\n geteExamines: function geteExamines() {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n var _yield$_geteExamines, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _this3.loadingFull = true;\n _context3.next = 3;\n return (0, _index.geteExamines)();\n\n case 3:\n _yield$_geteExamines = _context3.sent;\n data = _yield$_geteExamines.data;\n _this3.list = data.examine;\n _this3.loadingFull = false;\n\n case 7:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaohe/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaohe/rewardList.vue?vue&type=script&lang=js&": /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaohe/rewardList.vue?vue&type=script&lang=js& ***! \****************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _index = __webpack_require__(/*! ./api/index */ \"./src/views/kaohe/api/index.js\");\n\nvar _checkOut = _interopRequireDefault(__webpack_require__(/*! ./components/checkOut */ \"./src/views/kaohe/components/checkOut.vue\"));\n\nvar _detail = _interopRequireDefault(__webpack_require__(/*! ./components/detail */ \"./src/views/kaohe/components/detail.vue\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n components: {\n checkOut: _checkOut.default,\n detail: _detail.default\n },\n data: function data() {\n return {\n type: 2,\n totalPage: 0,\n searchParams: {\n page: 1,\n per_page: 15\n },\n loadingFull: true,\n tableData: [],\n examine_question_id: \"\",\n is_student: false,\n is_open: false //当前时间是否在上传文件时间段内\n\n };\n },\n created: function created() {\n var route = this.$route.query;\n var role = route.role;\n\n if (role == \"admin\") {\n this.getListAdmin();\n } else {\n this.getList(route.id);\n }\n\n var roles = this.$store.state.user.roles;\n\n if (roles.includes(\"Student\")) {\n this.is_student = true;\n }\n },\n methods: {\n //获取配置项\n getSettings: function getSettings() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$_getSettings, data, now_time, start_time, end_time;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _index.getSettings)({\n keys: [\"EMAMINE_START_TIME\", \"EMAMINE_END_TIME\"]\n });\n\n case 2:\n _yield$_getSettings = _context.sent;\n data = _yield$_getSettings.data;\n now_time = new Date().valueOf();\n start_time = data.EMAMINE_START_TIME;\n start_time = new Date(start_time).valueOf();\n end_time = data.EMAMINE_END_TIME;\n end_time = new Date(end_time).valueOf();\n\n if (now_time >= start_time && now_time <= end_time) {\n _this.is_open = true;\n } else {\n _this.is_open = false;\n }\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //审核\n checkOutStu: function checkOutStu() {\n this.$refs[\"check-out\"].showEdit({\n type: 2,\n examine_id: row.id,\n point: row.point\n });\n },\n //单文件删除\n handleDelete: function handleDelete(row) {\n var _this2 = this;\n\n this.$confirm(\"您确定要删除当前上传的文件吗?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n var route = _this2.$route.query;\n\n var _deleteFile = (0, _index.deleteFile)({\n id: row.examine.id,\n examine_question_id: route.id,\n staff_id: _this2.$store.state.user.staff_id\n }),\n message = _deleteFile.message;\n\n _this2.$message({\n type: \"success\",\n message: message\n });\n });\n },\n //查看详情\n lookDetail: function lookDetail(row) {\n this.$refs[\"detail\"].showEdit(row); // this.$router.push({\n // path: \"/kaohe/fileDetail\",\n // query: {\n // id: row.id,\n // name: row.name,\n // type: 2,\n // examine_question_id: this.examine_question_id,\n // },\n // });\n },\n //学生提交列表\n getListAdmin: function getListAdmin() {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var route, params, _yield$examineDetail, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n route = _this3.$route.query;\n\n if (!(route.role !== \"admin\")) {\n _context2.next = 3;\n break;\n }\n\n return _context2.abrupt(\"return\");\n\n case 3:\n _this3.loadingFull = true;\n params = {\n type: _this3.type,\n examine_question_id: route.examine_question_id,\n examine_id: route.id\n };\n _context2.next = 7;\n return (0, _index.examineDetail)(params);\n\n case 7:\n _yield$examineDetail = _context2.sent;\n data = _yield$examineDetail.data;\n _this3.tableData = data.lists; // this.totalPage = data.meta.pagination.total;\n\n _this3.loadingFull = false;\n\n case 11:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //学生提交列表\n getList: function getList(id) {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n var _yield$fileDetailStu, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _this4.loadingFull = true;\n _context3.next = 3;\n return (0, _index.fileDetailStu)({\n examine_question_id: id\n });\n\n case 3:\n _yield$fileDetailStu = _context3.sent;\n data = _yield$fileDetailStu.data;\n _this4.tableData = data; // this.totalPage = data.meta.pagination.total;\n\n _this4.loadingFull = false;\n\n case 7:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n //返回考核列表\n goBack: function goBack() {\n var route = this.$route.query;\n\n if (route.role == \"admin\") {\n this.$router.push({\n path: \"/kaohe/uploadList\",\n query: {\n type: 2,\n id: route.examine_question_id\n }\n });\n } else {\n this.$router.push({\n path: \"/kaohe/index\"\n });\n }\n },\n //切换页码\n handleCurrentChange: function handleCurrentChange(e) {\n this.searchParams.page = e;\n this.getList();\n },\n //切换每页显示数量\n handleSizeChange: function handleSizeChange(e) {\n this.searchParams.limit = e;\n this.getList();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaohe/rewardList.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaohe/statics.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaohe/statics.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _index = __webpack_require__(/*! ./api/index */ \"./src/views/kaohe/api/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// import Detail from \"./components/detail\";\nvar _default = {\n data: function data() {\n return {\n loadingFull: true,\n list: [],\n searchParams: {\n page: 1,\n limit: 15\n },\n totalPage: 0,\n organization_list: [],\n can_check: false\n };\n },\n created: function created() {\n var roles = this.$store.state.user.roles;\n\n if (roles.includes(\"Super admin\")) {\n this.can_check = true;\n }\n\n this.getList();\n this.selectOrganizationList();\n },\n methods: {\n //获取组织列表\n selectOrganizationList: function selectOrganizationList() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$organizationLi, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _index.organizationList)({\n status: 1\n });\n\n case 2:\n _yield$organizationLi = _context.sent;\n data = _yield$organizationLi.data;\n _this.organization_list = data;\n console.log(data, \"组织列表\");\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //学生上传文件\n uploadFileStu: function uploadFileStu(row) {\n this.$refs[\"upload-file\"].showEdit(row);\n },\n lookDetail: function lookDetail() {\n this.$refs[\"details\"].showEdit(row);\n },\n //学生上传列表\n uploadList: function uploadList(row) {\n this.$router.push({\n path: \"/kaohe/uploadList\",\n query: {\n id: row.id,\n type: row.type\n }\n });\n },\n //考核列表\n getList: function getList() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var _yield$examStatics, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.loadingFull = true;\n _context2.next = 3;\n return (0, _index.examStatics)(_this2.searchParams);\n\n case 3:\n _yield$examStatics = _context2.sent;\n data = _yield$examStatics.data;\n _this2.list = data.data;\n _this2.totalPage = data.meta.pagination.total;\n _this2.loadingFull = false;\n\n case 8:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //切换页码\n handleCurrentChange: function handleCurrentChange(e) {\n this.searchParams.page = e;\n this.getList();\n },\n //切换每页显示数量\n handleSizeChange: function handleSizeChange(e) {\n this.searchParams.limit = e;\n this.getList();\n },\n Search: function Search() {\n this.searchParams.page = 1;\n this.getList();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaohe/statics.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaohe/uploadList.vue?vue&type=script&lang=js&": /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaohe/uploadList.vue?vue&type=script&lang=js& ***! \****************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\nvar _index = __webpack_require__(/*! ./api/index */ \"./src/views/kaohe/api/index.js\");\n\nvar _checkOut = _interopRequireDefault(__webpack_require__(/*! ./components/checkOut */ \"./src/views/kaohe/components/checkOut.vue\"));\n\nvar _detail = _interopRequireDefault(__webpack_require__(/*! ./components/detail */ \"./src/views/kaohe/components/detail.vue\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n components: {\n checkOut: _checkOut.default,\n detail: _detail.default\n },\n data: function data() {\n return {\n type: 1,\n totalPage: 0,\n searchParams: {\n page: 1,\n limit: 15\n },\n loadingFull: true,\n tableData: [],\n checkList: [{\n id: 1,\n name: \"待审核\"\n }, {\n id: 2,\n name: \"审核成功\"\n }, {\n id: 3,\n name: \"审核失败\"\n }],\n organization_list: [],\n can_check: false\n };\n },\n created: function created() {\n var route = this.$route.query;\n this.type = route.type;\n var roles = this.$store.state.user.roles;\n\n if (roles.includes(\"Super admin\")) {\n this.can_check = true;\n }\n\n this.getList();\n this.selectOrganizationList();\n },\n methods: {\n //获取组织列表\n selectOrganizationList: function selectOrganizationList() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$organizationLi, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _index.organizationList)({\n status: 1\n });\n\n case 2:\n _yield$organizationLi = _context.sent;\n data = _yield$organizationLi.data;\n _this.organization_list = data;\n console.log(data, \"组织列表\");\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //搜索\n Search: function Search() {\n this.searchParams.page = 1;\n\n if (!this.searchParams.check_status) {\n delete this.searchParams.check_status;\n }\n\n this.getList();\n },\n //审核\n checkOutStu: function checkOutStu(row) {\n var route = this.$route.query;\n this.$refs[\"check-out\"].showEdit({\n type: this.type,\n examine_id: row.id,\n point: row.point,\n examine_question_id: route.id\n });\n },\n //查看详情\n lookDetail: function lookDetail(row) {\n var route = this.$route.query;\n this.$router.push({\n path: \"/kaohe/fileDetail\",\n query: {\n examine_id: row.examine_id,\n id: row.id,\n examine_question_id: route.id,\n name: route.name,\n type: route.type,\n role: \"admin\"\n }\n });\n },\n lookDetailList: function lookDetailList(row) {\n var route = this.$route.query;\n this.$router.push({\n path: \"/kaohe/rewardList\",\n query: {\n id: row.id,\n examine_question_id: route.id,\n role: \"admin\" // staff_id: row.staff ? row.staff.id : 0,\n\n }\n });\n },\n //学生提交列表\n getList: function getList() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var route, _yield$examList, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.loadingFull = true;\n route = _this2.$route.query;\n _this2.searchParams.examine_question_id = route.id;\n _context2.next = 5;\n return (0, _index.examList)(_this2.searchParams);\n\n case 5:\n _yield$examList = _context2.sent;\n data = _yield$examList.data;\n _this2.tableData = data.data;\n _this2.totalPage = data.meta.pagination.total;\n _this2.loadingFull = false;\n\n case 10:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //返回考核列表\n goBack: function goBack() {\n this.$router.push({\n path: \"/kaohe/checkList\"\n });\n },\n //切换页码\n handleCurrentChange: function handleCurrentChange(e) {\n this.searchParams.page = e;\n this.getList();\n },\n //切换每页显示数量\n handleSizeChange: function handleSizeChange(e) {\n this.searchParams.limit = e;\n this.getList();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaohe/uploadList.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaoping/components/HuanChart.vue?vue&type=script&lang=js&": /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaoping/components/HuanChart.vue?vue&type=script&lang=js& ***! \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\nvar _echarts = _interopRequireDefault(__webpack_require__(/*! echarts */ \"./node_modules/_echarts@4.9.0@echarts/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n__webpack_require__(/*! echarts/theme/macarons */ \"./node_modules/_echarts@4.9.0@echarts/theme/macarons.js\"); // echarts theme\n// import resize from \"./mixins/resize\";\n\n\nvar _default = {\n // mixins: [resize],\n props: {\n className: {\n type: String,\n default: \"chart\"\n },\n chartDate: \"\",\n width: {\n type: String,\n default: \"100%\"\n },\n height: {\n type: String,\n default: \"300px\"\n }\n },\n watch: {\n chartDate: function chartDate(value) {\n console.log(value, \"valuevaluevaluevalue1\"); // console.log(value,'valuevaluevaluevalue')\n\n value = value.map(function (item) {\n return {\n name: item.name + item.point + \"分\",\n value: item.point\n };\n }); // this.chartDate = value;\n\n this.initChart(value);\n }\n },\n data: function data() {\n return {\n chart: null,\n indexDate: [],\n sex: []\n };\n },\n mounted: function mounted() {\n console.log(this.chartDate, \"this.chartDate\");\n this.chartDate.map(function (item) {});\n },\n beforeDestroy: function beforeDestroy() {\n if (!this.chart) {\n return;\n }\n\n this.chart.dispose();\n this.chart = null;\n },\n methods: {\n initChart: function initChart(value) {\n this.chart = _echarts.default.init(this.$el, \"macarons\");\n this.chart.setOption({\n tooltip: {\n trigger: \"item\"\n },\n // legend: {\n // orient: \"vertical\",\n // left: \"left\"\n // },\n color: [\"#91cc75\", \"#fac858\", \"#ee6666\", \"#73c0de\", \"#fc8452\", \"#9a60b4\", \"#ea7ccc\"],\n series: [{\n name: \"分数统计\",\n type: \"pie\",\n radius: \"50%\",\n data: value,\n emphasis: {\n itemStyle: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: \"rgba(0, 0, 0, 0.5)\"\n }\n }\n }]\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaoping/components/HuanChart.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaoping/components/PieChart.vue?vue&type=script&lang=js&": /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaoping/components/PieChart.vue?vue&type=script&lang=js& ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\nvar _echarts = _interopRequireDefault(__webpack_require__(/*! echarts */ \"./node_modules/_echarts@4.9.0@echarts/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n__webpack_require__(/*! echarts/theme/macarons */ \"./node_modules/_echarts@4.9.0@echarts/theme/macarons.js\"); // echarts theme\n// import resize from \"./mixins/resize\";\n\n\nvar _default = {\n // mixins: [resize],\n props: {\n className: {\n type: String,\n default: \"chart\"\n },\n chartDate: \"\",\n width: {\n type: String,\n default: \"100%\"\n },\n height: {\n type: String,\n default: \"300px\"\n }\n },\n watch: {\n chartDate: function chartDate(value) {\n console.log(value, \"valuevaluevaluevalue\"); // console.log(value,'valuevaluevaluevalue')\n\n value = value.map(function (item) {\n return {\n name: item.name + item.nums + '次',\n value: item.nums\n };\n }); // this.chartDate = value;\n\n this.initChart(value);\n }\n },\n data: function data() {\n return {\n chart: null,\n indexDate: [],\n sex: []\n };\n },\n mounted: function mounted() {\n console.log(this.chartDate, \"this.chartDate\");\n this.chartDate.map(function (item) {});\n },\n beforeDestroy: function beforeDestroy() {\n if (!this.chart) {\n return;\n }\n\n this.chart.dispose();\n this.chart = null;\n },\n methods: {\n initChart: function initChart(value) {\n this.chart = _echarts.default.init(this.$el, \"macarons\");\n this.chart.setOption({\n tooltip: {\n trigger: \"item\"\n },\n // legend: {\n // orient: \"vertical\",\n // left: \"left\"\n // },\n color: [\"#fac858\", \"#ee6666\", \"#73c0de\", \"#3ba272\", \"#fc8452\", \"#9a60b4\", \"#ea7ccc\"],\n series: [{\n name: \"总图表\" + this.indexDate,\n type: \"pie\",\n radius: \"50%\",\n data: value,\n emphasis: {\n itemStyle: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: \"rgba(0, 0, 0, 0.5)\"\n }\n }\n }] // tooltip: {\n // trigger: \"item\",\n // formatter: \"{a}
{b} : {c} ({d}%)\"\n // },\n // color: [\"#ee6666\", \"#73c0de\", \"#fc8452\"],\n // legend: {\n // left: \"center\",\n // bottom: \"10\",\n // data: [\"正式党员\", \"预备党员\",\"发展对象\", \"积极分子\"]\n // },\n // series: [\n // {\n // name: \"总图表\",\n // type: \"pie\",\n // roseType: \"radius\",\n // radius: [15, 95],\n // center: [\"50%\", \"38%\"],\n // data: [\n // { value: this.chartDate.dy_nums , name: \"正式党员\"+ this.chartDate.dy_nums +'人' },\n // { value: this.chartDate.ybdy_nums, name: \"预备党员\" + this.chartDate.ybdy_nums +'人'},\n // { value: this.chartDate.ybdy_nums, name: \"发展对象\" + this.chartDate.fzdx_nums +'人'},\n // { value: this.chartDate.jjfz_nums, name: \"积极分子\" + this.chartDate.jjfz_nums +'人'}\n // ],\n // animationEasing: \"cubicInOut\",\n // animationDuration: 2600\n // }\n // ]\n\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaoping/components/PieChart.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaoping/components/pingfen.vue?vue&type=script&lang=js&": /*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaoping/components/pingfen.vue?vue&type=script&lang=js& ***! \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.constructor.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.dot-all.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.dot-all.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.exec.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.sticky.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.sticky.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.test.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.test.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! ../api/index */ \"./src/views/kaoping/api/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"DepartmentManagementEdit\",\n data: function data() {\n return {\n form: {\n id: 1,\n mutual_point: \"\"\n },\n dialogFormVisible: false,\n rules: {\n mutual_point: [{\n required: true,\n trigger: \"blur\",\n message: \"请输入分值\"\n }]\n }\n };\n },\n methods: {\n showEdit: function showEdit(id) {\n this.dialogFormVisible = true;\n this.form.id = id;\n },\n close: function close() {\n this.$refs[\"form\"].resetFields();\n this.form = this.$options.data().form;\n this.dialogFormVisible = false;\n },\n //编辑保存\n save: function save() {\n var _this = this;\n\n this.$refs[\"form\"].validate( /*#__PURE__*/function () {\n var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(valid) {\n var reg, _yield$pingfen, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!valid) {\n _context.next = 12;\n break;\n }\n\n reg = new RegExp(\"^(\\\\d|[1-9]\\\\d|100)$\");\n\n if (reg.test(_this.form.mutual_point)) {\n _context.next = 5;\n break;\n }\n\n _this.$message({\n message: \"请输入0-100的整数!\",\n type: \"warning\"\n });\n\n return _context.abrupt(\"return\");\n\n case 5:\n _context.next = 7;\n return (0, _index.pingfen)(_this.form);\n\n case 7:\n _yield$pingfen = _context.sent;\n message = _yield$pingfen.message;\n\n _this.$message({\n type: \"success\",\n message: message\n });\n\n _this.$emit(\"fetch-data\");\n\n _this.close();\n\n case 12:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaoping/components/pingfen.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/kaoping/index.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/kaoping/index.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/organizationDetail/index */ \"./src/api/organizationDetail/index.js\");\n\nvar _index2 = __webpack_require__(/*! ./api/index */ \"./src/views/kaoping/api/index.js\");\n\nvar _vueCountTo = _interopRequireDefault(__webpack_require__(/*! vue-count-to */ \"./node_modules/_vue-count-to@1.0.13@vue-count-to/dist/vue-count-to.min.js\"));\n\nvar _PieChart = _interopRequireDefault(__webpack_require__(/*! ./components/PieChart */ \"./src/views/kaoping/components/PieChart.vue\"));\n\nvar _HuanChart = _interopRequireDefault(__webpack_require__(/*! ./components/HuanChart */ \"./src/views/kaoping/components/HuanChart.vue\"));\n\nvar _pingfen = _interopRequireDefault(__webpack_require__(/*! ./components/pingfen.vue */ \"./src/views/kaoping/components/pingfen.vue\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n components: {\n CountTo: _vueCountTo.default,\n Pingfen: _pingfen.default,\n PieChart: _PieChart.default,\n HuanChart: _HuanChart.default\n },\n data: function data() {\n return {\n queryForm: {\n page: 1,\n limit: 15,\n title: \"\",\n organization_id: \"\",\n year: \"\",\n is_score: \"\"\n },\n loadingFull: true,\n changeRecord: [],\n //换届记录\n total: 0,\n layout: \"total, sizes, prev, pager, next, jumper\",\n activeSortList: [],\n //活动分类列表\n statisticsList: [],\n organization_list: [],\n pingfen_list: [{\n id: 0,\n name: \"未评\"\n }, {\n id: 1,\n name: \"已评\"\n }],\n year: \"\"\n };\n },\n created: function created() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var date, year;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n date = new Date();\n year = date.getFullYear();\n _this.queryForm.year = year.toString();\n\n _this.activeStatistics();\n\n _context.next = 6;\n return _this.activeSort();\n\n case 6:\n _context.next = 8;\n return _this.record();\n\n case 8:\n _context.next = 10;\n return _this.selectOrganizationList();\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n methods: {\n //获取组织列表\n selectOrganizationList: function selectOrganizationList() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var _yield$organizationLi, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return (0, _index2.organizationList)();\n\n case 2:\n _yield$organizationLi = _context2.sent;\n data = _yield$organizationLi.data;\n _this2.organization_list = data;\n console.log(data, \"组织列表\");\n\n case 6:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //搜索换届记录\n searchRecord: function searchRecord() {\n this.queryForm.page = 1;\n this.record();\n this.activeStatistics();\n },\n //组织换届记录列表\n record: function record() {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return (0, _index.changeRecords)(_this3.queryForm).then(function (res) {\n _this3.loadingFull = false;\n _this3.changeRecord = res.data.data;\n _this3.total = res.data.meta.pagination.total;\n });\n\n case 2:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n //pageSize 改变时会触发\n handleSizeChange: function handleSizeChange(val) {\n this.queryForm.limit = val;\n this.record();\n },\n //\tcurrentPage 改变时会触发\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryForm.page = val;\n this.record();\n },\n //获取活动分类\n activeSort: function activeSort() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n var _yield$_activeSort, data, key;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _this4.activeSortList = [];\n _context4.next = 3;\n return (0, _index.activeSort)();\n\n case 3:\n _yield$_activeSort = _context4.sent;\n data = _yield$_activeSort.data;\n\n for (key in data) {\n console.log(key, data[key], \"pppp\");\n\n _this4.activeSortList.push({\n value: key,\n label: data[key]\n });\n }\n\n case 6:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n },\n //换届记录详情\n recordDetail: function recordDetail(id) {\n var _this5 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee5() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _this5.$router.push({\n path: \"/organization/list_details\",\n query: {\n id: id,\n skip_type: 1\n }\n });\n\n case 1:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5);\n }))();\n },\n //获取活动分类统计\n activeStatistics: function activeStatistics() {\n var _this6 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee6() {\n var params, _yield$_activeStatist, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee6$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n params = {\n year: _this6.queryForm.year,\n organization_id: _this6.queryForm.organization_id\n };\n _context6.next = 3;\n return (0, _index.activeStatistics)(params);\n\n case 3:\n _yield$_activeStatist = _context6.sent;\n data = _yield$_activeStatist.data;\n _this6.statisticsList = data;\n console.log(data, \"获取活动分类统计\");\n\n case 7:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee6);\n }))();\n },\n //点击评分\n handelPingfen: function handelPingfen(id) {\n this.$refs[\"pingfen\"].showEdit(id);\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/kaoping/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/login/index.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/login/index.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.error.cause.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.error.cause.js\");\n\n__webpack_require__(/*! core-js/modules/es.json.stringify.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.json.stringify.js\");\n\n__webpack_require__(/*! core-js/modules/web.btoa.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/web.btoa.js\");\n\n__webpack_require__(/*! core-js/modules/web.dom-exception.constructor.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/web.dom-exception.constructor.js\");\n\n__webpack_require__(/*! core-js/modules/web.dom-exception.stack.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/web.dom-exception.stack.js\");\n\n__webpack_require__(/*! core-js/modules/web.dom-exception.to-string-tag.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/web.dom-exception.to-string-tag.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _personnel = __webpack_require__(/*! @/api/personnel */ \"./src/api/personnel/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar defaultSettings = __webpack_require__(/*! ../../settings.js */ \"./src/settings.js\");\n\nvar _default = {\n name: \"Login\",\n data: function data() {\n var validateUsername = function validateUsername(rule, value, callback) {\n if (!value) {\n callback(new Error(\"请输入正确的用户名\"));\n } else {\n callback();\n }\n };\n\n var validatePassword = function validatePassword(rule, value, callback) {\n if (value.length < 4) {\n callback(new Error(\"密码不得小于4位\"));\n } else {\n callback();\n }\n };\n\n return {\n img: __webpack_require__(/*! @/assets/image/background.jpg */ \"./src/assets/image/background.jpg\"),\n isShow: false,\n loginTitle: defaultSettings.loginTitle,\n loginForm: {\n username: \"\",\n password: \"\"\n },\n loginRules: {\n username: [{\n required: true,\n trigger: \"blur\",\n validator: validateUsername\n }],\n password: [{\n required: true,\n trigger: \"blur\",\n validator: validatePassword\n }]\n },\n loading: false,\n passwordType: \"password\",\n redirect: undefined\n };\n },\n watch: {\n $route: {\n handler: function handler(route) {\n this.redirect = route.query && route.query.redirect;\n },\n immediate: true\n }\n },\n methods: {\n getNationList: function getNationList() {\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _personnel.getNationList)().then(function (res) {\n //console.log(res.data['App\\Repositories\\Enums\\NationEnum'], \"班级列表\")\n console.log(res[\"data\"], \"获取民族\");\n sessionStorage.setItem(\"status\", JSON.stringify(res[\"data\"]));\n });\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n showPwd: function showPwd() {\n var _this = this;\n\n if (this.passwordType === \"password\") {\n this.passwordType = \"\";\n } else {\n this.passwordType = \"password\";\n }\n\n this.$nextTick(function () {\n _this.$refs.password.focus();\n });\n },\n handleLogin: function handleLogin() {\n var _this2 = this;\n\n this.$refs.loginForm.validate(function (valid) {\n if (valid) {\n _this2.loading = true;\n console.log(_this2.$router, \"router\");\n var data = {\n username: _this2.loginForm.username,\n password: btoa(_this2.loginForm.password)\n }; // let data= this.loginForm\n\n _this2.$store.dispatch(\"user/login\", data).then(function () {\n _this2.$router.push({\n path: _this2.redirect || \"/\"\n });\n\n _this2.loading = false;\n\n _this2.getNationList();\n }).catch(function (err) {\n _this2.loading = false;\n console.log(err, \"ppppoopioio\");\n });\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n },\n //记住密码\n remberPwd: function remberPwd() {\n this.isShow = !this.isShow;\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/login/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/notice/notice.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/notice/notice.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n noticeList: {}\n };\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/notice/notice.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/organization/detail.vue?vue&type=script&lang=js&": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/organization/detail.vue?vue&type=script&lang=js& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.constructor.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.dot-all.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.dot-all.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.exec.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.sticky.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.sticky.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.test.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.test.js\");\n\nvar _index = __webpack_require__(/*! @/api/organizationDetail/index */ \"./src/api/organizationDetail/index.js\");\n\nvar _Tinymce = _interopRequireDefault(__webpack_require__(/*! @/components/Tinymce */ \"./src/components/Tinymce/index.vue\"));\n\nvar _vueCountTo = _interopRequireDefault(__webpack_require__(/*! vue-count-to */ \"./node_modules/_vue-count-to@1.0.13@vue-count-to/dist/vue-count-to.min.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n uploadType: 0,\n //点击重新上传变为1 隐藏已上传图片\n formType: 0,\n //0添加,//1 编辑\n organDetail: \"\",\n loadingFull: false,\n imgDetaildialogVisible: false,\n changeRecord: [],\n //换届记录\n dialogVisible: false,\n recDetails: {},\n //记录详情,\n recordVisible: false,\n //新增换届记录\n recordVisible1: false,\n //编辑换届记录\n fileDialogVisible: false,\n //新建文件列表\n detailVisible: false,\n //文件详情\n queryForm: {\n page: 1,\n per_page: 15,\n title: \"\"\n },\n searchParams: {\n name: \"\",\n //支部名称\n type: \"\",\n zb_sj: \"\",\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n },\n //搜索框数据\n setupForm: {\n organization_id: \"\",\n //当前支部id\n status: 1,\n category_id: \"\",\n type: \"线下活动\",\n day: \"\"\n },\n status: [{\n value: 0,\n name: \"暂停\"\n }, {\n value: 1,\n name: \"正常\"\n }],\n fileType: [{\n value: 0,\n name: \"富文本\"\n }, {\n value: 1,\n name: \"图片\"\n }, {\n value: 2,\n name: \"文件\"\n }],\n //文件类型选择列表\n fileDetail: \"\",\n type: \"\",\n //类型1为新增 2为编辑\n id: \"\",\n danganList: [],\n //换届文档列表\n creatFile: {\n type: \"\",\n organization_id: \"\",\n organization_activity_id: \"\",\n name: \"\",\n status: 1,\n self_point: \"\",\n body: \"\"\n },\n //\n rules: {\n title: [{\n required: true,\n message: \"请输入标题\",\n trigger: \"blur\"\n }],\n category_id: [{\n required: true,\n message: \"请选择活动分类\",\n trigger: \"change\"\n }],\n day: [{\n required: true,\n message: \"请选择日期\",\n trigger: \"change\"\n }],\n type: [{\n required: true,\n message: \"请选择活动类型\",\n trigger: \"change\"\n }],\n self_point: [{\n required: true,\n message: \"请填写活动自评分数\",\n trigger: \"blur\"\n }],\n address: [{\n required: true,\n message: \"请填写活动地址\",\n trigger: \"blur\"\n }],\n compere: [{\n required: true,\n message: \"请填写主持人员\",\n trigger: \"blur\"\n }],\n participant: [{\n required: true,\n message: \"请填写参与人员\",\n trigger: \"blur\"\n }],\n status: [{\n required: true,\n message: \"请选择状态\",\n trigger: \"change\"\n }]\n },\n //表格验证规则\n activeName: \"image\",\n fileData: {\n file_type: \"img\"\n },\n fileList: [],\n //上传挡案文件列表\n resourceIds: [],\n //文件id\n file: \"\",\n rowId: \"\",\n otherPerson: [{\n index: \"\",\n name: \"\",\n job: \"\"\n }],\n bigImage: \"\",\n activeType: [\"线下活动\", \"线上活动\"],\n total: 0,\n layout: \"total, sizes, prev, pager, next, jumper\",\n activeSortList: [],\n //活动分类列表\n statisticsList: [] //活动统计列表\n\n };\n },\n components: {\n Tinymce: _Tinymce.default,\n CountTo: _vueCountTo.default\n },\n created: function created() {\n var id = this.$route.query.id;\n this.id = id;\n this.setupForm.organization_id = id;\n this.creatFile.organization_id = id;\n this.queryForm.organization_id = id;\n this.detail(id);\n this.record();\n this.creatFile.type = 1;\n this.fileData.file_type = \"img\";\n this.activeSort();\n this.activeStatistics();\n },\n methods: {\n testEmpety: function testEmpety(value) {\n if (value) return value;else return \"--\";\n },\n handleSetLineChartData: function handleSetLineChartData(type) {\n this.$router.push({\n path: \"/personnel/index\",\n query: {\n politics_status: type,\n organization_id: this.id\n }\n });\n },\n //上传入党志愿书人数\n skipRudangZhiyuan: function skipRudangZhiyuan() {\n this.$router.push({\n path: \"/personnel/index\",\n query: {\n organization_id: this.id,\n is_rdsqs: 1\n }\n });\n },\n //获取活动分类\n activeSort: function activeSort() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$_activeSort, data, key;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.activeSortList = [];\n _context.next = 3;\n return (0, _index.activeSort)();\n\n case 3:\n _yield$_activeSort = _context.sent;\n data = _yield$_activeSort.data;\n\n for (key in data) {\n console.log(key, data[key], \"pppp\");\n\n _this.activeSortList.push({\n value: key,\n label: data[key]\n });\n }\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //获取活动分类统计\n activeStatistics: function activeStatistics() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var date, y, params, _yield$_activeStatist, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n date = new Date();\n y = date.getFullYear();\n params = {\n organization_id: _this2.id,\n year: y\n };\n _context2.next = 5;\n return (0, _index.activeStatistics)(params);\n\n case 5:\n _yield$_activeStatist = _context2.sent;\n data = _yield$_activeStatist.data;\n _this2.statisticsList = data;\n console.log(data, \"获取活动分类统计\");\n\n case 9:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //pageSize 改变时会触发\n handleSizeChange: function handleSizeChange(val) {\n this.queryForm.per_page = val;\n this.searchRecord();\n },\n //\tcurrentPage 改变时会触发\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryForm.page = val;\n this.searchRecord();\n },\n //关闭大图\n closeBigImg: function closeBigImg() {\n this.imgDetaildialogVisible = false;\n },\n //查看大图\n imageDetail: function imageDetail(item) {\n this.imgDetaildialogVisible = true;\n this.bigImage = item;\n },\n //组织信息\n detail: function detail(id) {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _this3.loadingFull = true;\n _context3.next = 3;\n return (0, _index.organizaDetail)(id).then(function (res) {\n _this3.organDetail = res.data;\n _this3.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n //搜索换届记录\n searchRecord: function searchRecord() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _this4.queryForm.page = 1;\n _this4.loadingFull = true;\n _context4.next = 4;\n return (0, _index.changeRecords)(_this4.queryForm).then(function (res) {\n _this4.changeRecord = res.data.data;\n _this4.loadingFull = false;\n });\n\n case 4:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n },\n //组织换届记录列表\n record: function record(id) {\n var _this5 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee5() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _this5.loadingFull = true;\n _context5.next = 3;\n return (0, _index.changeRecords)(_this5.queryForm).then(function (res) {\n _this5.loadingFull = false;\n console.log(res, \"res\");\n _this5.changeRecord = res.data.data;\n _this5.total = res.data.meta.pagination.total;\n });\n\n case 3:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5);\n }))();\n },\n //换届记录详情\n recordDetail: function recordDetail(id) {\n var _this6 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee6() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee6$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n _this6.$router.push({\n path: \"/organization/list_details\",\n query: {\n id: id,\n organization_id: _this6.$route.query.id\n }\n });\n\n case 1:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee6);\n }))();\n },\n //编辑换届记录\n editDetail: function editDetail(row) {\n this.formType = 1;\n this.recordVisible = true;\n this.setupForm = Object.assign({}, row);\n this.setupForm.category_id = this.setupForm.category_id.toString();\n this.setupForm.organization_id = this.$route.query.id;\n },\n //saveEdit保存编辑\n saveEdit: function saveEdit(formName) {\n var _this7 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee8() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee8$(_context8) {\n while (1) {\n switch (_context8.prev = _context8.next) {\n case 0:\n _this7.$refs[formName].validate( /*#__PURE__*/function () {\n var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee7(valid) {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee7$(_context7) {\n while (1) {\n switch (_context7.prev = _context7.next) {\n case 0:\n if (!valid) {\n _context7.next = 3;\n break;\n }\n\n _context7.next = 3;\n return (0, _index.updateRecord)(_this7.setupForm).then(function (res) {\n _this7.$message({\n message: \"编辑成功\",\n type: \"success\"\n });\n\n _this7.recordVisible = false;\n _this7.loadingFull = false;\n _this7.uploadType = 0;\n\n _this7.$refs[formName].resetFields();\n });\n\n case 3:\n case \"end\":\n return _context7.stop();\n }\n }\n }, _callee7);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n\n case 1:\n case \"end\":\n return _context8.stop();\n }\n }\n }, _callee8);\n }))();\n },\n //删除换届记录\n deleteRecord: function deleteRecord(id) {\n var _this8 = this;\n\n this.$confirm(\"此操作将删除此换届记录, 是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this8.sureDeleteRecord(id);\n }).catch(function () {\n _this8.$message({\n type: \"info\",\n message: \"已取消删除\"\n });\n });\n },\n sureDeleteRecord: function sureDeleteRecord(id) {\n var _this9 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee9() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee9$(_context9) {\n while (1) {\n switch (_context9.prev = _context9.next) {\n case 0:\n _context9.next = 2;\n return (0, _index.deleteRecord)(id).then(function (res) {\n if (!res.code) {\n _this9.$message({\n message: \"删除成功\",\n type: \"success\"\n });\n\n _this9.record(_this9.id);\n } else {\n _this9.$message({\n message: \"删除失败\",\n type: \"error\"\n });\n }\n });\n\n case 2:\n case \"end\":\n return _context9.stop();\n }\n }\n }, _callee9);\n }))();\n },\n //创建换届记录\n submitForm: function submitForm(formName) {\n var _this10 = this;\n\n this.$refs[formName].validate( /*#__PURE__*/function () {\n var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee10(valid) {\n var reg;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee10$(_context10) {\n while (1) {\n switch (_context10.prev = _context10.next) {\n case 0:\n if (!valid) {\n _context10.next = 14;\n break;\n }\n\n reg = new RegExp(\"^(\\\\d|[1-9]\\\\d|100)$\");\n\n if (reg.test(_this10.setupForm.self_point)) {\n _context10.next = 5;\n break;\n }\n\n _this10.$message({\n message: \"请输入0-100的整数!\",\n type: \"warning\"\n });\n\n return _context10.abrupt(\"return\");\n\n case 5:\n if (_this10.setupForm.cover) {\n _context10.next = 8;\n break;\n }\n\n _this10.$message({\n type: \"error\",\n message: \"请上传封面图!\"\n });\n\n return _context10.abrupt(\"return\");\n\n case 8:\n if (_this10.setupForm.body) {\n _context10.next = 11;\n break;\n }\n\n _this10.$message({\n type: \"error\",\n message: \"请填写活动内容!\"\n });\n\n return _context10.abrupt(\"return\");\n\n case 11:\n _context10.next = 13;\n return _this10.setup(formName);\n\n case 13:\n _this10.loadingFull = false;\n\n case 14:\n case \"end\":\n return _context10.stop();\n }\n }\n }, _callee10);\n }));\n\n return function (_x2) {\n return _ref2.apply(this, arguments);\n };\n }());\n },\n setup: function setup(formName) {\n var _this11 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee11() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee11$(_context11) {\n while (1) {\n switch (_context11.prev = _context11.next) {\n case 0:\n _context11.next = 2;\n return (0, _index.setupRecord)(_this11.setupForm).then(function (res) {\n _this11.loadingFull = false;\n _this11.recordVisible = false;\n\n _this11.$refs[formName].resetFields();\n\n _this11.fileList = [];\n _this11.setupForm.body = \"\";\n\n _this11.record(_this11.id);\n });\n\n case 2:\n case \"end\":\n return _context11.stop();\n }\n }\n }, _callee11);\n }))();\n },\n resetForm: function resetForm(formName) {\n this.$refs[formName].resetFields();\n },\n cancelForm: function cancelForm() {\n this.recordVisible = false;\n this.setupForm = {};\n this.setupForm.status = 1;\n this.setupForm.organization_id = this.$route.query.id;\n this.setupForm.body = \"\";\n this.formType = 0;\n },\n closeForm: function closeForm() {\n this.recordVisible = false;\n this.setupForm = {};\n this.setupForm.status = 1;\n this.setupForm.organization_id = this.$route.query.id;\n this.setupForm.body = \"\";\n this.formType = 0;\n },\n uploadSuccess: function uploadSuccess(response, file, fileList) {\n if (response.code == 200) {\n this.setupForm.cover = response.data.url;\n this.uploadType = 1;\n this.file = response.data.url;\n this.resourceIds.push(response.data.id);\n }\n },\n //添加其他人员及职务\n addOtherPerson: function addOtherPerson(type) {\n this.index = this.index++;\n this.otherPerson.push({\n name: \"\",\n index: this.index,\n job: \"\"\n });\n this.setupForm.zb_qtry = this.otherPerson;\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/organization/detail.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/organization/list.vue?vue&type=script&lang=js&": /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/organization/list.vue?vue&type=script&lang=js& ***! \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.filter.js\");\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.concat.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\nvar _index = __webpack_require__(/*! @/api/organizationList/index */ \"./src/api/organizationList/index.js\");\n\nvar _store = _interopRequireDefault(__webpack_require__(/*! @/store */ \"./src/store/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n loadingFull: false,\n editOrganize: false,\n dialogVisible: false,\n searchParams: {\n name: \"\",\n //支部名称\n zb_sj: \"\",\n //支部书记\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n },\n //搜索框数据\n totalPage: 0,\n //总页码\n organizeList: [],\n //组织列表\n fatherList: [{\n id: 0,\n name: \"未选择\"\n }],\n //父级党组织列表\n organizeType: [{\n id: 0,\n name: \"未选择\"\n }],\n //组织类型\n orgainIndex: \"\",\n //组织索引\n status: [{\n value: 0,\n name: \"暂停\"\n }, {\n value: 1,\n name: \"正常\"\n }],\n editForm: {\n name: \"\",\n short_name: \"\",\n type: \"\",\n pid: \"\",\n set_up_date: \"\",\n status: \"\",\n id: \"\"\n },\n createForm: {\n name: \"\",\n short_name: \"\",\n type: 5,\n pid: 0,\n set_up_date: \"\",\n status: 1,\n record: {\n zb_sj: \"\",\n zb_wy: \"\",\n zb_xcwy: \"\",\n zb_qtry: [],\n zb_fsj: \"\",\n zb_qnwy: \"\",\n zb_rq: 1,\n zb_hj_date: \"\"\n }\n },\n //创建组织表单\n otherPerson: [],\n editId: \"\",\n //编辑列表id\n otherIndex: 0,\n ediPersonValue: \"1\",\n //创建表单验证规则\n creatRules: {\n name: [{\n required: true,\n message: \"请输入组织名称\",\n trigger: \"blur\"\n }],\n short_name: [{\n required: true,\n message: \"请输入组织简称\",\n trigger: \"blur\"\n }],\n type: [{\n required: true,\n message: \"请选择组织类型\",\n trigger: \"change\"\n }],\n pid: [{\n required: true,\n message: \"请选择父级组织\",\n trigger: \"change\"\n }],\n set_up_date: [{\n required: true,\n message: \"请选择组织成立时间\",\n trigger: \"change\"\n }]\n },\n roles: \"\"\n };\n },\n created: function created() {\n var role = _store.default.getters.roles;\n\n if (role.includes(\"Super admin\")) {\n this.roles = \"superAdmin\";\n }\n\n this.organizationsList();\n this.fatherOrganiza();\n var allStatus = JSON.parse(sessionStorage.getItem(\"status\"));\n var arr = [];\n console.log(allStatus, \"allStatus\");\n var organize = allStatus[\"App\\\\Repositories\\\\Enums\\\\OrganizationTypeEnum\"];\n\n for (var i in organize) {\n arr.push({\n id: parseInt(i),\n name: organize[i]\n });\n }\n\n this.organizeType = arr;\n },\n methods: {\n creatZhibu: function creatZhibu() {\n this.dialogVisible = true;\n this.createForm = {\n type: 5,\n pid: 0,\n status: 1,\n record: {\n zb_qtry: [],\n zb_rq: 1\n }\n };\n },\n //删除其他人员\n deleteOthers: function deleteOthers(e) {\n this.createForm.record.zb_qtry = this.createForm.record.zb_qtry.filter(function (item, index) {\n return index !== e;\n });\n this.otherPerson = this.createForm.record.zb_qtry;\n },\n //组织索引\n changeOrgain: function changeOrgain(e) {\n this.orgainIndex = e;\n this.editForm.type = e;\n },\n //获取父级党组织名称\n fatherOrganiza: function fatherOrganiza(name) {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _index.fatherLists)(name).then(function (res) {\n console.log(res);\n _this.fatherList = _this.fatherList.concat(res.data);\n console.log(_this.fatherList, \"this.fatherList\");\n });\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //获取党组织列表\n organizationsList: function organizationsList() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return (0, _index.organizationsList)(_this2.searchParams).then(function (res) {\n console.log(res, \"909090\");\n _this2.totalPage = res.data.meta.pagination.total;\n _this2.organizeList = res.data.data;\n _this2.loadingFull = false;\n });\n\n case 2:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //列表搜索\n searchOrganize: function searchOrganize() {\n this.searchParams.page = 1;\n this.organizationsList();\n },\n //添加组织内部其他任职人员\n addOtherPerson: function addOtherPerson() {\n this.index = this.index++;\n this.otherPerson.push({\n name: \"\",\n index: this.index,\n job: \"\"\n });\n console.log(this.otherPerson);\n this.createForm.record.zb_qtry = this.otherPerson;\n },\n //组织详情\n organizeDetail: function organizeDetail(row) {\n this.$router.push({\n name: \"detail\",\n query: {\n id: row.id\n }\n });\n },\n //编辑组织\n edit: function edit(row) {\n this.editOrganize = true;\n this.editForm = {\n name: row.name,\n short_name: row.short_name,\n type: row.type,\n pid: row.pid,\n set_up_date: row.set_up_date,\n status: row.status,\n id: row.id\n };\n this.orgainIndex = row.type;\n this.editId = row.id;\n },\n editForms: function editForms(formName) {\n var _this3 = this;\n\n this.editOrganize = true;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n console.log(_this3.createForm, \"crea6\");\n\n _this3.editOrganization();\n\n _this3.editOrganize = false;\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n },\n editOrganization: function editOrganization() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n var data;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n data = _this4.editForm;\n _context3.next = 3;\n return (0, _index.editOrganization)(data).then(function (res) {\n console.log(res, \"编辑列表\");\n\n if (res.code === 200) {\n _this4.$message({\n message: \"编辑成功\",\n type: \"success\"\n });\n\n _this4.organizationsList();\n } else {\n _this4.$message.error(\"编辑失败请重试\");\n }\n }).catch(function (err) {\n console.log(err, \"\");\n _this4.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n //删除列表\n deleteList: function deleteList(data) {\n var _this5 = this;\n\n this.$confirm(\"此操作将删除此项模板, 是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this5.deleteOrganize(data);\n }).catch(function () {\n _this5.$message({\n type: \"info\",\n message: \"已取消删除\"\n });\n });\n },\n deleteOrganize: function deleteOrganize(data) {\n var _this6 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n console.log(data, \"daatata\");\n _context4.next = 3;\n return (0, _index.deleteOrganization)(data).then(function (res) {\n if (!res.code) {\n _this6.$message({\n type: \"success\",\n message: \"删除成功!\"\n });\n\n _this6.organizationsList();\n } else {\n _this6.$message({\n type: \"error\",\n message: \"删除失败!\"\n });\n }\n });\n\n case 3:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n },\n submitForm: function submitForm(formName) {\n var _this7 = this;\n\n console.log(this.createForm.type, \"创建测试\");\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n _this7.buildOrganize();\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n },\n buildOrganize: function buildOrganize() {\n var _this8 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee5() {\n var data;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _this8.loadingFull = true;\n data = _this8.createForm;\n _context5.next = 4;\n return (0, _index.buildOrganizations)(data).then(function (res) {\n console.log(res, \"chuangjianceshi\");\n _this8.dialogVisible = false;\n\n _this8.organizationsList();\n\n _this8.loadingFull = false;\n\n _this8.$message({\n type: \"success\",\n message: \"创建成功!\"\n }); // this.$store.dispatch(\"tagsView/delView\", this.$route);\n // 返回上一步路由\n //this.$router.go(-1);\n //this.$refs[formName].resetFields();\n\n }).catch(function (err) {\n console.log(err, \"\");\n _this8.loadingFull = false;\n });\n\n case 4:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5);\n }))();\n },\n resetForm: function resetForm(formName) {\n this.editForm = {\n name: \"\",\n short_name: \"\",\n type: \"\",\n pid: \"\",\n set_up_date: \"\",\n status: \"\",\n id: \"\"\n };\n this.createForm = {\n name: \"\",\n short_name: \"\",\n type: 5,\n pid: 0,\n set_up_date: \"\",\n status: 1,\n record: {\n zb_sj: \"\",\n zb_wy: \"\",\n zb_xcwy: \"\",\n zb_qtry: [{\n name: \"\",\n job: \"\"\n }],\n zb_fsj: \"\",\n zb_qnwy: \"\",\n zb_rq: 1,\n zb_hj_date: \"\"\n }\n };\n },\n //切换页码\n handleCurrentChange: function handleCurrentChange(e) {\n this.searchParams.page = e;\n this.organizationsList();\n },\n //切换每页显示数量\n handleSizeChange: function handleSizeChange(e) {\n this.searchParams.limit = e;\n this.organizationsList();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/organization/list.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/organization/list_details.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/organization/list_details.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/organizationDetail/index */ \"./src/api/organizationDetail/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n id: \"\",\n detail: {},\n check: false,\n fullscreenLoading: false,\n organization_id: \"\"\n };\n },\n created: function created() {\n console.log(\"idididii\");\n var route = this.$route;\n this.id = route.query.id;\n this.organization_id = route.query.organization_id;\n console.log(route.query.id, \"idididii\"); // this.courseId = route.query.id\n\n this.fullscreenLoading = true;\n this.getDetail();\n },\n methods: {\n getDetail: function getDetail() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$recordDetails, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _index.recordDetails)(_this.id);\n\n case 2:\n _yield$recordDetails = _context.sent;\n data = _yield$recordDetails.data;\n _this.fullscreenLoading = false;\n console.log(data, \"公告详情\");\n _this.detail = data;\n console.log(_this.detail, \"detail\");\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n // 返回上一页\n goBack: function goBack() {\n var skip_type = this.$route.query.skip_type;\n\n if (skip_type == 1) {\n this.$router.push({\n path: \"/kaoping/index\"\n });\n } else {\n this.$router.push({\n path: \"/organization/detail\",\n query: {\n id: this.organization_id\n }\n });\n }\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/organization/list_details.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/personnel/components/FileEdit.vue?vue&type=script&lang=js&": /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/personnel/components/FileEdit.vue?vue&type=script&lang=js& ***! \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// import { translateTitle } from '@/utils/i18n'\nvar _default = {\n name: \"DepartmentManagementEdit\",\n data: function data() {\n return {\n form: {\n resource_ids: [],\n resource_type: 0,\n sort: 0,\n status: 1\n },\n title: \"\",\n //标题\n flowList: [],\n //党员发展流程列表\n fileData: {\n file_type: \"img\"\n },\n fileList: [],\n //上传文件列表\n file: \"\",\n defaultProps: {\n children: \"child\",\n label: \"name\"\n },\n resourceIds: [],\n rules: [],\n dialogFormVisible: false,\n type: \"\"\n };\n },\n created: function created() {\n this.getFlow();\n console.log(this.form.resource_ids, \"YYYYY\");\n },\n methods: {\n //获取党员发展流程\n getFlow: function getFlow() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var data;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _index.processFlow)({\n type: 1\n });\n\n case 2:\n data = _context.sent;\n console.log(data, \"oooooooooooooo\");\n _this.flowList = data;\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n showEdit: function showEdit(data, type) {\n this.type = type;\n\n if (type == 0) {\n this.form = data;\n console.log(data, \"pppp\");\n this.title = \"编辑\";\n } else {\n this.title = \"添加\";\n this.form.staff_id = data.staff_id;\n this.form.organization_id = data.organization_id;\n console.log(data, \"pppp\");\n }\n\n this.dialogFormVisible = true;\n },\n changeFlow: function changeFlow() {\n console.log(this.form.key);\n },\n //图片上传成功\n //上传图片\n uploadSuccess: function uploadSuccess(response, file, fileList) {\n if (response.code == 200) {\n this.file = response.data.url;\n this.resourceIds.push(response.data.id);\n this.form.resource_ids = this.resourceIds;\n this.form.body = response.data.url;\n }\n\n console.log(this.form.resource_ids, \"YYYYY\");\n },\n //移除已上传的文件\n handleRemove: function handleRemove(file, fileList) {\n var _this2 = this;\n\n console.log(file, this.fileList);\n fileList.map(function (item) {\n var id = item.response.data.id;\n\n _this2.form.resource_ids.push(id);\n\n _this2.resourceIds.push(item.response.data.id);\n });\n },\n //点击保存\n save: function save() {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return (0, _index.putArchives)(_this3.form).then(function (res) {\n _this3.$message.success(\"编辑成功\");\n\n _this3.dialogFormVisible = false;\n\n _this3.$emit(\"fetch-data\");\n });\n\n case 2:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n add: function add() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return (0, _index.uploadDocument)(_this4.form).then(function (res) {\n console.log(res, \"shangchuan \");\n\n _this4.$message.success(\"上传成功\");\n\n _this4.dialogFormVisible = false;\n\n _this4.$emit(\"fetch-data\");\n\n _this4.$refs[form].resetFields();\n });\n\n case 2:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n close: function close() {\n this.$refs[\"form\"].resetFields();\n this.form = this.$options.data().form;\n this.dialogFormVisible = false;\n this.fileList = [];\n this.resourceIds = [];\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/personnel/components/FileEdit.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/personnel/file_list.vue?vue&type=script&lang=js&": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/personnel/file_list.vue?vue&type=script&lang=js& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/personnel/index */ \"./src/api/personnel/index.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\nvar _FileEdit = _interopRequireDefault(__webpack_require__(/*! ./components/FileEdit */ \"./src/views/personnel/components/FileEdit.vue\"));\n\n__webpack_require__(/*! jquery */ \"./node_modules/_jquery@3.6.1@jquery/dist/jquery.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n components: {\n FileEdit: _FileEdit.default\n },\n data: function data() {\n return {\n filList: [],\n loadingFull: false,\n dialogVisible: false,\n searchParams: {\n name: \"\",\n //上传人员\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n },\n //搜索框数据\n totalPage: 0,\n //总页码\n detailList: [],\n staffId: \"\",\n steps: \"\",\n bigImage: \"\",\n imgDetaildialogVisible: false\n };\n },\n created: function created() {\n this.staffId = this.$route.query.staff_id;\n console.log(this.$route.query, \"staffyyyyyyyyyyy\");\n this.searchParams.staff_id = this.staffId;\n this.archivesList();\n this.selectSteps();\n },\n methods: {\n editFile: function editFile(row) {\n if (row.id) {\n var data = row;\n this.$refs[\"edit\"].showEdit(data, 0);\n } else {\n var _data = {\n staff_id: this.$route.query.staff_id,\n organization_id: this.$route.query.organization_id\n };\n this.$refs[\"edit\"].showEdit(_data, 1);\n }\n },\n //关闭大图\n closeBigImg: function closeBigImg() {\n this.imgDetaildialogVisible = false;\n },\n //查看大图\n imageDetail: function imageDetail(item) {\n this.imgDetaildialogVisible = true;\n this.bigImage = item;\n },\n //获取资源步骤\n selectSteps: function selectSteps() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var params;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n params = {\n type: 1\n };\n _context.next = 3;\n return (0, _index.selectSteps)(params).then(function (res) {\n _this.steps = res;\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //资源详情列表\n archivesList: function archivesList() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.loadingFull = true;\n _context2.next = 3;\n return (0, _index.archivesList)(_this2.searchParams).then(function (res) {\n console.log(res);\n _this2.filList = res.data.data;\n _this2.totalPage = res.data.meta.pagination.total;\n _this2.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //查看详情\n lookDetail: function lookDetail(row) {\n this.dialogVisible = true;\n this.detailList = row;\n },\n //打包下载\n packDownload: function packDownload() {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n var url, a;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n url = _this3.base_url + \"/archives/staff/package?staff_id=\" + _this3.staffId;\n a = document.createElement(\"a\");\n a.style.display = \"none\";\n console.log(_this3.staffId, \"--------------\");\n a.href = url;\n document.body.appendChild(a); // let triggerDownload = $(a).attr(\"href\", url)\n // .attr(\"download\", \"人员名单\");\n // triggerDownload[0].click();\n\n a.click();\n document.body.removeChild(a);\n\n case 8:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n //搜索\n searchFile: function searchFile() {\n // this.searchParams.staff_id = this.staffId;\n //搜索框数据\n console.log(this.searchParams, \"上传\");\n this.archivesList();\n },\n //切换页码\n handleSizeChange: function handleSizeChange(e) {\n console.log(e, \"切换页码\");\n this.searchParams.limit = e;\n var data = this.searchParams;\n this.archivesList(data);\n },\n //切换每页显示数量\n handleCurrentChange: function handleCurrentChange(e) {\n console.log(e, \"当前页码\");\n this.searchParams.page = e;\n var data = this.searchParams;\n this.archivesList(data);\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/personnel/file_list.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/personnel/index.vue?vue&type=script&lang=js&": /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/personnel/index.vue?vue&type=script&lang=js& ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.slice.js\");\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/web.dom-collections.for-each.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.concat.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.exec.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.match.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.match.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.iterator.js\");\n\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/web.dom-collections.iterator.js\");\n\n__webpack_require__(/*! core-js/modules/web.url.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/web.url.js\");\n\n__webpack_require__(/*! core-js/modules/web.url-search-params.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/web.url-search-params.js\");\n\nvar _typeof2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/typeof.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/typeof.js\"));\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = _interopRequireDefault(__webpack_require__(/*! @/components/UploadExcel/index.vue */ \"./src/components/UploadExcel/index.vue\"));\n\nvar _index2 = __webpack_require__(/*! @/api/personnel/index */ \"./src/api/personnel/index.js\");\n\nvar _index3 = __webpack_require__(/*! @/api/organizationList/index */ \"./src/api/organizationList/index.js\");\n\nvar _auth = __webpack_require__(/*! @/utils/auth */ \"./src/utils/auth.js\");\n\n__webpack_require__(/*! jquery */ \"./node_modules/_jquery@3.6.1@jquery/dist/jquery.js\");\n\nvar _store = _interopRequireDefault(__webpack_require__(/*! @/store */ \"./src/store/index.js\"));\n\nvar _timers = __webpack_require__(/*! timers */ \"./node_modules/_timers-browserify@2.0.12@timers-browserify/main.js\");\n\nvar _axios = _interopRequireDefault(__webpack_require__(/*! axios */ \"./node_modules/_axios@0.18.1@axios/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar token = (0, _auth.getToken)();\nvar cityOptions = [\"姓名\", \"院系班级/部门\", \"学号(学生填)\", \"身份证号\", \"入学日期\", \"籍贯(XX省XX县)\", \"户口所在地派出所\", \"家庭地址\", \"邮政编码\", \"申请入党日期\", \"列为积极分子日期\", \"列为发展对象日期\", \"列为预备党员日期\", \"列为正式党员日期\", \"党课结业日期\", \"所属支部\", \"出生日期(请填写到年月日)\", \"性别\", \"民族\", \"联系电话\", \"政治面貌\"];\nvar _default = {\n components: {\n UploadExcelComponent: _index.default\n },\n data: function data() {\n return {\n checkAll: true,\n checkedCities: [],\n cities: cityOptions,\n fieldSelect: [],\n //选择列\n command: \"\",\n //导出类型\n isIndeterminate: true,\n loadingFull: true,\n dialogVisible: false,\n resetPasswordVisible: false,\n importVisible: false,\n resetPoliticsVisible: false,\n partyShow: false,\n importFieldsVisible: false,\n // 选择需要导出的字段\n classList: \"\",\n resetPassword: {\n staff_id: \"\",\n password: \"\"\n },\n //重置密码\n fileList: [],\n //上传文件列表\n fileName: \"\",\n //文件名称\n importHeader: \"\",\n searchParams: {\n true_name: \"\",\n no: \"\",\n class: \"\",\n is_graduate: 0,\n politics_status: \"\",\n organization_id: \"\",\n //组织id\n is_rdsqs: \"\",\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n },\n //搜索框数据\n rdsqs_list: [{\n value: 0,\n label: \"未上传入党申请书\"\n }, {\n value: 1,\n label: \"已上传入党申请书\"\n }],\n politics: {\n ids: [],\n politics_status: \"\"\n },\n politics_status: [{\n id: \"\",\n name: \"\"\n }],\n politicsIndex: \"\",\n //选中身份索引\n totalPage: 0,\n //总页码\n tableList: [],\n //人员列表\n personnelDetails: {\n organization: {\n name: \"\"\n }\n },\n //人员详情\n nationList: [],\n //民族liebiao\n sex: [{\n value: 1,\n label: \"男\"\n }, {\n value: 2,\n label: \"女\"\n }],\n nation: [],\n //政治面貌\n treeList: [{\n id: 0,\n name: \"全部\"\n }],\n //支部列表\n //导入文档标题\n tableData: [],\n tableHeader: [],\n selection: [],\n idList: [],\n //选中项id\n graduate: [{\n value: 1,\n label: \"已归档\"\n }, {\n value: 0,\n label: \"未归档\"\n }],\n modelUrl: \"http://api.party.site.ximengnaikang.com/学生导入模板.xlsx\",\n partyArr: []\n };\n },\n created: function created() {\n var _this = this;\n\n var route = this.$route.query;\n this.searchParams.politics_status = route.politics_status;\n this.searchParams.organization_id = route.organization_id;\n this.searchParams.is_rdsqs = route.is_rdsqs;\n this.searchParams.sex = route.sex;\n this.getNationList();\n this.getTreeLists(); //获取班级列表\n\n (0, _index3.classLists)().then(function (res) {\n _this.classList = res;\n });\n console.log(token, \"token\");\n this.importHeader = {\n Authorization: \"Bearer \" + token\n };\n this.politics_status = [{\n id: 0,\n name: \"未知\"\n }, {\n id: 3,\n name: \"积极分子\"\n }, {\n id: 4,\n name: \"中共预备党员\"\n }, {\n id: 5,\n name: \"中共党员\"\n }, {\n id: 6,\n name: \"发展对象\"\n }];\n },\n methods: {\n //获取枚举类型\n getNationList: function getNationList() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$_getNationList, data, nation;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _index2.getNationList)();\n\n case 2:\n _yield$_getNationList = _context.sent;\n data = _yield$_getNationList.data;\n _this2.nationList = data[\"App\\\\Repositories\\\\Enums\\\\NationEnum\"];\n nation = _this2.$route.query.nation;\n\n if (nation) {\n _this2.nationList.map(function (item, index) {\n if (item.slice(0, 2) == nation) _this2.searchParams.nation = index;\n });\n }\n\n console.log(_this2.nationList, \"枚举类型\");\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //监测空对象\n testEmpty: function testEmpty(value) {\n if (value) {\n return value;\n } else {\n return \"--\";\n }\n },\n ceshi: function ceshi(e) {\n console.log(this.searchParams.is_graduate, \"ceshi\");\n },\n cancelSelectField: function cancelSelectField() {\n this.fieldSelect = [];\n this.importFieldsVisible = false;\n },\n sureSelectField: function sureSelectField() {\n if (this.fieldSelect.length == 0) {\n this.$message.error(\"请选择需要导出的字段\");\n } else {\n if (this.command == 0) {\n //导出全部\n var url = this.base_url + \"/staffs/export\";\n this.download();\n this.loadingFull = false;\n } else if (this.command == 2) {\n //到出选择项\n var arr = [];\n var selection = this.selection;\n selection.forEach(function (item) {\n item.id;\n arr.push(item.id);\n return arr;\n });\n\n var _url = this.base_url + \"/staffs/export?ids=\" + arr;\n\n this.download(arr);\n this.loadingFull = false;\n } else {\n //导出当前页\n var _arr = [];\n var _selection = this.tableList;\n\n _selection.forEach(function (item) {\n item.id;\n\n _arr.push(item.id);\n\n console.log(_arr);\n return _arr;\n }); // let url = this.base_url + \"/staffs/export?ids=\" + arr;\n\n\n this.download(_arr);\n this.loadingFull = false;\n }\n\n this.importFieldsVisible = false;\n }\n },\n handleCheckAllChange: function handleCheckAllChange(val) {\n this.checkedCities = val ? this.cities : [];\n this.isIndeterminate = false;\n\n if (this.checkedCities.length > 0) {\n var arr = [];\n this.cities.map(function (item, index) {\n arr.push(index + 1);\n });\n this.fieldSelect = arr;\n } else {\n this.fieldSelect = [];\n }\n },\n handleCheckedCitiesChange: function handleCheckedCitiesChange(value) {\n var _this3 = this;\n\n console.log(value, \"----------------\");\n var arr = [];\n value.map(function (item) {\n var index = _this3.cities.indexOf(item) + 1;\n arr.push(index);\n console.log(index, \"++++++++++++K++++++++++++++\");\n });\n this.fieldSelect = arr;\n var checkedCount = value.length;\n this.checkAll = checkedCount === this.cities.length;\n this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length;\n },\n changeFile: function changeFile(file) {\n console.log(file, \"changefile\");\n },\n //获取单个人员资料列表\n getFileList: function getFileList(row) {\n this.$router.push({\n name: \"filelist\",\n query: {\n staff_id: row.id,\n organization_id: row.organization_id\n }\n });\n },\n //获取组织树状列表\n getTreeLists: function getTreeLists() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this4.loadingFull = true;\n _context2.next = 3;\n return (0, _index2.treeOrganizationList)().then(function (res) {\n _this4.treeList = _this4.treeList.concat(res.data);\n _this4.partyArr = res.data;\n console.log(res, \"获取组织树状列表\");\n\n _this4.personnelList();\n });\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //获取人员列表\n personnelList: function personnelList() {\n var _this5 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _this5.loadingFull = true;\n\n if (_this5.searchParams.organization_id == 0) {\n _this5.searchParams.organization_id = \"\";\n }\n\n _context3.next = 4;\n return (0, _index2.personnelList)(_this5.searchParams).then(function (res) {\n console.log(res, \"获取人员列表\");\n _this5.tableList = res.data.data;\n _this5.totalPage = res.data.meta.pagination.total;\n _this5.loadingFull = false;\n });\n\n case 4:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n //人员搜索\n personnelSearch: function personnelSearch() {\n this.searchParams.page = 1;\n this.personnelList();\n },\n //选中政治面貌\n resetChangePolics: function resetChangePolics(e) {\n var _this6 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _context4.next = 2;\n return (0, _index2.batchPolitics)(_this6.politics).then(function (res) {\n console.log(res, \"piliangxiiugai \");\n\n _this6.$message.success(\"批量修改成功\");\n\n _this6.resetPoliticsVisible = false;\n\n _this6.personnelList();\n }).catch(function (err) {});\n\n case 2:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n },\n //选中党组织\n resetParty: function resetParty() {\n var _this7 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee5() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _context5.next = 2;\n return (0, _index2.batchParty)(_this7.politics).then(function (res) {\n console.log(res, \"piliangxiiugai \");\n\n _this7.$message.success(\"批量修改成功\");\n\n _this7.partyShow = false;\n\n _this7.personnelList();\n }).catch(function (err) {});\n\n case 2:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5);\n }))();\n },\n //批量修改政治面貌\n batchRevise: function batchRevise() {\n if (this.selection.length == 0) {\n this.$message.error(\"请先选择需要修改的人员\");\n } else {\n this.resetPoliticsVisible = true;\n console.log(this.selection, \"selection\");\n var arr = [];\n var selection = this.selection;\n selection.forEach(function (item) {\n item.id;\n arr.push(item.id);\n return arr;\n });\n this.politics.ids = arr;\n console.log(arr, \"arr456\");\n }\n },\n //修改党组织\n partyOrganization: function partyOrganization() {\n if (this.selection.length == 0) {\n this.$message.error(\"请先选择需要修改的人员\");\n } else {\n this.partyShow = true;\n console.log(this.partyArr, \"selection\");\n var arr = [];\n var selection = this.selection;\n selection.forEach(function (item) {\n item.id;\n arr.push(item.id);\n return arr;\n });\n this.politics.ids = arr;\n console.log(arr, \"arr456\");\n }\n },\n //批量归档\n placeOnfile: function placeOnfile() {\n var _this8 = this;\n\n if (this.selection.length == 0) {\n this.$message.error(\"请先选择需要归档的人员\");\n } else {\n console.log(this.selection, \"selection\");\n var arr = [];\n var selection = this.selection;\n selection.forEach(function (item) {\n item.id;\n arr.push(item.id);\n return arr;\n });\n var ids = arr;\n var date = {\n ids: arr,\n is_graduate: 1\n };\n this.$confirm(\"此操作将选中人员移入历史党员档案, 是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this8.fileGuidang(date);\n }).catch(function () {\n _this8.$message({\n type: \"info\",\n message: \"已取消删除\"\n });\n\n _this8.selection = [];\n });\n }\n },\n fileGuidang: function fileGuidang(date) {\n var _this9 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee6() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee6$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n _context6.next = 2;\n return (0, _index2.fileGuidang)(date).then(function (res) {\n _this9.personnelList();\n });\n\n case 2:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee6);\n }))();\n },\n //选择excel表格\n handleChange: function handleChange(file, fileList) {\n console.log(file, \"file\");\n this.fileName = file.name;\n console.log((0, _typeof2.default)(fileList), \"fileList\");\n },\n //导入\n importExcel: function importExcel(file) {\n this.loadingFull = true;\n var that = this;\n this.fileList = []; //this.$refs.upload.submit();\n\n console.log(file, \"filr\");\n this.importVisible = false;\n (0, _timers.setTimeout)(function () {\n that.personnelList();\n this.loadingFull = false;\n }, 1000);\n },\n selectionChange: function selectionChange(selection) {\n console.log(selection, \"selection\");\n this.selection = selection;\n },\n download: function download(arr) {\n var _this10 = this;\n\n console.log(arr, \"test\");\n (0, _axios.default)({\n baseURL: this.base_url,\n // url = base url + request url\n timeout: 5000,\n // request timeout\n method: \"get\",\n url: \"/staffs/export\",\n headers: {\n Authorization: \"Bearer \" + (0, _auth.getToken)()\n },\n params: {\n ids: arr,\n fields: this.fieldSelect,\n politics_status: this.searchParams.politics_status,\n organization_id: this.searchParams.organization_id\n },\n responseType: \"blob\"\n }).then(function (response) {\n _this10.convertRes2Blob(response);\n });\n },\n convertRes2Blob: function convertRes2Blob(response) {\n // 提取文件名\n var fileNameList = response.headers[\"content-disposition\"].match(/filename=(.*)(.*)/);\n console.log(fileNameList, \"Mead\");\n var fileName = fileNameList[1]; // 将二进制流转为blob\n\n var blob = new Blob([response.data], {\n type: \"application/vnd.ms-excel\"\n });\n\n if (typeof window.navigator.msSaveBlob !== \"undefined\") {\n // 兼容IE,window.navigator.msSaveBlob:以本地方式保存文件\n window.navigator.msSaveBlob(blob, decodeURI(fileName));\n } else {\n // 创建新的URL并指向File对象或者Blob对象的地址\n var blobURL = window.URL.createObjectURL(blob); // 创建a标签,用于跳转至下载链接\n\n var tempLink = document.createElement(\"a\");\n tempLink.style.display = \"none\";\n tempLink.href = blobURL;\n tempLink.setAttribute(\"download\", decodeURI(fileName)); // 兼容:某些浏览器不支持HTML5的download属性\n\n if (typeof tempLink.download === \"undefined\") {\n tempLink.setAttribute(\"target\", \"_blank\");\n } // 挂载a标签\n\n\n document.body.appendChild(tempLink);\n tempLink.click();\n document.body.removeChild(tempLink); // 释放blob URL地址\n\n window.URL.revokeObjectURL(blobURL);\n }\n },\n //导出类型\n handleCommand: function handleCommand(command) {\n //this.loadingFull = true;\n this.importFieldsVisible = true;\n this.command = command;\n },\n //导出\n exportPersonnel: function exportPersonnel(params) {\n var _this11 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee7() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee7$(_context7) {\n while (1) {\n switch (_context7.prev = _context7.next) {\n case 0:\n _context7.next = 2;\n return (0, _index2.exportPersonnel)(params).then(function (res) {}).catch(function (e) {\n _this11.loadingFull = false;\n });\n\n case 2:\n case \"end\":\n return _context7.stop();\n }\n }\n }, _callee7);\n }))();\n },\n //取消导入\n cancelImport: function cancelImport() {\n this.importVisible = false;\n this.fileList = [];\n },\n //添加人员\n addPersonnel: function addPersonnel() {\n this.$router.push({\n name: \"operation\"\n });\n },\n //点击切换组织\n clickChange: function clickChange(e) {\n this.searchParams = {\n true_name: \"\",\n no: \"\",\n class: \"\",\n is_graduate: 0,\n politics_status: \"\",\n organization_id: \"\",\n //组织id\n is_rdsqs: \"\",\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n }; //搜索框数据\n\n this.searchParams.is_graduate = 0;\n this.searchParams.organization_id = e.id;\n this.personnelList();\n },\n //查看详情\n getDetail: function getDetail(id) {\n var params = {\n id: id\n };\n this.personnelDetail(params);\n },\n personnelDetail: function personnelDetail(params) {\n var _this12 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee8() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee8$(_context8) {\n while (1) {\n switch (_context8.prev = _context8.next) {\n case 0:\n _this12.loadingFull = true;\n _context8.next = 3;\n return (0, _index2.personnelDetail)(params).then(function (res) {\n console.log(res, \"人员详情\");\n _this12.personnelDetails = res.data;\n _this12.dialogVisible = true;\n _this12.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context8.stop();\n }\n }\n }, _callee8);\n }))();\n },\n //编辑\n editList: function editList(id) {\n this.$router.push({\n name: \"operation\",\n query: {\n id: id\n }\n });\n },\n //删除\n deletePersonnel: function deletePersonnel(id) {\n var _this13 = this;\n\n this.$confirm(\"此操作将永久删除该人员信息, 是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this13.deletePersonnelList(id);\n }).catch(function () {\n _this13.$message({\n type: \"info\",\n message: \"已取消删除\"\n });\n });\n },\n deletePersonnelList: function deletePersonnelList(id) {\n var _this14 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee9() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee9$(_context9) {\n while (1) {\n switch (_context9.prev = _context9.next) {\n case 0:\n _context9.next = 2;\n return (0, _index2.deletePersonnelList)(id).then(function (res) {\n if (!res.code) {\n _this14.$message({\n type: \"success\",\n message: \"删除成功\"\n });\n\n _this14.personnelList();\n } else {\n _this14.$message({\n type: \"error\",\n message: \"删除失败\"\n });\n }\n });\n\n case 2:\n case \"end\":\n return _context9.stop();\n }\n }\n }, _callee9);\n }))();\n },\n //重置密码\n sureReset: function sureReset(id) {\n console.log(id);\n this.resetPassword.staff_id = id;\n this.resetPasswordVisible = true;\n },\n resetPwd: function resetPwd() {\n var _this15 = this;\n\n this.loadingFull = true;\n (0, _index2.remarkPwd)(this.resetPassword).then(function (res) {\n _this15.$message.success(\"重置密码成功\");\n\n _this15.resetPasswordVisible = false;\n _this15.loadingFull = false;\n }).catch(function (err) {\n _this15.$message.error(\"重置密码失败\");\n\n _this15.loadingFull = false;\n });\n },\n //切换每页显示数量\n handleSizeChange: function handleSizeChange(e) {\n console.log(e, \"切换页码\");\n this.searchParams.limit = e;\n this.personnelList();\n },\n //切换页码\n handleCurrentChange: function handleCurrentChange(e) {\n this.searchParams.page = e;\n this.personnelList();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/personnel/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/personnel/operation.vue?vue&type=script&lang=js&": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/personnel/operation.vue?vue&type=script&lang=js& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.number.constructor.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _typeof2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/typeof.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/typeof.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/personnel/index */ \"./src/api/personnel/index.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/organizationList/index */ \"./src/api/organizationList/index.js\");\n\nvar _elementUi = __webpack_require__(/*! element-ui */ \"./node_modules/_element-ui@2.13.2@element-ui/lib/element-ui.common.js\");\n\nvar _timers = __webpack_require__(/*! timers */ \"./node_modules/_timers-browserify@2.0.12@timers-browserify/main.js\");\n\nvar _process = __webpack_require__(/*! process */ \"./node_modules/_node-libs-browser@2.2.1@node-libs-browser/mock/process.js\");\n\nvar _export = __webpack_require__(/*! echarts/lib/export */ \"./node_modules/_echarts@4.9.0@echarts/lib/export.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n dialogVisible: false,\n disabled: false,\n dialogImageUrl: \"\",\n type: \"\",\n //类型0为创建页面,1为编辑页面\n loadingFull: false,\n loading: false,\n treeList: [{\n pid: 0,\n id: 0,\n name: \"未选择\"\n }],\n //支部列表\n classList: [],\n //班级列表\n editForm: {\n name: \"\",\n region: \"\",\n date1: \"\",\n date2: \"\",\n delivery: false,\n type: [],\n resource: \"\",\n desc: \"\",\n class: [],\n organization_id: 0,\n politics_status: 0\n },\n value: [],\n options: [{\n value: \"zhinan\",\n label: \"指南\",\n children: [{\n value: \"shejiyuanze\",\n label: \"设计原则\"\n }]\n }],\n politicsStatus: [{\n id: 0,\n name: \"未选择\"\n }],\n politicsIndex: \"\",\n //选中身份索引\n sex: [{\n value: 1,\n label: \"男\"\n }, {\n value: 2,\n label: \"女\"\n }],\n nation: [{\n value: 1,\n label: \"汉族\"\n }, {\n value: 3,\n label: \"回族\"\n }],\n //表格非空验证规则\n rules: {\n true_name: [{\n required: true,\n message: \"请输入姓名\",\n trigger: \"blur\"\n }],\n no: [{\n required: true,\n message: \"请输入学号\",\n trigger: \"blur\"\n }],\n enrol_date: [{\n required: true,\n message: \"请选择入学日期\",\n trigger: \"change\"\n }],\n birthday: [{\n required: true,\n message: \"请选择出生日期\",\n trigger: \"change\"\n }],\n sex: [{\n required: true,\n message: \"请选择性别\",\n trigger: \"change\"\n }],\n nation: [{\n required: true,\n message: \"请选择民族\",\n trigger: \"change\"\n }],\n mobile: [{\n required: true,\n message: \"请输入手机号\",\n trigger: \"blur\"\n }],\n politics_status: [{\n required: true,\n message: \"请选择政治面貌\",\n trigger: \"change\"\n }],\n id_card: [{\n required: true,\n message: \"请填写身份证号\",\n trigger: \"blur\"\n }],\n class: [{\n required: true,\n message: \"请填写院系班级/部门\",\n trigger: \"blur\"\n }],\n native_place: [{\n required: true,\n message: \"请选择籍贯\",\n trigger: \"change\"\n }],\n address: [{\n required: true,\n message: \"请填写家庭住址\",\n trigger: \"blur\"\n }],\n local_police_station: [{\n required: true,\n message: \"请填写户口所在地派出所\",\n trigger: \"blur\"\n }],\n organization_id: [{\n required: true,\n message: \"请选择支部\",\n trigger: \"blur\"\n }]\n },\n personnelId: \"\",\n //编辑人员id\n personnelDetails: \"\",\n //人员详情\n nationList: [],\n //民族列表\n nationIndex: \"\" //民族索引\n\n };\n },\n created: function created() {\n var _this = this;\n\n var that = this; //获取班级列表\n\n (0, _index2.classLists)().then(function (res) {\n _this.classList = res;\n });\n var id = this.$route.query.id;\n\n if (id) {\n var params = {\n id: id\n };\n this.personnelDetail(params);\n this.type = 1;\n } else {\n this.type = 0;\n } //获取父级组织列表\n\n\n (0, _index2.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n that.treeList = res.data;\n });\n this.politicsStatus = [{\n id: 0,\n name: \"未知\"\n }, {\n id: 3,\n name: \"积极分子\"\n }, {\n id: 4,\n name: \"中共预备党员\"\n }, {\n id: 5,\n name: \"中共党员\"\n }, {\n id: 6,\n name: \"发展对象\"\n }];\n this.getNationList();\n },\n methods: {\n //详情\n personnelDetail: function personnelDetail(params) {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this2.loadingFull = true;\n _context.next = 3;\n return (0, _index.personnelDetail)(params).then(function (res) {\n console.log(res, \"人员详情\");\n _this2.editForm = res.data;\n _this2.nationIndex = res.data.nation;\n console.log((0, _typeof2.default)(res.data.organization_id));\n _this2.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n getNationList: function getNationList() {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var allStatus;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n // await getNationList().then(res => {\n // console.log(res, \"民族详情\");\n allStatus = JSON.parse(sessionStorage.getItem(\"status\"));\n console.log(allStatus, \"民族详情1111\");\n _this3.nationList = allStatus[\"App\\\\Repositories\\\\Enums\\\\NationEnum\"];\n console.log(_this3.nationList, \"民族详情\"); // }); \n\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //修改人员信息\n editPersonnel: function editPersonnel() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n var data;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n data = _this4.editForm;\n _context3.next = 3;\n return (0, _index.editPersonnel)(data).then(function (res) {\n console.log(res, \"修改信息\");\n\n _this4.$message({\n type: \"success\",\n message: \"修改成功\"\n });\n\n _this4.$store.dispatch(\"tagsView/delView\", _this4.$route); // 返回上一步路由\n\n\n _this4.$router.go(-1); //this.$refs[formName].resetFields();\n\n }).catch(function (err) {\n console.log(err, \"\");\n _this4.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n ceshiBT: function ceshiBT() {\n this.addPersonnel();\n },\n //创建人员信息\n addPersonnel: function addPersonnel() {\n var _this5 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _context4.next = 2;\n return (0, _index.addPersonnel)(_this5.editForm).then(function (res) {\n console.log(res, \"ppppp\");\n\n _this5.$message.success(\"操作成功\");\n\n _this5.$store.dispatch(\"tagsView/delView\", _this5.$route); // 返回上一步路由\n\n\n _this5.$router.go(-1); //this.$refs[formName].resetFields();\n\n }).catch(function (res) {\n console.log(res, \"ppp\");\n _this5.loadingFull = false;\n });\n\n case 2:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n },\n submitForm: function submitForm(formName) {\n var _this6 = this;\n\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n console.log(_this6.editForm, \"baocun\");\n\n if (_this6.type == 0) {\n _this6.addPersonnel();\n } else if (_this6.type == 1) {\n _this6.editPersonnel();\n }\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n },\n resetForm: function resetForm(formName) {\n this.$refs[formName].resetFields();\n },\n //远程搜索\n remoteMethod: function remoteMethod() {},\n //选中的值\n changeSelect: function changeSelect(select) {\n console.log(select, \"xuanzhongdezhi \");\n },\n //选中身份\n changePolitics: function changePolitics(e) {\n this.politicsIndex = e;\n this.editForm.politics_status = e;\n },\n //选中民族\n changeNation: function changeNation(e) {\n this.nationIndex = Number(e);\n this.editForm.nation = e;\n },\n channelCreate: function channelCreate(val) {\n this.channel = val;\n this.channellist.push(this.classList);\n },\n keyDownEvent: function keyDownEvent() {},\n remoteZb: function remoteZb() {},\n handleChange: function handleChange(e) {\n console.log(e, \"籍贯\");\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/personnel/operation.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/process/activist.vue?vue&type=script&lang=js&": /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/process/activist.vue?vue&type=script&lang=js& ***! \****************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.json.stringify.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.json.stringify.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _Flow = _interopRequireDefault(__webpack_require__(/*! ./components/Flow */ \"./src/views/process/components/Flow/index.vue\"));\n\nvar _index = __webpack_require__(/*! @/api/organizationList/index */ \"./src/api/organizationList/index.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\nvar _timers = __webpack_require__(/*! timers */ \"./node_modules/_timers-browserify@2.0.12@timers-browserify/main.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar drawerType = {\n node: 0,\n link: 1\n};\nvar _default = {\n components: {\n Flow: _Flow.default\n },\n data: function data() {\n return {\n treeList: [],\n //支部列表\n drawerType: drawerType,\n dialogVisible: false,\n linkSetting: {\n desc: \"\"\n },\n organization_id: \"\",\n nodeSetting: {\n name: \"\",\n desc: \"\"\n },\n searchParams: {\n name: \"\",\n //支部名称\n zb_sj: \"\",\n //支部书记\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n },\n //搜索框数据\n origin: [681, 465],\n flowDate: \"\",\n nodeList: [],\n linkList: [],\n childDate: \"\"\n };\n },\n created: function created() {\n var _this = this;\n\n (0, _index2.processFlow)().then(function (res) {\n console.log(res.data[1].child, \"数据流程\");\n _this.flowDate = res.data[1].child;\n sessionStorage.setItem(\"flowDate\", JSON.stringify(res.data[1].child));\n }), (0, _index.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this.treeList = res.data;\n });\n },\n mounted: function mounted() {\n var _this2 = this;\n\n (0, _index2.processFlow)().then(function (res) {\n console.log(res.data[1].child, \"数据流程\");\n _this2.flowDate = res.data[1].child;\n }), (0, _index.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this2.treeList = res.data;\n });\n },\n methods: {\n getChildDate: function getChildDate(v) {\n console.log(v, \"子组件传递的数据\");\n this.$router.push({\n name: \"applylist\",\n query: {\n id: v.idx\n }\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/process/activist.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/process/application.vue?vue&type=script&lang=js&": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/process/application.vue?vue&type=script&lang=js& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("/* WEBPACK VAR INJECTION */(function($) {\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\nvar _index = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\nvar _timers = __webpack_require__(/*! timers */ \"./node_modules/_timers-browserify@2.0.12@timers-browserify/main.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/personnel/index */ \"./src/api/personnel/index.js\");\n\nvar _store = _interopRequireDefault(__webpack_require__(/*! @/store */ \"./src/store/index.js\"));\n\nvar _elementUi = __webpack_require__(/*! element-ui */ \"./node_modules/_element-ui@2.13.2@element-ui/lib/element-ui.common.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n fileData: {\n file_type: \"img\"\n },\n tips: \"\",\n nameList: [],\n //选中学生姓名列表\n fileList: [],\n //上传文件列表\n dialogTableVisible: false,\n file: \"\",\n resourceForm: {\n name: \"\",\n resource_type: 1,\n resource_ids: [],\n body: \"\",\n organization_id: \"\",\n key: \"\",\n user_id: \"\",\n staff_id: \"\"\n },\n tableList: [],\n //人员列表\n totalPage: 0,\n resourceIds: [],\n searchParams: {\n name: \"\",\n no: \"\",\n class: \"\",\n title: \"\",\n //上传人员\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n },\n //搜索框数据\n rules: {\n name: [{\n required: true,\n message: \"请输入文件名称\",\n trigger: \"blur\"\n }],\n key: [{\n required: true,\n message: \"流程类型\",\n trigger: \"blur\"\n }],\n body: [{\n required: true,\n message: \"请选择需要上传的文件\",\n trigger: \"click\"\n }],\n resource_ids: [{\n required: true,\n message: \"请选择人员\",\n trigger: \"change\"\n }]\n }\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n //console.log(store.getterrs,\"anme\")\n var id = this.$route.query.id;\n var selectedZb = JSON.parse(sessionStorage.getItem(\"selectedZb\"));\n this.resourceForm.organization_id = this.$route.query.id;\n this.resourceForm.name = selectedZb.name;\n this.resourceForm.key = selectedZb.key;\n this.user_id = _store.default.getters.id;\n this.staff_id = _store.default.getters.staff_id;\n console.log(JSON.parse(sessionStorage.getItem(\"selectedZb\")), \"anme\");\n var params = {\n key: selectedZb.key\n };\n (0, _index.fileTips)(params).then(function (res) {\n console.log(res.data.data[0], \"ceshi\");\n _this.tips = res.data.data[0];\n });\n },\n methods: {\n //获取人员列表\n personnelList: function personnelList(params) {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this2.loadingFull = true;\n _context.next = 3;\n return (0, _index2.personnelList)(params).then(function (res) {\n console.log(res, \"获取人员列表\");\n _this2.tableList = res.data.data;\n _this2.dialogTableVisible = true;\n _this2.totalPage = res.data.meta.pagination.total;\n _this2.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //图片放大图\n handlePictureCardPreview: function handlePictureCardPreview(file) {\n this.dialogImageUrl = file.url;\n this.dialogVisible = true;\n },\n //选择上传人员\n submitForm: function submitForm(formName) {\n this.personnelList();\n },\n //确定上传\n sureSend: function sureSend(formName) {\n var _this3 = this;\n\n var that = this;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n _this3.$refs.upload.submit();\n\n _this3.uploadFile();\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n },\n resetForm: function resetForm() {\n this.$store.dispatch(\"tagsView/delView\", this.$route); // 返回上一步路由\n\n this.$router.go(-1); //this.$refs[formName].resetFields();\n },\n //点击上传\n uploadFile: function uploadFile() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return (0, _index.uploadArchives)(_this4.resourceForm).then(function (res) {\n console.log(res, \"shangchuan \");\n\n _this4.$message.success(\"上传成功\");\n\n _this4.$router.push({\n name: \"applylist\",\n query: {}\n });\n });\n\n case 2:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //搜索上传人员\n searchFile: function searchFile() {\n this.personnelList(this.searchParams);\n },\n //上传图片\n uploadSuccess: function uploadSuccess(response, file, fileList) {\n if (response.code == 200) {\n this.file = response.data.url;\n this.resourceForm.resource_ids.push(response.data.id);\n this.resourceIds.push(response.data.id);\n this.resourceForm.body = response.data.url;\n }\n },\n //移除已上传的文件\n handleRemove: function handleRemove(file, fileList) {\n var _this5 = this;\n\n console.log(file, this.fileList);\n fileList.map(function (item) {\n var id = item.response.data.id;\n\n _this5.resourceForm.resource_ids.push(id);\n\n _this5.resourceIds.push(item.response.data.id);\n });\n },\n //选择人员\n seleceTtem: function seleceTtem(select) {\n var selectedZb = JSON.parse(sessionStorage.getItem(\"selectedZb\"));\n console.log(selectedZb.is_branch, \"kkkkkkkkkk\");\n\n if (selectedZb.is_branch == 0) {\n if (select.length > 1) {\n this.$refs.tb.clearSelection();\n this.$refs.tb.toggleRowSelection(select.pop());\n console.log(select, \"select\");\n return;\n } else {\n console.log(select, \"select\");\n var arr = [];\n var name = [];\n select.map(function (item) {\n console.log(item.id);\n arr.push(item.id);\n name.push(item.true_name);\n });\n console.log(arr, \"arr\");\n this.nameList = name;\n this.resourceForm.staff_id = arr;\n console.log(this.creatForm, \"this.creatForm\");\n }\n } else {\n console.log(select, \"select\");\n var _arr = [];\n var _name = [];\n select.map(function (item) {\n console.log(item.id);\n\n _arr.push(item.id);\n\n _name.push(item.true_name);\n });\n console.log(_arr, \"arr\");\n this.nameList = _name;\n this.resourceForm.staff_id = _arr;\n console.log(this.creatForm, \"this.creatForm\");\n }\n },\n //取消选择人员\n cancelSendPerson: function cancelSendPerson() {\n this.dialogTableVisible = false;\n this.nameList = [];\n this.resourceForm.staff_id = [];\n },\n //切换页码\n handleSizeChange1: function handleSizeChange1(e) {\n console.log(e, \"切换页码\");\n this.searchParams.limit = e;\n var data = this.searchParams;\n this.personnelList(data);\n },\n //切换每页显示数量\n handleCurrentChange1: function handleCurrentChange1(e) {\n console.log(e, \"当前页码\");\n this.searchParams.page = e;\n var data = this.searchParams;\n this.personnelList(data);\n },\n //下载模板\n exportModel: function exportModel() {\n var url = this.tips.resource;\n var a = document.createElement(\"a\");\n a.style.display = \"none\";\n document.body.appendChild(a);\n var triggerDownload = $(a).attr(\"href\", url).attr(\"download\", \"人员名单\").attr('target', '_blank');\n triggerDownload[0].click();\n document.body.removeChild(a);\n }\n }\n};\nexports.default = _default;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ \"./node_modules/_jquery@3.6.1@jquery/dist/jquery.js\")))\n\n//# sourceURL=webpack:///./src/views/process/application.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/process/apply.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/process/apply.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.json.stringify.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.json.stringify.js\");\n\nvar _Flow = _interopRequireDefault(__webpack_require__(/*! ./components/Flow */ \"./src/views/process/components/Flow/index.vue\"));\n\nvar _index = __webpack_require__(/*! @/api/organizationList/index */ \"./src/api/organizationList/index.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\nvar _timers = __webpack_require__(/*! timers */ \"./node_modules/_timers-browserify@2.0.12@timers-browserify/main.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar drawerType = {\n node: 0,\n link: 1\n};\nvar _default = {\n components: {\n Flow: _Flow.default\n },\n data: function data() {\n return {\n treeList: [],\n //支部列表\n drawerType: drawerType,\n dialogVisible: false,\n linkSetting: {\n desc: \"\"\n },\n organization_id: \"\",\n nodeSetting: {\n name: \"\",\n desc: \"\"\n },\n searchParams: {\n name: \"\",\n //支部名称\n zb_sj: \"\",\n //支部书记\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n },\n //搜索框数据\n origin: [681, 465],\n flowDate: \"\",\n nodeList: [],\n linkList: [],\n childDate: \"\"\n };\n },\n created: function created() {\n var _this = this;\n\n (0, _index2.processFlow)().then(function (res) {\n console.log(res.data[0].child, \"数据流程\");\n _this.flowDate = res.data[0].child;\n sessionStorage.setItem(\"flowDate\", JSON.stringify(res.data[0].child));\n }), (0, _index.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this.treeList = res.data;\n });\n },\n mounted: function mounted() {\n var _this2 = this;\n\n (0, _index2.processFlow)().then(function (res) {\n console.log(res.data[0].child, \"数据流程\");\n _this2.flowDate = res.data[0].child;\n sessionStorage.setItem(\"flowDate\", JSON.stringify(res.data[0].child));\n }), (0, _index.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this2.treeList = res.data;\n });\n },\n methods: {\n getChildDate: function getChildDate(v) {\n console.log(v, \"子组件传递的数据\");\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/process/apply.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/process/apply_list.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/process/apply_list.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("/* WEBPACK VAR INJECTION */(function($) {\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.concat.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\nvar _timers = __webpack_require__(/*! timers */ \"./node_modules/_timers-browserify@2.0.12@timers-browserify/main.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/personnel/index */ \"./src/api/personnel/index.js\");\n\nvar _store = _interopRequireDefault(__webpack_require__(/*! @/store */ \"./src/store/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n bigImage: \"\",\n imgDetaildialogVisible: false,\n dialogVisible: false,\n putVisible: false,\n loadingFull: false,\n applyList: [],\n //数据列表\n detailList: \"\",\n //详情数据\n searchParams: {\n userName: \"\",\n //上传人员\n organization_id: \"\",\n //支部id\n // user_id: \"\", //上传人员id\n key: \"\",\n //步骤key\n accoun: \"\" //支部名称\n\n },\n //搜索框数据\n limit: 15,\n //每页显示条数\n page: 1,\n //当前页码\n totalPage: 0,\n //总页码\n editForm: {\n key: \"\",\n name: \"\",\n resource_ids: [],\n resource: \"\"\n },\n //编辑表单\n fileData: {\n file_type: \"img\"\n },\n fileList: [],\n //上传文件列表\n file: \"\",\n type: 0,\n resourceForm: {\n name: \"\",\n resource_type: \"\",\n resource_ids: [],\n body: \"\",\n key: \"\"\n },\n rules: {\n name: [{\n required: true,\n message: \"请输入文件名称\",\n trigger: \"blur\"\n }],\n key: [{\n required: true,\n message: \"流程类型\",\n trigger: \"blur\"\n }]\n },\n organizationId: sessionStorage.getItem(\"organizationId\"),\n treeList: [{\n id: 0,\n name: \"全部\"\n }],\n //支部列表\n currentNode: []\n };\n },\n created: function created() {},\n mounted: function mounted() {\n var _this = this;\n\n //console.log(store.getters,\"anme\")\n this.getTreeLists();\n var selectedZb = JSON.parse(sessionStorage.getItem(\"selectedZb\"));\n this.currentNode = selectedZb;\n console.log(selectedZb, \"Mead===\");\n var organizationId = sessionStorage.getItem(\"organizationId\");\n this.searchParams = {\n userName: \"\",\n //上传人员\n organization_id: _store.default.getters.organization_ids[0],\n //支部id\n // user_id: store.getters.id, //上传人员id\n key: selectedZb.key //步骤key\n\n };\n this.archivesList(this.searchParams);\n var params = {\n key: selectedZb.key\n };\n (0, _index.fileTips)(params).then(function (res) {\n _this.tips = res.data.data[0];\n console.log(_this.tips, 66666666);\n });\n },\n methods: {\n //下一条数据\n nextLastStudent: function nextLastStudent(type) {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var params, _yield$nextStudent, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n params = {\n key: JSON.parse(sessionStorage.getItem(\"selectedZb\")).key,\n id: _this2.detailList.id,\n organization_id: _this2.searchParams.organization_id,\n type: type //0:下一条 1上一条\n\n };\n _context.next = 3;\n return (0, _index.nextStudent)(params);\n\n case 3:\n _yield$nextStudent = _context.sent;\n data = _yield$nextStudent.data;\n\n if (data.id) {\n _context.next = 8;\n break;\n }\n\n _this2.$message.warning(type == 1 ? \"已经是最后一条\" : '已经是第一条');\n\n return _context.abrupt(\"return\");\n\n case 8:\n _this2.detailList = data;\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //关闭大图\n closeBigImg: function closeBigImg() {\n this.imgDetaildialogVisible = false;\n },\n //查看大图\n imageDetail: function imageDetail(item) {\n this.imgDetaildialogVisible = true;\n this.bigImage = item;\n },\n //点击切换组织\n clickChange: function clickChange(e) {\n if (e.id == 0) {\n console.log(e, 'pppppppppppp');\n this.searchParams.organization_id = '';\n } else {\n this.searchParams.organization_id = e.id;\n }\n\n var params = {\n organization_id: this.searchParams.organization_id,\n key: this.searchParams.key\n };\n this.archivesList(params);\n },\n //获取组织树状列表\n getTreeLists: function getTreeLists() {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this3.loadingFull = true;\n _context2.next = 3;\n return (0, _index2.treeOrganizationList)().then(function (res) {\n _this3.treeList = _this3.treeList.concat(res.data);\n console.log(res, \"获取组织树状列表\");\n var selectedZb = JSON.parse(sessionStorage.getItem(\"selectedZb\"));\n _this3.searchParams.key = selectedZb.key;\n _this3.searchParams.organization_id = res.data[0].id;\n\n _this3.archivesList(_this3.searchParams); //this.personnelList();\n\n });\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //点击上传\n uploadFile: function uploadFile() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return (0, _index.uploadArchives)(_this4.resourceForm).then(function (res) {\n console.log(res, \"shangchuan \");\n\n _this4.archivesList(_this4.searchParams);\n });\n\n case 2:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n //搜索\n searchFile: function searchFile() {\n this.page = 1;\n this.archivesList(this.searchParams);\n },\n //获取列表数据\n archivesList: function archivesList(data) {\n var _this5 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n var that;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n that = _this5;\n _this5.loadingFull = true;\n _context4.next = 4;\n return (0, _index.archivesList)(data).then(function (res) {\n _this5.totalPage = res.data.meta.pagination.total;\n console.log(res.data.data, \"res\");\n _this5.applyList = res.data.data;\n (0, _timers.setTimeout)(function () {\n that.loadingFull = false;\n }, 300);\n });\n\n case 4:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n },\n //删除数据\n deleteFile: function deleteFile(id) {\n var _this6 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee5() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _this6.$confirm(\"此操作将删除该条数据, 是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this6.deleteArchives(id);\n }).catch(function () {\n _this6.$message({\n type: \"info\",\n message: \"已取消删除\"\n });\n });\n\n case 1:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5);\n }))();\n },\n deleteArchives: function deleteArchives(params) {\n var _this7 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee6() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee6$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n _this7.loadingFull = true;\n _context6.next = 3;\n return (0, _index.deleteArchives)(params).then(function (res) {\n _this7.loadingFull = false;\n console.log(res, \"删除\");\n\n if (res.code == 200) {\n _this7.$message({\n type: \"success\",\n message: \"删除成功!\"\n });\n\n _this7.archivesList(_this7.searchParams);\n } else {\n _this7.$message({\n type: \"error\",\n message: \"删除失败!\"\n });\n }\n }).catch(function (err) {\n _this7.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee6);\n }))();\n },\n //查看详情\n lookDetail: function lookDetail(row) {\n var _this8 = this;\n\n var id = row.id;\n this.loadingFull = true;\n (0, _index.archivesDetail)(id).then(function (res) {\n _this8.detailList = res.data;\n _this8.dialogVisible = true;\n _this8.loadingFull = false;\n console.log(res, \"查看详情\");\n }).catch(function (err) {\n _this8.loadingFull = false;\n });\n },\n //编辑\n editFile: function editFile(row) {\n var _this9 = this;\n\n this.loadingFull = true;\n var id = row.id;\n this.putVisible = true;\n (0, _index.archivesDetail)(id).then(function (res) {\n _this9.editForm = {\n id: row.id,\n key: res.data.key,\n name: res.data.name,\n resource_ids: \"\",\n resource: res.data.resource,\n organization_id: res.data.organization_id,\n resource_type: res.data.resource_type,\n staff_id: res.data.staff_id\n };\n _this9.loadingFull = false;\n });\n },\n //保存编辑\n editSave: function editSave() {\n var that = this;\n that.putArchives(that.editForm);\n (0, _timers.setTimeout)(function () {\n that.editForm = [];\n that.type = 0;\n }, 500);\n },\n putArchives: function putArchives(data) {\n var _this10 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee7() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee7$(_context7) {\n while (1) {\n switch (_context7.prev = _context7.next) {\n case 0:\n console.log(data, \"data\");\n _context7.next = 3;\n return (0, _index.putArchives)(data).then(function (res) {\n _this10.$message.success(\"编辑成功\");\n\n _this10.putVisible = false;\n });\n\n case 3:\n case \"end\":\n return _context7.stop();\n }\n }\n }, _callee7);\n }))();\n },\n //重新上传按钮\n resUpload: function resUpload() {\n this.type = 1;\n this.editForm.resource_ids = [];\n this.editForm.resource = \"\";\n },\n //上传图片\n uploadSuccess: function uploadSuccess(response, file, fileList) {\n var that = this;\n\n if (response.code == 200) {\n this.file = response.data.url;\n var arr = [];\n arr.push(response.data.id);\n console.log(fileList, \"ppppppppppp--------------\");\n this.editForm.resource_ids.push(response.data.id);\n this.resourceForm.body = response.data.url;\n }\n },\n //上传新文件\n uploadNewFile: function uploadNewFile() {\n var id = this.searchParams.organization_id;\n this.$router.push({\n name: \"application\",\n query: {\n id: id\n }\n });\n },\n //切换页码\n handleSizeChange: function handleSizeChange(e) {\n console.log(e, \"切换页码\");\n this.searchParams.limit = e;\n var data = {\n userName: this.searchParams.userName,\n //上传人员\n organization_id: this.searchParams.organization_id,\n //支部id\n key: this.searchParams.key,\n //步骤key\n limit: e\n };\n this.archivesList(data);\n },\n //切换每页显示数量\n handleCurrentChange: function handleCurrentChange(e) {\n console.log(e, this.page, \"----------------------------------\");\n var data = {\n userName: this.searchParams.userName,\n //上传人员\n organization_id: this.searchParams.organization_id,\n //支部id\n key: this.searchParams.key,\n //步骤key\n page: e\n };\n this.archivesList(data);\n },\n //移除已上传的文件\n handleRemove: function handleRemove(file, fileList) {\n console.log(file, fileList);\n },\n //下载模板\n exportModel: function exportModel() {\n var url = this.tips.resource;\n var a = document.createElement(\"a\");\n a.style.display = \"none\";\n document.body.appendChild(a);\n var triggerDownload = $(a).attr(\"href\", url).attr(\"download\", \"人员名单\").attr(\"target\", \"_blank\");\n triggerDownload[0].click();\n document.body.removeChild(a);\n }\n }\n};\nexports.default = _default;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ \"./node_modules/_jquery@3.6.1@jquery/dist/jquery.js\")))\n\n//# sourceURL=webpack:///./src/views/process/apply_list.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/process/apply_stu.vue?vue&type=script&lang=js&": /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/process/apply_stu.vue?vue&type=script&lang=js& ***! \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("/* WEBPACK VAR INJECTION */(function($) {\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\nvar _store = _interopRequireDefault(__webpack_require__(/*! @/store */ \"./src/store/index.js\"));\n\nvar _util = __webpack_require__(/*! util */ \"./node_modules/_util@0.11.1@util/util.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n bigImage: \"\",\n imgDetaildialogVisible: false,\n dialogVisible: false,\n putVisible: false,\n loadingFull: false,\n applyList: [],\n //数据列表\n detailList: \"\",\n //详情数据\n type: 0,\n fileList: [],\n //文件列表\n fileData: {\n file_type: \"img\"\n },\n totalPage: 0,\n //总页码\n editForm: {\n key: \"\",\n name: \"\",\n resource_ids: [],\n resource: \"\"\n },\n //编辑表单\n rules: {\n name: [{\n required: true,\n message: \"请输入文件名称\",\n trigger: \"blur\"\n }],\n key: [{\n required: true,\n message: \"流程类型\",\n trigger: \"blur\"\n }]\n },\n searchParams: {\n userName: \"\",\n //上传人员\n organization_id: \"\",\n //支部id\n user_id: \"\",\n //上传人员id\n key: \"\",\n //步骤key\n accoun: \"\",\n //支部名称\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n },\n isShow: false,\n //是否首次提交\n currentNode: []\n };\n },\n created: function created() {\n var _this = this;\n\n this.loadingFull = true;\n var selectedZb = JSON.parse(sessionStorage.getItem(\"selectedZb\"));\n this.currentNode = selectedZb;\n this.searchParams = {\n userName: \"\",\n //上传人员\n // organization_id: store.getters.organization_ids, //支部id\n user_id: _store.default.getters.id,\n //上传人员id\n key: selectedZb.key,\n //步骤key\n accoun: \"\",\n //支部名称\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n };\n this.archivesList(this.searchParams);\n var params = {\n key: selectedZb.key\n };\n (0, _index.fileTips)(params).then(function (res) {\n console.log(res.data.data[0], \"ceshi\");\n _this.tips = res.data.data[0];\n });\n (0, _index.archivesList)(this.searchParams).then(function (res) {\n _this.totalPage = res.data.meta.pagination.total;\n _this.applyList = res.data.data;\n _this.loadingFull = false; // this.editForm.resource_ids = [];\n });\n },\n methods: {\n //关闭大图\n closeBigImg: function closeBigImg() {\n this.imgDetaildialogVisible = false;\n },\n //查看大图\n imageDetail: function imageDetail(item) {\n this.imgDetaildialogVisible = true;\n this.bigImage = item;\n },\n //获取列表数据\n archivesList: function archivesList() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this2.loadingFull = true;\n _context.next = 3;\n return (0, _index.archivesList)(_this2.searchParams).then(function (res) {\n _this2.totalPage = res.data.meta.pagination.total;\n console.log(res.data.data, \"res\");\n _this2.applyList = res.data.data;\n _this2.loadingFull = false; // this.editForm.resource_ids = [];\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //搜索\n searchFile: function searchFile() {\n this.searchParams.page = 1;\n this.archivesList();\n },\n //删除数据\n deleteFile: function deleteFile(id) {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this3.$confirm(\"此操作将删除该条数据, 是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this3.deleteArchives(id);\n }).catch(function () {\n _this3.$message({\n type: \"info\",\n message: \"已取消删除\"\n });\n });\n\n case 1:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n deleteArchives: function deleteArchives(params) {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _this4.loadingFull = true;\n _context3.next = 3;\n return (0, _index.deleteArchives)(params).then(function (res) {\n _this4.loadingFull = false;\n console.log(res, \"删除\");\n\n if (res.code == 200) {\n _this4.$message({\n type: \"success\",\n message: \"删除成功!\"\n });\n\n _this4.archivesList();\n } else {\n _this4.$message({\n type: \"error\",\n message: \"删除失败!\"\n });\n }\n });\n\n case 3:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n //查看详情\n lookDetail: function lookDetail(row) {\n var _this5 = this;\n\n var id = row.id;\n this.loadingFull = true;\n (0, _index.archivesDetail)(id).then(function (res) {\n _this5.detailList = res.data;\n _this5.dialogVisible = true;\n _this5.loadingFull = false;\n console.log(res, \"查看详情\");\n }).catch(function (res) {\n _this5.loadingFull = false;\n });\n },\n //编辑\n editFile: function editFile(row) {\n var _this6 = this;\n\n var id = row.id;\n this.putVisible = true;\n (0, _index.archivesDetail)(id).then(function (res) {\n _this6.editForm = {\n id: row.id,\n key: res.data.key,\n name: res.data.name,\n resource_ids: \"\",\n resource: res.data.resource,\n organization_id: res.data.organization_id,\n resource_type: res.data.resource_type,\n staff_id: res.data.staff_id\n };\n });\n },\n //保存编辑\n editSave: function editSave() {\n var that = this;\n that.putArchives(that.editForm);\n },\n putArchives: function putArchives(data) {\n var _this7 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n console.log(data, \"data\");\n _context4.next = 3;\n return (0, _index.putArchives)(data).then(function (res) {\n _this7.$message.success(\"编辑成功\");\n\n _this7.putVisible = false;\n });\n\n case 3:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n },\n //重新上传按钮\n resUpload: function resUpload() {\n this.type = 1;\n this.editForm.resource_ids = [];\n this.editForm.resource = \"\";\n },\n //上传图片\n uploadSuccess: function uploadSuccess(response, file, fileList) {\n var that = this;\n\n if (response.code == 200) {\n this.file = response.data.url;\n var arr = [];\n arr.push(response.data.id);\n this.editForm.resource_ids = arr;\n this.resourceIds.push(response.data.id);\n }\n },\n //上传新文件\n uploadNewFile: function uploadNewFile() {\n var id = this.searchParams.organization_id;\n this.$router.push({\n name: \"upload\",\n query: {\n id: id\n }\n });\n },\n //切换页码\n handleSizeChange: function handleSizeChange(e) {\n console.log(e, \"切换页码\");\n this.searchParams.limit = e;\n this.archivesList();\n },\n //切换每页显示数量\n handleCurrentChange: function handleCurrentChange(e) {\n console.log(e, \"当前页码\");\n this.searchParams.page = e;\n this.archivesList();\n },\n //下载模板\n exportModel: function exportModel() {\n var url = this.tips.resource;\n var a = document.createElement(\"a\");\n a.style.display = \"none\";\n document.body.appendChild(a);\n var triggerDownload = $(a).attr(\"href\", url).attr(\"download\", \"人员名单\");\n triggerDownload[0].click();\n document.body.removeChild(a);\n }\n }\n};\nexports.default = _default;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ \"./node_modules/_jquery@3.6.1@jquery/dist/jquery.js\")))\n\n//# sourceURL=webpack:///./src/views/process/apply_stu.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/process/components/Flow/index.vue?vue&type=script&lang=js&": /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/process/components/Flow/index.vue?vue&type=script&lang=js& ***! \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("/* WEBPACK VAR INJECTION */(function($) {\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.number.constructor.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.json.stringify.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.json.stringify.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\nvar _typeof2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/typeof.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/typeof.js\"));\n\nvar _vueSuperFlow = _interopRequireDefault(__webpack_require__(/*! vue-super-flow */ \"./node_modules/_vue-super-flow@1.3.8@vue-super-flow/lib/index.umd.min.js\"));\n\n__webpack_require__(/*! vue-super-flow/lib/index.css */ \"./node_modules/_vue-super-flow@1.3.8@vue-super-flow/lib/index.css\");\n\nvar _index2 = __webpack_require__(/*! @/api/organizationList/index */ \"./src/api/organizationList/index.js\");\n\nvar _index3 = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\nvar _timers = __webpack_require__(/*! timers */ \"./node_modules/_timers-browserify@2.0.12@timers-browserify/main.js\");\n\nvar _store = _interopRequireDefault(__webpack_require__(/*! @/store */ \"./src/store/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n components: {\n SuperFlow: _vueSuperFlow.default\n },\n data: function data() {\n return {\n loadingFull: false,\n treeList: [],\n //支部列表\n linkSetting: {\n desc: \"\"\n },\n organization_id: \"\",\n organizationText: \"\",\n nodeSetting: {\n name: \"\",\n desc: \"\"\n },\n index: \"\",\n searchParams: {\n name: \"\",\n //支部名称\n zb_sj: \"\",\n //支部书记\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n },\n //搜索框数据\n origin: [681, 465],\n nodeList: [],\n linkList: [],\n flowList: \"\",\n tips: {}\n };\n },\n props: {},\n created: function created() {\n var _this = this;\n\n var that = this;\n this.loadingFull = true;\n (0, _timers.setTimeout)(function () {\n that.dataList();\n }, 500);\n (0, _index2.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this.treeList = res.data;\n }); // this.clickList();\n },\n mounted: function mounted() {\n var _this2 = this;\n\n this.loadingFull = true;\n var that = this;\n (0, _timers.setTimeout)(function () {\n that.dataList();\n }, 500);\n (0, _index2.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this2.treeList = res.data;\n var id = sessionStorage.getItem(\"organizationId\");\n console.log((0, _typeof2.default)(id), (0, _typeof2.default)(22));\n\n if (id) {\n that.organization_id = Number(id);\n }\n });\n var selectedZb = JSON.parse(sessionStorage.getItem(\"selectedZb\"));\n this.currentNode = selectedZb;\n var params = {\n key: selectedZb.key\n };\n (0, _index3.fileTips)(params).then(function (res) {\n _this2.tips = res.data.data[0];\n console.log(_this2.tips, 66666666);\n });\n },\n methods: {\n //点击下载\n load: function load() {\n //下载模板\n var url = this.tips.resource;\n var a = document.createElement(\"a\");\n a.style.display = \"none\";\n document.body.appendChild(a);\n var triggerDownload = $(a).attr(\"href\", url).attr(\"download\", \"人员名单\").attr('target', '_blank');\n triggerDownload[0].click();\n document.body.removeChild(a);\n },\n dataList: function dataList() {\n console.log(this.$parent.flowDate, \"pppp\");\n var flowList = JSON.parse(sessionStorage.getItem(\"flowDate\"));\n var arr = [];\n var list = [];\n var nodelist = flowList;\n var index = -1;\n console.log(flowList, \"nodelist\");\n var clientX, clientY;\n\n for (var i = 0, leng = nodelist.length; i < leng; i++) {\n var _clientX = void 0,\n _clientY = void 0;\n\n if (i < 3) {\n _clientX = -600 + 450 * i;\n console.log(i, \"index\");\n _clientY = -420;\n\n if (i < 2) {\n arr.push({\n idx: nodelist[i].idx,\n id: nodelist[i].key,\n coordinate: [_clientX, _clientY],\n meta: nodelist[i]\n });\n\n if (nodelist[i + 1]) {\n list.push({\n id: nodelist[i].idx,\n startId: nodelist[i].key,\n endId: nodelist[i + 1].key,\n startAt: [160, 40],\n endAt: [0, 40],\n meta: null\n });\n }\n } else {\n arr.push({\n idx: nodelist[i].idx,\n id: nodelist[i].key,\n coordinate: [_clientX, _clientY],\n meta: nodelist[i]\n });\n\n if (nodelist[i + 1]) {\n list.push({\n id: nodelist[i].idx,\n startId: nodelist[i].key,\n endId: nodelist[i + 1].key,\n startAt: [160, 40],\n endAt: [160, 40],\n meta: null\n });\n }\n }\n } else if (i >= 3) {\n _clientY = -100;\n _clientX = 300 - 450 * (i - 3);\n arr.push({\n idx: nodelist[i].idx,\n id: nodelist[i].key,\n coordinate: [_clientX, _clientY],\n meta: nodelist[i]\n });\n\n if (nodelist[i + 1]) {\n list.push({\n id: nodelist[i].idx,\n startId: nodelist[i].key,\n endId: nodelist[i + 1].key,\n startAt: [0, 40],\n endAt: [150, 25],\n meta: null\n });\n }\n\n console.log(i, \"这是测试------------------------------------------\");\n }\n\n this.nodeList = arr;\n this.linkList = list;\n console.log(this.linkList, \"linkList\");\n this.loadingFull = false;\n }\n },\n selectOrganization: function selectOrganization(e) {\n console.log(e, \"767\");\n console.log(this.organization_id);\n sessionStorage.setItem(\"organizationId\", this.organization_id);\n },\n //点击选择流程,列表\n clickList: function clickList(item, meta) {\n var _this3 = this;\n\n this.$emit(\"childData\", item);\n var nodeIndex = meta.index;\n console.log(meta.index, ' meta.index');\n sessionStorage.setItem(\"organizationText\", meta.label);\n sessionStorage.setItem(\"selectedZb\", JSON.stringify(item));\n var roles = _store.default.getters.roles;\n roles.map(function (item) {\n if (item == \"Super admin\" || item == \"Admin\") {\n _this3.$router.push({\n name: \"applylist\",\n query: {}\n });\n } else {\n _this3.$router.push({\n name: \"student\",\n query: {}\n });\n }\n });\n }\n }\n};\nexports.default = _default;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ \"./node_modules/_jquery@3.6.1@jquery/dist/jquery.js\")))\n\n//# sourceURL=webpack:///./src/views/process/components/Flow/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/process/develop_target.vue?vue&type=script&lang=js&": /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/process/develop_target.vue?vue&type=script&lang=js& ***! \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.json.stringify.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.json.stringify.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _Flow = _interopRequireDefault(__webpack_require__(/*! ./components/Flow */ \"./src/views/process/components/Flow/index.vue\"));\n\nvar _index = __webpack_require__(/*! @/api/organizationList/index */ \"./src/api/organizationList/index.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\nvar _timers = __webpack_require__(/*! timers */ \"./node_modules/_timers-browserify@2.0.12@timers-browserify/main.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar drawerType = {\n node: 0,\n link: 1\n};\nvar _default = {\n components: {\n Flow: _Flow.default\n },\n data: function data() {\n return {\n treeList: [],\n //支部列表\n drawerType: drawerType,\n dialogVisible: false,\n linkSetting: {\n desc: \"\"\n },\n organization_id: \"\",\n nodeSetting: {\n name: \"\",\n desc: \"\"\n },\n origin: [681, 465],\n flowDate: \"\",\n nodeList: [],\n linkList: [],\n childDate: \"\"\n };\n },\n created: function created() {\n var _this = this;\n\n (0, _index2.processFlow)().then(function (res) {\n console.log(res.data[2].child, \"数据流程\");\n _this.flowDate = res.data[2].child;\n sessionStorage.setItem(\"flowDate\", JSON.stringify(res.data[2].child));\n }), (0, _index.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this.treeList = res.data;\n });\n },\n mounted: function mounted() {\n var _this2 = this;\n\n (0, _index2.processFlow)().then(function (res) {\n console.log(res.data[2].child, \"数据流程\");\n _this2.flowDate = res.data[2].child;\n }), (0, _index.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this2.treeList = res.data;\n });\n },\n methods: {\n getChildDate: function getChildDate(v) {\n console.log(v, \"子组件传递的数据\");\n this.$router.push({\n name: \"applylist\",\n query: {\n id: v.idx\n }\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/process/develop_target.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/process/prepare_accept.vue?vue&type=script&lang=js&": /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/process/prepare_accept.vue?vue&type=script&lang=js& ***! \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.json.stringify.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.json.stringify.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _Flow = _interopRequireDefault(__webpack_require__(/*! ./components/Flow */ \"./src/views/process/components/Flow/index.vue\"));\n\nvar _index = __webpack_require__(/*! @/api/organizationList/index */ \"./src/api/organizationList/index.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\nvar _timers = __webpack_require__(/*! timers */ \"./node_modules/_timers-browserify@2.0.12@timers-browserify/main.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar drawerType = {\n node: 0,\n link: 1\n};\nvar _default = {\n components: {\n Flow: _Flow.default\n },\n data: function data() {\n return {\n treeList: [],\n //支部列表\n drawerType: drawerType,\n dialogVisible: false,\n linkSetting: {\n desc: \"\"\n },\n organization_id: \"\",\n nodeSetting: {\n name: \"\",\n desc: \"\"\n },\n origin: [681, 465],\n flowDate: \"\",\n nodeList: [],\n linkList: [],\n childDate: \"\"\n };\n },\n created: function created() {\n var _this = this;\n\n (0, _index2.processFlow)().then(function (res) {\n console.log(res.data[3].child, \"数据流程\");\n _this.flowDate = res.data[3].child;\n sessionStorage.setItem(\"flowDate\", JSON.stringify(res.data[3].child));\n }), (0, _index.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this.treeList = res.data;\n });\n },\n mounted: function mounted() {\n var _this2 = this;\n\n (0, _index2.processFlow)().then(function (res) {\n console.log(res.data[3].child, \"数据流程\");\n _this2.flowDate = res.data[3].child;\n sessionStorage.setItem(\"flowDate\", JSON.stringify(res.data[3].child));\n }), (0, _index.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this2.treeList = res.data;\n });\n },\n methods: {\n getChildDate: function getChildDate(v) {\n console.log(v, \"子组件传递的数据\");\n this.$router.push({\n name: \"applylist\",\n query: {\n id: v.idx\n }\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/process/prepare_accept.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/process/prepare_process.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/process/prepare_process.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.json.stringify.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.json.stringify.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _Flow = _interopRequireDefault(__webpack_require__(/*! ./components/Flow */ \"./src/views/process/components/Flow/index.vue\"));\n\nvar _index = __webpack_require__(/*! @/api/organizationList/index */ \"./src/api/organizationList/index.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\nvar _timers = __webpack_require__(/*! timers */ \"./node_modules/_timers-browserify@2.0.12@timers-browserify/main.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar drawerType = {\n node: 0,\n link: 1\n};\nvar _default = {\n components: {\n Flow: _Flow.default\n },\n data: function data() {\n return {\n treeList: [],\n //支部列表\n drawerType: drawerType,\n dialogVisible: false,\n linkSetting: {\n desc: \"\"\n },\n organization_id: \"\",\n nodeSetting: {\n name: \"\",\n desc: \"\"\n },\n origin: [681, 465],\n flowDate: \"\",\n nodeList: [],\n linkList: [],\n childDate: \"\"\n };\n },\n created: function created() {\n var _this = this;\n\n (0, _index2.processFlow)().then(function (res) {\n console.log(res.data[4].child, \"数据流程\");\n _this.flowDate = res.data[4].child;\n sessionStorage.setItem(\"flowDate\", JSON.stringify(res.data[4].child));\n }), (0, _index.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this.treeList = res.data;\n });\n },\n mounted: function mounted() {\n var _this2 = this;\n\n (0, _index2.processFlow)().then(function (res) {\n console.log(res.data[4].child, \"数据流程\");\n _this2.flowDate = res.data[4].child;\n sessionStorage.setItem(\"flowDate\", JSON.stringify(res.data[4].child));\n }), (0, _index.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n _this2.treeList = res.data;\n });\n },\n methods: {\n getChildDate: function getChildDate(v) {\n console.log(v, \"子组件传递的数据\");\n this.$router.push({\n name: \"applylist\",\n query: {\n id: v.idx\n }\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/process/prepare_process.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/process/upload.vue?vue&type=script&lang=js&": /*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/process/upload.vue?vue&type=script&lang=js& ***! \**************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("/* WEBPACK VAR INJECTION */(function($) {\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\nvar _index = __webpack_require__(/*! @/api/process/index */ \"./src/api/process/index.js\");\n\nvar _store = _interopRequireDefault(__webpack_require__(/*! @/store */ \"./src/store/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n dialogVisible: false,\n disabled: false,\n dialogImageUrl: \"\",\n resourceForm: {\n name: \"\",\n resource_type: 1,\n resource_ids: [],\n body: \"\",\n key: \"\",\n staff_id: []\n },\n fileList: [],\n //文件列表\n fileData: {\n file_type: \"img\"\n },\n rules: {\n name: [{\n required: true,\n message: \"请输入文件名称\",\n trigger: \"blur\"\n }],\n key: [{\n required: true,\n message: \"流程类型\",\n trigger: \"blur\"\n }],\n body: [{\n required: true,\n message: \"请选择需要上传的文件\",\n trigger: \"click\"\n }]\n },\n tips: \"\"\n };\n },\n created: function created() {\n var _this = this;\n\n this.loadingFull = true;\n var selectedZb = JSON.parse(sessionStorage.getItem(\"selectedZb\"));\n this.resourceForm.organization_id = _store.default.getters.organization_ids[0];\n this.resourceForm.name = selectedZb.name;\n this.resourceForm.key = selectedZb.key;\n this.resourceForm.user_id = _store.default.getters.id;\n this.resourceForm.staff_id = _store.default.getters.staff_id;\n console.log(this.resourceForm.staff_id, \"staff\");\n console.log(JSON.parse(sessionStorage.getItem(\"selectedZb\")), \"anme\");\n var params = {\n key: selectedZb.key\n };\n (0, _index.fileTips)(params).then(function (res) {\n console.log(res.data.data[0], \"ceshi\");\n _this.tips = res.data.data[0];\n });\n },\n methods: {\n uploadSuccess: function uploadSuccess(response, file, fileList) {\n console.log(response, \"-------------------------------\");\n var that = this; //console.log(this.editForm.resource_ids, \" this.editForm.resource_ids\");\n\n if (response.code == 200) {\n this.file = response.data.url;\n console.log(response.data.id, \"response.data.id\");\n var arr = [];\n arr.push(response.data.id);\n this.resourceForm.resource_ids.push(response.data.id);\n console.log(this.resourceForm.resource_ids);\n this.resourceForm.body = response.data.url;\n }\n },\n handlePictureCardPreview: function handlePictureCardPreview(file) {\n this.dialogImageUrl = file.url;\n this.dialogVisible = true;\n },\n //移除已上传的文件\n handleRemove: function handleRemove(file, fileList) {\n var _this2 = this;\n\n this.resourceForm.resource_ids = [];\n fileList.map(function (item) {\n var id = item.response.data.id;\n\n _this2.resourceForm.resource_ids.push(id);\n\n console.log(_this2.resourceForm, item.response.data.id);\n });\n },\n //未上传文件时\n submitForm: function submitForm(formName) {\n var _this3 = this;\n\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n _this3.uploadFile();\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n },\n //点击上传\n uploadFile: function uploadFile() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(_this4.resourceForm);\n _context.next = 3;\n return (0, _index.uploadDocument)(_this4.resourceForm).then(function (res) {\n console.log(res, \"shangchuan \");\n\n _this4.$message.success(\"上传成功\");\n\n _this4.$store.dispatch(\"tagsView/delView\", _this4.$route); // 返回上一步路由\n\n\n _this4.$router.go(-1); // this.$refs[formName].resetFields();\n\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n resetForm: function resetForm() {\n this.$store.dispatch(\"tagsView/delView\", this.$route); // 返回上一步路由\n\n this.$router.go(-1); // this.$refs[formName].resetFields();\n },\n //下载模板\n exportModel: function exportModel() {\n var selectedZb = JSON.parse(sessionStorage.getItem(\"selectedZb\"));\n var name = selectedZb.name;\n var title = name + \"模板\"; // let title=\"积极分子名单导入模板.xlsx\"\n\n console.log(title, \"tie\");\n var url = this.tips.resource;\n var a = document.createElement(\"a\");\n a.style.display = \"none\";\n document.body.appendChild(a);\n var triggerDownload = $(a).attr(\"href\", url).attr(\"download\", \"人员名单\").attr('target', '_blank');\n triggerDownload[0].click();\n document.body.removeChild(a);\n }\n }\n};\nexports.default = _default;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ \"./node_modules/_jquery@3.6.1@jquery/dist/jquery.js\")))\n\n//# sourceURL=webpack:///./src/views/process/upload.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/reminder/index.vue?vue&type=script&lang=js&": /*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/reminder/index.vue?vue&type=script&lang=js& ***! \**************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.symbol.js\");\n\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.symbol.description.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.map.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/reminder/index */ \"./src/api/reminder/index.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/personnel/index */ \"./src/api/personnel/index.js\");\n\nvar _timers = __webpack_require__(/*! timers */ \"./node_modules/_timers-browserify@2.0.12@timers-browserify/main.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n adminList: [{\n key: 0,\n name: \"学生\"\n }, {\n key: 1,\n name: \"管理员\"\n }],\n nameList: [],\n //选中学生姓名列表\n type: 0,\n dialogVisible: false,\n dialogTableVisible: false,\n noticeList: [],\n searchParams: {\n true_name: \"\",\n no: \"\",\n title: \"\",\n //上传人员\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n },\n //搜索框数据\n totalPage: 0,\n //总页码\n loadingFull: false,\n creatForm: {\n title: \"\",\n description: \"\",\n body: \"\",\n start_send_time: \"\",\n send_types: [],\n user_ids: [],\n staff_ids: []\n },\n tableList: [],\n //人员列表\n errMessage: \"cuowu\",\n //错误信息列表\n rules: {\n title: [{\n required: true,\n message: \"标题不能为空\",\n trigger: \"blur\"\n }],\n description: [{\n required: true,\n message: \"填写描述\",\n trigger: \"blur\"\n }],\n body: [{\n required: true,\n message: \"填写公告详情\",\n trigger: \"blur\"\n }],\n start_send_time: [{\n required: true,\n message: \"请选择时间\",\n trigger: \"change\"\n }],\n send_types: [{\n type: \"array\",\n required: true,\n message: \"请至少选择一个发送方式\",\n trigger: \"change\"\n }]\n }\n };\n },\n created: function created() {\n this.messagesList();\n },\n methods: {\n //获取人员列表\n personnelList: function personnelList(params) {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.loadingFull = true;\n _context.next = 3;\n return (0, _index.usersList)(params).then(function (res) {\n console.log(res, \"获取人员列表\");\n _this.tableList = res.data.data;\n _this.totalPage = res.data.meta.pagination.total;\n _this.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n messagesList: function messagesList(param) {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.loadingFull = true;\n _context2.next = 3;\n return (0, _index.messagesList)(param).then(function (res) {\n console.log(res.data, \"通知公告列表\");\n _this2.noticeList = res.data.data;\n _this2.totalPage = res.data.meta.pagination.total;\n _this2.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n searchNotice: function searchNotice() {\n this.messagesList(this.searchParams);\n },\n cancelSelectPersonnel: function cancelSelectPersonnel() {\n var that = this;\n this.dialogTableVisible = false;\n this.select = [];\n this.nameList = [];\n },\n //删除消息\n deleteNotice: function deleteNotice(id) {\n var _this3 = this;\n\n this.$confirm(\"此操作将删除该条数据, 是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this3.loadingFull = true;\n (0, _index.deleteMessages)(id).then(function (res) {\n _this3.loadingFull = false;\n console.log(res, \"删除\");\n\n if (!res.code) {\n _this3.$message({\n type: \"success\",\n message: \"删除成功!\"\n });\n\n _this3.messagesList(_this3.searchParams);\n } else {\n _this3.$message({\n type: \"error\",\n message: \"删除失败!\"\n });\n }\n });\n }).catch(function () {\n _this3.$message({\n type: \"info\",\n message: \"已取消删除\"\n });\n });\n },\n creatMessages: function creatMessages() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return (0, _index.creatMessages)(_this4.creatForm).then(function (res) {\n _this4.$message.success(\"创建成功\");\n\n _this4.dialogTableVisible = false;\n\n _this4.messagesList();\n }).catch(function (err) {\n _this4.$message.error(\"创建失败\");\n });\n\n case 2:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n //点击选择人员\n creatNotice: function creatNotice(formName) {\n this.dialogTableVisible = true;\n this.personnelList();\n this.searchParams.true_name = \"\";\n this.searchParams.no = \"\";\n },\n //搜索人员\n searchPerson: function searchPerson() {\n this.searchParams.page = 1;\n this.personnelList(this.searchParams);\n },\n resetForm: function resetForm(formName) {\n this.dialogVisible = false;\n this.creatForm = {};\n this.nameList = [];\n this.creatForm.staff_ids = [];\n },\n editSave: function editSave() {\n this.editMessages();\n },\n //编辑\n editNotice: function editNotice(row) {\n this.dialogVisible = true;\n this.creatForm = row;\n console.log(row);\n var params = this.creatForm;\n this.type = 1;\n },\n editMessages: function editMessages() {\n var _this5 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _context4.next = 2;\n return (0, _index.editMessages)(_this5.creatForm).then(function (res) {\n if (res.message) {\n _this5.$message.success(res.message);\n\n console.log(\"-----------------------\");\n _this5.dialogVisible = false;\n _this5.creatForm = {};\n _this5.nameList = [];\n _this5.creatForm.staff_ids = [];\n } else {\n _this5.rules = {\n title: [{\n required: true,\n message: res.title,\n trigger: \"blur\"\n }],\n description: [{\n required: true,\n message: res.description,\n trigger: \"blur\"\n }],\n body: [{\n required: true,\n message: \"填写公告详情\",\n trigger: \"blur\"\n }],\n start_send_time: [{\n required: true,\n message: res.start_send_time,\n trigger: \"change\"\n }]\n };\n }\n\n console.log(res, \"ppp正确\");\n }).catch(function (res) {\n console.log(res, \"ppp\");\n });\n\n case 2:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n },\n //切换页码\n handleSizeChange: function handleSizeChange(e) {\n console.log(e, \"切换页码\");\n this.searchParams.limit = e;\n var data = this.searchParams;\n this.messagesList(data);\n },\n //切换每页显示数量\n handleCurrentChange: function handleCurrentChange(e) {\n console.log(e, \"当前页码\");\n this.searchParams.page = e;\n var data = this.searchParams;\n this.messagesList(data);\n },\n //发送提醒\n sendNotice: function sendNotice(formName) {\n var _this6 = this;\n\n var that = this;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n if (_this6.creatForm.user_ids.length > 0) {\n _this6.creatMessages();\n\n _this6.dialogVisible = false;\n (0, _timers.setTimeout)(function () {\n this.creatForm = {};\n this.nameList = [];\n this.creatForm.staff_ids = [];\n }, 500);\n } else {\n _this6.$message.error(\"请选择需要发送的人员\");\n }\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n },\n //选择人员\n seleceTtem: function seleceTtem(select) {\n console.log(select, \"select\");\n var arr = [];\n var name = [];\n select.map(function (item) {\n console.log(item.id);\n name.push(item.nickname);\n arr.push(item.id);\n });\n this.nameList = name;\n console.log(arr, \"arr\");\n this.creatForm.user_ids = arr;\n console.log(this.creatForm, \"this.creatForm\");\n },\n //确定发送\n sureSend: function sureSend() {\n this.dialogTableVisible = false;\n },\n //切换页码\n handleSizeChange1: function handleSizeChange1(e) {\n console.log(e, \"切换页码\");\n this.searchParams.limit = e;\n var data = this.searchParams;\n this.personnelList(data);\n },\n //切换每页显示数量\n handleCurrentChange1: function handleCurrentChange1(e) {\n console.log(e, \"当前页码\");\n this.searchParams.page = e;\n var data = this.searchParams;\n this.personnelList(data);\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/reminder/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/setting/components/ConfigureManage.vue?vue&type=script&lang=js&": /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/setting/components/ConfigureManage.vue?vue&type=script&lang=js& ***! \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.concat.js\");\n\nvar _index = __webpack_require__(/*! ../api/index */ \"./src/views/setting/api/index.js\");\n\nvar _Tinymce = _interopRequireDefault(__webpack_require__(/*! @/components/Tinymce */ \"./src/components/Tinymce/index.vue\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"MenuManagementEdit\",\n components: {\n Tinymce: _Tinymce.default\n },\n data: function data() {\n return {\n form: {\n status: 1,\n sort: 0,\n type: 0,\n parent_id: 0\n },\n type_list: [{\n type: 0,\n name: \"字符串\"\n }, {\n type: 1,\n name: \"图片\"\n }, {\n type: 2,\n name: \"文本\"\n }],\n treeData: [],\n defaultProps: {\n children: \"children\",\n label: function label(data) {\n return data.name;\n },\n leaf: true\n },\n action: \"\",\n //图片上传地址\n uploadShow: true,\n uploadData: {\n file_type: \"img\",\n type: \"cms_setting\"\n },\n fileList: [],\n limit: 1,\n imageUrl: \"\",\n rules: {\n parent_id: [{\n required: true,\n trigger: \"change\",\n message: \"请选择父级\"\n }],\n name: [{\n required: true,\n trigger: \"blur\",\n message: \"请填写参数名称\"\n }],\n key: [{\n required: true,\n trigger: \"blur\",\n message: \"请填写key\"\n }],\n type: [{\n required: true,\n trigger: \"blur\",\n message: \"请选择类型\"\n }],\n sort: [{\n required: true,\n trigger: \"blur\",\n message: \"请填写排序\"\n }],\n status: [{\n required: true,\n trigger: \"change\",\n message: \"请选择状态\"\n }]\n },\n title: \"\",\n dialogFormVisible: false\n };\n },\n created: function created() {\n // this.action = baseURL + \"/base/common/upload\";\n this.fileList = [];\n },\n methods: {\n // translateTitle,\n //编辑\n showEdit: function showEdit(row) {\n this.fetchData();\n console.log(row, \"8888888888\");\n\n if (!row) {\n this.title = \"添加\";\n } else {\n this.title = \"编辑\";\n this.form = Object.assign({}, row);\n this.form.parent_id = this.form.parent_id ? this.form.parent_name : \"--\";\n console.log(this.form, \"cms/setting/delete\");\n\n if (this.form.type == 1) {\n this.imageUrl = this.form.value.url;\n }\n }\n\n this.dialogFormVisible = true;\n },\n //上传图片\n //上传成功\n uploadSuccess: function uploadSuccess(response) {\n console.log(response, \"图片上传成功\");\n this.form.value = response.data.id; // this.form.value = response.data.url\n\n this.$refs.form.validateField(\"cover\");\n },\n //上传失败\n uploadErr: function uploadErr() {\n this.$message.error(\"上传失败,请重新上传\");\n },\n clearFile: function clearFile() {\n console.log(\"上传之前\");\n this.imageUrl = \"\";\n },\n close: function close() {\n this.$refs[\"form\"].resetFields();\n this.form = this.$options.data().form;\n this.dialogFormVisible = false;\n },\n //编辑保存\n save: function save() {\n var _this = this;\n\n console.log(this.form.value, \"value\");\n if (this.form.parent_id == \"--\") this.form.parent_id = 0;\n\n if (!this.form.value) {\n this.$message.error(\"请填写配置内容\");\n return;\n }\n\n this.$refs[\"form\"].validate( /*#__PURE__*/function () {\n var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(valid) {\n var _yield$doEdit, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!valid) {\n _context.next = 8;\n break;\n }\n\n _context.next = 3;\n return (0, _index.doEdit)(_this.form);\n\n case 3:\n _yield$doEdit = _context.sent;\n message = _yield$doEdit.message;\n\n _this.$message.success(message);\n\n _this.$emit(\"fetch-data\");\n\n _this.close();\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n },\n fetchData: function fetchData() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var arr, _yield$getList, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.treeData = [];\n arr = [{\n id: 0,\n name: \"顶级\"\n }];\n _context2.next = 4;\n return (0, _index.getList)();\n\n case 4:\n _yield$getList = _context2.sent;\n data = _yield$getList.data;\n _this2.treeData = arr.concat(data);\n\n case 7:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n handleNodeClick: function handleNodeClick(node) {\n this.$refs.selectblur.blur();\n this.form.parent_name = node.name;\n this.form.parent_id = node.id;\n this.$forceUpdate();\n console.log(this.form, \"form\");\n },\n //添加保存\n //添加\n add: function add() {\n var _this3 = this;\n\n if (!this.form.value) {\n this.$message.error(\"请填写配置内容\");\n return;\n }\n\n this.$refs[\"form\"].validate( /*#__PURE__*/function () {\n var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3(valid) {\n var _yield$doAdd, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n if (!valid) {\n _context3.next = 8;\n break;\n }\n\n _context3.next = 3;\n return (0, _index.doAdd)(_this3.form);\n\n case 3:\n _yield$doAdd = _context3.sent;\n message = _yield$doAdd.message;\n\n _this3.$message({\n message: message,\n type: \"success\"\n });\n\n _this3.$emit(\"fetch-data\");\n\n _this3.close();\n\n case 8:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n return function (_x2) {\n return _ref2.apply(this, arguments);\n };\n }());\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/setting/components/ConfigureManage.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/setting/index.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/setting/index.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! ./api/index */ \"./src/views/setting/api/index.js\");\n\nvar _ConfigureManage = _interopRequireDefault(__webpack_require__(/*! ./components/ConfigureManage */ \"./src/views/setting/components/ConfigureManage.vue\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"ConfigureManage\",\n components: {\n Edit: _ConfigureManage.default\n },\n data: function data() {\n return {\n list: [],\n //轮播图列表\n listLoading: true,\n layout: \"total, sizes, prev, pager, next, jumper\",\n total: 0,\n selectRows: \"\",\n queryForm: {\n page: 1,\n per_page: 15\n },\n //修改排序\n editForm: {},\n oldSort: 0,\n editStatus: 0,\n //排序编辑状态 0为正常 1显示输入框\n flag: false //是否自动聚焦\n\n };\n },\n watch: {\n $route: {\n handler: function handler() {\n this.queryForm = {\n page: 1,\n per_page: 15\n };\n this.fetchData();\n }\n }\n },\n created: function created() {\n this.fetchData();\n },\n methods: {\n //搜索\n queryData: function queryData() {\n this.queryForm.page = 1;\n this.fetchData();\n },\n //获取列表\n fetchData: function fetchData() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$getList, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.listLoading = true;\n _context.next = 3;\n return (0, _index.getList)(_this.queryForm);\n\n case 3:\n _yield$getList = _context.sent;\n data = _yield$getList.data;\n _this.list = data.data;\n _this.total = data.meta.pagination.total;\n _this.listLoading = false;\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n handleEdit: function handleEdit(row) {\n if (row.id) {\n this.$refs[\"edit\"].showEdit(row);\n } else {\n this.$refs[\"edit\"].showEdit();\n }\n },\n handleDelete: function handleDelete(row) {\n console.log(row); // if (row.id) {\n // this.$baseConfirm('你确定要删除当前项吗', null, async () => {\n // const { message } = await doDelete({ ids: [row.id] })\n // this.$baseMessage(\n // message,\n // 'success',\n // false,\n // 'vab-hey-message-success'\n // )\n // await this.getList()\n // })\n // } else {\n // if (this.selectRows.length > 0) {\n // let ids = this.selectRows.map((item) => item.id)\n // this.$baseConfirm('你确定要删除选中项吗', null, async () => {\n // const { message } = await doDelete({ ids })\n // this.$baseMessage(\n // message,\n // 'success',\n // false,\n // 'vab-hey-message-success'\n // )\n // await this.getList()\n // })\n // } else {\n // this.$baseMessage(\n // '未选中任何行',\n // 'error',\n // false,\n // 'vab-hey-message-error'\n // )\n // }\n // }\n },\n // 分页方法\n handleSizeChange: function handleSizeChange(val) {\n this.queryForm.per_page = val;\n this.fetchData();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryForm.page = val;\n this.fetchData();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/setting/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/setup/template_set.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/setup/template_set.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/TemplateSet/index */ \"./src/api/TemplateSet/index.js\");\n\nvar _Tinymce = _interopRequireDefault(__webpack_require__(/*! @/components/Tinymce */ \"./src/components/Tinymce/index.vue\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n bigImage: \"\",\n imgDetaildialogVisible: false,\n keyInput: false,\n dialogVisible: false,\n //弹出层变量\n lookTemplates: false,\n lookList: \"\",\n tableData: [],\n loadingFull: false,\n type: \"\",\n //表单提交类型1为新增模板,2为编辑模板\n fileList: [],\n //上传文件列表\n form: {\n title: \"\",\n key: \"\",\n type: 1,\n body: \"\",\n status: \"\",\n remark: \"\",\n resource_ids: []\n },\n //新增修改列表\n searchParams: {\n title: \"\",\n key: \"\",\n type: \"\"\n },\n //搜索框数据\n file: \"\",\n formRule: {\n title: [{\n required: true,\n message: \"模板标题不能为空\",\n trigger: \"blur\"\n }],\n key: [{\n required: true,\n message: \"索引不能为空\",\n trigger: \"blur\"\n }],\n status: [{\n required: true,\n message: \"请选择状态\",\n trigger: \"change\"\n }]\n },\n activeName: \"first\",\n fileData: {\n file_type: \"img\"\n },\n totalPage: 0,\n changePage: {\n limit: 15,\n //每页显示条数\n page: 1 //当前页码\n\n },\n status: [{\n value: 0,\n name: \"暂停\"\n }, {\n value: 1,\n name: \"正常\"\n }]\n };\n },\n components: {\n Tinymce: _Tinymce.default\n },\n created: function created() {\n this.templatesList();\n },\n methods: {\n //取消添加\n cancel: function cancel() {\n this.dialogVisible = false;\n this.$refs.form.resetFields();\n },\n //关闭大图\n closeBigImg: function closeBigImg() {\n this.imgDetaildialogVisible = false;\n },\n //查看大图\n imageDetail: function imageDetail(item) {\n this.imgDetaildialogVisible = true;\n this.bigImage = item;\n },\n templatesList: function templatesList(params) {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n //模板列表\n console.log(\"909090\");\n _this.loadingFull = true;\n _context.next = 4;\n return (0, _index.templatesList)(params).then(function (res) {\n console.log(res, \"log\");\n _this.totalPage = res.data.meta.pagination.total;\n _this.loadingFull = false;\n _this.tableData = res.data.data;\n console.log(_this.totalPage);\n });\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n search: function search() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.loadingFull = true; //搜索templates\n\n _context2.next = 3;\n return (0, _index.templatesList)(_this2.searchParams).then(function (res) {\n _this2.totalPage = res.data.meta.pagination.total;\n _this2.loadingFull = false;\n _this2.tableData = res.data.data;\n _this2.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n newlyAdded: function newlyAdded() {\n //新增模板\n this.form = {\n title: \"\",\n key: \"\",\n type: 1,\n resource_type: 1,\n body: \"\",\n status: \"\",\n resource_ids: []\n }; //新增修改列表\n\n this.type = 1;\n this.keyInput = false;\n this.activeName = \"first\";\n this.fileData.file_type = \"img\";\n this.fileList = [];\n },\n //创建、修改模板操作\n sure: function sure() {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n console.log(_this3.form, \"type\");\n console.log(_this3.type, \"type\");\n console.log(_this3.file);\n _this3.form.body = _this3.file;\n\n if (_this3.form.body) {\n _context3.next = 7;\n break;\n }\n\n _this3.$message({\n message: \"请上传模板文件\",\n type: \"error\"\n });\n\n return _context3.abrupt(\"return\");\n\n case 7:\n _context3.next = 9;\n return (0, _index.templates)(_this3.form).then(function (res) {\n if (res.code == 200) {\n _this3.dialogVisible = false;\n\n _this3.templatesList();\n\n _this3.$message({\n message: \"模板创建成功\",\n type: \"success\"\n });\n } else {\n console.log(res, \"error\");\n\n _this3.$message.error(\"模板上传失败\");\n }\n }).catch(function (err) {\n console.log(err, \"\");\n _this3.loadingFull = false;\n });\n\n case 9:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n modifyTemplates: function modifyTemplates(row) {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n var date;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n date = {\n title: _this4.form.title,\n body: _this4.file,\n remark: _this4.form.remark,\n id: _this4.form.id,\n type: _this4.form.type\n };\n _context4.next = 3;\n return (0, _index.modifyTemplates)(date).then(function (res) {\n ///this.templatesList();\n _this4.dialogVisible = false;\n\n _this4.$message({\n message: \"模板修改成功\",\n type: \"success\"\n });\n }).catch(function (err) {\n console.log(err, \"\");\n _this4.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n },\n //查看模板\n queryTemplete: function queryTemplete(row) {\n var _this5 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee5() {\n var params;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _this5.loadingFull = true;\n params = {\n id: row.id\n };\n _context5.next = 4;\n return (0, _index.lookTemplates)(params).then(function (res) {\n _this5.lookTemplates = true;\n console.log(res, \"templatesList\");\n _this5.lookList = res.data;\n _this5.loadingFull = false;\n });\n\n case 4:\n console.log(row, \"row\");\n\n case 5:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5);\n }))();\n },\n //编辑模板配置文件类型\n editTemplete: function editTemplete(row) {\n var _this6 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee6() {\n var date;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee6$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n _this6.keyInput = true;\n console.log(row, \"id\");\n _this6.type = 2;\n date = row;\n\n if (row.type == 1) {\n _this6.activeName = \"first\";\n _this6.fileData.file_type = \"img\";\n } else if (row.type == 2) {\n _this6.activeName = \"second\";\n _this6.fileData.file_type = \"file\";\n } else {\n _this6.activeName = \"third\";\n }\n\n _this6.form = date;\n _this6.dialogVisible = true;\n\n case 7:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee6);\n }))();\n },\n //删除模板\n cutOutTemplete: function cutOutTemplete(id) {\n var _this7 = this;\n\n var data = id;\n this.$confirm(\"此操作将删除此项模板, 是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this7.deleteModel(id);\n }).catch(function () {\n _this7.$message({\n type: \"info\",\n message: \"已取消删除\"\n });\n });\n },\n deleteModel: function deleteModel(id) {\n var _this8 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee7() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee7$(_context7) {\n while (1) {\n switch (_context7.prev = _context7.next) {\n case 0:\n _context7.next = 2;\n return (0, _index.deleteTemplates)(id).then(function (res) {\n console.log(res, \"delete\");\n\n if (!res.code) {\n _this8.$message({\n type: \"success\",\n message: \"删除成功!\"\n });\n\n _this8.templatesList();\n } else {\n _this8.$message({\n type: \"error\",\n message: \"删除失败!\"\n });\n }\n });\n\n case 2:\n case \"end\":\n return _context7.stop();\n }\n }\n }, _callee7);\n }))();\n },\n //切换上传内容图片、文件、富文本\n handleClick: function handleClick(tab) {\n console.log(tab.name);\n\n if (tab.name == \"first\") {\n this.form.type = 1;\n this.form.resource_type = 1;\n this.fileData.file_type = \"img\";\n } else if (tab.name == \"second\") {\n this.form.type = 2;\n this.form.resource_type = 2;\n this.fileData.file_type = \"file\";\n } else {\n this.form.type = 0;\n this.form.resource_type = 0;\n }\n },\n //上传图片\n uploadSuccess: function uploadSuccess(response, file, fileList) {\n if (response.code == 200) {\n this.file = response.data.path;\n var path = response.data.path;\n console.log(path, \"_----------------------\");\n this.form.body = path;\n console.log(this.form, \"mobashezhi\");\n var arr = [];\n arr.push(response.data.id);\n this.form.resource_ids = arr;\n console.log(this.form.resource_ids);\n }\n },\n //点击切换页码\n handleCurrentChange: function handleCurrentChange(e) {\n this.page = e;\n this.changePage = {\n title: this.searchParams.title,\n key: this.searchParams.key,\n type: this.searchParams.type,\n page: e,\n limit: this.limit\n };\n console.log(this.searchParams, \"xuying-----------------\");\n this.templatesList(this.changePage);\n },\n //选择每页显示条数\n handleSizeChange: function handleSizeChange(e) {\n this.limit = e;\n this.changePage.limit = this.searchParams;\n this.changePage.limit = e;\n this.changePage.page = this.page;\n this.templatesList(this.changePage);\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/setup/template_set.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/users/change_message.vue?vue&type=script&lang=js&": /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/users/change_message.vue?vue&type=script&lang=js& ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.number.constructor.js\");\n\nvar _index = __webpack_require__(/*! @/api/personnel/index */ \"./src/api/personnel/index.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/users/index */ \"./src/api/users/index.js\");\n\nvar _index3 = __webpack_require__(/*! @/api/organizationList/index */ \"./src/api/organizationList/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n dialogVisible: false,\n disabled: false,\n dialogImageUrl: \"\",\n type: \"\",\n // 类型0为创建页面,1为编辑页面\n loadingFull: false,\n loading: false,\n treeList: [{\n pid: 0,\n id: 0,\n name: \"未选择\"\n }],\n // 支部列表\n classList: [],\n // 班级列表\n editForm: {\n name: \"\",\n region: \"\",\n date1: \"\",\n date2: \"\",\n delivery: false,\n type: [],\n resource: \"\",\n desc: \"\",\n class: [],\n organization_id: \"\",\n politics_status: \"\"\n },\n value: [],\n options: [{\n value: \"zhinan\",\n label: \"指南\",\n children: [{\n value: \"shejiyuanze\",\n label: \"设计原则\"\n }]\n }],\n politicsStatus: [{\n id: 0,\n name: \"未选择\"\n }],\n politicsIndex: \"\",\n // 选中身份索引\n sex: [{\n value: 1,\n label: \"男\"\n }, {\n value: 2,\n label: \"女\"\n }],\n nation: [{\n value: 1,\n label: \"汉族\"\n }, {\n value: 3,\n label: \"回族\"\n }],\n // 表格非空验证规则\n rules: {\n true_name: [{\n required: true,\n message: \"请输入姓名\",\n trigger: \"blur\"\n }],\n no: [{\n required: true,\n message: \"请输入学号\",\n trigger: \"blur\"\n }],\n enrol_date: [{\n required: true,\n message: \"请选择入学日期\",\n trigger: \"change\"\n }],\n birthday: [{\n required: true,\n message: \"请选择出生日期\",\n trigger: \"change\"\n }],\n sex: [{\n required: true,\n message: \"请选择性别\",\n trigger: \"change\"\n }],\n nation: [{\n required: true,\n message: \"请选择民族\",\n trigger: \"change\"\n }],\n mobile: [{\n required: true,\n message: \"请输入手机号\",\n trigger: \"blur\"\n }],\n politics_status: [{\n required: true,\n message: \"请选择政治面貌\",\n trigger: \"change\"\n }],\n id_card: [{\n required: true,\n message: \"请填写身份证号\",\n trigger: \"blur\"\n }],\n class: [{\n required: true,\n message: \"请填写院系班级/部门\",\n trigger: \"blur\"\n }],\n native_place: [{\n required: true,\n message: \"请选择籍贯\",\n trigger: \"change\"\n }],\n address: [{\n required: true,\n message: \"请填写家庭住址\",\n trigger: \"blur\"\n }],\n local_police_station: [{\n required: true,\n message: \"请填写户口所在地派出所\",\n trigger: \"blur\"\n }],\n organization_id: [{\n required: true,\n message: \"请选择支部\",\n trigger: \"blur\"\n }]\n },\n personnelId: \"\",\n // 编辑人员id\n personnelDetails: \"\",\n // 人员详情\n nationList: [],\n // 民族列表\n nationIndex: \"\" // 民族索引\n\n };\n },\n created: function created() {\n var _this = this;\n\n var that = this;\n this.editForm.id = this.$route.query.id;\n this.message(); //获取班级列表\n\n (0, _index3.classLists)().then(function (res) {\n _this.classList = res;\n }); //获取父级组织列表\n\n (0, _index3.fatherLists)().then(function (res) {\n console.log(res, \"llllll\");\n that.treeList = res.data;\n });\n var allStatus = JSON.parse(sessionStorage.getItem(\"status\"));\n this.nationList = allStatus[\"App\\\\Repositories\\\\Enums\\\\NationEnum\"];\n var politics = allStatus[\"App\\\\Repositories\\\\Enums\\\\PoliticsEnum\"];\n var arr = [];\n\n for (var i in politics) {\n arr.push({\n id: Number(i),\n name: politics[i]\n });\n }\n\n this.politicsStatus = arr;\n },\n methods: {\n //详情\n personnelDetail: function personnelDetail(params) {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this2.loadingFull = true;\n _context.next = 3;\n return (0, _index.personnelDetail)(params).then(function (res) {\n console.log(res, \"人员详情\"); // this.editForm = res.data;\n // this.nationIndex = res.data.nation;\n //console.log(typeof res.data.organization_id);\n //this.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //当前登陆人员信息\n message: function message() {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this3.loadingFull = true;\n _context2.next = 3;\n return (0, _index2.message)().then(function (res) {\n console.log(res, \"当前登录个人信息\");\n _this3.editForm = res.data;\n _this3.nationIndex = res.data.nation;\n _this3.loadingFull = false;\n }).catch(function (err) {\n _this3.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //修改人员信息\n editPersonnel: function editPersonnel() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n var data;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n data = _this4.editForm;\n _context3.next = 3;\n return (0, _index.editPersonnel)(data).then(function (res) {\n console.log(res, \"修改信息\");\n\n _this4.$message({\n type: \"success\",\n message: \"修改成功\"\n });\n\n _this4.$router.push({\n name: \"usersmessage\"\n });\n }).catch(function (err) {\n console.log(err, \"\");\n _this4.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n submitForm: function submitForm(formName) {\n var _this5 = this;\n\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n console.log(_this5.editForm, \"baocun\");\n\n _this5.editPersonnel();\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n },\n resetForm: function resetForm(formName) {\n this.$refs[formName].resetFields();\n },\n //远程搜索\n remoteMethod: function remoteMethod() {},\n //选中的值\n changeSelect: function changeSelect(select) {\n console.log(select, \"xuanzhongdezhi \");\n },\n //选中身份\n changePolitics: function changePolitics(e) {\n this.politicsIndex = e;\n this.editForm.politics_status = e;\n },\n //选中民族\n changeNation: function changeNation(e) {\n this.nationIndex = e;\n this.editForm.nation = e;\n },\n channelCreate: function channelCreate(val) {\n this.channel = val;\n this.channellist.push(this.classList);\n },\n keyDownEvent: function keyDownEvent() {},\n remoteZb: function remoteZb() {},\n handleChange: function handleChange(e) {\n console.log(e, \"籍贯\");\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/users/change_message.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/users/reset_password.vue?vue&type=script&lang=js&": /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/users/reset_password.vue?vue&type=script&lang=js& ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/users/index */ \"./src/api/users/index.js\");\n\nvar _store = _interopRequireDefault(__webpack_require__(/*! @/store */ \"./src/store/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n password: {\n newPwd: \"\",\n oldPwd: \"\"\n },\n rule: {\n newPwd: [{\n required: true,\n message: \"请输入新密码\",\n trigger: \"blur\"\n }],\n oldPwd: [{\n required: true,\n message: \"请输入确认密码\",\n trigger: \"blur\"\n }]\n }\n };\n },\n methods: {\n submitForm: function submitForm() {\n var _this = this;\n\n if (this.password.newPwd !== this.password.oldPwd) {\n this.$message.error(\"您两次输入的密码不相同,请重新输入\");\n } else {\n var data = {\n id: _store.default.getters.id,\n password: this.password.newPwd\n };\n (0, _index.changePwd)(data).then(function (res) {\n console.log(res, \"xiuga9\");\n\n _this.$message.success('修改成功!');\n\n _this.logout();\n });\n }\n },\n logout: function logout() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this2.$store.dispatch(\"user/logout\").then(function () {\n _this2.$router.push(\"/login\");\n });\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/users/reset_password.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/users/users_message.vue?vue&type=script&lang=js&": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/users/users_message.vue?vue&type=script&lang=js& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _index = __webpack_require__(/*! @/api/users/index */ \"./src/api/users/index.js\");\n\nvar _index2 = __webpack_require__(/*! @/api/personnel/index */ \"./src/api/personnel/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n myMessage: {\n no: \"\"\n },\n loadingFull: false,\n formInline: {\n user: \"\",\n region: \"\"\n },\n dialogVisible: false,\n mobile: \"\"\n };\n },\n created: function created() {\n this.message();\n },\n methods: {\n //关闭\n handleClose: function handleClose() {\n this.mobile = \"\";\n this.dialogVisible = false;\n },\n message: function message() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.loadingFull = true;\n _context.next = 3;\n return (0, _index.message)().then(function (res) {\n console.log(res, \"当前登录个人信息\");\n _this.myMessage = res.data;\n _this.loadingFull = false;\n }).catch(function (err) {\n _this.loadingFull = false;\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //完善个人信息\n changeMineMessage: function changeMineMessage() {\n this.$router.push({\n name: \"changemessage\",\n query: {\n id: this.myMessage.id\n }\n });\n },\n editMobile: function editMobile() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var data;\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n data = {\n mobile: _this2.mobile,\n id: _this2.myMessage.id\n };\n _context2.next = 3;\n return (0, _index2.editPersonnel)(data).then(function (res) {\n _this2.$message.success(\"修改成功\");\n\n _this2.dialogVisible = false;\n\n _this2.message();\n }).catch(function (err) {\n _this2.$message.error(\"修改失败\");\n });\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/users/users_message.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/video/chapter.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/video/chapter.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.sort.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.sort.js\");\n\nvar _chapter = __webpack_require__(/*! ./api/chapter */ \"./src/views/video/api/chapter.js\");\n\nvar _ChapterManage = _interopRequireDefault(__webpack_require__(/*! ./components/ChapterManage */ \"./src/views/video/components/ChapterManage.vue\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"ChapterManage\",\n components: {\n Edit: _ChapterManage.default\n },\n data: function data() {\n return {\n //修改排序\n editForm: {},\n oldSort: 0,\n editStatus: 0,\n //排序编辑状态 0为正常 1显示输入框\n flag: false,\n //是否自动聚焦\n list: [],\n listLoading: true,\n total: 0,\n queryForm: {\n title: \"\" // courseId: '', //课程id\n\n },\n videoId: \"\" //视频id\n\n };\n },\n created: function created() {\n var route = this.$route;\n console.log(route.query, \"route.query11111\"); // 章节列表里边接收上个页面的参数没有什么用目前!!!!!!!!!\n // // 课程id\n // this.courseId = route.query.courseId\n // // 视频id\n // this.queryForm.videoId = route.query.videoId\n\n this.queryForm.course_id = route.query.id;\n this.videoId = route.query.videoId;\n this.getChapterList();\n },\n methods: {\n goBack: function goBack() {\n this.$router.push({\n path: \"/video/index\"\n });\n },\n // 排序这块\n cancelSort: function cancelSort(row) {\n this.editStatus = 0;\n row.sort = this.oldSort;\n },\n //修改排序事件\n changeSort: function changeSort(row) {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(row, \"1111111111\");\n _this.editStatus = 1;\n _this.editForm = row; // 附件修改接口修改时这俩参数要求必填的\n // this.editForm.course_id = this.queryForm.courseId\n\n _this.editForm.course_id = row.course.id; // this.editForm.path = row.path_resource.id\n\n _this.oldSort = row.sort;\n\n _this.$nextTick(function () {\n _this.$refs[\"getFocus\"].focus();\n }); //await doEdit(this.editForm)\n\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //修改排序\n inputSort: function inputSort(e) {\n console.log(e, \"000000000\");\n this.editForm.sort = e;\n },\n sureChange: function sureChange() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var _yield$chapterEdit, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.editStatus = 0;\n\n if (!(_this2.oldSort !== _this2.editForm.sort)) {\n _context2.next = 12;\n break;\n }\n\n console.log(_this2.editForm, \"附件排序的内容\");\n _context2.next = 5;\n return (0, _chapter.chapterEdit)(_this2.editForm);\n\n case 5:\n _yield$chapterEdit = _context2.sent;\n message = _yield$chapterEdit.message;\n console.log(message, \"message\"); // location.reload()\n\n _this2.$message({\n message: message,\n type: \"success\"\n });\n\n _this2.getChapterList();\n\n _context2.next = 13;\n break;\n\n case 12:\n return _context2.abrupt(\"return\");\n\n case 13:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //跳转课程详情\n courseVideo: function courseVideo(row) {\n this.$router.push({\n path: \"/course/video\",\n query: {\n id: row.id\n }\n });\n },\n courseDetail: function courseDetail(row) {\n this.$router.push({\n path: \"/course/detail\",\n query: {\n id: row.id\n }\n });\n },\n handleEdit: function handleEdit(row) {\n if (row.id) {\n this.$refs[\"edit\"].showEdit(row);\n } else {\n this.$refs[\"edit\"].showEdit();\n }\n },\n handleDelete: function handleDelete(row) {\n var _this3 = this;\n\n if (row.id) {\n this.$confirm(\"你确定要删除当前章节?, 是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n var data, _yield$chapterDelete, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n data = {\n id: row.id\n };\n _context3.next = 3;\n return (0, _chapter.chapterDelete)(data);\n\n case 3:\n _yield$chapterDelete = _context3.sent;\n message = _yield$chapterDelete.message;\n\n _this3.$message({\n message: message,\n type: \"success\"\n });\n\n _context3.next = 8;\n return _this3.getChapterList();\n\n case 8:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n })));\n }\n },\n // handleSizeChange(val) {\n // this.queryForm.pageSize = val\n // this.getChapterList()\n // },\n // handleCurrentChange(val) {\n // this.queryForm.pageNo = val\n // this.getChapterList()\n // },\n queryData: function queryData() {\n this.getChapterList();\n },\n getChapterList: function getChapterList() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n var _yield$chapterList, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _this4.listLoading = true;\n _context4.next = 3;\n return (0, _chapter.chapterList)(_this4.queryForm);\n\n case 3:\n _yield$chapterList = _context4.sent;\n data = _yield$chapterList.data;\n console.log(data, \"章节列表\");\n _this4.list = data.data;\n console.log(_this4.list, \"++++++++++\");\n _this4.listLoading = false;\n\n case 9:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/video/chapter.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/video/components/ChapterManage.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/video/components/ChapterManage.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\nvar _chapter = __webpack_require__(/*! ../api/chapter */ \"./src/views/video/api/chapter.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"DepartmentManagementEdit\",\n data: function data() {\n return {\n form: {\n title: \"\",\n status: 1,\n course_id: \"\",\n sort: 0\n },\n rules: {\n title: [{\n required: true,\n trigger: \"blur\",\n message: \"请输入章节名称\"\n }],\n sort: [{\n required: true,\n trigger: \"blur\",\n message: \"请输入章节排序\"\n }] // status: [\n // {\n // required: true,\n // trigger: 'change',\n // message: '请选择章节状态',\n // },\n // ],\n\n },\n title: \"\",\n dialogFormVisible: false\n };\n },\n created: function created() {},\n methods: {\n // handleNodeClick(node) {\n // this.form.parent_name = node.name\n // this.form.parent_id = node.id\n // },\n showEdit: function showEdit(row) {\n console.log(row, \"章节列表的传过来的\");\n\n if (!row) {\n this.title = \"添加\";\n var route = this.$route;\n console.log(route.query, \"route.que12121ry\");\n this.form.course_id = route.query.id;\n console.log(this.form.course_id, \"route.que12121ry\");\n } else {\n this.title = \"编辑\";\n this.form = Object.assign({}, row);\n this.form.course_id = row.id;\n }\n\n this.dialogFormVisible = true;\n },\n close: function close() {\n this.$refs[\"form\"].resetFields(); // this.form = this.$options.data().form\n\n this.dialogFormVisible = false;\n },\n //编辑保存\n save: function save() {\n var _this = this;\n\n console.log(this.form, \"999999999999\");\n this.$refs[\"form\"].validate( /*#__PURE__*/function () {\n var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(valid) {\n var _yield$chapterEdit, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!valid) {\n _context.next = 8;\n break;\n }\n\n _context.next = 3;\n return (0, _chapter.chapterEdit)(_this.form);\n\n case 3:\n _yield$chapterEdit = _context.sent;\n message = _yield$chapterEdit.message;\n\n _this.$message({\n message: message,\n type: \"success\"\n });\n\n _this.$emit(\"fetch-data\");\n\n _this.close();\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n },\n //添加\n add: function add() {\n var _this2 = this;\n\n this.$refs[\"form\"].validate( /*#__PURE__*/function () {\n var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(valid) {\n var _yield$chapterAdd, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n if (!valid) {\n _context2.next = 8;\n break;\n }\n\n _context2.next = 3;\n return (0, _chapter.chapterAdd)(_this2.form);\n\n case 3:\n _yield$chapterAdd = _context2.sent;\n message = _yield$chapterAdd.message;\n\n _this2.$message({\n message: message,\n type: \"success\"\n });\n\n _this2.$emit(\"fetch-data\");\n\n _this2.close();\n\n case 8:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function (_x2) {\n return _ref2.apply(this, arguments);\n };\n }());\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/video/components/ChapterManage.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/video/components/CourseManage.vue?vue&type=script&lang=js&": /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/video/components/CourseManage.vue?vue&type=script&lang=js& ***! \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.regexp.to-string.js\");\n\nvar _index = __webpack_require__(/*! ../api/index */ \"./src/views/video/api/index.js\");\n\nvar _Tinymce = _interopRequireDefault(__webpack_require__(/*! @/components/Tinymce */ \"./src/components/Tinymce/index.vue\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// import { baseURL } from '@/config'\nvar _default = {\n name: \"DepartmentManagementEdit\",\n data: function data() {\n return {\n form: {\n category: {\n id: \"\"\n },\n title: \"\",\n labels: [],\n thumb: \"\",\n short_description: \"\",\n description: \"\",\n published_at: \"\",\n status: 1,\n sort: 0\n },\n action: \"\",\n //图片上传地址\n uploadShow: true,\n uploadData: {\n file_type: \"img\",\n type: \"course\"\n },\n fileList: [],\n limit: 1,\n imageUrl: \"\",\n //已上传视频链接\n rules: {\n category: [{\n required: true,\n trigger: \"change\",\n message: \"请选择课程类型\"\n }],\n title: [{\n required: true,\n trigger: \"blur\",\n message: \"请输入课程名称\"\n }],\n labels: [{\n required: true,\n trigger: \"blur\",\n message: \"请输入课程描述\"\n }],\n thumb: [{\n required: true,\n trigger: \"blur\",\n message: \"请上传课程封面\"\n }],\n short_description: [{\n required: true,\n trigger: \"blur\",\n message: \"请输入课程段介绍\"\n }],\n // published_at: [\n // {\n // required: true,\n // trigger: 'change',\n // message: '请选择课程发布时间',\n // },\n // ],\n sort: [{\n required: true,\n trigger: \"blur\",\n message: \"请输入课程排序\"\n }]\n },\n title: \"\",\n dialogFormVisible: false\n };\n },\n components: {\n Tinymce: _Tinymce.default\n },\n created: function created() {\n // this.action = baseURL + '/common/upload'\n this.fileList = [];\n },\n methods: {\n //富文本编辑器\n getTnyMac: function getTnyMac(res) {\n this.form.intro = res;\n },\n //跳转课程分类管理\n courseSort: function courseSort() {\n this.$router.push(\"/course/coursesort\");\n },\n //上传成功\n uploadSuccess: function uploadSuccess(response) {\n console.log(response, \"图片上传成功\");\n this.form.thumb = response.data.id;\n this.$refs.form.validateField(\"thumb\");\n },\n clearFile: function clearFile() {\n console.log(\"上传之前\");\n this.imageUrl = \"\";\n },\n // handleNodeClick(node) {\n // this.form.category_name = node.name\n // this.form.category_id = node.id\n // },\n showEdit: function showEdit(row) {\n console.log(row, \"点击按钮传过来的数据\");\n\n if (row) {\n this.title = \"编辑\";\n this.form = Object.assign({}, row);\n\n if (this.form.thumb_resource) {\n this.imageUrl = this.form.thumb_resource.url;\n } // if (this.form.id) {\n // this.category_id = this.form.category.id\n // }\n\n } else {\n this.title = \"添加\";\n }\n\n this.dialogFormVisible = true;\n },\n close: function close() {\n this.$refs[\"form\"].resetFields();\n this.form = this.$options.data().form;\n this.fileList = [];\n this.dialogFormVisible = false;\n },\n //编辑保存\n save: function save() {\n var _this = this;\n\n this.form.labels = this.form.labels.toString();\n this.$refs[\"form\"].validate( /*#__PURE__*/function () {\n var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(valid) {\n var _yield$doEdit, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!valid) {\n _context.next = 9;\n break;\n }\n\n _context.next = 3;\n return (0, _index.doEdit)(_this.form);\n\n case 3:\n _yield$doEdit = _context.sent;\n message = _yield$doEdit.message;\n\n _this.$message({\n message: message,\n type: \"success\"\n });\n\n _this.$emit(\"fetch-data\");\n\n _this.fileList = [];\n\n _this.close();\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n },\n //添加\n add: function add() {\n var _this2 = this;\n\n this.form.labels = this.form.labels.toString();\n this.$refs[\"form\"].validate( /*#__PURE__*/function () {\n var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(valid) {\n var _yield$doAdd, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n if (!valid) {\n _context2.next = 9;\n break;\n }\n\n _context2.next = 3;\n return (0, _index.doAdd)(_this2.form);\n\n case 3:\n _yield$doAdd = _context2.sent;\n message = _yield$doAdd.message;\n\n _this2.$message({\n message: message,\n type: \"success\"\n });\n\n _this2.$emit(\"fetch-data\");\n\n _this2.fileList = [];\n\n _this2.close();\n\n case 9:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function (_x2) {\n return _ref2.apply(this, arguments);\n };\n }());\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/video/components/CourseManage.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/video/course_detail.vue?vue&type=script&lang=js&": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/video/course_detail.vue?vue&type=script&lang=js& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.filter.js\");\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\nvar _course_detail = __webpack_require__(/*! ./api/course_detail */ \"./src/views/video/api/course_detail.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n value1: 0,\n course_slug: '',\n detail: {},\n course_id: '',\n course_zhangjie: [],\n current_zhedie: [],\n current_sec_nav: 1,\n content: '',\n queryForm: {\n page: 1,\n per_page: 15\n },\n layout: 'total, sizes, prev, pager, next, jumper',\n total: 0,\n // 课程中标签的颜色数组\n colorList: ['primary', 'warning', 'info', 'danger']\n };\n },\n created: function created() {\n console.log(this.$route.query, 'this.$route.query');\n this.course_slug = this.$route.query.slug;\n this.course_id = this.$route.query.id;\n this.getCourse_detail();\n this.chapterList();\n this.showDetail();\n },\n methods: {\n //返回上一页\n goBack: function goBack() {\n this.$router.push({\n path: '/video/index',\n query: {\n id: this.courseId\n }\n });\n },\n //获取课程分类\n getCourse_detail: function getCourse_detail() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$_getCourse_det, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _course_detail.getCourse_detail)({\n id: _this.course_id\n });\n\n case 2:\n _yield$_getCourse_det = _context.sent;\n data = _yield$_getCourse_det.data;\n console.log(data, 'xaingqing');\n _this.detail = data; // this.course_zhangjie = data.directory\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n // 获取课程\n showDetail: function showDetail() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var _yield$_showDetail, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.loading = true;\n _context2.next = 3;\n return (0, _course_detail.showDetail)({\n slug: _this2.course_slug\n });\n\n case 3:\n _yield$_showDetail = _context2.sent;\n data = _yield$_showDetail.data;\n _this2.loading = false;\n console.log(data);\n _this2.course_zhangjie = data.directory;\n\n case 8:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //获取章节分类\n chapterList: function chapterList() {\n var _this3 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n var _yield$_chapterList, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return (0, _course_detail.chapterList)({\n course_id: _this3.course_id\n });\n\n case 2:\n _yield$_chapterList = _context3.sent;\n data = _yield$_chapterList.data;\n console.log(data, 'zhangjie'); // this.detail = data\n // this.course_zhangjie = data.data\n\n case 5:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n //跳转到另一个详情页\n to_sec_course: function to_sec_course() {\n // 跳转到视频页\n this.$router.push({\n path: './videoDetail',\n query: {\n course_id: this.course_id,\n slug: this.course_slug\n }\n });\n },\n //章节折叠\n zhedie: function zhedie(e) {\n if (this.current_zhedie.includes(e)) {\n this.current_zhedie = this.current_zhedie.filter(function (item) {\n return item != e;\n });\n } else {\n this.current_zhedie.push(e);\n }\n },\n //分页\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryForm.page = val;\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryForm.pageSize = val;\n },\n chang_sec_nav: function chang_sec_nav(e) {\n this.current_sec_nav = e;\n },\n to_video: function to_video(video_id, video_slug) {\n console.log(video_id, 'taiozhaun'); // 跳转到视频页\n\n this.$router.push({\n path: './videoDetail',\n query: {\n video_id: video_id,\n course_id: this.course_id,\n slug: this.course_slug,\n video_slug: video_slug\n }\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/video/course_detail.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/video/editvideo.vue?vue&type=script&lang=js&": /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/video/editvideo.vue?vue&type=script&lang=js& ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.function.name.js\");\n\nvar _video = __webpack_require__(/*! ./api/video */ \"./src/views/video/api/video.js\");\n\nvar _chapter = __webpack_require__(/*! ./api/chapter */ \"./src/views/video/api/chapter.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"DepartmentManagementEdit\",\n // components: { VabQuill },\n data: function data() {\n return {\n chapterData: [],\n minute: \"\",\n //分\n hours: \"\",\n //时\n second: \"\",\n //秒\n courseId: \"\",\n //课程id\n videoId: \"\",\n //视频id\n form: {\n course_chapter_id: \"\",\n title: \"\",\n url: \"\",\n short_description: \"\",\n description: \"\",\n published_at: \"\",\n status: 1,\n sort: 0,\n fileList: []\n },\n action: \"\",\n //图片上传地址\n uploadShow: true,\n videoUploadData: {\n file_type: \"file\",\n type: \"course_video\"\n },\n zhUploadData: {\n file_type: \"file\",\n type: \"course_video\"\n },\n enUploadData: {\n file_type: \"file\",\n type: \"course_video\"\n },\n limit: 1,\n rules: {\n category_id: [{\n required: true,\n trigger: \"change\",\n message: \"请选择课程类型\"\n }],\n title: [{\n required: true,\n trigger: \"blur\",\n message: \"请输入课程名称\"\n }],\n course_chapter_id: [{\n required: true,\n trigger: \"change\",\n message: \"请选择课程章节\"\n }],\n fileList: [{\n required: true,\n trigger: \"change\",\n message: \"请上传课程视频\"\n }],\n short_description: [{\n required: true,\n trigger: \"blur\",\n message: \"请输入课程简介\"\n }],\n sort: [{\n required: true,\n trigger: \"blur\",\n message: \"请输入课程排序\"\n }],\n status: [{\n required: true,\n trigger: \"blur\",\n message: \"请选择课程状态\"\n }]\n },\n title: \"\",\n dialogFormVisible: false\n };\n },\n watch: {\n $route: \"getChapterList\"\n },\n created: function created() {\n var route = this.$route;\n console.log(route.query, \"route.query\"); // this.course_chapter_id\n // 接收视频列表页面的数据参数\n\n this.courseId = route.query.courseId;\n this.videoId = route.query.videoId;\n\n if (route.query.videoId) {\n this.title = \"编辑视频\";\n this.getDetail();\n } else {\n this.title = \"添加视频\";\n }\n\n console.log(route.query, \"ids\"); // this.action = baseURL + '/common/upload'\n\n this.chapterData = [];\n this.getChapterList();\n },\n methods: {\n //富文本编辑器\n getTnyMac: function getTnyMac(res) {\n this.form.intro = res;\n },\n //返回上一页\n goBack: function goBack() {\n this.$router.push({\n path: \"/video/videoList\",\n query: {\n id: this.courseId\n }\n });\n },\n //章节管理\n // chapterManage() {\n // this.$router.push({\n // path: '/course/chapter',\n // query: {\n // courseId: this.courseId,\n // videoId: this.videoId,\n // },\n // })\n // },\n //获取章节列表\n getChapterList: function getChapterList() {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$chapterList, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _chapter.chapterList)({\n course_id: _this.courseId,\n status: 1\n });\n\n case 2:\n _yield$chapterList = _context.sent;\n data = _yield$chapterList.data;\n console.log(data, \"章节列表\");\n _this.chapterData = data.data;\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n getDetail: function getDetail() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var _yield$videoDetail, data, arr, time;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return (0, _video.videoDetail)({\n id: _this2.videoId\n });\n\n case 2:\n _yield$videoDetail = _context2.sent;\n data = _yield$videoDetail.data;\n console.log(data, \"视频详情\");\n _this2.form = data;\n _this2.form.course_id = _this2.courseId;\n _this2.form.url_resource = data.url_resource;\n arr = [];\n arr.push(data.fileList);\n _this2.form.fileList = arr;\n time = data.duration;\n _this2.hours = parseInt(time / 3600) < 10 ? \"0\" + parseInt(time / 3600) : parseInt(time / 3600);\n _this2.minute = parseInt(time % 3600 / 60) < 10 ? \"0\" + parseInt(time % 3600 / 60) : parseInt(time % 3600 / 60);\n _this2.second = parseInt(time % 3600 % 60) < 10 ? \"0\" + parseInt(time % 3600 % 60) : parseInt(time % 3600 % 60); // this.chapterData = data.data;\n\n case 15:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //视频上传成功\n videoSuccess: function videoSuccess(response, file) {\n this.form.url = response.data.id;\n this.form.fileList.push(file);\n this.$refs.form.validateField(\"fileList\");\n },\n //中文字幕上传成功\n zhSuccess: function zhSuccess(response) {\n console.log(response, \"上传成功\");\n this.form.subtitle_zh_path = response.data.id;\n },\n //英文字幕上传成功\n enSuccess: function enSuccess(response) {\n console.log(response, \"上传成功\");\n this.form.subtitle_en_path = response.data.id;\n },\n uploadErr: function uploadErr(err) {\n console.log(err, \"上传失败\");\n this.$message.error(\"文件上传失败,请重新上传\");\n },\n handleNodeClick: function handleNodeClick(node) {\n this.form.category_name = node.name;\n this.form.category_id = node.id;\n },\n close: function close() {\n this.hours = this.second = this.minute = 0;\n this.$refs[\"form\"].resetFields();\n this.form = this.$options.data().form;\n this.dialogFormVisible = false;\n this.goBack();\n },\n //编辑保存\n save: function save() {\n var _this3 = this;\n\n this.form.duration = this.hours * 3600 + this.minute * 60 + this.second;\n this.$refs[\"form\"].validate( /*#__PURE__*/function () {\n var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3(valid) {\n var _yield$videoEdit, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n if (!valid) {\n _context3.next = 8;\n break;\n }\n\n console.log(_this3.form);\n _context3.next = 4;\n return (0, _video.videoEdit)(_this3.form);\n\n case 4:\n _yield$videoEdit = _context3.sent;\n message = _yield$videoEdit.message;\n\n _this3.$message({\n message: message,\n type: \"success\"\n });\n\n _this3.$router.push({\n path: \"/video/videoList\",\n query: {\n id: _this3.courseId\n }\n });\n\n case 8:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n },\n //添加\n add: function add() {\n var _this4 = this;\n\n console.log(this.hours, \"时\");\n console.log(this.minute, \"时\");\n console.log(this.second, \"时\");\n this.form.course_id = this.courseId;\n this.form.duration = this.hours * 3600 + this.minute * 60 + this.second;\n\n if (this.form.duration == 0) {\n this.$message.error(\"视频时长不能为0\");\n return;\n }\n\n console.log(this.form.duration, \"视频时长\");\n this.$refs[\"form\"].validate( /*#__PURE__*/function () {\n var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4(valid) {\n var _yield$videoAdd, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n if (!valid) {\n _context4.next = 10;\n break;\n }\n\n _context4.next = 3;\n return (0, _video.videoAdd)(_this4.form);\n\n case 3:\n _yield$videoAdd = _context4.sent;\n message = _yield$videoAdd.message;\n\n _this4.$message({\n message: message,\n type: \"success\"\n });\n\n _this4.hours = _this4.minute = _this4.second = 0;\n _this4.form = {\n course_chapter_id: \"\",\n title: \"\",\n url: \"\",\n short_description: \"\",\n description: \"\",\n published_at: \"\",\n status: 1\n };\n\n _this4.$refs.upload.clearFiles();\n\n _this4.$router.push({\n path: \"/video/videoList\",\n query: {\n id: _this4.courseId\n }\n });\n\n case 10:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }));\n\n return function (_x2) {\n return _ref2.apply(this, arguments);\n };\n }());\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/video/editvideo.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/video/index.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/video/index.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.sort.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.sort.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\nvar _index = __webpack_require__(/*! ./api/index */ \"./src/views/video/api/index.js\");\n\nvar _CourseManage = _interopRequireDefault(__webpack_require__(/*! ./components/CourseManage.vue */ \"./src/views/video/components/CourseManage.vue\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"CourseManage\",\n components: {\n Edit: _CourseManage.default\n },\n data: function data() {\n return {\n //修改排序\n editForm: {},\n oldSort: 0,\n editStatus: 0,\n //排序编辑状态 0为正常 1显示输入框\n //课程列表数组\n list: [],\n listLoading: true,\n layout: \"total, sizes, prev, pager, next, jumper\",\n total: 0,\n queryForm: {\n page: 1,\n per_page: 15,\n title: \"\"\n }\n };\n },\n created: function created() {\n this.getCourseList();\n },\n methods: {\n //修改排序事件\n cancelSort: function cancelSort(row) {\n this.editStatus = 0;\n row.sort = this.oldSort;\n },\n //修改排序事件\n changeSort: function changeSort(row) {\n var _this = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"1111111111\");\n _this.editStatus = 1;\n _this.editForm = row;\n _this.oldSort = row.sort;\n\n _this.$nextTick(function () {\n _this.$refs[\"getFocus\"].focus();\n }); //await doEdit(this.editForm)\n\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //修改排序\n inputSort: function inputSort(e) {\n console.log(e, \"000000000\");\n this.editForm.sort = e;\n },\n // 修改排序报错\n sureChange: function sureChange() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {\n var _yield$doEdit, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.editStatus = 0;\n console.log(_this2.editForm, \"课程列表中修改排序传递参数\");\n\n if (!(_this2.oldSort !== _this2.editForm.sort)) {\n _context2.next = 12;\n break;\n }\n\n _context2.next = 5;\n return (0, _index.doEdit)(_this2.editForm);\n\n case 5:\n _yield$doEdit = _context2.sent;\n message = _yield$doEdit.message;\n console.log(message, \"message\"); // location.reload()\n\n _this2.$message({\n message: message,\n type: \"success\"\n });\n\n _this2.getList();\n\n _context2.next = 13;\n break;\n\n case 12:\n return _context2.abrupt(\"return\");\n\n case 13:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n //跳转视频列表页面\n courseZhang: function courseZhang(row) {\n console.log(row.id, \"课程列表页跳转到视频列表页row.id就是课程id\");\n this.$router.push({\n path: \"/video/chapter\",\n query: {\n id: row.id\n }\n });\n },\n //观看记录\n courseGuankan: function courseGuankan(row) {\n this.$router.push({\n path: \"/video/watchRecord\",\n query: {\n id: row.id\n }\n });\n },\n // 跳转到课程详情页面\n courseVideo: function courseVideo(row) {\n console.log(row.id, \"课程列表页跳转到课程详情页row.id就是课程id\");\n this.$router.push({\n path: \"/video/videoList\",\n query: {\n id: row.id\n }\n });\n },\n courseDetail: function courseDetail(row) {\n console.log(row.id, \"课程列表页跳转到课程详情页row.id就是课程id\");\n this.$router.push({\n path: \"/video/courseDetail\",\n query: {\n id: row.id,\n slug: row.slug\n }\n });\n },\n // 打开到添加编辑弹窗--》并传递参数到编辑中 暂时不要求有\n handleEdit: function handleEdit(row) {\n console.log(row, row.id, \"点击000\");\n\n if (row.id) {\n this.$refs[\"edit\"].showEdit(row);\n } else {\n this.$refs[\"edit\"].showEdit();\n }\n },\n // 删除\n handleDelete: function handleDelete(row) {\n var _this3 = this;\n\n if (row.id) {\n this.$confirm(\"你确定要删除当前项吗, 是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {\n var data, _yield$doDelete, message;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n data = {\n id: row.id\n };\n _context3.next = 3;\n return (0, _index.doDelete)(data);\n\n case 3:\n _yield$doDelete = _context3.sent;\n message = _yield$doDelete.message;\n\n _this3.$message({\n message: message,\n type: \"success\"\n });\n\n _context3.next = 8;\n return _this3.getCourseList();\n\n case 8:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n })));\n }\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryForm.per_page = val;\n this.getCourseList();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryForm.page = val;\n this.getCourseList();\n },\n queryData: function queryData() {\n this.queryForm.page = 1;\n this.getCourseList();\n },\n // 获取课程列表数据\n getCourseList: function getCourseList() {\n var _this4 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {\n var _yield$courseList, data, list, meta;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _this4.listLoading = true;\n _context4.next = 3;\n return (0, _index.courseList)(_this4.queryForm);\n\n case 3:\n _yield$courseList = _context4.sent;\n data = _yield$courseList.data;\n console.log(data, \"课程列表信息\");\n list = data.list, meta = data.meta;\n console.log(list);\n _this4.list = data.data;\n _this4.total = meta.pagination.total;\n _this4.listLoading = false;\n\n case 11:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/video/index.vue?./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.10.0@vue-loader/lib/index.js?!./src/views/video/videoDetail.vue?vue&type=script&lang=js&": /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.5@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./src/views/video/videoDetail.vue?vue&type=script&lang=js& ***! \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _typeof2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/typeof.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/typeof.js\"));\n\nvar _regeneratorRuntime2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/regeneratorRuntime.js\"));\n\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! ./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js */ \"./node_modules/_@babel_runtime@7.19.0@@babel/runtime/helpers/asyncToGenerator.js\"));\n\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.string.includes.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.filter.js\");\n\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.object.to-string.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.push.js\");\n\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.number.constructor.js\");\n\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.array.concat.js\");\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.symbol.js\");\n\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"./node_modules/_core-js@3.26.1@core-js/modules/es.symbol.description.js\");\n\nvar _video = __webpack_require__(/*! ./api/video */ \"./src/views/video/api/video.js\");\n\nvar _course_detail = __webpack_require__(/*! ./api/course_detail */ \"./src/views/video/api/course_detail.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar myPlayer = \"\";\nvar playTimeInterval = \"\"; //播放事件定时器\n\nvar _default = {\n data: function data() {\n return {\n value1: 3.5,\n index: 1,\n isNav: true,\n course_zhangjie: [],\n video_slug: \"\",\n current_zhedie: [],\n ban_drag: 0,\n //当前播放视频是否禁止拖动\n time: 3,\n //倒计时\n isFull: false,\n //是否全屏\n loading: true,\n vIndex: 0,\n //当前播放视频索引\n cIndex: 0,\n //当前播放视频所属章节索引\n zhUrl: \"\",\n //中文字幕地址\n enUrl: \"\",\n //英文字幕地址\n nextVideo: false,\n dialogVisible: false,\n activeName: \"zero\",\n directory: [],\n //章节视频列表\n videoList: [],\n //当前章节的视频列表\n isLearn: \"\",\n //是否正在学习中\n courseId: \"\",\n //课程id\n videoId: \"\",\n //正在学习的视频id\n isWatch: 0,\n //是否完成学习\n videoTitle: \"\",\n //正在播放的视频名称\n playTime: 0,\n //视频播放秒数\n queryForm: {\n page: 1,\n per_page: 15\n },\n show: false,\n form: {\n danmu: \"admin-pro\"\n },\n activeNames: [\"first\"],\n player: null,\n videoArr: [],\n times: ''\n };\n },\n watch: {\n $route: \"getCourseDetail\"\n },\n // computed: {\n // ...mapGetters({\n // token: 'user/token',\n // }),\n // },\n mounted: function mounted() {\n // this.player = this.$refs.player.dp\n this.nextVideo = false;\n console.log(\"测试\");\n this.initVideo(); // clearInterval(this.playTimeInterval)\n // console.log(this.player.video.paused, 'ppppp')\n },\n beforeDestroy: function beforeDestroy() {\n // 组件销毁时,清除播放器\n myPlayer.dispose(); // 该方法会重置videojs的内部状态并移除dom\n\n clearInterval(playTimeInterval);\n\n if (myPlayer) {\n console.log(\"清除视频播放组件\");\n myPlayer.dispose(); // 该方法会重置videojs的内部状态并移除dom\n }\n },\n destroyed: function destroyed() {\n clearInterval(playTimeInterval);\n console.log(\"清除视频播放组件\");\n },\n created: function created() {\n var _this = this;\n\n var route = this.$route;\n this.courseId = route.query.course_id;\n this.video_slug = route.query.video_slug;\n this.course_slug = route.query.slug;\n this.isLearn = this.videoId = route.query.video_id;\n console.log(this.videoId, this.courseId, this.video_slug, \"123\");\n this.nextVideo = false;\n console.log(this.vIndex, \"YYYYYYYYYYYYYY\");\n clearInterval(playTimeInterval);\n this.getCourseDetail();\n this.getSetting();\n this.show = false;\n this.$nextTick(function () {\n _this.show = true;\n });\n },\n methods: {\n //章节折叠\n zhedie: function zhedie(e) {\n if (this.current_zhedie.includes(e)) {\n this.current_zhedie = this.current_zhedie.filter(function (item) {\n return item != e;\n });\n } else {\n this.current_zhedie.push(e);\n }\n },\n getSetting: function getSetting() {\n var _this2 = this;\n\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n var _yield$_getSetting, data;\n\n return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _video.getSetting)({\n keys: [\"SENG_VIDEO_MSG\"]\n });\n\n case 2:\n _yield$_getSetting = _context.sent;\n data = _yield$_getSetting.data;\n console.log(data);\n _this2.times = Number(data.SENG_VIDEO_MSG);\n console.log(_this2.times);\n\n case 7:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n //点击重新播放\n refLook: function refLook() {\n this.cIndex = 0;\n this.vIndex = 0;\n this.videoList = this.directory[this.cIndex].children;\n console.log(this.video_list, \"list\"); //let video_list = this.directory[this.cIndex].children\n\n this.isLearn = this.videoId = this.videoList[this.vIndex].id; // this.isLearn = this.video_slug = this.videoList[this.vIndex].slug\n\n this.lookVideo(); //this.videoComments()\n },\n initVideo: function initVideo() {\n var that = this; //初始化视频方法\n\n myPlayer = this.$video(document.getElementById(\"myVideo\"), {\n language: \"zh-CN\",\n //确定播放器是否具有用户可以与之交互的控件。没有控件,启动视频播放的唯一方法是使用autoplay属性或通过Player API。\n controls: true,\n //自动播放属性,muted:静音播放\n autoplay: \"autoplay\",\n //建议浏览器是否应在