Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
049d8dc430
|
@ -23,11 +23,16 @@
|
||||||
:criterionId="TrialReadingCriterionId">
|
:criterionId="TrialReadingCriterionId">
|
||||||
</QuestionsPreview>
|
</QuestionsPreview>
|
||||||
</div>
|
</div>
|
||||||
<div style="position: absolute;bottom:0;left: 0;z-index: 10;background: #000;width: 100%;display: flex;justify-content: right;align-items: center;height: 50px">
|
<div class="questions-footer">
|
||||||
<el-button size="mini" v-if="readingTaskState<2" style="margin-right: 10px" @click="handleSave(true)">
|
<i class="el-icon-question feedback-icon" @click="openFeedBackTable" />
|
||||||
|
<el-button v-if="readingTaskState<2" style="margin-right: 10px" size="small" @click="handleSave(true)">
|
||||||
{{$t('common:button:save')}}
|
{{$t('common:button:save')}}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="mini" style="margin-right: 10px" v-if="readingTaskState<2 && IseCRFShowInDicomReading" @click="handleConfirm">
|
<el-button v-if="readingTaskState<2 && IseCRFShowInDicomReading" type="primary" size="small" @click="skipTask">
|
||||||
|
<!-- 跳过 -->
|
||||||
|
{{ $t('trials:readingReport:button:skip') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button style="margin-right: 10px" size="small" v-if="readingTaskState<2 && IseCRFShowInDicomReading" @click="handleConfirm">
|
||||||
{{ $t('common:button:submit') }}</el-button>
|
{{ $t('common:button:submit') }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
<!-- 签名框 -->
|
<!-- 签名框 -->
|
||||||
|
@ -88,6 +93,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { submitDicomVisitTask } from '@/api/trials'
|
import { submitDicomVisitTask } from '@/api/trials'
|
||||||
import { getCustomTag, submitCustomTag, resetReadingTask } from '@/api/reading'
|
import { getCustomTag, submitCustomTag, resetReadingTask } from '@/api/reading'
|
||||||
|
import { setSkipReadingCache } from '@/api/reading'
|
||||||
import DicomEvent from './../components/DicomEvent'
|
import DicomEvent from './../components/DicomEvent'
|
||||||
import SignForm from '@/views/trials/components/newSignForm'
|
import SignForm from '@/views/trials/components/newSignForm'
|
||||||
import QuestionsPreview from './CustomizeQuestionsPreview'
|
import QuestionsPreview from './CustomizeQuestionsPreview'
|
||||||
|
@ -394,6 +400,57 @@ export default {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async skipTask() {
|
||||||
|
try {
|
||||||
|
// 是否确认跳过?
|
||||||
|
const confirm = await this.$confirm(
|
||||||
|
this.$t('trials:readingReport:message:skipConfirm'),
|
||||||
|
{
|
||||||
|
type: 'warning',
|
||||||
|
distinguishCancelAndClose: true
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (confirm !== 'confirm') return
|
||||||
|
this.loading = true
|
||||||
|
const res = await setSkipReadingCache({ visitTaskId: this.visitTaskId })
|
||||||
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
window.location.reload()
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
openFeedBackTable() {
|
||||||
|
this.$FB({
|
||||||
|
type: 'imgfail',
|
||||||
|
trialId: this.$route.query.trialId,
|
||||||
|
visitTaskId: this.visitTaskId,
|
||||||
|
callBack: async() => {
|
||||||
|
console.log('callBack')
|
||||||
|
const confirm = await this.$confirm(
|
||||||
|
this.$t('trials:reading:confirm:feedbackmsg'),
|
||||||
|
{
|
||||||
|
type: 'warning',
|
||||||
|
distinguishCancelAndClose: true
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (confirm !== 'confirm') return
|
||||||
|
this.loading = true
|
||||||
|
try {
|
||||||
|
const res = await setSkipReadingCache({ visitTaskId: this.visitTaskId })
|
||||||
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
window.location.reload()
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -484,5 +541,27 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.questions-footer{
|
||||||
|
position: absolute;
|
||||||
|
bottom:0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 10;
|
||||||
|
background: #000;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: right;
|
||||||
|
align-items: center;
|
||||||
|
height: 50px;
|
||||||
|
.feedback-icon{
|
||||||
|
padding: 0 10px;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24px;
|
||||||
|
cursor: pointer;
|
||||||
|
&:hover{
|
||||||
|
color: #68a2d5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue