| | |
| | | <el-form-item> |
| | | <el-upload name="multipartFile" class="upload-demo" action="/api/publicity/upload " :show-file-list="false" |
| | | :before-upload="beforeAvatarUpload" :on-success="respond" :limit="1"> |
| | | <el-button type="primary">导入</el-button> |
| | | <!-- <el-button type="primary">导入</el-button>--> |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | if (!vaild) return this.$message.error('输入有误') |
| | | let param = null; |
| | | param = JSON.parse(JSON.stringify(this.addPublicityForm)); |
| | | console.log(param) |
| | | param.photoStr = param.img.map(item => item.name).join(','); |
| | | addPublicityList(param).then(res => { |
| | | this.$message({ |
| | |
| | | .freePic ::v-deep .el-upload--picture-card { |
| | | display: none; |
| | | } |
| | | </style> |
| | | </style> |