no message

Former-commit-id: 7249b35b7140424c4541af6f8709940698b951e3
Former-commit-id: 9e4c81f02e02635b5c48f7b0be054bc3dadf9600
Former-commit-id: 00c73aa05252d5d154f7872c5d2093fadb796216
This commit is contained in:
李杨
2018-03-29 08:31:02 +08:00
parent 1263d66f04
commit 99318d60b4

View File

@@ -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' : ''
} }
}, },
// 测试 // 测试