补充oakExecutable判断

This commit is contained in:
lxy 2024-12-20 18:09:03 +08:00
parent 711a104c3f
commit cef216a873
4 changed files with 6 additions and 2 deletions

View File

@ -100,6 +100,7 @@ export default OakComponent({
...ele, ...ele,
}; };
}), }),
oakExecutable: this.tryExecute(),
}; };
}, },
getTotal: 100, getTotal: 100,

View File

@ -31,6 +31,7 @@ export default OakComponent({
return { return {
wpProducts: data, wpProducts: data,
canCreate: legalActions?.includes('create'), canCreate: legalActions?.includes('create'),
oakExecutable: this.tryExecute(),
}; };
}, },
actions: ['create', 'update', 'remove'], actions: ['create', 'update', 'remove'],

View File

@ -98,7 +98,7 @@ export default OakComponent({
(ele) => { (ele) => {
const { creator } = ele; const { creator } = ele;
const { nickname, name, mobile$user: mobiles } = creator!; const { nickname, name, mobile$user: mobiles } = creator!;
const mobile = mobiles && mobiles[0]?.mobile; const mobile = mobiles && mobiles[0]?.mobile;
return { return {
creatorName: name || nickname, creatorName: name || nickname,
@ -107,11 +107,12 @@ export default OakComponent({
} }
} }
), ),
oakExecutable: this.tryExecute(),
}; };
}, },
getTotal: 100, getTotal: 100,
actions: ['close', 'succeedPaying'], actions: ['close', 'succeedPaying'],
methods: { methods: {
refreshOfflineAccounts() { refreshOfflineAccounts() {
this.features.cache.refresh('offlineAccount', { this.features.cache.refresh('offlineAccount', {
data: { data: {

View File

@ -31,6 +31,7 @@ export default OakComponent({
return { return {
wpProducts: data, wpProducts: data,
canCreate: legalActions?.includes('create'), canCreate: legalActions?.includes('create'),
oakExecutable: this.tryExecute(),
}; };
}, },
actions: ['create', 'update', 'remove'], actions: ['create', 'update', 'remove'],