瀏覽代碼

no message

linwenxin 1 年之前
父節點
當前提交
5563e0d5ed
共有 2 個文件被更改,包括 82 次插入0 次删除
  1. 17 0
      src/api/dealerHistoryWalletBalance2.js
  2. 65 0
      src/views/finance/dealerHistoryWalletBalance2.vue

+ 17 - 0
src/api/dealerHistoryWalletBalance2.js

@@ -0,0 +1,17 @@
+import request, { postBlob } from '@/utils/request'
+
+export function walletHistoryList(params) {
+  return request({
+    url: `/wallet/history/list?moduleId=${params.moduleId}`,
+    method: 'post',
+    data: params
+  })
+}
+
+export function walletHistoryListExport(data, name) {
+  return postBlob({
+    url: '/wallet/history/list/export',
+    data,
+    name
+  })
+}

+ 65 - 0
src/views/finance/dealerHistoryWalletBalance2.vue

@@ -0,0 +1,65 @@
+<template>
+  <template-page
+    v-if="isShow"
+    ref="pageRef"
+    :getList="getList"
+    :exportList="exportList"
+    :optionsEvensGroup="optionsEvensGroup"
+    :columnParsing="columnParsing"
+  >
+    <div slot="moreSearch">
+      <el-date-picker
+        v-model="time"
+        type="datetime"
+        value-format="yyyy-MM-dd HH:mm:ss"
+        placeholder="选择日期时间"
+        @change="()=>{
+          isShow = false
+          $nextTick(()=>{
+            isShow = true
+          })
+        }">
+      </el-date-picker>
+      <br><br>
+    </div>
+  </template-page>
+</template>
+
+<script>
+import TemplatePage from '@/components/template/template-page-1.vue'
+import {
+  walletHistoryList,
+  walletHistoryListExport
+} from '@/api/dealerHistoryWalletBalance2'
+export default {
+  components: { TemplatePage },
+  data() {
+    return {
+      // 事件组合
+      optionsEvensGroup: [],
+      // 表格属性
+      tableAttributes: {
+      }, 
+      // 表格事件
+      tableEvents: {
+      },
+      time: "",
+      isShow: true
+    }
+  },
+  methods: {
+    // 列表请求函数
+    getList(p) {
+      return walletHistoryList({...p, time:this.time})
+    },
+    // 列表导出函数
+    exportList: walletHistoryListExport,
+    // 表格列解析渲染数据更改
+    columnParsing(item, defaultData) {
+      return defaultData
+    },
+  }
+}
+</script>
+
+<style lang="scss" scoped></style>