@tencentcloud/ai-desk-customer-vue 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -4
- package/assets/customer_avatar.png +0 -0
- package/assets/face.svg +10 -0
- package/assets/feedback_dialog_close.svg +3 -0
- package/assets/feedback_dislike_after.svg +3 -0
- package/assets/feedback_dislike_before.svg +10 -0
- package/assets/feedback_dislike_hover.svg +10 -0
- package/assets/feedback_like_after.svg +14 -0
- package/assets/feedback_like_before.svg +10 -0
- package/assets/feedback_like_hover.svg +10 -0
- package/assets/files.svg +5 -0
- package/assets/green_check.svg +4 -0
- package/assets/image.svg +8 -0
- package/assets/rating_tool_icon.svg +5 -0
- package/assets/rating_tool_icon_h5.svg +1 -0
- package/assets/video.svg +8 -0
- package/assets/video_h5.svg +1 -0
- package/components/CustomerServiceChat/chat-header/index-web.vue +16 -14
- package/components/CustomerServiceChat/index-web.vue +87 -13
- package/components/CustomerServiceChat/message-input/index-web.vue +31 -5
- package/components/CustomerServiceChat/message-input/message-input-editor-web.vue +25 -0
- package/components/CustomerServiceChat/message-input/message-input-quote/index.vue +29 -20
- package/components/CustomerServiceChat/message-input-toolbar/emoji-picker/emoji-picker-dialog.vue +36 -36
- package/components/CustomerServiceChat/message-input-toolbar/emoji-picker/index.vue +1 -1
- package/components/CustomerServiceChat/message-input-toolbar/file-upload/index.vue +6 -8
- package/components/CustomerServiceChat/message-input-toolbar/image-upload/index.vue +11 -16
- package/components/CustomerServiceChat/message-input-toolbar/index-web.vue +61 -18
- package/components/CustomerServiceChat/message-input-toolbar/rating-tool/index.vue +72 -0
- package/components/CustomerServiceChat/message-input-toolbar/toolbar-item-container/style/h5.scss +10 -1
- package/components/CustomerServiceChat/message-input-toolbar/user-define-input-tool.vue +80 -0
- package/components/CustomerServiceChat/message-input-toolbar/video-upload/index.vue +9 -14
- package/components/CustomerServiceChat/message-list/index-web.vue +38 -6
- package/components/CustomerServiceChat/message-list/message-elements/feedback-button.vue +369 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-bubble-web.vue +81 -15
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/marked.ts +17 -10
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-branch.vue +18 -10
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-concurrency-limit.vue +1 -1
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-desk.vue +13 -6
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-ivr-form/form-branch.vue +117 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/{message-single-form → message-ivr-form}/form-input.vue +65 -111
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/{message-single-form → message-ivr-form}/index.vue +7 -2
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-branch/branch-pc.vue +25 -9
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-branch/index.vue +5 -3
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-form/component-mobile/input-mobile.vue +1 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-form/component-mobile/label-mobile.vue +4 -2
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-form/component-pc/label-pc.vue +5 -3
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-form/form-mobile.vue +17 -5
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-form/form-pc.vue +21 -1
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-order.vue +3 -3
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-product-card.vue +2 -1
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-rating/message-rating-number.vue +9 -13
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-rating/message-rating-star.vue +11 -18
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-robot-welcome.vue +1 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-stream.vue +14 -10
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-timeout-warning.vue +29 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/styles/common.scss +1 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-plugin-web.vue +22 -2
- package/components/CustomerServiceChat/message-list/message-elements/message-file.vue +1 -1
- package/components/CustomerServiceChat/message-list/message-elements/message-quote/index-web.vue +6 -24
- package/components/CustomerServiceChat/message-list/message-elements/message-text.vue +0 -9
- package/components/CustomerServiceChat/message-list/message-elements/read-status/index.vue +31 -20
- package/components/CustomerServiceChat/message-list/message-elements/simple-message-list/index.vue +2 -1
- package/components/CustomerServiceChat/message-list/scroll-button/index.vue +3 -3
- package/components/CustomerServiceChat/message-list/style/web.scss +2 -1
- package/components/CustomerServiceChat/message-toolbar-button/index.vue +111 -42
- package/components/CustomerServiceChat/message-toolbar-button/toolbar-button-end-human-service.vue +59 -0
- package/components/CustomerServiceChat/message-toolbar-button/toolbar-button-human-service.vue +55 -0
- package/components/CustomerServiceChat/message-toolbar-button/toolbar-button-service-rating.vue +59 -0
- package/components/common/Toast/index-web.vue +4 -2
- package/constant.ts +25 -0
- package/interface.ts +35 -5
- package/locales/en/aidesk.ts +28 -15
- package/locales/fil/aidesk.ts +28 -15
- package/locales/id/aidesk.ts +28 -15
- package/locales/ja/aidesk.ts +28 -15
- package/locales/ms/aidesk.ts +28 -15
- package/locales/ru/aidesk.ts +28 -15
- package/locales/th/aidesk.ts +28 -15
- package/locales/vi/aidesk.ts +28 -15
- package/locales/zh_cn/aidesk.ts +28 -15
- package/locales/zh_tw/aidesk.ts +28 -15
- package/package.json +1 -1
- package/server.ts +5 -1
- package/utils/state.js +30 -0
- package/utils/utils.ts +48 -1
- package/assets/face.png +0 -0
- package/assets/files.png +0 -0
- package/assets/image.png +0 -0
- package/assets/video.png +0 -0
- package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-single-form/form-branch.vue +0 -68
|
@@ -1,37 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="form-container" v-if="!
|
|
3
|
-
<Icon :src="iconForm" width="65px" height="65px"/>
|
|
4
|
-
|
|
5
|
-
<div class="right-container">
|
|
6
|
-
<div class="card-title">
|
|
7
|
-
{{ props.title }}
|
|
8
|
-
</div>
|
|
9
|
-
<div class="form-button" @click="showForm">
|
|
10
|
-
{{ TUITranslateService.t("AIDesk.立即填写") }}
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
</div>
|
|
15
|
-
<div class="form-input-container" v-else-if="isShowForm && !isFinish">
|
|
2
|
+
<div class="form-input-container" v-if="!isFinish && !props.selectedContent">
|
|
16
3
|
<div class="card-title">
|
|
17
|
-
|
|
18
|
-
title
|
|
4
|
+
{{ props.title }}
|
|
19
5
|
</div>
|
|
20
6
|
<div class="form-input-box">
|
|
21
|
-
<div class="form-input-
|
|
22
|
-
<div class="form-label">
|
|
23
|
-
<span class="required-icon" v-if="true" >{{'*'}}</span>
|
|
24
|
-
<label>label</label>
|
|
25
|
-
</div>
|
|
7
|
+
<div class="form-input-text">
|
|
26
8
|
<input
|
|
27
9
|
v-model="text"
|
|
28
|
-
class="form-input"
|
|
10
|
+
:class="['form-input', isH5 ? 'form-input-h5' : '']"
|
|
29
11
|
:placeholder="TUITranslateService.t('AIDesk.请输入内容')"
|
|
30
12
|
>
|
|
13
|
+
<div v-if="validator" class="validator-line">
|
|
14
|
+
{{ TUITranslateService.t("AIDesk.请填写必填项") }}
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div @click="submitForm()" class="submit-icon">
|
|
18
|
+
<Icon :src="iconSend" width="30px" height="30px"/>
|
|
31
19
|
</div>
|
|
32
20
|
</div>
|
|
33
21
|
</div>
|
|
34
|
-
<div class="form-finish-container" v-else-if="isFinish">
|
|
22
|
+
<div class="form-finish-container" v-else-if="isFinish || props.selectedContent">
|
|
35
23
|
<div class="card-title">
|
|
36
24
|
<div>
|
|
37
25
|
{{ props.title }}
|
|
@@ -42,7 +30,7 @@
|
|
|
42
30
|
</div>
|
|
43
31
|
</div>
|
|
44
32
|
<div>
|
|
45
|
-
{{ text }}
|
|
33
|
+
{{ props.selectedContent || text }}
|
|
46
34
|
</div>
|
|
47
35
|
</div>
|
|
48
36
|
</template>
|
|
@@ -52,11 +40,14 @@ import vue from '../../../../../../../adapter-vue';
|
|
|
52
40
|
import iconForm from '../../../../../../../assets/icon_form.png';
|
|
53
41
|
import Icon from '../customer-icon.vue';
|
|
54
42
|
import iconSucess from '../../../../../../../assets/icon_success.png';
|
|
43
|
+
import iconSend from '../../../../../../../assets/send_button_h5.svg';
|
|
55
44
|
import { TUITranslateService } from '@tencentcloud/chat-uikit-engine';
|
|
56
|
-
|
|
45
|
+
import { isH5 } from '../../../../../../../utils/env';
|
|
46
|
+
const { ref } = vue;
|
|
57
47
|
|
|
58
48
|
interface Props {
|
|
59
49
|
title: string;
|
|
50
|
+
selectedContent: string;
|
|
60
51
|
}
|
|
61
52
|
export default {
|
|
62
53
|
components: {
|
|
@@ -67,6 +58,10 @@ export default {
|
|
|
67
58
|
type: String,
|
|
68
59
|
default: '',
|
|
69
60
|
},
|
|
61
|
+
selectedContent: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: '',
|
|
64
|
+
},
|
|
70
65
|
},
|
|
71
66
|
emits: ['input-submit'],
|
|
72
67
|
setup(props: Props, { emit }) {
|
|
@@ -74,29 +69,36 @@ export default {
|
|
|
74
69
|
const text = ref<string>('');
|
|
75
70
|
const isShowForm = ref<boolean>(false);
|
|
76
71
|
const isFinish = ref<boolean>(false);
|
|
77
|
-
|
|
78
|
-
const listItemClick = (): void => {
|
|
79
|
-
disabled.value = true;
|
|
80
|
-
isShowForm.value = false;
|
|
81
|
-
isFinish.value = true;
|
|
82
|
-
// emit('input-submit', text.value);
|
|
83
|
-
};
|
|
72
|
+
const validator = ref<boolean>(false);
|
|
84
73
|
|
|
85
74
|
const showForm = (): void => {
|
|
86
75
|
isShowForm.value = true;
|
|
87
76
|
}
|
|
88
77
|
|
|
78
|
+
const submitForm = (): void => {
|
|
79
|
+
if (text.value.trim() === '') {
|
|
80
|
+
validator.value = true;
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
emit('input-submit', text.value);
|
|
84
|
+
isFinish.value = true;
|
|
85
|
+
validator.value = false;
|
|
86
|
+
}
|
|
87
|
+
|
|
89
88
|
return {
|
|
90
89
|
disabled,
|
|
91
90
|
text,
|
|
92
|
-
listItemClick,
|
|
93
91
|
props,
|
|
94
92
|
iconForm,
|
|
95
93
|
isShowForm,
|
|
96
94
|
showForm,
|
|
97
95
|
iconSucess,
|
|
96
|
+
iconSend,
|
|
98
97
|
isFinish,
|
|
99
|
-
TUITranslateService
|
|
98
|
+
TUITranslateService,
|
|
99
|
+
submitForm,
|
|
100
|
+
validator,
|
|
101
|
+
isH5,
|
|
100
102
|
};
|
|
101
103
|
},
|
|
102
104
|
};
|
|
@@ -111,9 +113,11 @@ export default {
|
|
|
111
113
|
margin-left: 10px;
|
|
112
114
|
.form-button {
|
|
113
115
|
background-color: #1c66e5;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
display: flex;
|
|
117
|
+
color: #ffffff;
|
|
118
|
+
padding: 4px 12px;
|
|
119
|
+
border-radius: 20px;
|
|
120
|
+
justify-content: center;
|
|
117
121
|
}
|
|
118
122
|
}
|
|
119
123
|
}
|
|
@@ -124,47 +128,25 @@ export default {
|
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
.form-input-box {
|
|
131
|
+
display: flex;
|
|
132
|
+
gap: 5px;
|
|
127
133
|
button:disabled {
|
|
128
134
|
background: #d8d8d8;
|
|
129
135
|
}
|
|
130
|
-
.form-input-
|
|
136
|
+
.form-input-text {
|
|
131
137
|
display:flex;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
align-self: center;
|
|
136
|
-
display:flex;
|
|
137
|
-
width:66px;
|
|
138
|
-
label {
|
|
139
|
-
text-overflow: ellipsis;
|
|
140
|
-
overflow: hidden;
|
|
141
|
-
white-space: nowrap;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.required-icon {
|
|
145
|
-
color: #e54545;
|
|
146
|
-
font-size: 16px;
|
|
147
|
-
}
|
|
138
|
+
flex:1;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
min-width: 200px;
|
|
148
141
|
}
|
|
149
142
|
.form-input {
|
|
150
143
|
flex:1;
|
|
151
|
-
margin-left:10px;
|
|
152
144
|
height: 27px;
|
|
153
145
|
border-radius: 8px;
|
|
154
146
|
border: 0px;
|
|
155
147
|
}
|
|
156
|
-
.form-input-
|
|
157
|
-
|
|
158
|
-
display:flex;
|
|
159
|
-
align-items: center;
|
|
160
|
-
flex-flow: wrap;
|
|
161
|
-
label {
|
|
162
|
-
margin-right: 5px;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.form-radio {
|
|
166
|
-
margin:0px 5px 0px 0px;
|
|
167
|
-
}
|
|
148
|
+
.form-input-h5 {
|
|
149
|
+
background: #f3f4f7;
|
|
168
150
|
}
|
|
169
151
|
}
|
|
170
152
|
|
|
@@ -194,51 +176,23 @@ export default {
|
|
|
194
176
|
}
|
|
195
177
|
|
|
196
178
|
.form-finish-container {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
.form-finish-title-right {
|
|
203
|
-
display:flex;
|
|
204
|
-
}
|
|
179
|
+
.card-title {
|
|
180
|
+
display:flex;
|
|
181
|
+
justify-content: space-between;
|
|
182
|
+
margin-bottom: 10px;
|
|
183
|
+
align-items: flex-start;
|
|
205
184
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
cursor: pointer;
|
|
210
|
-
margin-left: 20px;
|
|
211
|
-
&::before {
|
|
212
|
-
content: "";
|
|
213
|
-
position: absolute;
|
|
214
|
-
left: -20px;
|
|
215
|
-
top:2px;
|
|
216
|
-
border-radius: 50%;
|
|
217
|
-
// border: 1px solid #6f686a;
|
|
218
|
-
width: 16px;
|
|
219
|
-
height: 16px;
|
|
220
|
-
background-image: url('../../../../../../../assets/radio-uncheck.png');
|
|
221
|
-
background-size: cover;
|
|
222
|
-
background-position: center;
|
|
223
|
-
}
|
|
224
|
-
&::after {
|
|
225
|
-
content: "";
|
|
226
|
-
position: absolute;
|
|
227
|
-
left: -20px;
|
|
228
|
-
top: 2px;
|
|
229
|
-
border-radius: 50%;
|
|
230
|
-
width: 16px;
|
|
231
|
-
height: 16px;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
&:checked {
|
|
235
|
-
+ label::after {
|
|
236
|
-
background-image: url('../../../../../../../assets/radio-check.png');
|
|
237
|
-
background-size: cover;
|
|
238
|
-
}
|
|
185
|
+
.form-finish-title-right {
|
|
186
|
+
display: flex;
|
|
187
|
+
word-break: keep-all;
|
|
239
188
|
}
|
|
240
189
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
190
|
+
.validator-line {
|
|
191
|
+
font-size: 12px;
|
|
192
|
+
color: #e54545;
|
|
193
|
+
margin-top: 3px;
|
|
194
|
+
}
|
|
195
|
+
.submit-icon {
|
|
196
|
+
cursor: pointer;
|
|
197
|
+
}
|
|
244
198
|
</style>
|
|
@@ -7,16 +7,18 @@
|
|
|
7
7
|
<FormBranch
|
|
8
8
|
:title="content.header"
|
|
9
9
|
:list="content.items"
|
|
10
|
+
:selectedContent="content.selected?.content"
|
|
10
11
|
@input-click="handleContentListItemClick"
|
|
11
12
|
/>
|
|
12
13
|
</div>
|
|
13
14
|
</div>
|
|
14
15
|
<div
|
|
15
16
|
v-else
|
|
16
|
-
class="message-form"
|
|
17
|
+
class="message-form-input"
|
|
17
18
|
>
|
|
18
19
|
<FormInput
|
|
19
20
|
:title="content.header"
|
|
21
|
+
:selectedContent="content.selected?.content"
|
|
20
22
|
@input-submit="handleFormSaveInputSubmit"
|
|
21
23
|
/>
|
|
22
24
|
</div>
|
|
@@ -55,6 +57,9 @@ export default {
|
|
|
55
57
|
type: 0,
|
|
56
58
|
header: '',
|
|
57
59
|
items: [],
|
|
60
|
+
selected:{
|
|
61
|
+
content: '',
|
|
62
|
+
}
|
|
58
63
|
};
|
|
59
64
|
});
|
|
60
65
|
|
|
@@ -74,7 +79,7 @@ export default {
|
|
|
74
79
|
};
|
|
75
80
|
</script>
|
|
76
81
|
<style lang="scss">
|
|
77
|
-
.message-form {
|
|
82
|
+
.message-form-input {
|
|
78
83
|
max-width: 300px;
|
|
79
84
|
}
|
|
80
85
|
</style>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
{{ props.payload.content.header }}
|
|
8
8
|
</div>
|
|
9
9
|
<div
|
|
10
|
-
v-if="props.payload.status
|
|
10
|
+
v-if="props.payload.status === 0 && canSelect"
|
|
11
11
|
v-for="(item, index) in props.payload.content.items"
|
|
12
12
|
:key="index"
|
|
13
13
|
:class="['form-branch-item', item.content ? '' : 'warning-item']"
|
|
@@ -19,9 +19,11 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script lang="ts">
|
|
22
|
+
import vue from '../../../../../../../adapter-vue';
|
|
22
23
|
import { TUITranslateService } from '@tencentcloud/chat-uikit-engine';
|
|
23
24
|
import { customerServicePayloadType } from '../../../../../../../interface';
|
|
24
25
|
import { isPC } from '../../../../../../../utils/env'
|
|
26
|
+
const { ref } = vue;
|
|
25
27
|
interface branchItem {
|
|
26
28
|
content: string;
|
|
27
29
|
desc: string;
|
|
@@ -35,23 +37,35 @@ export default {
|
|
|
35
37
|
props: {
|
|
36
38
|
payload: {
|
|
37
39
|
type: Object as () => customerServicePayloadType,
|
|
38
|
-
default: () => ({content: { header: '', items: [] },status:0}),
|
|
40
|
+
default: () => ({optionType: 0, taskInfo: { taskID: 0, nodeID: '', env: '' }, content: { header: '', items: [] }, status: 0}),
|
|
39
41
|
},
|
|
40
42
|
},
|
|
41
43
|
emits: ['input-click'],
|
|
42
44
|
setup(props: Props, { emit }) {
|
|
43
|
-
let
|
|
45
|
+
let canSelect = ref(true);
|
|
44
46
|
const listItemClick = (branch: branchItem): void => {
|
|
45
47
|
if (!branch.content) {
|
|
46
48
|
return;
|
|
47
49
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
let cloudCustomData;
|
|
51
|
+
if (props.payload.optionType === 0) {
|
|
52
|
+
cloudCustomData = '';
|
|
53
|
+
canSelect.value = false;
|
|
54
|
+
} else if (props.payload.optionType === 1) {
|
|
55
|
+
cloudCustomData = JSON.stringify({
|
|
56
|
+
BranchOptionInfo: {
|
|
57
|
+
taskID: props.payload.taskInfo?.taskID,
|
|
58
|
+
nodeID: props.payload.taskInfo?.nodeID,
|
|
59
|
+
env: props.payload.taskInfo?.env,
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
emit('input-click', branch, cloudCustomData);
|
|
50
64
|
};
|
|
51
65
|
|
|
52
66
|
return {
|
|
53
67
|
props,
|
|
54
|
-
|
|
68
|
+
canSelect,
|
|
55
69
|
listItemClick,
|
|
56
70
|
isPC,
|
|
57
71
|
TUITranslateService
|
|
@@ -62,10 +76,12 @@ export default {
|
|
|
62
76
|
<style lang="scss">
|
|
63
77
|
.form-branch-container {
|
|
64
78
|
.card-title-container {
|
|
65
|
-
padding:
|
|
79
|
+
padding: 8px 16px;
|
|
66
80
|
border-radius: 0 10px 10px;
|
|
67
|
-
width:fit-content;
|
|
68
81
|
font-family: PingFangSC-Regular;
|
|
82
|
+
overflow-wrap: break-word;
|
|
83
|
+
word-break: normal;
|
|
84
|
+
max-width: fit-content;
|
|
69
85
|
}
|
|
70
86
|
.card-title {
|
|
71
87
|
background-color: #f3f4f7;
|
|
@@ -84,13 +100,13 @@ export default {
|
|
|
84
100
|
margin-top: 8px;
|
|
85
101
|
cursor: pointer;
|
|
86
102
|
line-height: 16px;
|
|
87
|
-
width:fit-content;
|
|
88
103
|
font-family: PingFangSC-Regular;
|
|
89
104
|
min-width: 50px;
|
|
90
105
|
text-align: center;
|
|
91
106
|
overflow-wrap: break-word;
|
|
92
107
|
word-wrap: break-word;
|
|
93
108
|
word-break: normal;
|
|
109
|
+
max-width: fit-content;
|
|
94
110
|
}
|
|
95
111
|
.warning-item {
|
|
96
112
|
color: #ff9800;
|
|
@@ -37,8 +37,8 @@ export default {
|
|
|
37
37
|
const payload = computed<customerServicePayloadType>(() => {
|
|
38
38
|
return props.payload;
|
|
39
39
|
});
|
|
40
|
-
const handleContentListItemClick = (branch: branchItem) => {
|
|
41
|
-
emit('sendMessage', { text: branch.content });
|
|
40
|
+
const handleContentListItemClick = (branch: branchItem, cloudCustomData?: string) => {
|
|
41
|
+
emit('sendMessage', { text: branch.content }, cloudCustomData || '');
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
const handleFormSaveInputSubmit = (text: string) => {
|
|
@@ -56,5 +56,7 @@ export default {
|
|
|
56
56
|
};
|
|
57
57
|
</script>
|
|
58
58
|
<style lang="scss">
|
|
59
|
-
|
|
59
|
+
.message-form {
|
|
60
|
+
max-width: 100%
|
|
61
|
+
}
|
|
60
62
|
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="form-label">
|
|
2
|
+
<div class="form-label-pc">
|
|
3
3
|
<div v-if="isRequired" style="color: red;">
|
|
4
4
|
*
|
|
5
5
|
</div>
|
|
@@ -21,9 +21,11 @@
|
|
|
21
21
|
}
|
|
22
22
|
</script>
|
|
23
23
|
<style lang="scss">
|
|
24
|
-
.form-label {
|
|
24
|
+
.form-label-pc {
|
|
25
25
|
display:flex;
|
|
26
26
|
padding-bottom: 8px;
|
|
27
|
-
margin-top:12px;
|
|
27
|
+
margin-top: 12px;
|
|
28
|
+
overflow-wrap: break-word;
|
|
29
|
+
word-break: normal;
|
|
28
30
|
}
|
|
29
31
|
</style>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
>
|
|
18
18
|
<div style="height:100%;overflow-y: auto;">
|
|
19
19
|
<div class="dialog-title">
|
|
20
|
-
<div>
|
|
20
|
+
<div class="dialog-title-tip">
|
|
21
21
|
{{ props.payload.content.tip }}
|
|
22
22
|
</div>
|
|
23
23
|
<div @click="closeDialog">
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<RadioMobile :chooseItemList="item.chooseItemList" :name="item.name" :isRequired="item.isRequired" @input-change="handleInputChange" :validator="item.isRequired == 1 && isValid(item.name)"/>
|
|
36
36
|
</div>
|
|
37
37
|
<div v-else class="variable-value-container-mobile">
|
|
38
|
-
<div class="variable-value-label">
|
|
38
|
+
<div class="variable-value-label-mobile">
|
|
39
39
|
{{ item.name }}
|
|
40
40
|
</div>
|
|
41
41
|
<div class="variable-value">
|
|
@@ -365,6 +365,11 @@ export default {
|
|
|
365
365
|
padding: 20px;
|
|
366
366
|
font-size: 16px;
|
|
367
367
|
font-weight: 500;
|
|
368
|
+
.dialog-title-tip {
|
|
369
|
+
width: 100%;
|
|
370
|
+
overflow-wrap: anywhere;
|
|
371
|
+
word-break: normal;
|
|
372
|
+
}
|
|
368
373
|
.dialog-close {
|
|
369
374
|
color: rgba(153,153,153,1);
|
|
370
375
|
}
|
|
@@ -376,13 +381,20 @@ export default {
|
|
|
376
381
|
align-items: center;
|
|
377
382
|
border-bottom: 1px solid #e7e7e7;
|
|
378
383
|
gap: 5px;
|
|
384
|
+
width: 100%;
|
|
385
|
+
box-sizing: border-box;
|
|
386
|
+
overflow: hidden;
|
|
379
387
|
}
|
|
380
|
-
.variable-value-label {
|
|
381
|
-
width:
|
|
382
|
-
|
|
388
|
+
.variable-value-label-mobile {
|
|
389
|
+
width: 100px;
|
|
390
|
+
overflow-wrap: break-word;
|
|
391
|
+
word-break: normal;
|
|
383
392
|
}
|
|
384
393
|
.variable-value {
|
|
385
394
|
flex: 1;
|
|
395
|
+
overflow-wrap: break-word;
|
|
396
|
+
word-break: normal;
|
|
397
|
+
min-width: 0;
|
|
386
398
|
}
|
|
387
399
|
.button-container {
|
|
388
400
|
display: flex;
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
</div>
|
|
7
7
|
<div class="form-finish-title-right" v-if="finishSubmit || props.payload.nodeStatus == 2" >
|
|
8
8
|
<Icon :src="iconSucess" style="margin:0px 4px"/>
|
|
9
|
-
|
|
9
|
+
<div class="form-finish-title">
|
|
10
|
+
{{ TUITranslateService.t("AIDesk.已提交") }}
|
|
11
|
+
</div>
|
|
10
12
|
</div>
|
|
11
13
|
</div>
|
|
12
14
|
|
|
@@ -160,9 +162,21 @@ export default {
|
|
|
160
162
|
justify-content: space-between;
|
|
161
163
|
align-items: center;
|
|
162
164
|
margin-bottom: 12px;
|
|
165
|
+
width: 100%;
|
|
166
|
+
}
|
|
167
|
+
.form-title {
|
|
168
|
+
flex: 1;
|
|
169
|
+
min-width: 0;
|
|
170
|
+
overflow-wrap: break-word;
|
|
171
|
+
word-break: normal;
|
|
172
|
+
padding-right: 8px;
|
|
173
|
+
box-sizing: border-box;
|
|
163
174
|
}
|
|
164
175
|
.form-finish-title-right {
|
|
165
176
|
display: flex;
|
|
177
|
+
flex-shrink: 0;
|
|
178
|
+
align-items: center;
|
|
179
|
+
max-width: 100%;
|
|
166
180
|
}
|
|
167
181
|
.button-container {
|
|
168
182
|
display: flex;
|
|
@@ -191,5 +205,11 @@ export default {
|
|
|
191
205
|
.variable-value-container {
|
|
192
206
|
padding-bottom: 8px;
|
|
193
207
|
margin-top: 3px;
|
|
208
|
+
overflow-wrap: break-word;
|
|
209
|
+
word-break: normal;
|
|
210
|
+
}
|
|
211
|
+
.form-finish-title {
|
|
212
|
+
word-break: keep-all;
|
|
213
|
+
white-space: nowrap;
|
|
194
214
|
}
|
|
195
215
|
</style>
|
|
@@ -93,9 +93,10 @@ export default {
|
|
|
93
93
|
display: -webkit-box;
|
|
94
94
|
overflow: hidden;
|
|
95
95
|
text-overflow: ellipsis;
|
|
96
|
-
-webkit-line-clamp:
|
|
96
|
+
-webkit-line-clamp: 1;
|
|
97
97
|
-webkit-box-orient: vertical;
|
|
98
|
-
|
|
98
|
+
overflow-wrap: break-word;
|
|
99
|
+
word-break: normal;
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
.order-description {
|
|
@@ -105,7 +106,6 @@ export default {
|
|
|
105
106
|
color: rgba(0, 0, 0, 0.55);
|
|
106
107
|
overflow: hidden;
|
|
107
108
|
text-overflow: ellipsis;
|
|
108
|
-
white-space: nowrap;
|
|
109
109
|
font-weight: 600;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="message-rating-star">
|
|
3
|
-
<p class="rating-head">
|
|
3
|
+
<p class="rating-head-tail">
|
|
4
4
|
{{ props.ratingTemplate.head }}
|
|
5
5
|
</p>
|
|
6
6
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
</div>
|
|
47
47
|
<p
|
|
48
48
|
v-if="hasReply"
|
|
49
|
-
class="rating-tail"
|
|
49
|
+
class="rating-head-tail"
|
|
50
50
|
:style="{
|
|
51
51
|
marginTop: 20 + 'px',
|
|
52
52
|
}"
|
|
@@ -108,13 +108,13 @@ export default {
|
|
|
108
108
|
});
|
|
109
109
|
|
|
110
110
|
const setValue = (val: number) => {
|
|
111
|
-
if (!hasReply.value) {
|
|
111
|
+
if (!hasReply.value && !hasExpire.value) {
|
|
112
112
|
selectValue.value = val;
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
const setHoverValue = (value: number) => {
|
|
117
|
-
if (!hasReply.value) {
|
|
117
|
+
if (!hasReply.value && !hasExpire.value) {
|
|
118
118
|
hoverValue.value = value;
|
|
119
119
|
}
|
|
120
120
|
};
|
|
@@ -155,16 +155,11 @@ export default {
|
|
|
155
155
|
};
|
|
156
156
|
</script>
|
|
157
157
|
<style lang="scss" scoped>
|
|
158
|
-
.rating-head {
|
|
159
|
-
font-size: 14px;
|
|
160
|
-
font-weight: 400;
|
|
161
|
-
color: #999;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.rating-tail {
|
|
158
|
+
.rating-head-tail {
|
|
165
159
|
font-size: 14px;
|
|
166
160
|
font-weight: 400;
|
|
167
161
|
color: #999;
|
|
162
|
+
word-break: break-word;
|
|
168
163
|
}
|
|
169
164
|
|
|
170
165
|
.card-title {
|
|
@@ -178,11 +173,12 @@ export default {
|
|
|
178
173
|
border-radius: 20px;
|
|
179
174
|
border: 0;
|
|
180
175
|
margin-top: 10px;
|
|
181
|
-
|
|
182
|
-
padding
|
|
176
|
+
min-width: 240px;
|
|
177
|
+
padding: 10px;
|
|
183
178
|
|
|
184
179
|
button:disabled {
|
|
185
180
|
background: #d8d8d8;
|
|
181
|
+
cursor: default;
|
|
186
182
|
}
|
|
187
183
|
}
|
|
188
184
|
|