From 7a37f66081e922d1754805811269ec3b5e703764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Tue, 13 Jan 2026 16:55:38 +0800 Subject: [PATCH] =?UTF-8?q?style(sdy):=20=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BB=A5=E7=AC=A6=E5=90=88=E5=9B=A2=E9=98=9F?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=8C=87=E5=8D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 标准化组件标签的闭合方式和缩进 - 统一导入语句的空格和换行格式 - 调整对象属性的换行和对齐方式 - 规范条件渲染表达式的格式 - 优化长逻辑行的换行和可读性 - 统一箭头函数和三元运算符的格式 --- src/views/sdy/shopDealerApply/index.vue | 700 +++++++++++----------- src/views/sdy/shopDealerCapital/index.vue | 116 ++-- 2 files changed, 426 insertions(+), 390 deletions(-) diff --git a/src/views/sdy/shopDealerApply/index.vue b/src/views/sdy/shopDealerApply/index.vue index 30b3c7a..5eaa246 100644 --- a/src/views/sdy/shopDealerApply/index.vue +++ b/src/views/sdy/shopDealerApply/index.vue @@ -21,7 +21,9 @@ - 跟进中 + 跟进中 已签约 已取消 @@ -40,7 +42,9 @@ {{ record.comments }} - {{ record.updateTime }} + {{ + record.updateTime + }} @@ -50,21 +54,21 @@ - + 编辑 - + - + 已签约 - + - + 驳回 - + - + 删除 @@ -83,358 +87,372 @@ - + - diff --git a/src/views/sdy/shopDealerCapital/index.vue b/src/views/sdy/shopDealerCapital/index.vue index 610c9ab..e73f34a 100644 --- a/src/views/sdy/shopDealerCapital/index.vue +++ b/src/views/sdy/shopDealerCapital/index.vue @@ -1,50 +1,54 @@ $router.go(-1)"> - - - - + + + + + + + + - - - - - - 显示 - 隐藏 - - - - 修改 - - - 删除 - - - + + 显示 + 隐藏 - - + + + 修改 + + + 删除 + + + + + + - - + + @@ -58,10 +62,17 @@ ColumnItem } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; - import {getPageTitle} from '@/utils/common'; + import { getPageTitle } from '@/utils/common'; import ShopDealerCapitalEdit from './components/shopDealerCapitalEdit.vue'; - import { pageShopDealerCapital, removeShopDealerCapital, removeBatchShopDealerCapital } from '@/api/shop/shopDealerCapital'; - import type { ShopDealerCapital, ShopDealerCapitalParam } from '@/api/shop/shopDealerCapital/model'; + import { + pageShopDealerCapital, + removeShopDealerCapital, + removeBatchShopDealerCapital + } from '@/api/shop/shopDealerCapital'; + import type { + ShopDealerCapital, + ShopDealerCapitalParam + } from '@/api/shop/shopDealerCapital/model'; // 表格实例 const tableRef = ref | null>(null); @@ -127,7 +138,11 @@ 50: { text: '新人注册奖', color: 'processing' } }; const type = typeMap[text] || { text: '未知', color: 'default' }; - return { type: 'tag', props: { color: type.color }, children: type.text }; + return { + type: 'tag', + props: { color: type.color }, + children: type.text + }; } }, { @@ -137,12 +152,15 @@ align: 'center', customRender: ({ text, record }) => { const amount = parseFloat(text || '0').toFixed(2); - const isIncome = record.flowType === 10 || record.flowType === 40 || record.flowType === 50; + const isIncome = + record.flowType === 10 || + record.flowType === 40 || + record.flowType === 50; return { type: 'span', props: { style: { - color: isIncome ? '#424242' : '#ff4d4f', + color: isIncome ? '#424242' : '#ff4d4f' } }, children: `${isIncome ? '' : '-'} ${amount}` @@ -161,7 +179,7 @@ dataIndex: 'toUserId', key: 'toUserId', align: 'center', - customRender: ({ text }) => text ? `ID: ${text}` : '-' + customRender: ({ text }) => (text ? `ID: ${text}` : '-') }, { title: '描述',