mylist.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658
  1. <template>
  2. <div class="app-container">
  3. <!-- Search Form -->
  4. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="80px">
  5. <el-form-item label="昵称" prop="nickname">
  6. <el-input
  7. style="width: 200px"
  8. v-model="queryParams.nickname"
  9. placeholder="请输入昵称"
  10. clearable
  11. size="small"
  12. @keyup.enter.native="handleQuery"
  13. />
  14. </el-form-item>
  15. <el-form-item label="手机号码" prop="phone">
  16. <el-input
  17. style="width: 200px"
  18. v-model="queryParams.phone"
  19. placeholder="请输入手机号码"
  20. clearable
  21. size="small"
  22. @keyup.enter.native="handleQuery"
  23. />
  24. </el-form-item>
  25. <!-- <el-form-item label="状态" prop="status">-->
  26. <!-- <el-select style="width: 200px" v-model="queryParams.status" placeholder="请选择状态" clearable size="small">-->
  27. <!-- <el-option-->
  28. <!-- v-for="item in statusOptions"-->
  29. <!-- :key="item.dictValue"-->
  30. <!-- :label="item.dictLabel"-->
  31. <!-- :value="item.dictValue"-->
  32. <!-- />-->
  33. <!-- </el-select>-->
  34. <!-- </el-form-item>-->
  35. <!-- <el-form-item label="看课状态" prop="watchCourseType">-->
  36. <!-- <el-select style="width: 200px" v-model="queryParams.watchCourseType" placeholder="请选择看课状态" clearable size="small">-->
  37. <!-- <el-option label="全部" value="0" />-->
  38. <!-- <el-option label="未看过课" value="1" />-->
  39. <!-- <el-option label="正常看课" value="2" />-->
  40. <!-- <el-option label="停止看课" value="3" />-->
  41. <!-- </el-select>-->
  42. <!-- </el-form-item>-->
  43. <!-- <el-form-item label="缺课状态" prop="missCourseStatus">-->
  44. <!-- <el-select style="width: 200px" v-model="queryParams.missCourseStatus" placeholder="请选择缺课状态" clearable size="small">-->
  45. <!-- <el-option label="全部" value="0" />-->
  46. <!-- <el-option label="已缺课" value="1" />-->
  47. <!-- <el-option label="未缺课" value="2" />-->
  48. <!-- </el-select>-->
  49. <!-- </el-form-item>-->
  50. <!-- <el-form-item label="标签" prop="tagIds">-->
  51. <!-- <el-select style="width: 200px" v-model="queryParams.tagIds" placeholder="请选择标签" clearable size="small" multiple>-->
  52. <!-- <el-option-->
  53. <!-- v-for="item in tagOptions"-->
  54. <!-- :key="item.tagId"-->
  55. <!-- :label="item.tagName"-->
  56. <!-- :value="item.tagId"-->
  57. <!-- />-->
  58. <!-- </el-select>-->
  59. <!-- </el-form-item>-->
  60. <el-form-item label="注册时间">
  61. <el-date-picker
  62. v-model="dateRange"
  63. size="small"
  64. style="width: 240px"
  65. type="daterange"
  66. range-separator="-"
  67. start-placeholder="开始日期"
  68. end-placeholder="结束日期"
  69. value-format="yyyy-MM-dd"
  70. ></el-date-picker>
  71. </el-form-item>
  72. <el-form-item>
  73. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  74. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  75. </el-form-item>
  76. </el-form>
  77. <!-- 操作按钮区域 -->
  78. <el-row :gutter="10" class="mb8">
  79. <el-col :span="1.5">
  80. <el-button
  81. type="warning"
  82. icon="el-icon-d-arrow-right"
  83. size="mini"
  84. :disabled="multiple"
  85. @click="handleTransfer"
  86. v-hasPermi="['company:user:transfer']"
  87. >转移</el-button>
  88. </el-col>
  89. </el-row>
  90. <!-- Tab Selection -->
  91. <!-- <el-tabs v-model="queryParams.tabValue" @tab-click="handleTabChange">-->
  92. <!-- <el-tab-pane label="全部" name="0"></el-tab-pane>-->
  93. <!-- <el-tab-pane label="今日新增" name="1"></el-tab-pane>-->
  94. <!-- <el-tab-pane label="今日完播" name="2"></el-tab-pane>-->
  95. <!-- <el-tab-pane label="未看过课" name="3"></el-tab-pane>-->
  96. <!-- </el-tabs>-->
  97. <!-- Toolbar -->
  98. <el-row :gutter="10" class="mb8">
  99. <!-- <el-col :span="1.5">-->
  100. <!-- <el-button-->
  101. <!-- type="primary"-->
  102. <!-- plain-->
  103. <!-- icon="el-icon-plus"-->
  104. <!-- size="mini"-->
  105. <!-- @click="handleAdd"-->
  106. <!-- v-hasPermi="['user:fsUser:add']"-->
  107. <!-- >新增</el-button>-->
  108. <!-- </el-col>-->
  109. <!-- <el-col :span="1.5">-->
  110. <!-- <el-button-->
  111. <!-- type="success"-->
  112. <!-- plain-->
  113. <!-- icon="el-icon-edit"-->
  114. <!-- size="mini"-->
  115. <!-- :disabled="single"-->
  116. <!-- @click="handleUpdate"-->
  117. <!-- v-hasPermi="['user:fsUser:edit']"-->
  118. <!-- >编辑</el-button>-->
  119. <!-- </el-col>-->
  120. <!-- <el-col :span="1.5">-->
  121. <!-- <el-button-->
  122. <!-- type="danger"-->
  123. <!-- plain-->
  124. <!-- icon="el-icon-delete"-->
  125. <!-- size="mini"-->
  126. <!-- :disabled="multiple"-->
  127. <!-- @click="handleDelete"-->
  128. <!-- v-hasPermi="['user:fsUser:remove']"-->
  129. <!-- >删除</el-button>-->
  130. <!-- </el-col>-->
  131. <!-- <el-col :span="1.5">-->
  132. <!-- <el-button-->
  133. <!-- type="warning"-->
  134. <!-- plain-->
  135. <!-- icon="el-icon-download"-->
  136. <!-- size="mini"-->
  137. <!-- @click="handleExport"-->
  138. <!-- v-hasPermi="['user:fsUser:export']"-->
  139. <!-- >导出</el-button>-->
  140. <!-- </el-col>-->
  141. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  142. </el-row>
  143. <!-- User Table -->
  144. <el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange">
  145. <el-table-column type="selection" width="55" align="center" />
  146. <el-table-column label="ID" align="center" prop="userId" />
  147. <el-table-column label="昵称" align="center" prop="nickname" />
  148. <el-table-column label="头像" align="center" width="80">
  149. <template slot-scope="scope">
  150. <el-popover
  151. placement="right"
  152. title=""
  153. trigger="hover"
  154. >
  155. <img slot="reference" :src="scope.row.avatar" width="50">
  156. <img :src="scope.row.avatar" style="max-width: 120px;">
  157. </el-popover>
  158. </template>
  159. </el-table-column>
  160. <el-table-column label="手机号码" align="center" prop="phone" />
  161. <el-table-column label="积分" align="center" prop="integral" v-if="false" />
  162. <el-table-column label="看课数量" align="center" prop="watchCourseCount" />
  163. <el-table-column label="缺课数量" align="center" prop="missCourseCount" />
  164. <el-table-column label="参与营期数量" align="center" prop="partCourseCount" />
  165. <el-table-column label="状态" align="center">
  166. <template slot-scope="scope">
  167. <el-tag :type="scope.row.status === 1 ? 'success' : 'danger'">
  168. {{ scope.row.status === 1 ? '正常' : '禁止' }}
  169. </el-tag>
  170. </template>
  171. </el-table-column>
  172. <el-table-column label="看课状态" align="center">
  173. <template slot-scope="scope">
  174. <el-tag :type="getCourseStatusType(scope.row.courseCountStatus)">
  175. {{ getCourseStatusText(scope.row.courseCountStatus) }}
  176. </el-tag>
  177. </template>
  178. </el-table-column>
  179. <el-table-column label="标签" align="center" prop="tag" show-overflow-tooltip />
  180. <el-table-column label="最后看课时间" align="center" prop="lastWatchDate" width="160" />
  181. <el-table-column label="停课天数" align="center" prop="stopWatchDays" />
  182. <el-table-column label="注册时间" align="center" prop="createTime" width="160" />
  183. <el-table-column label="备注" align="center" prop="remark" show-overflow-tooltip />
  184. <el-table-column label="所属员工" align="center" prop="companyUserNickName" />
  185. <el-table-column label="操作" align="center" width="120" class-name="small-padding fixed-width">
  186. <template slot-scope="scope">
  187. <el-button
  188. size="mini"
  189. type="text"
  190. icon="el-icon-check"
  191. @click="handleAudit(scope.row)"
  192. v-if="scope.row.isCurrentCompanyUser === 1 && scope.row.status === 0"
  193. >审核会员</el-button>
  194. </template>
  195. </el-table-column>
  196. </el-table>
  197. <pagination
  198. v-show="total>0"
  199. :total="total"
  200. :page.sync="queryParams.pageNum"
  201. :limit.sync="queryParams.pageSize"
  202. @pagination="getList"
  203. />
  204. <!-- Edit User Dialog -->
  205. <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
  206. <el-form ref="form" :model="form" :rules="rules" label-width="120px">
  207. <el-form-item label="用户头像" prop="avatar">
  208. <el-popover
  209. placement="right"
  210. title=""
  211. trigger="hover"
  212. >
  213. <img slot="reference" :src="form.avatar" width="80">
  214. <img :src="form.avatar" style="max-width: 120px;">
  215. </el-popover>
  216. </el-form-item>
  217. <el-form-item label="昵称" prop="nickname">
  218. <el-input v-model="form.nickname" placeholder="请输入昵称" />
  219. </el-form-item>
  220. <el-form-item label="手机号码" prop="phone">
  221. <el-input v-model="form.phone" placeholder="请输入手机号码" />
  222. </el-form-item>
  223. <el-form-item label="最后登录IP" prop="lastIp" v-if="form.lastIp">
  224. <el-input v-model="form.lastIp" disabled placeholder="最后一次登录IP" />
  225. </el-form-item>
  226. <el-form-item label="看课数量" prop="watchCourseCount" v-if="form.watchCourseCount">
  227. <el-input v-model="form.watchCourseCount" disabled placeholder="看课数量" />
  228. </el-form-item>
  229. <el-form-item label="缺课数量" prop="missCourseCount" v-if="form.missCourseCount">
  230. <el-input v-model="form.missCourseCount" disabled placeholder="缺课数量" />
  231. </el-form-item>
  232. <el-form-item label="标签" prop="tagIds">
  233. <el-select v-model="form.tagIds" placeholder="请选择标签" clearable multiple>
  234. <el-option
  235. v-for="item in tagOptions"
  236. :key="item.tagId"
  237. :label="item.tagName"
  238. :value="item.tagId"
  239. />
  240. </el-select>
  241. </el-form-item>
  242. <el-form-item label="所属员工" prop="companyUserId">
  243. <el-select v-model="form.companyUserId" placeholder="请选择所属员工" clearable>
  244. <el-option
  245. v-for="item in salesOptions"
  246. :key="item.userId"
  247. :label="item.nickName"
  248. :value="item.userId"
  249. />
  250. </el-select>
  251. </el-form-item>
  252. <el-form-item label="用户备注" prop="remark">
  253. <el-input v-model="form.remark" type="textarea" placeholder="请输入用户备注" />
  254. </el-form-item>
  255. <el-form-item label="状态">
  256. <el-radio-group v-model="form.status">
  257. <el-radio :label="1">正常</el-radio>
  258. <el-radio :label="0">禁止</el-radio>
  259. </el-radio-group>
  260. </el-form-item>
  261. </el-form>
  262. <div slot="footer" class="dialog-footer">
  263. <el-button type="primary" @click="submitForm">确 定</el-button>
  264. <el-button @click="cancel">取 消</el-button>
  265. </div>
  266. </el-dialog>
  267. <!-- 客户转移对话框 (可选,更复杂的转移逻辑可能需要) -->
  268. <el-dialog title="客户转移" :visible.sync="openTransferDialog" width="500px" append-to-body>
  269. <el-form ref="transferForm" :model="transferForm" label-width="100px" :rules="cusTransfer">
  270. <el-alert
  271. title="会经过总后台审核后才进行转移"
  272. type="warning">
  273. </el-alert>
  274. <el-form-item label="转移至销售" prop="targetUserId">
  275. <el-select v-model="transferForm.targetUserId" remote placeholder="请选择" filterable clearable>
  276. <el-option
  277. v-for="dict in companyUserList"
  278. :key="`${dict.nickName} - ${dict.userName}`"
  279. :label="`${dict.nickName} - ${dict.userName}`"
  280. :value="dict.userId">
  281. </el-option>
  282. </el-select>
  283. </el-form-item>
  284. <el-form-item label="转移原因" prop="content">
  285. <el-input type="textarea" v-model="transferForm.content" placeholder="转移原因"></el-input>
  286. </el-form-item>
  287. <p>确定要转移选中的 <strong>{{ ids.length }}</strong> 个客户吗?</p>
  288. </el-form>
  289. <div slot="footer" class="dialog-footer">
  290. <el-button type="danger" @click="submitTransfer">提交申请</el-button>
  291. <el-button @click="cancelTransfer">取 消</el-button>
  292. </div>
  293. </el-dialog>
  294. </div>
  295. </template>
  296. <script>
  297. import { listUser, getUser, addUser, updateUser, delUser, exportUser, auditUser } from "@/api/user/fsUser";
  298. import {transferUser} from "@/api/users/user";
  299. import {getUserList} from "@/api/company/companyUser";
  300. export default {
  301. name: "FsUser",
  302. data() {
  303. return {
  304. cusTransfer: {
  305. targetUserId: [{required: true, message: '请选择转移至销售', trigger: 'change'}],
  306. content: [{required: true, message: '请选择转移至销售', trigger: 'change'}]
  307. },
  308. companyUserList: [],
  309. openTransferDialog: false,
  310. transferForm: {
  311. targetUserId: null,
  312. content: null
  313. },
  314. // 遮罩层
  315. loading: true,
  316. // 选中数组
  317. ids: [],
  318. // 非单个禁用
  319. single: true,
  320. // 非多个禁用
  321. multiple: true,
  322. // 显示搜索条件
  323. showSearch: true,
  324. // 总条数
  325. total: 0,
  326. // 用户表格数据
  327. userList: [],
  328. // 弹出层标题
  329. title: "",
  330. // 是否显示弹出层
  331. open: false,
  332. // 日期范围
  333. dateRange: [],
  334. // 状态数据字典
  335. statusOptions: [],
  336. // 标签选项
  337. tagOptions: [],
  338. // 销售员工选项
  339. salesOptions: [],
  340. // 查询参数
  341. queryParams: {
  342. pageNum: 1,
  343. pageSize: 10,
  344. nickname: null,
  345. phone: null,
  346. // status: null,
  347. tagIds: [],
  348. tabValue: "0",
  349. watchCourseType: "0",
  350. missCourseStatus: "0",
  351. continueMissCourseSort: "0",
  352. registerStartTime: null,
  353. registerEndTime: null
  354. },
  355. // 表单参数
  356. form: {},
  357. // 表单校验
  358. rules: {
  359. nickname: [
  360. { required: true, message: "昵称不能为空", trigger: "blur" }
  361. ],
  362. phone: [
  363. { required: true, message: "手机号码不能为空", trigger: "blur" },
  364. { pattern: /^1[3-9]\d{9}$/, message: "请输入正确的手机号码", trigger: "blur" }
  365. ],
  366. status: [
  367. { required: true, message: "状态不能为空", trigger: "change" }
  368. ]
  369. }
  370. };
  371. },
  372. created() {
  373. getUserList().then(res=>{
  374. if(res.code === 200) {
  375. this.companyUserList = res.data
  376. }
  377. });
  378. this.getList();
  379. this.getDicts("user_status").then(response => {
  380. this.statusOptions = response.data;
  381. });
  382. this.getTagOptions();
  383. this.getSalesOptions();
  384. },
  385. methods: {
  386. /** 提交转移按钮 (如果使用对话框) */
  387. submitTransfer() {
  388. this.$refs["transferForm"].validate(valid => {
  389. if (valid) {
  390. transferUser({
  391. userIds: this.ids,
  392. targetCompanyUserId: this.transferForm.targetUserId,
  393. content: this.transferForm.content
  394. }).then(response => {
  395. if (response.code === 200) {
  396. this.msgSuccess(response.msg);
  397. this.openTransferDialog = false;
  398. this.getList();
  399. } else {
  400. this.msgError(response.msg || "转移失败");
  401. }
  402. }).catch(() => {
  403. this.msgError("转移请求失败");
  404. });
  405. }
  406. });
  407. },
  408. /** 转移按钮操作 */
  409. handleTransfer(row) {
  410. const userIds = row.userId ? [row.userId] : this.ids;
  411. if (userIds.length === 0) {
  412. this.$message.warning("请至少选择一个客户进行转移");
  413. return;
  414. }
  415. this.resetTransferForm();
  416. this.openTransferDialog = true;
  417. },
  418. // 重置表单
  419. resetForm() {
  420. this.linkForm={
  421. days:null,
  422. courseId:null,
  423. videoId:null
  424. }
  425. },
  426. resetTransferForm() {
  427. this.transferForm = {
  428. targetUserId: null,
  429. content: null
  430. };
  431. this.resetForm("transferForm"); // 假设 transferForm 是 el-form 的 ref
  432. },
  433. cancelTransfer() {
  434. this.openTransferDialog = false;
  435. this.resetTransferForm();
  436. },
  437. /** 查询用户列表 */
  438. getList() {
  439. this.loading = true;
  440. // 处理日期范围
  441. if (this.dateRange && this.dateRange.length > 0) {
  442. this.queryParams.registerStartTime = this.dateRange[0];
  443. this.queryParams.registerEndTime = this.dateRange[1];
  444. } else {
  445. this.queryParams.registerStartTime = null;
  446. this.queryParams.registerEndTime = null;
  447. }
  448. listUser(this.queryParams).then(response => {
  449. this.userList = response.rows;
  450. this.total = response.total;
  451. this.loading = false;
  452. });
  453. },
  454. /** 获取标签选项 */
  455. getTagOptions() {
  456. this.tagOptions = [
  457. { tagId: "1", tagName: "VIP会员" },
  458. { tagId: "2", tagName: "普通会员" },
  459. { tagId: "3", tagName: "新用户" },
  460. { tagId: "4", tagName: "高频用户" }
  461. ];
  462. },
  463. /** 获取销售员工选项 */
  464. getSalesOptions() {
  465. this.salesOptions = [
  466. { userId: 1, nickName: "销售A" },
  467. { userId: 2, nickName: "销售B" },
  468. { userId: 3, nickName: "销售C" }
  469. ];
  470. },
  471. /** 获取看课状态类型 */
  472. getCourseStatusType(status) {
  473. if (status === 1) return "success";
  474. if (status === 2) return "danger";
  475. if (status === 3) return "info";
  476. return "";
  477. },
  478. /** 获取看课状态文本 */
  479. getCourseStatusText(status) {
  480. if (status === 1) return "正常看课";
  481. if (status === 2) return "停止看课";
  482. if (status === 3) return "未看过课";
  483. return "未知状态";
  484. },
  485. // 取消按钮
  486. cancel() {
  487. this.open = false;
  488. this.reset();
  489. },
  490. // 表单重置
  491. reset() {
  492. this.form = {
  493. userId: null,
  494. nickname: null,
  495. avatar: null,
  496. phone: null,
  497. status: 1,
  498. tagIds: [],
  499. companyUserId: null,
  500. remark: null
  501. };
  502. this.resetForm("form");
  503. },
  504. /** 搜索按钮操作 */
  505. handleQuery() {
  506. this.queryParams.pageNum = 1;
  507. this.getList();
  508. },
  509. /** 重置按钮操作 */
  510. resetQuery() {
  511. this.dateRange = [];
  512. this.resetForm("queryForm");
  513. this.handleQuery();
  514. },
  515. /** Tab切换操作 */
  516. handleTabChange() {
  517. this.queryParams.pageNum = 1;
  518. this.getList();
  519. },
  520. // 多选框选中数据
  521. handleSelectionChange(selection) {
  522. this.ids = selection.map(item => item.userId);
  523. this.single = selection.length !== 1;
  524. this.multiple = !selection.length;
  525. },
  526. /** 新增按钮操作 */
  527. handleAdd() {
  528. this.reset();
  529. this.open = true;
  530. this.title = "添加用户";
  531. },
  532. /** 修改按钮操作 */
  533. handleUpdate(row) {
  534. this.reset();
  535. const userId = row.userId || this.ids[0];
  536. getUser(userId).then(response => {
  537. this.form = response.data;
  538. // 处理标签数据,将字符串转为数组
  539. if (this.form.tagIds && typeof this.form.tagIds === 'string') {
  540. this.form.tagIds = this.form.tagIds.split(',');
  541. }
  542. this.open = true;
  543. this.title = "修改用户";
  544. });
  545. },
  546. /** 提交按钮 */
  547. submitForm() {
  548. this.$refs["form"].validate(valid => {
  549. if (valid) {
  550. // 处理标签数据,将数组转为字符串
  551. if (this.form.tagIds && Array.isArray(this.form.tagIds)) {
  552. this.form.tagIds = this.form.tagIds.join(',');
  553. }
  554. if (this.form.userId != null) {
  555. updateUser(this.form).then(response => {
  556. if (response.code === 200) {
  557. this.$message.success("修改成功");
  558. this.open = false;
  559. this.getList();
  560. }
  561. });
  562. } else {
  563. addUser(this.form).then(response => {
  564. if (response.code === 200) {
  565. this.$message.success("新增成功");
  566. this.open = false;
  567. this.getList();
  568. }
  569. });
  570. }
  571. }
  572. });
  573. },
  574. /** 删除按钮操作 */
  575. handleDelete(row) {
  576. const userIds = row.userId || this.ids;
  577. this.$confirm('是否确认删除用户编号为"' + userIds + '"的数据项?', "警告", {
  578. confirmButtonText: "确定",
  579. cancelButtonText: "取消",
  580. type: "warning"
  581. }).then(() => {
  582. return delUser(userIds);
  583. }).then(() => {
  584. this.getList();
  585. this.$message.success("删除成功");
  586. }).catch(() => {});
  587. },
  588. /** 导出按钮操作 */
  589. handleExport() {
  590. const queryParams = this.queryParams;
  591. this.$confirm('是否确认导出所有用户数据项?', "警告", {
  592. confirmButtonText: "确定",
  593. cancelButtonText: "取消",
  594. type: "warning"
  595. }).then(() => {
  596. return exportUser(queryParams);
  597. }).then(response => {
  598. this.download(response.msg);
  599. }).catch(() => {});
  600. },
  601. /** 审核会员操作 */
  602. handleAudit(row) {
  603. this.$confirm('是否确认将其移除小黑屋?', "提示", {
  604. confirmButtonText: "确定",
  605. cancelButtonText: "取消",
  606. type: "warning"
  607. }).then(() => {
  608. auditUser([row.userId]).then(response => {
  609. if (response.code === 200) {
  610. this.msgSuccess("审核成功");
  611. this.getList();
  612. }
  613. });
  614. }).catch(() => {});
  615. }
  616. }
  617. };
  618. </script>
  619. <style scoped>
  620. .el-tag + .el-tag {
  621. margin-left: 5px;
  622. }
  623. .mb8 {
  624. margin-bottom: 8px;
  625. }
  626. </style>