|
|
@@ -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);
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|