Commit 45279c5a55994a356635d6d4c769767dfb58eeaa

Authored by fengwotao
2 parents 03d9fc1a 948a2d8a

perf: 优化公共接口管理,批量发布为主题色

@@ -30,9 +30,7 @@ @@ -30,9 +30,7 @@
30 cancel-text="取消" 30 cancel-text="取消"
31 @confirm="handleBatchPublish('batchPublish')" 31 @confirm="handleBatchPublish('batchPublish')"
32 > 32 >
33 - <a-button :style="publishButtonBg" :disabled="hasBatchPublish">  
34 - <span :style="publishButtonTextColor">批量发布</span>  
35 - </a-button> 33 + <a-button color="primary" :disabled="hasBatchPublish"> 批量发布 </a-button>
36 </Popconfirm> 34 </Popconfirm>
37 </Authority> 35 </Authority>
38 <!-- <Popconfirm 36 <!-- <Popconfirm
@@ -95,7 +93,7 @@ @@ -95,7 +93,7 @@
95 <PublicApiForm @register="registerDrawer" @success="handleSuccess" /> 93 <PublicApiForm @register="registerDrawer" @success="handleSuccess" />
96 </template> 94 </template>
97 <script lang="ts" setup name="list"> 95 <script lang="ts" setup name="list">
98 - import { h, ref, computed } from 'vue'; 96 + import { h, ref } from 'vue';
99 import { BasicTable, useTable, TableAction } from '/@/components/Table'; 97 import { BasicTable, useTable, TableAction } from '/@/components/Table';
100 import { useDrawer } from '/@/components/Drawer'; 98 import { useDrawer } from '/@/components/Drawer';
101 import { columns, searchFormSchema } from './config/config'; 99 import { columns, searchFormSchema } from './config/config';
@@ -152,14 +150,6 @@ @@ -152,14 +150,6 @@
152 150
153 const { createMessage } = useMessage(); 151 const { createMessage } = useMessage();
154 152
155 - const publishButtonBg = computed(() => {  
156 - return { backgroundColor: `rgba(0, 128, 0, ${hasBatchPublish.value ? 0.5 : 1})` };  
157 - });  
158 -  
159 - const publishButtonTextColor = computed(() => {  
160 - return { color: `rgba(255, 255, 255, ${hasBatchPublish.value ? 0.5 : 1})` };  
161 - });  
162 -  
163 const handleSuccess = () => { 153 const handleSuccess = () => {
164 reload(); 154 reload();
165 setStatusIsTrue(); 155 setStatusIsTrue();