|
@@ -43,13 +43,27 @@
|
|
>
|
|
>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
+
|
|
<!-- 刷新 -->
|
|
<!-- 刷新 -->
|
|
<el-row :gutter="10">
|
|
<el-row :gutter="10">
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="infor"
|
|
|
|
+ plain
|
|
|
|
+ icon="el-icon-download"
|
|
|
|
+ size="small"
|
|
|
|
+ @click="handleExportDraw"
|
|
|
|
+ v-hasPermi="['finance:withdraw:export']"
|
|
|
|
+ >导出记录</el-button
|
|
|
|
+ >
|
|
|
|
+ </el-col>
|
|
<right-toolbar
|
|
<right-toolbar
|
|
:showSearch.sync="showSearch"
|
|
:showSearch.sync="showSearch"
|
|
@queryTable="getList"
|
|
@queryTable="getList"
|
|
></right-toolbar>
|
|
></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <br>
|
|
|
|
+
|
|
<!-- 列表状态 -->
|
|
<!-- 列表状态 -->
|
|
<el-tabs type="card" v-model="state" @tab-click="handleClick">
|
|
<el-tabs type="card" v-model="state" @tab-click="handleClick">
|
|
<el-tab-pane label="全部" name="null"></el-tab-pane>
|
|
<el-tab-pane label="全部" name="null"></el-tab-pane>
|
|
@@ -121,7 +135,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { withdrawList, withdrawDetail } from "@/api/finance/withdraw";
|
|
|
|
|
|
+import { withdrawList, withdrawDetail, exchangeWithdrawExport } from "@/api/finance/withdraw";
|
|
import WithdrawDetail from './components/Detail'
|
|
import WithdrawDetail from './components/Detail'
|
|
export default {
|
|
export default {
|
|
name: "Withdraw",
|
|
name: "Withdraw",
|
|
@@ -250,6 +264,29 @@ export default {
|
|
this.detailShow = false;
|
|
this.detailShow = false;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
|
|
+ // 导出订单
|
|
|
|
+ handleExportDraw() {
|
|
|
|
+ this.$confirm("是否确认导出记录?", "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning",
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ this.vloading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: "正在导出记录.....",
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
+ });
|
|
|
|
+ return exchangeWithdrawExport(this.queryParams);
|
|
|
|
+ })
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.vloading.close();
|
|
|
|
+ this.download(response.msg);
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ this.vloading.close();
|
|
|
|
+ });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|