Compare commits

...

3 Commits

4 changed files with 30 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -70,6 +70,7 @@ import ppt from '@/assets/file_icon/ppt.png'
import pptx from '@/assets/file_icon/pptx.png' import pptx from '@/assets/file_icon/pptx.png'
import xls from '@/assets/file_icon/xls.png' import xls from '@/assets/file_icon/xls.png'
import xlsx from '@/assets/file_icon/xlsx.png' import xlsx from '@/assets/file_icon/xlsx.png'
import mp4 from '@/assets/file_icon/xlsx.png'
import PreviewFile from '@/components/PreviewFile' import PreviewFile from '@/components/PreviewFile'
import imageViewer from './image-viewer' import imageViewer from './image-viewer'
import { getSystemDocumentAttachmentList } from '@/api/dictionary' import { getSystemDocumentAttachmentList } from '@/api/dictionary'
@ -112,6 +113,7 @@ export default {
pptx, pptx,
xls, xls,
xlsx, xlsx,
mp4,
rowData: {}, rowData: {},
list: [], list: [],
searchData: defaultSearchData(), searchData: defaultSearchData(),

View File

@ -1291,8 +1291,17 @@ export default {
let res = await replaceQCTaskActionUser(this.data.TrialId, this.data.Id, this.assignForm) let res = await replaceQCTaskActionUser(this.data.TrialId, this.data.Id, this.assignForm)
if (res.IsSuccess) { if (res.IsSuccess) {
this.$emit('getList') this.$emit('getList')
this.assignObj.visible = true this.assignObj.visible = false
this.$emit("close") this.$emit("close")
} else {
if (res.Code === 5 && res.ErrorMessage) {
this.$confirm(res.ErrorMessage, {
type: 'warning',
showCancelButton: false,
callback: (action) => { },
})
this.$emit('getList')
}
} }
} catch (err) { } catch (err) {
console.log(err) console.log(err)

View File

@ -812,10 +812,25 @@ export default {
.catch(() => { }) .catch(() => { })
}, },
// //
reviewTask(row) { async reviewTask(row) {
if (!this.OtherInfo.IsQCQuestionConfirmed) return this.$alert(this.$t("trials:qcCheck:alert:questionNoConfirm")) if (!this.OtherInfo.IsQCQuestionConfirmed) return this.$alert(this.$t("trials:qcCheck:alert:questionNoConfirm"))
this.rowData = { ...row } this.loading = true
this.qcVisible = true let res = await takeOrReleaseQCTask(row.TrialId, row.Id, true)
this.loading = false
if (res.IsSuccess) {
this.rowData = { ...row }
this.qcVisible = true
} else {
if (res.Code === 5 && res.ErrorMessage) {
this.$confirm(res.ErrorMessage, {
type: 'warning',
showCancelButton: false,
callback: (action) => { },
})
this.getList()
}
}
}, },
// //
handlePrimaryQC(row) { handlePrimaryQC(row) {