From c24f01e317c68e8d490af53210cee83d46297e20 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Sun, 06 Jul 2025 15:33:16 +0800
Subject: [PATCH] 1
---
src/views/logolog/index.vue | 123 ++++++++++++++++++----------------------
1 files changed, 56 insertions(+), 67 deletions(-)
diff --git a/src/views/managesettings/managelist.vue b/src/views/logolog/index.vue
similarity index 74%
rename from src/views/managesettings/managelist.vue
rename to src/views/logolog/index.vue
index d920e6e..457fc94 100644
--- a/src/views/managesettings/managelist.vue
+++ b/src/views/logolog/index.vue
@@ -5,13 +5,8 @@
<a-form layout="inline">
<a-row :gutter="48">
<a-col :md="12" :lg="6" :sm="24">
- <a-form-item label="管理员姓名">
- <a-input v-model="queryParam.adminName" style="width: 100%" placeholder="请输入管理员姓名" />
- </a-form-item>
- </a-col>
- <a-col :md="12" :lg="6" :sm="24">
- <a-form-item label="手机号">
- <a-input v-model="queryParam.adminPhone" style="width: 100%" placeholder="请输入手机号" />
+ <a-form-item label="用户ID">
+ <a-input v-model="queryParam.userId" style="width: 100%" placeholder="请输入用户ID" />
</a-form-item>
</a-col>
<a-col :md="12" :lg="6" :sm="24">
@@ -23,11 +18,8 @@
icon="search"
style="margin-left: 8px"
@click=";(queryParam.pageNum = 1), getlist()"
- >查询
+ >查询
</a-button>
- <a-button type="primary" icon="plus" style="margin-left: 8px" @click="addUserdialog = true">
- 添加管理</a-button
- >
</span>
</a-form-item>
</a-col>
@@ -74,10 +66,10 @@
@cancel="CanceladdUserdialog"
>
<a-form :form="addUserform" ref="addUserform">
- <a-form-item label="管理员名" :labelCol="labelCol" :wrapperCol="wrapperCol">
+ <a-form-item label="用户ID" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input
- placeholder="请输入管理员名"
- v-decorator="['adminName', { rules: [{ required: true, message: '请输入管理员名' }] }]"
+ placeholder="请输入用户ID"
+ v-decorator="['id', { rules: [{ required: true, message: '请输入用户ID' }] }]"
/>
</a-form-item>
<a-form-item label="管理员手机号" :labelCol="labelCol" :wrapperCol="wrapperCol">
@@ -91,15 +83,6 @@
placeholder="请输入管理员密码"
v-decorator="['adminPwd', { rules: [{ required: true, message: '请输入管理员密码' }] }]"
/>
- </a-form-item>
- <a-form-item label="管理员状态" :labelCol="labelCol" :wrapperCol="wrapperCol">
- <a-select
- placeholder="请选择管理员状态"
- v-decorator="['isLock', { rules: [{ required: true, message: '请选择管理员状态' }] }]"
- >
- <a-select-option value="0">正常</a-select-option>
- <a-select-option value="1">锁定</a-select-option>
- </a-select>
</a-form-item>
</a-form>
</a-modal>
@@ -131,48 +114,42 @@
</page-header-wrapper>
</template>
<script>
-import { adminlist, adminupdateLock, adminadd, adminupdate } from '@/api/managesettings'
+import { adminlist, adminupdateLock, adminadd, adminupdate,agentgetAgentInfo } from '@/api/soure'
import moment from 'moment'
export default {
name: 'Shares',
- data() {
+ data () {
return {
columns: [
{
title: 'id',
- dataIndex: 'id',
- align: 'center',
+ dataIndex: 'userId',
+ align: 'center'
},
{
- title: '管理员姓名',
- dataIndex: 'adminName',
- align: 'center',
+ title: '用户名',
+ dataIndex: 'userName',
+ align: 'center'
},
{
- title: '管理员手机号',
- dataIndex: 'adminPhone',
- align: 'center',
+ title: '操作金额',
+ dataIndex: 'money',
+ align: 'center'
},
{
- title: '管理员状态',
- dataIndex: 'isLock',
+ title: '资产账户类型',
+ dataIndex: 'userAccectType',
align: 'center',
- scopedSlots: { customRender: 'isLock' },
+ scopedSlots: { customRender: 'userAccectType' }
},
{
- title: '注册时间',
- dataIndex: 'addTime',
+ title: '操作时间',
+ dataIndex: 'createTime',
align: 'center',
customRender: (text, row, index) => {
return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : ''
- },
- },
- {
- title: '操作',
- key: 'action',
- align: 'center',
- scopedSlots: { customRender: 'action' },
+ }
},
],
// 表头
@@ -183,49 +160,60 @@
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,
- adminName: '',
- adminPhone: '',
+ userId: '',
+ agentId:'',
},
datalist: [],
labelCol: {
xs: { span: 24 },
- sm: { span: 7 },
+ sm: { span: 7 }
},
wrapperCol: {
xs: { span: 24 },
- sm: { span: 13 },
+ sm: { span: 13 }
},
addUserform: this.$form.createForm(this),
addUserdialog: false,
addUserDialogloading: false,
-
+ userdetail:'',
editStockdialog: false,
editStockdialogloading: false,
editStockform: this.$form.createForm(this),
- fields: ['id', 'adminPwd'],
+ fields: ['id', 'adminPwd']
}
},
- created() {
- this.getlist()
+ created () {
+ this.getAgentInfo()
},
methods: {
- geteditStock(val) {
+ // 获取代理信息
+ getAgentInfo () {
+ agentgetAgentInfo().then((res) => {
+ if (res.status == 0) {
+ this.userdetail = res.data
+ this.getlist()
+ // this.gettotalprice()
+ // this.wapurl = location.protocol + '//' + location.host + '/#/register?agentCode=' + this.userdetail.agentCode
+ }
+ })
+ },
+ geteditStock (val) {
this.editStockdialog = true
this.fields.forEach((v) => this.editStockform.getFieldDecorator(v))
this.editStockform.setFieldsValue({ id: val.id })
},
- CanceleditStockdialog() {
+ CanceleditStockdialog () {
this.editStockdialog = false
const form = this.$refs.editStockform.form
form.resetFields()
},
- OkeditStockdialog() {
+ OkeditStockdialog () {
const form = this.$refs.editStockform.form
form.validateFields((errors, values) => {
if (!errors) {
@@ -246,13 +234,13 @@
})
},
// 新增用户取消弹窗
- CanceladdUserdialog() {
+ CanceladdUserdialog () {
this.addUserdialog = false
const form = this.$refs.addUserform.form
form.resetFields()
},
// 新增用户确定
- OkaddUserdialog() {
+ OkaddUserdialog () {
const form = this.$refs.addUserform.form
form.validateFields((errors, values) => {
if (!errors) {
@@ -271,16 +259,17 @@
}
})
},
- getqueryParam() {
+ getqueryParam () {
this.queryParam = {
pageNum: 1,
pageSize: 10,
adminName: '',
- adminPhone: '',
+ adminPhone: ''
}
},
- getlist() {
+ getlist () {
this.loading = true
+ this.queryParam.agent = this.userdetail.id
adminlist(this.queryParam).then((res) => {
this.datalist = res.data.list
this.pagination.total = res.data.total
@@ -288,7 +277,7 @@
})
},
// 股票的锁定解锁
- getisLock(idval, isLockval) {
+ getisLock (idval, isLockval) {
adminupdateLock({ adminId: idval }).then((res) => {
if (res.status === 0) {
this.getlist()
@@ -302,15 +291,15 @@
}
})
},
- 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>
--
Gitblit v1.9.3