|
@@ -12,6 +12,10 @@ import {
|
|
|
addReply
|
|
|
} from '@/api/complaint/reply'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
+
|
|
|
+/**
|
|
|
+ * @type {UserInfo} UserInfo - 用户信息类型
|
|
|
+ */
|
|
|
import {
|
|
|
COMPLAINANT_TYPE_OPTIONS,
|
|
|
COMPLAINT_TYPE_OPTIONS,
|
|
@@ -232,6 +236,14 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(['permission', 'userInfo']),
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取用户信息
|
|
|
+ * @returns {UserInfo} 用户信息对象
|
|
|
+ */
|
|
|
+ getUserInfo() {
|
|
|
+ return this.userInfo
|
|
|
+ },
|
|
|
permissionList() {
|
|
|
return {
|
|
|
// addBtn: this.vaildData(this.permission.complaint_add, false),
|
|
@@ -554,14 +566,17 @@ export default {
|
|
|
* 打开新增回复对话框
|
|
|
*/
|
|
|
handleAddReply() {
|
|
|
+ /** @type {UserInfo} */
|
|
|
+ const userInfo = this.getUserInfo
|
|
|
+
|
|
|
this.replyForm = {
|
|
|
complaintId: this.currentComplaintId,
|
|
|
complaintNo: this.currentComplaintNo,
|
|
|
replyType: REPLY_TYPE.SYSTEM,
|
|
|
replyContent: '',
|
|
|
replyAttachUrl: '',
|
|
|
- replierId: this.userInfo.user_id || '',
|
|
|
- replierName: this.userInfo.user_name || '',
|
|
|
+ replierId: userInfo.user_id || '',
|
|
|
+ replierName: userInfo.real_name || userInfo.user_name || '',
|
|
|
}
|
|
|
this.addReplyVisible = true
|
|
|
this.$nextTick(() => {
|