Commit 013ac2e0 authored by 黄奎's avatar 黄奎

页面修改

parent d2d02668
...@@ -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>
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