大宝管理后台代码
xxx
dcc
2024-05-07 abcf89c0931fc453f4fd8e1d4d48b8b469d0f3c7
src/views/allsetting/paysetting.vue
@@ -230,44 +230,44 @@
        {
          title: '通道类型',
          dataIndex: 'channelType',
          align: 'center',
          align: 'center'
        },
        {
          title: '图片',
          dataIndex: 'channelImg',
          align: 'center',
          scopedSlots: { customRender: 'channelImg' },
          scopedSlots: { customRender: 'channelImg' }
        },
        {
          title: '通道名字',
          dataIndex: 'channelName',
          align: 'center',
          align: 'center'
        },
        {
          title: '账号',
          dataIndex: 'channelAccount',
          align: 'center',
          align: 'center'
        },
        {
          title: '描述',
          dataIndex: 'channelDesc',
          align: 'center',
          align: 'center'
        },
        {
          title: '最小充值金额',
          dataIndex: 'channelMinLimit',
          align: 'center',
          align: 'center'
        },
        {
          title: '最大充值金额',
          dataIndex: 'channelMaxLimit',
          align: 'center',
          align: 'center'
        },
        {
          title: '是否显示',
          dataIndex: 'isShow',
          align: 'center',
          scopedSlots: { customRender: 'isShow' },
          scopedSlots: { customRender: 'isShow' }
        },
        {
          title: '操作',
@@ -275,8 +275,8 @@
          align: 'center',
          fixed: 'right',
          width: 200,
          scopedSlots: { customRender: 'action' },
        },
          scopedSlots: { customRender: 'action' }
        }
      ],
      // 表头
      pagination: {
@@ -286,13 +286,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,
        channelType: '',
        channelType: ''
      },
      datalist: [],
@@ -301,11 +301,11 @@
      addUserform: this.$form.createForm(this),
      labelCol: {
        xs: { span: 24 },
        sm: { span: 6 },
        sm: { span: 6 }
      },
      wrapperCol: {
        xs: { span: 24 },
        sm: { span: 18 },
        sm: { span: 18 }
      },
      fields: [
        'channelType',
@@ -320,11 +320,11 @@
        'assetsType',
        'channelImg',
        'code',
        'formUrl',
        'formUrl'
      ],
      currentDetails: '',
      channelImg: '',
      imgloading: false,
      imgloading: false
    }
  },
  created() {
@@ -338,7 +338,7 @@
        content: '确认删除该支付渠道?此操作不可恢复',
        onOk() {
          var data = {
            cId: val,
            cId: val
          }
          paydel(data).then((res) => {
            if (res.status == 0) {
@@ -351,7 +351,7 @@
        },
        onCancel() {
          console.log('Cancel')
        },
        }
      })
    },
    customRequest(data) {
@@ -362,7 +362,7 @@
        if (res.status == 0) {
          this.channelImg = res.data.url
          this.addUserform.setFieldsValue({
            channelImg: res.data.url,
            channelImg: res.data.url
          })
        } else {
          this.$message.error({ content: '上传失败请检查图片类型!' })
@@ -425,7 +425,7 @@
      this.queryParam = {
        pageNum: 1,
        pageSize: 10,
        channelType: '',
        channelType: ''
      }
    },
    getlist() {
@@ -444,8 +444,8 @@
      this.queryParam.pageNum = current
      this.queryParam.pageSize = pageSize
      this.getlist()
    },
  },
    }
  }
}
</script>
<style scoped>