1. add marketinfo
This commit is contained in:
2026-02-07 16:52:27 +08:00
parent 8bbe91bec6
commit 6cc3d45fa6
3 changed files with 124 additions and 114 deletions

View File

@@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-info/list',
url: '/market-info/page',
method: 'get',
params: {
...params,
@@ -48,3 +48,13 @@ export const update = (row) => {
})
}
export const resetPassword = userIds => {
return request({
url: '/market-info/reset-password',
method: 'post',
params: {
userIds,
},
});
};

View File

@@ -6,7 +6,10 @@ export default {
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
viewBtn: false,
editBtn: false,
addBtn: false,
delBtn: false,
selection: true,
dialogClickModal: false,
column: [
@@ -14,118 +17,50 @@ export default {
label: "主键",
prop: "id",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "账号",
prop: "account",
type: "input",
search: true,
},
{
label: "用户注册日期",
prop: "userCreateTime",
type: "input",
},
{
label: "邀请人",
prop: "pid",
prop: "invitor",
type: "input",
search: true,
},
{
label: "邀请人注册日期",
prop: "invitorCreateTime",
type: "input",
},
{
label: "是否同步族谱 0-否 1-是",
prop: "synchronized",
label: "实名",
prop: "realName",
type: "input",
search: true,
},
{
label: "身份证",
prop: "idNumber",
type: "input",
},
{
label: "是否成为服务商 0-否 1-是",
label: "服务商",
prop: "vendor",
type: "input",
},
{
label: "是否签署法大大协议 0-否 1-是",
prop: "eSigned",
type: "input",
},
{
label: "电子合同地址",
prop: "eSignedUrl",
type: "input",
},
{
label: "是否实名用户 0-否 1-是",
prop: "verified",
type: "input",
},
{
label: "实名时间",
prop: "verifiedDate",
type: "input",
},
{
label: "实名姓名",
prop: "realName",
type: "input",
},
{
label: "实名身份证",
prop: "idCard",
type: "input",
},
{
label: "创建人",
prop: "createUser",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "创建部门",
prop: "createDept",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "创建时间",
prop: "createTime",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "修改人",
prop: "updateUser",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "修改时间",
prop: "updateTime",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "状态",
label: "用户状态",
prop: "status",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "是否已删除",
prop: "isDeleted",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
]
}

View File

@@ -20,24 +20,74 @@
@refresh-change="refreshChange"
@on-load="onLoad">
<template #menu-left>
<el-button type="danger"
icon="el-icon-delete"
plain
v-if="permission.marketInfo_delete"
@click="handleDelete">删 除
</el-button>
<el-button type="warning"
plain
icon="el-icon-download"
@click="handleExport">导 出
</el-button>
<el-button
type="info"
plain
v-if="permission.user_reset && !auditMode"
icon="el-icon-refresh"
@click="handleReset">密码重置
</el-button>
</template>
<template #menu="{ row }">
<el-button type="text"
icon="el-icon-circle-check"
v-if="row.paymentType === 99 && row.orderStatus === 0"
@click.stop="handleConfirm(row)">团队详情
</el-button>
</template>
</avue-crud>
<!-- <el-drawer :title="`${username} ${serialNumber} `" v-model="subVisible" :direction="direction"-->
<!-- append-to-body-->
<!-- :before-close="handleSubClose" size="90%">-->
<!-- <el-tag size="large" :type="notes ? 'danger' : 'info'" effect="dark">-->
<!-- {{ notes || 'No special notes.' }}-->
<!-- </el-tag>-->
<!-- <basic-container>-->
<!-- <avue-crud :option="optionSub"-->
<!-- :data="dataSub"-->
<!-- v-model:page="pageSub"-->
<!-- v-model="formSub"-->
<!-- :table-loading="loadingSub"-->
<!-- ref="crudSub"-->
<!-- @row-del="rowDelSub"-->
<!-- @row-update="rowUpdateSub"-->
<!-- @row-save="rowSaveSub"-->
<!-- :before-open="beforeOpenSub"-->
<!-- @search-change="searchChangeSub"-->
<!-- @search-reset="searchResetSub"-->
<!-- @selection-change="selectionChangeSub"-->
<!-- @current-change="currentChangeSub"-->
<!-- @size-change="sizeChangeSub"-->
<!-- @on-load="onLoadSub">-->
<!-- <template #menu="{ row }">-->
<!-- <el-button type="text"-->
<!-- icon="el-icon-folder"-->
<!-- @click.stop="handleAssets(row)">Assets-->
<!-- </el-button>-->
<!-- <el-button type="text"-->
<!-- icon="el-icon-download"-->
<!-- v-if="row.status === 1"-->
<!-- @click.stop="handleDownload(row)">Download-->
<!-- </el-button>-->
<!-- <el-button type="text"-->
<!-- icon="el-icon-finished"-->
<!-- v-if="row.status === 1"-->
<!-- @click.stop="handleDone(row)">Done-->
<!-- </el-button>-->
<!-- </template>-->
<!-- </avue-crud>-->
<!-- </basic-container>-->
<!-- </el-drawer>-->
</basic-container>
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketInfo";
import {getList, getDetail, add, update, remove, resetPassword} from "@/api/market/marketInfo";
import option from "@/option/market/marketInfo";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
@@ -61,7 +111,8 @@
},
selectionList: [],
option: option,
data: []
data: [],
username: "用户账号"
};
},
computed: {
@@ -166,6 +217,27 @@
})
});
},
handleReset() {
if (this.selectionList.length === 0) {
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm('确定将选择账号密码重置为初始密码?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return resetPassword(this.ids);
})
.then(() => {
this.$message({
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
getDetail(this.form.id).then(res => {
@@ -202,14 +274,7 @@
},
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
let values = {
};
getList(page.currentPage, page.pageSize, values).then(res => {
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;