Commit 51f3c890 authored by 黄奎's avatar 黄奎

页面修改

parent f4f92689
......@@ -69,6 +69,12 @@
label: '模板名称',
field: 'TemplateName',
align: 'left',
},
{
name: 'GroupTypeName',
label: '组卷类型',
field: 'GroupTypeName',
align: 'left',
},
{
name: 'TemplateScore',
......
......@@ -563,12 +563,14 @@
},
//获取模板数据
getTemplateData(tempObj) {
console.log("tempObj",tempObj)
if (tempObj) {
this.templateMsg.TemplateId = tempObj.TemplateId;
this.templateMsg.TemplateName = tempObj.TemplateName;
this.templateMsg.TemplateNum = tempObj.TemplateNum;
this.templateMsg.TemplateScore = tempObj.TemplateScore;
this.templateMsg.TemplateDifficultyType = tempObj.TemplateDifficultyType;
this.templateMsg.GroupType=tempObj.GroupType;
this.templateMsg.TemplateData = [];
var tempData = tempObj.TemplateData;
if (tempData && tempData.length > 0) {
......
......@@ -281,14 +281,21 @@
<q-select filled option-value="Id" option-label="Name" :options="questionDifficultyTypeList" emit-value
map-options label="难度" use-input clearable v-model="DataObj.DifficultyType" />
</div>
<div style="margin-left:20px;display:flex;align-items:center;">
组卷类型:
<q-radio v-model="DataObj.GroupType" :val="1" label="问题类型" />
<q-radio v-model="DataObj.GroupType" :val="2" label="题目大类" />
<div style="margin-left:20px;">
<q-field label="组卷类型" stack-label borderless>
<template v-slot:control>
<q-radio v-model="DataObj.GroupType" :val="1" label="问题类型" />
<q-radio v-model="DataObj.GroupType" :val="2" label="题目大类" />
</template>
</q-field>
</div>
<div style="margin:8px 0 0 40px">
<q-radio v-model="DataObj.IsOpen" :val="1" label="私有" />
<q-radio v-model="DataObj.IsOpen" :val="2" label="公开" />
<div style="margin-left:20px;">
<q-field label="访问设置" stack-label borderless>
<template v-slot:control>
<q-radio v-model="DataObj.IsOpen" :val="1" label="私有" title="只能自己查看" />
<q-radio v-model="DataObj.IsOpen" :val="2" label="公开" title="所有人均可见" />
</template>
</q-field>
</div>
</div>
<div style="width:10%;text-align:right;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment