Commit 48ef82db authored by 黄奎's avatar 黄奎

咨询修改

parent 44a72cd2
......@@ -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() {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment