Commit d8012852 authored by wangqinghua's avatar wangqinghua

bug

parent df3ce5c9
<template>
<div>123123</div>
</template>
<script>
export default {
name: "manage"
}
</script>
<style scoped>
</style>
\ No newline at end of file
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
</el-table> </el-table>
</div> </div>
<div class="text-center margin-top-20"> <div class="text-center margin-top-20">
<el-button @click="handlePreview" size="small" plain>预览</el-button> <el-button :disabled="!item" @click="handlePreview" size="small" plain>预览</el-button>
<el-button :disabled="true" size="small" plain>导出</el-button> <el-button :disabled="true" size="small" plain>导出</el-button>
<el-button @click="showIndexDialog('agenda')" size="small" plain>议程排序</el-button> <el-button @click="showIndexDialog('agenda')" size="small" plain>议程排序</el-button>
<el-button @click="showIndexDialog('intention')" size="small" plain>意向排序</el-button> <el-button @click="showIndexDialog('intention')" size="small" plain>意向排序</el-button>
...@@ -248,6 +248,8 @@ ...@@ -248,6 +248,8 @@
}, },
//保存 //保存
save(){ save(){
this.form.agendaList = [];
this.form.intentionList = [];
this.tableData.forEach((e,index)=>{ this.tableData.forEach((e,index)=>{
if(e.type === "agenda"){ //议程 if(e.type === "agenda"){ //议程
this.form.agendaList.push({ this.form.agendaList.push({
......
<template> <template>
<div class="view-file"> <div class="view-file">
<canvas v-for="page in pages" :id="'the-canvas'+page" :key="page"></canvas>
<el-row class="margin-20-0"> <el-row class="margin-20-0">
<el-col class="left" :span="12"> <el-col class="left" :span="12">
<div class="text-center"> <div class="text-center">
...@@ -30,14 +29,14 @@ ...@@ -30,14 +29,14 @@
<el-col :span="12"> <el-col :span="12">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<!--<el-select size="small" placeholder="请选择">--> <el-select size="small" placeholder="请选择" @change="changeFile" v-model="fileName">
<!--<el-option--> <el-option
<!--v-for="item in options"--> v-for="item in options"
<!--:key="item.value"--> :key="item.value"
<!--:label="item.label"--> :label="item.label"
<!--:value="item.value">--> :value="item.value">
<!--</el-option>--> </el-option>
<!--</el-select>--> </el-select>
</el-col> </el-col>
<el-col class="text-center" :span="18"> <el-col class="text-center" :span="18">
议程主题 议程主题
...@@ -61,15 +60,20 @@ ...@@ -61,15 +60,20 @@
export default { export default {
data () { data () {
return { return {
title: '',
id:null, id:null,
pdfDoc: null, pdfDoc: null,
loadding: false, loadding: false,
meet:null, meet:null,
pages: 0 pages: 0,
fileName:'',
options:[]
} }
}, },
methods: { methods: {
changeFile(fileName){
let url = '/api/common/file/download?fileName='+fileName
this.loadFile(url)
},
renderPage (num) { renderPage (num) {
let _this = this let _this = this
this.pdfDoc.getPage(num).then(function (page) { this.pdfDoc.getPage(num).then(function (page) {
...@@ -117,8 +121,6 @@ ...@@ -117,8 +121,6 @@
} }
) )
let url = '/api/common/file/download?fileName=invoice.pdf'
this.loadFile(url)
} }
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment