Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xoadoPlatform
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaohui
xoadoPlatform
Commits
af75c493
Commit
af75c493
authored
Dec 15, 2021
by
吕海涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改司机端语音配置
parent
ee240893
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
26 deletions
+42
-26
voicePage.vue
src/views/Voice/voicePage.vue
+42
-26
No files found.
src/views/Voice/voicePage.vue
View file @
af75c493
...
...
@@ -83,33 +83,17 @@
v-html=
"remindContentText(form)"
contentEditable=
"true"
ref=
"remindText"
style=
"
height: 100px;
overflow-y: scroll;
border-bottom: 1px solid #ccc;
padding-left: 5px;
"
style=
"height: 100px; overflow-y: scroll; padding-left: 5px"
id=
"obj"
></div>
<div
style=
"
padding: 0 5px;
padding: 0px 5px;
display: flex;
align-items: center;
"
>
<el-button
type=
"text"
@
click=
"setText('PHONE')"
>
#乘客手机尾号#
</el-button
>
<el-button
type=
"text"
@
click=
"setText('STARTADDRESS')"
>
#乘客上车地址#
</el-button
>
<el-button
type=
"text"
@
click=
"setText('ENDADDRESS')"
>
#乘客目的地#
</el-button
>
<el-button
type=
"text"
@
click=
"setText('APPOINTTIME')"
>
#乘客预约时间#
</el-button
<div
style=
"border-top: 1px solid #ccc"
v-if=
"list.length > 0"
>
<el-button
type=
"text"
@
click=
"setText(element.type)"
v-for=
"(element, index) in list"
:key=
"index"
style=
"margin-left: 5px"
>
{{ element.name }}
</el-button
>
</div>
</div>
...
...
@@ -138,6 +122,7 @@ export default {
remindContent
:
""
,
remindType
:
""
,
},
list
:
[],
dialogVisible
:
false
,
operationNodeobj
:
[
"开始听单"
,
...
...
@@ -214,6 +199,33 @@ export default {
},
showDialog
(
row
)
{
this
.
form
=
JSON
.
parse
(
JSON
.
stringify
(
row
.
row
));
if
(
(
row
.
row
.
remindType
*
1
==
1
&&
row
.
row
.
inspectData
*
1
==
6
)
||
row
.
row
.
inspectData
*
1
==
7
||
row
.
row
.
inspectData
*
1
==
8
)
{
this
.
list
=
[
{
name
:
"#乘客手机尾号#"
,
type
:
"PHONE"
,
},
{
name
:
"#乘客上车地址#"
,
type
:
"STARTADDRESS"
,
},
{
name
:
"#乘客目的地#"
,
type
:
"ENDADDRESS"
,
},
{
name
:
"#乘客预约时间#"
,
type
:
"APPOINTTIME"
,
},
];
}
else
{
this
.
list
=
[];
}
this
.
dialogVisible
=
true
;
},
inspectDataText
(
row
)
{
...
...
@@ -267,6 +279,7 @@ export default {
initTable
()
{
voicePage
().
then
((
res
)
=>
{
if
(
res
.
status
==
200
)
{
console
.
log
(
res
.
data
);
this
.
data
=
res
.
data
;
}
else
{
this
.
data
=
[];
...
...
@@ -302,12 +315,15 @@ export default {
/<span
(\s
+
[^
="'
]
+=
([
'"
])
.*
?\2)
*
\s
*>#乘客上车地址#<
\/
span>/g
,
"STARTADDRESS"
);
t
=
t
.
replace
(
/<
\/?[^
>
]
*>/g
,
""
);
//去除HTML tag
t
=
t
.
replace
(
/
[
|
]
*
\n
/g
,
"
\
n"
);
//去除行尾空白
t
=
t
.
replace
(
/ /gi
,
""
);
//去掉
let
json
=
{
id
:
this
.
form
.
id
,
inspectData
:
this
.
form
.
inspectData
,
operationNode
:
this
.
form
.
operationNode
,
remindType
:
this
.
form
.
remindType
,
remindContent
:
t
.
replace
(
/<
[^
>
]
+>/g
,
" "
)
,
remindContent
:
t
,
operation
:
this
.
form
.
operation
,
};
if
(
json
.
remindContent
.
length
>=
100
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment