xgb 1 هفته پیش
والد
کامیت
5a859cc1be
1فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 6 4
      src/views/fastGpt/fastGptChatReplaceWords/index.vue

+ 6 - 4
src/views/fastGpt/fastGptChatReplaceWords/index.vue

@@ -43,7 +43,7 @@
 </template>
 
 <script>
-import { listFastgptFastgptchatreplacewords, getFastgptFastgptchatreplacewords, delFastgptFastgptchatreplacewords, addFastgptFastgptchatreplacewords, updateFastgptFastgptchatreplacewords, exportFastgptFastgptchatreplacewords } from "@/api/fastGpt/fastGptChatReplaceWords";
+import { listFastGptChatReplaceWords, getFastGptChatReplaceWords, delFastGptChatReplaceWords, addFastGptChatReplaceWords, updateFastGptChatReplaceWords, exportFastGptChatReplaceWords } from "@/api/fastGpt/fastGptChatReplaceWords";
 
 export default {
   name: "FastgptFastgptchatreplacewords",
@@ -69,7 +69,7 @@ export default {
   methods: {
     getList() {
       this.loading = true;
-      listFastgptFastgptchatreplacewords(this.queryParams).then(response => {
+      listFastGptChatReplaceWords(this.queryParams).then(response => {
         this.list = response.rows;
         this.total = response.total;
         this.loading = false;
@@ -96,14 +96,16 @@ export default {
     },
     handleDelete(row) {
       this.$modal.confirm("是否确认删除?").then(() => {
-        return delFastgptFastgptchatreplacewords(row.id || this.ids);
+        return delFastGptChatReplaceWords(row.id || this.ids);
       }).then(() => {
         this.getList();
         this.$modal.msgSuccess("删除成功");
       }).catch(() => {});
     },
     handleExport() {
-      this.download("fastGpt/fastGptChatReplaceWords/export", { ...this.queryParams }, `违规词语.xlsx`);
+      exportFastGptChatReplaceWords(this.queryParams).then(response => {
+        this.download(response.msg);
+      });
     }
   }
 };