|
@@ -184,7 +184,6 @@
|
|
|
<span>活动{{ index+1 }}:</span>
|
|
|
<span>{{ item.title }}</span>
|
|
|
</span>
|
|
|
- <!-- <el-button type="primary" @click="(item)=>{console.log(item.open)}" size="small">折叠</el-button> -->
|
|
|
</div>
|
|
|
|
|
|
<div class="brief">
|
|
@@ -310,9 +309,41 @@
|
|
|
<div class="TextView" >
|
|
|
<VueEditor v-model="JSON.parse(item.chapters)[3]" :disabled="true"></VueEditor>
|
|
|
</div>
|
|
|
-
|
|
|
+ <div class="brief_title MarginTop30px">
|
|
|
+ <img src="@/assets/anliDetail/jdTitle.png" alt="">
|
|
|
+ <!-- <i class="el-icon-money"></i> -->
|
|
|
+ <span>活动完结报告</span>
|
|
|
+ </div>
|
|
|
+ <div class="brief" v-if="ActivityLookFile[index].url!=''">
|
|
|
+ <div class="material">
|
|
|
+ <div class="material_title">
|
|
|
+ <img src="@/assets/anliDetail/fileList.png" alt="">
|
|
|
+ <span>活动完结报告</span>
|
|
|
+ </div>
|
|
|
+ <div class="FileShowArea">
|
|
|
+ <div class="FileShowArea_Left">
|
|
|
+ <vword
|
|
|
+ style="width: 100%; height: 100%; overflow: auto"
|
|
|
+ class="fullStyle"
|
|
|
+ v-if="checkFileType(ActivityLookFile[index].url)['type']!='pdf'&&checkFileType(ActivityLookFile[index].url)['name']!='图片'"
|
|
|
+ :pdfUrl="'https://view.officeapps.live.com/op/view.aspx?src='+ActivityLookFile[index].url"
|
|
|
+ ></vword>
|
|
|
+ <vpdf
|
|
|
+ style="width: 100%; height: 100%; overflow: auto"
|
|
|
+ class="fullStyle"
|
|
|
+ :pdfUrl="ActivityLookFile[index].url"
|
|
|
+ v-if="checkFileType(ActivityLookFile[index].url)['type']=='pdf'"
|
|
|
+ ></vpdf>
|
|
|
+ <img :src="ActivityLookFile[index].url" alt="图片哦" v-if="checkFileType(ActivityLookFile[index].url)['name']=='图片'" style="width: 100%;height: 100%;">
|
|
|
+ </div>
|
|
|
+ <div class="FileShowArea_Right core_dialogue">
|
|
|
+ <div v-for="(i,index2) in item.reportFile" :key="i.url" @click="Object.assign(ActivityLookFile[index],i)" :class="['FileList',ActivityLookFile[index]['url']==i.url?'lookFile':'']"><span>{{ index2+1 }}.{{ checkFileType(i.url)["name"] }}</span><div>{{ i.fileName }}</div></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -454,6 +485,7 @@
|
|
|
ProjectEndFile:[],
|
|
|
ProjectEndLookFile:{url:"",type:""},
|
|
|
AllActivity:[],
|
|
|
+ ActivityLookFile:[],
|
|
|
endProjectRemark:{kRem:"",bRem:"",xRem:""},
|
|
|
canonical:{
|
|
|
Image:/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,
|
|
@@ -463,11 +495,11 @@
|
|
|
},
|
|
|
methods:{
|
|
|
getData(){
|
|
|
+ this.ActivityLookFile = [];
|
|
|
this.ajax.get(this.$store.state.api+"/GetProjectDetailIsConclusion",{
|
|
|
uid:this.$store.state.userInfo.userid,
|
|
|
pid:this.$route.query["Id"]
|
|
|
}).then(res=>{
|
|
|
- // console.log(res)
|
|
|
let FormData = res.data;
|
|
|
this.TitleMessage = FormData[0][0]
|
|
|
this.TitleMessage['course_student'] = JSON.parse(this.TitleMessage['course_student']);
|
|
@@ -478,9 +510,15 @@
|
|
|
this.ProjectEndFile = JSON.parse(FormData[3][0]['endFile']);
|
|
|
if(this.ProjectEndFile!=null)this.ProjectEndLookFile = this.ProjectEndFile[0];
|
|
|
else this.ProjectEndLookFile = {url:"",type:""}
|
|
|
- if(FormData[4][0]['title']!=null)this.AllActivity = FormData[4];
|
|
|
+ if(FormData[4][0]['title']!=null){
|
|
|
+ this.AllActivity = FormData[4]
|
|
|
+ this.AllActivity.forEach(item=>{
|
|
|
+ item['reportFile'] = JSON.parse(item['reportFile'])
|
|
|
+ if(item['reportFile']!=null)this.ActivityLookFile.push({url:item['reportFile'][0].url,fileName:item['reportFile'][0].fileName})
|
|
|
+ else this.ActivityLookFile.push({url:"",type:""})
|
|
|
+ })
|
|
|
+ };
|
|
|
this.endProjectRemark = JSON.parse(FormData[5][0]['endProjectRemark']);
|
|
|
- console.log(this.endProjectRemark)
|
|
|
}).catch(err=>{
|
|
|
console.log(err)
|
|
|
})
|
|
@@ -489,9 +527,11 @@
|
|
|
if(typeof url=='undefined')return {type:"",name:""};
|
|
|
let urlSplit = url.split(".");
|
|
|
const type = urlSplit[urlSplit.length-1]
|
|
|
-
|
|
|
if(this.canonical.Image.test(url))return {type:type,name:"图片"}
|
|
|
if(this.canonical.File.test(url))return {type:type,name:"文档"}
|
|
|
+ },
|
|
|
+ ActivityChangeFileLook(index,item){
|
|
|
+ Object.assign(this.ActivityLookFile[index],item)
|
|
|
}
|
|
|
|
|
|
},
|