Commit d70ed55b authored by 黄奎's avatar 黄奎

页面修改

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