|
|
@ -1,76 +1,92 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-form :disabled="isDetail"> |
|
|
|
<el-form :disabled="isDetail"> |
|
|
|
<el-card shadow="hover" class="m-b-20"> |
|
|
|
<el-card shadow="hover" |
|
|
|
|
|
|
|
class="m-b-20"> |
|
|
|
<div class="flex-between"> |
|
|
|
<div class="flex-between"> |
|
|
|
<el-page-header @back="goBack" :content="isDetail ? '查看' : (form.id ? '更新' : '创建') + '教学实验'"></el-page-header> |
|
|
|
<el-page-header @back="goBack" |
|
|
|
|
|
|
|
:content="isDetail ? '查看' : (form.id ? '更新' : '创建') + '教学实验'"></el-page-header> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" @click="save(0)" v-show="!isDetail">{{ form.id ? "更新" : "创建" }}</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
|
|
|
|
@click="save(0)" |
|
|
|
|
|
|
|
v-show="!isDetail">{{ form.id ? "更新" : "创建" }}</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgr20 m-b-20"> |
|
|
|
<el-card shadow="hover" |
|
|
|
|
|
|
|
class="mgr20 m-b-20"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<p class="m-b-20">考核名称</p> |
|
|
|
<p class="m-b-20">考核名称</p> |
|
|
|
<el-input |
|
|
|
<el-input placeholder="请输入考核名称" |
|
|
|
placeholder="请输入考核名称" |
|
|
|
|
|
|
|
v-model.trim="form.experimentalName" |
|
|
|
v-model.trim="form.experimentalName" |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
maxlength="15" |
|
|
|
maxlength="15" |
|
|
|
class="inline-input" |
|
|
|
class="inline-input"></el-input> |
|
|
|
></el-input> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="m-b-20"> |
|
|
|
<el-card shadow="hover" |
|
|
|
|
|
|
|
class="m-b-20"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<p class="m-b-20">发布方式</p> |
|
|
|
<p class="m-b-20">发布方式</p> |
|
|
|
<el-radio-group v-model="form.type" :disabled="form.id ? true : false"> |
|
|
|
<el-radio-group v-model="form.type" |
|
|
|
|
|
|
|
:disabled="form.id ? true : false"> |
|
|
|
<el-radio :label="1">手动发布</el-radio> |
|
|
|
<el-radio :label="1">手动发布</el-radio> |
|
|
|
<el-radio :label="2">定时发布</el-radio> |
|
|
|
<el-radio :label="2">定时发布</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
<!-- 根据发布方式判断时间的显示 --> |
|
|
|
<!-- 根据发布方式判断时间的显示 --> |
|
|
|
<el-card shadow="hover" class="m-b-20"> |
|
|
|
<el-card shadow="hover" |
|
|
|
|
|
|
|
class="m-b-20"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<p class="m-b-20">实验时间</p> |
|
|
|
<p class="m-b-20">实验时间</p> |
|
|
|
<!-- 手动发布显示 --> |
|
|
|
<!-- 手动发布显示 --> |
|
|
|
<div class="date-inputs" v-if="form.type==1"> |
|
|
|
<div class="date-inputs" |
|
|
|
|
|
|
|
v-if="form.type==1"> |
|
|
|
实验时长: |
|
|
|
实验时长: |
|
|
|
<el-input type="number" min="0" v-model.trim="duration.day" placeholder></el-input> |
|
|
|
<el-input type="number" |
|
|
|
|
|
|
|
min="0" |
|
|
|
|
|
|
|
v-model.trim="duration.day" |
|
|
|
|
|
|
|
placeholder></el-input> |
|
|
|
天 |
|
|
|
天 |
|
|
|
<el-input type="number" min="0" v-model.trim="duration.hour" placeholder></el-input> |
|
|
|
<el-input type="number" |
|
|
|
|
|
|
|
min="0" |
|
|
|
|
|
|
|
v-model.trim="duration.hour" |
|
|
|
|
|
|
|
placeholder></el-input> |
|
|
|
小时 |
|
|
|
小时 |
|
|
|
<el-input type="number" min="0" v-model.trim="duration.minute" placeholder></el-input> |
|
|
|
<el-input type="number" |
|
|
|
|
|
|
|
min="0" |
|
|
|
|
|
|
|
v-model.trim="duration.minute" |
|
|
|
|
|
|
|
placeholder></el-input> |
|
|
|
分 |
|
|
|
分 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 定时发布显示 --> |
|
|
|
<!-- 定时发布显示 --> |
|
|
|
<div v-if="form.type==2" class="addAssess"> |
|
|
|
<div v-if="form.type==2" |
|
|
|
|
|
|
|
class="addAssess"> |
|
|
|
<span class="mgr10">开始时间:</span> |
|
|
|
<span class="mgr10">开始时间:</span> |
|
|
|
<el-date-picker |
|
|
|
<el-date-picker size="small" |
|
|
|
size="small" |
|
|
|
|
|
|
|
v-model="date" |
|
|
|
v-model="date" |
|
|
|
type="datetimerange" |
|
|
|
type="datetimerange" |
|
|
|
range-separator="-" |
|
|
|
range-separator="-" |
|
|
|
start-placeholder="开始日期" |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期" |
|
|
|
end-placeholder="结束日期" |
|
|
|
:picker-options="pickerOptions" |
|
|
|
:picker-options="pickerOptions"></el-date-picker> |
|
|
|
></el-date-picker> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
<el-card shadow="hover" class="mgr20 m-b-20"> |
|
|
|
<el-card shadow="hover" |
|
|
|
|
|
|
|
class="mgr20 m-b-20"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<p class="m-b-20">课程</p> |
|
|
|
<p class="m-b-20">课程</p> |
|
|
|
<div class="inline-input"> |
|
|
|
<div class="inline-input"> |
|
|
|
<el-select v-model="form.curriculumId" @change="initData"> |
|
|
|
<el-select v-model="form.mallId" |
|
|
|
<el-option |
|
|
|
@change="initData"> |
|
|
|
v-for="item in curriculumList" |
|
|
|
<el-option v-for="item in curriculumList" |
|
|
|
:key="item.cid" |
|
|
|
:key="item.mallId" |
|
|
|
:label="item.curriculumName" |
|
|
|
:label="item.curriculumName" |
|
|
|
:value="item.cid"> |
|
|
|
:value="item.mallId"> |
|
|
|
</el-option> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
<!-- <el-select v-model="form.curriculumId" @change="initData"> |
|
|
|
<!-- <el-select v-model="form.curriculumId" @change="initData"> |
|
|
@ -85,54 +101,76 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
<!-- 实训项目模块 --> |
|
|
|
<!-- 实训项目模块 --> |
|
|
|
<el-card shadow="hover" class="m-b-20"> |
|
|
|
<el-card shadow="hover" |
|
|
|
|
|
|
|
class="m-b-20"> |
|
|
|
<div class="flex-between m-b-20"> |
|
|
|
<div class="flex-between m-b-20"> |
|
|
|
<span>实训项目</span> |
|
|
|
<span>实训项目</span> |
|
|
|
<div style="display: inline-flex;"> |
|
|
|
<div style="display: inline-flex;"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-input placeholder="请输入项目名称" prefix-icon="el-icon-search" v-model.trim="keyword" clearable></el-input> |
|
|
|
<el-input placeholder="请输入项目名称" |
|
|
|
|
|
|
|
prefix-icon="el-icon-search" |
|
|
|
|
|
|
|
v-model.trim="keyword" |
|
|
|
|
|
|
|
clearable></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-button style="margin-left: 5px" type="primary" round @click="toProject">自定义实验项目</el-button> |
|
|
|
<el-button style="margin-left: 5px" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
round |
|
|
|
|
|
|
|
@click="toProject">自定义实验项目</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 实训项目表格 --> |
|
|
|
<!-- 实训项目表格 --> |
|
|
|
<el-table :data="projectData" class="table" stripe header-align="center"> |
|
|
|
<el-table :data="projectData" |
|
|
|
|
|
|
|
class="table" |
|
|
|
|
|
|
|
stripe |
|
|
|
|
|
|
|
header-align="center"> |
|
|
|
<!-- 单选实训项目ID --> |
|
|
|
<!-- 单选实训项目ID --> |
|
|
|
<el-table-column width="60" label="选择" align="center"> |
|
|
|
<el-table-column width="60" |
|
|
|
|
|
|
|
label="选择" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-radio v-model="form.projectId" :label="scope.row.projectId"> </el-radio> |
|
|
|
<el-radio v-model="form.projectId" |
|
|
|
|
|
|
|
:label="scope.row.projectId"> </el-radio> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"></el-table-column> |
|
|
|
<el-table-column prop="projectName" |
|
|
|
<el-table-column prop="auth" label="项目权限" align="center"> |
|
|
|
label="项目名称" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="auth" |
|
|
|
|
|
|
|
label="项目权限" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ permissionsKeys[scope.row.permissions] }} |
|
|
|
{{ permissionsKeys[scope.row.permissions] }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column prop="createUser" label="创建人" align="center"></el-table-column> --> |
|
|
|
<!-- <el-table-column prop="createUser" label="创建人" align="center"></el-table-column> --> |
|
|
|
<el-table-column prop="founder" label="创建人" align="center"> |
|
|
|
<el-table-column prop="founder" |
|
|
|
|
|
|
|
label="创建人" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.createUser }} |
|
|
|
{{ scope.row.createUser }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="createTime" label="创建时间" align="center"></el-table-column> |
|
|
|
<el-table-column prop="createTime" |
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
label="创建时间" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="操作" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="text" @click="showProject(scope.row)">查看</el-button> |
|
|
|
<el-button type="text" |
|
|
|
|
|
|
|
@click="showProject(scope.row)">查看</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<div class="pagination"> |
|
|
|
<div class="pagination"> |
|
|
|
<el-pagination |
|
|
|
<el-pagination background |
|
|
|
background |
|
|
|
|
|
|
|
:page-size="pageSize" |
|
|
|
:page-size="pageSize" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
layout="total,prev, pager, next" |
|
|
|
layout="total,prev, pager, next" |
|
|
|
:total="total" |
|
|
|
:total="total"></el-pagination> |
|
|
|
></el-pagination> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
<el-card shadow="hover" class="mgr20 m-b-20"> |
|
|
|
<el-card shadow="hover" |
|
|
|
|
|
|
|
class="mgr20 m-b-20"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<p class="m-b-20">考核发布</p> |
|
|
|
<p class="m-b-20">考核发布</p> |
|
|
|
<el-radio-group v-model="form.isSpecify"> |
|
|
|
<el-radio-group v-model="form.isSpecify"> |
|
|
@ -140,18 +178,19 @@ |
|
|
|
<el-radio :label="0">无指定范围</el-radio> |
|
|
|
<el-radio :label="0">无指定范围</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-show="form.isSpecify == 1" style="padding-top: 24px;"> |
|
|
|
<div v-show="form.isSpecify == 1" |
|
|
|
|
|
|
|
style="padding-top: 24px;"> |
|
|
|
<p class="m-b-20">班级名称</p> |
|
|
|
<p class="m-b-20">班级名称</p> |
|
|
|
<el-input |
|
|
|
<el-input placeholder="请输入班级名称" |
|
|
|
placeholder="请输入班级名称" |
|
|
|
|
|
|
|
v-model.trim="filterClassName" |
|
|
|
v-model.trim="filterClassName" |
|
|
|
class="inline-input m-b-20" |
|
|
|
class="inline-input m-b-20" |
|
|
|
clearable> |
|
|
|
clearable> |
|
|
|
<el-button slot="append" icon="el-icon-search"></el-button> |
|
|
|
<el-button slot="append" |
|
|
|
|
|
|
|
icon="el-icon-search"></el-button> |
|
|
|
</el-input> |
|
|
|
</el-input> |
|
|
|
<div v-show="tagList.length" class="m-b-20"> |
|
|
|
<div v-show="tagList.length" |
|
|
|
<el-tag |
|
|
|
class="m-b-20"> |
|
|
|
v-for="(tag, index) in tagList" |
|
|
|
<el-tag v-for="(tag, index) in tagList" |
|
|
|
:key="index" |
|
|
|
:key="index" |
|
|
|
closable |
|
|
|
closable |
|
|
|
@close="handleCloseTag(tag)" |
|
|
|
@close="handleCloseTag(tag)" |
|
|
@ -160,8 +199,7 @@ |
|
|
|
</el-tag> |
|
|
|
</el-tag> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="tree-con"> |
|
|
|
<div class="tree-con"> |
|
|
|
<student-tree |
|
|
|
<student-tree ref="tree" |
|
|
|
ref="tree" |
|
|
|
|
|
|
|
node-key="id" |
|
|
|
node-key="id" |
|
|
|
show-checkbox |
|
|
|
show-checkbox |
|
|
|
highlight-current |
|
|
|
highlight-current |
|
|
@ -177,7 +215,9 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
<!-- 邀请码 --> |
|
|
|
<!-- 邀请码 --> |
|
|
|
<el-card v-if="form.isSpecify == 0" shadow="hover" class="m-b-20"> |
|
|
|
<el-card v-if="form.isSpecify == 0" |
|
|
|
|
|
|
|
shadow="hover" |
|
|
|
|
|
|
|
class="m-b-20"> |
|
|
|
<div style="margin-bottom: 10px"> |
|
|
|
<div style="margin-bottom: 10px"> |
|
|
|
<p class="m-b-20">设置邀请码</p> |
|
|
|
<p class="m-b-20">设置邀请码</p> |
|
|
|
<el-radio-group v-model="form.isEnableCode"> |
|
|
|
<el-radio-group v-model="form.isEnableCode"> |
|
|
@ -186,8 +226,13 @@ |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="form.isEnableCode == 1"> |
|
|
|
<div v-if="form.isEnableCode == 1"> |
|
|
|
<el-input style="display: inline-block;width: auto;margin-right: 10px" type="number" v-model.trim="form.invitationCode" maxlength="6" placeholder="请设置6个数字"></el-input> |
|
|
|
<el-input style="display: inline-block;width: auto;margin-right: 10px" |
|
|
|
<el-button type="text" @click="createInv">随机</el-button> |
|
|
|
type="number" |
|
|
|
|
|
|
|
v-model.trim="form.invitationCode" |
|
|
|
|
|
|
|
maxlength="6" |
|
|
|
|
|
|
|
placeholder="请设置6个数字"></el-input> |
|
|
|
|
|
|
|
<el-button type="text" |
|
|
|
|
|
|
|
@click="createInv">随机</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
@ -218,6 +263,7 @@ export default { |
|
|
|
type: 1, // 发布类型(1、手动发布 2、定时发布) |
|
|
|
type: 1, // 发布类型(1、手动发布 2、定时发布) |
|
|
|
experimentDuration: "0d0h0m", |
|
|
|
experimentDuration: "0d0h0m", |
|
|
|
curriculumId: "", |
|
|
|
curriculumId: "", |
|
|
|
|
|
|
|
mallId: '', |
|
|
|
projectId: "", |
|
|
|
projectId: "", |
|
|
|
isSpecify: 1, // 考核发布(1、指定范围 0、无指定范围) |
|
|
|
isSpecify: 1, // 考核发布(1、指定范围 0、无指定范围) |
|
|
|
isEnableCode: 0, //是否设置邀请码 |
|
|
|
isEnableCode: 0, //是否设置邀请码 |
|
|
@ -397,48 +443,33 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
getschoolCourse () { // 获取课程 |
|
|
|
getschoolCourse () { // 获取课程 |
|
|
|
this.$get(this.api.getSchoolEffectiveCourse).then(res => { |
|
|
|
this.$get(this.api.getSchoolEffectiveCourse).then(({ data }) => { |
|
|
|
this.curriculumList = res.data; |
|
|
|
this.curriculumList = data; |
|
|
|
if (this.curriculumList.length) { |
|
|
|
if (this.curriculumList.length) { |
|
|
|
if (this.form.curriculumId){ |
|
|
|
if (!this.form.mallId) this.form.mallId = data[0].mallId |
|
|
|
for(let i=0;i<this.curriculumList.length; i++) { |
|
|
|
this.getProjectData() |
|
|
|
if(this.curriculumList[i].cid == this.form.curriculumId){ |
|
|
|
|
|
|
|
this.getProjectData(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.form.curriculumId = this.curriculumList[0].cid; |
|
|
|
|
|
|
|
for(let i=0;i<this.curriculumList.length; i++) { |
|
|
|
|
|
|
|
this.cidList.push(this.curriculumList[i].cid) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.getProjectData(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.updateTime = 0 |
|
|
|
this.updateTime = 0 |
|
|
|
}) |
|
|
|
}) |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { }); |
|
|
|
console.log(err); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
getProjectData () { |
|
|
|
getProjectData () { |
|
|
|
const curItem = this.curriculumList.find(e => e.cid === this.form.curriculumId) |
|
|
|
const curItem = this.curriculumList.find(e => e.mallId === this.form.mallId) |
|
|
|
|
|
|
|
console.log("🚀 ~ file: index.vue:471 ~ getProjectData ~ curItem:", curItem) |
|
|
|
let data = { |
|
|
|
let data = { |
|
|
|
pageNum: this.page, |
|
|
|
pageNum: this.page, |
|
|
|
pageSize: this.pageSize, |
|
|
|
pageSize: this.pageSize, |
|
|
|
cid:this.form.curriculumId, |
|
|
|
cid: curItem.cid, |
|
|
|
projectName: this.keyword, |
|
|
|
projectName: this.keyword, |
|
|
|
systemId: curItem ? curItem.systemId : 1, |
|
|
|
systemId: curItem ? curItem.systemId : 1, |
|
|
|
permissions: 1 |
|
|
|
permissions: 1, |
|
|
|
|
|
|
|
mallId: this.form.mallId |
|
|
|
} |
|
|
|
} |
|
|
|
this.$post(this.api.projectListByCourseId,data).then(res => { |
|
|
|
this.$post(this.api.projectListByCourseId, data).then(({ data }) => { |
|
|
|
let { status, data } = res; |
|
|
|
|
|
|
|
if (status === 200 && data.records) { |
|
|
|
|
|
|
|
this.projectData = data.records |
|
|
|
this.projectData = data.records |
|
|
|
this.total = data.total |
|
|
|
this.total = data.total |
|
|
|
} |
|
|
|
}).catch(err => { }) |
|
|
|
}).catch(err => { |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
handlePage () { |
|
|
|
handlePage () { |
|
|
|
let result = this.projectDataAll.slice((this.page - 1) * this.pageSize, this.page * this.pageSize); |
|
|
|
let result = this.projectDataAll.slice((this.page - 1) * this.pageSize, this.page * this.pageSize); |
|
|
@ -496,6 +527,9 @@ export default { |
|
|
|
this.form.classId = classId.toString(); |
|
|
|
this.form.classId = classId.toString(); |
|
|
|
this.form.stuInfo = stuInfo; |
|
|
|
this.form.stuInfo = stuInfo; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const curItem = this.curriculumList.find(e => e.mallId === this.form.mallId) |
|
|
|
|
|
|
|
this.form.curriculumId = curItem.cid |
|
|
|
this.submiting = true |
|
|
|
this.submiting = true |
|
|
|
if (this.form.id) { |
|
|
|
if (this.form.id) { |
|
|
|
this.$post(this.api.modifyAssessment, this.form).then(res => { |
|
|
|
this.$post(this.api.modifyAssessment, this.form).then(res => { |
|
|
@ -621,7 +655,7 @@ export default { |
|
|
|
height: 400px; |
|
|
|
height: 400px; |
|
|
|
max-height: 400px; |
|
|
|
max-height: 400px; |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
border: 1px solid #DCDFE6; |
|
|
|
border: 1px solid #dcdfe6; |
|
|
|
border-radius: 4px; |
|
|
|
border-radius: 4px; |
|
|
|
padding: 10px 10px 10px 40px; |
|
|
|
padding: 10px 10px 10px 40px; |
|
|
|
overflow: auto; |
|
|
|
overflow: auto; |
|
|
@ -630,7 +664,7 @@ export default { |
|
|
|
.el-tree-node__expand-icon { |
|
|
|
.el-tree-node__expand-icon { |
|
|
|
padding: 2px; |
|
|
|
padding: 2px; |
|
|
|
color: #fff; |
|
|
|
color: #fff; |
|
|
|
background-color: #9278FF; |
|
|
|
background-color: #9278ff; |
|
|
|
border-radius: 30px; |
|
|
|
border-radius: 30px; |
|
|
|
margin: 0 10px; |
|
|
|
margin: 0 10px; |
|
|
|
} |
|
|
|
} |
|
|
@ -643,7 +677,7 @@ export default { |
|
|
|
.el-checkbox__inner { |
|
|
|
.el-checkbox__inner { |
|
|
|
width: 18px; |
|
|
|
width: 18px; |
|
|
|
height: 18px; |
|
|
|
height: 18px; |
|
|
|
border: 1px solid #9278FF; |
|
|
|
border: 1px solid #9278ff; |
|
|
|
border-radius: 20px; |
|
|
|
border-radius: 20px; |
|
|
|
} |
|
|
|
} |
|
|
|
.el-checkbox__inner::after { |
|
|
|
.el-checkbox__inner::after { |
|
|
|