|
@@ -1588,7 +1588,7 @@
|
|
|
@click="returnTest(scope.row)"
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
- v-if="((examineData && examineData.type == 1) || !examineData) && review == '1'"
|
|
|
+ v-if="((examineData && examineData.type == 1) || !examineData) && review == '1'"
|
|
|
>退回</el-button
|
|
|
>
|
|
|
<!-- v-if="((examineData && examineData.type == 1) || !examineData) && review == '1'" -->
|
|
@@ -2615,22 +2615,38 @@ ${JSON.stringify(forAllList)}
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
- assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
|
|
|
- message: [
|
|
|
- {
|
|
|
- type: "text",
|
|
|
- text: messages.replaceAll("\n", " ").replaceAll("*", "")
|
|
|
- }
|
|
|
- ],
|
|
|
- session_name: uuidv4(),
|
|
|
- userId: this.userid,
|
|
|
- file_ids: '',
|
|
|
- model: "gpt-4o-2024-11-20"
|
|
|
+ id: '978252d7-a26e-4e70-8d75-3336497abac1',
|
|
|
+ message: [
|
|
|
+ {
|
|
|
+ type: "text",
|
|
|
+ text: messages.replaceAll("\n", " ").replaceAll("*", "")
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ userId: this.userid,
|
|
|
+ model: 'open-gpt-4.1',
|
|
|
+ file_ids: [],
|
|
|
+ sound_url: '',
|
|
|
+ temperature: 0.2,
|
|
|
+ top_p: 1,
|
|
|
+ max_completion_tokens: 100000,
|
|
|
+ // uid: _uid,
|
|
|
+ session_name: uuidv4(),
|
|
|
+ // assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
|
|
|
+ // message: [
|
|
|
+ // {
|
|
|
+ // type: "text",
|
|
|
+ // text: messages.replaceAll("\n", " ").replaceAll("*", "")
|
|
|
+ // }
|
|
|
+ // ],
|
|
|
+ // session_name: uuidv4(),
|
|
|
+ // userId: this.userid,
|
|
|
+ // file_ids: '',
|
|
|
+ // model: "gpt-4o-2024-11-20"
|
|
|
};
|
|
|
this.ajax
|
|
|
- .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
|
|
|
+ .post("https://appapi.cocorobo.cn/api/agentchats/ai_agent_chat", params)
|
|
|
.then(response => {
|
|
|
- let data = response.data.FunctionResponse;
|
|
|
+ let data = response.data;
|
|
|
// console.log("data", data.message);
|
|
|
// console.log('kkkk',JSON.parse(data.message));
|
|
|
|
|
@@ -2802,22 +2818,38 @@ ${JSON.stringify(forAllList)}
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
- assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
|
|
|
- message: [
|
|
|
- {
|
|
|
- type: "text",
|
|
|
- text: messages.replaceAll("\n", " ").replaceAll("*", "")
|
|
|
- }
|
|
|
- ],
|
|
|
- session_name: uuidv4(),
|
|
|
- userId: this.userid,
|
|
|
- file_ids: '',
|
|
|
- model: "gpt-4o-2024-11-20"
|
|
|
+ id: '978252d7-a26e-4e70-8d75-3336497abac1',
|
|
|
+ message: [
|
|
|
+ {
|
|
|
+ type: "text",
|
|
|
+ text: messages.replaceAll("\n", " ").replaceAll("*", "")
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ userId: this.userid,
|
|
|
+ model: 'open-gpt-4.1',
|
|
|
+ file_ids: [],
|
|
|
+ sound_url: '',
|
|
|
+ temperature: 0.2,
|
|
|
+ top_p: 1,
|
|
|
+ max_completion_tokens: 100000,
|
|
|
+ // uid: _uid,
|
|
|
+ session_name: uuidv4(),
|
|
|
+ // assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
|
|
|
+ // message: [
|
|
|
+ // {
|
|
|
+ // type: "text",
|
|
|
+ // text: messages.replaceAll("\n", " ").replaceAll("*", "")
|
|
|
+ // }
|
|
|
+ // ],
|
|
|
+ // session_name: uuidv4(),
|
|
|
+ // userId: this.userid,
|
|
|
+ // file_ids: '',
|
|
|
+ // model: "gpt-4o-2024-11-20"
|
|
|
};
|
|
|
this.ajax
|
|
|
- .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
|
|
|
+ .post("https://appapi.cocorobo.cn/api/agentchats/ai_agent_chat", params)
|
|
|
.then(response => {
|
|
|
- let data = response.data.FunctionResponse;
|
|
|
+ let data = response.data;
|
|
|
this.scoList = JSON.parse(data.message)
|
|
|
this.aiscoLoading = false
|
|
|
|
|
@@ -3121,7 +3153,8 @@ ${JSON.stringify(forAllList)}
|
|
|
this.org +
|
|
|
"&type=2" +
|
|
|
"&role=" +
|
|
|
- this.role
|
|
|
+ this.role+
|
|
|
+ "&back=1"
|
|
|
);
|
|
|
},
|
|
|
editTest(row){
|
|
@@ -3138,7 +3171,7 @@ ${JSON.stringify(forAllList)}
|
|
|
this.oid +
|
|
|
"&org=" +
|
|
|
this.org +
|
|
|
- "&type=3" +
|
|
|
+ "&type=2" +
|
|
|
"&role=" +
|
|
|
this.role +
|
|
|
"&back=1"
|
|
@@ -3216,6 +3249,11 @@ ${JSON.stringify(forAllList)}
|
|
|
|
|
|
let _worksData = res.data[1];
|
|
|
|
|
|
+ console.log("_worksData",_worksData)
|
|
|
+
|
|
|
+ if(this.peopleId){
|
|
|
+ _worksData = _worksData.filter(i=>i.userid === this.peopleId)
|
|
|
+ }
|
|
|
// if(this.timeLimit){
|
|
|
// console.log("timeLimit", this.timeLimit)
|
|
|
// // 2024-12-31T16:00:00.000Z,2025-12-31T16:00:00.000Z
|
|
@@ -3650,22 +3688,21 @@ ${JSON.stringify(forAllList)}
|
|
|
if(this.timeLimit){
|
|
|
if(this.works[0]){
|
|
|
let _data = JSON.parse(this.works[0].courseJson)
|
|
|
- let _flag = false;
|
|
|
+ console.log("this.works",this.works)
|
|
|
_data.forEach((item,index)=>{
|
|
|
- if(item.type == 8 && item.json.title == "获奖时间"){
|
|
|
- _flag = true
|
|
|
+ if(item.type == 8){
|
|
|
let time = this.timeLimit.split(",");
|
|
|
this.tableDatePicker[index] = [new Date(time[0]),new Date(time[1])]
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- if(!_flag){
|
|
|
- let time = this.timeLimit.split(",");
|
|
|
- this.submissionTimePicker = [new Date(time[0]),new Date(time[1])];
|
|
|
- this.submissionTimePickerChange()
|
|
|
- }else{
|
|
|
+ // if(!_flag){
|
|
|
+ // let time = this.timeLimit.split(",");
|
|
|
+ // this.submissionTimePicker = [new Date(time[0]),new Date(time[1])];
|
|
|
+ // this.submissionTimePickerChange()
|
|
|
+ // }else{
|
|
|
this.tableDataPickerChange();
|
|
|
- }
|
|
|
+ // }
|
|
|
this.$forceUpdate();
|
|
|
}
|
|
|
}
|
|
@@ -4893,7 +4930,8 @@ ${JSON.stringify(item.array)}
|
|
|
|
|
|
this.ajax.post(this.$store.state.api+"update_testCourseWorks_typeById",params).then(res=>{
|
|
|
if(res.data==1){
|
|
|
- this.tableWorksArray.find(i=>i.id==row.id).type = "4";
|
|
|
+ this.getData();
|
|
|
+ // this.tableWorksArray = this.tableWorksArray.filter(i=>i.id!==row.id);
|
|
|
this.$message.success("表单退回成功");
|
|
|
}
|
|
|
}).catch(e=>{
|