|
@@ -52,11 +52,12 @@
|
|
|
prop="operation"
|
|
|
align="center"
|
|
|
label="操作"
|
|
|
+ width="200"
|
|
|
>
|
|
|
<template #default="scope">
|
|
|
<div class="operations">
|
|
|
<el-button type="primary" size="mini" @click="checkFile(scope.row.url)" style="background: #477edd">明细查看</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="DelFile(scope.$index)" style="background: #477edd">删除</el-button>
|
|
|
+ <el-button type="primary" v-show="state!=4" size="mini" @click="DelFile(scope.$index)" style="background: #477edd">删除</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -162,21 +163,21 @@
|
|
|
//展示文件
|
|
|
checkFile(url) {
|
|
|
this.showFileUrl = url;
|
|
|
- this.showFile = true;
|
|
|
+ this.showFile = true;
|
|
|
|
|
|
- if(typeof url=='undefined')return {type:"",name:""};
|
|
|
- let urlSplit = url.split(".");
|
|
|
- const type = urlSplit[urlSplit.length-1]
|
|
|
- if(this.canonical.Image.test(url)){
|
|
|
-
|
|
|
- this.Wordss={type:type,name:"图片"}
|
|
|
- return console.log(this.Wordss);
|
|
|
- }
|
|
|
- if(this.canonical.File.test(url)){
|
|
|
- this.Wordss={type:type,name:"文档"}
|
|
|
- return console.log(this.Wordss);
|
|
|
- }
|
|
|
- else return this.Wordss={type:type,name:type}
|
|
|
+ if(typeof url=='undefined')return {type:"",name:""};
|
|
|
+ let urlSplit = url.split(".");
|
|
|
+ const type = urlSplit[urlSplit.length-1]
|
|
|
+ if(this.canonical.Image.test(url)){
|
|
|
+
|
|
|
+ this.Wordss={type:type,name:"图片"}
|
|
|
+ return console.log(this.Wordss);
|
|
|
+ }
|
|
|
+ if(this.canonical.File.test(url)){
|
|
|
+ this.Wordss={type:type,name:"文档"}
|
|
|
+ return console.log(this.Wordss);
|
|
|
+ }
|
|
|
+ else return this.Wordss={type:type,name:type}
|
|
|
},
|
|
|
getFile(val) { //上传文件
|
|
|
this.file = val;
|