f203d26d8f166ec1c8cfdeb92e137d6e.json 8.4 KB

1
  1. {"remainingRequest":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\boman-framwork\\ruoyi-ui\\src\\components\\MemoranDum\\index.vue?vue&type=style&index=1&id=669089ec&scoped=true&lang=scss&","dependencies":[{"path":"E:\\boman-framwork\\ruoyi-ui\\src\\components\\MemoranDum\\index.vue","mtime":1623215520018},{"path":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\css-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\sass-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKLmRpYWxvZy1mb290ZXJ7CiAgZGlzcGxheTogZmxleDsKICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kOwp9Cg=="},{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8KA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/components/MemoranDum","sourcesContent":["<template>\n <div>\n <el-form ref=\"form\" :model=\"form\" :rules=\"rules\" label-width=\"160px\" class=\"from_index\">\n <el-row>\n <el-col :span=\"24\" v-for=\"(item,index) in formConfig.columns\" :key=\"index\">\n <el-form-item :label=\"item.columnComment\" style=\"display: inline-block;\" :prop=\"item.columnName\" v-if=\"item.isEdit == 1\">\n <!-- 输入框 -->\n <el-input v-if=\"item.htmlType == 'input'\" v-model=\"config[item.columnName]\" :placeholder=\"'请输入'+item.columnComment\"\n clearable @keyup.enter.native=\"submitForm\" />\n <!-- 多行输入框 -->\n <el-input v-if=\"item.htmlType == 'textarea'\" type=\"textarea\" v-model=\"config[item.columnName]\" :placeholder=\"'请输入'+item.columnComment\"\n clearable @keyup.enter.native=\"submitForm\" @change=\"submitForm\"/>\n <!-- 下拉框 -->\n <el-select v-model=\"config[item.columnName]\" v-if=\"item.htmlType == 'select'\" filterable :placeholder=\"'请输入'+item.columnComment\">\n <el-option v-for=\"itemChild in item.sysDictData\" :key=\"itemChild.dictValue\" :label=\"itemChild.dictLabel\" :value=\"itemChild.dictValue\" @change=\"submitForm\">\n </el-option>\n </el-select>\n <!-- 复选框 -->\n <el-checkbox-group v-model=\"config\" v-if=\"item.htmlType == 'checkbox'\">\n <el-checkbox @change=\"submitForm\" v-for=\"itemChild in item.sysDictData\" :label=\"itemChild.dictValue\" :key=\"itemChild.dictLabel\" >\n {{itemChild.dictLabel}}\n </el-checkbox>\n </el-checkbox-group>\n <!-- 单选框 -->\n <el-radio-group v-model=\"config[item.columnName]\" v-if=\"item.htmlType == 'radio'\">\n <el-radio v-for=\"itemChild in item.sysDictData\" :key=\"itemChild.dictValue\" :label=\"itemChild.dictLabel\" :value=\"itemChild.dictValue\" @change=\"submitForm\"></el-radio>\n </el-radio-group>\n <!-- 时间控件 -->\n <el-date-picker v-model=\"config[item.columnName]\" v-if=\"item.htmlType == 'datetime'\" type=\"date\" :placeholder=\"'请输入'+item.columnComment\" @change=\"submitForm\">\n </el-date-picker>\n <!-- 上传图片 -->\n <el-upload v-if=\"item.htmlType == 'imageUpload'\" :headers=\"{Authorization: 'Bearer ' + getToken()}\" :action=\"process + '/boman-file/upload'\" list-type=\"picture-card\"\n :on-preview=\"handlePictureCardPreview\" :on-remove=\"handleRemove\">\n <i class=\"el-icon-plus\"></i>\n </el-upload>\n <el-dialog :visible.sync=\"dialogVisible\" v-if=\"item.htmlType == 'imageUpload'\">\n <img width=\"100%\" :src=\"dialogImageUrl\" alt=\"\">\n </el-dialog>\n <!-- 上传文件 -->\n <el-upload\n class=\"upload-demo\"\n :headers=\"{Authorization: 'Bearer ' + getToken()}\"\n v-if=\"item.htmlType == 'fileUpload'\"\n :action=\"process + '/boman-file/upload'\"\n :on-change=\"handleChange\"\n :file-list=\"fileList\">\n <el-button size=\"small\" type=\"primary\">点击上传</el-button>\n <div slot=\"tip\" class=\"el-upload__tip\">只能上传jpg/png文件,且不超过500kb</div>\n </el-upload>\n <!-- 富文本 -->\n <editor v-model=\"config[item.columnName]\" v-if=\"item.htmlType == 'editor'\" :min-height=\"192\"/>\n </el-form-item>\n </el-col>\n </el-row>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button type=\"primary\" @click=\"submitForm\">确 定</el-button>\n <el-button @click=\"cancel\">取 消</el-button>\n </div>\n\n </div>\n\n</template>\r\n\r\n<script>\r\n const defaultSettings = require('@/settings.js')\n import { addConfigindex } from \"@/api/system/config\";\n import Editor from '@/components/Editor';\n import { getToken } from \"@/utils/auth\";\n export default {\r\n data() {\r\n return {\n fileList: [],\r\n defaultSettings,\r\n dialogImageUrl: '',\n process: process.env.VUE_APP_BASE_API,\r\n dialogVisible: false,\r\n disabled: false,\n config: {},\n form:{},\n // 表单校验\n rules: {\n },\n open:false\n }\r\n },\n components: {\n Editor\n },\r\n props: {\r\n formConfig: {},\n nummer:0\r\n },\n created() {\n this.init()\n },\r\n mounted() {\r\n },\r\n methods: {\n init() {\n // if(this.formConfig.htmlType == 'checkbox'){\n // this.config = []\n // }\n console.log(this.config,99888)\n console.log(this.nummer)\n },\n handleChange(file, fileList) {\n this.fileList = fileList.slice(-3);\n },\n getToken() {\n return getToken()\n },\r\n handleRemove(file, fileList) {\r\n console.log(file, fileList);\r\n },\r\n handlePictureCardPreview(file) {\r\n this.dialogImageUrl = file.url;\r\n this.dialogVisible = true;\r\n },\r\n handleDownload(file) {\r\n console.log(file);\r\n },\r\n handleQuery() {\r\n this.$emit('btns')\r\n },\n submitForm(value){\n console.log(1243)\n console.log(this.config,value)\n this.form.fixedData = this.config\n this.form.table = 'sys_memorandum'\n this.form.objId = -1\n this.$refs[\"form\"].validate(valid => {\n if (valid) {\n // if (this.form.id != undefined) {\n // updateNotice(this.form).then(response => {\n // this.msgSuccess(\"修改成功\");\n // this.open = false;\n // this.getList();\n // });\n // } else {\n addConfigindex(this.form).then(response => {\n this.msgSuccess(\"新增成功\");\n // this.open = false;\n this.cancel();\n });\n // }\n }\n });\n // this.$emit('submitForm',this.config)\n },\n cancel(){\n this.$emit('cancel',this.config)\n },\n handleCheckedCitiesChange(value){\n console.log(this.config)\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style lang=\"scss\">\n .from_index{\n .el-form-item{\n width: 93%;\n }\n .el-input{\n width: 100%;\n }\n .el-select{\n width: 100%;\n }\n }\r\n</style>\n<style scoped lang=\"scss\">\n .dialog-footer{\n display: flex;\n justify-content: flex-end;\n }\n</style>\n"]}]}