Browse Source

行为备忘

SanHQin 10 months ago
parent
commit
cbd77efc12

+ 396 - 53
src/components/classRoomHelper/component/countdown.vue

@@ -431,43 +431,41 @@
 
 		<div class="c_behavior" v-if="showType == 1">
 			<div class="behaviorBack">
-				<span
-					@click.stop="changeShowType(0)"
-					>
+				<span @click.stop="changeShowType(0)">
 					<svg
-							width="16"
-							height="16"
-							viewBox="0 0 16 16"
-							fill="none"
-							xmlns="http://www.w3.org/2000/svg"
-						>
-							<path
-								fill-rule="evenodd"
-								clip-rule="evenodd"
-								d="M3.66782 3.1263C3.87421 2.94284 4.19025 2.96143 4.37371 3.16782L8.37371 7.66782C8.5421 7.85727 8.5421 8.14274 8.37371 8.33219L4.37371 12.8322C4.19025 13.0386 3.87421 13.0572 3.66782 12.8737C3.46143 12.6903 3.44284 12.3742 3.6263 12.1678L7.33103 8.00001L3.6263 3.83219C3.44284 3.6258 3.46143 3.30976 3.66782 3.1263Z"
-								fill="black"
-							/>
-							<path
-								fill-rule="evenodd"
-								clip-rule="evenodd"
-								d="M7.66782 3.1263C7.87421 2.94284 8.19025 2.96143 8.37371 3.16782L12.3737 7.66782C12.5421 7.85727 12.5421 8.14274 12.3737 8.33219L8.37371 12.8322C8.19025 13.0386 7.87421 13.0572 7.66782 12.8737C7.46143 12.6903 7.44284 12.3742 7.6263 12.1678L11.331 8.00001L7.6263 3.83219C7.44284 3.6258 7.46143 3.30976 7.66782 3.1263Z"
-								fill="black"
-							/>
-						</svg>返回</span
+						width="16"
+						height="16"
+						viewBox="0 0 16 16"
+						fill="none"
+						xmlns="http://www.w3.org/2000/svg"
+					>
+						<path
+							fill-rule="evenodd"
+							clip-rule="evenodd"
+							d="M3.66782 3.1263C3.87421 2.94284 4.19025 2.96143 4.37371 3.16782L8.37371 7.66782C8.5421 7.85727 8.5421 8.14274 8.37371 8.33219L4.37371 12.8322C4.19025 13.0386 3.87421 13.0572 3.66782 12.8737C3.46143 12.6903 3.44284 12.3742 3.6263 12.1678L7.33103 8.00001L3.6263 3.83219C3.44284 3.6258 3.46143 3.30976 3.66782 3.1263Z"
+							fill="black"
+						/>
+						<path
+							fill-rule="evenodd"
+							clip-rule="evenodd"
+							d="M7.66782 3.1263C7.87421 2.94284 8.19025 2.96143 8.37371 3.16782L12.3737 7.66782C12.5421 7.85727 12.5421 8.14274 12.3737 8.33219L8.37371 12.8322C8.19025 13.0386 7.87421 13.0572 7.66782 12.8737C7.46143 12.6903 7.44284 12.3742 7.6263 12.1678L11.331 8.00001L7.6263 3.83219C7.44284 3.6258 7.46143 3.30976 7.66782 3.1263Z"
+							fill="black"
+						/></svg
+					>返回</span
 				>
-
-				<div class="c_step" ref="stepRef" v-loading="memorandumLoading">
-					<el-timeline>
-						<el-timeline-item
-							v-for="(item, index) in memorandumList"
-							:key="index"
-							:timestamp="item.time"
-						>
-							<div v-html="item.text"></div>
-							<!-- <span v-html="activity.content"></span> -->
-						</el-timeline-item>
-					</el-timeline>
-				</div>
+			</div>
+			<div class="c_step" ref="stepRef" v-loading="memorandumLoading">
+				<el-timeline>
+					<el-timeline-item
+						v-for="(item, index) in showMemorandumList"
+						:class="item.color"
+						:key="index"
+						:timestamp="item.time"
+						size="large"
+					>
+						<span v-html="item.textList.join(',')"></span>
+					</el-timeline-item>
+				</el-timeline>
 			</div>
 		</div>
 		<mini-audio
@@ -502,6 +500,7 @@ export default {
 		return {
 			userid: this.$route.query.userid,
 			courseId: this.$route.query.courseId,
+			tcid: this.$route.query.tcid,
 			showType: 0,
 			sourceUrl:
 				"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%80%92%E8%AE%A1%E6%97%B6%E9%9F%B3%E4%B9%901721355956636.mp3",
@@ -604,6 +603,151 @@ export default {
 				_result.s2 = seconds;
 			}
 
+			return _result;
+		},
+		showMemorandumList() {
+			let _result = [];
+
+			let _time1 = ""; //_interval1之内的时间
+			let _time2 = ""; //_interval2之内的时间
+			let _type = "blue"; //要展示的颜色
+			let _interval1 = 300; //行为间隔  s
+			let _interval2 = 10; //行为间隔  s
+			let _previousBehavior = "";
+			let _resultTemplate = [];
+			let _topic = "";
+
+			this.memorandumList.forEach((item, index) => {
+				if (index == 0) {
+					_time1 = item.time
+					_time2 = item.time
+					_type = "blue";
+					return _result.push({
+						textList: [item.text],
+						time: item.time,
+						color: _type,
+					});
+				}
+
+				if (this.isMoreThanSeconds(item.time,_time1,_interval1)) {
+					//切换颜色
+					_type = _type == "blue" ? "green" : "blue";
+					_time1 = item.time;
+				}
+
+				//针对查看学生的作业情况
+				if (_result[_result.length - 1].textList.length) {
+					if (
+						_result[_result.length - 1].textList[
+							_result[_result.length - 1].textList.length - 1
+						].indexOf("的作业") === -1 &&
+						item.text.indexOf("的作业") !== -1
+					) {
+						return _result.push({
+							textList: [item.text],
+							time: item.time,
+							color: _type,
+						});
+					} else if (
+						_result[_result.length - 1].textList[
+							_result[_result.length - 1].textList.length - 1
+						].indexOf("的作业") !== -1 &&
+						item.text.indexOf("的作业") !== -1
+					) {
+						return _result[_result.length - 1].textList.push(item.text);
+					}else if(_result[_result.length - 1].textList[
+							_result[_result.length - 1].textList.length - 1
+						].indexOf("的作业") !== -1 && item.text.indexOf("的作业") == -1){
+							return _result.push({
+							textList: [item.text],
+							time: item.time,
+							color: _type,
+						});
+					}
+				}
+
+				//针对任务面板做题的操作情况
+				if (
+					item.text.match(/<span class=['"]variable['"]>第(.*?)题<\/span>/g) !=
+					null
+				) {
+					let _match = item.text.match(
+						/<span class=['"]variable['"]>(.*?)<\/span>/
+					);
+					let _matchTopic = _match[1];
+					if (
+						_result[_result.length - 1].textList[
+							_result[_result.length - 1].textList.length - 1
+						].match(/<span class=['"]variable['"]>第(.*?)题<\/span>/g) == null
+					) {
+						_topic = _matchTopic;
+						return _result.push({
+							textList: [item.text],
+							time: item.time,
+							color: _type,
+						});
+					} else {
+						if (_topic == _matchTopic) {
+							//同一题
+							return _result[_result.length - 1].textList.push(item.text);
+						} else {
+							_topic = _matchTopic;
+							return _result.push({
+								textList: [item.text],
+								time: item.time,
+								color: _type,
+							});
+						}
+					}
+				} else if (
+					_result[_result.length - 1].textList[
+						_result[_result.length - 1].textList.length - 1
+					].match(/<span class=['"]variable['"]>第(.*?)题<\/span>/g)
+				) {
+					return _result.push({
+						textList: [item.text],
+						time: item.time,
+						color: _type,
+					});
+				}
+
+				if (this.isMoreThanSeconds(item.time,_time2,_interval2)) {
+					_time2 = item.time
+					//十秒过了
+					_result.push({
+						textList: [item.text],
+						time: item.time,
+						color: _type,
+					});
+				} else {
+					_result[_result.length - 1].textList.push(`${item.text}`);
+				}
+			});
+			_result.forEach((i) => {
+				if (i.textList.every((ei) => ei.indexOf("的作业") !== -1)) {
+					let _useSet = new Set();
+					i.textList.forEach((i2) => {
+						let _userMatch = i2.match(
+							/<span class=['"]variable['"]>(.*?)<\/span>的作业/
+						);
+						if (_userMatch) {
+							_useSet.add(_userMatch[1]);
+						}
+					});
+					if (Array.from(_useSet).length > 1) {
+						i.textList = this.lookWork(i.textList);
+					} else {
+						i.textList = this.lookWork2(i.textList);
+					}
+				} else if (
+					i.textList.every((ei) =>
+						ei.match(/<span class=['"]variable['"]>第(.*?)题<\/span>/g)
+					)
+				) {
+					i.textList = this.lookTask(i.textList);
+				}
+			});
+
 			return _result;
 		},
 	},
@@ -622,15 +766,186 @@ export default {
 		},
 	},
 	methods: {
+		lookWork(data) {
+			const taskTypes = {
+				查看作业: new Set(),
+				进行点赞: new Set(),
+				进行评论: new Set(),
+				进行评分: new Set(),
+			};
+
+			let _result = [];
+
+			const viewRegex = /查看<span class=['"]variable['"]>(.*?)<\/span>的作业/g;
+			const likeRegex =
+				/对<span class=['"]variable['"]>(.*?)<\/span>的作业进行<span class=['"]btn['"]>点赞<\/span>/g;
+			const commentRegex =
+				/对<span class=['"]variable['"]>(.*?)<\/span>的作业进行<span class=['"]btn['"]>评论<\/span>/g;
+			const markRegex =
+				/对<span class=['"]variable['"]>(.*?)<\/span>的作业进行<span class=['"]btn['"]>评分<\/span>/g;
+			data.forEach((str) => {
+				if (viewRegex.test(str)) {
+					this.extractText(str, viewRegex).forEach((item) =>
+						taskTypes["查看作业"].add(item)
+					);
+				} else if (likeRegex.test(str)) {
+					this.extractText(str, likeRegex).forEach((item) =>
+						taskTypes["进行点赞"].add(item)
+					);
+				} else if (commentRegex.test(str)) {
+					this.extractText(str, commentRegex).forEach((item) =>
+						taskTypes["进行评论"].add(item)
+					);
+				} else if (markRegex.test(str)) {
+					this.extractText(str, markRegex).forEach((item) =>
+						taskTypes["进行评分"].add(item)
+					);
+				}
+			});
+
+			if (Array.from(taskTypes["查看作业"]).length > 0) {
+				_result.push(
+					`查看<span class='variable'>${Array.from(taskTypes["查看作业"]).join(
+						","
+					)}</span>的作业`
+				);
+			}
+			if (Array.from(taskTypes["进行点赞"]).length > 0) {
+				_result.push(
+					`对<span class='variable'>${Array.from(taskTypes["进行点赞"]).join(
+						","
+					)}</span>的作业进行<span class="btn">点赞</span>`
+				);
+			}
+			if (Array.from(taskTypes["进行评论"]).length > 0) {
+				_result.push(
+					`对<span class='variable'>${Array.from(taskTypes["进行评论"]).join(
+						","
+					)}</span>的作业进行<span class="btn">评论</span>`
+				);
+			}
+
+			if (Array.from(taskTypes["进行评分"]).length > 0) {
+				_result.push(
+					`对<span class='variable'>${Array.from(taskTypes["进行评分"]).join(
+						","
+					)}</span>的作业进行<span class="btn">评分</span>`
+				);
+			}
+
+			return _result;
+		},
+		lookWork2(data) {
+			// 用于存储结果
+			let result = [];
+			// 用于跟踪 variable 和对应的 btn 操作
+			let map = new Map();
+
+			data.forEach((item) => {
+				// 提取 variable
+				let variableMatch = item.match(
+					/<span class=["']variable["']>(.*?)<\/span>/
+				);
+				// 提取 btn
+				let btnMatch = item.match(/<span class=["']btn["']>(.*?)<\/span>/);
+
+				if (variableMatch) {
+					let variable = variableMatch[1];
+					if (btnMatch) {
+						let btn = btnMatch[1];
+
+						if (!map.has(variable)) {
+							map.set(variable, []);
+						}
+
+						// 存储 btn 操作
+						map.get(variable).push(btn);
+					} else {
+						// 如果没有 btn 操作,直接推入结果
+						result.push(item);
+					}
+				}
+			});
+
+			// 构建结果数组
+			map.forEach((btns, variable) => {
+				// 构建新的字符串
+				let newString = `对<span class="variable">${variable}</span>的作业<span class="btn">${btns.join(
+					","
+				)}</span>`;
+				result.push(newString);
+			});
+
+			return Array.from(new Set(result));
+		},
+
+		lookTask(data) {
+			// 创建一个对象来存储 variable 和对应的操作
+			let map = {};
+			let arr = Array.from(new Set(data));
+			arr.forEach((item) => {
+				// 提取 variable 和操作部分
+				let variableMatch = item.match(
+					/<span class=["']variable["']>(.*?)<\/span>/
+				);
+				let operationMatch = item.match(/<\/span>(.*?)$/);
+
+				if (variableMatch && operationMatch) {
+					let variable = variableMatch[1];
+					let operation = operationMatch[1];
+
+					if (!map[variable]) {
+						map[variable] = [];
+					}
+
+					// 将操作部分去掉前面的 "的" 字符串,并添加到 map 中
+					map[variable].push(operation.replace(/^的/, ""));
+				}
+			});
+
+			// 构建结果数组
+			let result = [];
+			for (let variable in map) {
+				// 将操作部分合并成一个字符串
+				let combinedOperations = map[variable].join("、");
+				result.push(
+					`查看<span class="variable">${variable}</span>的<span class="btn">${combinedOperations}</span>`
+				);
+			}
+
+			return result;
+		},
+
+		extractText(htmlString, regex) {
+			const matches = htmlString.match(regex);
+			return matches ? matches.map((match) => match.replace(regex, "$1")) : [];
+		},
+
+		isMoreThanSeconds(time1, time2,exceed) {
+  // 将时间字符串转换为 Date 对象
+  let date1 = new Date(time1);
+  let date2 = new Date(time2);
+
+  // 获取时间戳(毫秒)
+  let timestamp1 = date1.getTime();
+  let timestamp2 = date2.getTime();
+
+  // 计算两个时间戳的差异(秒)
+  let diffInSeconds = Math.abs(timestamp2 - timestamp1) / 1000;
+
+  // 判断差异是否超过 10 秒
+  return diffInSeconds > exceed;
+},
+
 		insertMemorandum(_html) {
-			return;
+			// return;
 			//保存行为操作
 			//variable
 			//btn
 			let params = [
 				{
 					uid: this.userid,
-					courseId: this.courseId,
+					courseId: this.courseId+this.tcid,
 					content: _html,
 				},
 			];
@@ -753,7 +1068,7 @@ export default {
 				}, 1000);
 				let timeShow = `${this.countdownTimeShow.m1}${this.countdownTimeShow.m2}分钟${this.countdownTimeShow.s1}${this.countdownTimeShow.s2}秒`;
 				this.insertMemorandum(
-					`设置<span class="variable"></span><span class="btn">倒计时${timeShow}</span>${
+					`设置<span class="variable">${timeShow}</span><span class="btn">倒计时</span>${
 						this.choiceBehavior.length > 0
 							? ",用于" +
 							  '<span class="btn">' +
@@ -770,7 +1085,7 @@ export default {
 			this.isCountdown = false;
 			this.$parent.type = 1;
 			this.$parent.itemType = 3;
-			this.changeShowType(0)
+			this.changeShowType(0);
 			if (this.$refs.audioRef.playing && this.sourceActive) {
 				this.$refs.audioRef.pause();
 			}
@@ -1031,11 +1346,10 @@ ${_textData}
 				});
 		},
 		selectMemorandum() {
-			return;
 			this.memorandumLoading = false;
 			let params = {
 				uid: this.userid,
-				courseId: this.courseId,
+				courseId: this.courseId+this.tcid,
 			};
 			this.memorandumList = [];
 			this.ajax
@@ -1046,12 +1360,17 @@ ${_textData}
 				.then((res) => {
 					let _data = res.data[0];
 					if (_data.length) {
+						// let _result  =  _data;
+						// console.log(_result)
+
 						this.memorandumList = _data;
 					} else {
 						this.memorandumList = [];
 					}
+					this.$nextTick(() => {
+						this.$refs.stepRef.scrollTop = this.$refs.stepRef.scrollHeight;
+					});
 					this.memorandumLoading = false;
-					console.log(res);
 				})
 				.catch((err) => {
 					console.log(err);
@@ -1468,38 +1787,62 @@ ${_textData}
 	box-sizing: border-box;
 	overflow: auto;
 }
+
+.c_step >>> .el-timeline .btn {
+	color: #2972f4;
+}
+
+.c_step >>> .el-timeline .variable {
+	color: #319b62;
+}
+
+.c_step >>> .blue .el-timeline-item__tail{
+	border-left: 6px solid #017BDF !important;
+}
+
+.c_step >>> .green .el-timeline-item__tail{
+	border-left: 6px solid #7BDE74 !important;
+}
+
+.c_step >>> .el-timeline-item__node{
+	background-color: #00B9FF;
+	transform: scale(1.1,1.1);
+	position: relative;
+	left: -0.5px;
+}
+
 .c_s_item {
 	display: flex;
 	justify-content: center;
 	align-items: center;
 }
 
-.ActivityMemo{
+.ActivityMemo {
 	width: 100%;
 	height: 30px;
 	display: flex;
 	align-items: center;
 	margin-top: 20px;
-	
+
 	box-sizing: border-box;
 	padding-left: 20px;
 }
 
-.ActivityMemo>span{
+.ActivityMemo > span {
 	display: flex;
 	align-items: center;
 	cursor: pointer;
 }
 
-.ActivityMemo>span>svg{
+.ActivityMemo > span > svg {
 	margin-left: 5px;
 	position: relative;
 	top: 1px;
-	width:20px;
-	height:20px
+	width: 20px;
+	height: 20px;
 }
 
-.behaviorBack{
+.behaviorBack {
 	width: 100%;
 	height: 30px;
 	display: flex;
@@ -1509,19 +1852,19 @@ ${_textData}
 	padding-left: 20px;
 }
 
-.behaviorBack>span{
+.behaviorBack > span {
 	display: flex;
 	align-items: center;
 	cursor: pointer;
 	width: 80px;
 }
 
-.behaviorBack>span>svg{
+.behaviorBack > span > svg {
 	margin-right: 5px;
 	position: relative;
 	top: 1px;
-	width:20px;
-	height:20px;
+	width: 20px;
+	height: 20px;
 	transform: rotate(180deg);
 }
 </style>

+ 5 - 5
src/components/classRoomHelper/component/searchArea.vue

@@ -1158,6 +1158,7 @@ export default {
 			videoCheck: false,
 			userid: this.$route.query.userid,
 			courseId: this.$route.query.courseId,
+			tcid: this.$route.query.tcid,
 			imgNumList: ["U1", "U2", "U3", "U4"],
 			chatList: [],
 			nowChatList: [],
@@ -1346,11 +1347,10 @@ export default {
 			//保存行为操作
 			//variable
 			//btn
-			return;
 			let params = [
 				{
 					uid: this.userid,
-					courseId: this.courseId,
+					courseId: this.courseId+this.tcid,
 					content: _html,
 				},
 			];
@@ -3166,7 +3166,7 @@ ${_wordData}
 		this.getWorkData();
 		this.getPublicRoleList();
 		this.getRoleList();
-		this.insertMemorandum(`打开<span class="btn">任务</span>面板`);
+		this.insertMemorandum(`打开<span class="btn">对话</span>面板`);
 	},
 };
 </script>
@@ -3347,9 +3347,9 @@ ${_wordData}
 	margin-left: 20px;
 }
 
-.s_t_c_a_r_content>>> ol{
+/* .s_t_c_a_r_content>>> ol{
 	margin-left: 20px;
-}
+} */
 
 .s_t_c_a_r_content2 {
 	background-color: #f6f8ff;

+ 3 - 2
src/components/classRoomHelper/component/taskArea.vue

@@ -500,6 +500,7 @@ export default {
       userid: this.$route.query.userid,
       courseId: this.$route.query.courseId,
       ttype: this.$route.query.tType,
+			tcid: this.$route.query.tcid,
       loading: false,
       aiBoxLoading: false,
       chatLoading: false,
@@ -728,11 +729,11 @@ export default {
       //保存行为操作
       //variable
       //btn
-      return;
+      // return;
       let params = [
         {
           uid: this.userid,
-          courseId: this.courseId,
+          courseId: this.courseId+this.tcid,
           content: _html
         }
       ];

+ 2 - 2
src/components/classRoomHelper/index.vue

@@ -322,6 +322,7 @@ export default {
     return {
       userid: this.$route.query.userid,
       courseId: this.$route.query.courseId,
+			tcid: this.$route.query.tcid,
       type: 0,
       itemType: 0, //0--无  1-搜索  2-任务 3-对话
       fileId: [],
@@ -349,11 +350,10 @@ export default {
       //保存行为操作
       //variable
       //btn
-			return;
       let params = [
         {
           uid: this.userid,
-          courseId: this.courseId,
+          courseId: this.courseId+this.tcid,
           content: _html
         }
       ];

+ 28 - 0
src/components/courseDetail.vue

@@ -1188,6 +1188,26 @@ export default {
     };
   },
   methods: {
+		insertMemorandum(_html,tcid=""){//保存行为操作
+			//variable
+			//btn
+			let params = [{
+				uid:this.userid,
+				courseId:this.id+tcid,
+				content:_html
+			}]
+
+			this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
+				if(res.data==1){
+					console.log('保存操作成功')
+				}else{
+					console.log('保存操作失败')
+				}
+			}).catch(e=>{
+				console.log('保存操作失败')
+				console.log(e)
+			})
+		},
     handleClose(done) {
       done();
     },
@@ -1209,6 +1229,13 @@ export default {
       this.$router.push(path);
     },
     gotoCourse(id) {
+			if(!id){
+				this.insertMemorandum(`开始为<span class='variable'>全部班级</span>授课`)
+			}else{
+				let _classData = this.classList.find(item=>item.id == id)
+				this.insertMemorandum(`开始为<span class='variable'>${_classData.name}</span>授课`,id)
+			}
+
       if (this.courseDetail.state == 1) {
         if (this.classList.length) {
           this.goTo(
@@ -1340,6 +1367,7 @@ export default {
     goToStudyOrDia(l) {
       if (l.length > 0) {
         this.dialogVisibleSk = true;
+				this.insertMemorandum("点击<span class='btn'>以班级授课</span>")
       } else {
 				this.getCourseDetail1().then(_=>{
 					if(this.classList.length<=0){

+ 106 - 46
src/components/easy2/studyStudent.vue

@@ -1407,7 +1407,7 @@
                         <div class="workImg" v-if="w.type == 0">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2125,7 +2125,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2200,7 +2200,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2275,7 +2275,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2350,7 +2350,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2425,7 +2425,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <img
@@ -2524,7 +2524,7 @@
                               <!-- @click="commentOther(w, toolIndex, wIndex)" -->
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -2708,7 +2708,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -2777,7 +2777,7 @@
                           <!-- @click="commentOther(w, toolIndex, wIndex)" -->
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2961,7 +2961,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -3273,7 +3273,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -3443,7 +3443,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -3544,7 +3544,7 @@
                           <!-- @click="commentOther(w, toolIndex, wIndex)" -->
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -3693,7 +3693,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -4334,7 +4334,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -4456,7 +4456,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -4580,7 +4580,7 @@
                             <div class="workImg">
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -4628,7 +4628,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -4696,7 +4696,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -4740,7 +4740,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -4864,7 +4864,7 @@
                             <div class="workImg">
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -4912,7 +4912,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -4980,7 +4980,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -5024,7 +5024,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -5148,7 +5148,7 @@
                             <div class="workImg">
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -5196,7 +5196,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -5264,7 +5264,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -5308,7 +5308,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -5431,7 +5431,7 @@
                             <div class="workImg">
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -5479,7 +5479,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -5547,7 +5547,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -5591,7 +5591,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -5697,7 +5697,7 @@
                         <div class="workImg" v-if="w.type == 0">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <img
@@ -5834,7 +5834,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -6403,7 +6403,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -6694,7 +6694,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -6914,7 +6914,7 @@
                               <div class="workImg" v-if="w.type == 0">
                                 <img
                                   :src="w.works"
-                                  @click="previewImg(w.works)"
+                                  @click="previewImg(w.works,w)"
                                   alt
                                 />
                                 <div
@@ -7114,7 +7114,8 @@
                                           userid,
                                           1,
                                           null,
-                                          w.isLikes
+                                          w.isLikes,
+																					w.sName
                                         )
                                       "
                                     >
@@ -8288,7 +8289,7 @@
 				<scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
 			</div>
       <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
-        <scoreZong :courseid="id" :userid="userid"></scoreZong>
+        <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
 			</div>
     </div>
     <div
@@ -9861,7 +9862,8 @@
                     userid,
                     1,
                     null,
-                    commentDetail.isLikes
+                    commentDetail.isLikes,
+										commentDetail.sName
                   )
                 "
                 :src="commentDetail.isLikes == true ? likes : noLikes"
@@ -9988,7 +9990,7 @@
         >
         <el-button
           type="primary"
-          @click="addComment(commentDetail.wid, userid, 2)"
+          @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
           >确 定</el-button
         >
       </div>
@@ -10518,7 +10520,7 @@
         <el-button
           type="primary"
           v-if="courseDetail.userid == userid"
-          @click="scoreWork(commentDetail.wid)"
+          @click="scoreWork(commentDetail.wid,commentDetail.sName)"
           >确 定
         </el-button>
       </span>
@@ -12468,6 +12470,28 @@ export default {
 				this.oidArray = oidArray;
 			})
 		},
+		insertMemorandum(_html){//保存行为操作
+			//variable
+			//btn
+			let params = [{
+				uid:this.userid,
+				courseId:this.id+this.tcid2,
+				content:_html
+			}]
+
+			console.log(params)
+
+			this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
+				if(res.data==1){
+					console.log('保存操作成功')
+				}else{
+					console.log('保存操作失败')
+				}
+			}).catch(e=>{
+				console.log('保存操作失败')
+				console.log(e)
+			})
+		},
     async loopEva(con,tit,stage,task,toolIndex,toolDetail,worksStudent){
         console.log(con,tit,stage,task,toolIndex,toolDetail);
 
@@ -12845,6 +12869,8 @@ export default {
         }, 0);
       }
       this.navId = ""
+			let flag = this.courseType == i;
+			let flag2 = this.taskCount == j
       if (l) {
         this.courseType = i;
         // this.navId = l;
@@ -12852,6 +12878,15 @@ export default {
         this.selectPz();
         this.getHomeWork();
         this.getCourseDetail(2);
+				if(flag){
+					if(flag2){
+						this.insertMemorandum(`选择<span class="variable">工具${w+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
+					}else{
+						this.insertMemorandum(`选择<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>→<span class="variable">工具${w+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
+					}
+				}else{
+					this.insertMemorandum(`选择<span class="variable">阶段${this.courseType+1}${this.navList[this.courseType].dyName?':'+this.navList[this.courseType].dyName:''}</span>→<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>→<span class="variable">工具${w+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
+				}
       }
 
       // var b = this.$refs["bz" + k][0];
@@ -12934,8 +12969,11 @@ export default {
       }
       this.dialogVisibleMember = false;
     },
-    previewImg(url) {
+    previewImg(url,w) {
       this.$hevueImgPreview(url);
+			if(w){
+				this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
+			}
     },
     checkImg(list) {
       if (!list.length) {
@@ -14187,7 +14225,7 @@ export default {
       this.videoDetail = this.playerOptions1;
       this.videoVisible = true;
     },
-    isLikes(wid, uid, t, c, isLikes) {
+    isLikes(wid, uid, t, c, isLikes,sName) {
       if (isLikes == false) {
         let params = [
           {
@@ -14206,6 +14244,7 @@ export default {
             });
             this.selectSWorks();
             this.selectStudent();
+						this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
           })
           .catch((err) => {
             this.$message.error("点赞失败");
@@ -14358,8 +14397,9 @@ export default {
         
         this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
       }
+			this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
     },
-    addComment(wid, uid, t) {
+    addComment(wid, uid, t,detail) {
       if (this.commentText == "") {
         this.$message.error("请输入评论");
         return;
@@ -14395,6 +14435,7 @@ export default {
                 this.commentText = "";
                 this.selectSWorks();
                 this.selectStudent();
+								this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
               })
               .catch((err) => {
                 this.$message.error("评论失败");
@@ -14407,7 +14448,7 @@ export default {
           console.error(err);
         });
     },
-    scoreWork(wid) {
+    scoreWork(wid,sName) {
       if (this.wScore == 0) {
         this.$message.error("请评分");
         return;
@@ -14433,6 +14474,7 @@ export default {
           this.dialogVisibleScore = false;
           this.selectSWorks();
           this.selectStudent();
+					this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
         })
         .catch((err) => {
           this.$message.error("评分失败");
@@ -14457,6 +14499,7 @@ export default {
       this.selectAnswer = { answer: a, stu: w.sName };
       this.isSelect = true;
       this.dialogVisibleSelect = true;
+			this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
     },
     openSen(w, i) {
       this.sentenceList1 = JSON.parse(w.works);
@@ -16388,6 +16431,13 @@ export default {
         this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
         return;
       }
+			let flag = this.courseType==s;
+
+			if(flag){
+				this.insertMemorandum(`进入<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>`)
+			}else{
+				this.insertMemorandum(`进入<span class="variable">阶段${this.courseType+1}${this.navList[this.courseType].dyName?':'+this.navList[this.courseType].dyName:''}</span>→<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>`)
+			}
       this.courseType = s;
       this.navId = i;
       this.taskCount = n;
@@ -17073,6 +17123,7 @@ export default {
           this.pzConText = "";
           this.addPzDialog = false;
           this.selectPz();
+					this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
         })
         .catch((err) => {
           this.$message.error("添加失败");
@@ -17570,6 +17621,7 @@ export default {
       // this.isClickNav = "video" + i;
       this.isClickNav = i;
       this.$forceUpdate();
+			this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
     },
     lookText(i, t) {
       this.isClickNav = "";
@@ -17579,6 +17631,7 @@ export default {
       this.showType = 1;
       // this.isClickNav = "text" + t;
       this.isClickNav = t;
+			this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
     },
     lookTools(i, t) {
       this.chapTools = this.chapToolList[i][t];
@@ -17603,14 +17656,17 @@ export default {
         this.showPDF = true;
         this.dialogVisible3 = true;
       }
+			this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
     },
     openTable(f) {
       this.tableJson = JSON.parse(f.works);
       this.dialogVisibleTable2 = true;
+			this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
     },
     openWord(f) {
       this.tableJson = JSON.parse(f.works);
       this.dialogVisibleTable3 = true;
+			this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
     },
     doUrl(url, i) {
       this.isClickNav = "";
@@ -17633,6 +17689,7 @@ export default {
       this.pptImgUrl1 = f.url;
       this.isClickNav = i;
       this.$forceUpdate();
+			this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
     },
     async downFile(f, i) {
       this.isClickNav = "";
@@ -17667,6 +17724,7 @@ export default {
       }
       // this.isClickNav = "word" + i;
       this.isClickNav = i;
+			this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
     },
     downFileList(i) {
       window.open(this.noImgList[i].url);
@@ -18067,6 +18125,7 @@ export default {
       //   this.questionAnswer = z[0].answer;
       //   this.answerDialogVisible = true;
       // }
+			this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
     },
 
     fastText(p, t) {
@@ -18591,6 +18650,7 @@ export default {
           ].toolChoose[i].videoJson;
         this.dialogVisibleVideo = true;
       }
+			this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
     },
     teacherWorkSubmit(t, i, index, s) {
       this.sStudent = s;

+ 107 - 46
src/components/easy3/studyStudent.vue

@@ -1437,7 +1437,7 @@
                         <div class="workImg" v-if="w.type == 0">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2155,7 +2155,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2230,7 +2230,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2305,7 +2305,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2380,7 +2380,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2455,7 +2455,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <img
@@ -2554,7 +2554,7 @@
                               <!-- @click="commentOther(w, toolIndex, wIndex)" -->
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -2738,7 +2738,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -2807,7 +2807,7 @@
                           <!-- @click="commentOther(w, toolIndex, wIndex)" -->
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2991,7 +2991,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -3303,7 +3303,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -3473,7 +3473,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -3574,7 +3574,7 @@
                           <!-- @click="commentOther(w, toolIndex, wIndex)" -->
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -3723,7 +3723,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -4364,7 +4364,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -4486,7 +4486,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -4610,7 +4610,7 @@
                             <div class="workImg">
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -4658,7 +4658,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -4726,7 +4726,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -4770,7 +4770,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -4894,7 +4894,7 @@
                             <div class="workImg">
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -4942,7 +4942,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -5010,7 +5010,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -5054,7 +5054,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -5178,7 +5178,7 @@
                             <div class="workImg">
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -5226,7 +5226,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -5294,7 +5294,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -5338,7 +5338,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -5461,7 +5461,7 @@
                             <div class="workImg">
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -5509,7 +5509,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -5577,7 +5577,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -5621,7 +5621,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -5727,7 +5727,7 @@
                         <div class="workImg" v-if="w.type == 0">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <img
@@ -5864,7 +5864,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -6433,7 +6433,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -6664,7 +6664,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -6884,7 +6884,7 @@
                               <div class="workImg" v-if="w.type == 0">
                                 <img
                                   :src="w.works"
-                                  @click="previewImg(w.works)"
+                                  @click="previewImg(w.works,w)"
                                   alt
                                 />
                                 <div
@@ -7084,7 +7084,8 @@
                                           userid,
                                           1,
                                           null,
-                                          w.isLikes
+                                          w.isLikes,
+																					w.sName
                                         )
                                       "
                                     >
@@ -8258,7 +8259,7 @@
 				<scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
 			</div>
       <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
-        <scoreZong :courseid="id" :userid="userid"></scoreZong>
+        <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
 			</div>
     </div>
     <div
@@ -9831,7 +9832,8 @@
                     userid,
                     1,
                     null,
-                    commentDetail.isLikes
+                    commentDetail.isLikes,
+										commentDetail.sName
                   )
                 "
                 :src="commentDetail.isLikes == true ? likes : noLikes"
@@ -9958,7 +9960,7 @@
         >
         <el-button
           type="primary"
-          @click="addComment(commentDetail.wid, userid, 2)"
+          @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
           >确 定</el-button
         >
       </div>
@@ -10488,7 +10490,7 @@
         <el-button
           type="primary"
           v-if="courseDetail.userid == userid"
-          @click="scoreWork(commentDetail.wid)"
+          @click="scoreWork(commentDetail.wid,commentDetail.sName)"
           >确 定
         </el-button>
       </span>
@@ -12438,6 +12440,28 @@ export default {
 				this.oidArray = oidArray;
 			})
 		},
+		insertMemorandum(_html){//保存行为操作
+			//variable
+			//btn
+			let params = [{
+				uid:this.userid,
+				courseId:this.id+this.tcid2,
+				content:_html
+			}]
+
+			console.log(params)
+
+			this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
+				if(res.data==1){
+					console.log('保存操作成功')
+				}else{
+					console.log('保存操作失败')
+				}
+			}).catch(e=>{
+				console.log('保存操作失败')
+				console.log(e)
+			})
+		},
     gx(){
       this.$forceUpdate();
     },
@@ -12709,6 +12733,8 @@ export default {
         }, 0);
       }
       this.navId = ""
+			let flag = this.courseType == i;
+			let flag2 = this.taskCount == j
       if (l) {
         this.courseType = i;
         // this.navId = l;
@@ -12716,6 +12742,15 @@ export default {
         this.selectPz();
         this.getHomeWork();
         this.getCourseDetail(2);
+				if(flag){
+					if(flag2){
+						this.insertMemorandum(`选择<span class="variable">工具${w+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
+					}else{
+						this.insertMemorandum(`选择<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>→<span class="variable">工具${w+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
+					}
+				}else{
+					this.insertMemorandum(`选择<span class="variable">阶段${this.courseType+1}${this.navList[this.courseType].dyName?':'+this.navList[this.courseType].dyName:''}</span>→<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>→<span class="variable">工具${w+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
+				}
       }
 
       // var b = this.$refs["bz" + k][0];
@@ -12798,8 +12833,11 @@ export default {
       }
       this.dialogVisibleMember = false;
     },
-    previewImg(url) {
+    previewImg(url,w) {
       this.$hevueImgPreview(url);
+			if(w){
+				this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
+			}
     },
     checkImg(list) {
       if (!list.length) {
@@ -14052,7 +14090,7 @@ export default {
       this.videoDetail = this.playerOptions1;
       this.videoVisible = true;
     },
-    isLikes(wid, uid, t, c, isLikes) {
+    isLikes(wid, uid, t, c, isLikes,sName) {
       if (isLikes == false) {
         let params = [
           {
@@ -14071,6 +14109,7 @@ export default {
             });
             this.selectSWorks();
             this.selectStudent();
+						this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
           })
           .catch((err) => {
             this.$message.error("点赞失败");
@@ -14225,8 +14264,9 @@ export default {
         
         this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
       }
+			this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
     },
-    addComment(wid, uid, t) {
+    addComment(wid, uid, t,detail) {
       if (this.commentText == "") {
         this.$message.error("请输入评论");
         return;
@@ -14262,6 +14302,7 @@ export default {
                 this.commentText = "";
                 this.selectSWorks();
                 this.selectStudent();
+								this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
               })
               .catch((err) => {
                 this.$message.error("评论失败");
@@ -14274,7 +14315,7 @@ export default {
           console.error(err);
         });
     },
-    scoreWork(wid) {
+    scoreWork(wid,sName) {
       if (this.wScore == 0) {
         this.$message.error("请评分");
         return;
@@ -14300,6 +14341,7 @@ export default {
           this.dialogVisibleScore = false;
           this.selectSWorks();
           this.selectStudent();
+					this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
         })
         .catch((err) => {
           this.$message.error("评分失败");
@@ -14324,6 +14366,7 @@ export default {
       this.selectAnswer = { answer: a, stu: w.sName };
       this.isSelect = true;
       this.dialogVisibleSelect = true;
+			this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
     },
     openSen(w, i) {
       this.sentenceList1 = JSON.parse(w.works);
@@ -16241,6 +16284,14 @@ export default {
         this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
         return;
       }
+
+			let flag = this.courseType==s;
+
+			if(flag){
+				this.insertMemorandum(`进入<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>`)
+			}else{
+				this.insertMemorandum(`进入<span class="variable">阶段${this.courseType+1}${this.navList[this.courseType].dyName?':'+this.navList[this.courseType].dyName:''}</span>→<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>`)
+			}
       this.courseType = s;
       this.navId = i;
       this.taskCount = n;
@@ -16929,6 +16980,7 @@ export default {
           this.pzConText = "";
           this.addPzDialog = false;
           this.selectPz();
+					this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
         })
         .catch((err) => {
           this.$message.error("添加失败");
@@ -17426,6 +17478,7 @@ export default {
       // this.isClickNav = "video" + i;
       this.isClickNav = i;
       this.$forceUpdate();
+			this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
     },
     lookText(i, t) {
       this.isClickNav = "";
@@ -17435,6 +17488,7 @@ export default {
       this.showType = 1;
       // this.isClickNav = "text" + t;
       this.isClickNav = t;
+			this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
     },
     lookTools(i, t) {
       this.chapTools = this.chapToolList[i][t];
@@ -17460,14 +17514,17 @@ export default {
         this.showPDF = true;
         this.dialogVisible3 = true;
       }
+			this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
     },
     openTable(f) {
       this.tableJson = JSON.parse(f.works);
       this.dialogVisibleTable2 = true;
+			this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
     },
     openWord(f) {
       this.tableJson = JSON.parse(f.works);
       this.dialogVisibleTable3 = true;
+			this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
     },
     doUrl(url, i) {
       this.isClickNav = "";
@@ -17490,6 +17547,7 @@ export default {
       this.pptImgUrl1 = f.url;
       this.isClickNav = i;
       this.$forceUpdate();
+			this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
     },
     async downFile(f, i) {
       this.isClickNav = "";
@@ -17525,6 +17583,7 @@ export default {
       }
       // this.isClickNav = "word" + i;
       this.isClickNav = i;
+			this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
     },
     downFileList(i) {
       window.open(this.noImgList[i].url);
@@ -17927,6 +17986,7 @@ export default {
       //   this.questionAnswer = z[0].answer;
       //   this.answerDialogVisible = true;
       // }
+			this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
     },
 
     fastText(p, t) {
@@ -18451,6 +18511,7 @@ export default {
           ].toolChoose[i].videoJson;
         this.dialogVisibleVideo = true;
       }
+			this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
     },
     teacherWorkSubmit(t, i, index, s) {
       this.sStudent = s;

+ 1 - 0
src/components/scoreZong/index.vue

@@ -195,6 +195,7 @@ export default {
                 .catch((err) => {
                     console.error(err);
                 });
+						this.$emit('insertMemorandum',`使用<span class="btn">评论</span>功能,添加总评`)
         },
         getList() {
             let params =

+ 83 - 72
src/components/studyStudent.vue

@@ -1406,7 +1406,7 @@
                         <div class="workImg" v-if="w.type == 0">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -1442,7 +1442,7 @@
                           />
                         </div>
                         <div class="workImg" v-if="w.type == 1">
-                          <img :src="word" @click="openFile(w.works)" alt />
+                          <img :src="word" @click="openFile(w.works,w)" alt />
                           <div
                             class="answerScore"
                             v-if="w.score"
@@ -2124,7 +2124,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2199,7 +2199,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2274,7 +2274,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2349,7 +2349,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2424,7 +2424,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <img
@@ -2523,7 +2523,7 @@
                               <!-- @click="commentOther(w, toolIndex, wIndex)" -->
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -2565,7 +2565,7 @@
                               />
                             </div>
                             <div class="workImg" v-if="w.type == 1">
-                              <img :src="word" @click="openFile(w.works)" alt />
+                              <img :src="word" @click="openFile(w.works,w)" alt />
                               <!-- @click="openFile(w.works)" -->
                               <div
                                 class="answerScore"
@@ -2707,7 +2707,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -2776,7 +2776,7 @@
                           <!-- @click="commentOther(w, toolIndex, wIndex)" -->
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -2818,7 +2818,7 @@
                           />
                         </div>
                         <div class="workImg" v-if="w.type == 1">
-                          <img :src="word" @click="openFile(w.works)" alt />
+                          <img :src="word" @click="openFile(w.works,w)" alt />
                           <!-- @click="openFile(w.works)" -->
                           <div
                             class="answerScore"
@@ -2960,7 +2960,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -3272,7 +3272,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -3442,7 +3442,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -3543,7 +3543,7 @@
                           <!-- @click="commentOther(w, toolIndex, wIndex)" -->
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -3589,7 +3589,7 @@
                           style="cursor: pointer"
                           v-if="w.type == 1"
                         >
-                          <img :src="word" @click="openFile(w.works)" alt />
+                          <img :src="word" @click="openFile(w.works,w)" alt />
                           <!-- @click="openFile(w.works)" -->
                           <div
                             class="answerScore"
@@ -3692,7 +3692,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -4333,7 +4333,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -4455,7 +4455,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -4579,7 +4579,7 @@
                             <div class="workImg">
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -4627,7 +4627,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -4695,7 +4695,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -4739,7 +4739,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -4863,7 +4863,7 @@
                             <div class="workImg">
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -4911,7 +4911,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -4979,7 +4979,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -5023,7 +5023,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -5147,7 +5147,7 @@
                             <div class="workImg">
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -5195,7 +5195,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -5263,7 +5263,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -5307,7 +5307,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -5430,7 +5430,7 @@
                             <div class="workImg">
                               <img
                                 :src="w.works"
-                                @click="previewImg(w.works)"
+                                @click="previewImg(w.works,w)"
                                 alt
                               />
                               <div
@@ -5478,7 +5478,7 @@
                                   <div
                                     class="commentImg"
                                     @click="
-                                      isLikes(w.wid, userid, 1, null, w.isLikes)
+                                      isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                     "
                                   >
                                     <img
@@ -5546,7 +5546,7 @@
                         <div class="workImg">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <div
@@ -5590,7 +5590,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -5696,7 +5696,7 @@
                         <div class="workImg" v-if="w.type == 0">
                           <img
                             :src="w.works"
-                            @click="previewImg(w.works)"
+                            @click="previewImg(w.works,w)"
                             alt
                           />
                           <img
@@ -5710,7 +5710,7 @@
                           />
                         </div>
                         <div class="workImg" v-if="w.type == 1">
-                          <img :src="word" @click="openFile(w.works)" alt />
+                          <img :src="word" @click="openFile(w.works,w)" alt />
                           <img
                             class="deleteImg"
                             src="../assets/deleteworks.png"
@@ -5833,7 +5833,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -6402,7 +6402,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -6633,7 +6633,7 @@
                               <div
                                 class="commentImg"
                                 @click="
-                                  isLikes(w.wid, userid, 1, null, w.isLikes)
+                                  isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
                                 "
                               >
                                 <img
@@ -6853,7 +6853,7 @@
                               <div class="workImg" v-if="w.type == 0">
                                 <img
                                   :src="w.works"
-                                  @click="previewImg(w.works)"
+                                  @click="previewImg(w.works,w)"
                                   alt
                                 />
                                 <div
@@ -6899,7 +6899,7 @@
                               <div class="workImg" v-if="w.type == 1">
                                 <img
                                   :src="word"
-                                  @click="openFile(w.works)"
+                                  @click="openFile(w.works,w)"
                                   alt
                                 />
                                 <!-- @click="openFile(w.works)" -->
@@ -7053,7 +7053,8 @@
                                           userid,
                                           1,
                                           null,
-                                          w.isLikes
+                                          w.isLikes,
+																					w.sName
                                         )
                                       "
                                     >
@@ -9776,7 +9777,8 @@
                     userid,
                     1,
                     null,
-                    commentDetail.isLikes
+                    commentDetail.isLikes,
+										commentDetail.sName
                   )
                 "
                 :src="commentDetail.isLikes == true ? likes : noLikes"
@@ -9903,7 +9905,7 @@
         >
         <el-button
           type="primary"
-          @click="addComment(commentDetail.wid, userid, 2)"
+          @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
           >确 定</el-button
         >
       </div>
@@ -10433,7 +10435,7 @@
         <el-button
           type="primary"
           v-if="courseDetail.userid == userid"
-          @click="scoreWork(commentDetail.wid)"
+          @click="scoreWork(commentDetail.wid,commentDetail.sName)"
           >确 定
         </el-button>
       </span>
@@ -12417,15 +12419,16 @@ export default {
 			})
 		},
 		insertMemorandum(_html){//保存行为操作
-			return;
 			//variable
 			//btn
 			let params = [{
 				uid:this.userid,
-				courseId:this.id,
+				courseId:this.id+this.tcid2,
 				content:_html
 			}]
 
+			console.log(params)
+
 			this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
 				if(res.data==1){
 					console.log('保存操作成功')
@@ -12713,6 +12716,10 @@ export default {
         this.courseType = i;
         // this.navId = l;
         this.taskCount = j;
+				
+        this.selectPz();
+        this.getHomeWork();
+        this.getCourseDetail(2);
 				if(flag){
 					if(flag2){
 						this.insertMemorandum(`选择<span class="variable">工具${w+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
@@ -12722,9 +12729,6 @@ export default {
 				}else{
 					this.insertMemorandum(`选择<span class="variable">阶段${this.courseType+1}${this.navList[this.courseType].dyName?':'+this.navList[this.courseType].dyName:''}</span>→<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>→<span class="variable">工具${w+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
 				}
-        this.selectPz();
-        this.getHomeWork();
-        this.getCourseDetail(2);
       }
 
       // var b = this.$refs["bz" + k][0];
@@ -12807,9 +12811,11 @@ export default {
       }
       this.dialogVisibleMember = false;
     },
-    previewImg(url) {
-			this.$message.info('查看作业-图片')
+    previewImg(url,w=null) {
       this.$hevueImgPreview(url);
+			if(w){
+				this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
+			}
     },
     checkImg(list) {
       if (!list.length) {
@@ -14062,7 +14068,7 @@ export default {
       this.videoDetail = this.playerOptions1;
       this.videoVisible = true;
     },
-    isLikes(wid, uid, t, c, isLikes) {
+    isLikes(wid, uid, t, c, isLikes,sName) {
       if (isLikes == false) {
         let params = [
           {
@@ -14081,6 +14087,7 @@ export default {
             });
             this.selectSWorks();
             this.selectStudent();
+						this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
           })
           .catch((err) => {
             this.$message.error("点赞失败");
@@ -14134,8 +14141,6 @@ export default {
         .catch(() => {});
     },
     async commentOther(w, toolIndex, wIndex, gindex, gid) {
-			this.$message.info("预览作业")
-			console.log(w,1)
       this.commentIndexJson = {
         toolIndex: toolIndex,
         wIndex: wIndex,
@@ -14188,8 +14193,7 @@ export default {
       }
     },
     async openScore(w, index) {
-			this.$message.info("预览作业")
-			console.log(w,2)
+			
       this.wScore = 0;
       this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
       this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
@@ -14237,8 +14241,10 @@ export default {
         
         this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
       }
+			this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
     },
-    addComment(wid, uid, t) {
+    addComment(wid, uid, t,detail) {
+			
       if (this.commentText == "") {
         this.$message.error("请输入评论");
         return;
@@ -14274,6 +14280,7 @@ export default {
                 this.commentText = "";
                 this.selectSWorks();
                 this.selectStudent();
+								this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
               })
               .catch((err) => {
                 this.$message.error("评论失败");
@@ -14286,7 +14293,7 @@ export default {
           console.error(err);
         });
     },
-    scoreWork(wid) {
+    scoreWork(wid,sName) {
       if (this.wScore == 0) {
         this.$message.error("请评分");
         return;
@@ -14312,6 +14319,7 @@ export default {
           this.dialogVisibleScore = false;
           this.selectSWorks();
           this.selectStudent();
+					this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
         })
         .catch((err) => {
           this.$message.error("评分失败");
@@ -14319,8 +14327,7 @@ export default {
         });
     },
     openXz(w, i) {
-			this.$message.info("预览作业")
-			console.log(w,3)
+			
       this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
         .taskJson[this.taskCount].toolChoose[i].selectJson
         ? JSON.parse(
@@ -14338,17 +14345,18 @@ export default {
       this.selectAnswer = { answer: a, stu: w.sName };
       this.isSelect = true;
       this.dialogVisibleSelect = true;
+			this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
     },
     openSen(w, i) {
-			this.$message.info("预览作业")
-			console.log(w,4)
+			console.log("openSen")
+			// this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
       this.sentenceList1 = JSON.parse(w.works);
       this.sentenceList1.stuName = w.sName;
       this.dialogVisibleSentence1 = true;
     },
     openPj(w, toolindex) {
-			this.$message.info("预览作业")
-			console.log(w,5)
+			console.log("openPJ")
+			// this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
       this.isStar = true;
       this.eScore = JSON.parse(w);
       this.rateJson =
@@ -16962,12 +16970,13 @@ export default {
           this.pzConText = "";
           this.addPzDialog = false;
           this.selectPz();
+					this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
         })
         .catch((err) => {
           this.$message.error("添加失败");
           console.error(err);
         });
-				this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
+				
     },
     setReplyIndex(id, i) {
       this.replyIndex = i;
@@ -17476,7 +17485,7 @@ export default {
       this.chapTools = this.chapToolList[i][t];
       this.dialogVisible2 = true;
     },
-    async openFile(f) {
+    async openFile(f,w) {
       this.pptImgUrl = "";
       var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
       if (
@@ -17495,6 +17504,7 @@ export default {
         this.showPDF = true;
         this.dialogVisible3 = true;
       }
+			this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
     },
     openTable(f) {
       this.tableJson = JSON.parse(f.works);
@@ -17502,10 +17512,9 @@ export default {
 			this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
     },
     openWord(f) {
-			this.$message.info("预览作业")
-			console.log(f,7)
       this.tableJson = JSON.parse(f.works);
       this.dialogVisibleTable3 = true;
+			this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
 	
     },
     doUrl(url, i) {
@@ -17917,6 +17926,7 @@ export default {
         });
     },
     openTools(t, i, index, c, sName,id) {
+			
       var z = JSON.parse(c);
       this.noteName = sName;
       if (t == 4) {
@@ -17966,6 +17976,7 @@ export default {
       //   this.questionAnswer = z[0].answer;
       //   this.answerDialogVisible = true;
       // }
+			this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
     },
 
     fastText(p, t) {
@@ -19034,7 +19045,7 @@ export default {
       x.send();
     },
     downloadFile(url) {
-			this.$message.info("查看作业-下载文件")
+			// this.$message.info("查看作业-下载文件")
       var credentials = {
         accessKeyId: "AKIATLPEDU37QV5CHLMH",
         secretAccessKey: "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",