|
@@ -1543,7 +1543,7 @@
|
|
|
</button>
|
|
|
<button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps"
|
|
|
v-if="!(cid && userid != courseUserid && role != '1')">
|
|
|
- 确认上传
|
|
|
+ 确认创建
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1772,7 +1772,10 @@
|
|
|
<span>账号</span>
|
|
|
<span>学校</span>
|
|
|
</div>
|
|
|
- <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
|
|
|
+ <div style="margin-left:25px;">
|
|
|
+ <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
|
|
|
+ </div>
|
|
|
+ <el-checkbox-group v-model="checkboxList3" @change="handleCheckedTeacherJuriChange" class="people_name" v-if="teacherJuri.length">
|
|
|
<el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
|
|
|
<div class="t_j_box">
|
|
|
<el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
|
|
@@ -1796,7 +1799,7 @@
|
|
|
@current-change="handleCurrentChange"></el-pagination>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisibleMember = false">取 消</el-button>
|
|
|
+ <el-button @click="dialogVisibleMember = false;">取 消</el-button>
|
|
|
<el-button type="primary" @click="isAddPPTeacher">确定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
@@ -3179,6 +3182,8 @@ export default {
|
|
|
// console.log(`当前页: ${val}`);
|
|
|
this.page = val;
|
|
|
this.getTeacher();
|
|
|
+ this.checkAll=false;
|
|
|
+ this.isIndeterminate = true;
|
|
|
},
|
|
|
openAI() {
|
|
|
window.parent.postMessage({ tools: "64" }, "*");
|
|
@@ -3247,14 +3252,19 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleCheckAllChange(val) {
|
|
|
- this.checkedCities = val ? cityOptions : [];
|
|
|
+ this.checkboxList3 = [];
|
|
|
+ if(val){
|
|
|
+ this.teacherJuri.forEach(item=>{
|
|
|
+ this.checkboxList3.push(item.userid);
|
|
|
+ })
|
|
|
+ }
|
|
|
this.isIndeterminate = false;
|
|
|
},
|
|
|
- handleCheckedCitiesChange(value) {
|
|
|
+ handleCheckedTeacherJuriChange(value) {
|
|
|
let checkedCount = value.length;
|
|
|
- this.checkAll = checkedCount === this.cities.length;
|
|
|
+ this.checkAll = checkedCount === this.teacherJuri.length;
|
|
|
this.isIndeterminate =
|
|
|
- checkedCount > 0 && checkedCount < this.cities.length;
|
|
|
+ checkedCount > 0 && checkedCount < this.teacherJuri.length;
|
|
|
},
|
|
|
addHw(e) {
|
|
|
var el = e.currentTarget;
|
|
@@ -5156,6 +5166,8 @@ export default {
|
|
|
isAddPPTeacher() {
|
|
|
this.dialogVisibleMember = false;
|
|
|
this.setMan();
|
|
|
+ this.checkAll=false;
|
|
|
+ this.isIndeterminate=true;
|
|
|
},
|
|
|
getTemplate() {
|
|
|
this.ajax
|