培训记录删除文件后授权状态改为否、禁用下载按钮
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
e99c77fb0d
commit
f73eabed03
|
@ -375,8 +375,13 @@
|
|||
<el-button
|
||||
v-if="hasDownLoad && isManage && !viewStatus"
|
||||
icon="el-icon-download"
|
||||
:title="$t('trials:trialDocument:trainRecord:button:downLoadFileFileFile')"
|
||||
:title="
|
||||
$t('trials:trialDocument:trainRecord:button:downLoadFileFileFile')
|
||||
"
|
||||
circle
|
||||
:disabled="
|
||||
!scope.row.TrialFileRecord || !scope.row.TrialFileRecord.FilePath
|
||||
"
|
||||
@click.stop="downLoad(false, scope.row.TrialFileRecord, 'file')"
|
||||
/>
|
||||
<el-button
|
||||
|
@ -589,6 +594,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 addOrUpdateTrialTrianingRecord(data)
|
||||
this.loading = false
|
||||
|
|
Loading…
Reference in New Issue