提交 50b84d89 编写于 作者: Q qq_36337781

Auto Commit

上级 cd898863
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
<div class="excel-reader"> <div class="excel-reader">
<input type="file" @change="handleFileSelect" /> <input type="file" @change="handleFileSelect" />
<button @click="exportToExcel" >导出</button> <button @click="exportToExcel" >导出</button>
==================================================
<div>单行转换<input type="text" v-model="sqltext" style="margin: 0px 10px;"/>
<button @click="exportToExcelOneline" > 导出单行</button> <br/>
编译后数据 <input type="text" v-model="sqltext2">
</div>
<table> <table>
<thead> <thead>
<tr> <tr>
...@@ -26,10 +32,16 @@ ...@@ -26,10 +32,16 @@
data() { data() {
return { return {
rows: [], rows: [],
headers: [] headers: [],
sqltext:'',
sqltext2:''
}; };
}, },
methods: { methods: {
exportToExcelOneline(){
if(!this.sqltext)return;
this.sqltext2 = this.addCryto(this.sqltext)
},
addCryto(str){ addCryto(str){
let key = '736a6677797130313233343536373839' let key = '736a6677797130313233343536373839'
key = CryptoJS.enc.Hex.parse(key) key = CryptoJS.enc.Hex.parse(key)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册