From c66654e2a64fff2848f8aa25547324e55c8572d1 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期四, 25 四月 2024 17:06:24 +0800
Subject: [PATCH] su

---
 src/views/system/biapqianzidian/index.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/views/system/biapqianzidian/index.vue b/src/views/system/biapqianzidian/index.vue
index bfeda84..6fe6c91 100644
--- a/src/views/system/biapqianzidian/index.vue
+++ b/src/views/system/biapqianzidian/index.vue
@@ -196,7 +196,8 @@
   getInfo,
   addTjAdviceKjbq,
   updateTjAdviceKjbq,
-  updateQybzTjAdviceKjbqById
+  updateQybzTjAdviceKjbqById,
+  deletedTjAdviceKjbq
 } from "@/api/system/biaoqianzidian";
 
 export default {
@@ -291,6 +292,9 @@
             1;
         });
         this.biaoqianList = response.data.records;
+        // this.biaoqianList.forEach(item=>{
+        //     console.log(this.biaoqianList);
+        // })
         this.total = response.data.total;
         this.loading = false;
       });
@@ -298,11 +302,12 @@
     // 寮�鍏充簨浠�
     changeSwitch(row) {
       this.rows = row;
+      let qybz = row.qyzt;
       let text = row.qyzt === "0" ? "鍚敤" : "鍋滅敤";
       this.$modal
         .confirm('纭瑕�"' + text + '""' + row.kjbq + '"妯℃澘鍚楋紵')
         .then(function () {
-          return updateQybzTjAdviceKjbqById(row.id, row.qyzt);
+          return updateQybzTjAdviceKjbqById(row.id, qybz);
         })
         .then(() => {
           this.$modal.msgSuccess(text + "鎴愬姛");
@@ -372,9 +377,9 @@
     handleDelete(row) {
       const ids = row.id || this.ids;
       this.$modal
-        .confirm('鏄惁纭鍒犻櫎浣撴娴佹按缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�')
+        .confirm('鏄惁纭鍒犻櫎鏍囩瀛楀吀缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�')
         .then(function () {
-          return delSendTemplate(ids);
+          return deletedTjAdviceKjbq(ids);
         })
         .then(() => {
           this.getList();

--
Gitblit v1.8.0