|
@@ -19,7 +19,13 @@
|
|
:on-success="onSuccess"
|
|
:on-success="onSuccess"
|
|
:on-error="onError"
|
|
:on-error="onError"
|
|
>
|
|
>
|
|
- <el-button v-if="listType !== 'picture-card'" :type="type" ref="upload">
|
|
|
|
|
|
+ <!-- <el-button v-if="listType !== 'picture-card'" :type="type" ref="upload"> -->
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="listType !== 'picture-card'"
|
|
|
|
+ type="primary"
|
|
|
|
+ size="mini"
|
|
|
|
+ ref="upload"
|
|
|
|
+ >
|
|
<slot v-if="percentage <= 0 && !form.file">点击上传</slot>
|
|
<slot v-if="percentage <= 0 && !form.file">点击上传</slot>
|
|
<span v-if="percentage > 0 && !form.file">{{ title }}</span>
|
|
<span v-if="percentage > 0 && !form.file">{{ title }}</span>
|
|
<span v-if="form.file">上传成功</span>
|
|
<span v-if="form.file">上传成功</span>
|
|
@@ -228,7 +234,7 @@ export default {
|
|
if (file.code === 0) {
|
|
if (file.code === 0) {
|
|
this.form.file = file.data;
|
|
this.form.file = file.data;
|
|
this.$emit("upload", this.form);
|
|
this.$emit("upload", this.form);
|
|
- this.title = "上传成功";
|
|
|
|
|
|
+ this.title = "批量上传";
|
|
this.type = "success";
|
|
this.type = "success";
|
|
if (this.form.platformId != null && this.form.platformId != "") {
|
|
if (this.form.platformId != null && this.form.platformId != "") {
|
|
this.$message.success(`上传成功`);
|
|
this.$message.success(`上传成功`);
|