|
@@ -16,7 +16,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
export default {
|
|
|
- props: ['fileInfo', 'fileList'],
|
|
|
+ props: ['fileInfo', 'fileList','type'],
|
|
|
data() {
|
|
|
return {
|
|
|
fileLists: [],
|
|
@@ -121,10 +121,32 @@
|
|
|
if (this.fileInfo.type === 'btn') {
|
|
|
this.$refs['upload'].clearFiles();
|
|
|
this.$emit('uploadBack',res)
|
|
|
- _this.$message({
|
|
|
- message: res.data.desc,
|
|
|
- type: 'success'
|
|
|
- });
|
|
|
+ if(res.data.result==0){
|
|
|
+ _this.$message({
|
|
|
+ message: res.data.desc,
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ }else if(res.data.result==1){
|
|
|
+ _this.$message({
|
|
|
+ message: res.data.desc,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ }else if(res.data.result==2){
|
|
|
+ _this.$message({
|
|
|
+ message: res.data.desc,
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ }else if(res.data.result==3){
|
|
|
+ _this.$message({
|
|
|
+ message: res.data.desc,
|
|
|
+ type: 'info'
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ _this.$message({
|
|
|
+ message: res.data.desc,
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ }
|
|
|
this.num--;
|
|
|
if (this.num == 0) {
|
|
|
this.loading = false;
|