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.
homestay/minsu/admin/node_modules/.cache/vue-loader/5d6e15a70e8dccff1c542db94f1...

1 line
20 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"remainingRequest":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\aa\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\mywork\\buycode\\code1\\springboot301400\\306\\aa\\admin\\src\\views\\modules\\dictionarySex\\add-or-update.vue?vue&type=style&index=0&lang=scss&","dependencies":[{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\aa\\admin\\src\\views\\modules\\dictionarySex\\add-or-update.vue","mtime":1649818275215},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\aa\\admin\\node_modules\\css-loader\\dist\\cjs.js","mtime":1720078528809},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\aa\\admin\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":1720078529623},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\aa\\admin\\node_modules\\postcss-loader\\src\\index.js","mtime":1720078529188},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\aa\\admin\\node_modules\\sass-loader\\dist\\cjs.js","mtime":1720078528567},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\aa\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1720078528573},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\aa\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":1720078529317}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoUA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"add-or-update.vue","sourceRoot":"src/views/modules/dictionarySex","sourcesContent":["<template>\r\n <div class=\"addEdit-block\">\r\n <el-form\r\n class=\"detail-form-content\"\r\n ref=\"ruleForm\"\r\n :model=\"ruleForm\"\r\n :rules=\"rules\"\r\n label-width=\"80px\"\r\n :style=\"{backgroundColor:addEditForm.addEditBoxColor}\"\r\n >\r\n <el-row>\r\n <el-col :span=\"12\">\r\n <el-form-item class=\"input\" v-if=\"type!='info'\" label=\"性别类型编码\" prop=\"codeIndex\">\r\n <el-input v-model=\"ruleForm.codeIndex\"\r\n placeholder=\"性别类型编码\" clearable :readonly=\"ro.codeIndex\"></el-input>\r\n </el-form-item>\r\n <div v-else>\r\n <el-form-item class=\"input\" label=\"性别类型编码\" prop=\"codeIndex\">\r\n <el-input v-model=\"ruleForm.codeIndex\"\r\n placeholder=\"性别类型编码\" readonly></el-input>\r\n </el-form-item>\r\n </div>\r\n </el-col>\r\n <el-col :span=\"12\">\r\n <el-form-item class=\"input\" v-if=\"type!='info'\" label=\"性别类型\" prop=\"indexName\">\r\n <el-input v-model=\"ruleForm.indexName\"\r\n placeholder=\"性别类型\" clearable :readonly=\"ro.indexName\"></el-input>\r\n </el-form-item>\r\n <div v-else>\r\n <el-form-item class=\"input\" label=\"性别类型\" prop=\"indexName\">\r\n <el-input v-model=\"ruleForm.indexName\"\r\n placeholder=\"性别类型\" readonly></el-input>\r\n </el-form-item>\r\n </div>\r\n </el-col>\r\n <!--<el-col :span=\"12\">\r\n <el-form-item class=\"input\" v-if=\"type!='info'\" label=\"备注\" prop=\"beizhu\">\r\n <el-input v-model=\"ruleForm.beizhu\"\r\n placeholder=\"备注\" clearable :readonly=\"ro.beizhu\"></el-input>\r\n </el-form-item>\r\n <div v-else>\r\n <el-form-item class=\"input\" label=\"备注\" prop=\"beizhu\">\r\n <el-input v-model=\"ruleForm.beizhu\"\r\n placeholder=\"备注\" readonly></el-input>\r\n </el-form-item>\r\n </div>\r\n </el-col>-->\r\n </el-row>\r\n <el-form-item class=\"btn\">\r\n <el-button v-if=\"type!='info'\" type=\"primary\" class=\"btn-success\" @click=\"onSubmit\">提交</el-button>\r\n <el-button v-if=\"type!='info'\" class=\"btn-close\" @click=\"back()\">取消</el-button>\r\n <el-button v-if=\"type=='info'\" class=\"btn-close\" @click=\"back()\">返回</el-button>\r\n </el-form-item>\r\n </el-form>\r\n\r\n\r\n </div>\r\n</template>\r\n<script>\r\n import styleJs from \"../../../utils/style.js\";\r\n // 数字邮件手机url身份证校验\r\n import { isNumber,isIntNumer,isEmail,isPhone, isMobile,isURL,checkIdCard } from \"@/utils/validate\";\r\n export default {\r\n data() {\r\n let self = this\r\n return {\r\n addEditForm:null,\r\n id: '',\r\n type: '',\r\n ro:{\r\n codeIndex : true,\r\n indexName : false,\r\n superId : false,\r\n beizhu : false,\r\n },\r\n ruleForm: {\r\n codeIndex: '',\r\n indexName: '',\r\n superId : '',\r\n beizhu : '',\r\n },\r\n rules: {\r\n /*beizhu: [\r\n { required: true, message: '备注不能为空', trigger: 'blur' },\r\n { pattern: /^[1-9]\\d*$/,\r\n message: '备注只能为正整数',\r\n trigger: 'blur'\r\n }\r\n ],*/\r\n }\r\n };\r\n },\r\n props: [\"parent\"],\r\n computed: {\r\n },\r\n created() {\r\n this.addEditForm = styleJs.addStyle();\r\n this.addEditStyleChange()\r\n this.addEditUploadStyleChange()\r\n },\r\n methods: {\r\n // 初始化\r\n init(id,type) {\r\n if (id) {\r\n this.id = id;\r\n this.type = type;\r\n }\r\n if(this.type=='info'||this.type=='else'){\r\n this.info(id);\r\n }else{\r\n //查询最大值 start\r\n this.$http({\r\n url: `dictionary/maxCodeIndex`,\r\n method: \"post\",\r\n data: {\"dicCode\":\"sex_types\"}\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n this.ruleForm.codeIndex = data.maxCodeIndex;\r\n } else {\r\n this.$message.error(data.msg);\r\n }\r\n });\r\n //查询最大值 end\r\n }\r\n },\r\n // 多级联动参数\r\n info(id) {\r\n this.$http({\r\n url: `dictionary/info/${id}`,\r\n method: \"get\"\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n this.ruleForm = data.data;\r\n //解决前台上传图片后台不显示的问题\r\n let reg=new RegExp('../../../upload','g')//g代表全部\r\n } else {\r\n this.$message.error(data.msg);\r\n }\r\n });\r\n },\r\n // 提交\r\n onSubmit() {\r\n if((!this.ruleForm.indexName)){\r\n this.$message.error('性别类型不能为空');\r\n return\r\n }\r\n this.$refs[\"ruleForm\"].validate(valid => {\r\n if (valid) {\r\n let ruleForm = this.ruleForm;\r\n ruleForm[\"dicCode\"]=\"sex_types\";\r\n ruleForm[\"dicName\"]=\"性别类型\";\r\n this.$http({\r\n url: `dictionary/${!this.ruleForm.id ? \"save\" : \"update\"}`,\r\n method: \"post\",\r\n data: ruleForm\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n this.$message({\r\n message: \"操作成功\",\r\n type: \"success\",\r\n duration: 1500,\r\n onClose: () => {\r\n this.parent.showFlag = true;\r\n this.parent.addOrUpdateFlag = false;\r\n this.parent.dictionaryCrossAddOrUpdateFlag = false;\r\n this.parent.search();\r\n this.parent.contentStyleChange();\r\n\r\n }\r\n });\r\n } else {\r\n this.$message.error(data.msg);\r\n }\r\n });\r\n }\r\n });\r\n },\r\n // 返回\r\n back() {\r\n this.parent.showFlag = true;\r\n this.parent.addOrUpdateFlag = false;\r\n this.parent.dictionaryCrossAddOrUpdateFlag = false;\r\n this.parent.contentStyleChange();\r\n },\r\n addEditStyleChange() {\r\n this.$nextTick(()=>{\r\n // input\r\n document.querySelectorAll('.addEdit-block .input .el-input__inner').forEach(el=>{\r\n el.style.height = this.addEditForm.inputHeight\r\n el.style.color = this.addEditForm.inputFontColor\r\n el.style.fontSize = this.addEditForm.inputFontSize\r\n el.style.borderWidth = this.addEditForm.inputBorderWidth\r\n el.style.borderStyle = this.addEditForm.inputBorderStyle\r\n el.style.borderColor = this.addEditForm.inputBorderColor\r\n el.style.borderRadius = this.addEditForm.inputBorderRadius\r\n el.style.backgroundColor = this.addEditForm.inputBgColor\r\n })\r\n document.querySelectorAll('.addEdit-block .input .el-form-item__label').forEach(el=>{\r\n el.style.lineHeight = this.addEditForm.inputHeight\r\n el.style.color = this.addEditForm.inputLableColor\r\n el.style.fontSize = this.addEditForm.inputLableFontSize\r\n })\r\n // select\r\n document.querySelectorAll('.addEdit-block .select .el-input__inner').forEach(el=>{\r\n el.style.height = this.addEditForm.selectHeight\r\n el.style.color = this.addEditForm.selectFontColor\r\n el.style.fontSize = this.addEditForm.selectFontSize\r\n el.style.borderWidth = this.addEditForm.selectBorderWidth\r\n el.style.borderStyle = this.addEditForm.selectBorderStyle\r\n el.style.borderColor = this.addEditForm.selectBorderColor\r\n el.style.borderRadius = this.addEditForm.selectBorderRadius\r\n el.style.backgroundColor = this.addEditForm.selectBgColor\r\n })\r\n document.querySelectorAll('.addEdit-block .select .el-form-item__label').forEach(el=>{\r\n el.style.lineHeight = this.addEditForm.selectHeight\r\n el.style.color = this.addEditForm.selectLableColor\r\n el.style.fontSize = this.addEditForm.selectLableFontSize\r\n })\r\n document.querySelectorAll('.addEdit-block .select .el-select__caret').forEach(el=>{\r\n el.style.color = this.addEditForm.selectIconFontColor\r\n el.style.fontSize = this.addEditForm.selectIconFontSize\r\n })\r\n // date\r\n document.querySelectorAll('.addEdit-block .date .el-input__inner').forEach(el=>{\r\n el.style.height = this.addEditForm.dateHeight\r\n el.style.color = this.addEditForm.dateFontColor\r\n el.style.fontSize = this.addEditForm.dateFontSize\r\n el.style.borderWidth = this.addEditForm.dateBorderWidth\r\n el.style.borderStyle = this.addEditForm.dateBorderStyle\r\n el.style.borderColor = this.addEditForm.dateBorderColor\r\n el.style.borderRadius = this.addEditForm.dateBorderRadius\r\n el.style.backgroundColor = this.addEditForm.dateBgColor\r\n })\r\n document.querySelectorAll('.addEdit-block .date .el-form-item__label').forEach(el=>{\r\n el.style.lineHeight = this.addEditForm.dateHeight\r\n el.style.color = this.addEditForm.dateLableColor\r\n el.style.fontSize = this.addEditForm.dateLableFontSize\r\n })\r\n document.querySelectorAll('.addEdit-block .date .el-input__icon').forEach(el=>{\r\n el.style.color = this.addEditForm.dateIconFontColor\r\n el.style.fontSize = this.addEditForm.dateIconFontSize\r\n el.style.lineHeight = this.addEditForm.dateHeight\r\n })\r\n // upload\r\n let iconLineHeight = parseInt(this.addEditForm.uploadHeight) - parseInt(this.addEditForm.uploadBorderWidth) * 2 + 'px'\r\n document.querySelectorAll('.addEdit-block .upload .el-upload--picture-card').forEach(el=>{\r\n el.style.width = this.addEditForm.uploadHeight\r\n el.style.height = this.addEditForm.uploadHeight\r\n el.style.borderWidth = this.addEditForm.uploadBorderWidth\r\n el.style.borderStyle = this.addEditForm.uploadBorderStyle\r\n el.style.borderColor = this.addEditForm.uploadBorderColor\r\n el.style.borderRadius = this.addEditForm.uploadBorderRadius\r\n el.style.backgroundColor = this.addEditForm.uploadBgColor\r\n })\r\n document.querySelectorAll('.addEdit-block .upload .el-form-item__label').forEach(el=>{\r\n el.style.lineHeight = this.addEditForm.uploadHeight\r\n el.style.color = this.addEditForm.uploadLableColor\r\n el.style.fontSize = this.addEditForm.uploadLableFontSize\r\n })\r\n document.querySelectorAll('.addEdit-block .upload .el-icon-plus').forEach(el=>{\r\n el.style.color = this.addEditForm.uploadIconFontColor\r\n el.style.fontSize = this.addEditForm.uploadIconFontSize\r\n el.style.lineHeight = iconLineHeight\r\n el.style.display = 'block'\r\n })\r\n // 多文本输入框\r\n document.querySelectorAll('.addEdit-block .textarea .el-textarea__inner').forEach(el=>{\r\n el.style.height = this.addEditForm.textareaHeight\r\n el.style.color = this.addEditForm.textareaFontColor\r\n el.style.fontSize = this.addEditForm.textareaFontSize\r\n el.style.borderWidth = this.addEditForm.textareaBorderWidth\r\n el.style.borderStyle = this.addEditForm.textareaBorderStyle\r\n el.style.borderColor = this.addEditForm.textareaBorderColor\r\n el.style.borderRadius = this.addEditForm.textareaBorderRadius\r\n el.style.backgroundColor = this.addEditForm.textareaBgColor\r\n })\r\n document.querySelectorAll('.addEdit-block .textarea .el-form-item__label').forEach(el=>{\r\n // el.style.lineHeight = this.addEditForm.textareaHeight\r\n el.style.color = this.addEditForm.textareaLableColor\r\n el.style.fontSize = this.addEditForm.textareaLableFontSize\r\n })\r\n // 保存\r\n document.querySelectorAll('.addEdit-block .btn .btn-success').forEach(el=>{\r\n el.style.width = this.addEditForm.btnSaveWidth\r\n el.style.height = this.addEditForm.btnSaveHeight\r\n el.style.color = this.addEditForm.btnSaveFontColor\r\n el.style.fontSize = this.addEditForm.btnSaveFontSize\r\n el.style.borderWidth = this.addEditForm.btnSaveBorderWidth\r\n el.style.borderStyle = this.addEditForm.btnSaveBorderStyle\r\n el.style.borderColor = this.addEditForm.btnSaveBorderColor\r\n el.style.borderRadius = this.addEditForm.btnSaveBorderRadius\r\n el.style.backgroundColor = this.addEditForm.btnSaveBgColor\r\n })\r\n // 返回\r\n document.querySelectorAll('.addEdit-block .btn .btn-close').forEach(el=>{\r\n el.style.width = this.addEditForm.btnCancelWidth\r\n el.style.height = this.addEditForm.btnCancelHeight\r\n el.style.color = this.addEditForm.btnCancelFontColor\r\n el.style.fontSize = this.addEditForm.btnCancelFontSize\r\n el.style.borderWidth = this.addEditForm.btnCancelBorderWidth\r\n el.style.borderStyle = this.addEditForm.btnCancelBorderStyle\r\n el.style.borderColor = this.addEditForm.btnCancelBorderColor\r\n el.style.borderRadius = this.addEditForm.btnCancelBorderRadius\r\n el.style.backgroundColor = this.addEditForm.btnCancelBgColor\r\n })\r\n })\r\n },\r\n addEditUploadStyleChange() {\r\n this.$nextTick(()=>{\r\n document.querySelectorAll('.addEdit-block .upload .el-upload-list--picture-card .el-upload-list__item').forEach(el=>{\r\n el.style.width = this.addEditForm.uploadHeight\r\n el.style.height = this.addEditForm.uploadHeight\r\n el.style.borderWidth = this.addEditForm.uploadBorderWidth\r\n el.style.borderStyle = this.addEditForm.uploadBorderStyle\r\n el.style.borderColor = this.addEditForm.uploadBorderColor\r\n el.style.borderRadius = this.addEditForm.uploadBorderRadius\r\n el.style.backgroundColor = this.addEditForm.uploadBgColor\r\n })\r\n })\r\n },\r\n }\r\n };\r\n</script>\r\n<style lang=\"scss\">\r\n.editor{\r\n height: 500px;\r\n\r\n & /deep/ .ql-container {\r\n\t height: 310px;\r\n }\r\n}\r\n.amap-wrapper {\r\n width: 100%;\r\n height: 500px;\r\n}\r\n.search-box {\r\n position: absolute;\r\n}\r\n.addEdit-block {\r\n\tmargin: -10px;\r\n}\r\n.detail-form-content {\r\n\tpadding: 12px;\r\n}\r\n.btn .el-button {\r\n padding: 0;\r\n}</style>\r\n"]}]}