|
@@ -66,11 +66,11 @@
|
|
|
</van-popup>
|
|
</van-popup>
|
|
|
<div class="mainItem">
|
|
<div class="mainItem">
|
|
|
<div class="label labelPeople">培训资料</div>
|
|
<div class="label labelPeople">培训资料</div>
|
|
|
|
|
+ <!-- <PDFAndImgLook ref="PDFAndImgLook" :studyList="studyList"></PDFAndImgLook> -->
|
|
|
|
|
+
|
|
|
<template v-for="item in studyList">
|
|
<template v-for="item in studyList">
|
|
|
- <div :key="item.url" class="imglIST" style="{width:'100px',height: '100px';}">
|
|
|
|
|
-
|
|
|
|
|
- <imgCom :width="'100'" v-if="item.url&&item.type==0" :height="'100'" :src="item.url"></imgCom>
|
|
|
|
|
- <!-- <VuePdf v-else :src="item.url"></VuePdf> -->
|
|
|
|
|
|
|
+ <div :key="item.url" class="imglIST" style="{width:'100px',height: '100px';}" @click="clikHadner">
|
|
|
|
|
+ <imgCom :width="'100'" v-if="item.url&&item.type==0" :height="'100'" :src="item.url"></imgCom>
|
|
|
<VuePdf v-else :src="item.url"></VuePdf>
|
|
<VuePdf v-else :src="item.url"></VuePdf>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -139,22 +139,25 @@ import NavBar from '@/components/NavBar'
|
|
|
import CheckPeople from '@/components/peopleList/index.vue'
|
|
import CheckPeople from '@/components/peopleList/index.vue'
|
|
|
import Upload from '@/components/upload/index.vue'
|
|
import Upload from '@/components/upload/index.vue'
|
|
|
import imgCom from '@/components/imgCom/index.vue'
|
|
import imgCom from '@/components/imgCom/index.vue'
|
|
|
|
|
+import VuePdf from "@/components/pdfCom/index.vue"
|
|
|
import { gettrainingInfo, edittrainingInfo } from '@/api/training.js'
|
|
import { gettrainingInfo, edittrainingInfo } from '@/api/training.js'
|
|
|
import { newDateTime } from '@/utils/date.js'
|
|
import { newDateTime } from '@/utils/date.js'
|
|
|
import { Dialog, Toast } from 'vant'
|
|
import { Dialog, Toast } from 'vant'
|
|
|
-import VuePdf from "@/components/pdfCom/index.vue"
|
|
|
|
|
-
|
|
|
|
|
|
|
+import PDFAndImgLook from '@/components/imgAndPDF/index.vue'
|
|
|
export default {
|
|
export default {
|
|
|
name: 'SocAppAddTraining',
|
|
name: 'SocAppAddTraining',
|
|
|
components: {
|
|
components: {
|
|
|
VuePdf,
|
|
VuePdf,
|
|
|
NavBar,
|
|
NavBar,
|
|
|
|
|
+ PDFAndImgLook,
|
|
|
imgCom,
|
|
imgCom,
|
|
|
Upload,
|
|
Upload,
|
|
|
CheckPeople
|
|
CheckPeople
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+
|
|
|
|
|
+ current:0,
|
|
|
this_window:window,
|
|
this_window:window,
|
|
|
studyList: [], //学习资料数组
|
|
studyList: [], //学习资料数组
|
|
|
startDateTime: new Date(),
|
|
startDateTime: new Date(),
|
|
@@ -243,6 +246,12 @@ export default {
|
|
|
mounted() {},
|
|
mounted() {},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ clikHadner(){
|
|
|
|
|
+ this.$refs.PDFAndImgLook.show=true
|
|
|
|
|
+ },
|
|
|
|
|
+ onChange(index) {
|
|
|
|
|
+ this.current = index
|
|
|
|
|
+ },
|
|
|
// 查看pdf
|
|
// 查看pdf
|
|
|
|
|
|
|
|
onSubmit(values) {
|
|
onSubmit(values) {
|