refactor(sj_1.1.0-beta3): 优化任务下拉列表

This commit is contained in:
xlsea 2024-07-10 09:37:19 +08:00
parent 736effaa26
commit 07cbf6ca8f
2 changed files with 5 additions and 4 deletions

View File

@ -117,6 +117,7 @@ const jobTaskChange = (_: string, option: { label: string; value: number }) => {
<NFormItem path="jobTask.jobId" label="所属任务" placeholder="请选择任务"> <NFormItem path="jobTask.jobId" label="所属任务" placeholder="请选择任务">
<NSelect <NSelect
v-model:value="form.jobTask!.jobId" v-model:value="form.jobTask!.jobId"
filterable
:options=" :options="
jobList.map(job => { jobList.map(job => {
return { return {

View File

@ -64,7 +64,7 @@ const href = (url: string) => {
<GlobalSearch /> <GlobalSearch />
<ButtonIcon <ButtonIcon
v-if="!appStore.isMobile" v-if="!appStore.isMobile"
class="color-#c71d23" class="color-#c71d23 xl:block sm:hidden"
tooltip-content="Gitee" tooltip-content="Gitee"
icon="simple-icons:gitee" icon="simple-icons:gitee"
@click="href('https://gitee.com/aizuda/snail-job')" @click="href('https://gitee.com/aizuda/snail-job')"
@ -72,7 +72,7 @@ const href = (url: string) => {
<ButtonIcon <ButtonIcon
v-if="!appStore.isMobile" v-if="!appStore.isMobile"
tooltip-content="Github" tooltip-content="Github"
class="color-#010409 dark:color-#e6edf3" class="color-#010409 xl:block sm:hidden dark:color-#e6edf3"
icon="simple-icons:github" icon="simple-icons:github"
@click="href('https://github.com/aizuda/snail-job')" @click="href('https://github.com/aizuda/snail-job')"
/> />
@ -83,14 +83,14 @@ const href = (url: string) => {
icon="material-symbols:unknown-document-outline" icon="material-symbols:unknown-document-outline"
@click="href('https://snailjob.opensnail.com/')" @click="href('https://snailjob.opensnail.com/')"
/> />
<FullScreen v-if="!appStore.isMobile" :full="isFullscreen" @click="toggle" /> <FullScreen v-if="!appStore.isMobile" class="xl:block sm:hidden" :full="isFullscreen" @click="toggle" />
<LangSwitch :lang="appStore.locale" :lang-options="appStore.localeOptions" @change-lang="appStore.changeLocale" /> <LangSwitch :lang="appStore.locale" :lang-options="appStore.localeOptions" @change-lang="appStore.changeLocale" />
<ThemeSchemaSwitch <ThemeSchemaSwitch
:theme-schema="themeStore.themeScheme" :theme-schema="themeStore.themeScheme"
:is-dark="themeStore.darkMode" :is-dark="themeStore.darkMode"
@switch="themeStore.toggleThemeScheme" @switch="themeStore.toggleThemeScheme"
/> />
<ThemeButton v-if="!appStore.isMobile" /> <ThemeButton v-if="!appStore.isMobile" class="xl:block sm:hidden" />
<UserAvatar /> <UserAvatar />
</div> </div>
</DarkModeContainer> </DarkModeContainer>