no message
Former-commit-id: 7249b35b7140424c4541af6f8709940698b951e3 Former-commit-id: 9e4c81f02e02635b5c48f7b0be054bc3dadf9600 Former-commit-id: 00c73aa05252d5d154f7872c5d2093fadb796216
This commit is contained in:
@@ -54,7 +54,9 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 请求数据
|
// 请求数据
|
||||||
async getData () {
|
async getData () {
|
||||||
this.table.data = this.dataFilter(await this.dataMaker())
|
const dataOriginal = this.dataFilter(await this.dataMaker())
|
||||||
|
this.dataOriginal = dataOriginal
|
||||||
|
this.table.data = dataOriginal
|
||||||
},
|
},
|
||||||
// 过滤数据部分 模拟过滤掉 star 字段 并且添加 __edit 字段
|
// 过滤数据部分 模拟过滤掉 star 字段 并且添加 __edit 字段
|
||||||
dataFilter (val) {
|
dataFilter (val) {
|
||||||
@@ -101,7 +103,8 @@ export default {
|
|||||||
editButtonSettingMaker (scope) {
|
editButtonSettingMaker (scope) {
|
||||||
const isEdit = scope.row.__edit
|
const isEdit = scope.row.__edit
|
||||||
return {
|
return {
|
||||||
size: 'small'
|
size: 'small',
|
||||||
|
type: isEdit ? 'primary' : ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 测试
|
// 测试
|
||||||
|
|||||||
Reference in New Issue
Block a user