+
+ {{ 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, '') }}
语音文件:
暂无文件