| | |
| | | <a-col :md="24" :xxl="6" :sm="24"> |
| | | <a-form-item> |
| | | <span class="table-page-search-submitButtons" style="white-space: wrap"> |
| | | <a-button type="primary" icon="search" @click=";(queryParam.pageNum = 1), getlist()" |
| | | >查询 |
| | | <a-button |
| | | type="primary" |
| | | icon="search" |
| | | @click=";(queryParam.pageNum = 1), getlist()" |
| | | >查询 |
| | | </a-button> |
| | | <a-button @click="getqueryParam" style="margin-left: 8px" icon="redo"> 重置</a-button> |
| | | </span> |
| | |
| | | <span slot="fundsType" slot-scope="text, record"> |
| | | <template> |
| | | <div> |
| | | <a-tag :color="record.fundsType == 0 ? 'blue' : record.fundsType == 1 ? 'green' : 'red'" |
| | | >{{ record.fundsType | statusFilter }} |
| | | <a-tag |
| | | :color="record.fundsType == 0 ? 'blue' : record.fundsType == 1 ? 'green' : 'red'" |
| | | >{{ record.fundsType | statusFilter }} |
| | | </a-tag> |
| | | </div> |
| | | </template> |
| | |
| | | <span slot="status" slot-scope="text, record"> |
| | | <template> |
| | | <div> |
| | | <a-tag :color="record.status == 0 ? 'blue' : record.status == 1 ? 'green' : 'red'" |
| | | >{{ record.status == 0 ? '审核中' : record.status == 1 ? '已通过' : '未通过' }} |
| | | <a-tag |
| | | :color="record.status == 0 ? 'blue' : record.status == 1 ? 'green' : 'red'" |
| | | >{{ record.status == 0 ? '审核中' : record.status == 1 ? '已通过' : '未通过' }} |
| | | </a-tag> |
| | | </div> |
| | | </template> |
| | |
| | | href="javascript:;" |
| | | @click="onUser(record)" |
| | | v-if="record.status == 0 && record.appendType == 1" |
| | | >扩大资金修改</a |
| | | >扩大资金修改</a |
| | | > |
| | | <a |
| | | slot="action" |
| | | href="javascript:;" |
| | | @click="onUser(record)" |
| | | v-if="record.status == 0 && record.appendType == 2" |
| | | >追加保证金修改</a |
| | | >追加保证金修改</a |
| | | > |
| | | <a |
| | | slot="action" |
| | | href="javascript:;" |
| | | @click="onUser(record)" |
| | | v-if="record.status == 0 && record.appendType == 3" |
| | | >续期修改</a |
| | | >续期修改</a |
| | | > |
| | | <a |
| | | slot="action" |
| | | href="javascript:;" |
| | | @click="onUser(record)" |
| | | v-if="record.status == 0 && record.appendType == 4" |
| | | >终止操盘修改</a |
| | | >终止操盘修改</a |
| | | > |
| | | </template> |
| | | </a-table> |
| | |
| | | import moment from 'moment' |
| | | export default { |
| | | name: 'Setting', |
| | | data() { |
| | | data () { |
| | | return { |
| | | columns: [ |
| | | { |
| | |
| | | dataIndex: 'userName', |
| | | align: 'center', |
| | | width: 150, |
| | | fixed: 'left', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '手机号', |
| | | dataIndex: 'userPhone', |
| | | align: 'center', |
| | | width: 150, |
| | | fixed: 'left', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '申请时长(天)', |
| | |
| | | align: 'center', |
| | | customRender: (text, row, index) => { |
| | | return this.queryParam.appendType == 3 ? text : '--' |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '申请服务费', |
| | |
| | | align: 'center', |
| | | customRender: (text, row, index) => { |
| | | return this.queryParam.appendType != 2 ? text : '--' |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '原保证金', |
| | | dataIndex: 'margin', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '追加保证金', |
| | |
| | | align: 'center', |
| | | customRender: (text, row, index) => { |
| | | return this.queryParam.appendType == 2 ? text : '--' |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '原操盘金额', |
| | | dataIndex: 'totalTradingAmount', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '配资倍数', |
| | | dataIndex: 'lever', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | |
| | | { |
| | | title: '配资金额', |
| | | dataIndex: 'fundsAmount', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '预警线', |
| | | dataIndex: 'lineWarning', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '止损线', |
| | | dataIndex: 'lineUnwind', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '使用时长', |
| | | dataIndex: 'tradersCycle', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '配资类型', |
| | | dataIndex: 'fundsType', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'fundsType' }, |
| | | scopedSlots: { customRender: 'fundsType' } |
| | | }, |
| | | { |
| | | title: '状态', |
| | | dataIndex: 'status', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'status' }, |
| | | scopedSlots: { customRender: 'status' } |
| | | }, |
| | | { |
| | | title: '申请时间', |
| | |
| | | width: 200, |
| | | customRender: (text, row, index) => { |
| | | return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : '' |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '终止时间', |
| | |
| | | width: 200, |
| | | customRender: (text, row, index) => { |
| | | return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : '' |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '操作', |
| | |
| | | align: 'center', |
| | | width: 150, |
| | | fixed: 'right', |
| | | scopedSlots: { customRender: 'action' }, |
| | | }, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | // 表头 |
| | | pagination: { |
| | |
| | | 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: { |
| | |
| | | pageSize: 10, |
| | | keyword: '', |
| | | status: 0, |
| | | appendType: 1, |
| | | appendType: 1 |
| | | }, |
| | | datalist: [], |
| | | currentDetails: '', |
| | |
| | | addUserform: this.$form.createForm(this), |
| | | addUserdialog: false, |
| | | addUserDialogloading: false, |
| | | modeldetail: '', |
| | | modeldetail: '' |
| | | } |
| | | }, |
| | | created() { |
| | | created () { |
| | | this.getlist() |
| | | }, |
| | | watch: { |
| | | currentDetails(val) { |
| | | currentDetails (val) { |
| | | if (this.currentDetails.appendType == 2) { |
| | | this.auditTitle = '追加保证金审核' |
| | | } else if (this.currentDetails.appendType == 3) { |
| | |
| | | } else { |
| | | this.auditTitle = '扩大配资审核' |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | filters: { |
| | | statusFilter(status) { |
| | | statusFilter (status) { |
| | | return status == 2 ? '按周配资' : status == 3 ? '按月配资' : '按天配资' |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | CanceladdUserdialog() { |
| | | CanceladdUserdialog () { |
| | | this.addUserdialog = false |
| | | const form = this.$refs.addUserform.form |
| | | form.resetFields() |
| | | this.currentDetails = '' |
| | | this.modeldetail = '' |
| | | }, |
| | | OkaddUserdialog() { |
| | | OkaddUserdialog () { |
| | | const form = this.$refs.addUserform.form |
| | | form.validateFields((errors, values) => { |
| | | if (!errors) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | onUser(val) { |
| | | onUser (val) { |
| | | this.currentDetails = val |
| | | this.applydetail() |
| | | }, |
| | | applydetail() { |
| | | applydetail () { |
| | | var data = { |
| | | id: this.currentDetails.id, |
| | | id: this.currentDetails.id |
| | | } |
| | | applygetAppendDetail(data).then((res) => { |
| | | if (res.status == 0) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | getqueryParam() { |
| | | getqueryParam () { |
| | | this.queryParam = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | keyword: '', |
| | | status: 0, |
| | | appendType: 1, |
| | | appendType: 1 |
| | | } |
| | | }, |
| | | getlist() { |
| | | getlist () { |
| | | var that = this |
| | | this.loading = true |
| | | getAppendList(this.queryParam).then((res) => { |
| | |
| | | }, 500) |
| | | }) |
| | | }, |
| | | onPageChange(page, pageSize) { |
| | | onPageChange (page, pageSize) { |
| | | this.queryParam.pageNum = page |
| | | this.getlist() |
| | | }, |
| | | onSizeChange(current, pageSize) { |
| | | onSizeChange (current, pageSize) { |
| | | this.queryParam.pageNum = current |
| | | this.queryParam.pageSize = pageSize |
| | | this.getlist() |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |