大宝管理后台代码
xxx
dcc
2024-05-07 abcf89c0931fc453f4fd8e1d4d48b8b469d0f3c7
src/views/newshares/newsharesrecord.vue
@@ -182,66 +182,66 @@
          title: '用户名称(ID)',
          dataIndex: 'realName',
          align: 'center',
          scopedSlots: { customRender: 'realName' },
          scopedSlots: { customRender: 'realName' }
        },
        {
          title: '用户手机号',
          dataIndex: 'phone',
          align: 'center',
          align: 'center'
        },
        {
          title: '新股名称',
          dataIndex: 'newName',
          align: 'center',
          align: 'center'
        },
        {
          title: '新股代码',
          dataIndex: 'newCode',
          align: 'center',
          align: 'center'
        },
        {
          title: '买入价格',
          dataIndex: 'buyPrice',
          align: 'center',
          align: 'center'
        },
        {
          title: '保证金',
          dataIndex: 'bond',
          align: 'center',
          align: 'center'
        },
        {
          title: '买入数量',
          dataIndex: 'applyNums',
          align: 'center',
          align: 'center'
        },
        {
          title: '中签数量',
          dataIndex: 'applyNumber',
          align: 'center',
          align: 'center'
        },
        {
          title: '申购时间',
          dataIndex: 'addTime',
          align: 'center',
          align: 'center'
        },
        {
          title: '状态',
          dataIndex: 'status',
          align: 'center',
          scopedSlots: { customRender: 'status' },
          scopedSlots: { customRender: 'status' }
        },
        {
          title: '新股模式',
          dataIndex: 'type',
          align: 'center',
          scopedSlots: { customRender: 'type' },
          scopedSlots: { customRender: 'type' }
        },
        {
          title: '操作',
          key: 'action',
          align: 'center',
          scopedSlots: { customRender: 'action' },
        },
          scopedSlots: { customRender: 'action' }
        }
      ],
      // 表头
      pagination: {
@@ -252,30 +252,30 @@
        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,
        keyword: '',
        keyword: ''
      },
      datalist: [],
      labelCol: {
        xs: { span: 8 },
        sm: { span: 8 },
        md: { span: 8 },
        md: { span: 8 }
      },
      wrapperCol: {
        xs: { span: 14 },
        sm: { span: 14 },
        md: { span: 14 },
        md: { span: 14 }
      },
      addUserform: this.$form.createForm(this),
      addUserdialog: false,
      addUserDialogloading: false,
      fields: ['phone', 'newCode', 'applyNums', 'applyNumber', 'status'],
      currentdetail: '',
      currentdetail: ''
    }
  },
  created() {
@@ -289,7 +289,7 @@
        content: '确认转入持仓吗?此操作不可恢复!',
        onOk() {
          var data = {
            id: val.id,
            id: val.id
          }
          addUserPosition(data).then((res) => {
            if (res.status == 0) {
@@ -302,7 +302,7 @@
        },
        onCancel() {
          console.log('Cancel')
        },
        }
      })
    },
    getdeleteStock(val) {
@@ -312,7 +312,7 @@
        content: '确认删除该新股吗?此操作不可恢复!',
        onOk() {
          var data = {
            id: val.id,
            id: val.id
          }
          delStockSubscribe(data).then((res) => {
            if (res.status == 0) {
@@ -325,7 +325,7 @@
        },
        onCancel() {
          console.log('Cancel')
        },
        }
      })
    },
    geteditStock(val) {
@@ -365,7 +365,7 @@
      this.queryParam = {
        pageNum: 1,
        pageSize: 10,
        keyword: '',
        keyword: ''
      }
    },
    getinit() {
@@ -391,7 +391,7 @@
      this.pagination.current = page
      this.queryParam.pageSize = pageSize
      this.getlist()
    },
  },
    }
  }
}
</script>