forked from zhurui/management
1 line
14 KiB
JSON
1 line
14 KiB
JSON
|
{"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
|