Commit d70ed55b authored by 黄奎's avatar 黄奎

页面修改

parent 9515e750
......@@ -45,15 +45,16 @@ module.exports = function (ctx) {
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
build: {
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,
......@@ -153,7 +154,7 @@ module.exports = function (ctx) {
],
directives: [
'ClosePopup'
],
],
// Quasar plugins
plugins: [
......
......@@ -141,4 +141,16 @@ export function GetPaper(data) {
method: 'post',
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>
......@@ -147,7 +148,7 @@
<div class="Exam-right f1">
<span></span>
<div class="row wrap" v-if="ChooseItem">
<div class="col-12" style="margin-bottom:20px">
<div class="col-12" style="margin-bottom:20px">
题型
<template v-for="(fItem,fIndex) in firstTypeList">
<q-btn :key="fIndex" color="accent" :label="fItem.Name" style="margin-left:5px;"
......@@ -163,8 +164,12 @@
</q-item>
</q-list>
</q-btn-dropdown>
</div>
</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() {
......@@ -352,7 +356,7 @@
this.GetPaperInfo()
},
methods: {
//获取题型列表
//获取题型列表
getQuestionType() {
queryQuestionTypeList({}).then(res => {
if (res.Code == 1) {
......@@ -364,7 +368,7 @@
}
});
},
//题型点击
//题型点击
onItemClick(item) {
// this.AnswerList = [];
// this.questionObj = item;
......@@ -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