|
@@ -178,9 +178,9 @@ export default {
|
178
|
178
|
'emptyPageDetail'
|
179
|
179
|
]),
|
180
|
180
|
newData (info) {
|
181
|
|
- if (info.classId === '1' && this.users.filter(x => x.classId === '1').length > 0) {
|
|
181
|
+ if (info.classId - 0 === 1 && this.users.filter(x => x.classId - 0 === 1).length > 0) {
|
182
|
182
|
this.users = this.users.map((x) => {
|
183
|
|
- if (x.classId === '1') {
|
|
183
|
+ if (x.classId - 0 === 1) {
|
184
|
184
|
return { ...x, createdata: Date.parse(new Date()) }
|
185
|
185
|
} else {
|
186
|
186
|
return x
|