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
48ef82db
Commit
48ef82db
authored
Feb 26, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
咨询修改
parent
44a72cd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
4 deletions
+43
-4
consultList.vue
src/components/tradePavilion/consultList.vue
+43
-4
No files found.
src/components/tradePavilion/consultList.vue
View file @
48ef82db
...
...
@@ -32,10 +32,15 @@
</el-table-column>
<el-table-column
prop=
"EMail"
width=
"150"
label=
"邮箱"
>
</el-table-column>
<el-table-column
prop=
"AskStatusStr"
width=
"150"
label=
"咨询状态"
>
</el-table-column>
<el-table-column
prop=
"address"
width=
"200"
label=
"操作"
>
<template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看"
placement=
"top"
>
<img
@
click=
"getInfo(scope.row)"
src=
"../../assets/img/userman/icon-show.png"
alt=
""
>
<img
@
click=
"getInfo(scope.row,0)"
src=
"../../assets/img/userman/icon-show.png"
alt=
""
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"回复"
placement=
"top"
v-if=
"scope.row.AskStatus==0"
>
<img
@
click=
"getInfo(scope.row,1)"
src=
"../../assets/img/userman/edit.png"
alt=
""
>
</el-tooltip>
</
template
>
</el-table-column>
...
...
@@ -73,9 +78,23 @@
<el-form-item
label=
"E-Mail"
>
<el-input
type=
"text"
v-model=
"addMsg.EMail"
class=
"w400"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"回复内容"
v-if=
"addMsg.AskStatus==1"
>
<el-input
type=
"textarea"
v-model=
"addMsg.FatContent"
class=
"w400"
disabled
></el-input>
</el-form-item>
</el-form>
<el-button
size=
"small"
style=
"margin-top:20px;padding:9px 25px;"
type=
"primary"
@
click=
"isShowInfo=false"
>
返回
</el-button>
<template
v-if=
"showType==0"
>
<el-button
size=
"small"
style=
"margin-top:20px;padding:9px 25px;"
type=
"primary"
@
click=
"isShowInfo=false"
>
返回
</el-button>
</
template
>
<
template
v-if=
"showType==1"
>
<el-form
label-width=
"120px"
>
<el-form-item
label=
"回复内容"
>
<el-input
type=
"textarea"
v-model=
"replyMsg.FatContent"
class=
"w400"
></el-input>
</el-form-item>
</el-form>
<el-button
size=
"small"
style=
"margin-top:20px;padding:9px 25px;"
type=
"primary"
@
click=
"saveReply()"
>
回复
</el-button>
</
template
>
</div>
</template>
</div>
...
...
@@ -94,6 +113,12 @@
tableData
:
[],
//数据列表
isShowInfo
:
false
,
//是否显示详情,
addMsg
:
{},
showType
:
0
,
//0-详情,1-回复
replyMsg
:
{
Id
:
0
,
AskStatus
:
1
,
FatContent
:
""
,
//回复内容
}
};
},
created
()
{
...
...
@@ -116,15 +141,29 @@
this
.
getList
();
},
//获取详情
getInfo
(
item
)
{
getInfo
(
item
,
type
)
{
this
.
showType
=
type
;
this
.
apipost
(
"/api/Trade/GetCommerceAskInfo"
,
{
Id
:
item
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
isShowInfo
=
true
;
this
.
replyMsg
.
Id
=
res
.
data
.
data
.
Id
;
this
.
addMsg
=
res
.
data
.
data
;
}
})
},
//咨询回复
saveReply
()
{
this
.
apipost
(
"/api/Trade/ReplyCommerceAsk"
,
this
.
replyMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
isShowInfo
=
false
;
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
}
},
mounted
()
{}
...
...
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