浏览代码

吉农宝

hanfucheng 1 年之前
父节点
当前提交
2cd4b212ac

+ 9 - 0
src/api/my/nameAuthentication.js

@@ -35,6 +35,15 @@ export function updateNameAuthentication(data) {
   })
 }
 
+// 审核
+export function through(data) {
+  return request({
+    url: '/nameAuthentication/through',
+    method: 'put',
+    data: data
+  })
+}
+
 // 删除实名认证
 export function delNameAuthentication(id) {
   return request({

+ 9 - 0
src/api/my/officialAuthentication.js

@@ -42,3 +42,12 @@ export function delOfficialAuthentication(id) {
     method: 'delete'
   })
 }
+
+// 审核
+export function through(data) {
+  return request({
+    url: '/officialAuthentication/through',
+    method: 'put',
+    data: data
+  })
+}

+ 2 - 2
src/views/my/nameAuthentication.vue

@@ -172,7 +172,7 @@
 </template>
 
 <script>
-import { listNameAuthentication, getNameAuthentication, delNameAuthentication, addNameAuthentication, updateNameAuthentication } from "@/api/my/nameAuthentication";
+import { listNameAuthentication, getNameAuthentication, delNameAuthentication, addNameAuthentication, updateNameAuthentication,through } from "@/api/my/nameAuthentication";
 
 export default {
   name: "NameAuthentication",
@@ -318,7 +318,7 @@ export default {
     /** 审核通过 */
     through(status) {
       this.form1.status = status;
-      updateNameAuthentication(this.form1).then(response => {
+      through(this.form1).then(response => {
         this.open1 = false;
         this.getList();
       });

+ 2 - 2
src/views/my/officialAuthentication.vue

@@ -181,7 +181,7 @@
 </template>
 
 <script>
-import { listOfficialAuthentication, getOfficialAuthentication, delOfficialAuthentication, addOfficialAuthentication, updateOfficialAuthentication } from "@/api/my/officialAuthentication";
+import { listOfficialAuthentication, getOfficialAuthentication, delOfficialAuthentication, addOfficialAuthentication, updateOfficialAuthentication,through } from "@/api/my/officialAuthentication";
 
 export default {
   name: "OfficialAuthentication",
@@ -318,7 +318,7 @@ export default {
     /** 审核通过 */
     through(status) {
       this.form1.status = status;
-      updateOfficialAuthentication(this.form1).then(response => {
+      through(this.form1).then(response => {
         this.open1 = false;
         this.getList();
       });