大宝管理后台代码
xxx
dcc
2024-05-07 abcf89c0931fc453f4fd8e1d4d48b8b469d0f3c7
src/views/risksetting/spreadsetting.vue
@@ -136,34 +136,34 @@
        {
          title: '类型名称',
          dataIndex: 'typeName',
          align: 'center',
          align: 'center'
        },
        {
          title: '单位',
          dataIndex: 'unit',
          align: 'center',
          align: 'center'
        },
        {
          title: '开始区间',
          dataIndex: 'startInterval',
          align: 'center',
          align: 'center'
        },
        {
          title: '值',
          dataIndex: 'zhi',
          align: 'center',
          scopedSlots: { customRender: 'zhi' },
          scopedSlots: { customRender: 'zhi' }
        },
        {
          title: '结束区间',
          dataIndex: 'endInterval',
          align: 'center',
          align: 'center'
        },
        {
          title: '点差费率',
          dataIndex: 'spreadRate',
          align: 'center',
          scopedSlots: { customRender: 'spreadRate' },
          scopedSlots: { customRender: 'spreadRate' }
        },
        {
          title: '添加时间',
@@ -172,7 +172,7 @@
          width: 180,
          customRender: (text, row, index) => {
            return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : ''
          },
          }
        },
        {
          title: '操作',
@@ -180,8 +180,8 @@
          align: 'center',
          fixed: 'right',
          width: 150,
          scopedSlots: { customRender: 'action' },
        },
          scopedSlots: { customRender: 'action' }
        }
      ],
      // 表头
      pagination: {
@@ -191,13 +191,13 @@
        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,
        typeName: undefined,
        typeName: undefined
      },
      datalist: [],
@@ -206,14 +206,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: ['typeName', 'unit', 'startInterval', 'endInterval', 'spreadRate'],
      currentDetails: '',
      currentDetails: ''
    }
  },
  created() {
@@ -270,7 +270,7 @@
      this.queryParam = {
        pageNum: 1,
        pageSize: 10,
        typeName: undefined,
        typeName: undefined
      }
    },
    getlist() {
@@ -289,8 +289,8 @@
      this.queryParam.pageNum = current
      this.queryParam.pageSize = pageSize
      this.getlist()
    },
  },
    }
  }
}
</script>
<style scoped>