大宝管理后台代码
xxx
dcc
2024-05-07 abcf89c0931fc453f4fd8e1d4d48b8b469d0f3c7
src/views/allotment/leversetting.vue
@@ -119,29 +119,29 @@
        {
          title: '杠杆(倍数)',
          dataIndex: 'lever',
          align: 'center',
          align: 'center'
        },
        {
          title: '管理费率(%)',
          dataIndex: 'manageRate',
          align: 'center',
          align: 'center'
        },
        {
          title: '单股持仓比例(%)',
          dataIndex: 'singleHoldingRatio',
          align: 'center',
          align: 'center'
        },
        {
          title: '周期类型',
          dataIndex: 'cycle_type',
          align: 'center',
          scopedSlots: { customRender: 'cycle_type' },
          scopedSlots: { customRender: 'cycle_type' }
        },
        {
          title: '配资状态',
          dataIndex: 'status',
          align: 'center',
          scopedSlots: { customRender: 'status' },
          scopedSlots: { customRender: 'status' }
        },
        {
          title: '添加时间',
@@ -149,14 +149,14 @@
          align: 'center',
          customRender: (text, row, index) => {
            return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : ''
          },
          }
        },
        {
          title: '操作',
          key: 'action',
          align: 'center',
          scopedSlots: { customRender: 'action' },
        },
          scopedSlots: { customRender: 'action' }
        }
      ],
      // 表头
      pagination: {
@@ -166,12 +166,12 @@
        pageSizeOptions: ['10', '20', '50', '100'], // 每页中显示的数据
        onShowSizeChange: (current, pageSize) => this.onSizeChange(current, pageSize), // 改变每页数量时更新显示
        onChange: (page, pageSize) => this.onPageChange(page, pageSize), // 点击页码事件
        showTotal: (total) => `共有 ${total} 条数据`, // 分页中显示总的数据
        showTotal: (total) => `共有 ${total} 条数据` // 分页中显示总的数据
      },
      loading: false,
      queryParam: {
        pageNum: 1,
        pageSize: 10,
        pageSize: 10
      },
      datalist: [],
      addUserdialog: false,
@@ -179,14 +179,14 @@
      addUserform: this.$form.createForm(this),
      labelCol: {
        xs: { span: 24 },
        sm: { span: 7 },
        sm: { span: 7 }
      },
      wrapperCol: {
        xs: { span: 24 },
        sm: { span: 13 },
        sm: { span: 13 }
      },
      fields: ['cycleType', 'lever', 'manageRate', 'singleHoldingRatio', 'status'],
      currentDetails: '',
      currentDetails: ''
    }
  },
  created() {
@@ -195,7 +195,7 @@
  filters: {
    statusFilter(status) {
      return status == 2 ? '按周配资' : status == 3 ? '按月配资' : '按天配资'
    },
    }
  },
  methods: {
    geteditganggan(val) {
@@ -252,7 +252,7 @@
      this.queryParam.pageNum = current
      this.queryParam.pageSize = pageSize
      this.getlist()
    },
  },
    }
  }
}
</script>