You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
20 KiB

{"remainingRequest":"D:\\code\\vue\\front\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\code\\vue\\front\\src\\pages\\register\\register.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\code\\vue\\front\\src\\pages\\register\\register.vue","mtime":1709633805000},{"path":"D:\\code\\vue\\front\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\code\\vue\\front\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\code\\vue\\front\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\code\\vue\\front\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgpleHBvcnQgZGVmYXVsdCB7CiAgICAvL+aVsOaNrumbhuWQiAogICAgZGF0YSgpIHsKCQlyZXR1cm4gewogICAgICAgICAgICBwYWdlRmxhZyA6ICcnLAoJCQl0YWJsZU5hbWU6ICcnLAoJCQlyZWdpc3RlckZvcm06IHt9LA0KCQkJZm9yZ2V0Rm9ybToge30sCgkJCXJ1bGVzOiB7fSwKCQkJcmVxdWlyZWRSdWxlczoge30sCiAgICAgICAgICAgIHlvbmdodXhpbmdiaWVPcHRpb25zOiBbXSwKCQl9CiAgICB9LAoJbW91bnRlZCgpIHsNCgkJaWYodGhpcy4kcm91dGUucXVlcnkucGFnZUZsYWc9PSdyZWdpc3Rlcicpew0KCQkJdGhpcy50YWJsZU5hbWUgPSB0aGlzLiRyb3V0ZS5xdWVyeS5yb2xlOw0KCQkJaWYodGhpcy50YWJsZU5hbWU9PSd5b25naHUnKXsNCgkJCQl0aGlzLnJlZ2lzdGVyRm9ybSA9IHsNCgkJCQkJeW9uZ2h1emhhbmdoYW86ICcnLA0KCQkJCQltaW1hOiAnJywNCgkJCQkJbWltYTI6ICcnLA0KCQkJCQl5b25naHV4aW5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DnlKjmiLflp5PlkI3kuI3og73kuLrnqbpgKTsKCQkJCQlyZXR1cm4KCQkJCX0KCQkJCQlpZihgeW9uZ2h1YCA9PSB0aGlzLnRhYmxlTmFtZSAmJiB0aGlzLnJlZ2lzdGVyRm9ybS5kaWFuaHVhICYmKCF0aGlzLiR2YWxpZGF0ZS5pc01vYmlsZTIodGhpcy5yZWdpc3RlckZvcm0uZGlhbmh1YSkpKXsNCgkJCQkJCXRoaXMuJG1lc3NhZ2UuZXJyb3IoYOeUteivneW6lOi+k+WFpeaJi+acuuagvOW8j2ApOw0KCQkJCQkJcmV0dXJuDQoJCQkJCX0NCiAgICAgICAgICAgIHRoaXMuJGh0dHAucG9zdCh1cmwsIHRoaXMucmVnaXN0ZXJGb3JtKS50aGVuKHJlcyA9PiB7CiAgICAgICAgICAgICAgaWYgKHJlcy5kYXRhLmNvZGUgPT09IDApIHsKICAgICAgICAgICAgICAgIHRoaXMuJG1lc3NhZ2UoewogICAgICAgICAgICAgICAgICBtZXNzYWdlOiAn5rOo5YaM5oiQ5YqfJywKICAgICAgICAgICAgICAgICAgdHlwZTogJ3N1Y2Nlc3MnLAogICAgICAgICAgICAgICAgICBkdXJhdGlvbjogMTUwMCwKICAgICAgICAgICAgICAgICAgb25DbG9zZTogKCkgPT4gewogICAgICAgICAgICAgICAgICAgIHRoaXMuJHJvdXRlci5wdXNoKCcvbG9naW4nKTsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHRoaXMuJG1lc3NhZ2UuZXJyb3IocmVzLmRhdGEubXNnKTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgfQogICAgICAgIH0pOwogICAgICB9LAogICAgICByZXNldEZvcm0oZm9ybU5hbWUpIHsKICAgICAgICB0aGlzLiRyZWZzW2Zvcm1OYW1lXS5yZXNldEZpZWxkcygpOwogICAgICB9CiAgICB9CiAgfQo="},{"version":3,"sources":["register.vue"],"names":[],"mappings":";;AA8DA;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;;;AAGA;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":"register.vue","sourceRoot":"src/pages/register","sourcesContent":["<template>\n\t<div>\n\n\t<div class=\"container\" :style='{\"minHeight\":\"100vh\",\"alignItems\":\"center\",\"background\":\"url(http://codegen.caihongy.cn/20230918/e4c3de45e8454be08468ba32acc9108f.jpg)\",\"display\":\"flex\",\"width\":\"100%\",\"backgroundSize\":\"cover\",\"backgroundPosition\":\"center center\",\"backgroundRepeat\":\"no-repeat\",\"justifyContent\":\"center\"}'>\n\t\t<el-form class='rgs-form' v-if=\"pageFlag=='register'\" :style='{\"width\":\"30vw\",\"padding\":\"0px\",\"margin\":\"0 0 0 50vw\",\"borderRadius\":\"0px\",\"background\":\"#fff\",\"height\":\"auto\"}' ref=\"registerForm\" :model=\"registerForm\" :rules=\"rules\">\n\t\t\t<div v-if=\"false\" :style='{\"width\":\"100%\",\"margin\":\"0 0 10px 0\",\"lineHeight\":\"44px\",\"fontSize\":\"20px\",\"color\":\"rgba(64, 158, 255, 1)\",\"textAlign\":\"center\"}'>USER / REGISTER</div>\n\t\t\t<div v-if=\"true\" :style='{\"width\":\"80%\",\"margin\":\"20px auto 10px\",\"lineHeight\":\"44px\",\"fontSize\":\"28px\",\"color\":\"#333\",\"textAlign\":\"left\"}'>基于推荐算法的在线课程推荐系统设计与实现注册</p></div>\n\t\t\t<el-form-item :style='{\"width\":\"auto\",\"padding\":\"0\",\"margin\":\"0 auto 15px 10%\",\"background\":\"none\",\"height\":\"auto\"}' v-if=\"tableName=='yonghu'\" prop=\"yonghuzhanghao\">\n\t\t\t\t<div v-if=\"true\" :style='{\"width\":\"100%\",\"lineHeight\":\"36px\",\"fontSize\":\"14px\",\"color\":\"#333\"}' :class=\"changeRules('yonghuzhanghao')?'required':''\">用户账号:</div>\n\t\t\t\t<el-input v-model=\"registerForm.yonghuzhanghao\" placeholder=\"请输入用户账号\" />\n\t\t\t</el-form-item>\n\t\t\t<el-form-item :style='{\"width\":\"auto\",\"padding\":\"0\",\"margin\":\"0 auto 15px 10%\",\"background\":\"none\",\"height\":\"auto\"}' v-if=\"tableName=='yonghu'\" prop=\"mima\">\n\t\t\t\t<div v-if=\"true\" :style='{\"width\":\"100%\",\"lineHeight\":\"36px\",\"fontSize\":\"14px\",\"color\":\"#333\"}' :class=\"changeRules('mima')?'required':''\">密码:</div>\n\t\t\t\t<el-input v-model=\"registerForm.mima\" type=\"password\" placeholder=\"请输入密码\" />\n\t\t\t</el-form-item>\n\t\t\t<el-form-item :style='{\"width\":\"auto\",\"padding\":\"0\",\"margin\":\"0 auto 15px 10%\",\"background\":\"none\",\"height\":\"auto\"}' v-if=\"tableName=='yonghu'\" prop=\"mima2\">\n\t\t\t\t<div v-if=\"true\" :style='{\"width\":\"100%\",\"lineHeight\":\"36px\",\"fontSize\":\"14px\",\"color\":\"#333\"}' :class=\"changeRules('mima')?'required':''\">确认密码:</div>\n\t\t\t\t<el-input v-model=\"registerForm.mima2\" type=\"password\" placeholder=\"请再次输入密码\" />\n\t\t\t</el-form-item>\n\t\t\t<el-form-item :style='{\"width\":\"auto\",\"padding\":\"0\",\"margin\":\"0 auto 15px 10%\",\"background\":\"none\",\"height\":\"auto\"}' v-if=\"tableName=='yonghu'\" prop=\"yonghuxingming\">\n\t\t\t\t<div v-if=\"true\" :style='{\"width\":\"100%\",\"lineHeight\":\"36px\",\"fontSize\":\"14px\",\"color\":\"#333\"}' :class=\"changeRules('yonghuxingming')?'required':''\">用户姓名:</div>\n\t\t\t\t<el-input v-model=\"registerForm.yonghuxingming\" placeholder=\"请输入用户姓名\" />\n\t\t\t</el-form-item>\n\t\t\t<el-form-item :style='{\"width\":\"auto\",\"padding\":\"0\",\"margin\":\"0 auto 15px 10%\",\"background\":\"none\",\"height\":\"auto\"}' v-if=\"tableName=='yonghu'\" prop=\"xingbie\">\n\t\t\t\t<div v-if=\"true\" :style='{\"width\":\"100%\",\"lineHeight\":\"36px\",\"fontSize\":\"14px\",\"color\":\"#333\"}' :class=\"changeRules('xingbie')?'required':''\">性别:</div>\n <el-select v-model=\"registerForm.xingbie\" placeholder=\"请选择性别\" >\n <el-option\n v-for=\"(item,index) in yonghuxingbieOptions\"\n :key=\"index\"\n :label=\"item\"\n :value=\"item\">\n </el-option>\n </el-select>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item :style='{\"width\":\"auto\",\"padding\":\"0\",\"margin\":\"0 auto 15px 10%\",\"background\":\"none\",\"height\":\"auto\"}' v-if=\"tableName=='yonghu'\" prop=\"dianhua\">\n\t\t\t\t<div v-if=\"true\" :style='{\"width\":\"100%\",\"lineHeight\":\"36px\",\"fontSize\":\"14px\",\"color\":\"#333\"}' :class=\"changeRules('dianhua')?'required':''\">电话:</div>\n\t\t\t\t<el-input v-model=\"registerForm.dianhua\" placeholder=\"请输入电话\" />\n\t\t\t</el-form-item>\n\t\t\t<el-form-item :style='{\"width\":\"auto\",\"padding\":\"0\",\"margin\":\"0 auto 15px 10%\",\"background\":\"none\",\"height\":\"auto\"}' v-if=\"tableName=='yonghu'\" prop=\"touxiang\">\n\t\t\t\t<div v-if=\"true\" :style='{\"width\":\"100%\",\"lineHeight\":\"36px\",\"fontSize\":\"14px\",\"color\":\"#333\"}' :class=\"changeRules('touxiang')?'required':''\">头像:</div>\n <file-upload\n\t\t\t\t\ttip=\"点击上传头像\"\n\t\t\t\t\taction=\"file/upload\"\n\t\t\t\t\t:limit=\"1\"\n\t\t\t\t\t:multiple=\"true\"\n\t\t\t\t\t:fileUrls=\"registerForm.touxiang?registerForm.touxiang:''\"\n\t\t\t\t\t@change=\"yonghutouxiangUploadChange\"\n\t\t\t\t></file-upload>\n\t\t\t</el-form-item>\r\n\t\t\t<el-button :style='{\"border\":\"0\",\"cursor\":\"pointer\",\"padding\":\"0 10px\",\"margin\":\"20px auto 5px 10%\",\"color\":\"#fff\",\"display\":\"block\",\"minWidth\":\"400px\",\"outline\":\"none\",\"borderRadius\":\"4px\",\"background\":\"#ffc000\",\"width\":\"auto\",\"fontSize\":\"16px\",\"height\":\"44px\"}' type=\"primary\" @click=\"submitForm('registerForm')\">注册</el-button>\n\t\t\t<el-button :style='{\"border\":\"0\",\"cursor\":\"pointer\",\"padding\":\"0 10px\",\"margin\":\"0px auto 0px 10%\",\"color\":\"#666\",\"textAlign\":\"right\",\"display\":\"block\",\"minWidth\":\"400px\",\"outline\":\"none\",\"borderRadius\":\"8px\",\"background\":\"none\",\"width\":\"auto\",\"fontSize\":\"16px\",\"height\":\"44px\"}' @click=\"resetForm('registerForm')\">重置</el-button>\n\t\t\t<router-link :style='{\"cursor\":\"pointer\",\"padding\":\"0 10%\",\"margin\":\"0 0 40px\",\"color\":\"rgba(159, 159, 159, 1)\",\"display\":\"inline-block\",\"lineHeight\":\"1\",\"fontSize\":\"14px\",\"textDecoration\":\"none\"}' to=\"/login\">已有账户登录</router-link>\n\t\t\t<div class=\"idea1\" :style='{\"width\":\"100%\",\"background\":\"red\",\"display\":\"none\",\"height\":\"40px\"}'></div>\n\t\t\t<div class=\"idea2\" :style='{\"width\":\"100%\",\"background\":\"blue\",\"display\":\"none\",\"height\":\"40px\"}'></div>\n\t\t</el-form>\n </div>\n </div>\n</div>\n</template>\n\n<script>\n\nexport default {\n //数据集合\n data() {\n\t\treturn {\n pageFlag : '',\n\t\t\ttableName: '',\n\t\t\tregisterForm: {},\r\n\t\t\tforgetForm: {},\n\t\t\trules: {},\n\t\t\trequiredRules: {},\n yonghuxingbieOptions: [],\n\t\t}\n },\n\tmounted() {\r\n\t\tif(this.$route.query.pageFlag=='register'){\r\n\t\t\tthis.tableName = this.$route.query.role;\r\n\t\t\tif(this.tableName=='yonghu'){\r\n\t\t\t\tthis.registerForm = {\r\n\t\t\t\t\tyonghuzhanghao: '',\r\n\t\t\t\t\tmima: '',\r\n\t\t\t\t\tmima2: '',\r\n\t\t\t\t\tyonghuxingming: '',\r\n\t\t\t\t\txingbie: '',\r\n\t\t\t\t\tdianhua: '',\r\n\t\t\t\t\ttouxiang: '',\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ('yonghu' == this.tableName) {\n\t\t\t\tthis.requiredRules.yonghuzhanghao = [{ required: true, message: '请输入用户账号', trigger: 'blur' }]\n\t\t\t}\n\t\t\tif ('yonghu' == this.tableName) {\n\t\t\t\tthis.requiredRules.mima = [{ required: true, message: '请输入密码', trigger: 'blur' }]\n\t\t\t}\n\t\t\tif ('yonghu' == this.tableName) {\n\t\t\t\tthis.requiredRules.yonghuxingming = [{ required: true, message: '请输入用户姓名', trigger: 'blur' }]\n\t\t\t}\n\t\t}\n\t},\n created() {\n\t\tthis.pageFlag = this.$route.query.pageFlag;\r\n\t\tif(this.$route.query.pageFlag=='register'){\n\t\t if ('yonghu' == this.tableName) {\n\t\t\tthis.rules.yonghuzhanghao = [{ required: true, message: '请输入用户账号', trigger: 'blur' }];\n\t\t }\n\t\t if ('yonghu' == this.tableName) {\n\t\t\tthis.rules.mima = [{ required: true, message: '请输入密码', trigger: 'blur' }];\n\t\t }\n\t\t if ('yonghu' == this.tableName) {\n\t\t\tthis.rules.yonghuxingming = [{ required: true, message: '请输入用户姓名', trigger: 'blur' }];\n\t\t }\n\t\t\tthis.yonghuxingbieOptions = \"男,女\".split(',');\n\t\t if ('yonghu' == this.tableName) {\n\t\t\tthis.rules.dianhua = [{ required: true, validator: this.$validate.isMobile, trigger: 'blur' }];\n\t\t }\n\t\t}\n },\n //方法集合\n methods: {\n\t\tchangeRules(name){\n\t\t\tif(this.requiredRules[name]){\n\t\t\t\treturn true\n\t\t\t}\n\t\t\treturn false\n\t\t},\n // 获取uuid\n getUUID () {\n return new Date().getTime();\n },\n // 下二随\n yonghutouxiangUploadChange(fileUrls) {\n this.registerForm.touxiang = fileUrls.replace(new RegExp(this.$config.baseUrl,\"g\"),\"\");\n },\n\n // 多级联动参数\n\n\n submitForm(formName) {\n this.$refs[formName].validate((valid) => {\n if (valid) {\n var url=this.tableName+\"/register\";\n\t\t\t\tif((!this.registerForm.yonghuzhanghao) && `yonghu` == this.tableName){\n\t\t\t\t\tthis.$message.error(`用户账号不能为空`);\n\t\t\t\t\treturn\n\t\t\t\t}\n if(`yonghu` == this.tableName && this.registerForm.mima!=this.registerForm.mima2) {\n this.$message.error(`两次密码输入不一致`);\n return\n }\n\t\t\t\tif((!this.registerForm.mima) && `yonghu` == this.tableName){\n\t\t\t\t\tthis.$message.error(`密码不能为空`);\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tif((!this.registerForm.yonghuxingming) && `yonghu` == this.tableName){\n\t\t\t\t\tthis.$message.error(`用户姓名不能为空`);\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\t\tif(`yonghu` == this.tableName && this.registerForm.dianhua &&(!this.$validate.isMobile2(this.registerForm.dianhua))){\r\n\t\t\t\t\t\tthis.$message.error(`电话应输入手机格式`);\r\n\t\t\t\t\t\treturn\r\n\t\t\t\t\t}\r\n this.$http.post(url, this.registerForm).then(res => {\n if (res.data.code === 0) {\n this.$message({\n message: '注册成功',\n type: 'success',\n duration: 1500,\n onClose: () => {\n this.$router.push('/login');\n }\n });\n } else {\n this.$message.error(res.data.msg);\n }\n });\n } else {\n return false;\n }\n });\n },\n resetForm(formName) {\n this.$refs[formName].resetFields();\n }\n }\n }\n</script>\n\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\n\t.container {\n\t\tposition: relative;\n\t\tbackground: url(http://codegen.caihongy.cn/20230918/e4c3de45e8454be08468ba32acc9108f.jpg);\n\t\t\n\t\t.el-input {\n\t\t width: auto;\n\t\t}\n\t\t\n\t\t.el-date-editor.el-input {\n\t\t\twidth: auto;\n\t\t}\n\t\t\n\t\t.el-form-item /deep/ .el-form-item__content {\n\t\t\t\t\t\tdisplay: block;\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t}\n\t\t\n\t\t.rgs-form .el-input /deep/ .el-input__inner {\n\t\t\t\t\t\tborder: 1px solid #ddd;\n\t\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\t\tpadding: 0 10px;\n\t\t\t\t\t\toutline: none;\n\t\t\t\t\t\tcolor: #666;\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\tmin-width: 400px;\n\t\t\t\t\t\theight: 40px;\n\t\t\t\t\t}\n\t\t\n\t\t.rgs-form .el-select /deep/ .el-input__inner {\n\t\t\t\t\t\tborder: 1px solid #ddd;\n\t\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\t\tpadding: 0 10px;\n\t\t\t\t\t\toutline: none;\n\t\t\t\t\t\tcolor: #666;\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\tmin-width: 400px;\n\t\t\t\t\t\theight: 40px;\n\t\t\t\t\t}\n\t\t\n\t\t.rgs-form .el-date-editor /deep/ .el-input__inner {\n\t\t\t\t\t\tborder: 1px solid #ddd;\n\t\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\t\tpadding: 0 10px 0 30px;\n\t\t\t\t\t\toutline: none;\n\t\t\t\t\t\tcolor: #666;\n\t\t\t\t\t\twidth: 1;\n\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\tmin-width: 400px;\n\t\t\t\t\t\theight: 40px;\n\t\t\t\t\t}\n\t\t\n\t\t.rgs-form .el-date-editor /deep/ .el-input__inner {\n\t\t\t\t\t\tborder: 1px solid #ddd;\n\t\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\t\tpadding: 0 10px 0 30px;\n\t\t\t\t\t\toutline: none;\n\t\t\t\t\t\tcolor: #666;\n\t\t\t\t\t\twidth: 1;\n\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\tmin-width: 400px;\n\t\t\t\t\t\theight: 40px;\n\t\t\t\t\t}\n\t\t\n\t\t.rgs-form /deep/ .el-upload--picture-card {\n\t\t\tbackground: transparent;\n\t\t\tborder: 0;\n\t\t\tborder-radius: 0;\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\t\t\tline-height: initial;\n\t\t\tvertical-align: middle;\n\t\t}\n\t\t\n\t\t.rgs-form /deep/ .upload .upload-img {\n\t\t \t\t border: 1px solid #ddd;\n\t\t \t\t cursor: pointer;\n\t\t \t\t border-radius: 4px;\n\t\t \t\t color: #999;\n\t\t \t\t width: 160px;\n\t\t \t\t font-size: 32px;\n\t\t \t\t line-height: 80px;\n\t\t \t\t text-align: center;\n\t\t \t\t height: 80px;\n\t\t \t\t}\n\t\t\n\t\t.rgs-form /deep/ .el-upload-list .el-upload-list__item {\n\t\t \t\t border: 1px solid #ddd;\n\t\t \t\t cursor: pointer;\n\t\t \t\t border-radius: 4px;\n\t\t \t\t color: #999;\n\t\t \t\t width: 160px;\n\t\t \t\t font-size: 32px;\n\t\t \t\t line-height: 80px;\n\t\t \t\t text-align: center;\n\t\t \t\t height: 80px;\n\t\t \t\t}\n\t\t\n\t\t.rgs-form /deep/ .el-upload .el-icon-plus {\n\t\t \t\t border: 1px solid #ddd;\n\t\t \t\t cursor: pointer;\n\t\t \t\t border-radius: 4px;\n\t\t \t\t color: #999;\n\t\t \t\t width: 160px;\n\t\t \t\t font-size: 32px;\n\t\t \t\t line-height: 80px;\n\t\t \t\t text-align: center;\n\t\t \t\t height: 80px;\n\t\t \t\t}\n\t}\n\t.required {\n\t\tposition: relative;\n\t}\n\t.required::after{\n\t\t\t\tcolor: red;\n\t\t\t\tleft: -10px;\n\t\t\t\tposition: absolute;\n\t\t\t\tcontent: \"*\";\n\t\t\t}\n</style>\n"]}]}