{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\sys\\access-version-add.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\sys\\access-version-add.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.regexp.search\";\nimport _defineProperty from \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { getDictDataList, treeDataTranslate } from '@/utils';\nimport debounce from 'lodash/debounce';\nimport Cookies from 'js-cookie';\nexport default {\n data: function data() {\n return {\n dialogVisible: false,\n loading: false,\n uploadLoading: false,\n dataForm: {\n aeMainboard: '',\n aevPackname: '',\n aevVersion: '',\n aevVersioncode: '',\n aevUpdatefilepath: '',\n aevNote: ''\n },\n eightInchesEquipTypeList: getDictDataList('eightInchesEquipType'),\n rules: {\n aeMainboard: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n aevPackname: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n aevVersion: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n aevVersioncode: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }, {\n validator: function validator(rule, value, callback) {\n if (!/^[0-9]+$/.test(value)) {\n return callback(new Error(\"版本号必须全部为数字\"));\n }\n\n callback();\n },\n trigger: ['blur', 'change']\n }],\n aevUpdatefilepath: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n aevNote: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }]\n },\n baseUrl: window.SITE_CONFIG['apiURL'],\n uploadUrl: '/system/scaidooreightversion/uploadapkfile',\n uploadHeaders: {}\n };\n },\n created: function created() {\n this.uploadHeaders = {\n Authorization: 'Bearer ' + Cookies.get('access_token') || ''\n };\n },\n methods: {\n init: function init(data) {\n var _this = this;\n\n this.dialogVisible = true; // 新增\n\n this.dataForm = {\n aeMainboard: '',\n aevPackname: '',\n aevVersion: '',\n aevVersioncode: '',\n aevUpdatefilepath: '',\n aevNote: ''\n };\n this.$nextTick(function () {\n _this.$refs['dataForm'].clearValidate();\n });\n },\n submitInfo: debounce(function () {\n var _this2 = this;\n\n this.$refs['dataForm'].validate(function (valid) {\n if (!valid) {\n return false;\n }\n\n _this2.loading = true;\n\n var submitData = _objectSpread({}, _this2.dataForm);\n\n _this2.$http({\n url: \"/system/scaidooreightversion\",\n method: 'post',\n data: submitData\n }).then(function (_ref) {\n var data = _ref.data;\n\n if (data.code != 0) {\n return _this2.$message.error(data.msg);\n }\n\n _this2.dialogVisible = false;\n\n if (_this2.type == 'post') {\n _this2.$parent.$parent.resetForm('ruleForm');\n } else {\n _this2.$parent.$parent.search();\n }\n\n _this2.$message.success(data.msg || '操作成功');\n }).finally(function () {\n _this2.loading = false;\n });\n });\n }, 1000),\n beforeUpload: function beforeUpload(file) {\n this.uploadLoading = true;\n return true;\n },\n handleError: function handleError(err, file) {\n this.uploadLoading = false;\n this.$message.error(err);\n },\n handleSuccess: function handleSuccess(res) {\n this.uploadLoading = false;\n\n if (res.code != 0) {\n return this.$message.error(res.msg);\n }\n\n this.dataForm.aevUpdatefilepath = res.data;\n this.$message.success(res.msg || '上传成功');\n }\n }\n};",{"version":3,"sources":["access-version-add.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA,SAAA,eAAA,EAAA,iBAAA,QAAA,SAAA;AACA,OAAA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