Pārlūkot izejas kodu

Merge branch 'develop3.0-tmd' of http://106.12.23.251:10080/TEAMMODEL/TEAMModelOS into develop3.0-tmd

zhouj1203@hotmail.com 4 gadi atpakaļ
vecāks
revīzija
035f849502

+ 2 - 1
TEAMModelOS/ClientApp/src/locale/lang/zh-CN/survey.js

@@ -100,6 +100,7 @@ export default {
 	barTitle:'选项结果分布图',
 	noMatchData:'未匹配数据',
 	getFileFailTip:'数据读取失败',
-	backToRecord:'返回活动记录'
+	backToRecord:'返回活动记录',
+	noFoundAc:'未查找到指定ID活动,请重新选择!'
 	
 }

+ 2 - 1
TEAMModelOS/ClientApp/src/locale/lang/zh-TW/survey.js

@@ -100,5 +100,6 @@ export default {
 	barTitle:'選項結果分佈圖',
 	noMatchData:'未匹配數據',
 	getFileFailTip:'數據讀取失敗',
-	backToRecord:'返回活動記錄'
+	backToRecord:'返回活動記錄',
+	noFoundAc:'未查找到指定ID活動,請重新選擇!'
 }

+ 8 - 2
TEAMModelOS/ClientApp/src/view/newcourse/MgtStuList.vue

@@ -5,7 +5,7 @@
                 <div class="list-header">
                     {{$t('cusMgt.nameList')}}
                     <div v-if="!isSearch" style="float:right;">
-                        <Icon class="action-btn-icon" type="md-trash" />
+                        <Icon class="action-btn-icon" type="md-trash" @click="delStuList()"/>
                         <Icon class="action-btn-icon" type="md-create" />
                         <Icon class="action-btn-icon" type="md-add" @click="addStuStatus = true" />
                         <Icon class="action-btn-icon" type="ios-search" @click="isSearch = true" />
@@ -185,6 +185,7 @@ export default {
                     this.modalLoading = true
                 }, 0)
             } else {
+
                 let stuList = {
                     name: this.listName,
                     id: this.$tools.guid(),
@@ -192,7 +193,8 @@ export default {
                     students: this.selections.map(item => { //这里没有学生名字, 需要先查看id集合再查学生信息?
                         return {
                             id: item.id,
-                            code: item.code //学生所在学校的编码,这里先传当前学校编码,暂无未考虑跨校名单
+                            // code: item.code //学生所在学校的编码,这里先传当前学校编码,暂无未考虑跨校名单
+                            code: 'Base-' + this.$store.state.userInfo.schoolCode
                         }
                     }),
                     tmids: [],
@@ -222,6 +224,10 @@ export default {
                 }
             )
         },
+        // 删除课程名单
+        delStuList(){
+            this.$Message.warning('暂未对接API')
+        },
         // 保存名单
         saveStuList(stuList) {
             let params = {

+ 23 - 19
TEAMModelOS/ClientApp/src/view/newcourse/MyCourse.vue

@@ -74,10 +74,9 @@
                     </div>
                     <div class="course-classroom-info" id="table-height" slot="right">
                         <div class="course-classroom-info-header" style="padding-right:30px;">
-                            <span @click="tabName = 'record'" :class="tabName == 'record' ? 'course-classroom-label line-bottom line-bottom-active':'course-classroom-label line-bottom'">{{$t('cusMgt.cusRecord')}}</span>
-                            <span @click="getActivityList()" :class="tabName == 'activity' ? 'course-classroom-label line-bottom line-bottom-active':'course-classroom-label line-bottom'">{{$t('cusMgt.acRecord')}}</span>
-                            <span @click="getStuList()" :class="tabName == 'stus' ? 'course-classroom-label line-bottom line-bottom-active':'course-classroom-label line-bottom'">{{$t('courseManage.classroom.studentList')}}</span>
-
+                            <span @click="selectTab('record')" :class="tabName == 'record' ? 'course-classroom-label line-bottom line-bottom-active':'course-classroom-label line-bottom'">{{$t('cusMgt.cusRecord')}}</span>
+                            <span @click="selectTab('activity')" :class="tabName == 'activity' ? 'course-classroom-label line-bottom line-bottom-active':'course-classroom-label line-bottom'">{{$t('cusMgt.acRecord')}}</span>
+                            <span @click="selectTab('stus')" :class="tabName == 'stus' ? 'course-classroom-label line-bottom line-bottom-active':'course-classroom-label line-bottom'">{{$t('courseManage.classroom.studentList')}}</span>
                             <div style="float:right;color:white;" v-if="(listType == 'private' && tabName == 'stus') || (listType == 'school' && tabName == 'stus' && classList[curClassIndex].openType == 2)">
                                 <span class="action-btn-wrap" @click="delStudents">
                                     <Icon type="md-trash" size="16" />
@@ -472,7 +471,14 @@ export default {
         }
     },
     methods: {
-
+        selectTab(tab) {
+            this.tabName = tab
+            if (this.tabName == 'activity') {
+                this.getActivityList()
+            } else if (this.tabName == 'stus') {
+                this.getStuList()
+            }
+        },
         dropdownStates(flag) {
             if (!flag) this.tabClick()
         },
@@ -559,7 +565,6 @@ export default {
         },
         //获取学生名单
         getStuList() {
-            this.tabName = 'stus'
             let schedule = this.teaClassList[this.curClassIndex]
             //先判断自定义名单
             if (schedule && schedule.stulist && !schedule.fullStu) {
@@ -640,8 +645,6 @@ export default {
         },
         //获取活动列表
         getActivityList() {
-            this.tabName = 'activity'
-            console.log(this.curAcType)
             switch (this.curAcType) {
                 case 'ev':
                     if (this.evList.length) break //首次(数组为空)访问数据
@@ -991,6 +994,9 @@ export default {
             let acId = this.acList[index].id
             let acCode = this.acList[index].code
             let owner = this.acList[index].owner
+            // 记录页面当前状态
+            // sessionStorage.setItem('myCusType', this.listType)
+            // sessionStorage.setItem('myCusTabName', this.tabName)
             switch (this.curAcType) {
                 case 'ev':
                     this.$router.push({
@@ -1005,7 +1011,7 @@ export default {
                     this.$router.push({
                         path: owner == 'school' ? '/home/manageVote' : '/home/personalVote',
                         query: {
-                            acId: this.acList[index].id
+                            acId: acId
                         }
                     })
                     break
@@ -1013,7 +1019,7 @@ export default {
                     this.$router.push({
                         path: owner == 'school' ? '/home/manageQuestionnaire' : '/home/personalSurvey',
                         query: {
-                            acId: this.acList[index].id
+                            acId: acId
                         }
                     })
                     break
@@ -1021,7 +1027,7 @@ export default {
                     this.$router.push({
                         path: '/home/manageHomeWork',
                         query: {
-                            acId: this.acList[index].id
+                            acId: acId
                         }
                     })
                     break
@@ -1141,13 +1147,8 @@ export default {
                 (res) => {
                     if (res.error == null) {
                         this.courseList = res.courses
-                        // this.courseListS = res.courses.filter(item => {
-                        //     return item.scope == 'school'
-                        // })
-                        // this.courseListP = res.courses.filter(item => {
-                        //     return item.scope == 'private'
-                        // })
-                        //设置当前课程列表
+                        //设置当前课程列表 
+                        // this.listType = sessionStorage.getItem('myCusType') || this.listType //是否有记录当前页面状态
                         this.courseListShow = this.courseList.filter(item => {
                             return item.scope == this.listType
                         })
@@ -1232,6 +1233,9 @@ export default {
                         }
                         this.$set(this.courseListShow, this.curCusIndex, res.courses[0])
                         this.changeClassroom(0)
+                        // if (sessionStorage.getItem('myCusTabName') && sessionStorage.getItem('myCusTabName') != 'record') {
+                        //     this.selectTab(sessionStorage.getItem('myCusTabName'))
+                        // }
                     }
                 }
             ).finally(() => {
@@ -1253,9 +1257,9 @@ export default {
         this.$store.dispatch('user/getSchoolProfile').then(res => {
             this.classList = res.school_classes
             this.schoolBase = res.school_base
+            this.isFirst = true
             this.getCourseList()
         })
-
         this.$nextTick(() => {
             let dom = document.getElementById('table-height')
             this.tableHeight = dom.offsetHeight - 50

+ 19 - 7
TEAMModelOS/ClientApp/src/view/questionnaire/ManageQuestionnaire.vue

@@ -8,7 +8,7 @@
 			</div>
 		</div>
 		<div class="qn-box dark-iview-split">
-			<Split v-model="split1">
+			<Split v-model="split1" ref="leftSplit" >
 				<div slot="left" class="demo-split-pane">
 					<!-- 问卷活动列表 -->
 					<div class="qn-col qn-list-box" v-if="!isFromRecord">
@@ -185,11 +185,7 @@
 			};
 		},
 		created() {
-			if(this.$route.query.acId){
-				this.isFromRecord = true
-				this.split1 = 0
-				this.split2 = 0.3
-			}
+			
 		},
 		methods: {
 			// 校本课纲与个人课纲切换
@@ -252,9 +248,19 @@
 						this.qnList = list;
 						if (list.length) {
 							let queryId = this.$route.query.acId
+							if(queryId && list.filter(i => i.id === queryId).length === 0){
+								this.$Modal.confirm({
+									title: this.$t('survey.questionaire.confirmTitle'),
+									content: this.$t('survey.noFoundAc'),
+									cancelText: ' ',
+									onOk: () => {
+										this.goBackRecord()
+									},
+									onCancel: () => {}
+								});
+							}
 							let queryItem = queryId && list.filter(i => i.id === queryId).length ?  list.filter(i => i.id === queryId)[0] : list[0]
 							let queryIndex = queryId ? list.indexOf(queryItem) : 0
-							this.isFromRecord = Boolean(queryId)
 							this.onQnClick(queryItem, queryIndex);
 							this.isEmptyData = false;
 						} else {
@@ -709,6 +715,12 @@
 		},
 		mounted() {
 			// this.handleTabClick(0)
+			if(this.$route.query.acId){
+				this.isFromRecord = true
+				this.split1 = 0
+				this.split2 = 0.3
+				this.$refs.leftSplit.$el.getElementsByClassName('ivu-split-trigger-con')[0].style.display = 'none'
+			}
 		},
 		computed: {
 			getCurCode() {

+ 114 - 75
TEAMModelOS/ClientApp/src/view/vote/ManageVote.vue

@@ -3,31 +3,38 @@
 		<Loading :top="200" bgColor="rgba(103, 103, 103, 0.27)" type="1" v-show="isLoading"></Loading>
 		<div class="hw-box dark-iview-split">
 
-			<Split v-model="split1">
+			<Split v-model="split1" ref="leftSplit">
 				<div slot="left" class="demo-split-pane">
 					<!-- 投票活动列表 -->
 					<div class="hw-col hw-list-box" v-if="!isFromRecord">
 						<div class="hw-box-header">
 							<span>{{ this.$t('vote.list') }}</span>
 							<span>
-								<Icon type="md-trash" class="to-create-icon" @click="onDeleteVote" style="margin-left:10px" v-if="voteList.length && ($access.can('admin.*|schoolAc-upd') || isPrivate)" />
-								<Icon type="md-add" class="to-create-icon" @click="goToCreate" v-if="($access.can('admin.*|schoolAc-upd') || isPrivate)" />
+								<Icon type="md-trash" class="to-create-icon" @click="onDeleteVote"
+									style="margin-left:10px"
+									v-if="voteList.length && ($access.can('admin.*|schoolAc-upd') || isPrivate)" />
+								<Icon type="md-add" class="to-create-icon" @click="goToCreate"
+									v-if="($access.can('admin.*|schoolAc-upd') || isPrivate)" />
 							</span>
 						</div>
 						<vuescroll>
-							<Loading :top="200" bgColor="rgba(103, 103, 103, 0.27)" type="1" v-show="isLoadList"></Loading>
+							<Loading :top="200" bgColor="rgba(103, 103, 103, 0.27)" type="1" v-show="isLoadList">
+							</Loading>
 							<div class="hw-item-wrap">
 								<div v-if="voteList.length === 0">
 									<EmptyData :top="50"></EmptyData>
 								</div>
 								<div style="width:100%" v-else>
-									<div :class='["hw-item",index === activeVoteIndex ? "item-active":""]' v-for="(item,index) in voteList" :key="index"
-									 @click="onVoteClick(item,index)">
+									<div :class='["hw-item",index === activeVoteIndex ? "item-active":""]'
+										v-for="(item,index) in voteList" :key="index" @click="onVoteClick(item,index)">
 										<p class="hw-item-name">{{ item.name }}</p>
 										<div class="hw-item-info">
 											<span class="hw-item-nums">
-												<Icon type="md-time" size="14" style="margin-right:5px" />{{ $tools.formatTime(item.startTime) }}</span>
-											<span class="hw-item-status" :style="{ background: (item.progress === 'pending' ? '#0BADD4' : item.progress === 'going' ? '#088951' : '#949594')}">{{ item.progress === 'pending' ? $t('vote.pending') : item.progress === 'going' ? $t('vote.going') : $t('vote.finish') }}</span>
+												<Icon type="md-time" size="14" style="margin-right:5px" />
+												{{ $tools.formatTime(item.startTime) }}
+											</span>
+											<span class="hw-item-status"
+												:style="{ background: (item.progress === 'pending' ? '#0BADD4' : item.progress === 'going' ? '#088951' : '#949594')}">{{ item.progress === 'pending' ? $t('vote.pending') : item.progress === 'going' ? $t('vote.going') : $t('vote.finish') }}</span>
 										</div>
 									</div>
 								</div>
@@ -38,14 +45,18 @@
 				</div>
 				<div slot="right" class="demo-split-pane">
 					<Split v-model="split2">
-						<div slot="left" class="demo-split-pane"  ref="voteFormBox">
+						<div slot="left" class="demo-split-pane" ref="voteFormBox">
 							<!-- 投票基础信息展示 -->
 							<div class="hw-col hw-info-box">
 								<div class="hw-box-header">
 									<span>{{ $t('vote.voteDetails') }}</span>
 									<div class="hw-box-header-tools">
-										<span class="hw-box-header-tools-tool" v-show="currentVote.progress === 'pending'">
-											<Icon type="md-create" size="18" :title="$t('vote.edit')" @click="onEditVote" v-if="($access.can('admin.*|schoolAc-upd') || isPrivate)" /></span>
+										<span class="hw-box-header-tools-tool"
+											v-show="currentVote.progress === 'pending'">
+											<Icon type="md-create" size="18" :title="$t('vote.edit')"
+												@click="onEditVote"
+												v-if="($access.can('admin.*|schoolAc-upd') || isPrivate)" />
+										</span>
 									</div>
 								</div>
 								<vuescroll ref="voteFormScroll">
@@ -53,7 +64,8 @@
 										<EmptyData :top="50"></EmptyData>
 									</div>
 									<div class="hw-info-wrap" v-show="voteList.length !== 0">
-										<BaseVoteForm :editItem="currentVote" @onAddSuccess="onAddSuccess" ref="voteForm" @onCancelVote="onCancelVote"></BaseVoteForm>
+										<BaseVoteForm :editItem="currentVote" @onAddSuccess="onAddSuccess"
+											ref="voteForm" @onCancelVote="onCancelVote"></BaseVoteForm>
 									</div>
 								</vuescroll>
 							</div>
@@ -64,12 +76,18 @@
 								<div class="hw-box-header">
 									<span>{{ $t('vote.voteResult') }}</span>
 									<div class="hw-box-header-tools">
-										<span class="hw-box-header-tools-tool" @click="changeTableView" v-show="tableData.length && currentVote.progress !== 'pending'">
-											<Icon type="md-podium" />{{ isOptionView ? $t('vote.stuListView') : $t('vote.optionView') }}</span>
-											
-											<div class="qn-box-header-tools-tool" v-if="isFromRecord">
-												<Button class="btn-save" icon="md-arrow-round-back" @click="goBackRecord">{{ $t('survey.backToRecord') }}</Button>
-											</div>
+										<div>
+											<span class="hw-box-header-tools-tool" @click="changeTableView"
+												v-show="tableData.length && currentVote.progress !== 'pending'">
+												<Icon type="md-podium" />
+												{{ isOptionView ? $t('vote.stuListView') : $t('vote.optionView') }}
+											</span>
+										</div>
+										<div>
+											<Button class="btn-save" v-if="isFromRecord" icon="md-arrow-round-back"
+												@click="goBackRecord">{{ $t('survey.backToRecord') }}</Button>
+										</div>
+										
 									</div>
 								</div>
 								<div v-if="voteList.length === 0 || hasNewAdd || currentVote.progress === 'pending'">
@@ -78,10 +96,13 @@
 								<div class="hw-data-wrap" style="height:90%" v-else>
 									<vuescroll>
 										<BaseVoteTable :tableDatas="tableData" v-show="isOptionView"></BaseVoteTable>
-										<BaseVoteSsTable :tableDatas="studentsTable" v-show="!isOptionView"></BaseVoteSsTable>
+										<BaseVoteSsTable :tableDatas="studentsTable" v-show="!isOptionView">
+										</BaseVoteSsTable>
 										<div style="display:flex">
-											<BaseVotePie pieId="votePie" :pieData="studentsTable" v-show="studentsTable.length"></BaseVotePie>
-											<BaseVoteBar pieId="votePie2" v-if="tableData.length" :pieData="tableData"></BaseVoteBar>
+											<BaseVotePie pieId="votePie" :pieData="studentsTable"
+												v-show="studentsTable.length"></BaseVotePie>
+											<BaseVoteBar pieId="votePie2" v-if="tableData.length" :pieData="tableData">
+											</BaseVoteBar>
 										</div>
 									</vuescroll>
 								</div>
@@ -127,16 +148,10 @@
 				voteTableData: [],
 				tableData: [],
 				addHwModal: false,
-				isFromRecord:false
-			}
-		},
-		created() {
-			if(this.$route.query.acId){
-				this.isFromRecord = true
-				this.split1 = 0
-				this.split2 = 0.3
+				isFromRecord: false
 			}
 		},
+		created() {},
 		methods: {
 
 			// 校本课纲与个人课纲切换
@@ -144,10 +159,10 @@
 				this.tabIndex = index
 				setTimeout(() => {
 					this.getVoteList(index === 0 ? 'school' : 'private')
-				},500)
+				}, 500)
 			},
-			
-			goBackRecord(){
+
+			goBackRecord() {
 				this.$router.back(-1)
 			},
 
@@ -159,7 +174,8 @@
 				} else {
 					let defaultVote = {
 						name: this.$t('vote.defaultName'),
-						code: this.tabIndex === 0 ? this.$store.state.userInfo.schoolCode : this.$store.state.userInfo.TEAMModelId,
+						code: this.tabIndex === 0 ? this.$store.state.userInfo.schoolCode : this.$store.state.userInfo
+							.TEAMModelId,
 						classes: [],
 						options: [{
 							code: 'A',
@@ -182,7 +198,7 @@
 					this.hasNewAdd = true
 					this.$refs.voteForm.voteFormEdit = true
 				}
-				
+
 				this.$nextTick(() => {
 					this.$refs.voteFormBox.scrollIntoView();
 				})
@@ -206,7 +222,19 @@
 							let list = res.votes.reverse()
 							this.voteList = list
 							let queryId = this.$route.query.acId
-							let queryVote = queryId && list.filter(i => i.id === queryId).length ?  list.filter(i => i.id === queryId)[0] : list[0]
+							if(queryId && list.filter(i => i.id === queryId).length === 0){
+								this.$Modal.confirm({
+									title: this.$t('survey.questionaire.confirmTitle'),
+									content: this.$t('survey.noFoundAc'),
+									cancelText: ' ',
+									onOk: () => {
+										this.goBackRecord()
+									},
+									onCancel: () => {}
+								});
+							}
+							let queryVote = queryId && list.filter(i => i.id === queryId).length ? list.filter(i =>
+								i.id === queryId)[0] : list[0]
 							let queryIndex = queryId ? list.indexOf(queryVote) : 0
 							this.isFromRecord = Boolean(queryId)
 							this.onVoteClick(queryVote, queryIndex)
@@ -234,7 +262,7 @@
 				let fullItem = item.id ? await this.getVoteDetails(item) : item
 				this.currentVote = fullItem
 				this.activeVoteIndex = index
-				if (item.id && item.progress !== 'pending') this.getVoteStudents(fullItem,fullItem.classes)
+				if (item.id && item.progress !== 'pending') this.getVoteStudents(fullItem, fullItem.classes)
 				this.$refs.voteForm.voteFormEdit = false
 				this.$refs.voteFormScroll.scrollTo({
 						y: 0,
@@ -245,15 +273,15 @@
 				this.hasNewAdd = false
 				this.isOptionView = true
 			},
-			
+
 			/* 获取投票活动的详细数据 */
-			getVoteDetails(voteItem){
-				return new Promise((r,j) => {
+			getVoteDetails(voteItem) {
+				return new Promise((r, j) => {
 					this.$api.learnActivity.FindVoteById({
 						id: voteItem.id,
 						code: voteItem.code,
 					}).then(res => {
-						if(!res.error){
+						if (!res.error) {
 							r(res.vote)
 						}
 					}).catch(err => {
@@ -261,49 +289,53 @@
 					})
 				})
 			},
-			
+
 			/* 获取正在进行中的投票活动的投票数据 */
-			async getVoteRecord(voteItem){
-				return new Promise(async (r,j) => {
+			async getVoteRecord(voteItem) {
+				return new Promise(async (r, j) => {
 					// 如果是进行中的活动 则从cosmos获取实时作答数据
-					if(voteItem.progress === 'going'){
+					if (voteItem.progress === 'going') {
 						this.$api.learnActivity.FindVoteRecord({
 							id: voteItem.id,
 							code: voteItem.code,
 						}).then(res => {
-							if(!res.error){
+							if (!res.error) {
 								r(res)
 							}
 						}).catch(err => {
 							j(err)
 						})
-					}else{ // 如果是已结束的活动 则从blob读取作答数据 
-						try{
-							let curItemRecord = await this.getBlobJsonFile(voteItem.scope,voteItem.recordUrl)
+					} else { // 如果是已结束的活动 则从blob读取作答数据 
+						try {
+							let curItemRecord = await this.getBlobJsonFile(voteItem.scope, voteItem
+								.recordUrl)
 							r(curItemRecord)
-						}catch(e){
+						} catch (e) {
 							j(e)
 						}
 					}
-					
+
 				})
 			},
-			
+
 			/* 根据已结束的RecordUrl来获取投票结果数据 */
-			getBlobJsonFile(scope,url){
-				return new Promise(async (resolve,reject) => {
-					let blobHost = scope === 'private' ?  JSON.parse(decodeURIComponent(localStorage.user_profile, "utf-8")).blob_uri : JSON.parse(decodeURIComponent(localStorage.school_profile, "utf-8")).blob_uri
+			getBlobJsonFile(scope, url) {
+				return new Promise(async (resolve, reject) => {
+					let blobHost = scope === 'private' ? JSON.parse(decodeURIComponent(localStorage
+						.user_profile, "utf-8")).blob_uri : JSON.parse(decodeURIComponent(localStorage
+						.school_profile, "utf-8")).blob_uri
 					// 根据试卷的Blob地址 去读取JSON文件
-					let sasString = scope === 'private' ?  await this.$tools.getPrivateSas() : await this.$tools.getSchoolSas()
-					try{
+					let sasString = scope === 'private' ? await this.$tools.getPrivateSas() : await this.$tools
+						.getSchoolSas()
+					try {
 						let itemJson = JSON.parse(await this.$tools.getFile(blobHost + url + sasString.sas))
 						resolve(itemJson)
-					}catch(e){
+					} catch (e) {
 						reject(e)
 					}
 				})
 			},
-			
+
 
 			/* 取消编辑投票(无ID状态) */
 			onCancelVote() {
@@ -332,13 +364,15 @@
 							}).then(res => {
 								if (!res.error && res.flag) {
 									console.log(this.voteList.indexOf(this.currentVote))
-									this.voteList.splice(this.voteList.reverse().indexOf(this.currentVote), 1)
+									this.voteList.splice(this.voteList.reverse().indexOf(this
+										.currentVote), 1)
 									setTimeout(() => {
 										this.isLoading = false
 										this.$Message.success(this.$t('vote.deleteSuc'))
-										this.handleTabClick(this.$route.name === 'manageVote' ? 0 : 1)
-									},1000)
-									
+										this.handleTabClick(this.$route.name === 'manageVote' ?
+											0 : 1)
+									}, 1000)
+
 									// this.isLoading = false
 									// this.$Message.success(this.$t('vote.deleteSuc'))
 									// if (this.voteList.length) this.onVoteClick(this.voteList[0], 0)
@@ -367,14 +401,14 @@
 			 */
 			async getVoteStudents(voteItem) {
 				this.isLoading = true
-				try{
+				try {
 					let records = await this.getVoteRecord(voteItem)
 					//  先查找 投票发布对象关联的学生清单 然后再去判断学生的作答情况
-					console.log('当前投票的作答数据======',records)
+					console.log('当前投票的作答数据======', records)
 					this.$api.schoolSetting.getClassroomStudent({
 						school_code: this.$store.state.userInfo.schoolCode,
 						ids: voteItem.classes,
-						scope:voteItem.scope
+						scope: voteItem.scope
 					}).then(res => {
 						if (!res.error && res.stus.length) {
 							let list = []
@@ -388,21 +422,23 @@
 									})
 								})
 							})
-							
+
 							// 要根据作答情况 结合两张表 处理表格显示的数据 
 							if (records.options.length) {
 								let arr = []
 								this.studentsTable = list
 								records.options.forEach((item, index) => {
 									arr.push({
-										option: item.code ? this.$t('vote.option') + (index + 1) : this.$t('vote.noVote'),
+										option: item.code ? this.$t('vote.option') + (index +
+											1) : this.$t('vote.noVote'),
 										key: item.code || '',
 										result: new Array(item.count).fill('1')
 									})
 								})
 								this.studentsTable.forEach(i => {
 									let matchList = records.records.filter(j => j.userid === i.id)
-									i.option = matchList.length ? Object.keys(matchList[0].opt).join(',') : null
+									i.option = matchList.length ? Object.keys(matchList[0].opt).join(
+										',') : null
 								})
 								console.log(arr)
 								console.log(this.studentsTable)
@@ -419,10 +455,10 @@
 					}).finally(() => {
 						this.isLoading = false
 					})
-				}catch(e){
+				} catch (e) {
 					this.isLoading = false
 				}
-				
+
 			},
 
 
@@ -454,14 +490,17 @@
 			}
 		},
 		mounted() {
-			// this.handleTabClick(0)
-			
-			
-			
+			if (this.$route.query.acId) {
+				this.isFromRecord = true
+				this.split1 = 0
+				this.split2 = 0.3
+				this.$refs.leftSplit.$el.getElementsByClassName('ivu-split-trigger-con')[0].style.display = 'none'
+			}
 		},
 		computed: {
 			getCurCode() {
-				return this.$route.name === 'personalVote' ? this.$store.state.userInfo.TEAMModelId : this.$store.state.userInfo.schoolCode
+				return this.$route.name === 'personalVote' ? this.$store.state.userInfo.TEAMModelId : this.$store.state
+					.userInfo.schoolCode
 			},
 			getCurScope() {
 				return this.$route.name === 'personalVote' ? 'private' : 'school'