|
@@ -50,7 +50,7 @@
|
|
|
</el-form>
|
|
|
<div style="text-align: right;display:inline-block;width:100%">
|
|
|
<el-button v-if="isMainMessageTotal || isAccountPerspective || isOpponentPerspective" type="success" size="mini" @click="searchDataNormal(1)">搜索</el-button>
|
|
|
- <el-button v-if="isOpponentPerspectiveAndAccount" type="success" size="mini" @click="sortDataNormal(1)">排序</el-button>
|
|
|
+ <el-button v-if="isOpponentPerspectiveAndAccount" type="success" size="mini" :disabled="!(fileContent&&fileContent.result&&fileContent.result.length>0)" @click="sortDataNormal(1)">排序</el-button>
|
|
|
<el-button v-if="isMainMessageTotal || isAccountPerspective || isOpponentPerspective" type="primary" size="mini" @click="exportFileSearch(1)">导出</el-button>
|
|
|
<el-button v-if="!(isMainMessageTotal || isAccountPerspective || isOpponentPerspective)" type="primary" size="mini" @click="exportFile(1)">导出</el-button>
|
|
|
<el-button v-if="isMainMessageTotal" type="success" size="mini" @click="viewDetailHandle(1)">交易明细</el-button>
|
|
@@ -320,6 +320,11 @@ export default {
|
|
|
},
|
|
|
// 排序
|
|
|
sortDataNormal() {
|
|
|
+ console.log(this.headerSortValue)
|
|
|
+ if(!this.headerSortValue){
|
|
|
+ this.$message({ type: "warning", message: "排序字段不能为空,请选择需要排序的字段" });
|
|
|
+ return
|
|
|
+ }
|
|
|
let tempObj = {}
|
|
|
this.sortList = []
|
|
|
if(this.sortList.length > 1){
|