当CRF表绑定标记以后,在阅片页面,当书包移动到CRF问题的答案上时,可以付款显示绑定的标记名称
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
3f6604eebf
commit
347fb3cde0
|
@ -73,8 +73,7 @@
|
|||
<template v-else>
|
||||
<el-form-item
|
||||
v-if="(question.ShowQuestion === 1 && question.ParentTriggerValueList.includes(questionForm[question.ParentId])) || question.ShowQuestion === 0"
|
||||
:title="question.Remark"
|
||||
:label="`${question.QuestionName}`" :prop="question.Id" :rules="[
|
||||
:title="question.Remark" :label="`${question.QuestionName}`" :prop="question.Id" :rules="[
|
||||
{
|
||||
required: (question.IsRequired === 0 || (question.IsRequired === 1 && question.RelevanceId && (question.RelevanceValueList.includes(isNaN(parseFloat(questionForm[question.RelevanceId])) ? questionForm[question.RelevanceId] : questionForm[question.RelevanceId].toString())))) && question.Type !== 'group' && question.Type !== 'summary',
|
||||
message: $t('common:ruleMessage:specify'), trigger: ['blur', 'change']
|
||||
|
@ -162,6 +161,7 @@
|
|||
<el-input type="number" @change="(val) => { formItemNumberChange(val, question) }"
|
||||
@blur="questionsMarkStatus[question.Id] && questionsMarkStatus[question.Id].isMarked ? () => { } : handleMarkedQsBlur(questionForm[question.Id], questionForm, question.Id, question)"
|
||||
v-model="questionForm[question.Id]"
|
||||
:title="questionsMarkStatus[question.Id] ? questionsMarkStatus[question.Id].OrderMarkName : ''"
|
||||
:disabled="(questionsMarkStatus[question.Id] && questionsMarkStatus[question.Id].isMarked && question.ImageMarkEnum === 2) || question.ImageMarkEnum === 1"
|
||||
style="width: 150px;">
|
||||
<template v-if="question.Unit !== 0" slot="append">
|
||||
|
@ -215,8 +215,9 @@
|
|||
@blur="handleBlur(questionForm[question.Id], questionForm, question.Id)" v-model="questionForm[question.Id]"
|
||||
:disabled="readingTaskState === 2">
|
||||
<!-- <template slot="append">1</template> -->
|
||||
<template slot="append" v-if="question.Unit !== 0">{{ question.Unit !== 4 ? $fd('ValueUnit', question.Unit) :
|
||||
question.CustomUnit}}</template>
|
||||
<template slot="append" v-if="question.Unit !== 0">{{ question.Unit !== 4 ? $fd('ValueUnit', question.Unit)
|
||||
:
|
||||
question.CustomUnit }}</template>
|
||||
<template slot="append" v-else-if="question.ValueType === 2">%</template>
|
||||
|
||||
</el-input>
|
||||
|
@ -225,14 +226,16 @@
|
|||
@blur="handleBlur(questionForm[question.Id], questionForm, question.Id)"
|
||||
:disabled="question.DataSource === 1 || readingTaskState === 2" v-model="questionForm[question.Id]">
|
||||
<!-- <template slot="append">2</template> -->
|
||||
<template slot="append" v-if="question.Unit !== 0">{{ question.Unit !== 4 ? $fd('ValueUnit', question.Unit) :
|
||||
question.CustomUnit}}</template>
|
||||
<template slot="append" v-if="question.Unit !== 0">{{ question.Unit !== 4 ? $fd('ValueUnit', question.Unit)
|
||||
:
|
||||
question.CustomUnit }}</template>
|
||||
<template slot="append" v-else-if="question.ValueType === 2">%</template>
|
||||
</el-input>
|
||||
</template>
|
||||
<!-- 上传图像 -->
|
||||
<el-upload v-if="question.Type === 'upload'" :disabled="readingTaskState === 2" action :accept="question.FileType"
|
||||
:limit="question.ImageCount === 0 ? 100 : question.ImageCount" :on-preview="handlePictureCardPreview"
|
||||
<el-upload v-if="question.Type === 'upload'" :disabled="readingTaskState === 2" action
|
||||
:accept="question.FileType" :limit="question.ImageCount === 0 ? 100 : question.ImageCount"
|
||||
:on-preview="handlePictureCardPreview"
|
||||
:before-upload="(file) => { return handleBeforeUpload(file, question.FileType) }"
|
||||
:http-request="uploadScreenshot" :on-remove="handleRemove" :file-list="fileList"
|
||||
:class="{ disabled: question.ImageCount === 0 ? false : fileList.length >= question.ImageCount }">
|
||||
|
|
|
@ -7,40 +7,21 @@
|
|||
<span style="margin-left:5px;">{{ visitInfo.TaskBlindName }}</span>
|
||||
</h3>
|
||||
<div v-if="readingTaskState < 2">
|
||||
<el-tooltip class="item" effect="dark" :content="$t('trials:dicomReading:message:confirmReset')" placement="bottom">
|
||||
<i
|
||||
class="el-icon-refresh-left"
|
||||
@click="resetForm"
|
||||
/>
|
||||
<el-tooltip class="item" effect="dark" :content="$t('trials:dicomReading:message:confirmReset')"
|
||||
placement="bottom">
|
||||
<i class="el-icon-refresh-left" @click="resetForm" />
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
<el-form
|
||||
v-if="taskInfo && rerender"
|
||||
ref="questions"
|
||||
size="small"
|
||||
:model="questionForm"
|
||||
class="ecrf-form"
|
||||
>
|
||||
<el-form v-if="taskInfo && rerender" ref="questions" size="small" :model="questionForm" class="ecrf-form">
|
||||
<template v-if="rerender">
|
||||
<QuestionFormItem
|
||||
v-for="question of questions"
|
||||
:key="question.Id"
|
||||
:visit-task-id="visitTaskId"
|
||||
:question="question"
|
||||
:question-form="questionForm"
|
||||
:reading-task-state="readingTaskState"
|
||||
:criterion-id="criterionId"
|
||||
:calculation-list="calculationList"
|
||||
:question-mark-info-list="questionMarkInfoList"
|
||||
:questions-mark-status="questionsMarkStatus"
|
||||
:is-baseline="isBaseLineTask"
|
||||
@resetFormItemData="resetFormItemData"
|
||||
@setFormItemData="setFormItemData"
|
||||
@getQuestions="getQuestions"
|
||||
@operateImageMarker="operateImageMarker"
|
||||
@unBindAnnotationToQuestion="unBindAnnotationToQuestion"
|
||||
/>
|
||||
<QuestionFormItem v-for="question of questions" :key="question.Id" :visit-task-id="visitTaskId"
|
||||
:question="question" :question-form="questionForm" :reading-task-state="readingTaskState"
|
||||
:criterion-id="criterionId" :calculation-list="calculationList"
|
||||
:question-mark-info-list="questionMarkInfoList" :questions-mark-status="questionsMarkStatus"
|
||||
:is-baseline="isBaseLineTask" @resetFormItemData="resetFormItemData" @setFormItemData="setFormItemData"
|
||||
@getQuestions="getQuestions" @operateImageMarker="operateImageMarker"
|
||||
@unBindAnnotationToQuestion="unBindAnnotationToQuestion" />
|
||||
</template>
|
||||
|
||||
<el-form-item v-if="readingTaskState < 2">
|
||||
|
@ -60,16 +41,11 @@
|
|||
</div>
|
||||
|
||||
<!-- 签名框 -->
|
||||
<el-dialog
|
||||
v-if="signVisible"
|
||||
:visible.sync="signVisible"
|
||||
:close-on-click-modal="false"
|
||||
width="600px"
|
||||
custom-class="base-dialog-wrapper"
|
||||
>
|
||||
<el-dialog v-if="signVisible" :visible.sync="signVisible" :close-on-click-modal="false" width="600px"
|
||||
custom-class="base-dialog-wrapper">
|
||||
<div slot="title">
|
||||
<span style="font-size:18px;">{{ $t('common:dialogTitle:sign') }}</span>
|
||||
<span style="font-size:12px;margin-left:5px">{{ `(${$t('common:label:sign')}${ currentUser })` }}</span>
|
||||
<span style="font-size:12px;margin-left:5px">{{ `(${$t('common:label:sign')}${currentUser})` }}</span>
|
||||
</div>
|
||||
<SignForm ref="signForm" :sign-code-enum="signCode" @closeDialog="closeSignDialog" />
|
||||
</el-dialog>
|
||||
|
@ -178,9 +154,9 @@ export default {
|
|||
this.questionsMarkStatus = {}
|
||||
this.questionMarkInfoList = res.OtherInfo.QuestionMarkInfoList.map(i => {
|
||||
if (i.RowId) {
|
||||
this.$set(this.questionsMarkStatus, `${i.RowId}_${i.TableQuestionId}`, {isMarked: i.MeasureData !== '', isSaved: true})
|
||||
this.$set(this.questionsMarkStatus, `${i.RowId}_${i.TableQuestionId}`, { isMarked: i.MeasureData !== '', isSaved: true, OrderMarkName: i.OrderMarkName })
|
||||
} else if (i.QuestionId) {
|
||||
this.$set(this.questionsMarkStatus, i.QuestionId, {isMarked: i.MeasureData !== '', isSaved: true})
|
||||
this.$set(this.questionsMarkStatus, i.QuestionId, { isMarked: i.MeasureData !== '', isSaved: true, OrderMarkName: i.OrderMarkName })
|
||||
}
|
||||
if (typeof i.MeasureData === 'string' && i.MeasureData) {
|
||||
i.MeasureData = JSON.parse(i.MeasureData)
|
||||
|
@ -206,7 +182,7 @@ export default {
|
|||
i.TableQuestions.Questions.forEach(o => {
|
||||
if (o.Type === 'number') {
|
||||
i.TableQuestions.Answers.forEach((ite, index) => {
|
||||
this.$set(i.TableQuestions.Answers[index], o.Id, isNaN(parseFloat(i.TableQuestions.Answers[index][o.Id])) ? i.TableQuestions.Answers[index][o.Id] : parseFloat(i.TableQuestions.Answers[index][o.Id]).toFixed(this.digitPlaces))
|
||||
this.$set(i.TableQuestions.Answers[index], o.Id, isNaN(parseFloat(i.TableQuestions.Answers[index][o.Id])) ? i.TableQuestions.Answers[index][o.Id] : parseFloat(i.TableQuestions.Answers[index][o.Id]).toFixed(this.digitPlaces))
|
||||
})
|
||||
}
|
||||
})
|
||||
|
@ -241,7 +217,7 @@ export default {
|
|||
try {
|
||||
var answers = []
|
||||
for (const k in this.questionForm) {
|
||||
if (this.questionForm[k] instanceof Array) {} else {
|
||||
if (this.questionForm[k] instanceof Array) { } else {
|
||||
answers.push({ id: k, answer: this.questionForm[k] })
|
||||
}
|
||||
}
|
||||
|
@ -280,7 +256,7 @@ export default {
|
|||
this.loading = true
|
||||
var answers = []
|
||||
for (const k in this.questionForm) {
|
||||
if (this.questionForm[k] instanceof Array) {} else {
|
||||
if (this.questionForm[k] instanceof Array) { } else {
|
||||
answers.push({ readingQuestionTrialId: k, answer: this.questionForm[k] })
|
||||
}
|
||||
}
|
||||
|
@ -353,7 +329,7 @@ export default {
|
|||
const o = list.find(v => {
|
||||
return (
|
||||
parseFloat(obj.val) >= parseFloat(v.gt) &&
|
||||
parseFloat(obj.val) < parseFloat(v.lt)
|
||||
parseFloat(obj.val) < parseFloat(v.lt)
|
||||
)
|
||||
})
|
||||
answer = o ? o.label : null
|
||||
|
@ -367,7 +343,7 @@ export default {
|
|||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
verifyAnnotationIsBound(annotation) {
|
||||
const i = this.questionMarkInfoList.findIndex(i => i.MeasureData && i.MeasureData.annotationUID === annotation.annotationUID)
|
||||
return i > -1
|
||||
|
@ -485,7 +461,7 @@ export default {
|
|||
// } else {
|
||||
// this.$set(this.questionsMarkStatus, `${obj.rowId}_${item.TableQuestionId}`, {isMarked: item.MeasureData ? true : false, isSaved: false})
|
||||
// }
|
||||
|
||||
|
||||
// }
|
||||
// })
|
||||
// } else if (this.operateRowId && this.operateQuestionId) {
|
||||
|
@ -541,15 +517,15 @@ export default {
|
|||
}
|
||||
const { question, operateStateEnum, rowId, answer } = obj
|
||||
const { Id, IsTableQuestion, ImageTool, ImageToolAttribute, ParentQsId, RowId } = question
|
||||
|
||||
|
||||
Object.assign(this, {
|
||||
operateStateEnum,
|
||||
isTableQuestion: !!IsTableQuestion,
|
||||
imageTool: ImageTool,
|
||||
imageToolAttribute: ImageToolAttribute,
|
||||
operateQuestionId: Id,
|
||||
operateRowId: RowId,
|
||||
operateParentQsId: ParentQsId
|
||||
operateStateEnum,
|
||||
isTableQuestion: !!IsTableQuestion,
|
||||
imageTool: ImageTool,
|
||||
imageToolAttribute: ImageToolAttribute,
|
||||
operateQuestionId: Id,
|
||||
operateRowId: RowId,
|
||||
operateParentQsId: ParentQsId
|
||||
})
|
||||
const stateHandlers = {
|
||||
[STATE.BIND]: () => this.$emit('setReadingToolPassive'),
|
||||
|
@ -570,8 +546,8 @@ export default {
|
|||
if (index === -1) return
|
||||
const annotation = this.questionMarkInfoList[index].MeasureData
|
||||
this.$emit('viewCustomAnnotationSeries', {
|
||||
visitTaskId: this.visitTaskId,
|
||||
annotation
|
||||
visitTaskId: this.visitTaskId,
|
||||
annotation
|
||||
})
|
||||
},
|
||||
handleRemoveAnnotation(obj) {
|
||||
|
@ -583,12 +559,12 @@ export default {
|
|||
SeriesId: '',
|
||||
InstanceId: ''
|
||||
})
|
||||
const key = this.operateRowId
|
||||
? `${this.operateRowId}_${obj.question.Id}`
|
||||
const key = this.operateRowId
|
||||
? `${this.operateRowId}_${obj.question.Id}`
|
||||
: obj.question.Id
|
||||
this.$set(this.questionsMarkStatus, key, {
|
||||
isMarked: false,
|
||||
isSaved: false
|
||||
isSaved: false,
|
||||
})
|
||||
},
|
||||
async handleSaveOuterQuestions(obj) {
|
||||
|
@ -596,11 +572,11 @@ export default {
|
|||
try {
|
||||
const answers = [{ id: obj.question.Id, answer: this.questionForm[obj.question.Id] }]
|
||||
const markInfo = []
|
||||
|
||||
|
||||
const index = this.questionMarkInfoList.findIndex(
|
||||
item => item.QuestionId === this.operateQuestionId
|
||||
)
|
||||
|
||||
|
||||
if (index > -1) {
|
||||
const item = { ...this.questionMarkInfoList[index] }
|
||||
item.MeasureData = item.MeasureData ? JSON.stringify(item.MeasureData) : ''
|
||||
|
@ -614,7 +590,8 @@ export default {
|
|||
})
|
||||
this.$set(this.questionsMarkStatus, obj.question.Id, {
|
||||
isMarked: !!this.questionMarkInfoList[index]?.MeasureData,
|
||||
isSaved: true
|
||||
isSaved: true,
|
||||
OrderMarkName: this.questionMarkInfoList[index].OrderMarkName
|
||||
})
|
||||
} catch (e) {
|
||||
console.error('保存失败:', e)
|
||||
|
@ -623,12 +600,12 @@ export default {
|
|||
}
|
||||
},
|
||||
handleUpdateValue(obj) {
|
||||
const key = this.operateRowId
|
||||
? `${this.operateRowId}_${obj.question.Id}`
|
||||
const key = this.operateRowId
|
||||
? `${this.operateRowId}_${obj.question.Id}`
|
||||
: obj.question.Id
|
||||
this.$set(this.questionsMarkStatus, key, {
|
||||
isMarked: false,
|
||||
isSaved: false
|
||||
isSaved: false,
|
||||
})
|
||||
},
|
||||
async handleSaveTableQuestions(obj) {
|
||||
|
@ -669,12 +646,12 @@ export default {
|
|||
TableQuestionId: this.operateQuestionId,
|
||||
RowIndex: obj.rowIndex
|
||||
}, -10)
|
||||
this.$set(this.questionsMarkStatus,
|
||||
`${this.operateRowId}_${this.operateQuestionId}`,
|
||||
{ isMarked: !!annotation, isSaved: true }
|
||||
this.$set(this.questionsMarkStatus,
|
||||
`${this.operateRowId}_${this.operateQuestionId}`,
|
||||
{ isMarked: !!annotation, isSaved: true, OrderMarkName: annotation.data.label }
|
||||
)
|
||||
this.resetOperateState()
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
console.error('表格保存失败:', e)
|
||||
} finally {
|
||||
loading.close()
|
||||
|
@ -683,11 +660,11 @@ export default {
|
|||
findMarkIndex(question) {
|
||||
const { Id, RowId } = question
|
||||
if (this.isTableQuestion) {
|
||||
return RowId
|
||||
? this.questionMarkInfoList.findIndex(i =>
|
||||
i.TableQuestionId === Id && i.RowId === RowId)
|
||||
: this.questionMarkInfoList.findIndex(i =>
|
||||
i.TableQuestionId === Id && !i.RowId)
|
||||
return RowId
|
||||
? this.questionMarkInfoList.findIndex(i =>
|
||||
i.TableQuestionId === Id && i.RowId === RowId)
|
||||
: this.questionMarkInfoList.findIndex(i =>
|
||||
i.TableQuestionId === Id && !i.RowId)
|
||||
}
|
||||
return this.questionMarkInfoList.findIndex(i => i.QuestionId === Id)
|
||||
},
|
||||
|
@ -697,7 +674,7 @@ export default {
|
|||
item.RowId = obj.rowId
|
||||
const oldKey = item.TableQuestionId
|
||||
const newKey = `${obj.rowId}_${item.TableQuestionId}`
|
||||
|
||||
|
||||
if (this.questionsMarkStatus[oldKey]) {
|
||||
const status = { ...this.questionsMarkStatus[oldKey] }
|
||||
delete this.questionsMarkStatus[oldKey]
|
||||
|
@ -730,8 +707,8 @@ export default {
|
|||
}
|
||||
if (currentState === 3) {
|
||||
const conflictIndex = this.questionMarkInfoList.findIndex(
|
||||
item => item.MeasureData.annotationUID === annotation.annotationUID
|
||||
&& item.RowId !== this.operateRowId && this.operateRowId
|
||||
item => item.MeasureData.annotationUID === annotation.annotationUID
|
||||
&& item.RowId !== this.operateRowId && this.operateRowId
|
||||
)
|
||||
if (conflictIndex > -1) {
|
||||
this.$alert('该标记已绑定到其他行,不能更改绑定!')
|
||||
|
@ -740,8 +717,8 @@ export default {
|
|||
}
|
||||
const message = currentState === 0 ? '是否确认绑定?' : '是否确认更改?'
|
||||
const result = await this.$confirm(message, {
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true
|
||||
})
|
||||
const isConfirmed = result === 'confirm'
|
||||
if (!isConfirmed) return
|
||||
|
@ -751,17 +728,18 @@ export default {
|
|||
this.questionMarkInfoList.push({
|
||||
InstanceId: annotation.instanceId,
|
||||
SeriesId: annotation.seriesId,
|
||||
OrderMarkName: annotation.data.label,
|
||||
StudyId: annotation.studyId,
|
||||
MarkTool: annotation.metadata.toolName,
|
||||
PicturePath: '',
|
||||
NumberOfFrames: annotation.numberOfFrames,
|
||||
MeasureData: annotation,
|
||||
RowId: this.operateRowId || '',
|
||||
QuestionId: this.isTableQuestion
|
||||
? this.operateParentQsId
|
||||
QuestionId: this.isTableQuestion
|
||||
? this.operateParentQsId
|
||||
: this.operateQuestionId,
|
||||
TableQuestionId: this.isTableQuestion
|
||||
? this.operateQuestionId
|
||||
TableQuestionId: this.isTableQuestion
|
||||
? this.operateQuestionId
|
||||
: ''
|
||||
})
|
||||
} else {
|
||||
|
@ -770,6 +748,7 @@ export default {
|
|||
InstanceId: annotation.instanceId,
|
||||
SeriesId: annotation.seriesId,
|
||||
StudyId: annotation.studyId,
|
||||
OrderMarkName: annotation.data.label,
|
||||
MarkTool: annotation.metadata.toolName,
|
||||
PicturePath: '',
|
||||
NumberOfFrames: annotation.numberOfFrames,
|
||||
|
@ -789,23 +768,23 @@ export default {
|
|||
const item = markList[i];
|
||||
if (item.MeasureData?.annotationUID !== annotation.annotationUID) continue
|
||||
item.MeasureData = annotation
|
||||
|
||||
|
||||
if (item.TableQuestionId) {
|
||||
qsArr.push({ ...item, ImageToolAttribute: this.imageToolAttribute })
|
||||
|
||||
const keyId = item.RowId
|
||||
? `${item.RowId}_${item.TableQuestionId}`
|
||||
: item.TableQuestionId
|
||||
|
||||
this.$set(this.questionsMarkStatus, keyId, {
|
||||
isMarked: true,
|
||||
isSaved: false
|
||||
|
||||
const keyId = item.RowId
|
||||
? `${item.RowId}_${item.TableQuestionId}`
|
||||
: item.TableQuestionId
|
||||
|
||||
this.$set(this.questionsMarkStatus, keyId, {
|
||||
isMarked: true,
|
||||
isSaved: false,
|
||||
})
|
||||
} else {
|
||||
this.setAnswerToQuestion(annotation, item.QuestionId)
|
||||
this.$set(this.questionsMarkStatus, item.QuestionId, {
|
||||
isMarked: true,
|
||||
isSaved: false
|
||||
isMarked: true,
|
||||
isSaved: false,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -816,13 +795,13 @@ export default {
|
|||
findTargetIndex() {
|
||||
if (this.isTableQuestion && this.operateRowId) {
|
||||
return this.questionMarkInfoList.findIndex(
|
||||
item => item.TableQuestionId === this.operateQuestionId
|
||||
&& item.RowId === this.operateRowId
|
||||
)
|
||||
item => item.TableQuestionId === this.operateQuestionId
|
||||
&& item.RowId === this.operateRowId
|
||||
)
|
||||
} else if (this.isTableQuestion) {
|
||||
return this.questionMarkInfoList.findIndex(
|
||||
item => item.TableQuestionId === this.operateQuestionId
|
||||
&& !item.RowId
|
||||
item => item.TableQuestionId === this.operateQuestionId
|
||||
&& !item.RowId
|
||||
)
|
||||
}
|
||||
return this.questionMarkInfoList.findIndex(
|
||||
|
@ -836,9 +815,9 @@ export default {
|
|||
const keyId = index > -1 && this.questionMarkInfoList[index].RowId
|
||||
? `${this.questionMarkInfoList[index].RowId}_${this.questionMarkInfoList[index].TableQuestionId}`
|
||||
: this.operateRowId
|
||||
? `${this.operateRowId}_${this.operateQuestionId}`
|
||||
: this.operateQuestionId
|
||||
|
||||
? `${this.operateRowId}_${this.operateQuestionId}`
|
||||
: this.operateQuestionId
|
||||
|
||||
this.$set(this.questionsMarkStatus, keyId, status)
|
||||
store.dispatch('dicom3d/setOperateInfo', [{
|
||||
MeasureData: annotation,
|
||||
|
@ -895,13 +874,13 @@ export default {
|
|||
if (!referencedImageId) return null
|
||||
const cacheKey = `imageId:${referencedImageId}`
|
||||
const cachedStats = annotation.data?.cachedStats?.[cacheKey]
|
||||
const hasProp = cachedStats
|
||||
&& Object.prototype.hasOwnProperty.call(cachedStats, prop)
|
||||
const hasProp = cachedStats
|
||||
&& Object.prototype.hasOwnProperty.call(cachedStats, prop)
|
||||
if (!hasProp) return null
|
||||
const value = cachedStats[prop]
|
||||
return value !== null
|
||||
? parseFloat(value).toFixed(this.digitPlaces)
|
||||
: value
|
||||
return value !== null
|
||||
? parseFloat(value).toFixed(this.digitPlaces)
|
||||
: value
|
||||
},
|
||||
unBindAnnotationToQuestion(obj) {
|
||||
const { markTableQuestions = [], questionId } = obj || {}
|
||||
|
@ -999,32 +978,38 @@ export default {
|
|||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.questionList-wrapper{
|
||||
.questionList-wrapper {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
.container{
|
||||
|
||||
.container {
|
||||
padding: 10px;
|
||||
.basic-info{
|
||||
|
||||
.basic-info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
h3{
|
||||
|
||||
h3 {
|
||||
color: #ddd;
|
||||
padding: 5px 0px;
|
||||
margin: 0;
|
||||
}
|
||||
i{
|
||||
|
||||
i {
|
||||
color: #fff;
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.ecrf-form{
|
||||
::v-deep .el-form-item__label{
|
||||
|
||||
.ecrf-form {
|
||||
::v-deep .el-form-item__label {
|
||||
color: #ddd;
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep .el-table,
|
||||
.el-table__expanded-cell {
|
||||
background-color: #000;
|
||||
|
@ -1038,43 +1023,51 @@ export default {
|
|||
color: #fff;
|
||||
border-color: #444444;
|
||||
}
|
||||
::v-deep .el-table__body tr > td {
|
||||
|
||||
::v-deep .el-table__body tr>td {
|
||||
background-color: #000 !important;
|
||||
color: #fff;
|
||||
border-color: #444444;
|
||||
}
|
||||
::v-deep .el-table__body tr:hover > td {
|
||||
|
||||
::v-deep .el-table__body tr:hover>td {
|
||||
background-color: #858282 !important;
|
||||
color: #fff;
|
||||
border-color: #444444;
|
||||
}
|
||||
|
||||
::v-deep .el-table--border th.gutter:last-of-type {
|
||||
border: none;
|
||||
}
|
||||
::v-deep .el-dialog{
|
||||
|
||||
::v-deep .el-dialog {
|
||||
background: #1e1e1e;
|
||||
border: 1px solid #ddd;
|
||||
color: #ddd;
|
||||
.el-dialog__title{
|
||||
color:#fff;
|
||||
|
||||
.el-dialog__title {
|
||||
color: #fff;
|
||||
}
|
||||
.el-input .el-input__inner{
|
||||
|
||||
.el-input .el-input__inner {
|
||||
background-color: transparent;
|
||||
color: #ddd;
|
||||
border: 1px solid #5e5e5e;
|
||||
}
|
||||
.el-input.is-disabled .el-input__inner{
|
||||
|
||||
.el-input.is-disabled .el-input__inner {
|
||||
background-color: #646464a1;
|
||||
}
|
||||
.el-form-item__label{
|
||||
|
||||
.el-form-item__label {
|
||||
color: #dfdfdf
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// .ecrf-list-container{
|
||||
// min-height:400px;
|
||||
// color: #ddd;
|
||||
|
||||
// }
|
||||
</style>
|
||||
// }</style>
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
<div class="criterion-table-form-item">
|
||||
<el-form-item
|
||||
v-if="(question.ShowQuestion === 1 && !!~question.ParentTriggerValueList.indexOf(questionForm[question.ParentId])) || question.ShowQuestion === 0"
|
||||
:title="question.Remark"
|
||||
:label="`${question.QuestionName}`" :prop="question.Id" :rules="[
|
||||
:title="question.Remark" :label="`${question.QuestionName}`" :prop="question.Id" :rules="[
|
||||
{
|
||||
required: (question.IsRequired === 0 || (question.IsRequired === 1 && question.RelevanceId && !!~question.RelevanceValueList.indexOf(questionForm[question.RelevanceId]))) && question.Type !== 'group' && question.Type !== 'summary',
|
||||
message: $t('common:ruleMessage:select'), trigger: ['blur', 'change']
|
||||
|
@ -84,6 +83,7 @@
|
|||
<el-input type="number" @change="(val) => { formItemNumberChange(val, question) }"
|
||||
@blur="questionsMarkStatus[question.Id] && questionsMarkStatus[question.Id].isMarked ? () => { } : handleMarkedQsBlur(questionForm[question.Id], questionForm, question.Id, question)"
|
||||
v-model="questionForm[question.Id]"
|
||||
:title="questionsMarkStatus[rowId ? `${rowId}_${question.Id}` : question.Id] ? questionsMarkStatus[rowId ? `${rowId}_${question.Id}` : question.Id].OrderMarkName : ''"
|
||||
:disabled="(questionsMarkStatus[question.Id] && questionsMarkStatus[question.Id].isMarked && question.ImageMarkEnum === 2) || question.ImageMarkEnum === 1"
|
||||
style="width: 150px;">
|
||||
<template v-if="question.Unit !== 0" slot="append">
|
||||
|
@ -188,7 +188,6 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { submitTableQuestion } from '@/api/trials'
|
||||
export default {
|
||||
name: 'QuestionTableFormItem',
|
||||
props: {
|
||||
|
|
Loading…
Reference in New Issue