|
@@ -11,11 +11,13 @@
|
|
|
:show-file-list="false"
|
|
|
:on-change="changes"
|
|
|
:on-progress="uploadVideoProcess"
|
|
|
- :disabled="auth==='view'&&uploadFlag===false"
|
|
|
:file-list="fileList">
|
|
|
- <el-button :loading="loading" type="primary" size="default" :disabled="auth==='view'&&uploadFlag===false" >
|
|
|
- 点击上传
|
|
|
- </el-button>
|
|
|
+ <template v-if="auth==='view'&&uploadFlag===false" #tip>
|
|
|
+ <el-button :loading="loading" type="primary" size="default" :disabled="true"> 点击上传 </el-button>
|
|
|
+ </template>
|
|
|
+ <template v-else #trigger>
|
|
|
+ <el-button :loading="loading" type="primary" size="default"> 点击上传 </el-button>
|
|
|
+ </template>
|
|
|
</el-upload>
|
|
|
<div style="height: calc(100% - 80px);margin-top: 10px">
|
|
|
<!-- 进度条 -->
|
|
@@ -57,7 +59,7 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
- <el-image-viewer v-if="showViewer" :on-close="closeViewer" :url-list="[url]" :zIndex=9999></el-image-viewer>
|
|
|
+<!-- <el-image-viewer v-if="showViewer" :on-close="closeViewer" :url-list="[url]" :zIndex=9999></el-image-viewer>-->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -307,23 +309,11 @@
|
|
|
toHref (row) {
|
|
|
toHref(row)
|
|
|
},
|
|
|
- deleteById (row, index) {
|
|
|
- this.$refs.upload.handleRemove(this.dataListNew[index])
|
|
|
- this.dataListNew.splice(index, 1)
|
|
|
- this.dataList.splice(index, 1)
|
|
|
- this.tableKey = Math.random()
|
|
|
- // if (row.id !== null && row.id !== '' && row.id !== undefined) {
|
|
|
- // this.dataList.splice(index, 1)
|
|
|
- // // this.ossService.deleteMsgById(row.id)
|
|
|
- // } else {
|
|
|
- // let num
|
|
|
- // if (this.dataList.length > 0) {
|
|
|
- // num = this.dataList.length - 1
|
|
|
- // } else {
|
|
|
- // num = 0
|
|
|
- // }
|
|
|
- // this.$refs.upload.uploadFiles.splice(index - num, 1)
|
|
|
- // }
|
|
|
+ async deleteById (row, index) {
|
|
|
+ // this.$refs.upload.handleRemove(this.dataListNew[index])
|
|
|
+ await this.dataListNew.splice(index, 1)
|
|
|
+ await this.dataList.splice(index, 1)
|
|
|
+ this.tableKey = Math.random()
|
|
|
},
|
|
|
/**
|
|
|
* 关闭dialog时使用 清除el-upload中上传的文件
|