|
@@ -317,40 +317,12 @@ export default {
|
|
},
|
|
},
|
|
render: (h, { row, column, index }) => {
|
|
render: (h, { row, column, index }) => {
|
|
return <div style="padding-left:10px">
|
|
return <div style="padding-left:10px">
|
|
- <el-button type="text" onClick={() => {
|
|
|
|
- this.$prompt('留言回复', '回复', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- inputType: "textarea"
|
|
|
|
- }).then(({ value }) => {
|
|
|
|
- if(value){
|
|
|
|
- esGoodsReply({
|
|
|
|
- id:this.detailId,
|
|
|
|
- messageId:row.id,
|
|
|
|
- content:value
|
|
|
|
- }).then(res => {
|
|
|
|
- this.$message({ type: 'success', message: `设置成功!` })
|
|
|
|
- esGoodsDetail({ id: this.detailId }).then(res2 => {
|
|
|
|
- this.formData = {
|
|
|
|
- ...res2.data,
|
|
|
|
- imgList: res2.data.imgList.map(item => {
|
|
|
|
- return {
|
|
|
|
- ...item,
|
|
|
|
- imgUrl: item.imgUrl
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }}>回复</el-button>
|
|
|
|
|
|
+ <el-button type="text" onClick={() => {this.msgSend(row)}}>回复</el-button>
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]}
|
|
]}
|
|
- tableData={this.formData.messageList}
|
|
|
|
- >
|
|
|
|
|
|
+ tableData={this.formData.messageList}>
|
|
</zj-table>
|
|
</zj-table>
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
@@ -381,6 +353,34 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ msgSend(row){
|
|
|
|
+ this.$prompt('留言回复', '回复', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ inputType: "textarea"
|
|
|
|
+ }).then(({ value }) => {
|
|
|
|
+ if(value){
|
|
|
|
+ esGoodsReply({
|
|
|
|
+ id:this.detailId,
|
|
|
|
+ messageId:row.id,
|
|
|
|
+ content:value
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.$message({ type: 'success', message: `设置成功!` })
|
|
|
|
+ esGoodsDetail({ id: this.detailId }).then(res2 => {
|
|
|
|
+ this.formData = {
|
|
|
|
+ ...res2.data,
|
|
|
|
+ imgList: res2.data.imgList.map(item => {
|
|
|
|
+ return {
|
|
|
|
+ ...item,
|
|
|
|
+ imgUrl: item.imgUrl
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
copyGoods() {
|
|
copyGoods() {
|
|
esGoodsCopy({ id: this.detailId.id }).then(res => {
|
|
esGoodsCopy({ id: this.detailId.id }).then(res => {
|
|
this.$message({ type: 'success', message: `克隆成功!` })
|
|
this.$message({ type: 'success', message: `克隆成功!` })
|