Merge branch 'zdg' of http://27.128.240.72:3000/zhuhao/AIx_Smarttalk into zdg
This commit is contained in:
commit
490536654a
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "aix-win",
|
"name": "aix-win",
|
||||||
"version": "1.2.0",
|
"version": "1.2.2",
|
||||||
"description": "An Electron application with Vue",
|
"description": "An Electron application with Vue",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "example.com",
|
"author": "example.com",
|
||||||
|
|
|
@ -53,7 +53,7 @@ function createLoginWindow() {
|
||||||
updateInit(loginWindow)
|
updateInit(loginWindow)
|
||||||
}
|
}
|
||||||
|
|
||||||
// loginWindow.webContents.openDevTools()
|
loginWindow.webContents.openDevTools()
|
||||||
loginWindow.once('ready-to-show', () => {
|
loginWindow.once('ready-to-show', () => {
|
||||||
loginWindow.show()
|
loginWindow.show()
|
||||||
})
|
})
|
||||||
|
@ -297,4 +297,4 @@ function appWatchError() {
|
||||||
app.on('child-process-gone', async (event, details) => {
|
app.on('child-process-gone', async (event, details) => {
|
||||||
console.error(`APP-ERROR:child-process-gone; event: ${JSON.stringify(event)}; details:${JSON.stringify(details)}`)
|
console.error(`APP-ERROR:child-process-gone; event: ${JSON.stringify(event)}; details:${JSON.stringify(details)}`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -264,7 +264,7 @@ const transData = (data) => {
|
||||||
//获取教材
|
//获取教材
|
||||||
const getSubject = async () => {
|
const getSubject = async () => {
|
||||||
|
|
||||||
const { rows } = await listEvaluation({ itemkey: "version", edusubject, edustage, pageSize: 10000 })
|
const { rows } = await listEvaluation({ itemkey: "version", edusubject, edustage, pageSize: 10000,orderby: 'orderidx asc', })
|
||||||
|
|
||||||
// subjectList.value = rows.filter(item => item.edustage == edustage && item.edusubject == edusubject)
|
// subjectList.value = rows.filter(item => item.edustage == edustage && item.edusubject == edusubject)
|
||||||
subjectList.value = rows
|
subjectList.value = rows
|
||||||
|
|
|
@ -41,7 +41,9 @@ const getSubject = (value) => {
|
||||||
gradeName:gradeList[currentIndex].label
|
gradeName:gradeList[currentIndex].label
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const nameIndex = subjectList.value.findIndex(item => item.subjectName === useStore.user.edusubject)
|
//判断是否有名称或者包括名称就对应哪个学科
|
||||||
|
const nameIndex = subjectList.value.findIndex(item => item.subjectName === useStore.user.edusubject || item.subjectName.includes(useStore.user.edusubject))
|
||||||
|
if(nameIndex === -1) return;
|
||||||
getTagId({subjectId:subjectList.value[nameIndex].subjectId,subjectName:subjectList.value[nameIndex].subjectName})
|
getTagId({subjectId:subjectList.value[nameIndex].subjectId,subjectName:subjectList.value[nameIndex].subjectName})
|
||||||
if(textbookVersionId.value === 0){
|
if(textbookVersionId.value === 0){
|
||||||
getTagId(subjectList.value[0])
|
getTagId(subjectList.value[0])
|
||||||
|
|
|
@ -34,7 +34,6 @@ const emits = defineEmits(['handleSelect'])
|
||||||
|
|
||||||
//点击跳转路由
|
//点击跳转路由
|
||||||
const handleSelect = (itemDom,pathKey) => {
|
const handleSelect = (itemDom,pathKey) => {
|
||||||
console.log(itemDom,pathKey)
|
|
||||||
const parts = pathKey[1].split("-")
|
const parts = pathKey[1].split("-")
|
||||||
const result = parts.slice(0, 2).join("-")
|
const result = parts.slice(0, 2).join("-")
|
||||||
const index = props.menuItems.findIndex(item=>item.index===result)
|
const index = props.menuItems.findIndex(item=>item.index===result)
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<div class="common-layout">
|
<div class="common-layout">
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-aside style="width: 200px;margin-top: 20px">
|
<el-aside style="width: 200px;margin-top: 20px">
|
||||||
<el-card style="width: 200px" class="el-card-demo" :style="{'min-height': (viewportHeight - 164) + 'px'}">
|
<el-card style="width: 200px" class="el-card-demo" :style="{'min-height': (viewportHeight - 164) + 'px','max-height': (viewportHeight - 164) + 'px'}">
|
||||||
<div :style="{'max-height': (viewportHeight - 164) + 'px','overflow-y': 'auto'}">
|
<div >
|
||||||
<Aside :menuItems="menuItems" :classList="classList" @handleSelect="handleSelect"></Aside>
|
<Aside :menuItems="menuItems" :classList="classList" @handleSelect="handleSelect"></Aside>
|
||||||
</div>
|
</div>
|
||||||
<!-- 隐藏操作按钮-->
|
<!-- 隐藏操作按钮-->
|
||||||
|
|
|
@ -270,6 +270,11 @@ const updateClassReserv = (formData) => {
|
||||||
}
|
}
|
||||||
const addClassReserv = (formData) => {
|
const addClassReserv = (formData) => {
|
||||||
let ids = formData.resource.join(',')
|
let ids = formData.resource.join(',')
|
||||||
|
// 判断是否添加教材
|
||||||
|
if(!props.bookId){
|
||||||
|
ElMessage.warning('请选择教材')
|
||||||
|
return
|
||||||
|
}
|
||||||
let param = {
|
let param = {
|
||||||
className: formData.name,
|
className: formData.name,
|
||||||
classType: formData.type,
|
classType: formData.type,
|
||||||
|
|
Loading…
Reference in New Issue