自定义阅片配置更改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
f5954817fb
commit
b0195b8d21
|
@ -328,8 +328,8 @@
|
|||
:visit-task-id="visitTaskId"
|
||||
:criterion-id="criterionId"
|
||||
@formItemTableNumberChange="formItemTableNumberChange"
|
||||
@setFormItemData="setFormItemData"
|
||||
@resetFormItemData="resetFormItemData"
|
||||
@setFormItemData="setTblFormItemData"
|
||||
@resetFormItemData="resetTblFormItemData"
|
||||
/>
|
||||
<div
|
||||
class="base-dialog-footer"
|
||||
|
@ -607,7 +607,6 @@ export default {
|
|||
// this.$emit('formItemNumberChange')
|
||||
},
|
||||
formItemTableNumberChange() {
|
||||
console.log(this.question.TableQuestions.Questions);
|
||||
this.question.TableQuestions.Questions.forEach((v) => {
|
||||
if (v.Type === "number" && v.DataSource === 1) {
|
||||
var CalculateQuestions = JSON.parse(v.CalculateQuestions);
|
||||
|
@ -657,7 +656,7 @@ export default {
|
|||
});
|
||||
},
|
||||
openAddTableCol(row) {
|
||||
this.addOrEdit.visible = true;
|
||||
|
||||
this.addOrEdit.title =
|
||||
row.QuestionName + this.$t("trials:readingUnit:qsList:title:tableQs"); // '表格问题'
|
||||
this.QuestionsList = row.TableQuestions.Questions;
|
||||
|
@ -665,7 +664,8 @@ export default {
|
|||
row.TableQuestions.Questions.map(i=>{
|
||||
this.$set(this.QuestionsForm, i.Id, null)
|
||||
})
|
||||
this.QuestionsForm = {};
|
||||
// this.QuestionsForm = {};
|
||||
this.addOrEdit.visible = true;
|
||||
},
|
||||
getOrganInfoList() {
|
||||
var param = {
|
||||
|
@ -717,6 +717,12 @@ export default {
|
|||
setFormItemData(obj) {
|
||||
this.$emit("setFormItemData", obj);
|
||||
},
|
||||
setTblFormItemData(obj) {
|
||||
this.$set(this.QuestionsForm, obj.key, obj.val)
|
||||
},
|
||||
resetTblFormItemData(obj) {
|
||||
this.$set(this.QuestionsForm, obj.key, null)
|
||||
},
|
||||
async uploadScreenshot(param) {
|
||||
if (!this.visitTaskId) {
|
||||
const loading = this.$loading({
|
||||
|
|
|
@ -101,6 +101,12 @@
|
|||
v-model="questionForm[question.Id]"
|
||||
disabled
|
||||
/>
|
||||
<!-- 自动计算 -->
|
||||
<el-input
|
||||
v-if="question.Type==='class'"
|
||||
v-model="questionForm[question.Id]"
|
||||
disabled
|
||||
/>
|
||||
<!-- 自增 -->
|
||||
<el-input
|
||||
v-if="question.Type==='increment'"
|
||||
|
@ -221,7 +227,8 @@ export default {
|
|||
urls: [],
|
||||
organList: [],
|
||||
QuestionsList: [],
|
||||
QuestionsForm: {}
|
||||
QuestionsForm: {},
|
||||
timer: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
@ -239,7 +246,7 @@ export default {
|
|||
deep: true,
|
||||
immediate: true,
|
||||
handler(v) {
|
||||
|
||||
console.log(v)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -249,18 +256,18 @@ export default {
|
|||
this.question.ClassifyAlgorithms
|
||||
);
|
||||
}
|
||||
setInterval(() => {
|
||||
this.timer = setInterval(() => {
|
||||
if (this.question.Type === "class") {
|
||||
let o = this.ClassifyAlgorithmsList.find((v) => {
|
||||
return (
|
||||
this.questionForm[this.question.ClassifyQuestionId] >= v.gt &&
|
||||
this.questionForm[this.question.ClassifyQuestionId] < v.lt
|
||||
);
|
||||
});
|
||||
if (this.questionForm[this.question.ClassifyQuestionId]) {
|
||||
this.questionForm[this.question.Id] = o ? o.label : null;
|
||||
if (this.questionForm[this.question.ClassifyTableQuestionId]) {
|
||||
let o = this.ClassifyAlgorithmsList.find((v) => {
|
||||
return (
|
||||
this.questionForm[this.question.ClassifyTableQuestionId] >= v.gt &&
|
||||
this.questionForm[this.question.ClassifyTableQuestionId] < v.lt
|
||||
);
|
||||
});
|
||||
this.$emit('setFormItemData', { key: this.question.Id, val: o ? o.label : null })
|
||||
} else {
|
||||
this.questionForm[this.question.Id] = null;
|
||||
this.$emit('setFormItemData', { key: this.question.Id, val: null })
|
||||
}
|
||||
}
|
||||
}, 300);
|
||||
|
@ -282,6 +289,9 @@ export default {
|
|||
this.getOrganInfoList()
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
clearInterval(this.timer)
|
||||
},
|
||||
methods: {
|
||||
save() {
|
||||
},
|
||||
|
@ -291,7 +301,6 @@ export default {
|
|||
this.QuestionsList = row.TableQuestions.Questions
|
||||
this.AnswersList = row.TableQuestions.Answers
|
||||
this.QuestionsForm = {}
|
||||
console.log(this.QuestionsForm)
|
||||
},
|
||||
getOrganInfoList() {
|
||||
var param = {
|
||||
|
|
Loading…
Reference in New Issue