|
@@ -3,7 +3,7 @@
|
|
<Loading v-if="isLoading" hideMask></Loading>
|
|
<Loading v-if="isLoading" hideMask></Loading>
|
|
<div class="offline-content">
|
|
<div class="offline-content">
|
|
<div class="offline-left">
|
|
<div class="offline-left">
|
|
- <div class="offline-content-header">研修活动</div>
|
|
|
|
|
|
+ <div class="offline-content-header">{{ $t('jyzx.offline.activity') }}</div>
|
|
<vuescroll>
|
|
<vuescroll>
|
|
<EmptyData :top="100" v-if="!activity.length"></EmptyData>
|
|
<EmptyData :top="100" v-if="!activity.length"></EmptyData>
|
|
<div class="volume-list">
|
|
<div class="volume-list">
|
|
@@ -12,8 +12,8 @@
|
|
activeIndex === index ? 'volume-active' : '',
|
|
activeIndex === index ? 'volume-active' : '',
|
|
]" @click="getActivityInfo(item, index)">
|
|
]" @click="getActivityInfo(item, index)">
|
|
<p class="volume-item-name">
|
|
<p class="volume-item-name">
|
|
- <span style="display: inline-block; background: #a2b02e;" v-show="item.owner == 'area'">区</span>
|
|
|
|
- <span style="display: inline-block; background: #FF9900;" v-show="item.owner == 'school'">校</span>
|
|
|
|
|
|
+ <span style="display: inline-block; background: #a2b02e;" v-show="item.owner == 'area'">{{ $t('jyzx.common.area') }}</span>
|
|
|
|
+ <span style="display: inline-block; background: #FF9900;" v-show="item.owner == 'school'">{{ $t('jyzx.common.school') }}</span>
|
|
{{ item.name }}
|
|
{{ item.name }}
|
|
</p>
|
|
</p>
|
|
<p class="status-time" style="padding-left:25px">
|
|
<p class="status-time" style="padding-left:25px">
|
|
@@ -24,27 +24,27 @@
|
|
</vuescroll>
|
|
</vuescroll>
|
|
</div>
|
|
</div>
|
|
<div class="offline-right">
|
|
<div class="offline-right">
|
|
- <div class="offline-content-header">详细信息</div>
|
|
|
|
|
|
+ <div class="offline-content-header">{{ $t('jyzx.offline.info') }}</div>
|
|
<div class="offline-tree-box">
|
|
<div class="offline-tree-box">
|
|
<div class="detailbox" v-if="Object.keys(resource).length">
|
|
<div class="detailbox" v-if="Object.keys(resource).length">
|
|
<div style="margin-bottom: 40px">
|
|
<div style="margin-bottom: 40px">
|
|
<div class="detailheader">
|
|
<div class="detailheader">
|
|
<div class="activitytitle">
|
|
<div class="activitytitle">
|
|
<p class="detailstitle">
|
|
<p class="detailstitle">
|
|
- <span class="school-gade" style="background: #a2b02e" v-show="resource.owner == 'area'">区级</span>
|
|
|
|
- <span class="school-gade" style="background: #ff9900" v-show="resource.owner == 'school'">校级</span>
|
|
|
|
|
|
+ <span class="school-gade" style="background: #a2b02e" v-show="resource.owner == 'area'">{{ $t('jyzx.common.typeArea') }}</span>
|
|
|
|
+ <span class="school-gade" style="background: #ff9900" v-show="resource.owner == 'school'">{{ $t('jyzx.common.typeSch') }}</span>
|
|
{{ resource.name }}
|
|
{{ resource.name }}
|
|
</p>
|
|
</p>
|
|
<div class="site">
|
|
<div class="site">
|
|
- <span class="info-label">创建者:</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.creator') }}:</span>
|
|
<span v-if="resource.createdName">{{resource.createdName}}</span>
|
|
<span v-if="resource.createdName">{{resource.createdName}}</span>
|
|
- <span v-else>无</span>
|
|
|
|
|
|
+ <span v-else>{{ $t('jyzx.offline.noPeople') }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="site">
|
|
<div class="site">
|
|
- <span class="info-label">参与人数:</span><span>{{ resource.teachers.length}}</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.joinNum') }}:</span><span>{{ resource.teachers.length}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="site">
|
|
<div class="site">
|
|
- <span class="info-label">活动时间:</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.actTime') }}:</span>
|
|
<span>
|
|
<span>
|
|
{{ resource.detail.startTime }} -
|
|
{{ resource.detail.startTime }} -
|
|
{{ resource.detail.endTime }}
|
|
{{ resource.detail.endTime }}
|
|
@@ -55,16 +55,16 @@
|
|
<span style="margin-right: 15px" v-for="(iteminfo, index) in resource.teachers" :key="index">{{iteminfo.name}}</span>
|
|
<span style="margin-right: 15px" v-for="(iteminfo, index) in resource.teachers" :key="index">{{iteminfo.name}}</span>
|
|
</div>-->
|
|
</div>-->
|
|
<div class="site">
|
|
<div class="site">
|
|
- <span class="info-label">学习对象:</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.target') }}:</span>
|
|
<span v-for="(item, index) in resource.targets" :key="index" style="margin-right: 10px">{{ item }}</span>
|
|
<span v-for="(item, index) in resource.targets" :key="index" style="margin-right: 10px">{{ item }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="img-box" :style="{backgroundImage: `url(${resource.detail.img || defImg})`}"></div>
|
|
<div class="img-box" :style="{backgroundImage: `url(${resource.detail.img || defImg})`}"></div>
|
|
</div>
|
|
</div>
|
|
<div class="basics">
|
|
<div class="basics">
|
|
- <dt class="headeicon"><span class="headeicontitle">基础信息</span></dt>
|
|
|
|
|
|
+ <dt class="headeicon"><span class="headeicontitle">{{ $t('jyzx.offline.basicInfo') }}</span></dt>
|
|
<div class="target">
|
|
<div class="target">
|
|
- <span class="info-label">研修目标:</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.studyTar') }}:</span>
|
|
<span>{{ resource.detail.desc }}</span>
|
|
<span>{{ resource.detail.desc }}</span>
|
|
</div>
|
|
</div>
|
|
<!--<div class="object">
|
|
<!--<div class="object">
|
|
@@ -72,31 +72,31 @@
|
|
<span v-for="(item, index) in resource.targets" :key="index" style="margin-right: 10px">{{ item }}</span>
|
|
<span v-for="(item, index) in resource.targets" :key="index" style="margin-right: 10px">{{ item }}</span>
|
|
</div>-->
|
|
</div>-->
|
|
<div class="site">
|
|
<div class="site">
|
|
- <span class="info-label">培训地点:</span><span>{{ resource.detail.address }}</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.address') }}:</span><span>{{ resource.detail.address }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="keynote">
|
|
<div class="keynote">
|
|
- <span class="info-label">主讲人:</span><span>{{ resource.detail.presenter }}</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.speaker') }}:</span><span>{{ resource.detail.presenter }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="type">
|
|
<div class="type">
|
|
- <span class="info-label">类型:</span><span>{{ resource.typeName }}</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.type') }}:</span><span>{{ resource.typeName }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="totalperiod">
|
|
<div class="totalperiod">
|
|
- <span class="info-label">学时:</span>
|
|
|
|
- <span class="hour-tag">{{ resource.hour }}学时</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.studyTime') }}:</span>
|
|
|
|
+ <span class="hour-tag">{{ resource.hour }}{{ $t('jyzx.offline.studyTime') }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="content">
|
|
<div class="content">
|
|
- <span class="info-label">内容:</span><span>{{ resource.detail.topic }}</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.common.content') }}:</span><span>{{ resource.detail.topic }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- <Divider dashed /> -->
|
|
<!-- <Divider dashed /> -->
|
|
<!-- 作业 -->
|
|
<!-- 作业 -->
|
|
<div class="submitarea" v-if="resource.settings.includes('hw')">
|
|
<div class="submitarea" v-if="resource.settings.includes('hw')">
|
|
- <dt class="headeicon"><span class="headeicontitle">作业</span></dt>
|
|
|
|
|
|
+ <dt class="headeicon"><span class="headeicontitle">{{ $t('jyzx.offline.homework') }}</span></dt>
|
|
<div class="target">
|
|
<div class="target">
|
|
- <span class="info-label">作业名称:</span><span>{{ resource.detail.hwName }}</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.hwName') }}:</span><span>{{ resource.detail.hwName }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="target">
|
|
<div class="target">
|
|
- <span class="info-label">作业描述:</span><span>{{ resource.detail.hwDesc }}</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.hwDes') }}:</span><span>{{ resource.detail.hwDesc }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="target hw-style">
|
|
<div class="target hw-style">
|
|
<Upload
|
|
<Upload
|
|
@@ -108,7 +108,7 @@
|
|
<Icon type="ios-cloud-upload" size="52" :style="{color: homeWork ? '#b4b4b4' : '#2d8cf0' }"></Icon>
|
|
<Icon type="ios-cloud-upload" size="52" :style="{color: homeWork ? '#b4b4b4' : '#2d8cf0' }"></Icon>
|
|
<p>
|
|
<p>
|
|
<span>
|
|
<span>
|
|
- {{homeWork ? '重新上传' : '上传作业'}}
|
|
|
|
|
|
+ {{ homeWork ? $t('jyzx.offline.againLoad') : $t('jyzx.offline.hwUpload')}}
|
|
</span>
|
|
</span>
|
|
</p>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
@@ -130,32 +130,32 @@
|
|
</div>
|
|
</div>
|
|
<!-- 问卷 -->
|
|
<!-- 问卷 -->
|
|
<div class="submitarea" v-if="resource.settings.includes('survey') && surveyInfo">
|
|
<div class="submitarea" v-if="resource.settings.includes('survey') && surveyInfo">
|
|
- <dt class="headeicon"><span class="headeicontitle">问卷</span></dt>
|
|
|
|
|
|
+ <dt class="headeicon"><span class="headeicontitle">{{ $t('jyzx.offline.question') }}</span></dt>
|
|
<div class="target">
|
|
<div class="target">
|
|
- <span class="info-label">问卷名称:</span><span>{{ surveyInfo.name }}</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.queName') }}:</span><span>{{ surveyInfo.name }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="target">
|
|
<div class="target">
|
|
- <span class="info-label">问卷描述:</span><span>{{ surveyInfo.description }}</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.queDes') }}:</span><span>{{ surveyInfo.description }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="target hw-style">
|
|
<div class="target hw-style">
|
|
<Button type="primary" @click="doSurvey" v-if="!isSurvey">
|
|
<Button type="primary" @click="doSurvey" v-if="!isSurvey">
|
|
<Icon type="ios-create" />
|
|
<Icon type="ios-create" />
|
|
- 作答问卷
|
|
|
|
|
|
+ {{ $t('jyzx.offline.queAnswer') }}
|
|
</Button>
|
|
</Button>
|
|
<Button type="success" @click="doSurvey" v-else>
|
|
<Button type="success" @click="doSurvey" v-else>
|
|
<Icon type="md-checkmark-circle-outline" />
|
|
<Icon type="md-checkmark-circle-outline" />
|
|
- 已作答
|
|
|
|
|
|
+ {{ $t('jyzx.offline.answered') }}
|
|
</Button>
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 评测 -->
|
|
<!-- 评测 -->
|
|
<div class="submitarea" v-if="resource.settings.includes('exam') && examInfo">
|
|
<div class="submitarea" v-if="resource.settings.includes('exam') && examInfo">
|
|
- <dt class="headeicon"><span class="headeicontitle">评测</span></dt>
|
|
|
|
|
|
+ <dt class="headeicon"><span class="headeicontitle">{{ $t('jyzx.offline.exam') }}</span></dt>
|
|
<div class="target">
|
|
<div class="target">
|
|
- <span class="info-label">评测名称:</span><span>{{ examInfo.name }}</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.examName') }}:</span><span>{{ examInfo.name }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="target">
|
|
<div class="target">
|
|
- <span class="info-label">评测描述:</span><span>{{ examInfo.description }}</span>
|
|
|
|
|
|
+ <span class="info-label">{{ $t('jyzx.offline.examDes') }}:</span><span>{{ examInfo.description }}</span>
|
|
</div>
|
|
</div>
|
|
<!-- <div v-if="resource.detail.hwTime">
|
|
<!-- <div v-if="resource.detail.hwTime">
|
|
<span class="info-label">结束时间:</span><span>{{ resource.detail.hwTime }}</span>
|
|
<span class="info-label">结束时间:</span><span>{{ resource.detail.hwTime }}</span>
|
|
@@ -163,15 +163,15 @@
|
|
<div class="target hw-style">
|
|
<div class="target hw-style">
|
|
<Button type="primary" @click="doExam" v-if="!isExam">
|
|
<Button type="primary" @click="doExam" v-if="!isExam">
|
|
<Icon type="ios-create" />
|
|
<Icon type="ios-create" />
|
|
- 作答评测
|
|
|
|
|
|
+ {{ $t('jyzx.offline.examAnswer') }}
|
|
</Button>
|
|
</Button>
|
|
<Button type="success" @click="doExam" v-else>
|
|
<Button type="success" @click="doExam" v-else>
|
|
<Icon type="md-checkmark-circle-outline" />
|
|
<Icon type="md-checkmark-circle-outline" />
|
|
- 已作答
|
|
|
|
|
|
+ {{ $t('jyzx.offline.answered') }}
|
|
</Button>
|
|
</Button>
|
|
<span class="ansShow" v-show="isExam">
|
|
<span class="ansShow" v-show="isExam">
|
|
- 答对:{{ rightNum }} 题,
|
|
|
|
- 答错:{{ wrongNum }}题
|
|
|
|
|
|
+ {{ $t('jyzx.offline.right') }}:{{ rightNum }} {{ $t('jyzx.offline.topic') }},
|
|
|
|
+ {{ $t('jyzx.offline.error') }}:{{ wrongNum }}{{ $t('jyzx.offline.topic') }}
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -180,10 +180,10 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <Modal v-model="surveyStatus" title="问卷反馈" width="800" @on-ok="saveSurvey">
|
|
|
|
|
|
+ <Modal v-model="surveyStatus" :title="$t('jyzx.offline.feedback')" width="800" @on-ok="saveSurvey">
|
|
<DoSurvey v-if="surveyInfo" :survey="surveyInfo" @answer-change="getSurveyData" />
|
|
<DoSurvey v-if="surveyInfo" :survey="surveyInfo" @answer-change="getSurveyData" />
|
|
</Modal>
|
|
</Modal>
|
|
- <Modal v-model="examStatus" title="评测作答" width="800" @on-ok="saveExam">
|
|
|
|
|
|
+ <Modal v-model="examStatus" :title="('jyzx.offline.answerExam')" width="800" @on-ok="saveExam">
|
|
<DoExam v-if="examInfo" :exam="examInfo" @answer-change="getExamData" @have-answer="haveAns" />
|
|
<DoExam v-if="examInfo" :exam="examInfo" @answer-change="getExamData" @have-answer="haveAns" />
|
|
</Modal>
|
|
</Modal>
|
|
</div>
|
|
</div>
|
|
@@ -257,13 +257,13 @@ export default {
|
|
this.$api.jyzx.submitquestionnaire(params).then(res => {
|
|
this.$api.jyzx.submitquestionnaire(params).then(res => {
|
|
if(res.code == 200) {
|
|
if(res.code == 200) {
|
|
this.isSurvey = true
|
|
this.isSurvey = true
|
|
- this.$Message.success('保存成功')
|
|
|
|
|
|
+ this.$Message.success(this.$t("jyzx.offline.success1"))
|
|
} else {
|
|
} else {
|
|
- this.$Message.warning('保存失败')
|
|
|
|
|
|
+ this.$Message.warning(this.$t("jyzx.offline.error1"))
|
|
}
|
|
}
|
|
})
|
|
})
|
|
} else if(this.myAnswer.length) {
|
|
} else if(this.myAnswer.length) {
|
|
- this.$Message.warning("问卷未填写完,请继续填写")
|
|
|
|
|
|
+ this.$Message.warning(this.$t("jyzx.offline.message1"))
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
@@ -312,13 +312,13 @@ export default {
|
|
}
|
|
}
|
|
this.$api.jyzx.submitExam(params).then(res => {
|
|
this.$api.jyzx.submitExam(params).then(res => {
|
|
if(res.code == 200) {
|
|
if(res.code == 200) {
|
|
- this.$Message.success('保存成功')
|
|
|
|
|
|
+ this.$Message.success(this.$t("jyzx.offline.success1"))
|
|
this.isExam = true
|
|
this.isExam = true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
else if(this.myAnswer.length) {
|
|
else if(this.myAnswer.length) {
|
|
- this.$Message.warning("评测未作答完,请继续作答")
|
|
|
|
|
|
+ this.$Message.warning(this.$t("jyzx.offline.message2"))
|
|
}
|
|
}
|
|
},
|
|
},
|
|
doSurvey() {
|
|
doSurvey() {
|
|
@@ -500,9 +500,9 @@ export default {
|
|
this.$api.train.uploadHw(req).then((resHW) => {
|
|
this.$api.train.uploadHw(req).then((resHW) => {
|
|
if (resHW.code === 200) {
|
|
if (resHW.code === 200) {
|
|
this.homeWork = res.name
|
|
this.homeWork = res.name
|
|
- this.$Message.success("上传成功")
|
|
|
|
|
|
+ this.$Message.success(this.$t("jyzx.offline.success2"))
|
|
} else {
|
|
} else {
|
|
- this.$Message.warning("上传失败")
|
|
|
|
|
|
+ this.$Message.warning(this.$t("jyzx.offline.error1"))
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|