|
@@ -70,19 +70,20 @@ export default function() { |
|
@@ -70,19 +70,20 @@ export default function() { |
70
|
}
|
70
|
}
|
71
|
}
|
71
|
}
|
72
|
},
|
72
|
},
|
73
|
- {
|
|
|
74
|
- title: '回复人',
|
|
|
75
|
- align: 'center',
|
|
|
76
|
- render: (h, params) => {
|
|
|
77
|
- let answerUserName = params.row.answerUserName;
|
|
|
78
|
|
73
|
|
79
|
- if (answerUserName) {
|
|
|
80
|
- return params.row.answerUserName;
|
|
|
81
|
- } else {
|
|
|
82
|
- return '—';
|
|
|
83
|
- }
|
|
|
84
|
- },
|
|
|
85
|
- },
|
74
|
+ // {
|
|
|
75
|
+ // title: '回复人',
|
|
|
76
|
+ // align: 'center',
|
|
|
77
|
+ // render: (h, params) => {
|
|
|
78
|
+ // let answerUserName = params.row.answerUserName;
|
|
|
79
|
+ //
|
|
|
80
|
+ // if (answerUserName) {
|
|
|
81
|
+ // return params.row.answerUserName;
|
|
|
82
|
+ // } else {
|
|
|
83
|
+ // return '—';
|
|
|
84
|
+ // }
|
|
|
85
|
+ // },
|
|
|
86
|
+ // },
|
86
|
{
|
87
|
{
|
87
|
title: '咨询及回复时间',
|
88
|
title: '咨询及回复时间',
|
88
|
key: 'image',
|
89
|
key: 'image',
|
|
@@ -98,44 +99,45 @@ export default function() { |
|
@@ -98,44 +99,45 @@ export default function() { |
98
|
);
|
99
|
);
|
99
|
}
|
100
|
}
|
100
|
},
|
101
|
},
|
101
|
- {
|
|
|
102
|
- title: '操作',
|
|
|
103
|
- key: 'action',
|
|
|
104
|
- align: 'center',
|
|
|
105
|
- render: (h, params) => {
|
|
|
106
|
- const row = params.row;
|
|
|
107
|
|
102
|
|
108
|
- let status = row.operateFlag;
|
|
|
109
|
-
|
|
|
110
|
- if (status === 2) {
|
|
|
111
|
- return (
|
|
|
112
|
- <div class="cell-action-row">
|
|
|
113
|
- <i-button type="error" size="small"
|
|
|
114
|
- onClick={() => this.editAnswer(row)}>
|
|
|
115
|
- 修改
|
|
|
116
|
- </i-button>
|
|
|
117
|
- </div>
|
|
|
118
|
- );
|
|
|
119
|
- } else if (status === 0) {
|
|
|
120
|
- return (
|
|
|
121
|
- <div class="cell-action-row">
|
|
|
122
|
- <i-button type="primary" size="small"
|
|
|
123
|
- onClick={() => this.editAnswer(row)}>
|
|
|
124
|
- 回复
|
|
|
125
|
- </i-button>
|
|
|
126
|
- </div>
|
|
|
127
|
- );
|
|
|
128
|
- } else if (status === 1) {
|
|
|
129
|
- return (
|
|
|
130
|
- <div class="cell-action-row">
|
|
|
131
|
- <i-button type="error" size="small" style="backgroundColor: #999;border-color: #999;cursor: not-allowed;">
|
|
|
132
|
- 修改
|
|
|
133
|
- </i-button>
|
|
|
134
|
- </div>
|
|
|
135
|
- );
|
|
|
136
|
- }
|
|
|
137
|
- },
|
|
|
138
|
- }
|
103
|
+ // {
|
|
|
104
|
+ // title: '操作',
|
|
|
105
|
+ // key: 'action',
|
|
|
106
|
+ // align: 'center',
|
|
|
107
|
+ // render: (h, params) => {
|
|
|
108
|
+ // const row = params.row;
|
|
|
109
|
+ //
|
|
|
110
|
+ // let status = row.operateFlag;
|
|
|
111
|
+ //
|
|
|
112
|
+ // if (status === 2) {
|
|
|
113
|
+ // return (
|
|
|
114
|
+ // <div class="cell-action-row">
|
|
|
115
|
+ // <i-button type="error" size="small"
|
|
|
116
|
+ // onClick={() => this.editAnswer(row)}>
|
|
|
117
|
+ // 修改
|
|
|
118
|
+ // </i-button>
|
|
|
119
|
+ // </div>
|
|
|
120
|
+ // );
|
|
|
121
|
+ // } else if (status === 0) {
|
|
|
122
|
+ // return (
|
|
|
123
|
+ // <div class="cell-action-row">
|
|
|
124
|
+ // <i-button type="primary" size="small"
|
|
|
125
|
+ // onClick={() => this.editAnswer(row)}>
|
|
|
126
|
+ // 回复
|
|
|
127
|
+ // </i-button>
|
|
|
128
|
+ // </div>
|
|
|
129
|
+ // );
|
|
|
130
|
+ // } else if (status === 1) {
|
|
|
131
|
+ // return (
|
|
|
132
|
+ // <div class="cell-action-row">
|
|
|
133
|
+ // <i-button type="error" size="small" style="backgroundColor: #999;border-color: #999;cursor: not-allowed;">
|
|
|
134
|
+ // 修改
|
|
|
135
|
+ // </i-button>
|
|
|
136
|
+ // </div>
|
|
|
137
|
+ // );
|
|
|
138
|
+ // }
|
|
|
139
|
+ // },
|
|
|
140
|
+ // }
|
139
|
],
|
141
|
],
|
140
|
tableData: [],
|
142
|
tableData: [],
|
141
|
pageData: {
|
143
|
pageData: {
|
|
@@ -158,10 +160,11 @@ export default function() { |
|
@@ -158,10 +160,11 @@ export default function() { |
158
|
label: '选择品牌',
|
160
|
label: '选择品牌',
|
159
|
model: ''
|
161
|
model: ''
|
160
|
},
|
162
|
},
|
161
|
- answerUserName: {
|
|
|
162
|
- label: '回复人',
|
|
|
163
|
- model: ''
|
|
|
164
|
- },
|
163
|
+
|
|
|
164
|
+ // answerUserName: {
|
|
|
165
|
+ // label: '回复人',
|
|
|
166
|
+ // model: ''
|
|
|
167
|
+ // },
|
165
|
sort: {
|
168
|
sort: {
|
166
|
first: {
|
169
|
first: {
|
167
|
label: '选择类目',
|
170
|
label: '选择类目',
|