{"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\\oss\\oss-config.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\oss\\oss-config.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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 debounce from 'lodash/debounce'\nexport default {\n data () {\n return {\n visible: false,\n dataForm: {\n type: 0,\n qiniuDomain: '',\n qiniuPrefix: '',\n qiniuAccessKey: '',\n qiniuSecretKey: '',\n qiniuBucketName: '',\n aliyunDomain: '',\n aliyunPrefix: '',\n aliyunEndPoint: '',\n aliyunAccessKeyId: '',\n aliyunAccessKeySecret: '',\n aliyunBucketName: '',\n qcloudDomain: '',\n qcloudPrefix: '',\n qcloudAppId: 0,\n qcloudSecretId: '',\n qcloudSecretKey: '',\n qcloudBucketName: '',\n qcloudRegion: '',\n fastdfsDomain: '',\n localDomain: '',\n localPrefix: '',\n localPath: ''\n }\n }\n },\n computed: {\n dataRule () {\n return {\n qiniuDomain: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n qiniuAccessKey: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n qiniuSecretKey: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n qiniuBucketName: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n aliyunDomain: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n aliyunEndPoint: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n aliyunAccessKeyId: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n aliyunAccessKeySecret: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n aliyunBucketName: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n qcloudDomain: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n qcloudAppId: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n qcloudSecretId: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n qcloudSecretKey: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n qcloudBucketName: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n qcloudRegion: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n fastdfsDomain: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n localDomain: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n localPath: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n minioEndPoint: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n minioAccessKey: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n minioSecretKey: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n minioBucketName: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ]\n }\n }\n },\n watch: {\n 'dataForm.type' (val) {\n this.$refs['dataForm'].clearValidate()\n }\n },\n methods: {\n init () {\n this.visible = true\n this.$nextTick(() => {\n this.$refs['dataForm'].resetFields()\n this.getInfo()\n })\n },\n // 获取信息\n getInfo () {\n this.$http.get('/oss/file/info').then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n this.dataForm = res.data\n }).catch(() => {})\n },\n // 表单提交\n dataFormSubmitHandle: debounce(function () {\n this.$refs['dataForm'].validate((valid) => {\n if (!valid) {\n return false\n }\n this.$http.post('/oss/file', this.dataForm).then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n this.$message({\n message: this.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: () => {\n this.visible = false\n this.$emit('refreshDataList')\n }\n })\n }).catch(() => {})\n })\n }, 1000, { 'leading': true, 'trailing': false })\n }\n}\n",{"version":3,"sources":["oss-config.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8HA;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;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","file":"oss-config.vue","sourceRoot":"src/views/modules/oss","sourcesContent":["\n\n\n"]}]}