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 @@
...
@@ -51,7 +51,9 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"回复内容"
>
<el-table-column
label=
"回复内容"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
ReplyContent
}}
<p
class=
"answer-con"
>
{{
scope
.
row
.
ReplyContent
}}
</p>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"ReplyDate"
label=
"回复时间"
>
</el-table-column>
<el-table-column
prop=
"ReplyDate"
label=
"回复时间"
>
</el-table-column>
...
@@ -75,7 +77,7 @@
...
@@ -75,7 +77,7 @@
</div>
</div>
<!-- 回复 -->
<!-- 回复 -->
<el-dialog
:title=
"editTitle"
:visible
.
sync=
"isShowReplayForm"
width=
"800px"
>
<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"
>
<el-form-item
label=
"咨询用户"
class=
"user"
>
{{ replayMsg.UserName }}
{{ replayMsg.UserName }}
</el-form-item>
</el-form-item>
...
@@ -126,7 +128,7 @@
...
@@ -126,7 +128,7 @@
</el-form>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"isShowReplayForm = false"
>
取 消
</el-button>
<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>
</span>
</el-dialog>
</el-dialog>
</div>
</div>
...
@@ -199,7 +201,6 @@ export default {
...
@@ -199,7 +201,6 @@ export default {
{
required
:
true
,
message
:
"请输入回复内容"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"请输入回复内容"
,
trigger
:
"blur"
}
]
]
},
},
pass
:
''
};
};
},
},
created
()
{
created
()
{
...
@@ -270,24 +271,46 @@ export default {
...
@@ -270,24 +271,46 @@ export default {
this
.
getList
();
this
.
getList
();
},
},
//设置咨询回复
//设置咨询回复
saveData
()
{
submitForm
(
formName
)
{
if
(
this
.
pass
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
assetsApipost
(
"/api/Assess/SetGoodsReply"
,
this
.
replayMsg
,
res
=>
{
if
(
valid
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
alert
(
'submit!'
);
this
.
isShowReplayForm
=
false
;
}
else
{
this
.
Success
(
res
.
data
.
message
);
console
.
log
(
'error submit!!'
);
this
.
getList
();
return
false
;
}
else
{
}
this
.
Error
(
res
.
data
.
message
);
});
}
},
});
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
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
@@ -324,4 +347,12 @@ export default {
...
@@ -324,4 +347,12 @@ export default {
.performanceStatics
.remark
{
.performanceStatics
.remark
{
margin-top
:
30px
;
margin-top
:
30px
;
}
}
.performanceStatics
.answer-con
{
display
:
-webkit-box
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
4
;
}
</
style
>
</
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