This commit is contained in:
zhaoxinyu
2024-12-06 11:57:18 +08:00
parent c957e2ddd4
commit 185cc5022a
10 changed files with 1824 additions and 266 deletions
@@ -64,6 +64,7 @@ const batchInsert = {
const questions = [];
// 遍历每个问题文本
questionTexts.forEach((questionText, index) => {
debugger
// 提取问题编号和题干
const match = questionText.trim().split('\n').slice(0, 1).join('').match(/^(?:\d+\.|\d+、)?\s*(.*?)\s*\[(.*题)\]\s*(?:\((\d+)分\)|\((\d+)分\))?$/);
if (match) {
@@ -6,7 +6,7 @@ const appModule = {
<div style="display: flex;gap: 20px;overflow-x: auto">
<template v-for="item in entranceModules">
<div :key="item.id" class="v-item-handle" @click="enterEntranceModules(item)"
:class="item.id===id?'appModuleCard':''">
:class="item.id===selectEntranceModuleId?'appModuleCard':''">
<el-image :src="CREATE_PREVIEW_URL(item.icon[0].id)" style="height: 50px;width: 50px;border-radius: 50%"></el-image>
<span class="v-item-handle-label">
{{ item.moduleName }}
@@ -17,29 +17,18 @@ const appModule = {
</el-card>
</div>
`,
data() {
return {
id: "",
entranceModules: []
store,
computed: {
entranceModules() {
return this.$store.state.moduleMenus
},
selectEntranceModuleId(){
return this.$store.state.activeMenuModuleId || null
}
},
methods: {
async enterEntranceModules(item) {
headerNavBarVueApp.appModuleId = item.id
this.id = item.id
headerNavBarVueApp.enterEntranceModules(item)
},
async getEntranceModule() {
const resp = await $.get('/platform/sys/entranceModule/getEntranceModule')
if (resp.code === 0) {
this.entranceModules = resp.data
}
this.$store.commit('setActiveMenuModuleId', item.id)
}
},
created() {
this.getEntranceModule()
setTimeout(() => {
// this.id = headerNavBarVueApp.appModuleId
}, 400)
}
}