|
@@ -12,7 +12,7 @@
|
|
:on-change="changes"
|
|
:on-change="changes"
|
|
:on-progress="uploadVideoProcess"
|
|
:on-progress="uploadVideoProcess"
|
|
:file-list="fileList">
|
|
:file-list="fileList">
|
|
- <el-button type="info" size="mini" :slot="auth==='view'&&uploadFlag===false?'tip':'trigger'" :disabled="auth==='view'">点击上传</el-button>
|
|
|
|
|
|
+ <el-button type="info" size="mini" :slot="auth==='view'&&uploadFlag===false?'tip':'trigger'" :disabled="auth==='view'&&uploadFlag===false">点击上传</el-button>
|
|
</el-upload>
|
|
</el-upload>
|
|
<div style="height: calc(100% - 80px);margin-top: 10px">
|
|
<div style="height: calc(100% - 80px);margin-top: 10px">
|
|
<!-- 进度条 -->
|
|
<!-- 进度条 -->
|
|
@@ -46,7 +46,8 @@
|
|
<el-table-column label="操作" width="200px" fixed="right" align="center">
|
|
<el-table-column label="操作" width="200px" fixed="right" align="center">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
<el-button type="text" icon="el-icon-edit" size="small" @click="toHref(scope.row)" :disabled="false">下载</el-button>
|
|
<el-button type="text" icon="el-icon-edit" size="small" @click="toHref(scope.row)" :disabled="false">下载</el-button>
|
|
- <el-button type="text" icon="el-icon-delete" size="small" @click="deleteById(scope.row, scope.$index)" :disabled="auth==='view'&&delFlag === false">删除</el-button>
|
|
|
|
|
|
+ <el-button type="text" icon="el-icon-delete" size="small" @click="deleteById(scope.row, scope.$index)" :disabled="auth==='view'&&delFlag === false&&createBy!==scope.row.createBy.name">删除</el-button>
|
|
|
|
+<!-- <el-button v-if="createBy===scope.row.createBy.name" type="text" icon="el-icon-delete" size="small" @click="deleteById(scope.row, scope.$index)" :disabled="auth==='view'&&delFlag === false">删除2</el-button>-->
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -89,7 +90,8 @@
|
|
fileLoading: true,
|
|
fileLoading: true,
|
|
dividerName: '',
|
|
dividerName: '',
|
|
uploadFlag: false,
|
|
uploadFlag: false,
|
|
- delFlag: false
|
|
|
|
|
|
+ delFlag: false,
|
|
|
|
+ createBy: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -153,9 +155,23 @@
|
|
this.auth = auth
|
|
this.auth = auth
|
|
if (this.commonJS.isEmpty(uploadFlag)) {
|
|
if (this.commonJS.isEmpty(uploadFlag)) {
|
|
this.uploadFlag = false
|
|
this.uploadFlag = false
|
|
|
|
+ } else {
|
|
|
|
+ if (uploadFlag !== true && uploadFlag !== false) {
|
|
|
|
+ this.uploadFlag = false
|
|
|
|
+ } else {
|
|
|
|
+ this.uploadFlag = uploadFlag
|
|
|
|
+ }
|
|
|
|
+ console.log(this.uploadFlag)
|
|
}
|
|
}
|
|
if (this.commonJS.isEmpty(delFlag)) {
|
|
if (this.commonJS.isEmpty(delFlag)) {
|
|
this.delFlag = false
|
|
this.delFlag = false
|
|
|
|
+ } else {
|
|
|
|
+ if (delFlag !== true && delFlag !== false) {
|
|
|
|
+ this.delFlag = false
|
|
|
|
+ this.createBy = delFlag
|
|
|
|
+ } else {
|
|
|
|
+ this.delFlag = delFlag
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (this.commonJS.isEmpty(fileList)) {
|
|
if (this.commonJS.isEmpty(fileList)) {
|
|
this.fileLoading = true
|
|
this.fileLoading = true
|
|
@@ -267,6 +283,7 @@
|
|
this.$refs.upload.uploadFiles = []
|
|
this.$refs.upload.uploadFiles = []
|
|
this.dataList = []
|
|
this.dataList = []
|
|
this.dataListNew = []
|
|
this.dataListNew = []
|
|
|
|
+ this.createBy = ''
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 获取当前文件列表中的文件数据
|
|
* 获取当前文件列表中的文件数据
|