Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
013ac2e0
Commit
013ac2e0
authored
Jul 27, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
d2d02668
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
20 deletions
+51
-20
happraise.vue
src/components/huimai/happraise.vue
+51
-20
No files found.
src/components/huimai/happraise.vue
View file @
013ac2e0
...
...
@@ -51,7 +51,9 @@
</el-table-column>
<el-table-column
label=
"回复内容"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
ReplyContent
}}
<p
class=
"answer-con"
>
{{
scope
.
row
.
ReplyContent
}}
</p>
</
template
>
</el-table-column>
<el-table-column
prop=
"ReplyDate"
label=
"回复时间"
>
</el-table-column>
...
...
@@ -75,7 +77,7 @@
</div>
<!-- 回复 -->
<el-dialog
:title=
"editTitle"
:visible
.
sync=
"isShowReplayForm"
width=
"800px"
>
<el-form
label-width=
"150px"
:rules=
"rules"
:model=
"replayMsg"
@
validate=
"answerTest"
>
<el-form
ref=
"answerform"
label-width=
"150px"
:rules=
"rules"
:model=
"replayMsg"
@
validate=
"answerTest"
>
<el-form-item
label=
"咨询用户"
class=
"user"
>
{{ replayMsg.UserName }}
</el-form-item>
...
...
@@ -126,7 +128,7 @@
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"isShowReplayForm = false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"saveData()"
v-if=
"showType == 1"
>
确 定
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"saveData(
'answerform'
)"
v-if=
"showType == 1"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
...
...
@@ -199,7 +201,6 @@ export default {
{
required
:
true
,
message
:
"请输入回复内容"
,
trigger
:
"blur"
}
]
},
pass
:
''
};
},
created
()
{
...
...
@@ -270,24 +271,46 @@ export default {
this
.
getList
();
},
//设置咨询回复
saveData
()
{
if
(
this
.
pass
)
{
this
.
assetsApipost
(
"/api/Assess/SetGoodsReply"
,
this
.
replayMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
isShowReplayForm
=
false
;
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
});
}
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
alert
(
'submit!'
);
}
else
{
console
.
log
(
'error submit!!'
);
return
false
;
}
});
},
saveData
(
answerform
)
{
this
.
$refs
[
answerform
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
assetsApipost
(
"/api/Assess/SetGoodsReply"
,
this
.
replayMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
isShowReplayForm
=
false
;
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
});
}
else
{
return
false
;
}
});
// if (this.pass) {
// this.assetsApipost("/api/Assess/SetGoodsReply", this.replayMsg, res => {
// if (res.data.resultCode == 1) {
// this.isShowReplayForm = false;
// this.Success(res.data.message);
// this.getList();
// } else {
// this.Error(res.data.message);
// }
// });
// }
},
//回复验证结果
answerTest
(
res
,
pass
)
{
this
.
pass
=
pass
}
}
},
};
</
script
>
<
style
scoped
>
...
...
@@ -324,4 +347,12 @@ export default {
.performanceStatics
.remark
{
margin-top
:
30px
;
}
.performanceStatics
.answer-con
{
display
:
-webkit-box
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
4
;
}
</
style
>
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