Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 8cb87810
authored
May 30, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
三轮bug修复
1 parent
6dacf546
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
7 deletions
src/views/expert/components/messageModel.vue
src/views/expert/components/tag-textarea.vue
src/views/expert/components/welcomeWords.vue
src/views/expert/detail.vue
src/views/expert/components/messageModel.vue
View file @
8cb8781
...
@@ -106,7 +106,6 @@ export default {
...
@@ -106,7 +106,6 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
$globalState
,
'222323'
)
if
(
this
.
$globalState
)
{
if
(
this
.
$globalState
)
{
this
.
userId
=
this
.
$globalState
.
session
.
id
this
.
userId
=
this
.
$globalState
.
session
.
id
}
}
...
...
src/views/expert/components/tag-textarea.vue
View file @
8cb8781
...
@@ -124,7 +124,6 @@ export default {
...
@@ -124,7 +124,6 @@ export default {
},
},
addCardLink
()
{
addCardLink
()
{
let
span
=
document
.
createElement
(
'span'
)
let
span
=
document
.
createElement
(
'span'
)
console
.
log
(
this
.
value
,
'this.value'
)
// span.id = this.getGuid()
// span.id = this.getGuid()
// span.setAttribute('style', '-webkit-user-modify: read-only !important;')
// span.setAttribute('style', '-webkit-user-modify: read-only !important;')
let
text
=
'车主朋友,您好!<br>我是您的福利官,欢迎您领取电子质保卡,<br>请点击下方链接进行领取及查看:<br><span style="color:#409eff;">https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/</span><br>祝您用车愉快!<br>'
let
text
=
'车主朋友,您好!<br>我是您的福利官,欢迎您领取电子质保卡,<br>请点击下方链接进行领取及查看:<br><span style="color:#409eff;">https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/</span><br>祝您用车愉快!<br>'
...
@@ -318,7 +317,6 @@ export default {
...
@@ -318,7 +317,6 @@ export default {
watch
:
{
watch
:
{
value
(
val
)
{
value
(
val
)
{
// 非锁定状态下,实时更新innerHTML
// 非锁定状态下,实时更新innerHTML
console
.
log
(
val
,
'val'
)
if
(
val
==
'<span><br></span>'
)
{
if
(
val
==
'<span><br></span>'
)
{
this
.
$refs
.
wTextareaContent
.
innerHTML
=
''
this
.
$refs
.
wTextareaContent
.
innerHTML
=
''
this
.
value
=
''
this
.
value
=
''
...
...
src/views/expert/components/welcomeWords.vue
View file @
8cb8781
...
@@ -218,6 +218,14 @@ export default {
...
@@ -218,6 +218,14 @@ export default {
},
},
// 上传图片
// 上传图片
handleImgChange
(
e
,
targetItem
)
{
handleImgChange
(
e
,
targetItem
)
{
const
imgList
=
this
.
previewList
.
filter
(
item
=>
{
return
item
.
attType
==
2
})
if
(
imgList
.
length
==
9
){
this
.
$message
.
error
(
'最多只能上传9张图片!'
)
document
.
querySelector
(
'.upload-img'
).
value
=
''
return
;
}
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
var
file
=
e
.
srcElement
.
files
[
0
]
var
file
=
e
.
srcElement
.
files
[
0
]
// 默认1MB
// 默认1MB
...
@@ -225,6 +233,7 @@ export default {
...
@@ -225,6 +233,7 @@ export default {
const
isLt
=
file
.
size
/
1024
/
1024
<
limitSize
const
isLt
=
file
.
size
/
1024
/
1024
<
limitSize
if
(
!
isLt
)
{
if
(
!
isLt
)
{
this
.
$message
.
error
(
'上传图片大小不能超过'
+
limitSize
+
'MB!'
)
this
.
$message
.
error
(
'上传图片大小不能超过'
+
limitSize
+
'MB!'
)
document
.
querySelector
(
'.upload-img'
).
value
=
''
return
true
return
true
}
}
this
.
loading
=
true
this
.
loading
=
true
...
@@ -238,8 +247,8 @@ export default {
...
@@ -238,8 +247,8 @@ export default {
image
.
src
=
e
.
target
.
result
image
.
src
=
e
.
target
.
result
image
.
onload
=
()
=>
{
image
.
onload
=
()
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
let
name
=
file
.
name
.
split
(
'.'
)
cons
ole
.
log
(
this
.
$apis
,
789789
)
cons
t
base64
=
name
[
name
.
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
let
len
=
this
.
previewList
.
length
-
1
let
len
=
this
.
previewList
.
length
-
1
...
...
src/views/expert/detail.vue
View file @
8cb8781
...
@@ -181,13 +181,19 @@ export default {
...
@@ -181,13 +181,19 @@ export default {
}
}
let
preList
=
[...
this
.
$refs
.
welcome
.
previewList
]
let
preList
=
[...
this
.
$refs
.
welcome
.
previewList
]
preList
.
forEach
(
item
=>
{
preList
.
forEach
(
item
=>
{
if
(
item
.
attType
==
1
&&
!
item
.
attContent
.
trim
()){
item
.
attContent
=
'\n'
}
if
(
item
.
attType
==
7
)
{
if
(
item
.
attType
==
7
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
}
}
})
})
preList
=
preList
.
filter
(
item
=>
{
const
typeItem
=
preList
.
find
(
item
=>
{
return
item
.
attType
!=
1
||
item
.
attContent
.
trim
()
return
item
.
attType
==
1
})
})
if
(
!
typeItem
){
preList
.
unshift
({
attType
:
'1'
,
attContent
:
'\n'
})
}
const
targetItem
=
this
.
numberTypeList
.
find
(
item
=>
{
const
targetItem
=
this
.
numberTypeList
.
find
(
item
=>
{
return
item
.
dictLabel
==
this
.
clientType
return
item
.
dictLabel
==
this
.
clientType
})
})
...
@@ -307,7 +313,10 @@ export default {
...
@@ -307,7 +313,10 @@ export default {
}
}
.form
{
.form
{
/deep/.el-form-item
{
/deep/.el-form-item
{
&:nth-child(-n+2){
height
:
36px
;
height
:
36px
;
}
//
height
:
36px
;
line-height
:
36px
;
line-height
:
36px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
&
>
.el-form-item__label
{
&
>
.el-form-item__label
{
...
...
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