首次提交
parent
0dd02ef87d
commit
5fc8887edc
|
@ -106,7 +106,18 @@
|
|||
<div class="projectTopicTable">
|
||||
<el-table :data="tableData" style="width: 100%" max-height="500">
|
||||
<el-table-column align="center" prop="id" label="序号" />
|
||||
<el-table-column align="center" prop="topic" label="题目" />
|
||||
<el-table-column label="题目" >
|
||||
<template #default="scope">
|
||||
<el-popover effect="light" trigger="hover" placement="top" width="auto">
|
||||
<template #default>
|
||||
<div>备注: {{ scope.row.topic }}</div>
|
||||
</template>
|
||||
<template #reference>
|
||||
<el-tag>{{ scope.row.topic }}</el-tag>
|
||||
</template>
|
||||
</el-popover>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" fixed="right" label="选择状态">
|
||||
<template #default="scope">
|
||||
<div v-if="scope.row.isSelect == 0">未选</div>
|
||||
|
@ -446,7 +457,7 @@ export default {
|
|||
optionIndexEn: "",
|
||||
score: "",
|
||||
topicId: 0,
|
||||
topicType: "1",
|
||||
topicType: 1,
|
||||
topicTypeValue: "",
|
||||
},
|
||||
{
|
||||
|
@ -458,7 +469,7 @@ export default {
|
|||
optionIndexEn: "",
|
||||
score: "",
|
||||
topicId: 0,
|
||||
topicType: "1",
|
||||
topicType: 1,
|
||||
topicTypeValue: "",
|
||||
},
|
||||
{
|
||||
|
@ -470,7 +481,7 @@ export default {
|
|||
optionIndexEn: "",
|
||||
score: "",
|
||||
topicId: 0,
|
||||
topicType: "1",
|
||||
topicType: 1,
|
||||
topicTypeValue: "",
|
||||
},
|
||||
{
|
||||
|
@ -482,7 +493,7 @@ export default {
|
|||
optionIndexEn: "",
|
||||
score: "",
|
||||
topicId: 0,
|
||||
topicType: "1",
|
||||
topicType: 1,
|
||||
topicTypeValue: "",
|
||||
},
|
||||
],
|
||||
|
@ -776,8 +787,20 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
this.drawer = false;
|
||||
if(this.topicType == 2||this.topicType == 4){
|
||||
for (let index = 0; index < this.topicData.options.length; index++) {
|
||||
console.log(this.topicData.options[index]);
|
||||
if (!this.topicData.options[index].score) {
|
||||
this.$alert("请填写分数", "类型错误", {
|
||||
confirmButtonText: "确定",
|
||||
});
|
||||
return;
|
||||
}
|
||||
console.log(123);
|
||||
}
|
||||
|
||||
}
|
||||
this.drawer = false;
|
||||
let that = this;
|
||||
this.axios
|
||||
.post("/hysc/library/addTopic", this.topicData)
|
||||
|
@ -824,7 +847,7 @@ export default {
|
|||
optionIndexEn: "",
|
||||
score: "",
|
||||
topicId: 0,
|
||||
topicType: "",
|
||||
topicType: 1,
|
||||
topicTypeValue: "",
|
||||
},
|
||||
{
|
||||
|
@ -836,7 +859,7 @@ export default {
|
|||
optionIndexEn: "",
|
||||
score: "",
|
||||
topicId: 0,
|
||||
topicType: "",
|
||||
topicType: 1,
|
||||
topicTypeValue: "",
|
||||
},
|
||||
{
|
||||
|
@ -848,7 +871,7 @@ export default {
|
|||
optionIndexEn: "",
|
||||
score: "",
|
||||
topicId: 0,
|
||||
topicType: "",
|
||||
topicType: 1,
|
||||
topicTypeValue: "",
|
||||
},
|
||||
{
|
||||
|
@ -860,7 +883,7 @@ export default {
|
|||
optionIndexEn: "",
|
||||
score: "",
|
||||
topicId: 0,
|
||||
topicType: "",
|
||||
topicType: 1,
|
||||
topicTypeValue: "",
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue