|
|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
|
|
<el-form-item label="用户类型" prop="userType">
|
|
|
|
|
<el-select v-model="queryParams.userType" @keyup.enter.native="handleQuery" style="width: 50%">
|
|
|
|
|
<el-option label="全部"></el-option>
|
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
|
<el-option label="会员" :value="1"></el-option>
|
|
|
|
|
<el-option label="游客" :value="0"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
@ -175,38 +175,6 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- plain-->
|
|
|
|
|
<!-- icon="el-icon-plus"-->
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
<!-- @click="handleAdd"-->
|
|
|
|
|
<!-- v-hasPermi="['system:member:add']"-->
|
|
|
|
|
<!-- >新增</el-button>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="success"-->
|
|
|
|
|
<!-- plain-->
|
|
|
|
|
<!-- icon="el-icon-edit"-->
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
<!-- :disabled="single"-->
|
|
|
|
|
<!-- @click="handleUpdate"-->
|
|
|
|
|
<!-- v-hasPermi="['system:member:edit']"-->
|
|
|
|
|
<!-- >修改</el-button>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="danger"-->
|
|
|
|
|
<!-- plain-->
|
|
|
|
|
<!-- icon="el-icon-delete"-->
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
<!-- :disabled="multiple"-->
|
|
|
|
|
<!-- @click="handleDelete"-->
|
|
|
|
|
<!-- v-hasPermi="['system:member:remove']"-->
|
|
|
|
|
<!-- >删除</el-button>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="warning"-->
|
|
|
|
|
<!-- plain-->
|
|
|
|
|
<!-- icon="el-icon-download"-->
|
|
|
|
|
@ -221,61 +189,70 @@
|
|
|
|
|
<el-table v-loading="loading" :data="memberList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
|
<el-table-column label="头像" align="center">
|
|
|
|
|
<el-avatar shape="circle" :size="50" :src="headimg"/>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-avatar shape="circle" :size="50" :src="scope.row.headimg"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="会员昵称" align="center" prop="nickname"/>
|
|
|
|
|
<el-table-column label="用户编号" align="center" prop="id"/>
|
|
|
|
|
<el-table-column label="手机号码" align="center" prop="mobile"/>
|
|
|
|
|
<el-table-column label="生日" align="center" prop="birthday"/>
|
|
|
|
|
<el-table-column label="手机号码" align="center" prop="mobile" width="120px"/>
|
|
|
|
|
<el-table-column label="生日" align="center" prop="birthday" width="120px"/>
|
|
|
|
|
<el-table-column label="省" align="center" prop="province"/>
|
|
|
|
|
<el-table-column label="市" align="center" prop="city"/>
|
|
|
|
|
<el-table-column label="区" align="center" prop="area"/>
|
|
|
|
|
<el-table-column label="信息完善" align="center" prop="isCompleteInformation"/>
|
|
|
|
|
<el-table-column label="用户注册时间" align="center" prop="createTime"/>
|
|
|
|
|
<el-table-column label="信息完善" align="center" prop="isCompleteInformation">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-show="scope.row.isCompleteInformation == 0">未完善</span>
|
|
|
|
|
<span v-show="scope.row.isCompleteInformation == 1">完善</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="用户注册时间" align="center" prop="createTime" width="200px"/>
|
|
|
|
|
<el-table-column label="仪器数量" align="center" prop="devicesNum"/>
|
|
|
|
|
<el-table-column label="小程序标签" align="center" prop=""/>
|
|
|
|
|
<el-table-column label="企微标签" align="center" prop=""/>
|
|
|
|
|
<el-table-column label="是否对接" align="center" prop="is_abutment"/>
|
|
|
|
|
<el-table-column label="是否对接" align="center" prop="is_abutment">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-show="scope.row.isAbutment == 1">未对接</span>
|
|
|
|
|
<span v-show="scope.row.isAbutment == 2">已对接</span>
|
|
|
|
|
<span v-show="scope.row.isAbutment == 3">对接失败</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="积分" align="center" prop="credit"/>
|
|
|
|
|
<el-table-column label="即将过期积分" align="center" prop=""/>
|
|
|
|
|
<el-table-column label="用户类型" align="center" prop="userType"/>
|
|
|
|
|
<el-table-column label="用户类型" align="center" prop="userType">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-show="scope.row.userType == 0">游客</span>
|
|
|
|
|
<span v-show="scope.row.userType == 1">会员</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="unionid" align="center" prop="unionid"/>
|
|
|
|
|
<el-table-column label="用户权限" align="center" prop=""/>
|
|
|
|
|
<el-table-column label="消息列表" align="center" prop=""/>
|
|
|
|
|
<el-table-column label="用户权限" align="center" prop="">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-show="scope.row.clock == 1">开启打卡</span>
|
|
|
|
|
<span v-show="scope.row.clock == 2">禁止打卡</span>
|
|
|
|
|
<span v-show="scope.row.activity == 1">开启活动</span>
|
|
|
|
|
<span v-show="scope.row.activity == 2">禁止活动</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="消息列表" align="center" prop="">
|
|
|
|
|
<span>查看详情</span>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['system:member:edit']"
|
|
|
|
|
>查看
|
|
|
|
|
<el-button size="mini" type="text" @click="handleUpdate(scope.row)" v-hasPermi="['system:member:edit']">查看
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
>开启打卡
|
|
|
|
|
<el-button v-if="scope.row.clock == 1" size="mini" type="text" @click="openOrCloseClock(scope.row)">禁止打卡
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
>开启活动
|
|
|
|
|
<el-button v-if="scope.row.clock == 2" size="mini" type="text" @click="openOrCloseClock(scope.row)">开启打卡
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
>个人信息同步
|
|
|
|
|
<el-button v-if="scope.row.activity == 1" size="mini" type="text" @click="openOrCloseActivity(scope.row)">
|
|
|
|
|
禁止活动
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
>积分同步
|
|
|
|
|
<el-button v-if="scope.row.activity == 2" size="mini" type="text" @click="openOrCloseActivity(scope.row)">
|
|
|
|
|
开启活动
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="mini" type="text">个人信息同步</el-button>
|
|
|
|
|
<el-button size="mini" type="text">积分同步</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
@ -395,7 +372,8 @@
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="ocEditRemarkDialog(scope.row)">编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="submitDelRemark(scope.row)">删除</el-button>
|
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="submitDelRemark(scope.row)">删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
@ -591,6 +569,7 @@ import {
|
|
|
|
|
getMiniProgramTagsTree,
|
|
|
|
|
scriptTreeSelect,
|
|
|
|
|
editRemark, delRemark,
|
|
|
|
|
openOrCloseClock, openOrCloseActivity,
|
|
|
|
|
} from "@/api/system/member";
|
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
|
import {tagTreeSelect} from "@/api/system/wechatTab";
|
|
|
|
|
@ -1114,6 +1093,49 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 开关打卡
|
|
|
|
|
openOrCloseClock(row) {
|
|
|
|
|
let spanContent;
|
|
|
|
|
if (row.clock == 1) {
|
|
|
|
|
spanContent = "确定将选择的数据禁止打卡?";
|
|
|
|
|
} else {
|
|
|
|
|
spanContent = "确定将选择的数据开启打卡?";
|
|
|
|
|
}
|
|
|
|
|
this.$confirm("<span style='font-size: 18px'><strong>" + spanContent + "</strong></span><br/><span style='padding-left:2em'>请谨慎操作,一旦成功将无法撤销。</span>", '注销账号', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning',
|
|
|
|
|
dangerouslyUseHTMLString: true
|
|
|
|
|
}).then(() => {
|
|
|
|
|
openOrCloseClock(row.id).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("操作成功");
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 开关活动
|
|
|
|
|
openOrCloseActivity(row) {
|
|
|
|
|
let spanContent;
|
|
|
|
|
if (row.activity == 1) {
|
|
|
|
|
spanContent = "确定将选择的数据禁止活动?";
|
|
|
|
|
} else {
|
|
|
|
|
spanContent = "确定将选择的数据开启活动?";
|
|
|
|
|
}
|
|
|
|
|
this.$confirm("<span style='font-size: 18px'><strong>" + spanContent + "</strong></span><br/><span style='padding-left:2em'>请谨慎操作,一旦成功将无法撤销。</span>", '注销账号', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning',
|
|
|
|
|
dangerouslyUseHTMLString: true
|
|
|
|
|
}).then(() => {
|
|
|
|
|
openOrCloseActivity(row.id).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("操作成功");
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
submitForm() {
|
|
|
|
|
if (this.form.id != null) {
|
|
|
|
|
@ -1225,9 +1247,9 @@ export default {
|
|
|
|
|
if (this.form.wxUserRemarkList != null && this.form.wxUserRemarkList.length > 0) {
|
|
|
|
|
let that = this;
|
|
|
|
|
this.form.wxUserRemarkList.forEach(function (item) {
|
|
|
|
|
if(item.id = that.editRemarkForm.id) {
|
|
|
|
|
item.content = that.editRemarkForm.content;
|
|
|
|
|
}
|
|
|
|
|
if (item.id = that.editRemarkForm.id) {
|
|
|
|
|
item.content = that.editRemarkForm.content;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.ocEditRemarkDialog();
|
|
|
|
|
@ -1245,7 +1267,7 @@ export default {
|
|
|
|
|
this.$modal.msgSuccess("删除用户备注成功");
|
|
|
|
|
let list = this.form.wxUserRemarkList;
|
|
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
|
|
|
if(list[i].id == row.id) {
|
|
|
|
|
if (list[i].id == row.id) {
|
|
|
|
|
this.form.wxUserRemarkList.splice(i, 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|