| | |
| | | <script> |
| | | // import { data } from 'jquery'; |
| | | export default { |
| | | props: ['data','title'], |
| | | props: ['data','execlTitle'], |
| | | data() { |
| | | return { |
| | | } |
| | |
| | | templateWrite() { |
| | | if(this.data!=null&&this.data!=''){ |
| | | let option = JSON.parse(this.data) |
| | | option.title = this.title |
| | | option.title = this.execlTitle |
| | | luckysheet.create(option) |
| | | }else{ |
| | | console.log(this.execlTitle); |
| | | $(function() { |
| | | //配置项 |
| | | var options = { |
| | | container: 'luckysheet', |
| | | title: this.title, |
| | | title: this.execlTitle, |
| | | lang: "zh", |
| | | showsheetbar: false, |
| | | showstatisticBarConfig: { |
| | |
| | | myFolderUrl: 'http://127.0.0.1/', |
| | | functionButton: '<button onClick="excelClosed()" class="save">保存</button>' |
| | | } |
| | | options.title = this.execlTitle |
| | | luckysheet.create(options) |
| | | }) |
| | | } |