|
|
@@ -43,7 +43,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listFastgptFastgptchatartificialwords, getFastgptFastgptchatartificialwords, delFastgptFastgptchatartificialwords, addFastgptFastgptchatartificialwords, updateFastgptFastgptchatartificialwords, exportFastgptFastgptchatartificialwords } from "@/api/fastGpt/fastgptChatArtificialWords";
|
|
|
+import { listFastgptChatArtificialWords, getFastgptChatArtificialWords, delFastgptChatArtificialWords, addFastgptChatArtificialWords, updateFastgptChatArtificialWords, exportFastgptChatArtificialWords } from "@/api/fastGpt/fastgptChatArtificialWords";
|
|
|
|
|
|
export default {
|
|
|
name: "FastgptFastgptchatartificialwords",
|
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
methods: {
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- listFastgptFastgptchatartificialwords(this.queryParams).then(response => {
|
|
|
+ listFastgptChatArtificialWords(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 delFastgptFastgptchatartificialwords(row.id || this.ids);
|
|
|
+ return delFastgptChatArtificialWords(row.id || this.ids);
|
|
|
}).then(() => {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
handleExport() {
|
|
|
- this.download("fastGpt/fastgptChatArtificialWords/export", { ...this.queryParams }, `转人工提示词.xlsx`);
|
|
|
+ exportFastgptChatArtificialWords(this.queryParams).then(response => {
|
|
|
+ this.download(response.msg);
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|