JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_合并develop修改过来

This commit is contained in:
田岩
2026-03-05 19:55:25 +08:00
7 changed files with 186 additions and 119 deletions
+5 -14
View File
@@ -77,7 +77,7 @@
<image class="img" :src="commentInput1" mode="aspectFit"></image>
</view>
<view class="fl1"></view>
<view :class="['tool-send', value.length === 0?'is-disabled':'']" @click="submit">发送</view>
<view :class="['tool-send', sendDisabled?'is-disabled':'']" @click="submit">发送</view>
</view>
<!-- 下方主要表情输入框 -->
<view class="bottom-main-input-div">
@@ -163,6 +163,9 @@
isFocus.value = true
cursorLength.value = resStart.value || value.value.length
}
const sendDisabled = computed(()=>{
return value.value.length === 0 && fileList.value.length === 0
})
const showEmoji = ref(false)
const showEmojiNow = () => {
showEmoji.value = !showEmoji.value
@@ -171,7 +174,6 @@
const focus = (event) => {
isShow.value = true
isFocus.value = true
console.log('focusevent');
if(!isReply.value){
getMemList()
}
@@ -185,7 +187,6 @@
})
const resStart = ref(-1)
const blur = (event) => {
console.log('失去焦点不一定关闭',event);
// popHeight.value = '0px'
resStart.value = event.detail.cursor
isShow.value = true
@@ -193,7 +194,6 @@
}
const hideAll = (flag=false) => {
popHeight.value = '0px'
console.log('hideAll');
isShow.value = false
isFocus.value = false
if(flag){
@@ -245,7 +245,6 @@
const extension = url.slice(lastDotIndex + 1).split('?')[0].toLowerCase()
return ['png', 'jpg'].includes(extension)
})
console.log(tempFilePaths,valid)
if (!valid) return common.msg('您选择的图片格式有误。')
const data = {
bizScen: 'S3005'
@@ -304,13 +303,10 @@
bbsTag: bbsTag.value, // 评价标签 (SUG 建议 ASK 提问 )
bbsContent: value.value // 评价内容
}
console.log(_params)
publishCrsEvaluation(_params).then((res) => {
const loadingDuration = Date.now() - loadingStartTime;
const minLoadingTime = 700;
console.log(loadingStartTime, loadingDuration);
const delayTime = Math.max(0, minLoadingTime - loadingDuration);
console.log('delayTime', delayTime);
setTimeout(() => {
common.hideLoading();
nextTick(() => common.msg('发表成功'));
@@ -322,9 +318,7 @@
emit('submitOver')
}, 500);
}, delayTime);
}).catch(err=>{
console.log(err)
})
}).catch(err=>{})
};
const reply_send = async () => {
emit('sendReply', {...answerData.value, bbsContent: value.value})
@@ -351,10 +345,7 @@
popHeight.value = val ? `${maxKeyboardHeight.value}px` : (keyboardHeight.value+'px')
})
watch(()=> keyboardHeight.value,(val)=>{
console.log(val,showEmoji.value)
console.log(maxKeyboardHeight.value)
popHeight.value = showEmoji.value ? `${maxKeyboardHeight.value}px` : keyboardHeight.value+'px'
console.log(popHeight.value)
})
defineExpose({hideAll, resetVal})
</script>
@@ -94,7 +94,10 @@
},
srcList() {
return this.storageStore?.getFileSrcList
}
},
isBase() {
return this.storageStore?.getIsBase
},
},
watch: {
fileId: {
@@ -148,6 +151,11 @@
},
initSrc(newval, oldval) {
let _src
if(this.isBase){
_src = newval
this.fileUrlShow = _src
return _src
}
if (newval.indexOf('http') === 0) {
_src = newval + '?tk=' + getToken()
} else {