Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haobanDevOps
Overview
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
office
haobanDevOps
Commits
95a33c91
Commit
95a33c91
authored
Aug 27, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改用户反馈
parent
68ee6a09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
11 deletions
+41
-11
reply-dialog.vue
src/components/suggest/reply-dialog.vue
+22
-6
suggestDetail.vue
src/views/haoban/suggestDetail.vue
+19
-5
No files found.
src/components/suggest/reply-dialog.vue
View file @
95a33c91
...
@@ -23,7 +23,7 @@ import replyDialog from '@/components/suggest/reply-dialog.vue'
...
@@ -23,7 +23,7 @@ import replyDialog from '@/components/suggest/reply-dialog.vue'
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"反馈内容:"
prop=
"message"
>
<el-form-item
label=
"反馈内容:"
prop=
"message"
>
<limit-textarea
:inputWidth=
"448"
:inputValue
.
sync=
"
template
Data.message"
:holder=
"'请输入反馈内容'"
:getByType=
"'word'"
:maxLength=
"100"
>
</limit-textarea>
<limit-textarea
:inputWidth=
"448"
:inputValue
.
sync=
"
form
Data.message"
:holder=
"'请输入反馈内容'"
:getByType=
"'word'"
:maxLength=
"100"
>
</limit-textarea>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -67,6 +67,13 @@ export default {
...
@@ -67,6 +67,13 @@ export default {
}
}
},
},
data
()
{
data
()
{
let
validMessage
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
formData
.
message
===
''
)
{
callback
(
new
Error
(
'请输入反馈内容'
));
}
else
{
callback
();
}
};
return
{
return
{
customDialog
:
false
,
// 弹框显示
customDialog
:
false
,
// 弹框显示
formData
:
{
formData
:
{
...
@@ -86,7 +93,7 @@ export default {
...
@@ -86,7 +93,7 @@ export default {
message
:
''
message
:
''
},
},
rules
:
{
rules
:
{
message
:
[{
required
:
true
,
message
:
'请输入反馈内容'
,
trigger
:
'blur'
}]
message
:
[{
required
:
true
,
validator
:
validMessage
,
trigger
:
'blur'
}]
},
},
statusOptions
:
[],
statusOptions
:
[],
typeOptions
:
[]
typeOptions
:
[]
...
@@ -98,6 +105,7 @@ export default {
...
@@ -98,6 +105,7 @@ export default {
*/
*/
handleClose
(
done
)
{
handleClose
(
done
)
{
const
that
=
this
;
const
that
=
this
;
that
.
$refs
[
'publishForm'
].
resetFields
();
done
();
done
();
that
.
hideDialog
();
that
.
hideDialog
();
},
},
...
@@ -107,6 +115,7 @@ export default {
...
@@ -107,6 +115,7 @@ export default {
*/
*/
customCancel
()
{
customCancel
()
{
const
that
=
this
;
const
that
=
this
;
that
.
$refs
[
'publishForm'
].
resetFields
();
that
.
hideDialog
();
that
.
hideDialog
();
},
},
...
@@ -114,9 +123,10 @@ export default {
...
@@ -114,9 +123,10 @@ export default {
const
that
=
this
;
const
that
=
this
;
that
.
customDialog
=
false
;
that
.
customDialog
=
false
;
that
.
$emit
(
'hidePublishDialog'
);
that
.
$emit
(
'hidePublishDialog'
);
/* that.$nextTick(() => {
that
.
templateData
=
{
that.formData.classifyName = '';
templateType
:
''
,
}); */
message
:
''
}
},
},
/**
/**
* 改变模板
* 改变模板
...
@@ -126,7 +136,7 @@ export default {
...
@@ -126,7 +136,7 @@ export default {
that
.
typeOptions
.
forEach
(
ele
=>
{
that
.
typeOptions
.
forEach
(
ele
=>
{
if
(
ele
.
templateType
==
e
)
{
if
(
ele
.
templateType
==
e
)
{
that
.
templateData
.
message
=
ele
.
templateDetail
;
that
.
templateData
.
message
=
ele
.
templateDetail
;
that
.
formData
.
message
=
ele
.
templateDetail
;
that
.
$set
(
that
.
formData
,
'message'
,
that
.
templateData
.
message
)
}
}
});
});
},
},
...
@@ -136,6 +146,8 @@ export default {
...
@@ -136,6 +146,8 @@ export default {
*/
*/
customConfirm
(
formName
)
{
customConfirm
(
formName
)
{
const
that
=
this
;
const
that
=
this
;
that
.
formData
.
message
=
that
.
templateData
.
message
;
that
.
$set
(
that
.
formData
,
'message'
,
that
.
templateData
.
message
)
that
.
$refs
[
formName
].
validate
(
valid
=>
{
that
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
that
.
postEditData
();
that
.
postEditData
();
...
@@ -173,6 +185,10 @@ export default {
...
@@ -173,6 +185,10 @@ export default {
*/
*/
setData
(
list
)
{
setData
(
list
)
{
const
that
=
this
;
const
that
=
this
;
that
.
templateData
=
{
templateType
:
''
,
message
:
''
}
that
.
$emit
(
'hidePublishDialog'
,
true
);
that
.
$emit
(
'hidePublishDialog'
,
true
);
},
},
/**
/**
...
...
src/views/haoban/suggestDetail.vue
View file @
95a33c91
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
<div
class=
"reply-list"
>
<div
class=
"reply-list"
>
<div
class=
"reply-title font-14 color-303133"
>
回复内容
</div>
<div
class=
"reply-title font-14 color-303133"
>
回复内容
</div>
<template
v-for=
"(item, index) in replyList"
>
<template
v-for=
"(item, index) in replyList"
>
<div
class=
"flex flex-s
pace-between
relpy-cell"
:key=
"index + 'reply'"
>
<div
class=
"flex flex-s
tart
relpy-cell"
:key=
"index + 'reply'"
>
<div
class=
"reply-list-left"
><img
:src=
"item.userImageUrl"
alt=
""
/></div>
<div
class=
"reply-list-left"
><img
:src=
"item.userImageUrl"
alt=
""
/></div>
<div
class=
"reply-list-right"
>
<div
class=
"reply-list-right"
>
<div
class=
"flex flex-column flex-space-between"
>
<div
class=
"flex flex-column flex-space-between"
>
...
@@ -91,9 +91,9 @@
...
@@ -91,9 +91,9 @@
<span
v-if=
"item.issueStatus == 2"
class=
""
>
【已解决】
</span>
<span
v-if=
"item.issueStatus == 2"
class=
""
>
【已解决】
</span>
</div>
</div>
</div>
</div>
<div
class=
"flex flex-space-between"
>
<div
class=
"flex flex-space-between
m-t-8
"
>
<div
class=
"reply-content font-14 color-606266"
>
{{
item
.
message
}}
</div>
<div
class=
"reply-content font-14 color-606266"
>
{{
item
.
message
}}
</div>
<div
class=
"reply-date"
>
{{
createTime
|
formatTimeStamp
}}
</div>
<div
class=
"reply-date"
>
{{
item
.
createTime
|
formatTimeStamp
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -104,6 +104,9 @@
...
@@ -104,6 +104,9 @@
</div>
</div>
</div>
</div>
</el-form>
</el-form>
<div
class=
"reply-btn"
>
<el-button
type=
"primary"
@
click=
"toReply"
>
快速回复
</el-button>
</div>
</div>
</div>
<reply-dialog
:editRow=
"editRow"
:publishShow=
"publishShow"
@
hidePublishDialog=
"hidePublishDialog"
>
</reply-dialog>
<reply-dialog
:editRow=
"editRow"
:publishShow=
"publishShow"
@
hidePublishDialog=
"hidePublishDialog"
>
</reply-dialog>
</div>
</div>
...
@@ -191,10 +194,10 @@ export default {
...
@@ -191,10 +194,10 @@ export default {
/**
/**
* 快速回复
* 快速回复
*/
*/
toReply
(
index
,
row
)
{
toReply
()
{
const
that
=
this
;
const
that
=
this
;
that
.
publishShow
=
true
;
that
.
publishShow
=
true
;
that
.
editRow
=
row
;
that
.
editRow
=
that
.
formData
;
},
},
hidePublishDialog
(
flag
)
{
hidePublishDialog
(
flag
)
{
const
that
=
this
;
const
that
=
this
;
...
@@ -238,6 +241,7 @@ export default {
...
@@ -238,6 +241,7 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
let
data
=
res
.
data
;
let
data
=
res
.
data
;
if
(
data
.
errorCode
==
0
)
{
if
(
data
.
errorCode
==
0
)
{
that
.
total
=
data
.
totalCount
;
that
.
replyList
=
data
.
result
||
[];
that
.
replyList
=
data
.
result
||
[];
}
else
{
}
else
{
that
.
$message
.
error
(
data
.
message
);
that
.
$message
.
error
(
data
.
message
);
...
@@ -310,10 +314,12 @@ export default {
...
@@ -310,10 +314,12 @@ export default {
}
}
.relpy-cell
{
.relpy-cell
{
padding
:
20px
0
;
padding
:
20px
0
;
border-bottom
:
1px
solid
#d6e0f0
;
}
}
.reply-list-left
{
.reply-list-left
{
width
:
48px
;
width
:
48px
;
height
:
48px
;
height
:
48px
;
margin-right
:
17px
;
border-radius
:
2px
;
border-radius
:
2px
;
background
:
#ecf1f5
;
background
:
#ecf1f5
;
img
{
img
{
...
@@ -323,6 +329,14 @@ export default {
...
@@ -323,6 +329,14 @@ export default {
}
}
}
}
.reply-list-right
{
.reply-list-right
{
width
:
calc
(
100%
-
65px
);
height
:
48px
;
.reply-content
{
max-width
:
720px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.reply-status
{
.reply-status
{
font-size
:
13px
;
font-size
:
13px
;
color
:
#faad14
;
color
:
#faad14
;
...
...
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