baigl #330

Merged
baigl merged 3 commits from baigl into main 2024-10-18 10:13:14 +08:00
4 changed files with 33 additions and 13 deletions
Showing only changes of commit b132bb5813 - Show all commits

View File

@ -121,12 +121,12 @@
</el-table-column> </el-table-column>
<el-table-column label="分值" align="center" width="180"> <el-table-column label="分值" align="center" width="180">
<template #default="scope"> <template #default="scope">
<el-input-number v-model="scope.row.score" :min="1" :max="100" :disabled="checkTaskAssigned(currentWorkEdit.currentTask)"></el-input-number > <el-input-number v-model="scope.row.score" :min="1" :max="100" :disabled="currentWorkEdit.currentType == 'query'?true:false"></el-input-number >
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="100"> <el-table-column label="操作" align="center" width="100">
<template #default="scope"> <template #default="scope">
<el-button :disabled="checkTaskAssigned(currentWorkEdit.currentTask)" @click="handleWorkConfigQuizMinus(scope.$index)">删除</el-button> <el-button :disabled="currentWorkEdit.currentType == 'query'?true:false" @click="handleWorkConfigQuizMinus(scope.$index)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -203,8 +203,7 @@
<div slot="footer" class="dialog-footer" style="text-align: right; margin-top: 20px;"> <div slot="footer" class="dialog-footer" style="text-align: right; margin-top: 20px;">
<div style="display: flex"> <div style="display: flex">
<el-button type="primary" style="margin-left: auto" :disabled="checkTaskAssigned(currentWorkEdit.currentTask)" <el-button type="primary" style="margin-left: auto" @click="workEdit = false"> </el-button>
@click="submitStudy('submit')"> </el-button>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
@ -779,7 +778,12 @@ const handleTaskAssignToAllClass = () => {
*/ */
const handleNewClassWorkDialog = () => { const handleNewClassWorkDialog = () => {
// //
router.push({ path: '/newClassTask' }); router.push({
path: '/newClassTask',
query: {
isBack: true,
}
});
} }
/** /**
@ -930,3 +934,4 @@ watch(() => courseObj.node, (newVal,oldVal) => {
} }
} }
</style> </style>
<style src="@/assets/styles/JYStyle.css"></style>

View File

@ -266,6 +266,10 @@ const props = defineProps({
isedit: { isedit: {
type: Boolean, type: Boolean,
default: false default: false
},
isback:{
type: Boolean,
default: false
} }
}) })
@ -737,14 +741,16 @@ const handleClassWorkSave = async () => {
// //
// this.getClassWorkAllList(); // this.getClassWorkAllList();
// TODO
//TODO 3
// this.newWorkSpace = false;
// this.newWorkSpaceEdit = false;
// this.workEdit = false;
}) })
} }
if(props.isback){
//
router.back();
}else{
//
router.push({ path: '/classTaskAssign' });
}
} }
}); });
}; };
@ -976,3 +982,4 @@ watch(() => props.bookobj.levelSecondId, (newVal) => {
} }
</style> </style>
<style src="@/assets/styles/JYStyle.css"></style>

View File

@ -16,6 +16,7 @@
<el-row style="align-items: center; margin-bottom: 0px; flex: 0 0 auto"> <el-row style="align-items: center; margin-bottom: 0px; flex: 0 0 auto">
<el-col :span="12" style="padding-left: 20px; text-align: left;"> <el-col :span="12" style="padding-left: 20px; text-align: left;">
<div v-if="!isOpenLeftBook" class="unit-top-left cursor-pointer" @click="onOpenLeftBook"> <div v-if="!isOpenLeftBook" class="unit-top-left cursor-pointer" @click="onOpenLeftBook">
<i v-if="isback" class="iconfont icon-xiangzuo cursor-pointer" style="color: blue;" @click="goBack">返回上页</i>
<i v-if="!isCollapse" class="iconfont icon-xiangzuo" style="color: blue;"></i> <i v-if="!isCollapse" class="iconfont icon-xiangzuo" style="color: blue;"></i>
<span>课程目录</span> <span>课程目录</span>
<i v-if="isCollapse" class="iconfont icon-xiangyou" style="color: blue;"></i> <i v-if="isCollapse" class="iconfont icon-xiangyou" style="color: blue;"></i>
@ -35,7 +36,7 @@
</el-col> </el-col>
</el-row> </el-row>
<!-- 作业类型:内容 --> <!-- 作业类型:内容 -->
<task-type-view :bookobj="courseObj" :propsformobj="classWorkForm" :isedit="isOpenLeftBook" style="flex: 1; overflow: hidden;"/> <task-type-view :bookobj="courseObj" :isback="isback" :propsformobj="classWorkForm" :isedit="isOpenLeftBook" style="flex: 1; overflow: hidden;"/>
</div> </div>
</div> </div>
</template> </template>
@ -53,6 +54,7 @@ const route = useRoute();
const router = useRouter() const router = useRouter()
const { proxy } = getCurrentInstance() const { proxy } = getCurrentInstance()
const isback = ref(route.query.isBack?true:false);
const classtaskObj = route.query.classtaskObj;// const classtaskObj = route.query.classtaskObj;//
const bookTitle = ref(classtaskObj? JSON.parse(classtaskObj).bookName: '');// const bookTitle = ref(classtaskObj? JSON.parse(classtaskObj).bookName: '');//
const isOpenLeftBook = ref(classtaskObj? JSON.parse(classtaskObj).id ? true : false: false ); // const isOpenLeftBook = ref(classtaskObj? JSON.parse(classtaskObj).id ? true : false: false ); //
@ -183,3 +185,4 @@ onMounted(() => {
} }
} }
</style> </style>
<style src="@/assets/styles/JYStyle.css"></style>

View File

@ -689,7 +689,12 @@ export default {
// //
goNewClassTask(){ goNewClassTask(){
// router.push({ path: '/newClassTask' }); // router.push({ path: '/newClassTask' });
this.$router.push({ path: '/newClassTask' }); this.$router.push({
path: '/newClassTask',
query: {
isBack: true,
}
});
}, },
getWeekday1(date) { getWeekday1(date) {
const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'] const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']