feat: asset详细视图 基本功能实现

This commit is contained in:
zhangyu
2021-10-13 18:24:09 +08:00
parent 3029a0db41
commit cfca72366c
35 changed files with 264 additions and 65 deletions

View File

@@ -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'
}
}
}
}
}
}