部分冲突解决
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
66bcff2405
commit
0f16ef91f1
|
@ -15,7 +15,6 @@
|
||||||
</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">
|
<template v-if="rerender">
|
||||||
<<<<<<< HEAD
|
|
||||||
<QuestionFormItem v-for="question of questions" :key="question.Id" :visit-task-id="visitTaskId"
|
<QuestionFormItem v-for="question of questions" :key="question.Id" :visit-task-id="visitTaskId"
|
||||||
:question="question" :question-form="questionForm" :reading-task-state="readingTaskState"
|
:question="question" :question-form="questionForm" :reading-task-state="readingTaskState"
|
||||||
:criterion-id="criterionId" :calculation-list="calculationList"
|
:criterion-id="criterionId" :calculation-list="calculationList"
|
||||||
|
@ -23,22 +22,6 @@
|
||||||
:is-baseline="isBaseLineTask" @resetFormItemData="resetFormItemData" @setFormItemData="setFormItemData"
|
:is-baseline="isBaseLineTask" @resetFormItemData="resetFormItemData" @setFormItemData="setFormItemData"
|
||||||
@getQuestions="getQuestions" @operateImageMarker="operateImageMarker"
|
@getQuestions="getQuestions" @operateImageMarker="operateImageMarker"
|
||||||
@unBindAnnotationToQuestion="unBindAnnotationToQuestion" />
|
@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"
|
|
||||||
:is-baseline="isBaseLineTask"
|
|
||||||
@resetFormItemData="resetFormItemData"
|
|
||||||
@setFormItemData="setFormItemData"
|
|
||||||
@getQuestions="getQuestions"
|
|
||||||
/>
|
|
||||||
>>>>>>> uat
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<el-form-item v-if="readingTaskState < 2">
|
<el-form-item v-if="readingTaskState < 2">
|
||||||
|
@ -133,14 +116,8 @@ export default {
|
||||||
this.visitTaskId = this.visitInfo.VisitTaskId
|
this.visitTaskId = this.visitInfo.VisitTaskId
|
||||||
this.taskInfo = JSON.parse(localStorage.getItem('taskInfo'))
|
this.taskInfo = JSON.parse(localStorage.getItem('taskInfo'))
|
||||||
this.isBaseLineTask = this.taskInfo.IsBaseLine
|
this.isBaseLineTask = this.taskInfo.IsBaseLine
|
||||||
<<<<<<< HEAD
|
|
||||||
this.criterionId = this.taskInfo.TrialReadingCriterionId
|
this.criterionId = this.taskInfo.TrialReadingCriterionId
|
||||||
const digitPlaces = Number(localStorage.getItem('digitPlaces'))
|
const digitPlaces = Number(localStorage.getItem('digitPlaces'))
|
||||||
=======
|
|
||||||
this.criterionType = this.taskInfo.CriterionType
|
|
||||||
this.criterionId = this.taskInfo.TrialReadingCriterionId
|
|
||||||
var digitPlaces = Number(localStorage.getItem('digitPlaces'))
|
|
||||||
>>>>>>> uat
|
|
||||||
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
|
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
|
||||||
this.getQuestionCalculateRelation()
|
this.getQuestionCalculateRelation()
|
||||||
this.getQuestions(true)
|
this.getQuestions(true)
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="question.TableQuestions.Answers">
|
<el-table :data="question.TableQuestions.Answers">
|
||||||
<el-table-column v-for="item of question.TableQuestions.Questions" :key="item.Id" :prop="item.Id"
|
<el-table-column v-for="item of question.TableQuestions.Questions" :key="item.Id" :prop="item.Id"
|
||||||
<<<<<<< HEAD
|
|
||||||
:label="item.QuestionName" min-width="100" show-overflow-tooltip>
|
:label="item.QuestionName" min-width="100" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="item.Unit">{{ scope.row[item.Id] }}{{ item.Unit !== 4 ? $fd('ValueUnit', item.Unit)
|
<span v-if="item.Unit">{{ scope.row[item.Id] }}{{ item.Unit !== 4 ? $fd('ValueUnit', item.Unit)
|
||||||
|
@ -30,9 +29,6 @@
|
||||||
<span v-else>{{ scope.row[item.Id] }}</span>
|
<span v-else>{{ scope.row[item.Id] }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
=======
|
|
||||||
:label="item.QuestionName" min-width="100" show-overflow-tooltip />
|
|
||||||
>>>>>>> uat
|
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
@ -153,7 +149,6 @@
|
||||||
<el-select v-if="question.Type === 'number' && question.TypeValue" v-model="questionForm[question.Id]" clearable
|
<el-select v-if="question.Type === 'number' && question.TypeValue" v-model="questionForm[question.Id]" clearable
|
||||||
@change="(val) => { formItemNumberChange(val, question) }">
|
@change="(val) => { formItemNumberChange(val, question) }">
|
||||||
<el-option v-for="val in question.TypeValue.split('|')" :key="val" :label="val.trim()" :value="val.trim()" />
|
<el-option v-for="val in question.TypeValue.split('|')" :key="val" :label="val.trim()" :value="val.trim()" />
|
||||||
<<<<<<< HEAD
|
|
||||||
<template v-if="question.Unit !== 0" slot="prefix">{{ question.Unit !== 4 ? $fd('ValueUnit', question.Unit) :
|
<template v-if="question.Unit !== 0" slot="prefix">{{ question.Unit !== 4 ? $fd('ValueUnit', question.Unit) :
|
||||||
question.CustomUnit }}</template>
|
question.CustomUnit }}</template>
|
||||||
<template v-else-if="question.ValueType === 2" slot="prefix">%</template>
|
<template v-else-if="question.ValueType === 2" slot="prefix">%</template>
|
||||||
|
@ -170,14 +165,6 @@
|
||||||
question.CustomUnit }}</template>
|
question.CustomUnit }}</template>
|
||||||
<template v-else-if="question.ValueType === 2" slot="append">%</template>
|
<template v-else-if="question.ValueType === 2" slot="append">%</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
=======
|
|
||||||
</el-select>
|
|
||||||
<el-input v-else-if="question.Type === 'number' && question.DataSource !== 1"
|
|
||||||
v-model="questionForm[question.Id]" type="number"
|
|
||||||
@change="(val) => { formItemNumberChange(val, question) }" />
|
|
||||||
<el-input v-else-if="question.Type === 'number' && question.DataSource === 1"
|
|
||||||
v-model="questionForm[question.Id]" :disabled="question.DataSource === 1" />
|
|
||||||
>>>>>>> uat
|
|
||||||
<!-- 上传图像 -->
|
<!-- 上传图像 -->
|
||||||
<el-upload v-if="question.Type === 'upload'" action :accept="question.FileType"
|
<el-upload v-if="question.Type === 'upload'" action :accept="question.FileType"
|
||||||
:limit="question.ImageCount > 0 ? parseInt(question.ImageCount) : 100" :on-preview="handlePictureCardPreview"
|
:limit="question.ImageCount > 0 ? parseInt(question.ImageCount) : 100" :on-preview="handlePictureCardPreview"
|
||||||
|
@ -481,13 +468,9 @@ export default {
|
||||||
case 9:
|
case 9:
|
||||||
var arr = [];
|
var arr = [];
|
||||||
this.questionForm[o.QuestionId].forEach((q) => {
|
this.questionForm[o.QuestionId].forEach((q) => {
|
||||||
<<<<<<< HEAD
|
|
||||||
arr.push(q[o.TableQuestionId]);
|
|
||||||
=======
|
|
||||||
if (!isNaN(parseFloat(q[o.TableQuestionId]))) {
|
if (!isNaN(parseFloat(q[o.TableQuestionId]))) {
|
||||||
arr.push(q[o.TableQuestionId]);
|
arr.push(q[o.TableQuestionId]);
|
||||||
}
|
}
|
||||||
>>>>>>> uat
|
|
||||||
if (q[o.TableQuestionId] === 'NE') {
|
if (q[o.TableQuestionId] === 'NE') {
|
||||||
isNE = true
|
isNE = true
|
||||||
}
|
}
|
||||||
|
@ -496,20 +479,11 @@ export default {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
<<<<<<< HEAD
|
|
||||||
num = parseFloat(this.questionForm[o.TableQuestionId]);
|
|
||||||
if (this.questionForm[o.TableQuestionId] === 'NE') {
|
|
||||||
isNE = true
|
|
||||||
}
|
|
||||||
if (!isNaN(num)) {
|
|
||||||
dataArr.push(num)
|
|
||||||
=======
|
|
||||||
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
|
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
|
||||||
num = parseFloat(this.questionForm[o.TableQuestionId]);
|
num = parseFloat(this.questionForm[o.TableQuestionId]);
|
||||||
if (!isNaN(num)) {
|
if (!isNaN(num)) {
|
||||||
dataArr.push(num)
|
dataArr.push(num)
|
||||||
}
|
}
|
||||||
>>>>>>> uat
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -580,18 +554,12 @@ export default {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
if (isNE) {
|
if (isNE) {
|
||||||
<<<<<<< HEAD
|
|
||||||
num = 'NE'
|
|
||||||
}
|
|
||||||
return num;
|
|
||||||
=======
|
|
||||||
return 'NE'
|
return 'NE'
|
||||||
}
|
}
|
||||||
if (rules.ValueType === 2) {
|
if (rules.ValueType === 2) {
|
||||||
num = num * 100
|
num = num * 100
|
||||||
}
|
}
|
||||||
return num.toFixed(this.digitPlaces)
|
return num.toFixed(this.digitPlaces)
|
||||||
>>>>>>> uat
|
|
||||||
},
|
},
|
||||||
formItemNumberChange(questionId, isTable) {
|
formItemNumberChange(questionId, isTable) {
|
||||||
if (typeof isTable === 'object') {
|
if (typeof isTable === 'object') {
|
||||||
|
@ -636,10 +604,6 @@ export default {
|
||||||
arr = [];
|
arr = [];
|
||||||
let isNE = false
|
let isNE = false
|
||||||
CalculateQuestions.forEach((o, i) => {
|
CalculateQuestions.forEach((o, i) => {
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
console.log(this.QuestionsForm[o.TableQuestionId], 'this.QuestionsForm[o.TableQuestionId]')
|
|
||||||
>>>>>>> uat
|
|
||||||
if (this.QuestionsForm[o.TableQuestionId] === 'NE') {
|
if (this.QuestionsForm[o.TableQuestionId] === 'NE') {
|
||||||
isNE = true
|
isNE = true
|
||||||
}
|
}
|
||||||
|
@ -707,11 +671,8 @@ export default {
|
||||||
});
|
});
|
||||||
if (isNE) {
|
if (isNE) {
|
||||||
num = 'NE'
|
num = 'NE'
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
} else {
|
} else {
|
||||||
num = num.toFixed(this.digitPlaces)
|
num = num.toFixed(this.digitPlaces)
|
||||||
>>>>>>> uat
|
|
||||||
}
|
}
|
||||||
this.$set(this.QuestionsForm, v.Id, num.toString());
|
this.$set(this.QuestionsForm, v.Id, num.toString());
|
||||||
}
|
}
|
||||||
|
@ -960,7 +921,6 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
::v-deep .el-select .el-input__prefix {
|
::v-deep .el-select .el-input__prefix {
|
||||||
left: calc(100% - 50px);
|
left: calc(100% - 50px);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -971,8 +931,6 @@ export default {
|
||||||
padding-right: 50px;
|
padding-right: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> uat
|
|
||||||
.criterion-form-item {
|
.criterion-form-item {
|
||||||
.el-form-item {
|
.el-form-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -73,27 +73,12 @@
|
||||||
<el-input v-if="question.Type === 'increment'" v-model="questionForm[question.Id]" disabled />
|
<el-input v-if="question.Type === 'increment'" v-model="questionForm[question.Id]" disabled />
|
||||||
<!-- 数值 -->
|
<!-- 数值 -->
|
||||||
<!-- :precision="2" :step="0.1" :max="10" -->
|
<!-- :precision="2" :step="0.1" :max="10" -->
|
||||||
<<<<<<< HEAD
|
|
||||||
<el-select v-if="question.Type === 'number' && question.TypeValue" v-model="questionForm[question.Id]" clearable
|
<el-select v-if="question.Type === 'number' && question.TypeValue" v-model="questionForm[question.Id]" clearable
|
||||||
@change="((val) => { formItemChange(val, question) })">
|
@change="((val) => { formItemChange(val, question) })">
|
||||||
<el-option v-for="val in question.TypeValue.split('|')" :key="val" :label="val" :value="val" />
|
<el-option v-for="val in question.TypeValue.split('|')" :key="val" :label="val" :value="val" />
|
||||||
<template v-if="question.Unit !== 0" slot="prefix">{{ question.Unit !== 4 ? $fd('ValueUnit', question.Unit) :
|
<template v-if="question.Unit !== 0" slot="prefix">{{ question.Unit !== 4 ? $fd('ValueUnit', question.Unit) :
|
||||||
question.CustomUnit }}</template>
|
question.CustomUnit }}</template>
|
||||||
<template v-else-if="question.ValueType === 2" slot="prefix">%</template>
|
<template v-else-if="question.ValueType === 2" slot="prefix">%</template>
|
||||||
=======
|
|
||||||
<el-select
|
|
||||||
v-if="question.Type === 'number' && question.TypeValue"
|
|
||||||
v-model="questionForm[question.Id]"
|
|
||||||
clearable
|
|
||||||
@change="((val)=>{formItemNumberChange(val, question)})"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="val in question.TypeValue.split('|')"
|
|
||||||
:key="val"
|
|
||||||
:label="val"
|
|
||||||
:value="val"
|
|
||||||
/>
|
|
||||||
>>>>>>> uat
|
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-input v-else-if="question.Type === 'number' && question.DataSource !== 1" v-model="questionForm[question.Id]"
|
<el-input v-else-if="question.Type === 'number' && question.DataSource !== 1" v-model="questionForm[question.Id]"
|
||||||
type="number" @change="((val) => { formItemNumberChange(val, question) })">
|
type="number" @change="((val) => { formItemNumberChange(val, question) })">
|
||||||
|
@ -101,19 +86,12 @@
|
||||||
question.CustomUnit }}</template>
|
question.CustomUnit }}</template>
|
||||||
<template v-else-if="question.ValueType === 2" slot="append">%</template>
|
<template v-else-if="question.ValueType === 2" slot="append">%</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
<<<<<<< HEAD
|
|
||||||
<el-input v-else-if="question.Type === 'number' && question.DataSource === 1" v-model="questionForm[question.Id]"
|
|
||||||
type="number" :disabled="question.DataSource === 1">
|
|
||||||
<template v-if="question.Unit !== 0" slot="append">{{ question.Unit !== 4 ? $fd('ValueUnit', question.Unit) :
|
|
||||||
question.CustomUnit }}</template>
|
|
||||||
=======
|
|
||||||
<el-input
|
<el-input
|
||||||
v-else-if="question.Type === 'number' && question.DataSource === 1"
|
v-else-if="question.Type === 'number' && question.DataSource === 1"
|
||||||
v-model="questionForm[question.Id]"
|
v-model="questionForm[question.Id]"
|
||||||
:disabled="question.DataSource === 1"
|
:disabled="question.DataSource === 1"
|
||||||
>
|
>
|
||||||
<template v-if="question.Unit !== 0" slot="append">{{ question.Unit !== 4 ? $fd('ValueUnit', question.Unit) : question.CustomUnit }}</template>
|
<template v-if="question.Unit !== 0" slot="append">{{ question.Unit !== 4 ? $fd('ValueUnit', question.Unit) : question.CustomUnit }}</template>
|
||||||
>>>>>>> uat
|
|
||||||
<template v-else-if="question.ValueType === 2" slot="append">%</template>
|
<template v-else-if="question.ValueType === 2" slot="append">%</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
<!-- 上传图像 -->
|
<!-- 上传图像 -->
|
||||||
|
|
Loading…
Reference in New Issue