Browse Source

fix(hiTeachSideMenu): remove all hard-coded strings

terry 2 months ago
parent
commit
e3b9d64e61
18 changed files with 7 additions and 2732 deletions
  1. 0 12
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/content/index.vue
  2. 0 24
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/bank/ExerciseList.vue
  3. 0 2
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/bank/PaperDownload.vue
  4. 0 24
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/bank/TestPaperList.vue
  5. 0 205
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/bank/index.vue
  6. 1 1
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/components/BaseChild.vue
  7. 1 3
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/components/BaseExerciseList.vue
  8. 2 2
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/components/BaseImport.vue
  9. 0 78
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/components/BasePasteTool.vue
  10. 0 1
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/CreateExercises.vue
  11. 0 22
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/CreatePaper.vue
  12. 0 138
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/DfPage.less
  13. 0 1602
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/DfPage.vue
  14. 0 3
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/TestPaper.vue
  15. 0 3
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/htTestPaper.vue
  16. 1 16
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/index.vue
  17. 2 595
      TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/syllabus/index.vue
  18. 0 1
      TEAMModelOS/ClientApp/src/view/hiTeachSideMenu/index.vue

+ 0 - 12
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/content/index.vue

@@ -113,18 +113,6 @@
           </div>
 
           <div class="display: flex;">
-              <!--<span v-if="$access.can('admin.*|content-upd') || routerScope == 'private'" class="action-btn-wrap" @click="delFileBatch">
-                <Icon type="md-trash" class="toggle-btn-icon" />
-                {{$t('teachContent.delBatch')}}
-              </span>
-              <span v-if="$access.can('admin.*|content-upd') || routerScope == 'private'" @click="showUpload" class="action-btn-wrap">
-                <Icon type="md-cloud-upload" class="toggle-btn-icon" size="16" />
-                {{$t('teachContent.btnUpload')}}
-              </span> -->
-              <span @click="onWxtClick" class="action-btn-wrap" v-if="hasWxtAuth && !isGlobalSite">
-                <Icon type="md-cloud-upload" class="toggle-btn-icon" size="16" />
-                网校通
-              </span>
               <span @click="changeShowType()" :class="activeType === 'image' || activeType === 'video' ? 'action-btn-wrap' : 'disable-text-icon action-btn-wrap'">
                 <Icon v-show="showType" type="md-list" class="toggle-btn-icon" size="16" />
                 <Icon v-show="!showType" type="md-grid" class="toggle-btn-icon" />

+ 0 - 24
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/bank/ExerciseList.vue

@@ -96,12 +96,6 @@
           </div>
         </div>
       </div>
-      <!--<div class="action-tools" style="display:flex;align-items: center;">-->
-        <!-- <div class="action-tool" v-if="isComponent">
-					<Input v-model="searchVal" placeholder="输入关键词搜索试题..." style="width: 300px;" clearable search @on-search="doSearch"></Input>
-				</div> -->
-        <!--<Checkbox v-model="isSelectAll" @on-change="onSelectAll" v-if="(($access.can('admin.*||exercise-upd') ||  (filterOrigin !== schoolCode)))">{{ $t('evaluation.choosePageItems') }}</Checkbox>
-      </div>-->
         <span style="margin-left:20px">{{ $t('evaluation.exerciseList.totalTip1') }}<span style="font-size: 18px;color: #ff0206;margin: 0 10px;font-weight: bold;">{{ totalNum }}</span>{{ $t('evaluation.exerciseList.unit') }}</span>
       <div>
       </div>
@@ -473,24 +467,6 @@ export default {
       })
     },
 
-    /* 搜索试题 */
-    doSearch() {
-      if (!this.searchVal.trim()) {
-        this.$Message.warning('关键词不能为空!')
-        return
-      }
-      this.$api.newEvaluation.SearchItem({
-        "code": this.filterOrigin,
-        "scope": this.curScope,
-        "researchKey": this.searchVal
-      }).then(res => {
-        let list = res.items
-        this.totalNum = list.length;
-        this.originData = list;
-        this.pageChange(1);
-      })
-    },
-
     /* 获取题库数量统计数据 */
     getFilterCount() {
       return new Promise((r, j) => {

+ 0 - 2
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/bank/PaperDownload.vue

@@ -278,7 +278,6 @@ export default {
       const imageList = document.querySelectorAll("img");
       for (let i = 0; i < imageList.length; i++) {
         if (imageList[i].className === 'xkw-math-img') {
-          this.$Message.warning('学科网来源的试卷暂不支持下载!')
           return
         }
       }
@@ -422,7 +421,6 @@ export default {
               that.printMode = 'A4'
             }
           }).catch(err => {
-            this.$Message.warning('试卷数据异常,无法生成!')
             console.log(err)
             this.isDownloading = false
           }).catch(err => {

+ 0 - 24
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/bank/TestPaperList.vue

@@ -72,10 +72,6 @@
               1 ? $t('evaluation.paperList.sortByOrder') : $t('evaluation.paperList.sortByType') }}</span></span>
             <span class="info-item">{{ $t('evaluation.updateTime') }}:<span class="info-bold">{{
               $tools.formatTime(paper.createTime) || 0 }} </span></span>
-            <!-- <span class="info-item">
-							<span>标签:</span>
-							<span class="info-bold" v-for="(tag,tagIndex) in paper.tags"><Tag color="blue">{{ tag }}</Tag></span>
-						</span> -->
           </div>
           <div class="paper-item-tools" v-if="!chooseModel">
             <span class="paper-item-tools-edit" @click.stop="onPreviewPaper(paper)" style="cursor: pointer;">
@@ -141,27 +137,7 @@
           <BasePointPie :echartsData="evaluationInfo"></BasePointPie>
         </div>
       </div>
-
-      <!-- 预览答题卡部分 -->
-      <!-- <div class="pl-answersheet-wrap animated fadeIn" v-if="isShowSheet">
-				<AnswerSheet></AnswerSheet>
-			</div> -->
     </div>
-
-    <!-- <Modal v-model="isShowDownLoad" width="950px" title="下载试卷" class-name="preview-modal">
-			<DownloadPaper :paper="fullPaperJson" ref="dpRef"></DownloadPaper>
-			<div slot="footer">
-				<Button @click="">取消</Button>
-				<Button type="success" @click="onDownloadPaper">下载试卷PDF</Button>
-			</div>
-		</Modal> -->
-
-    <!-- 		<Modal v-model="isShowSheet" width="800px"  title="答题卡" class-name="preview-modal" >
-			<div v-if="isShowSheet">
-				<AnswerSheet></AnswerSheet>
-			</div>
-		</Modal> -->
-
   </div>
 </template>
 <script>

+ 0 - 205
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/bank/index.vue

@@ -1,8 +1,5 @@
 <template>
     <div class="bank-container" ref="bankContainer">
-        <!-- <div class="back-to-top flex-col-center" :title="$t('evaluation.backToTop')" @click="onBackToTop">
-            <Icon type="ios-arrow-up" />
-        </div> -->
         <Tabs :value="tabName" name="listTab" @on-click="onTabClick" :animated="false" style="position: relative;">
 					<button class="editOnExternalBtn" @click="editOnExternal">
               <Icon type="md-create" size="20" color="#42a9f0"/>
@@ -68,46 +65,6 @@
 			onItemCheckChange(arr) {
 				this.checkItemArr = arr;
 			},
-			/* 批量删除 */
-			doBatchDelete() {
-				let exListVm = this.$refs.exList;
-
-				this.$Modal.confirm({
-					title: this.$t("evaluation.newExercise.modalTip"),
-					content: this.$t("stuAccount.tips2Content3"),
-					onOk: () => {
-						let ids = this.checkItemArr.map((i) => i.id);
-						let item = this.checkItemArr[0];
-						exListVm.dataLoading = true;
-						this.$api.newEvaluation
-							.DeleteExamItem({
-								ids: ids,
-								code: item.code,
-								scope: item.scope
-							})
-							.then((res) => {
-								if (res.code == 200) {
-									exListVm.isSelectAll = false;
-									exListVm.selectedArr = [];
-									exListVm.doFilter();
-									this.checkItemArr = [];
-									this.$Message.success(this.$t("evaluation.deleteSuc"));
-								} else {
-									this.$Message.warning(this.$t("evaluation.deleteFail"));
-									exListVm.dataLoading = false;
-								}
-							})
-							.catch((err) => {
-								console.log(err);
-								this.$Message.warning(this.$t("evaluation.deleteFail"));
-								exListVm.dataLoading = false;
-							});
-					}
-				});
-			},
-			onBackToTop() {
-			//	this.$refs.bankContainer.scrollIntoView();
-			},
 			onTabClick(val) {
 				this.currentTab = val;
 				this.$router.replace({
@@ -127,145 +84,7 @@
 				this.isShowBackList = false;
 				this.$refs.bankContainer.scrollIntoView();
 			},
-			/* 编辑当前预览的试卷 */
-			onEditPaper() {
-				this.$refs.paperList.goToPaper(this.$refs.paperList.curPaper);
-			},
-
-			/** 切换全部展开与折叠 */
-			onHandleToggle() {
-				this.$refs.exList.onHandleToggle(this.isAllOpen);
-				this.isAllOpen = !this.isAllOpen;
-			},
-
-			/* 跳转到分享页面 */
-			goShare() {
-				this.$router.push({
-					name: "shareCenter",
-					params: {
-						tabName: this.currentTab
-					}
-				});
-			},
-			/* 确认是否允许携带手机号进行注册 */
-			doConfirmAgree() {
-				return new Promise((r, j) => {
-					this.$Modal.confirm({
-						title: "授权提示",
-						content: "检测到您暂未绑定学科网账号,是否允许以醍摩豆云平台关联手机号进行认证?",
-						okText: "允许",
-						cancelText: "拒绝",
-						onOk: () => {
-							r(1);
-						},
-						onCancel: () => {
-							r(0);
-						}
-					});
-				});
-			},
-
-			/* 跳转学科网 */
-			doXkwAuth() {
-				this.$api.auth.checkBind({}).then(async (res) => {
-					// 判断是否已经绑定学科网
-					let isBind = res.auth.find((i) => i.type === "xkw");
-					// 如果没有绑定 则询问用户是否允许携带手机号进行注册
-					let agree = isBind ? 1 : await this.doConfirmAgree();
-					// 判断资源类型
-					let module = this.currentTab === "exercise" ? "item" : "paper";
-					// 存到本地
-					localStorage.setItem("xkw_module", module);
-					// 发送授权请求
-					this.$api.auth
-						.xkwOauth({
-							module: module,
-							agree: agree
-						})
-						.then((res) => {
-							window.open(res.redirect);
-						});
-				});
-			},
-			// 跳转页面,进行多分题库挑选
-			dodfAuth() {
-				this.$router.push({
-					name: this.isSchool ? 'schoolDf' : 'privateDf',
-				})
-			},
 
-			/**
-			 * exList的collapseList变化
-			 * @param list
-			 */
-			onToggleChange(list) {
-				this.isAllOpen = list.length !== 0;
-			},
-
-			/** 返回创建试题页面 */
-			goCreateExercise() {
-				this.$router.push({
-					name: this.$route.name === "personalBank" ? "newPrivateExercise" : "newSchoolExercise",
-					params: {
-						scope: this.$route.name === "personalBank" ? "private" : "school"
-					}
-				});
-			},
-			/* 快速组卷纸本测验 */
-			goPaperExam() {
-				this.paperExamModal = true;
-				this.fullPaperJson = null
-			},
-
-			goXkwPick() {
-				this.$api.auth
-					.xkwOauth({
-						module: "ezj",
-						agree: 1
-					})
-					.then((res) => {
-						this.$router.push({
-							name: "xkwPage",
-							params: {
-								iframeSrc: res.redirect
-							}
-						});
-					});
-			},
-
-			/** 前往组卷页面 */
-			goCreatePaper(type, isXkwMode) {
-				if (isXkwMode) {
-					// 发送授权请求
-					this.$api.auth
-						.xkwOauth({
-							module: "ezj",
-							agree: 1
-						})
-						.then((res) => {
-							this.$router.push({
-								name: this.$route.name === "personalBank" ? "newPrivatePaper" : "newSchoolPaper",
-								params: {
-									scope: this.$route.name === "personalBank" ? "private" : "school",
-									type: type,
-									isXkwMode: true,
-									iframeSrc: res.redirect,
-									isFromItemBank: this.currentTab === "exercise"
-								}
-							});
-						});
-				} else {
-					this.$router.push({
-						name: this.$route.name === "personalBank" ? "newPrivatePaper" : "newSchoolPaper",
-						params: {
-							scope: this.$route.name === "personalBank" ? "private" : "school",
-							type: type,
-							isXkwMode: isXkwMode,
-							isFromItemBank: this.currentTab === "exercise"
-						}
-					});
-				}
-			},
 			editOnExternal() {
 				const isSchool = this.$route.path.includes('school');
 				const path = `/home/evaluation/${isSchool ? 'schoolBank' : 'personalBank'}`;
@@ -281,7 +100,6 @@
 			}
 		},
 		mounted() {
-
 			if (this.$route.params.tabName) {
 				this.currentTab = this.$route.params.tabName;
 				this.tabName = this.$route.params.tabName;
@@ -303,29 +121,6 @@
 			isSchool() {
 				return this.$route.name === "schoolBank";
 			},
-			hasSchool() {
-				return this.$store.state.userInfo.hasSchool;
-			},
-			paperScrollTop() {
-				return this.$store.state.totalAnalysis.paperScrollTop;
-			},
-			/* 判断是否为国际站 */
-			inGlobalSite() {
-				// return localStorage.getItem("location") === "Global";
-				return this.$store.state.config.srvAdr === 'Global'
-			},
-			hasXkwAuth() {
-				// if (localStorage.school_profile) {
-				//   let schoolProfile = JSON.parse(decodeURIComponent(localStorage.school_profile, "utf-8"))
-				//   return schoolProfile.schoolShows && schoolProfile.schoolShows.find(i => i.type === 'xkw')
-				// } else {
-				//   return false
-				// }
-				return true;
-			},
-			isTestSite() {
-				return (this.$store.state.config.srvAdrType === "test" && this.$store.state.config.srvAdr === 'China') || ((this.$store.state.config.srvAdrType === "product" || this.$store.state.config.srvAdrType === "rc") && (this.$store.state.userInfo.schoolCode === "habook" || this.$store.state.userInfo.schoolCode === "hbcn") && this.$store.state.config.srvAdr === 'China')
-			}
 		},
 		beforeRouteLeave(to, from, next) {
 			// 如果是从试卷库预览跳转到生成答题卡 则需要保留试卷库页面的缓存状态

+ 1 - 1
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/components/BaseChild.vue

@@ -7,7 +7,7 @@
           {{$t('evaluation.editItem')}}{{$t('evaluation.child')}}
         </div>
         <div class="child-tools-t flex-row-center" v-if="isChangePaper" @click.stop="handleChildEdit(item,index)">
-          调整{{$t('evaluation.child')}}
+          {{$t('evaluation.child')}}
         </div>
         <div class="child-tools-t flex-row-center" v-if="canFix" @click.stop="handleFixChild(item,index)">
           {{ $t('evaluation.fixTip1') }}

+ 1 - 3
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/components/BaseExerciseList.vue

@@ -18,8 +18,6 @@
 				<div v-for="(item, index) of typeItem.list" :key="index" :class="['exercise-item', isError(item.id) ? 'exercise-item-error' : '']" @mouseenter="exerciseMouseover($event)" @mouseleave="exerciseMouseleave($event)" :data-id="item.id">
 					<!-- 工具栏部分 -->
 					<div class="item-tools-wrap">
-						<!-- <div class="item-tools-t flex-row-center" v-show="isShowTools" @click.stop="handleSetScore(item,exerciseList.indexOf(item),typeItem.list,index)">
-							<Icon type="ios-list-box-outline" />配分</div> -->
 						<div class="item-tools-t flex-row-center" v-show="isShowTools && !isExamPaper" @click.stop="handleToolEdit(typeItem.list, item, index)"><Icon type="md-create" />{{ $t("evaluation.editItem") }}</div>
 						<div class="item-tools-t flex-row-center" v-show="isChangePaper && item.type !== 'compose'" @click.stop="handleToolEdit(typeItem.list, item, index)"><Icon type="md-create" />{{ $t('activity.adjust') }}</div>
 						<div class="item-tools-t flex-row-center" v-show="isAutoMode" @click.stop="handleToolChange(typeItem.list, item, index)"><Icon type="md-repeat" />{{ $t("evaluation.exchange") }}</div>
@@ -316,7 +314,7 @@
 										fontSize: isGroup ? "16px" : "14px"
 									}
 								},
-								isGroup ? that.$tools.getChineseByNum(params.row.groupIndex + 1) + "、" + params.row.type + "(" + params.row.score + ")" : params.row.no
+								isGroup ? that.$tools.getChineseByNum(params.row.groupIndex + 1) + "、" + params.row.type + "(" + params.row.score + ")" : params.row.no
 							);
 						},
 						width: 100

+ 2 - 2
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/components/BaseImport.vue

@@ -141,8 +141,8 @@ export default {
     async onTemplateSelect(val) {
       let curFile = this.downloadUrls[val]
       const downloadRes = async () => {
-        let response = await fetch(this.hostName + curFile.url); // 内容转变成blob地址
-        let blob = await response.blob(); // 创建隐藏的可下载链接
+        let response = await fetch(this.hostName + curFile.url);
+        let blob = await response.blob();
         let objectUrl = window.URL.createObjectURL(blob);
         let a = document.createElement('a');
         a.href = objectUrl;

+ 0 - 78
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/components/BasePasteTool.vue

@@ -1,78 +0,0 @@
-<template>
-	<div>
-		<div style="display: flex;justify-content: space-between;align-items: center;padding: 0 10px;">
-			<span style="font-size: 14px;margin-left: 10px;">
-				<span v-if="isHiToolAlive" style="color: #10abe7;">
-					* 已开启醍摩豆教学助手,可以获得更好图文粘贴体验
-				</span>
-				<span v-else style="color: #e72f32;">
-					* 检测到您暂未开启醍摩豆教学助手,启动后可获得更好图文粘贴体验<span style="margin-left: 5px;text-decoration: underline;color: #0074D9;cursor: pointer;" @click="openHiTool">启动</span>
-				</span>
-			</span>
-			<Button type="info" @click="parseHtml">一键生成试题</Button>
-		</div>
-		
-		<div style="margin-top: 10px;">
-			<div style="margin:  0 10px;">
-				<div ref="editor" style="text-align:left" id="pasteEditor"></div>
-			</div>
-		</div>
-	</div>
-</template>
-<script>
-	import axios from 'axios'
-	import E from 'wangeditor'
-	export default {
-		data() {
-			return {
-				stemContent: '',
-				stemEditor: null,
-				answerContent: '',
-				answerEditor: null,
-				isHiToolAlive:false
-			}
-		},
-		methods:{
-			/* 启动HiTool */
-			openHiTool(){
-				window.open("hitools://")
-			},
-			/* 检测是否启动了HiTool */
-			async isToolAlive(){
-				this.isHiToolAlive = await this.$editorTools.checkTools()
-			},
-			/* 解析HTML成试题数据 */
-			parseHtml(){
-				let html = this.stemEditor.txt.html()
-				let noUseTag = '<o:p></o:p>'
-				html = this.replaceAll(html,noUseTag,'')
-				html = this.replaceAll(html,'<font ','<span ')
-				html = this.replaceAll(html,'</font>','</span>')
-				this.$api.SaveAnalyzeHtml({ html : html }).then(response => {
-					if(response.tests.length){
-						this.$emit('addFinish',response.tests)
-					}else{
-						this.$Message.warning('试题生成失败!请检查粘贴内容是否完整!')
-					}
-				}).catch(e => {
-					this.$Message.error('试题生成失败!')
-				})
-			},
-			/* 全局替换 */
-			replaceAll(str,preVal,replaceVal){
-			    return str.replace(new RegExp(preVal,'g'),replaceVal);
-			}
-		},
-		mounted() {
-			this.isToolAlive()
-			let stemEditor = new E(this.$refs.editor)
-			stemEditor.config.onchange = (html) => {
-				this.stemContent = html
-			}
-			this.$editorTools.initMyEditor(stemEditor, this)
-			stemEditor.config.height = 600
-			stemEditor.create()
-			this.stemEditor = stemEditor
-		},
-	}
-</script>

+ 0 - 1
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/CreateExercises.vue

@@ -591,7 +591,6 @@ export default {
             r(res);
           } else {
             j(res);
-            this.$Message.error("服务器繁忙!");
             this.saveLoading = false;
           }
         });

+ 0 - 22
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/CreatePaper.vue

@@ -16,11 +16,6 @@
         <span style="margin-left: 8px;" v-if="isMarkMode">
             <Tag color="cyan">{{ $t('evaluation.markMode.tip4') }}</Tag>
           </span>
-        <!-- <Checkbox v-model="markModel" style="margin-left: 20px;" v-if="isSchool"> 
-          <Tooltip :content="`因應閱卷格式,題序僅依照題型排序,並且不支援含綜合題之試卷`" class="common-toolTip" placement="bottom-end" max-width="200">
-						 <span>阅卷专用</span>
-					</Tooltip>
-        </Checkbox> -->
         <Checkbox v-model="isGeneratePaper" v-if="evaluationInfo.createType === 'import'" style="margin-left: 20px;"
           @on-change="onModeChange('paper')"> {{ $t('evaluation.composePaper') }}
         </Checkbox>
@@ -251,7 +246,6 @@ export default {
           if (res.itemInfos) {
             r(res)
           } else if (res.error === 403) {
-            this.$Message.warning('当前账号学科网授权已过期!组卷失败!')
             r(null)
           }
         }).catch(err => {
@@ -265,22 +259,6 @@ export default {
         this.onImportFinish({
           list: res.itemInfos,
         })
-        let curPeriodName = this.schoolInfo.period[this.evaluationInfo.paperPeriod].name
-        let curSubjectName = this.subjectList[this.evaluationInfo.paperSubject].name
-        if (curPeriodName !== res.periodName) {
-          this.$Notice.info({
-            title: '温馨提示',
-            desc: '题目来源学段与当前所选试题学段不一致,建议您进行调整!',
-            duration: 10
-          });
-        }
-        if (curSubjectName !== res.subjectName) {
-          this.$Notice.info({
-            title: '温馨提示',
-            desc: '题目来源科目与当前所选试题科目不一致,建议您进行调整!',
-            duration: 10
-          });
-        }
       }
     },
     /* 学段切换 */

+ 0 - 138
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/DfPage.less

@@ -1,138 +0,0 @@
-@main-bgColor: rgb(40, 40, 40); //主背景颜色
-@borderColor: var(--border-color);
-@primary-textColor: var(--primary-text-color); //文本主颜色
-@second-textColor: #a5a5a5; //文本副级颜色
-@primary-fontSize: 14px;
-@second-fontSize: 16px;
-
-.df-container {
-    width: 100%;
-    height: 100%;
-    position: relative;
-
-    .new-exercise-header {
-        width: 100%;
-        height: 45px;
-        border-bottom: 1px solid @borderColor;
-        margin-bottom: 15px;
-        display: flex;
-        justify-content: space-between;
-        align-items: center;
-
-        .ev-title {
-            height: 45px;
-            line-height: 45px;
-            color: @primary-textColor;
-            padding-left: 20px;
-            font-size: 16px;
-            display: inline-flex;
-        }
-
-        .btn-save {
-            margin-top: 6px;
-            margin-right: 20px;
-            height: 28px;
-            line-height: 28px;
-        }
-    }
-
-    .exercise-box {
-        display: flex;
-        height: calc(100% - 60px);
-
-        .point-tree {
-            width: calc(30% - 20px);
-            height: 800px;
-            margin: 0 10px;
-            background: #fff;
-
-            .el-tree-node__label {
-                font-size: 16px;
-            }
-        }
-    }
-
-    .create-body {
-        width: 70%;
-        margin: 0px auto;
-        height: 800px;
-        // display: flex;
-
-        .ivu-page {
-            display: flex;
-            flex-direction: row;
-            justify-content: center;
-            margin: 20px 0;
-        }
-
-        .filter-wrap {
-            margin-bottom: 15px;
-        }
-
-        .content-wrap {
-            position: relative;
-            width: 100%;
-            height: auto;
-            display: flex;
-            flex-direction: column;
-
-            .exercise-item {
-                position: relative;
-                width: 100%;
-                height: auto;
-                padding: 10px 20px 10px 20px;
-                margin-bottom: 10px;
-                font-size: 14px;
-                background: #fff;
-                border: 2px solid transparent;
-                cursor: pointer;
-
-                &:hover {
-                    .item-tools-bind {
-                        display: unset;
-                    }
-                }
-
-                .item-tools-t {
-                    height: 100%;
-                    padding: 0 15px;
-                    float: left;
-                    color: white;
-                    cursor: pointer;
-                    font-size: 14px;
-                }
-            }
-        }
-
-        .no-data-text {
-            width: 100%;
-            padding: 30px;
-            background: #fff;
-            display: flex;
-            flex-direction: column;
-            justify-content: center;
-            align-items: center;
-            margin-top: 10px;
-            font-size: 16px;
-        }
-    }
-
-    .question-shopping-car {
-        position: fixed;
-        right: 50px;
-        bottom: 27px;
-        z-index: 1;
-
-        .ivu-poptip-popper {
-            width: 360px !important;
-        }
-    }
-
-    /*横向垂直水平居中*/
-    .flex-row-center {
-        display: flex;
-        flex-direction: row;
-        justify-content: center;
-        align-items: center;
-    }
-}

File diff suppressed because it is too large
+ 0 - 1602
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/DfPage.vue


+ 0 - 3
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/TestPaper.vue

@@ -70,9 +70,6 @@
           <BaseCreateChild @addFinish="onAddNewFinish" ref="newEdit" v-if="addNewModal" :curPeriodIndex="paperInfo.paperPeriod" :curSubjectIndex="paperInfo.paperSubject">
           </BaseCreateChild>
         </TabPane>
-        <!-- <TabPane :label="$t('evaluation.quickCreate')" name="name2" tab="newExerciseTab" v-if="isDevEnv">
-          <BasePasteTool v-if="addNewModal" @addFinish="onAddNewFinish"></BasePasteTool>
-        </TabPane> -->
         <TabPane :label="$t('evaluation.cpTip1')" name="name3" tab="newExerciseTab">
           <ManualCreate ref="bankPicker" :subjectCode="subjectCode" :periodCode="periodCode" :gradeCode="gradeCode" :isMarkModel="isMarkMode"></ManualCreate>
         </TabPane>

+ 0 - 3
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/htTestPaper.vue

@@ -66,9 +66,6 @@
           <BaseCreateChild @addFinish="onAddNewFinish" ref="newEdit" v-if="addNewModal" :curPeriodIndex="paperInfo.paperPeriod" :curSubjectIndex="paperInfo.paperSubject">
           </BaseCreateChild>
         </TabPane>
-        <!-- <TabPane :label="$t('evaluation.quickCreate')" name="name2" tab="newExerciseTab" v-if="isDevEnv">
-          <BasePasteTool v-if="addNewModal" @addFinish="onAddNewFinish"></BasePasteTool>
-        </TabPane> -->
         <TabPane :label="$t('evaluation.cpTip1')" name="name3" tab="newExerciseTab">
           <ManualCreate ref="bankPicker" :subjectCode="subjectCode" :periodCode="periodCode" :gradeCode="gradeCode" :isMarkModel="isMarkMode"></ManualCreate>
         </TabPane>

+ 1 - 16
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/evaluation/index/index.vue

@@ -15,19 +15,6 @@
   export default {
     data() {
       return {
-        syllabusTitle: ' 评测模块',
-        identitydata: [
-          { 'id': 1, 'name': '成都紫藤小学', 'rolename': '管理员', status: '1' },
-          { 'id': 2, 'name': '成都七中小学', 'rolename': '班主任', status: '2' }
-        ],
-        treeData: [],
-        schoolInfo: {},
-        evSubjectList: [],
-        evPeriodsList: [],
-        evVolumesList: [],
-        evSubjectSelect: '',
-        evPeriodSelect: '',
-        evVolumeSelect: '',
         dataLoading: false
       }
     },
@@ -41,10 +28,8 @@
             })
       },
 	  // 判断容器滚动距离
-	  handleScroll(vertical, horizontal, nativeEvent) {
+	  handleScroll(vertical) {
 		this.$EventBus.$emit('evScroll',vertical.scrollTop)
-		// let anchorBarDom = document.getElementById('AnchorBar')
-		// console.log(anchorBarDom.getBoundingClientRect().top)
 	  },
 
       

File diff suppressed because it is too large
+ 2 - 595
TEAMModelOS/ClientApp/src/components/hiTeachSideMenu/syllabus/index.vue


+ 0 - 1
TEAMModelOS/ClientApp/src/view/hiTeachSideMenu/index.vue

@@ -74,7 +74,6 @@
             let time_now = new Date().getTime();
             if (webEndTime && time_now > webEndTime) {
                 this.loginOut();
-                sessionStorage.setItem("loginOut", "Home检查长时间未操作");
             }
             this.$store.dispatch("user/checkSchoolCode"); // 設定登入成功的學校簡碼
             this.$store.dispatch("user/checkUserProfile"); // 檢查使用者個人詳細資訊