{"remainingRequest":"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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(){\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, message:'请选择', trigger: ['blur','change']}\n ],\n aevPackname:[\n {required: true, message:'请输入', trigger: ['blur','change']},\n ],\n aevVersion:[\n {required: true, message:'请输入', trigger: ['blur','change']},\n ],\n aevVersioncode:[\n {required: true, message:'请输入', trigger: ['blur','change']},\n {validator: (rule, value, callback)=>{\n if (!/^[0-9]+$/.test(value)) {\n return callback(new Error(\"版本号必须全部为数字\"));\n }\n callback()\n }, trigger: ['blur','change']}\n ],\n aevUpdatefilepath:[\n {required: true, message:'请输入', trigger: ['blur','change']}\n ],\n aevNote:[\n {required: true, message:'请选择', trigger: ['blur','change']}\n ]\n },\n baseUrl: window.SITE_CONFIG['apiURL'],\n uploadUrl:'/system/scaidooreightversion/uploadapkfile',\n uploadHeaders: {},\n }\n },\n created() {\n this.uploadHeaders = {\n Authorization: 'Bearer ' + Cookies.get('access_token') || ''\n }\n },\n methods:{\n init(data){\n this.dialogVisible=true;\n // 新增\n this.dataForm={\n aeMainboard:'',\n aevPackname:'',\n aevVersion:'',\n aevVersioncode:'',\n aevUpdatefilepath:'',\n aevNote:'',\n }\n this.$nextTick(()=>{\n this.$refs['dataForm'].clearValidate()\n })\n },\n submitInfo:debounce(function(){\n this.$refs['dataForm'].validate((valid)=>{\n if(!valid){\n return false\n }\n this.loading=true;\n let submitData={\n ...this.dataForm,\n }\n this.$http({\n url:\"/system/scaidooreightversion\",\n method:'post',\n data:submitData\n }).then(({data})=>{\n if(data.code!=0){\n return this.$message.error(data.msg)\n }\n this.dialogVisible=false;\n if(this.type=='post'){\n this.$parent.$parent.resetForm('ruleForm');\n }\n else{\n this.$parent.$parent.search();\n }\n this.$message.success(data.msg||'操作成功')\n }).finally(()=>{\n this.loading=false;\n })\n })\n \n },1000),\n beforeUpload(file){\n this.uploadLoading=true;\n return true\n },\n handleError(err,file){\n this.uploadLoading=false;\n this.$message.error(err)\n },\n handleSuccess(res) {\n this.uploadLoading=false;\n\t\t\t\tif (res.code != 0) {\n return this.$message.error(res.msg)\n } \n this.dataForm.aevUpdatefilepath=res.data;\n this.$message.success(res.msg||'上传成功')\n\t\t\t},\n }\n}\n",{"version":3,"sources":["access-version-add.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"access-version-add.vue","sourceRoot":"src/views/modules/sys","sourcesContent":["\n\n"]}]}