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/e3e5f2566f6a608e97cde1f7816...

1 line
31 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\\分离\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\src\\views\\modules\\fangjianOrder\\add-or-update.vue?vue&type=style&index=0&lang=scss&","dependencies":[{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\src\\views\\modules\\fangjianOrder\\add-or-update.vue","mtime":1649818275784},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\css-loader\\dist\\cjs.js","mtime":1720078528809},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":1720078529623},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\postcss-loader\\src\\index.js","mtime":1720078529188},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\sass-loader\\dist\\cjs.js","mtime":1720078528567},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1720078528573},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":1720078529317}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCg0KLmVkaXRvcnsNCiAgaGVpZ2h0OiA1MDBweDsNCg0KICAmIC9kZWVwLyAucWwtY29udGFpbmVyIHsNCgkgIGhlaWdodDogMzEwcHg7DQogIH0NCn0NCi5hbWFwLXdyYXBwZXIgew0KICB3aWR0aDogMTAwJTsNCiAgaGVpZ2h0OiA1MDBweDsNCn0NCi5zZWFyY2gtYm94IHsNCiAgcG9zaXRpb246IGFic29sdXRlOw0KfQ0KLmFkZEVkaXQtYmxvY2sgew0KCW1hcmdpbjogLTEwcHg7DQp9DQouZGV0YWlsLWZvcm0tY29udGVudCB7DQoJcGFkZGluZzogMTJweDsNCn0NCi5idG4gLmVsLWJ1dHRvbiB7DQogIHBhZGRpbmc6IDA7DQp9"},{"version":3,"sources":["add-or-update.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2eA;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/fangjianOrder","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 <el-row>\r\n <el-col :span=\"12\" v-if=\"sessionTable !='fangjian'\">\r\n <el-form-item class=\"select\" v-if=\"type!='info'\" label=\"房间信息\" prop=\"fangjianId\">\r\n <el-select v-model=\"ruleForm.fangjianId\" :disabled=\"ro.fangjianId\" filterable placeholder=\"请选择房间信息\" @change=\"fangjianChange\">\r\n <el-option\r\n v-for=\"(item,index) in fangjianOptions\"\r\n v-bind:key=\"item.id\"\r\n :label=\"item.fangjianName\"\r\n :value=\"item.id\">\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n </el-col>\r\n\r\n <el-col :span=\"12\" v-if=\"sessionTable !='fangjian' \">\r\n <el-form-item class=\"input\" v-if=\"type!='info'\" label=\"房间名称\" prop=\"fangjianName\">\r\n <el-input v-model=\"fangjianForm.fangjianName\"\r\n placeholder=\"房间名称\" clearable readonly></el-input>\r\n </el-form-item>\r\n <div v-else-if=\"type=='info'\">\r\n <el-form-item class=\"input\" label=\"房间名称\" prop=\"fangjianName\">\r\n <el-input v-model=\"ruleForm.fangjianName\"\r\n placeholder=\"房间名称\" readonly></el-input>\r\n </el-form-item>\r\n </div>\r\n </el-col>\r\n <el-col :span=\"12\" v-if=\"sessionTable !='fangjian' \">\r\n <el-form-item class=\"upload\" v-if=\"type!='info' && !ro.fangjianPhoto\" label=\"房间图片\" prop=\"fangjianPhoto\">\r\n <img style=\"margin-right:20px;\" v-bind:key=\"index\" v-for=\"(item,index) in (fangjianForm.fangjianPhoto || '').split(',')\" :src=\"item\" width=\"100\" height=\"100\">\r\n </el-form-item>\r\n <div v-else-if=\"type=='info'\">\r\n <el-form-item v-if=\"ruleForm.fangjianPhoto\" label=\"房间图片\" prop=\"fangjianPhoto\">\r\n <img style=\"margin-right:20px;\" v-bind:key=\"index\" v-for=\"(item,index) in (ruleForm.fangjianPhoto || '').split(',')\" :src=\"item\" width=\"100\" height=\"100\">\r\n </el-form-item>\r\n </div>\r\n </el-col>\r\n <el-col :span=\"12\" v-if=\"sessionTable !='fangjian' \">\r\n <el-form-item class=\"input\" v-if=\"type!='info'\" label=\"房间类型\" prop=\"fangjianValue\">\r\n <el-input v-model=\"fangjianForm.fangjianValue\"\r\n placeholder=\"房间类型\" clearable readonly></el-input>\r\n </el-form-item>\r\n <div v-else-if=\"type=='info'\">\r\n <el-form-item class=\"input\" label=\"房间类型\" prop=\"fangjianValue\">\r\n <el-input v-model=\"ruleForm.fangjianValue\"\r\n placeholder=\"房间类型\" readonly></el-input>\r\n </el-form-item>\r\n </div>\r\n </el-col>\r\n <el-col :span=\"12\" v-if=\"sessionTable !='yonghu'\">\r\n <el-form-item class=\"select\" v-if=\"type!='info'\" label=\"用户\" prop=\"yonghuId\">\r\n <el-select v-model=\"ruleForm.yonghuId\" :disabled=\"ro.yonghuId\" filterable placeholder=\"请选择用户\" @change=\"yonghuChange\">\r\n <el-option\r\n v-for=\"(item,index) in yonghuOptions\"\r\n v-bind:key=\"item.id\"\r\n :label=\"item.yonghuName\"\r\n :value=\"item.id\">\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n </el-col>\r\n\r\n <el-col :span=\"12\" v-if=\"sessionTable !='yonghu' \">\r\n <el-form-item class=\"input\" v-if=\"type!='info'\" label=\"用户姓名\" prop=\"yonghuName\">\r\n <el-input v-model=\"yonghuForm.yonghuName\"\r\n placeholder=\"用户姓名\" clearable readonly></el-input>\r\n </el-form-item>\r\n <div v-else-if=\"type=='info'\">\r\n <el-form-item class=\"input\" label=\"用户姓名\" prop=\"yonghuName\">\r\n <el-input v-model=\"ruleForm.yonghuName\"\r\n placeholder=\"用户姓名\" readonly></el-input>\r\n </el-form-item>\r\n </div>\r\n </el-col>\r\n <input id=\"updateId\" name=\"id\" type=\"hidden\">\r\n <input id=\"fangjianId\" name=\"fangjianId\" type=\"hidden\">\r\n <input id=\"yonghuId\" name=\"yonghuId\" type=\"hidden\">\r\n <el-col :span=\"12\">\r\n <el-form-item v-if=\"type!='info'\" class=\"input\" label=\"预约日期\" prop=\"fangjianOrderTime\">\r\n <el-date-picker\r\n value-format=\"yyyy-MM-dd\"\r\n v-model=\"ruleForm.fangjianOrderTime\"\r\n type=\"date\"\r\n placeholder=\"预约日期\"\r\n :disabled=\"ro.fangjianOrderTime\">\r\n </el-date-picker>\r\n </el-form-item>\r\n <div v-else-if=\"type=='info'\">\r\n <el-form-item v-if=\"ruleForm.fangjianOrderTime\" label=\"预约日期\" prop=\"fangjianOrderTime\">\r\n <span v-html=\"ruleForm.fangjianOrderTime\"></span>\r\n </el-form-item>\r\n </div>\r\n </el-col>\r\n\r\n <el-col :span=\"24\">\r\n <el-form-item v-if=\"type!='info'\" label=\"预约备注\" prop=\"fangjianOrderText\">\r\n <el-input type=\"textarea\" :readonly=\"ro.fangjianOrderText\" v-model=\"ruleForm.fangjianOrderText\" placeholder=\"预约备注\"></el-input>\r\n </el-form-item>\r\n <div v-else-if=\"type=='info'\">\r\n <el-form-item v-if=\"ruleForm.fangjianOrderText\" label=\"预约备注\" prop=\"fangjianOrderText\">\r\n <span v-html=\"ruleForm.fangjianOrderText\"></span>\r\n </el-form-item>\r\n </div>\r\n </el-col>\r\n <el-col :span=\"12\">\r\n <el-form-item class=\"select\" v-if=\"type!='info'\" label=\"订单状态\" prop=\"fangjianOrderTypes\">\r\n <el-select v-model=\"ruleForm.fangjianOrderTypes\" :disabled=\"ro.fangjianOrderTypes\" placeholder=\"请选择订单状态\">\r\n <el-option\r\n v-for=\"(item,index) in fangjianOrderTypesOptions\"\r\n v-bind:key=\"item.codeIndex\"\r\n :label=\"item.indexName\"\r\n :value=\"item.codeIndex\">\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n <div v-else-if=\"type=='info'\">\r\n <el-form-item class=\"input\" label=\"订单状态\" prop=\"fangjianOrderValue\">\r\n <el-input v-model=\"ruleForm.fangjianOrderValue\"\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 </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 return {\r\n addEditForm:null,\r\n id: '',\r\n type: '',\r\n sessionTable : \"\",//登录账户所在表名\r\n role : \"\",//权限\r\n userId:\"\",//当前登录人的id\r\n fangjianForm: {},\r\n yonghuForm: {},\r\n ro:{\r\n fangjianId: false,\r\n yonghuId: false,\r\n fangjianOrderTime: false,\r\n fangjianOrderText: false,\r\n fangjianOrderTypes: false,\r\n },\r\n ruleForm: {\r\n fangjianId: '',\r\n yonghuId: '',\r\n fangjianOrderTime: '',\r\n fangjianOrderText: '',\r\n fangjianOrderTypes: '',\r\n },\r\n fangjianOrderTypesOptions : [],\r\n fangjianOptions : [],\r\n yonghuOptions : [],\r\n rules: {\r\n fangjianId: [\r\n { required: true, message: '房间不能为空', trigger: 'blur' },\r\n { pattern: /^[1-9][0-9]*$/,\r\n message: '只允许输入整数',\r\n trigger: 'blur'\r\n }\r\n ],\r\n yonghuId: [\r\n { required: true, message: '用户不能为空', trigger: 'blur' },\r\n { pattern: /^[1-9][0-9]*$/,\r\n message: '只允许输入整数',\r\n trigger: 'blur'\r\n }\r\n ],\r\n fangjianOrderTime: [\r\n { required: true, message: '预约日期不能为空', trigger: 'blur' },\r\n ],\r\n fangjianOrderText: [\r\n { required: true, message: '预约备注不能为空', trigger: 'blur' },\r\n ],\r\n fangjianOrderTypes: [\r\n { required: true, message: '订单状态不能为空', trigger: 'blur' },\r\n { pattern: /^[1-9][0-9]*$/,\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 //获取当前登录用户的信息\r\n this.sessionTable = this.$storage.get(\"sessionTable\");\r\n this.role = this.$storage.get(\"role\");\r\n this.userId = this.$storage.get(\"userId\");\r\n\r\n\r\n if (this.role != \"管理员\"){\r\n }\r\n this.addEditForm = styleJs.addStyle();\r\n this.addEditStyleChange()\r\n this.addEditUploadStyleChange()\r\n //获取下拉框信息\r\n this.$http({\r\n url:`dictionary/page?page=1&limit=100&sort=&order=&dicCode=fangjian_order_types`,\r\n method: \"get\"\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n this.fangjianOrderTypesOptions = data.data.list;\r\n }\r\n });\r\n\r\n this.$http({\r\n url: `fangjian/page?page=1&limit=100`,\r\n method: \"get\"\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n this.fangjianOptions = data.data.list;\r\n }\r\n });\r\n this.$http({\r\n url: `yonghu/page?page=1&limit=100`,\r\n method: \"get\"\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n this.yonghuOptions = data.data.list;\r\n }\r\n });\r\n\r\n },\r\n mounted() {\r\n },\r\n methods: {\r\n // 下载\r\n download(file){\r\n window.open(`${file}`)\r\n },\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 }\r\n // 获取用户信息\r\n this.$http({\r\n url:`${this.$storage.get(\"sessionTable\")}/session`,\r\n method: \"get\"\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n var json = data.data;\r\n } else {\r\n this.$message.error(data.msg);\r\n }\r\n });\r\n },\r\n fangjianChange(id){\r\n this.$http({\r\n url: `fangjian/info/`+id,\r\n method: \"get\"\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n this.fangjianForm = data.data;\r\n }\r\n });\r\n },\r\n yonghuChange(id){\r\n this.$http({\r\n url: `yonghu/info/`+id,\r\n method: \"get\"\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n this.yonghuForm = data.data;\r\n }\r\n });\r\n },\r\n // 多级联动参数\r\n info(id) {\r\n let _this =this;\r\n _this.$http({\r\n url: `fangjianOrder/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 _this.fangjianChange(data.data.fangjianId)\r\n _this.yonghuChange(data.data.yonghuId)\r\n } else {\r\n _this.$message.error(data.msg);\r\n }\r\n });\r\n },\r\n // 提交\r\n onSubmit() {\r\n this.$refs[\"ruleForm\"].validate(valid => {\r\n if (valid) {\r\n this.$http({\r\n url:`fangjianOrder/${!this.ruleForm.id ? \"save\" : \"update\"}`,\r\n method: \"post\",\r\n data: this.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.fangjianOrderCrossAddOrUpdateFlag = false;\r\n this.parent.search();\r\n this.parent.contentStyleChange();\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 // 获取uuid\r\n getUUID () {\r\n return new Date().getTime();\r\n },\r\n // 返回\r\n back() {\r\n this.parent.showFlag = true;\r\n this.parent.addOrUpdateFlag = false;\r\n this.parent.fangjianOrderCrossAddOrUpdateFlag = false;\r\n this.parent.contentStyleChange();\r\n },\r\n //图片\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\r\n"]}]}