init
This commit is contained in:
@@ -39,10 +39,21 @@
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['xq:userExtend:add']"
|
||||
v-hasPermi="['xq:userExtend:edit']"
|
||||
>收益调整
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleWxTrans"
|
||||
v-hasPermi="['xq:userExtend:edit']"
|
||||
>微信交换次数调整
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
@@ -57,6 +68,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="收益" align="center" prop="incomeCoin"/>
|
||||
<el-table-column label="微信交换次数" align="center" prop="wxTransNum"/>
|
||||
<el-table-column label="消费统计" align="center" prop="consumeTotal"/>
|
||||
<el-table-column label="提现统计" align="center" prop="withdrawTotal"/>
|
||||
</el-table>
|
||||
@@ -70,19 +82,22 @@
|
||||
/>
|
||||
|
||||
<add-account-dialog v-if="addAccountDialogVisible" ref="addAccountDialog" @refreshDataList="getList"/>
|
||||
<add-wx-trans-dialog v-if="addWxTransDialogVisible" ref="addWxTransDialog" @refreshDataList="getList"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listUserExtend } from '@/api/xq/userExtend'
|
||||
import AddAccountDialog from '@/views/xq/userExtend/add-account-dialog.vue'
|
||||
import AddWxTransDialog from '@/views/xq/userExtend/add-wx-trans-dialog.vue'
|
||||
|
||||
export default {
|
||||
name: 'UserExtend',
|
||||
components: { AddAccountDialog },
|
||||
components: { AddAccountDialog,AddWxTransDialog },
|
||||
data() {
|
||||
return {
|
||||
addAccountDialogVisible: false,
|
||||
addWxTransDialogVisible: false,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
@@ -117,6 +132,12 @@ export default {
|
||||
this.$refs.addAccountDialog.init(row?.usercode)
|
||||
})
|
||||
},
|
||||
handleWxTrans(row) {
|
||||
this.addWxTransDialogVisible = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.addWxTransDialog.init(row?.usercode)
|
||||
})
|
||||
},
|
||||
/** 查询用户邀请列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
|
||||
Reference in New Issue
Block a user