From f4ec9bee8efc6f0f6824bbb669fe33f12f95066b Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Mon, 28 Apr 2025 16:08:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9C=8D=E5=8A=A1=E6=8C=87?= =?UTF-8?q?=E4=BB=A4-=E5=8E=BB=E9=99=A4=E6=8C=87=E4=BB=A4=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=EF=BC=8C=E6=96=B0=E5=A2=9E=E4=BD=93=E5=9E=8B=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E3=80=81=E6=83=85=E7=BB=AA=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ConfigServiceDirective.data.ts | 36 ++- .../components/ConfigServiceDirectiveList.vue | 5 +- .../components/DirectivePackageModal.vue | 42 ++- .../components/PackageList.vue | 41 ++- .../BodyTag.api.ts} | 14 +- .../BodyTag.data.ts} | 4 +- .../BodyTagList.vue} | 18 +- .../components/BodyTagForm.vue} | 8 +- .../components/BodyTagModal.vue} | 4 +- .../directiveTag/emotiontag/EmotionTag.api.ts | 72 +++++ .../emotiontag/EmotionTag.data.ts | 30 ++ .../emotiontag/EmotionTagList.vue | 278 ++++++++++++++++++ .../emotiontag/components/EmotionTagForm.vue | 161 ++++++++++ .../emotiontag/components/EmotionTagModal.vue | 77 +++++ .../ConfigServiceDirective.data.ts | 40 ++- .../ConfigServiceDirectiveList.vue | 67 +++-- .../components/ConfigServiceDirectiveForm.vue | 17 +- .../components/ConfigServiceDirective.data.ts | 38 ++- .../components/ConfigServiceDirectiveForm.vue | 15 +- .../components/ConfigServiceDirectiveList.vue | 5 +- .../serviceTag/components/ServiceTagList.vue | 41 ++- .../serviceTag/components/ServiceTagModal.vue | 43 ++- 22 files changed, 943 insertions(+), 113 deletions(-) rename src/views/services/directiveTag/{DirectiveTag.api.ts => bodytag/BodyTag.api.ts} (79%) rename src/views/services/directiveTag/{DirectiveTag.data.ts => bodytag/BodyTag.data.ts} (89%) rename src/views/services/directiveTag/{DirectiveTagList.vue => bodytag/BodyTagList.vue} (93%) rename src/views/services/directiveTag/{components/DirectiveTagForm.vue => bodytag/components/BodyTagForm.vue} (95%) rename src/views/services/directiveTag/{components/DirectiveTagModal.vue => bodytag/components/BodyTagModal.vue} (89%) create mode 100644 src/views/services/directiveTag/emotiontag/EmotionTag.api.ts create mode 100644 src/views/services/directiveTag/emotiontag/EmotionTag.data.ts create mode 100644 src/views/services/directiveTag/emotiontag/EmotionTagList.vue create mode 100644 src/views/services/directiveTag/emotiontag/components/EmotionTagForm.vue create mode 100644 src/views/services/directiveTag/emotiontag/components/EmotionTagModal.vue diff --git a/src/views/services/directivePackage/components/ConfigServiceDirective.data.ts b/src/views/services/directivePackage/components/ConfigServiceDirective.data.ts index afe4f1b..6f08477 100644 --- a/src/views/services/directivePackage/components/ConfigServiceDirective.data.ts +++ b/src/views/services/directivePackage/components/ConfigServiceDirective.data.ts @@ -22,9 +22,22 @@ export const columns: BasicColumn[] = [ dataIndex: 'directiveName', }, { - title: '指令标签', + title: '体型标签', align: 'center', - dataIndex: 'tagList', + dataIndex: 'bodyTagList', + ellipsis: false, + format(text, record, index) { + if (!!text) { + return text.map((item) => item.tagName).join('、'); + } else { + return '-'; + } + }, + }, + { + title: '情绪标签', + align: 'center', + dataIndex: 'emotionTagList', ellipsis: false, format(text, record, index) { if (!!text) { @@ -65,7 +78,20 @@ export const selectedColumns: BasicColumn[] = [ { title: '指令标签', align: 'center', - dataIndex: 'tagList', + dataIndex: 'bodyTagList', + ellipsis: false, + format(text, record, index) { + if (!!text) { + return text.map((item) => item.tagName).join('、'); + } else { + return '-'; + } + }, + }, + { + title: '指令标签', + align: 'center', + dataIndex: 'emotionTagList', ellipsis: false, format(text, record, index) { if (!!text) { @@ -85,7 +111,7 @@ export const selectedColumns: BasicColumn[] = [ key: 'action', slots: { customRender: 'action' }, fixed: 'right', // 如果需要固定在右侧 - align:'center', - width:100 + align: 'center', + width: 100, }, ]; diff --git a/src/views/services/directivePackage/components/ConfigServiceDirectiveList.vue b/src/views/services/directivePackage/components/ConfigServiceDirectiveList.vue index a5932f3..5ade876 100644 --- a/src/views/services/directivePackage/components/ConfigServiceDirectiveList.vue +++ b/src/views/services/directivePackage/components/ConfigServiceDirectiveList.vue @@ -64,7 +64,10 @@ {{ text || record.typeId_dictText }} - + + {{ handleTags('', text, '') }} + + {{ handleTags('', text, '') }} diff --git a/src/views/services/directivePackage/components/DirectivePackageModal.vue b/src/views/services/directivePackage/components/DirectivePackageModal.vue index f034092..72264f5 100644 --- a/src/views/services/directivePackage/components/DirectivePackageModal.vue +++ b/src/views/services/directivePackage/components/DirectivePackageModal.vue @@ -29,9 +29,17 @@ - - {{ directive.directiveName + handleTags('(', directive, ')') }} - +
+
+ {{ directive.directiveName }} +
+
+ 体型标签:{{ handleBodyTags('', directive, '') }} +
+
+ 情绪标签:{{ handleEmotionTags('', directive, '') }} +
+
@@ -48,7 +56,8 @@
周期类型:{{ filterDictTextByCache('period_type', derectiveInfo.cycleType) }}
服务时长(分钟):{{ derectiveInfo.serviceDuration }}
服务说明:{{ derectiveInfo.serviceContent }}
-
指令标签:{{ handleTags('', derectiveInfo, '') }}
+
体型标签:{{ handleBodyTags('', derectiveInfo, '') }}
+
情绪标签:{{ handleEmotionTags('', derectiveInfo, '') }}
语音文件: 暂无文件
服务时长(分钟):{{ derectiveInfo.serviceDuration }}
服务说明:{{ derectiveInfo.serviceContent }}
-
指令标签:{{ handleTags('', derectiveInfo, '') }}
+
体型标签:{{ handleBodyTags('', derectiveInfo, '') }}
+
情绪标签:{{ handleEmotionTags('', derectiveInfo, '') }}
语音文件: 暂无文件
- + + diff --git a/src/views/services/directiveTag/emotiontag/components/EmotionTagForm.vue b/src/views/services/directiveTag/emotiontag/components/EmotionTagForm.vue new file mode 100644 index 0000000..1c24d7c --- /dev/null +++ b/src/views/services/directiveTag/emotiontag/components/EmotionTagForm.vue @@ -0,0 +1,161 @@ + + + + + diff --git a/src/views/services/directiveTag/emotiontag/components/EmotionTagModal.vue b/src/views/services/directiveTag/emotiontag/components/EmotionTagModal.vue new file mode 100644 index 0000000..3fe6139 --- /dev/null +++ b/src/views/services/directiveTag/emotiontag/components/EmotionTagModal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/src/views/services/serviceDirective/ConfigServiceDirective.data.ts b/src/views/services/serviceDirective/ConfigServiceDirective.data.ts index 52c1da6..f1903b3 100644 --- a/src/views/services/serviceDirective/ConfigServiceDirective.data.ts +++ b/src/views/services/serviceDirective/ConfigServiceDirective.data.ts @@ -5,6 +5,17 @@ import { render } from '/@/utils/common/renderUtils'; import { getWeekMonthQuarterYear } from '/@/utils'; //列表数据 export const columns: BasicColumn[] = [ + { + title: '分类标签', + align: 'center', + dataIndex: 'instructionTagId_dictText', + width: 100, + customCell: (record, index, column) => { + if (record.instructionRowSpan != null) { + return { rowSpan: record.instructionRowSpan }; + } + }, + }, { title: '服务类别', align: 'center', @@ -25,26 +36,29 @@ export const columns: BasicColumn[] = [ } }, }, - { - title: '分类标签', - align: 'center', - dataIndex: 'instructionTagId_dictText', - width: 100, - customCell: (record, index, column) => { - if (record.instructionRowSpan != null) { - return { rowSpan: record.instructionRowSpan }; - } - }, - }, { title: '服务指令名称', align: 'center', dataIndex: 'directiveName', }, { - title: '指令标签', + title: '体型标签', align: 'center', - dataIndex: 'tagList', + dataIndex: 'bodyTagList', + width: 150, + ellipsis: false, + format(text, record, index) { + if (!!text) { + return text.map((item) => item.tagName).join('、'); + } else { + return '-'; + } + }, + }, + { + title: '情绪标签', + align: 'center', + dataIndex: 'emotionTagList', width: 150, ellipsis: false, format(text, record, index) { diff --git a/src/views/services/serviceDirective/ConfigServiceDirectiveList.vue b/src/views/services/serviceDirective/ConfigServiceDirectiveList.vue index dd7ac7f..027ff29 100644 --- a/src/views/services/serviceDirective/ConfigServiceDirectiveList.vue +++ b/src/views/services/serviceDirective/ConfigServiceDirectiveList.vue @@ -69,13 +69,21 @@ --> - - - + + + + + + + + + - @@ -115,8 +123,10 @@ preIcon="tabler:settings">配置服务类别 配置服务类型 - 配置指令标签 + 配置体型标签 + 配置情绪标签 新增服务指令 - + + - + + + + + + + @@ -211,7 +229,8 @@ import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectT import { cloneDeep } from "lodash-es"; import ConfigServiceCategoryList from '../serviceCategory/ConfigServiceCategoryList.vue'; import ConfigServiceTypeList from '../serviceType/ConfigServiceTypeList.vue'; -import DirectiveTagList from '../directiveTag/DirectiveTagList.vue'; +import BodyTagList from '/@/views/services/directivetag/bodytag/BodyTagList.vue'; +import EmotionTagList from '/@/views/services/directivetag/emotiontag/EmotionTagList.vue'; import { getFileAccessHttpUrl } from '/@/utils/common/compUtils'; import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue'; @@ -267,7 +286,8 @@ const superQueryConfig = reactive(superQuerySchema); const categoryOpen = ref(false)//服务类别抽屉 const typeOpen = ref(false)//服务类型抽屉 -const tagOpen = ref(false)//指令标签抽屉 +const bodyTagOpen = ref(false)//体型标签抽屉 +const emotionTagOpen = ref(false)//情绪标签抽屉 /** * 高级查询事件 @@ -410,9 +430,13 @@ function handleCategory() { function handleType() { typeOpen.value = true } -//指令标签抽屉打开 -function handleTag() { - tagOpen.value = true +//体型标签抽屉打开 +function handleBodyTag() { + bodyTagOpen.value = true +} +//情绪标签抽屉打开 +function handleEmotionTag() { + emotionTagOpen.value = true } //服务类别抽屉关闭 function onCategoryClose() { @@ -423,11 +447,14 @@ function onCategoryClose() { function onTypeClose() { typeOpen.value = false } -//指令标签抽屉关闭 -function onTagClose() { - tagOpen.value = false +//体型标签抽屉关闭 +function onBodyTagClose() { + bodyTagOpen.value = false +} +//体型标签抽屉关闭 +function onEmotionTagClose() { + emotionTagOpen.value = false } - const showVideoModal = ref(false); // 控制模态框显示 const videoUrl = ref(''); // 视频 URL diff --git a/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue b/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue index 8e2881f..a057d2e 100644 --- a/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue +++ b/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue @@ -96,10 +96,16 @@ --> - - + + + + + + @@ -152,7 +158,7 @@ - + @@ -316,7 +322,8 @@ function add() { * 编辑 */ function edit(record) { - formData.tags = '' + formData.bodyTags = '' + formData.emotionTags = '' nextTick(() => { resetFields(); const tmpData = {}; diff --git a/src/views/services/serviceTag/components/ConfigServiceDirective.data.ts b/src/views/services/serviceTag/components/ConfigServiceDirective.data.ts index afe4f1b..14b7a3f 100644 --- a/src/views/services/serviceTag/components/ConfigServiceDirective.data.ts +++ b/src/views/services/serviceTag/components/ConfigServiceDirective.data.ts @@ -22,9 +22,22 @@ export const columns: BasicColumn[] = [ dataIndex: 'directiveName', }, { - title: '指令标签', + title: '体型标签', align: 'center', - dataIndex: 'tagList', + dataIndex: 'bodyTagList', + ellipsis: false, + format(text, record, index) { + if (!!text) { + return text.map((item) => item.tagName).join('、'); + } else { + return '-'; + } + }, + }, + { + title: '情绪标签', + align: 'center', + dataIndex: 'emotionTagList', ellipsis: false, format(text, record, index) { if (!!text) { @@ -63,9 +76,22 @@ export const selectedColumns: BasicColumn[] = [ dataIndex: 'directiveName', }, { - title: '指令标签', + title: '体型标签', align: 'center', - dataIndex: 'tagList', + dataIndex: 'bodyTagList', + ellipsis: false, + format(text, record, index) { + if (!!text) { + return text.map((item) => item.tagName).join('、'); + } else { + return '-'; + } + }, + }, + { + title: '情绪标签', + align: 'center', + dataIndex: 'emotionTagList', ellipsis: false, format(text, record, index) { if (!!text) { @@ -85,7 +111,7 @@ export const selectedColumns: BasicColumn[] = [ key: 'action', slots: { customRender: 'action' }, fixed: 'right', // 如果需要固定在右侧 - align:'center', - width:100 + align: 'center', + width: 100, }, ]; diff --git a/src/views/services/serviceTag/components/ConfigServiceDirectiveForm.vue b/src/views/services/serviceTag/components/ConfigServiceDirectiveForm.vue index 169425b..9e7b152 100644 --- a/src/views/services/serviceTag/components/ConfigServiceDirectiveForm.vue +++ b/src/views/services/serviceTag/components/ConfigServiceDirectiveForm.vue @@ -91,10 +91,17 @@ - - + + + + + + + diff --git a/src/views/services/serviceTag/components/ConfigServiceDirectiveList.vue b/src/views/services/serviceTag/components/ConfigServiceDirectiveList.vue index a5932f3..5ade876 100644 --- a/src/views/services/serviceTag/components/ConfigServiceDirectiveList.vue +++ b/src/views/services/serviceTag/components/ConfigServiceDirectiveList.vue @@ -64,7 +64,10 @@ {{ text || record.typeId_dictText }} - + + {{ handleTags('', text, '') }} + + {{ handleTags('', text, '') }} diff --git a/src/views/services/serviceTag/components/ServiceTagList.vue b/src/views/services/serviceTag/components/ServiceTagList.vue index e27104b..7489dfb 100644 --- a/src/views/services/serviceTag/components/ServiceTagList.vue +++ b/src/views/services/serviceTag/components/ServiceTagList.vue @@ -53,11 +53,20 @@ - + - - {{ directive.directiveName + handleTags('(', directive, ')') }} - +
+
+ {{ directive.directiveName }} +
+
+ 体型标签:{{ handleBodyTags('', directive, '') }} +
+
+ 情绪标签:{{ handleEmotionTags('', directive, '') }} +
+
@@ -76,7 +85,8 @@
服务时长(分钟):{{ derectiveInfo.serviceDuration }}
服务说明:{{ derectiveInfo.serviceContent }}
-
指令标签:{{ handleTags('', derectiveInfo, '') }}
+
体型标签:{{ handleBodyTags('', derectiveInfo, '') }}
+
情绪标签:{{ handleEmotionTags('', derectiveInfo, '') }}
语音文件: 暂无文件