From 81e8974f3544d7e58d528c2df973f7486809482c Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 09 Sep 2021 17:40:31 +0800
Subject: [PATCH] 保安员管理

---
 src/views/securityGuard/securityGuardDetail.vue |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/views/securityGuard/securityGuardDetail.vue b/src/views/securityGuard/securityGuardDetail.vue
index f4141d8..fca1bbd 100644
--- a/src/views/securityGuard/securityGuardDetail.vue
+++ b/src/views/securityGuard/securityGuardDetail.vue
@@ -103,10 +103,10 @@
 
 import {
   getPerformanceInfo,
-  add,
-  update,
-  page,
-  remove,
+  trackRecordadd,
+  trackRecordupdate,
+  trackRecordpage,
+  trackRecordremove,
   getER,
 } from "@/api/performance/performance";
 
@@ -286,7 +286,7 @@
       var param = {
         securityid: this.id,
       };
-      page(this.current, this.size, param).then((res2) => {
+      trackRecordpage(this.current, this.size, param).then((res2) => {
         const data = res2.data.data;
         this.page2.total = data.total;
         this.data2 = data.records;
@@ -297,7 +297,7 @@
 
     rowSave2(form, done, loading) {
       form.securityid = this.id;
-      add(form).then(
+      trackRecordadd(form).then(
         (res) => {
           this.getPerformancePageInfo(this.page2);
           this.$message({
@@ -334,7 +334,7 @@
     },
     rowUpdate2(row, index, done, loading) {
       row.securityid = this.id;
-      update(row).then(
+      trackRecordupdate(row).then(
         () => {
           this.getPerformancePageInfo(this.page2);
           this.$message({
@@ -373,7 +373,7 @@
         type: "warning",
       })
         .then(() => {
-          return remove(row.id);
+          return trackRecordremove(row.id);
         })
         .then(() => {
           this.getPerformancePageInfo(this.page2);

--
Gitblit v1.9.3