diff --git a/.env.development b/.env.development
index 9c391a72..1c623adf 100644
--- a/.env.development
+++ b/.env.development
@@ -24,15 +24,16 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
# 线上
# VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001'
-VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001'
+VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
-VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601'
-VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
-VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605'
+# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601'
+# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
+# VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605'
# 王洋洋
-#VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.140:9604'
+# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.140:9604'
# 于嘉文
-#VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.143:9604'
+# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.143:9604'
+
diff --git a/src/api/courseDetail.js b/src/api/courseDetail.js
index 4e5139c9..bd0efd11 100644
--- a/src/api/courseDetail.js
+++ b/src/api/courseDetail.js
@@ -60,4 +60,13 @@ export const publishCrsEvaluation = (data) => {
};
+// 考试排行榜/traexam/traCrsPapers/queryTraCrsRankingList
+export const queryTraCrsRankingList = (data) => {
+ return request({
+ url: '/traexam/traCrsPapers/queryTraCrsRankingList',
+ method: 'post',
+ data
+ });
+};
+
diff --git a/src/api/dialog.js b/src/api/dialog.js
index a4e2bdf7..b4e6e606 100644
--- a/src/api/dialog.js
+++ b/src/api/dialog.js
@@ -11,7 +11,21 @@ export const queryHotQuestionApi = (data) => {
});
};
// 获取问答历史
-
+export const queryAskBatchSessionPaging = (data) => {
+ return request({
+ url: '/traask/traAskchatSession/queryAskBatchSessionPaging',
+ method: 'post',
+ data
+ });
+};
+// 问答详情 /traAskchatSession/queryAskHisByBatchIdPaging
+export const queryAskHisByBatchIdPaging = (data) => {
+ return request({
+ url: '/traask/traAskchatSession/queryAskHisByBatchIdPaging',
+ method: 'post',
+ data
+ });
+};
// 问答反馈
export const insertTraAskFeedback = (data) => {
return request({
diff --git a/src/api/search.js b/src/api/search.js
new file mode 100644
index 00000000..17666ef1
--- /dev/null
+++ b/src/api/search.js
@@ -0,0 +1,12 @@
+import request from '@/api/request'
+const base_url = '/traapp'
+
+// 搜索
+export const appSearchCrsApi = (data) => {
+ return request({
+ url: base_url + '/traSearchHis/appSearchCrs',
+ method: 'post',
+ toastErrors: true,
+ data
+ });
+};
diff --git a/src/components/course-item/course-item.vue b/src/components/course-item/course-item.vue
index e0116c18..516a9ec5 100644
--- a/src/components/course-item/course-item.vue
+++ b/src/components/course-item/course-item.vue
@@ -1,8 +1,7 @@
-
-
+
{{itemInfo.evalGrade}}
@@ -37,8 +36,8 @@
})
},
activeTag:{
- default: '',
- type: String
+ default: () => [],
+ type: Array
}
},
data() {
@@ -55,9 +54,9 @@
},
computed:{
tagsShowList(){
- if(!this.activeTag) return this.itemInfo.tagCataList
- let _arr = this.itemInfo.tagCataList.filter(t=> t.tagId === this.activeTag)
- let _arr1 = this.itemInfo.tagCataList.filter(t=> t.tagId !== this.activeTag)
+ if(!this.activeTag) return this.itemInfo.tagCataList||[]
+ let _arr = (this.itemInfo.tagCataList||[]).filter(t=> this.activeTag.includes(t.tagId))
+ let _arr1 = (this.itemInfo.tagCataList||[]).filter(t=> !this.activeTag.includes(t.tagId))
return _arr.concat(_arr1)
}
},
@@ -73,8 +72,9 @@
.course-item-box{
padding: 15rpx;
overflow: hidden;
+ width: 100%;
.img-box-view{
- width: 170rpx;
+ width: 225rpx;
height: 170rpx;
float: left;
position: relative;
@@ -82,7 +82,7 @@
overflow: hidden;
box-shadow: 0 0 10rpx #c3c3c3;
.img-box{
- width: 170rpx;
+ width: 225rpx;
height: 170rpx;
}
.item-grade{
@@ -101,7 +101,7 @@
}
}
.cont-box{
- width: calc(100% - 170rpx);
+ width: calc(100% - 225rpx);
box-sizing: border-box;
padding: 0 10rpx 0 20rpx;
float: left;
@@ -118,23 +118,25 @@
padding-bottom: 0 !important;
.item-tag-view{
white-space: nowrap;
- height: 34rpx;
- .item-tag{
- height: 32rpx;
- line-height: 32rpx;
- font-size: 20rpx;
- background-color: #eee;
- color: rgb(51, 51, 51);
- padding: 0 20rpx;
- border-radius: 16rpx;
- margin-right: 20rpx;
- display: inline-block;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- max-width: 200rpx;
- box-sizing: border-box;
- }
+ height: 38rpx;
+ .item-tag{
+ height: 38rpx;
+ line-height: 36rpx;
+ box-sizing: border-box;
+ font-size: 20rpx;
+ background-color: #fff;
+ color: #ffa150;
+ border: 1rpx solid #ffa150;
+ padding: 0 20rpx;
+ border-radius: 8rpx;
+ margin-right: 20rpx;
+ display: inline-block;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 200rpx;
+ box-sizing: border-box;
+ }
}
}
.item-publish,
diff --git a/src/components/image-preview/image-preview.vue b/src/components/image-preview/image-preview.vue
index 330050b6..a94bbb57 100644
--- a/src/components/image-preview/image-preview.vue
+++ b/src/components/image-preview/image-preview.vue
@@ -3,7 +3,7 @@
-
+
diff --git a/src/pages.json b/src/pages.json
index 518270e9..dd0a8c05 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -306,6 +306,15 @@
"titleNView": false
}
}
+ },
+ {
+ "path": "pages/search/result",
+ "style": {
+ "navigationBarTitleText": "",
+ "app-plus": {
+ "titleNView": false
+ }
+ }
}
],
"tabBar": {
diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue
index 435ba539..0e295099 100644
--- a/src/pages/course/components/touchBtn.vue
+++ b/src/pages/course/components/touchBtn.vue
@@ -5,7 +5,7 @@
+ :adjustPosition="adjustPosition" placeholderStyle='color:#999999;font-size:26rpx' placeholder="请输入文字">
@@ -86,11 +86,16 @@
textValueLength: {
type: Number,
default: 500
- }
+ },
+ adjustPosition: {
+ default: false,
+ type: Boolean
+ },
})
const {
isDisabled,
- onlyVoice
+ onlyVoice,
+ adjustPosition
} = toRefs(props)
const isLoadingState = computed(() => props.isLoading)
diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue
index eabe7308..d0c93ccc 100644
--- a/src/pages/course/index.vue
+++ b/src/pages/course/index.vue
@@ -29,14 +29,19 @@
-
-
- {{item.label}}
-
-
- {{itemT.label}}
-
-
+
+
+
+ {{item.label}}
+
+
+ {{itemT.label}}
+
+
+
+
+
+ 确定
@@ -45,7 +50,7 @@
plain
class="tags-item"
size="mini"
- :type="activeTag === ''?'primary':'info'"
+ :type="activeTag.includes('')?'primary':'info'"
@click="chooseTag({value:''})"
>
@@ -154,7 +159,7 @@ import { onShow } from "@dcloudio/uni-app"
const activeTab = ref('全部')
const activeCourseType = ref('')
const activePrdlineType = ref('')
- const activeTag = ref('')
+ const activeTag = ref([''])
const courseTypeList = ref([])
const coursePrdlineList = ref([])
const tagsTree = ref([])
@@ -167,8 +172,17 @@ import { onShow } from "@dcloudio/uni-app"
const pageTopPadding = computed(() => statusBarHeight + 'px')
// 点击标签
const chooseTag = (item)=>{
- activeTag.value = item.value
- showFilterList.value = false
+ if(!item.value){
+ activeTag.value = ['']
+ return
+ }
+ activeTag.value = activeTag.value.filter((t=>!!t))
+ if(activeTag.value.includes(item.value)){
+ activeTag.value = activeTag.value.filter((t=>t !== item.value))
+ }else{
+ activeTag.value.push(item.value)
+ }
+ // showFilterList.value = false
}
// 点击生产线分类
const changePrdLine = (item)=>{
@@ -194,9 +208,23 @@ import { onShow } from "@dcloudio/uni-app"
const courseListBase = ref([])
const courseList = computed(()=>{
- return activeTag.value
- ?courseListBase.value.filter(t=>(t.tagCataList||[]).map(k=>k.tagId).indexOf(activeTag.value)>=0)
- :courseListBase.value
+ if(activeTag.value.length > 0 && !!activeTag.value[0]){
+ return courseListBase.value.filter(t=>{
+ let _tags = (t.tagCataList||[]).map(k=>k.tagId)
+ let _pass = false
+ activeTag.value.forEach(k => {
+ if(_tags.includes(k)){
+ _pass = true
+ }
+ })
+ return _pass
+ })
+ }else{
+ return courseListBase.value
+ }
+ // return activeTag.value.length > 0
+ // ?courseListBase.value.filter(t=>(t.tagCataList||[]).map(k=>k.tagId).indexOf(activeTag.value)>=0)
+ // :courseListBase.value
})
// 整理树形
const courseListTree = computed(()=>{
@@ -275,7 +303,7 @@ import { onShow } from "@dcloudio/uni-app"
}
// 跳转搜索页
const toSearchPage = () => {
- common.navigateTo('/pages/search/search')
+ common.navigateTo('/pages/search/search?from=course')
}
// 跳转 课程详情
const toCourseDetail = (item) => {
@@ -376,14 +404,20 @@ import { onShow } from "@dcloudio/uni-app"
top: 84rpx;
left:0;
width: 100%;
- height: 508rpx;
- overflow-y: auto;
+ height: 588rpx;
+ padding-bottom: 80rpx;
+ overflow-y: hidden;
z-index: 2;
background-color: #f9f9f9;
box-shadow: 0rpx 12rpx 20rpx rgba(160,160,160,.25);
border-radius: 0 0 0rpx 0rpx;
- padding: 0rpx 25rpx;
box-sizing: border-box;
+ position: relative;
+ .scroll-box-tags{
+ height: 508rpx;
+ padding: 0rpx 25rpx;
+ box-sizing: border-box;
+ }
.filter-type{
padding: 10rpx 0;
box-sizing: border-box;
@@ -424,6 +458,26 @@ import { onShow } from "@dcloudio/uni-app"
margin-top: 20rpx;
}
}
+ .btns-box{
+ height: 80rpx;
+ position: absolute;
+ background-color: #fff;
+ bottom: 0;
+ left: 0;
+ width: 100%;
+ text-align: center;
+ padding-top: 10rpx;
+ .btn-sub{
+ display: inline-block;
+ text-align: center;
+ background-color: #06f;
+ height: 60rpx;
+ line-height: 60rpx;
+ padding: 0 40rpx;
+ color: #fff;
+ border-radius: 8rpx;
+ }
+ }
}
.filter-list{
display: none;
diff --git a/src/pages/examRanking/index.vue b/src/pages/examRanking/index.vue
index 1a8e5f36..2f6c4f25 100644
--- a/src/pages/examRanking/index.vue
+++ b/src/pages/examRanking/index.vue
@@ -22,18 +22,18 @@
最高分
-
+
- {{index + 1}}
+ {{item.ranking}}
-
+
- {{'李想'}}
- {{'吉林银行白城分行'}}
+ {{item.userName}}
+ {{item.orgName}}
- {{100 - index}}
+ {{item.examGrade}}
@@ -43,16 +43,16 @@
- {{21}}
+ {{userRankObj.ranking}}
-
+
- {{'李想'}}
- {{'吉林银行白城分行'}}
+ {{userRankObj.userName}}
+ {{userRankObj.orgName}}
- {{22}}
+ {{userRankObj.examGrade}}
@@ -60,14 +60,29 @@
diff --git a/src/pages/index/components/history.vue b/src/pages/index/components/history.vue
index 0b74fa43..f8ee2aad 100644
--- a/src/pages/index/components/history.vue
+++ b/src/pages/index/components/history.vue
@@ -6,8 +6,8 @@
对话记录
-
- {{'信息补录操作时,需录入什么信息?信息补录操作时,需录入什么信息?'}}
+
+ {{item.sseContent}}
@@ -20,18 +20,32 @@
reactive,
computed,
onMounted,
- nextTick
+ nextTick
} from 'vue';
+ import { queryAskBatchSessionPaging } from '@/api/dialog.js'
+ const emit = defineEmits(['showDetail'])
const historyPopupRef = ref()
+ const historyList = ref([])
const open = () => {
openFeedback(true)
}
const close = () => {
openFeedback()
}
- const openFeedback = (status) => {
+ const pageInfo = ref({
+ page: 1,
+ limit: 20
+ })
+ const getList = async () => {
+ try {
+ const res = await queryAskBatchSessionPaging(pageInfo.value)
+ historyList.value = historyList.value.concat(res.body|| [])
+ }catch{}finally{}
+ }
+ const openFeedback = async (status) => {
if (status) {
+ await getList()
historyPopupRef.value.open('left')
} else {
historyPopupRef.value.close()
@@ -39,6 +53,7 @@
}
const chooseHistory = (item) => {
console.log(item)
+ emit('showDetail',item)
}
defineExpose({
open,close
diff --git a/src/pages/index/dialog.vue b/src/pages/index/dialog.vue
index f53e114a..f6c9cbba 100644
--- a/src/pages/index/dialog.vue
+++ b/src/pages/index/dialog.vue
@@ -85,7 +85,7 @@
:isDisabled="false" />
-
+
@@ -134,7 +134,8 @@
} from "@/api/common.js"
import {
queryHotQuestionApi,
- insertTraAskFeedback
+ insertTraAskFeedback,
+ queryAskHisByBatchIdPaging
} from "@/api/dialog.js"
import Feedback from './components/feedback.vue'
import History from './components/history.vue'
@@ -436,6 +437,30 @@
const showHistory = () => {
historyRef.value.open()
}
+
+ const showHistoryDetail = (item) => {
+ queryAskHisByBatchIdPaging({
+ batchId: item.reqBatch,
+ page: 1,
+ limit: 100
+ }).then(res=> {
+ console.log(res)
+ talkingList.value = (res.body || []).map((t,index)=> {
+ return {
+ type: t.chatRole === 'TCH'? 'answer':'question',
+ talkingText: t.respContent,
+ isLoading: false,
+ id: t.askId + index,
+ talkingVoice: '',
+ reqBatch: item.reqBatch,
+ intrctWay: '01', //01-文本;02-语音;03-图片
+ intrctContent: t.respContent,
+ bucketKey: ''
+ }
+ })
+ historyRef.value.close()
+ })
+ }
const routerTo = (type) => {
switch (type) {
case 'AI学':
diff --git a/src/pages/learningTasks/components/content-item.vue b/src/pages/learningTasks/components/content-item.vue
index 6b08a68a..ab9d8c8c 100644
--- a/src/pages/learningTasks/components/content-item.vue
+++ b/src/pages/learningTasks/components/content-item.vue
@@ -10,17 +10,15 @@
{{ item.taskName }}
- 起止时间:
- {{ item.startTm?.substr(0, 10) }}至{{ item.endTm?.substr(0, 10) }}
+ 起止时间:{{ item.startTm?.substr(0, 10) }}至{{ item.endTm?.substr(0, 10) }}
- 完成人数:
- {{ item.taskFinishSums ?? 0 }}/{{ item.taskSums ?? 0 }}
+ 完成人数:{{ item.taskFinishSums ?? 0 }}/{{ item.taskSums ?? 0 }}
进度:
- {{ item.finishCrs ?? 0 }}/{{ item.sumCrs ?? 0 }}门课程
+ {{ item.finishCrs ?? item.learnedNumber ?? 0 }}/{{ item.sumCrs ?? item.taskNumber ?? 0 }}门课程
@@ -94,7 +92,7 @@
}
.item {
height: 170rpx;
- margin: 32rpx 22rpx;
+ margin-top: 32rpx;
display: flex;
.img_div {
@@ -151,6 +149,7 @@
flex-wrap: nowrap;
height: 23rpx;
overflow: hidden;
+ white-space: nowrap;
}
.people_progress_div {
@@ -160,7 +159,7 @@
font-size: 23rpx;
color: #666;
margin-bottom: 23rpx;
-
+ white-space: nowrap;
line-height: 23rpx;
flex-wrap: nowrap;
height: 23rpx;
diff --git a/src/pages/learningTasks/components/content.vue b/src/pages/learningTasks/components/content.vue
index 6992c118..d84bc14b 100644
--- a/src/pages/learningTasks/components/content.vue
+++ b/src/pages/learningTasks/components/content.vue
@@ -83,5 +83,7 @@
height: calc(100vh - var(--status-bar-height) - 88rpx - 80rpx - 88rpx - 20rpx - 30rpx);
background-color: #fff;
border-radius: 16rpx;
+ padding: 0 12rpx 0 22rpx;
+ box-sizing: border-box;
}
diff --git a/src/pages/search/result.vue b/src/pages/search/result.vue
new file mode 100644
index 00000000..4fc9f487
--- /dev/null
+++ b/src/pages/search/result.vue
@@ -0,0 +1,535 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 功能
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+ 暂无数据
+
+
+
+
+
+
+ 课程
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+ 任务
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+ AI陪练
+
+
+
+
+ 暂无数据
+
+
+
+
+
+ 考试
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+
+
+
+
+ {{hasMore?'滚动加载更多':'加载完成'}}
+
+
+
+ 暂无数据
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/search/search.vue b/src/pages/search/search.vue
index 63adc9c0..4e33ec9d 100644
--- a/src/pages/search/search.vue
+++ b/src/pages/search/search.vue
@@ -6,9 +6,10 @@
-
+
+
@@ -55,6 +56,18 @@
diff --git a/src/pagesB.json b/src/pagesB.json
index d020e53b..7ac67e83 100644
--- a/src/pagesB.json
+++ b/src/pagesB.json
@@ -34,6 +34,15 @@
"titleNView": false
}
}
+ },
+ {
+ "path": "pages/search/result",
+ "style": {
+ "navigationBarTitleText": "",
+ "app-plus": {
+ "titleNView": false
+ }
+ }
}
]
}
\ No newline at end of file
diff --git a/src/static/images/search/result/ability.png b/src/static/images/search/result/ability.png
new file mode 100644
index 00000000..bf81184b
Binary files /dev/null and b/src/static/images/search/result/ability.png differ
diff --git a/src/static/images/search/result/course.png b/src/static/images/search/result/course.png
new file mode 100644
index 00000000..5d721a35
Binary files /dev/null and b/src/static/images/search/result/course.png differ
diff --git a/src/static/images/search/result/exam.png b/src/static/images/search/result/exam.png
new file mode 100644
index 00000000..b4cda33c
Binary files /dev/null and b/src/static/images/search/result/exam.png differ
diff --git a/src/static/images/search/result/task.png b/src/static/images/search/result/task.png
new file mode 100644
index 00000000..97959aa7
Binary files /dev/null and b/src/static/images/search/result/task.png differ
diff --git a/src/static/images/search/result/test.png b/src/static/images/search/result/test.png
new file mode 100644
index 00000000..7b600932
Binary files /dev/null and b/src/static/images/search/result/test.png differ