|
|
@@ -74,12 +74,13 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div>
|
|
|
+ <el-button type="primary" size="small" @click="InvitationAIInsertResource">添加入资料库</el-button>
|
|
|
<el-button type="primary" size="small" @click="BusinessSynchronizationWrite" >行程单位传递</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="AIKeyWords">AI关键字设置</el-button>
|
|
|
<!-- <el-button type="primary" size="small" @click="InvitationAICompleteText" >AI续查</el-button> -->
|
|
|
+ <el-button type="primary" size="small" @click="InvitationAISearchStreamProgress">AI重新搜索公务方/机构(覆盖)</el-button>
|
|
|
<el-button type="primary" size="small" @click="InvitationAICompleteTextStream" >AI续查</el-button>
|
|
|
<!-- <el-button type="primary" size="small" @click="InvitationAISearch">AI重新搜索公务方/机构(覆盖)</el-button> -->
|
|
|
- <el-button type="primary" size="small" @click="InvitationAISearchStreamProgress">AI重新搜索公务方/机构(覆盖)</el-button>
|
|
|
- <el-button type="primary" size="small" @click="AIKeyWords">AI关键字设置</el-button>
|
|
|
<el-button type="primary" size="small" @click="InvitationAIFileGenerator">下载文件</el-button>
|
|
|
<!-- <el-button type="primary" size="small" @click="InvitationAIGenerateEmail">AI生成邮件</el-button> -->
|
|
|
<el-button type="primary" size="small" @click="InvitationAIGenerateEmailStream">AI生成邮件</el-button>
|
|
|
@@ -579,7 +580,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- //流式(AI重新搜索公务方/机构(覆盖))
|
|
|
+ //流式(生成邮件)
|
|
|
InvitationAIGenerateEmailStream() {
|
|
|
var guids=[];
|
|
|
for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
|
@@ -810,6 +811,53 @@ export default {
|
|
|
that.InvitationAIItemByName();
|
|
|
});
|
|
|
},
|
|
|
+ //添加资料库
|
|
|
+ InvitationAIInsertResource() {
|
|
|
+ var guids=[];
|
|
|
+ for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
|
+ guids.push(this.multipleSelection[i].guid);
|
|
|
+ }
|
|
|
+ if (guids.length==0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: '请选择需要添加的资料!'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.RequestAccessLoading=true;
|
|
|
+ var url = "/api/Resource/InvitationAIInsertResource"
|
|
|
+ var that = this
|
|
|
+ new Promise(function (resolve, reject) {
|
|
|
+ that.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer '
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ id: that.Id,
|
|
|
+ currUserId: that.userid,
|
|
|
+ guids:guids
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.$message({
|
|
|
+ message: res.data.msg,
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ resolve();
|
|
|
+ } else {
|
|
|
+ that.RequestAccessLoading=false;
|
|
|
+ that.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: res.data.msg
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }).then(() => {
|
|
|
+ that.InvitationAIItemByName();
|
|
|
+ });
|
|
|
+ },
|
|
|
//发送邮件
|
|
|
InvitationAISeedEmail() {
|
|
|
var guids=[];
|
|
|
@@ -831,6 +879,7 @@ export default {
|
|
|
method: 'post',
|
|
|
url: url,
|
|
|
headers: {
|
|
|
+
|
|
|
Authorization: 'Bearer '
|
|
|
},
|
|
|
data: {
|
|
|
@@ -873,7 +922,6 @@ export default {
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
var url = "/api/Resource/InvitationAISingleDel"
|
|
|
var that = this
|
|
|
new Promise(function (resolve, reject) {
|