|
@@ -1508,7 +1508,7 @@
|
|
|
|
|
|
<div class="comment" style="min-width: 200px">
|
|
|
<div class="worksName">
|
|
|
- <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex)">
|
|
|
+ <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex,w.userid)">
|
|
|
{{ w.sName }}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -2773,7 +2773,7 @@
|
|
|
|
|
|
<div class="comment" style="min-width: 200px">
|
|
|
<div class="worksName">
|
|
|
- <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex)">
|
|
|
+ <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex,w.userid)">
|
|
|
{{ w.sName }}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -4170,7 +4170,7 @@
|
|
|
|
|
|
<div class="comment" style="min-width: 200px">
|
|
|
<div class="worksName">
|
|
|
- <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex)">
|
|
|
+ <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex,w.userid)">
|
|
|
{{ w.sName }}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -6900,12 +6900,13 @@
|
|
|
placeholder="请输入学生名字"
|
|
|
style="margin-top: 10px"
|
|
|
></el-input> -->
|
|
|
-
|
|
|
- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
|
|
|
+ <div class="pl_select_box" @click="getUpdateMore(true, checkUpload(), item.username, index)">{{
|
|
|
+ getSName(item.username) }}</div>
|
|
|
+ <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
|
|
|
<el-option v-for="item1 in checkUpload" :key="item1.userid"
|
|
|
:label="item1.name ? item1.name : item1.username" :value="item1.userid">
|
|
|
</el-option>
|
|
|
- </el-select>
|
|
|
+ </el-select> -->
|
|
|
|
|
|
<div class="deleteWord" @click="clean2(index)">
|
|
|
<img src="../../assets/icon/deleteWorks.png" alt />
|
|
@@ -6930,14 +6931,16 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
|
|
|
class="dialog_diy" center>
|
|
|
- <div style="text-align: center">
|
|
|
+ <div style="text-align: center;display: flex;align-items: center;justify-content: center;">
|
|
|
<span class="tian1">名称</span>
|
|
|
- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
|
|
|
+ <div class="pl_select_box" style="margin-left:10px;width:200px"
|
|
|
+ @click="getUpdateMore(true, uploadStudentJuri, worksSid)">{{ getSName(worksSName) }}</div>
|
|
|
+ <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
|
|
|
placeholder="请选择学生">
|
|
|
<el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
|
|
|
:value="item.userid">
|
|
|
</el-option>
|
|
|
- </el-select>
|
|
|
+ </el-select> -->
|
|
|
<!-- <el-input
|
|
|
v-model="worksSName"
|
|
|
style="width: 250px; margin: 15px 0px"
|
|
@@ -6950,6 +6953,8 @@
|
|
|
</el-dialog>
|
|
|
<interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" :userid="userid" :id="id"
|
|
|
:courseType="courseType" :taskCount="taskCount" :toolindex="toolindex"></interVideo>
|
|
|
+ <UpdateMore :dialogVisibleMember.sync="dialogVisibleMember" :cList="uploadStudentJuri" :userid="userid"
|
|
|
+ :searchTN="worksSName2" @setPlname="setPlname"></UpdateMore>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -6973,6 +6978,7 @@ import ImgDraw from "../tools/imgDraw/imgDraw";
|
|
|
import { Empty } from "element-ui";
|
|
|
import RecordRTC from "recordrtc";
|
|
|
import interVideo from "../interVideo/index.vue"
|
|
|
+import UpdateMore from "../updateMore/updateMore.vue";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -6989,7 +6995,8 @@ export default {
|
|
|
Audio,
|
|
|
ImgDraw,
|
|
|
Table,
|
|
|
- interVideo
|
|
|
+ interVideo,
|
|
|
+ UpdateMore
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -7287,13 +7294,30 @@ export default {
|
|
|
checktoolArray: [],
|
|
|
vChapterData: [],
|
|
|
isUpdateToolDetail: false,
|
|
|
- updateToolDetailInner: ''
|
|
|
+ updateToolDetailInner: '',
|
|
|
+ plIndex: "",
|
|
|
+ worksSName2: "",
|
|
|
+ worksSid: "",
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
jump() {
|
|
|
window.parent.postMessage({ tools: "43" }, "*");
|
|
|
},
|
|
|
+ getUpdateMore(f, checkboxList, searchTN, index) {
|
|
|
+ this.dialogVisibleMember = f;
|
|
|
+ this.checkboxList = checkboxList;
|
|
|
+ this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
|
|
|
+ this.plIndex = index;
|
|
|
+ },
|
|
|
+ setPlname(a) {
|
|
|
+ if (this.plworkFile.length) {
|
|
|
+ this.plworkFile[this.plIndex].username = a
|
|
|
+ } else {
|
|
|
+ this.worksSName = a
|
|
|
+ }
|
|
|
+ this.dialogVisibleMember = false
|
|
|
+ },
|
|
|
previewImg(url) {
|
|
|
this.$hevueImgPreview(url);
|
|
|
},
|
|
@@ -7891,15 +7915,20 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
- selectUploadStudent() {
|
|
|
+ selectUploadStudent(type) {
|
|
|
+ const loading = this.$loading.service({
|
|
|
+ background: "rgba(255, 255, 255, 0.7)",
|
|
|
+ target: document.body,
|
|
|
+ });
|
|
|
let params = {
|
|
|
- cid: this.tcid ? this.tcid : this.courseDetail.juri,
|
|
|
+ cid: this.uploadCid,
|
|
|
oid: this.oid,
|
|
|
- cn: '',
|
|
|
+ cn: "",
|
|
|
};
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "selectSnameByCidGroup", params)
|
|
|
.then((res) => {
|
|
|
+ loading.close();
|
|
|
var studentK = [];
|
|
|
if (this.isWorksS[this.toolindex].length > 0) {
|
|
|
for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
|
|
@@ -7908,10 +7937,23 @@ export default {
|
|
|
studentK = studentK.join(",");
|
|
|
}
|
|
|
this.uploadStudentJuri = res.data[0].filter((el) => {
|
|
|
- return studentK.indexOf(el.userid) == -1
|
|
|
+ return studentK.indexOf(el.userid) == -1;
|
|
|
});
|
|
|
+ if (this.worksSName && this.worksSid) {
|
|
|
+ this.uploadStudentJuri.push({
|
|
|
+ userid: this.worksSid,
|
|
|
+ name: this.worksSName,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if(type == 1){
|
|
|
+ this.plworkFile = []
|
|
|
+ this.dialogVisibleSname = true;
|
|
|
+ }else if(type == 2){
|
|
|
+ this.dialogVisiblePl = true;
|
|
|
+ }
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ loading.close();
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
@@ -11619,8 +11661,7 @@ export default {
|
|
|
this.$message.error("提示:批量上传未添加班级权限,请添加班级或从班级入口进入。");
|
|
|
return;
|
|
|
}
|
|
|
- this.selectUploadStudent();
|
|
|
- this.dialogVisiblePl = true;
|
|
|
+ this.selectUploadStudent(2);
|
|
|
} else if (t == 8) {
|
|
|
if (this.libraryCount > 0) {
|
|
|
this.updateCount(this.libraryCount, t);
|
|
@@ -12222,17 +12263,19 @@ export default {
|
|
|
this.fulltype = type;
|
|
|
this.fullUrl = url;
|
|
|
},
|
|
|
- openSname(n, id, i) {
|
|
|
+ openSname(n, id, i, uid) {
|
|
|
this.snameWid = id;
|
|
|
this.worksSName = n;
|
|
|
- this.toolindex = i
|
|
|
- this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
|
|
|
+ this.worksSid = uid == n ? "" : uid;
|
|
|
+ this.toolindex = i;
|
|
|
+ this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
|
|
|
if (!this.uploadCid) {
|
|
|
- this.$message.error("提示:批量上传未添加班级权限,请添加班级或从班级入口进入。");
|
|
|
+ this.$message.error(
|
|
|
+ "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
|
|
|
+ );
|
|
|
return;
|
|
|
}
|
|
|
- this.selectUploadStudent()
|
|
|
- this.dialogVisibleSname = true;
|
|
|
+ this.selectUploadStudent(1);
|
|
|
},
|
|
|
updateName() {
|
|
|
let params = {
|
|
@@ -13020,6 +13063,18 @@ export default {
|
|
|
});
|
|
|
return a
|
|
|
}
|
|
|
+ },
|
|
|
+ getSName() {
|
|
|
+ return function (name) {
|
|
|
+ var check = name;
|
|
|
+
|
|
|
+ this.uploadStudentJuri.forEach((el) => {
|
|
|
+ if (el.userid == check) {
|
|
|
+ check = el.name ? el.name : el.username
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return check;
|
|
|
+ };
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -16611,4 +16666,20 @@ ol {
|
|
|
font-size: 14px;
|
|
|
color: #868686;
|
|
|
}
|
|
|
+
|
|
|
+.pl_select_box {
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ width: 100%;
|
|
|
+ cursor: pointer;
|
|
|
+ padding: 0 20px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-radius: 5px;
|
|
|
+ border: 1px solid #d6d6d6;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ background: #fff;
|
|
|
+ text-align: left;
|
|
|
+}
|
|
|
</style>
|