|
@@ -33,7 +33,7 @@
|
|
|
></el-cascader>
|
|
|
<el-button type="primary" @click="search">查询</el-button>
|
|
|
</div>
|
|
|
- <el-table :data="tableData" style="width: 100%">
|
|
|
+ <el-table :data="tableData1" style="width: 100%">
|
|
|
<el-table-column
|
|
|
v-for="i in arr"
|
|
|
:key="i"
|
|
@@ -52,6 +52,7 @@ export default {
|
|
|
return {
|
|
|
props: { multiple: true },
|
|
|
tableData: [{}],
|
|
|
+ tableData1:[],
|
|
|
arr: [],
|
|
|
value: "",
|
|
|
value1: "",
|
|
@@ -99,7 +100,12 @@ export default {
|
|
|
},
|
|
|
search() {
|
|
|
this.$http
|
|
|
- .get(`UnionTable/tableData?tableName=${this.value}&columnsName=${this.value1}`)
|
|
|
+ .post("UnionTable/tableData",
|
|
|
+ {
|
|
|
+ tableName:this.value,
|
|
|
+ columnsName:this.value1,
|
|
|
+ excelData:this.tableData
|
|
|
+ })
|
|
|
.then((res) => {
|
|
|
console.log(res);
|
|
|
})
|