Commit d70ed55b authored by 黄奎's avatar 黄奎

页面修改

parent 9515e750
......@@ -47,13 +47,14 @@ module.exports = function (ctx) {
vueRouterMode: 'hash', // available values: 'hash', 'history'
env: ctx.dev ? {
API: 'http://192.168.20.51:8088/api',
API_ZC:'http://192.168.20.9:8087/api',
API_SK:'ws:192.168.20.214:'
API: 'https://localhost:5001/api',
// API: 'http://192.168.20.51:8088/api',
API_ZC: 'http://192.168.20.9:8087/api',
API_SK: 'ws:192.168.20.214:'
} : {
API: 'https://eduapi.oytour.com/api',
API_ZC:'http://propertyedu.oytour.com/api',
API_SK:'ws://47.96.23.199:'
API_ZC: 'http://propertyedu.oytour.com/api',
API_SK: 'ws://47.96.23.199:'
},
// transpile: false,
......
......@@ -142,3 +142,15 @@ export function GetPaper(data) {
data
})
}
/**
* 保存试卷信息
* @param {JSON参数} data
*/
export function savePaperInfo(data) {
return request({
url: '/Exam/SetPaper',
method: 'post',
data
})
}
\ No newline at end of file
......@@ -120,7 +120,7 @@
</div>
<div style="width:20%;text-align:right;">
<q-btn color="accent" size="sm" class="q-mr-md" label="预览" />
<q-btn color="accent" size="sm" class="q-mr-md" label="保存并返回" />
<q-btn color="accent" size="sm" class="q-mr-md" label="保存并返回" @click="SavePaper()" />
</div>
</div>
<div class="Exam-main">
......@@ -135,7 +135,8 @@
<b>(<label>{{gIndex+1}}</label>)</b>
<b>{{gItem.GroupName}}</b>
<ul class="List-ul" v-if="gItem.DetailsList&&gItem.DetailsList.length>0">
<li class="" style="cursor:pointer;" v-for="(dItem,dIndex) in gItem.DetailsList" :key="dIndex" @click="ClickItem(dItem)">
<li class="" style="cursor:pointer;" v-for="(dItem,dIndex) in gItem.DetailsList" :key="dIndex"
@click="ClickItem(dItem)">
{{dIndex+1}} <span @click="ClickItem(dItem)" v-html="dItem.Title">
</span>
</li>
......@@ -164,7 +165,11 @@
</q-list>
</q-btn-dropdown>
</div>
<div class="edit_stem">
<q-input filled stack-label maxlength="5" :dense="false" v-model="ChooseItem.Score" class="col-12 q-pb-lg"
label="分数" />
</div>
<div class="col-12">
<template v-if="ChooseItem.QuestionTypeKey=='cloze'">
<span class="question_number">选项处用##题号##替换,如##1##</span>
......@@ -279,13 +284,12 @@
import sharingChoose from '../../components/questiontype/sharing-choose'
import {
GetPaper
GetPaper,
savePaperInfo,
} from '../../api/teacher/index';
import {
queryQuestionTypeList,
queryDifficultyType,
queryQuestionInfo,
queryQuestionCategory,
queryQuestionLevelType
} from '../../api/question/question'
......@@ -335,8 +339,8 @@
questionLevalTypeList: [],
questionCategoryList: [], //分类
choosePointArray: [], //选择知识点
firstTypeList:[],//第一类题型
secondTypeList:[],//第二类题型
firstTypeList: [], //第一类题型
secondTypeList: [], //第二类题型
}
},
created() {
......@@ -409,6 +413,12 @@
ClickItem(questionItem) {
this.ChooseItem = questionItem;
console.log("questionItem", questionItem);
},
//保存题目
SavePaper() {
savePaperInfo(this.DataObj).then(res => {
console.log("res", res);
})
}
}
}
......
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