一般文件记录删除文件后授权状态改为否、禁用下载按钮
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
6a6a26feb7
commit
ec37ca2d3e
|
@ -318,6 +318,9 @@
|
|||
icon="el-icon-download"
|
||||
:title="$t('trials:trialDocument:fileRecord:button:downLoadFile')"
|
||||
circle
|
||||
:disabled="
|
||||
!scope.row.TrialFileRecord || !scope.row.TrialFileRecord.FilePath
|
||||
"
|
||||
@click.stop="downLoad(false, scope.row.TrialFileRecord, 'file')"
|
||||
/>
|
||||
<el-button
|
||||
|
@ -489,6 +492,9 @@ export default {
|
|||
if (confirm !== 'confirm') return false
|
||||
let data = deepClone(row)
|
||||
data[`${key}FileRecord`] = null
|
||||
if (key === 'Trial') {
|
||||
data.IsAuthorizedView = false
|
||||
}
|
||||
this.loading = true
|
||||
let res = await addOrUpdateTrialNormalRecord(data)
|
||||
this.loading = false
|
||||
|
|
Loading…
Reference in New Issue