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