Skip to content

Commit

Permalink
feat: 任务参数更新
Browse files Browse the repository at this point in the history
  • Loading branch information
bakashigure committed Oct 23, 2023
1 parent cd2e2fe commit abb1621
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
25 changes: 16 additions & 9 deletions packages/renderer/src/components/Task/configurations/Mall.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,26 @@ function handleItemUpdate(items: { buy_first: string[]; blacklist: string[] }) {

<template>
<div class="configuration-form">
<NFormItem
label="自动购物"
:show-label="true"
size="small"
label-align="left"
label-placement="left"
:show-feedback="false"
>
<NFormItem size="small" label-align="left" label-placement="left" :show-feedback="false">
<NCheckbox
:disabled="configurationDisabled.nre"
:checked="props.configurations.shopping"
@update:checked="checked => handleUpdateConfiguration('shopping', checked)"
/>
>
自动购物
</NCheckbox>
</NFormItem>

<NFormItem size="small" label-align="left" label-placement="left" :show-feedback="false">
<NCheckbox
:disabled="configurationDisabled.nre"
:checked="props.configurations.force_shopping_if_credit_full"
@update:checked="
checked => handleUpdateConfiguration('force_shopping_if_credit_full', checked)
"
>
信用溢出时无视黑名单
</NCheckbox>
</NFormItem>

<NFormItem
Expand Down
1 change: 1 addition & 0 deletions packages/renderer/src/store/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export const taskTemplate: {
shopping: true,
buy_first: ['龙门币', '招聘许可', '赤金'],
blacklist: ['家具零件', '加急许可'],
force_shopping_if_credit_full: false,
},
results: {},
},
Expand Down

0 comments on commit abb1621

Please sign in to comment.