培训记录删除文件后授权状态改为否、禁用下载按钮
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
|
<el-button
|
||||||
v-if="hasDownLoad && isManage && !viewStatus"
|
v-if="hasDownLoad && isManage && !viewStatus"
|
||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
:title="$t('trials:trialDocument:trainRecord:button:downLoadFileFileFile')"
|
:title="
|
||||||
|
$t('trials:trialDocument:trainRecord:button:downLoadFileFileFile')
|
||||||
|
"
|
||||||
circle
|
circle
|
||||||
|
:disabled="
|
||||||
|
!scope.row.TrialFileRecord || !scope.row.TrialFileRecord.FilePath
|
||||||
|
"
|
||||||
@click.stop="downLoad(false, scope.row.TrialFileRecord, 'file')"
|
@click.stop="downLoad(false, scope.row.TrialFileRecord, 'file')"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -589,6 +594,9 @@ export default {
|
||||||
if (confirm !== 'confirm') return false
|
if (confirm !== 'confirm') return false
|
||||||
let data = deepClone(row)
|
let data = deepClone(row)
|
||||||
data[`${key}FileRecord`] = null
|
data[`${key}FileRecord`] = null
|
||||||
|
if (key === 'Trial') {
|
||||||
|
data.IsAuthorizedView = false
|
||||||
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let res = await addOrUpdateTrialTrianingRecord(data)
|
let res = await addOrUpdateTrialTrianingRecord(data)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
Loading…
Reference in New Issue