|
@@ -635,28 +635,10 @@ export function useExamTest() {
|
|
let getPgae = () => {
|
|
let getPgae = () => {
|
|
console.log(router)
|
|
console.log(router)
|
|
let params = {
|
|
let params = {
|
|
- liceBus: "",
|
|
|
|
- liceCar: "",
|
|
|
|
- liceMoto: "",
|
|
|
|
- liceTruck: "",
|
|
|
|
|
|
+ gs:router.currentRoute.value.query.gs as string,
|
|
subject: Number(router.currentRoute.value.query.subject)
|
|
subject: Number(router.currentRoute.value.query.subject)
|
|
}
|
|
}
|
|
- if (router.currentRoute.value.query && router.currentRoute.value.query.type) {
|
|
|
|
- switch (router.currentRoute.value.query.type as string) {
|
|
|
|
- case "liceBus":
|
|
|
|
- params.liceBus = "1"
|
|
|
|
- break;
|
|
|
|
- case "liceCar":
|
|
|
|
- params.liceCar = "1"
|
|
|
|
- break;
|
|
|
|
- case "liceMoto":
|
|
|
|
- params.liceMoto = "1"
|
|
|
|
- break;
|
|
|
|
- case "liceTruck":
|
|
|
|
- params.liceTruck = "1"
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
Api.openApiquestionInfoSelectTestQuestionInfo(params).then((res) => {
|
|
Api.openApiquestionInfoSelectTestQuestionInfo(params).then((res) => {
|
|
res.data.rows.forEach((item) => {
|
|
res.data.rows.forEach((item) => {
|
|
item.optsArr = item.opts.split('-');
|
|
item.optsArr = item.opts.split('-');
|