This commit is contained in:
parent
2a637a31cf
commit
79a1d261d8
|
|
@ -106,7 +106,10 @@ const data: TableData = {
|
||||||
key: 'name',
|
key: 'name',
|
||||||
name: '分类名',
|
name: '分类名',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
must: true
|
must: true,
|
||||||
|
getDisable: () => {
|
||||||
|
return !pathname.includes('/jobs')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// key: 'type',
|
// key: 'type',
|
||||||
|
|
@ -129,6 +132,9 @@ const data: TableData = {
|
||||||
primary: 'id',
|
primary: 'id',
|
||||||
subFun(self, data) {
|
subFun(self, data) {
|
||||||
return self.api?.deleteData(data)
|
return self.api?.deleteData(data)
|
||||||
|
},
|
||||||
|
getDisable: () => {
|
||||||
|
return !pathname.includes('/jobs')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue