feat:
1. add marketinfo
This commit is contained in:
@@ -2,7 +2,7 @@ import request from '@/axios';
|
|||||||
|
|
||||||
export const getList = (current, size, params) => {
|
export const getList = (current, size, params) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/market-info/list',
|
url: '/market-info/page',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
...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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,10 @@ export default {
|
|||||||
searchMenuSpan: 6,
|
searchMenuSpan: 6,
|
||||||
border: true,
|
border: true,
|
||||||
index: true,
|
index: true,
|
||||||
viewBtn: true,
|
viewBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
addBtn: false,
|
||||||
|
delBtn: false,
|
||||||
selection: true,
|
selection: true,
|
||||||
dialogClickModal: false,
|
dialogClickModal: false,
|
||||||
column: [
|
column: [
|
||||||
@@ -14,118 +17,50 @@ export default {
|
|||||||
label: "主键",
|
label: "主键",
|
||||||
prop: "id",
|
prop: "id",
|
||||||
type: "input",
|
type: "input",
|
||||||
addDisplay: false,
|
|
||||||
editDisplay: false,
|
|
||||||
viewDisplay: false,
|
|
||||||
hide: true,
|
hide: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "账号",
|
||||||
|
prop: "account",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "用户注册日期",
|
||||||
|
prop: "userCreateTime",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "邀请人",
|
label: "邀请人",
|
||||||
prop: "pid",
|
prop: "invitor",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "邀请人注册日期",
|
||||||
|
prop: "invitorCreateTime",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "是否同步族谱 0-否 1-是",
|
label: "实名",
|
||||||
prop: "synchronized",
|
prop: "realName",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "身份证",
|
||||||
|
prop: "idNumber",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "是否成为服务商 0-否 1-是",
|
label: "服务商",
|
||||||
prop: "vendor",
|
prop: "vendor",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "是否签署法大大协议 0-否 1-是",
|
label: "用户状态",
|
||||||
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: "状态",
|
|
||||||
prop: "status",
|
prop: "status",
|
||||||
type: "input",
|
type: "input",
|
||||||
addDisplay: false,
|
|
||||||
editDisplay: false,
|
|
||||||
viewDisplay: false,
|
|
||||||
hide: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "是否已删除",
|
|
||||||
prop: "isDeleted",
|
|
||||||
type: "input",
|
|
||||||
addDisplay: false,
|
|
||||||
editDisplay: false,
|
|
||||||
viewDisplay: false,
|
|
||||||
hide: true,
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,24 +20,74 @@
|
|||||||
@refresh-change="refreshChange"
|
@refresh-change="refreshChange"
|
||||||
@on-load="onLoad">
|
@on-load="onLoad">
|
||||||
<template #menu-left>
|
<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"
|
<el-button type="warning"
|
||||||
plain
|
plain
|
||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
@click="handleExport">导 出
|
@click="handleExport">导 出
|
||||||
</el-button>
|
</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>
|
</template>
|
||||||
</avue-crud>
|
</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>
|
</basic-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<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 option from "@/option/market/marketInfo";
|
||||||
import {mapGetters} from "vuex";
|
import {mapGetters} from "vuex";
|
||||||
import {exportBlob} from "@/api/common";
|
import {exportBlob} from "@/api/common";
|
||||||
@@ -61,7 +111,8 @@
|
|||||||
},
|
},
|
||||||
selectionList: [],
|
selectionList: [],
|
||||||
option: option,
|
option: option,
|
||||||
data: []
|
data: [],
|
||||||
|
username: "用户账号"
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
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) {
|
beforeOpen(done, type) {
|
||||||
if (["edit", "view"].includes(type)) {
|
if (["edit", "view"].includes(type)) {
|
||||||
getDetail(this.form.id).then(res => {
|
getDetail(this.form.id).then(res => {
|
||||||
@@ -202,14 +274,7 @@
|
|||||||
},
|
},
|
||||||
onLoad(page, params = {}) {
|
onLoad(page, params = {}) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
|
||||||
const {
|
|
||||||
} = this.query;
|
|
||||||
|
|
||||||
let values = {
|
|
||||||
};
|
|
||||||
|
|
||||||
getList(page.currentPage, page.pageSize, values).then(res => {
|
|
||||||
const data = res.data.data;
|
const data = res.data.data;
|
||||||
this.page.total = data.total;
|
this.page.total = data.total;
|
||||||
this.data = data.records;
|
this.data = data.records;
|
||||||
|
|||||||
Reference in New Issue
Block a user