feat: asset详细视图 基本功能实现
This commit is contained in:
@@ -15,11 +15,13 @@ export default {
|
||||
},
|
||||
tableId: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
orderByFa: {}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
operationWidth: '165' // 操作列宽
|
||||
operationWidth: '165', // 操作列宽
|
||||
orderBy: {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -80,5 +82,20 @@ export default {
|
||||
}
|
||||
this.$emit('orderBy', orderBy)
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
orderByFa: {
|
||||
immediate: true,
|
||||
handler (n) {
|
||||
if (n) {
|
||||
const index = n.indexOf('-')
|
||||
if (index !== -1) {
|
||||
this.orderBy[n.slice(index + 1)] = 'descending'
|
||||
} else {
|
||||
this.orderBy[n] = 'descending'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user