Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3927c9cb
authored
Sep 14, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
af3d0138
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
src/views/home/aiCard.vue
src/views/home/aiCard.vue
View file @
3927c9c
...
...
@@ -143,6 +143,7 @@ export default {
},
data
()
{
return
{
isRedeem
:
true
,
isEdit
:
false
,
loading
:
false
,
taskStatus
:
false
,
...
...
@@ -303,7 +304,6 @@ export default {
const
file
=
e
.
srcElement
.
files
[
0
]
let
AllImgExt
=
'.xls|.xlsx'
let
extName
=
file
.
name
.
substring
(
file
.
name
.
lastIndexOf
(
'.'
)).
toLowerCase
()
console
.
log
(
extName
)
if
(
AllImgExt
.
indexOf
(
extName
)
===
-
1
)
{
this
.
$message
.
error
(
'上传格式不正确'
)
return
false
...
...
@@ -373,16 +373,19 @@ export default {
this
.
$message
.
error
(
'请选择专员'
)
return
}
this
.
isRedeem
=
true
const
previewList
=
this
.
autoSend
&&
this
.
$refs
.
welcome
.
previewList
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
[]
const
attachmentList
=
previewList
.
map
(
item
=>
{
if
(
item
.
attType
==
1
)
{
item
.
attContent
=
item
.
attContent
.
replace
(
/
(\[
@昵称
\]
|
\[
#兑换码
\])
/g
,
'$1'
)
item
.
attContent
=
item
.
attContent
.
replace
(
/
(
@昵称|#兑换码
)
/g
,
'[$1]'
)
if
(
item
.
attContent
.
match
(
/
#兑换码
/g
).
length
>
10
)
{
if
(
item
.
attContent
.
match
(
/
\[
#兑换码
\]
/g
)
&&
item
.
attContent
.
match
(
/
\[
#兑换码
\]
/g
).
length
>
10
)
{
this
.
$message
({
message
:
'兑换码已达上限'
,
type
:
'error'
})
this
.
isRedeem
=
false
return
}
}
else
if
(
item
.
attType
==
7
)
{
...
...
@@ -403,6 +406,7 @@ export default {
autoSend
}
if
(
this
.
isEdit
)
params
.
taskId
=
this
.
taskId
if
(
!
this
.
isRedeem
)
return
this
.
$apis
.
aiCard
[
methods
](
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
message
:
res
.
message
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment