|
@@ -9,9 +9,9 @@
|
|
|
</div>
|
|
|
<markeractivityWord v-if="wordData['type']==0 && wordData['state']==0" :wordData="wordData" :total="total" :changeFund="changeFund" :allFund="wordData['allFund']"/>
|
|
|
<NomMarkerWord v-if="wordData['type']==1 && wordData['state']==0" :wordData="wordData" :total="total"/>
|
|
|
- <markeractivityWordShow v-if="wordData['state']!=0" :wordData="wordData" :total="total"/>
|
|
|
+ <markeractivityWordShow ref="myChild" v-if="wordData['state']!=0 || downloadDig" :wordData="wordData" :total="total"/>
|
|
|
<div>
|
|
|
- <el-button type="primary" @click="getActivityWord">下载表单</el-button>
|
|
|
+ <el-button type="primary" @click="downloadDig=true">下载表单</el-button>
|
|
|
<el-button type="primary" v-if="wordData['state']==0" @click="test">立即修改</el-button>
|
|
|
</div>
|
|
|
<el-dialog
|
|
@@ -26,6 +26,20 @@
|
|
|
<el-button @click="submitHint=false" class="AllDialogBtn">取消</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <!-- 下载文档开始 -->
|
|
|
+ <el-dialog
|
|
|
+ title="下载文档"
|
|
|
+ :visible.sync="downloadDig"
|
|
|
+ width="600px"
|
|
|
+ class="pageSubmitData">
|
|
|
+
|
|
|
+ <div class="deleteContent">确定下载文档?</div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="downloadWord" class="AllDialogBtn">确认</el-button>
|
|
|
+ <el-button @click="downloadDig=false" class="AllDialogBtn" >取消</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <!-- 下载文档结束-->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -34,12 +48,14 @@
|
|
|
import NomMarkerWord from './components/NomMarkerWord.vue'
|
|
|
import markeractivityWordShow from './components/markeractivityWordShow.vue'
|
|
|
import {makerActivityWord} from '@/components/tool/getWord'
|
|
|
+ import {downloadPDF} from '@/components/tool/pdf'
|
|
|
export default {
|
|
|
components:{markeractivityWord,NomMarkerWord,markeractivityWordShow},
|
|
|
data() {
|
|
|
return {
|
|
|
loading:false,
|
|
|
submitHint:false,
|
|
|
+ downloadDig:false,
|
|
|
wordData:{
|
|
|
allFund:0,
|
|
|
acId:"",//活动ID
|
|
@@ -253,14 +269,22 @@
|
|
|
console.log(err)
|
|
|
})
|
|
|
},
|
|
|
- getActivityWord(){
|
|
|
- // if(this.wordData['type']==0){
|
|
|
- // this.$message.info("正在下载创客活动表单");
|
|
|
- makerActivityWord(this.wordData,this.total)
|
|
|
- // }else if(this.wordData['type']==1){
|
|
|
- // this.$message.info("正在下载个人创客表单")
|
|
|
- // }
|
|
|
- }
|
|
|
+ downloadWord(){
|
|
|
+ downloadPDF(this.$refs.myChild.$refs.pdfShow)
|
|
|
+ this.downloadDig = false;
|
|
|
+ // this.wordData['total']=this.wordData.fund.facility*1 + this.wordData.fund.materials*1+this.wordData.fund.process*1+ this.wordData.fund.assist*1+this.wordData.fund.authenticate*1+ this.wordData.fund.match*1+this.wordData.fund.activity*1+this.wordData.fund.affair*1
|
|
|
+ // return console.log(this.wordData);
|
|
|
+ // getWord(this.downWordData)
|
|
|
+ // this.downloadDig=false;
|
|
|
+ },
|
|
|
+ // getActivityWord(){
|
|
|
+ // // if(this.wordData['type']==0){
|
|
|
+ // // this.$message.info("正在下载创客活动表单");
|
|
|
+ // makerActivityWord(this.wordData,this.total)
|
|
|
+ // // }else if(this.wordData['type']==1){
|
|
|
+ // // this.$message.info("正在下载个人创客表单")
|
|
|
+ // // }
|
|
|
+ // }
|
|
|
},
|
|
|
computed:{
|
|
|
total() {
|