主管理员 12 hours ago
parent
commit
96f4b1b02e
4 changed files with 30 additions and 20 deletions
  1. +17
    -17
      jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/service/impl/AppletApiTTServiceImpl.java
  2. +10
    -0
      jeecgboot-vue3/src/components/Form/src/jeecg/components/JEditor.vue
  3. +1
    -1
      jeecgboot-vue3/src/views/applet/article/AppletArticle.data.ts
  4. +2
    -2
      jeecgboot-vue3/src/views/applet/config/AppletConfig.data.ts

+ 17
- 17
jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/service/impl/AppletApiTTServiceImpl.java View File

@ -693,23 +693,23 @@ public class AppletApiTTServiceImpl implements AppletApiTTService {
*/
private void savePlayLog(String userId, String text, Integer voiceType, Double volume,
Double speed, Double elapsedTime, boolean success, String cacheId) {
try {
AppletTtsPlayLog playLog = new AppletTtsPlayLog();
playLog.setUserId(userId);
playLog.setVoicetype(voiceType);
playLog.setVolume(volume);
playLog.setSpeed(speed);
playLog.setElapsedTime(elapsedTime);
playLog.setSuccess(success ? "Y" : "N");
playLog.setCacheId(cacheId); // 关联缓存记录ID
playLog.setCreateTime(new java.util.Date());
appletTtsPlayLogService.save(playLog);
log.debug("TTS播放日志保存成功,用户: {}, 结果: {}, 缓存ID: {}", userId, success ? "成功" : "失败", cacheId);
} catch (Exception e) {
log.error("保存TTS播放日志失败: {}", e.getMessage(), e);
}
// try {
// AppletTtsPlayLog playLog = new AppletTtsPlayLog();
// playLog.setUserId(userId);
// playLog.setVoicetype(voiceType);
// playLog.setVolume(volume);
// playLog.setSpeed(speed);
// playLog.setElapsedTime(elapsedTime);
// playLog.setSuccess(success ? "Y" : "N");
// playLog.setCacheId(cacheId); // 关联缓存记录ID
// playLog.setCreateTime(new java.util.Date());
//
// appletTtsPlayLogService.save(playLog);
//
// log.debug("TTS播放日志保存成功,用户: {}, 结果: {}, 缓存ID: {}", userId, success ? "成功" : "失败", cacheId);
// } catch (Exception e) {
// log.error("保存TTS播放日志失败: {}", e.getMessage(), e);
// }
}


+ 10
- 0
jeecgboot-vue3/src/components/Form/src/jeecg/components/JEditor.vue View File

@ -24,6 +24,16 @@
setup(props, { emit, attrs }) {
// props attrs
const bindProps = computed(() => Object.assign({}, props, attrs));
console.log('bindProps', bindProps.value);
if (!bindProps.value?.toolbar){
bindProps.value.toolbar = `code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link codesample | alignleft aligncenter alignright alignjustify outdent indent formatpainter |
styleselect formatselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat |
table image media charmap hr pagebreak insertdatetime | fullscreen preview`
}
const formItemContext = Form.useInjectFormItemContext();
// value change
function onChange(value) {


+ 1
- 1
jeecgboot-vue3/src/views/applet/article/AppletArticle.data.ts View File

@ -80,4 +80,4 @@ export const superQuerySchema = {
export function getBpmFormSchema(_formData): FormSchema[]{
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
return formSchema;
}
}

+ 2
- 2
jeecgboot-vue3/src/views/applet/config/AppletConfig.data.ts View File

@ -89,7 +89,7 @@ export const formSchema: FormSchema[] = [
placeholder: '请输入富文本内容',
height: 400,
menubar: true,
toolbar: 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help',
// toolbar: 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat',
},
show: ({ values }) => {
return values.type === '1' || values.type === 1;
@ -132,4 +132,4 @@ export const superQuerySchema = {
export function getBpmFormSchema(_formData): FormSchema[] {
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
return formSchema;
}
}

Loading…
Cancel
Save