list.vue 22 KB

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