selectAccount.vue 1.92 KB
<template>
  <div>
    <span>
      <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
        <span slot="footer" class="footer-btns">
          <el-button :size="size" type="primary" @click="handleSearch">搜索</el-button>
        </span>
      </glsx-combi-form>
      <GLTable ref="merchantTable" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf">
      </GLTable>
    </span>
  </div>
</template>

<script>
import url from '@/assets/empty.png'
export default {
  name: 'SelectApplication',
  data() {
    return {
      url,
      dialogVisible: false,
      searchForm: {
        merchantName: ''
      },
      searchFormData: [
        {
          label: '关键字:',
          name: 'accountName',
          type: 'input',
          maxlength: 20,
          placeholder: '请输入账户名称或商户号搜索',
          isClear: true
        },
        {
          label: '商户类型:',
          name: 'merchantType',
          type: 'select',
          maxlength: 20,
          placeholder: '全部',
          isClear: true
        }
      ],
      tableParams: {
        listName: 'list',
        tableOption: false,
        tableColumns: [
          {
            label: '账户名称',
            prop: 'accountName',
            line: 2
          },
          {
            label: '商户号',
            prop: 'merchantID',
            line: 2
          },
          {
            label: '商户类型',
            prop: 'merchantType',
            line: 2
          }
        ]
      },
      pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }
    }
  },
  methods: {
    init() {
      this.dialogVisible = true
    },
    handleSearch() {},
    handleClose(done) {
      this.$confirm('确认关闭?')
        .then(_ => {
          done()
        })
        .catch(_ => {})
    }
  }
}
</script>

<style lang="scss" scoped>
</style>