Skip to content

Commit

Permalink
chore: 优化部分代码格式
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Oct 13, 2024
1 parent 6a77168 commit 1382346
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 28 deletions.
4 changes: 1 addition & 3 deletions src/views/monitor/log/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
</template>
<template #toolbar-right>
<a-button v-permission="['monitor:log:export']" @click="onExport">
<template #icon>
<icon-download />
</template>
<template #icon><icon-download /></template>
<template #default>导出</template>
</a-button>
</template>
Expand Down
4 changes: 1 addition & 3 deletions src/views/monitor/log/operation/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
</template>
<template #toolbar-right>
<a-button v-permission="['monitor:log:export']" @click="onExport">
<template #icon>
<icon-download />
</template>
<template #icon><icon-download /></template>
<template #default>导出</template>
</a-button>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/views/schedule/job/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<template #toolbar-right>
<a-button v-permission="['schedule:job:add']" type="primary" @click="onAdd">
<template #icon><icon-plus /></template>
<span>新增</span>
<template #default>新增</template>
</a-button>
</template>
<template #jobName="{ record }">
Expand Down
6 changes: 2 additions & 4 deletions src/views/system/dept/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@
<template #toolbar-right>
<a-button v-permission="['system:dept:add']" type="primary" @click="onAdd()">
<template #icon><icon-plus /></template>
<span>新增</span>
<template #default>新增</template>
</a-button>
<a-button v-permission="['system:dept:export']" @click="onExport">
<template #icon>
<icon-download />
</template>
<template #icon><icon-download /></template>
<template #default>导出</template>
</a-button>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/dict/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<template #toolbar-right>
<a-button v-permission="['system:dict:item:add']" type="primary" @click="onAdd">
<template #icon><icon-plus /></template>
<span>新增</span>
<template #default>新增</template>
</a-button>
</template>
<template #label="{ record }">
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/dict/tree/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div>
<a-button v-permission="['system:dict:add']" type="primary" style="width: 100%" @click="onAdd">
<template #icon><icon-plus /></template>
<span>新增</span>
<template #default>新增</template>
</a-button>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/menu/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<template #toolbar-right>
<a-button v-permission="['system:menu:add']" type="primary" @click="onAdd()">
<template #icon><icon-plus /></template>
<span>新增</span>
<template #default>新增</template>
</a-button>
<a-tooltip content="展开/折叠">
<a-button @click="onExpanded">
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/notice/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<template #toolbar-right>
<a-button v-permission="['system:notice:add']" type="primary" @click="onAdd">
<template #icon><icon-plus /></template>
<span>新增</span>
<template #default>新增</template>
</a-button>
</template>
<template #title="{ record }">
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/role/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<template #toolbar-right>
<a-button v-permission="['system:role:add']" type="primary" @click="onAdd">
<template #icon><icon-plus /></template>
<span>新增</span>
<template #default>新增</template>
</a-button>
</template>
<template #name="{ record }">
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/storage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<template #toolbar-right>
<a-button v-permission="['system:storage:add']" type="primary" @click="onAdd">
<template #icon><icon-plus /></template>
<span>新增</span>
<template #default>新增</template>
</a-button>
</template>
<template #name="{ record }">
Expand Down
16 changes: 5 additions & 11 deletions src/views/system/user/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,17 @@
</template>
<template #toolbar-left>
<a-button v-permission="['system:user:add']" type="primary" @click="onAdd">
<template #icon>
<icon-plus />
</template>
<span>新增</span>
<template #icon><icon-plus /></template>
<template #default>新增</template>
</a-button>
<a-button v-permission="['system:user:import']" @click="onImport">
<template #icon>
<icon-upload />
</template>
<span>导入</span>
<template #icon><icon-upload /></template>
<template #default>导入</template>
</a-button>
</template>
<template #toolbar-right>
<a-button v-permission="['system:user:export']" @click="onExport">
<template #icon>
<icon-download />
</template>
<template #icon><icon-download /></template>
<template #default>导出</template>
</a-button>
</template>
Expand Down

0 comments on commit 1382346

Please sign in to comment.