-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
不养闲人任务合并+优化ui路径+自定义副表名称+仅回满提前上班 (#693)
* 优化ui路径 不需要把dist文件夹复制到根目录下了 * 增加自定义副表名称功能 * 调用maa刷日常允许手动停止 * 重新实现合并不养闲人任务+修复bug * 仅回满干员提前上班+删除自动减少仅回满干员心情上限功能 * 自定义合并任务间隔 * 修bug+格式化代码 * 刷新用尽说明优化 * 取消副表标题传入后端 * 不养闲人合并改为函数 * 自动格式化 * 信用作战指定编队 * 更新ui的readme * 取消名称传入后端 * 取消生成任务前排序 * 删除无用参数
- Loading branch information
Showing
12 changed files
with
152 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<script setup> | ||
import { inject } from 'vue' | ||
const show = inject('show_name_editor') | ||
import { storeToRefs } from 'pinia' | ||
import { usePlanStore } from '@/stores/plan' | ||
const plan_store = usePlanStore() | ||
const { sub_plan, backup_plans } = storeToRefs(plan_store) | ||
const triggerTimingOptions = [ | ||
{ label: '任务开始', value: 'BEGINNING' }, | ||
{ label: '下班结束', value: 'BEFORE_PLANNING' }, | ||
{ label: '上班结束', value: 'AFTER_PLANNING' }, | ||
{ label: '任务结束', value: 'END' } | ||
] | ||
function update_trigger(data) { | ||
backup_plans.value[sub_plan.value].trigger = data | ||
} | ||
</script> | ||
|
||
<template> | ||
<n-modal | ||
v-model:show="show" | ||
preset="card" | ||
title="重命名" | ||
transform-origin="center" | ||
style="width: auto; max-width: 90vw" | ||
> | ||
<div class="dropdown-container"> | ||
<label class="dropdown-label">副表名称 </label> | ||
<n-input v-model:value="backup_plans[sub_plan].name"> </n-input> | ||
</div> | ||
</n-modal> | ||
</template> | ||
|
||
<style> | ||
.dropdown-container { | ||
display: flex; | ||
align-items: center; | ||
margin-top: 5px; | ||
} | ||
.dropdown-label { | ||
flex: 0 0 40%; | ||
max-width: 125px; | ||
} | ||
.dropdown-select { | ||
flex: 1; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.