浏览代码

账号审核修改第一次

cuijunkai 7 月之前
父节点
当前提交
94bc7540a0
共有 1 个文件被更改,包括 30 次插入19 次删除
  1. 30 19
      src/components/examine.vue

+ 30 - 19
src/components/examine.vue

@@ -1,5 +1,8 @@
 <template>
   <div class="table-container">
+    <div class="title_examine">
+      <p style="font-size: 30px;font-weight: 400;margin-left: -91%;padding-top: 20px">账号审核</p>
+  </div>
     <div class="examine">
       <div class="examine_title1">
         <a @click="showPending" :style="{ color: isPending ? 'black' : 'rgb(179, 179, 179)', fontWeight: 'bold' }">待审核({{ tableData.length }})</a>
@@ -332,8 +335,8 @@ export default {
         {
           functionName: "select_requestuser",  // 调用存储过程的名称
           r_type: 0,
-          r_start: 0,
-          r_num: 100,
+          page:1,
+          r_num: 20,
         },
       ];
 
@@ -343,9 +346,9 @@ export default {
           // console.log("返回结果为:", res.data);  // 打印返回的查询结果
 
           this.tableData = res.data[0].map(user => ({
-            company: user.organizeid || '未知', // 组织名称对应 organizeid
-            phone: user.username || '未知', // 用户名对应 username,使用数据库里的username因为有邮箱作为联系方式
-            name: user.alias || '未知', // 真实姓名对应 alias
+            company: user.schoolName || '未知', // 组织名称
+            phone: user.contact_info || '未知', 
+            name: user.name|| '未知', // 真实姓名对应 name
             submission_time: user.create_at || '未知', // 提交时间对应 数据库里的create_at 
             remarks: user.remark || '未知', // 备注内容对应 remark
           })); // 将数据存储到 tableData 中
@@ -366,7 +369,7 @@ export default {
         {
           functionName: "select_requestuser",  // 调用存储过程的名称
           r_type: 1,
-          r_start: 0,
+          page:1,
           r_num: 100,
         },
       ];
@@ -374,9 +377,9 @@ export default {
         .then((res) => {
           // 假设res.data是一个返回已通过的数组
           this.approvedData = res.data[0].map(user => ({
-            company: user.organizeid || '未知', // 组织名称对应 organizeid
-            phone: user.username || '未知', // 用户名对应 username,使用数据库里的username因为有邮箱作为联系方式
-            name: user.alias || '未知', // 真实姓名对应 alias
+            company: user.schoolName || '未知', // 组织名称对应 schoolName
+            phone: user.contact_info || '未知', 
+            name: user.name || '未知', // 真实姓名对应 alias
             submission_time: user.create_at || '未知', // 提交时间对应 数据库里的create_at
             remarks: user.remark || '未知', // 备注内容对应 remark
             Pending_time: user.active_at || '未知', // 处理时间对应 update_time
@@ -400,7 +403,7 @@ export default {
         {
           functionName: "select_requestuser",  // 调用存储过程的名称
           r_type: 2,
-          r_start: 0,
+          page:1,
           r_num: 100,
         },
       ];
@@ -408,9 +411,9 @@ export default {
       this.$ajax.post("http://10.3.16.166:7003/api/pbl/localPost", params)
         .then((res) => {
           this.RefusedData = res.data[0].map(user => ({
-            company: user.organizeid || '未知', // 组织名称对应 organizeid
-            phone: user.username || '未知', // 用户名对应 username,使用数据库里的username因为有邮箱作为联系方式
-            name: user.alias || '未知', // 真实姓名对应 alias
+            company: user.schoolName || '未知', // 组织名称对应 organizeid
+            phone: user.contact_info || '未知', // 用户名对应 username,使用数据库里的username因为有邮箱作为联系方式
+            name: user.name || '未知', // 真实姓名对应 alias
             submission_time: user.create_at || '未知', // 提交时间对应 数据库里的create_at
             remarks: user.remark || '未知', // 备注内容对应 remark
             Pending_time: user.active_at || '未知', // 处理时间对应 update_time
@@ -433,13 +436,13 @@ export default {
         // 假设分别调用待审核、已通过、已拒绝的请求
         Promise.all([
           this.$ajax.post("http://10.3.16.166:7003/api/pbl/localPost", [
-        { functionName: "select_requestuser", r_type: 0, r_start: 0, r_num: 100 }
+        { functionName: "select_requestuser", r_type: 0,page:1,r_num: 100,}
       ]),
           this.$ajax.post("http://10.3.16.166:7003/api/pbl/localPost", [
-        { functionName: "select_requestuser", r_type: 1, r_start: 0, r_num: 100 }
+        { functionName: "select_requestuser", r_type: 1,page:1,r_num: 100, }
       ]),
           this.$ajax.post("http://10.3.16.166:7003/api/pbl/localPost", [
-        { functionName: "select_requestuser", r_type: 2, r_start: 0, r_num: 100 }
+        { functionName: "select_requestuser", r_type: 2,page:1,r_num: 100, }
       ])
     ])
     .then((responses) => {
@@ -453,9 +456,9 @@ export default {
       ];
 
       this.AllData = AllData.map(user => ({
-        company: user.organizeid || '未知',
-        phone: user.username || '未知',
-        name: user.alias || '未知',
+        company: user.schoolName || '未知',
+        phone: user.contact_info || '未知',
+        name: user.name || '未知',
         submission_time: user.create_at || '未知',
         remarks: user.remark || '未知',
         Pending_time: user.active_at || '未知', // 处理时间对应 update_time
@@ -646,6 +649,13 @@ export default {
   /* position: relative; */
 }
 
+/* 账号审核标题样式 */
+.title_examine{
+ width: 100%;
+ height: 100px;
+ background-color: #fff;
+ border-radius: 10px 10px 10px 10px;
+}
 /* 搜索框容器样式 */
 .search-container {
   position: absolute;
@@ -734,6 +744,7 @@ export default {
 .examine {
   width: 55%;
   height: 50px;
+  margin-top: 20px;
   /* border: 1px solid black; */
 }