From b347745a1ea74cc3a16e3e7355c44078d8f314ad Mon Sep 17 00:00:00 2001 From: xiaolipro <2357729423@qq.com> Date: Mon, 7 Sep 2026 11:09:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=B8=AD=E6=96=87=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E6=8D=9F=E5=9D=8F=EF=BC=8C=E5=B1=9E=E6=80=A7=E5=BC=95?= =?UTF-8?q?=E5=8F=B7=E8=A2=AB=E6=88=AA=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/track/trackMapping/Pull.vue | 104 +++++++++++++------------- src/views/track/trackMapping/Push.vue | 34 ++++----- 2 files changed, 69 insertions(+), 69 deletions(-) diff --git a/src/views/track/trackMapping/Pull.vue b/src/views/track/trackMapping/Pull.vue index bcf4f8e..acc6798 100644 --- a/src/views/track/trackMapping/Pull.vue +++ b/src/views/track/trackMapping/Pull.vue @@ -72,7 +72,7 @@ /** 搜索条件 */ const searchModel = reactive({}); - /** 搜索关键ï¿?*/ + /** 搜索关键字 */ const searchKeyword = ref(''); const pullListData = ref([]); @@ -123,8 +123,8 @@ children: list.map((item: any) => { const time = item.createTime ? dayjs(item.createTime).format('YYYY-MM-DD HH:mm') : ''; const app = item.appName || (item.appKey != null ? (appMap.value?.[item.appKey] ?? '') : '') || item.appKey || '-'; - const appStr = app ? `ã€?{app}】` : ''; - const customerStr = item.customer ? `ã€?{item.customer}】` : ''; + const appStr = app ? `【${app}】` : ''; + const customerStr = item.customer ? `【${item.customer}】` : ''; const codeLine = [time, appStr, customerStr].filter(Boolean).join(' '); return { key: `item-${item.id}`, @@ -167,7 +167,7 @@ const activeTab = ref<'detail' | 'priority'>('detail'); const slidingTabItems = computed(() => [ { key: 'detail', label: '明细' }, - { key: 'priority', label: '优先çº? }, + { key: 'priority', label: '优先级' }, ]); const priorityModalRef = ref(); const priorityModalParams = reactive({ @@ -176,12 +176,12 @@ trackPullConfigId: undefined, }); - // 明细表分é¡? + // 明细表分页 const totalCount = ref(0); const currentPage = ref(1); const pageSize = ref(50); - // 优先çº?tab 分页 + // 优先级 tab 分页 const priorityTotalCount = ref(0); const priorityCurrentPage = ref(1); const prioritypageSize = ref(50); @@ -196,9 +196,9 @@ { key: 'customer', label: '客户', width: 140 }, { key: 'orderNoTypeText', label: '拉取单号类型', width: 140 }, { key: 'pullTimesPerDay', label: '每天拉取次数', width: 120 }, - { key: 'priority', label: '优先çº?, width: 100 }, + { key: 'priority', label: '优先级', width: 100 }, { key: 'updateTime', label: '修改时间', width: 160 }, - { key: 'updateUser', label: '修改äº?, width: 120 }, + { key: 'updateUser', label: '修改人', width: 120 }, ]); function formatOrderNoType(cellValue: any) { @@ -293,7 +293,7 @@ label: '每天拉取次数', comp: 'AInputNumber', compProps: { - placeholder: '请输入次æ•?, + placeholder: '请输入次数', min: 0, max: 12, precision: 0, @@ -303,7 +303,7 @@ { required: true, type: 'number', - message: '请输入每天拉取次æ•?, + message: '请输入每天拉取次数', }, { type: 'number', @@ -315,7 +315,7 @@ }, { field: 'priority', - label: '优先çº?, + label: '优先级', comp: 'AInputNumber', compProps: { placeholder: '请输入优先级', @@ -370,7 +370,7 @@ span: 8, }, { - label: '服务å•?, + label: '服务商', field: 'serviceProviderCode', comp: 'SelectPro', compProps: (): any => { @@ -379,7 +379,7 @@ clearable: true, labelKeys: ['name'], titleStrs: ['name'], - placeholder: '请选择服务å•?, + placeholder: '请选择服务商', style: { width: '100%', height: '40px' }, idKey: 'code', isPage: false, @@ -394,17 +394,17 @@ rules: [ { required: true, - message: '请选择服务å•?, + message: '请选择服务商', }, ], }, { - label: '开始轨è¿?, + label: '开始轨迹', field: 'startTrackCode', comp: 'SelectPro', compProps: (): any => { return { - placeholder: '请选择开始轨è¿?, + placeholder: '请选择开始轨迹', isPage: true, clearable: true, immediate: true, @@ -420,11 +420,11 @@ span: 8, }, { - label: '开始睡眠多少小æ—?, + label: '开始睡眠多少小时', field: 'silenceBeforeStart', comp: 'AInputNumber', compProps: { - placeholder: '请输å…?-48的整æ•?, + placeholder: '请输入1-48的整数', style: { width: '100%', height: '40px' }, min: 1, max: 14, @@ -437,7 +437,7 @@ type: 'number', min: 1, max: 48, - message: '请输å…?-48之间的整æ•?, + message: '请输入1-48之间的整数', trigger: 'change', }, ], @@ -464,11 +464,11 @@ span: 8, }, { - label: '结束继续拉取多久/å¤?, + label: '结束继续拉取多久/天', field: 'silenceAfterEnd', comp: 'AInputNumber', compProps: { - placeholder: '请输å…?-14的整æ•?, + placeholder: '请输入1-14的整数', style: { width: '100%', height: '40px' }, min: 1, max: 14, @@ -481,7 +481,7 @@ type: 'number', min: 1, max: 14, - message: '请输å…?-14之间的整æ•?, + message: '请输入1-14之间的整数', trigger: 'change', }, ], @@ -553,7 +553,7 @@ }; const data: any[] = [ { - label: '拉取轨迹关键å­?, + label: '拉取轨迹关键字', field: 'trackKeywords', comp: 'TagsAdd', compProps: ({ formModel }: { formModel: any }) => { @@ -565,7 +565,7 @@ span: 24, }, { - label: '拉取轨迹关键字(过滤ï¼?, + label: '拉取轨迹关键字(过滤)', field: 'trackKeywordReverses', comp: 'TagsAdd', compProps: ({ formModel }: { formModel: any }) => { @@ -607,7 +607,7 @@ // 单击行获取行数据 function cellClick(par: any) { currentId.value = par; - // 点击行数据处ï¿? + // 点击行数据处理 } // 点击新增 编辑打开左侧弹窗 @@ -714,10 +714,10 @@ }); } - // 删除优先级数ï¿? + // 删除优先级数据 function handleDelPriorityData(row: any) { if (!row.customer) { - $baseMessage('客户字段为必填项,无法删é™?, 'warning'); + $baseMessage('客户字段为必填项,无法删除', 'warning'); return; } $baseConfirm({ @@ -768,9 +768,9 @@ priorityTotalCount.value = 0; } - // 提交前数据处ï¿? + // 提交前数据处理 function beforeSubmitLeft(formData: any) { - // 返参配置字段已废弃,提交时确保不带这些字段(兼容旧数æ�?缓存ï¼? + // 返参配置字段已废弃,提交时确保不带这些字段(兼容旧数据/缓存) const deprecatedKeys = [ 'parseMethod', 'orderPath', @@ -792,15 +792,15 @@ return formData; } - // 右侧弹窗提交前处理:接口不再需要兜底轨迹发生地等字æ®? + // 右侧弹窗提交前处理:接口不再需要兜底轨迹发生地等字段 function beforeSubmitRight(formData: any) { if ('trackPlaceValue' in formData) delete formData.trackPlaceValue; return formData; } - // 从API获取数据后处ï¿? + // 从API获取数据后处理 function onGetInfoLeft(data: any) { - // 返参配置已废弃:不再做默认值处ç�? + // 返参配置已废弃,忽略默认值字段 } // 左侧弹窗保存 @@ -825,16 +825,16 @@ }); } - // 优先级弹ï¿?- 新增/编辑 + // 优先级弹窗 - 新增/编辑 function handleOpenPriorityModal(type: IDialogConfig['type'], row?: any) { if (!currentId.value || !currentId.value.id) { - $baseMessage('请先选择左侧一条拉取配ç½?, 'warning'); + $baseMessage('请先选择左侧一条拉取配置', 'warning'); return; } const titleObj: { [x in IDialogConfig['type']]: string } = { - add: '新增优先çº?, - edit: '编辑优先çº?, + add: '新增优先级', + edit: '编辑优先级', }; priorityModalParams.trackPullConfigId = currentId.value.id; @@ -854,8 +854,8 @@ formData = { customer: row.customer, orderNoType: row.orderNoType, - // 24 / 每天拉取次数 * 60 = 接口ï¿? - // 每天拉取次数 = 24 * 60 / 接口ï¿?= 1440 / 接口ï¿? + // 24 / 每天拉取次数 * 60 = 接口间隔 + // 每天拉取次数 = 24 * 60 / 接口间隔 = 1440 / 接口间隔 pullInterval: row.pullInterval && row.pullInterval !== 0 ? 1440 / row.pullInterval : undefined, priority: row.priority, }; @@ -868,7 +868,7 @@ }); } - // 优先级弹窗提ï¿? + // 优先级弹窗提交 async function onSubmitPriority(formData: any) { if (!currentId.value || !currentId.value.id) return; @@ -879,8 +879,8 @@ customer: formData.customer, orderNoType: formData.orderNoType, priority: formData.priority, - // 24 / 每天拉取次数 * 60 = 接口ï¿? - // 接口ï¿?= (24 / 每天拉取次数) * 60 = 1440 / 每天拉取次数 + // 24 / 每天拉取次数 * 60 = 接口间隔 + // 接口间隔 = (24 / 每天拉取次数) * 60 = 1440 / 每天拉取次数 pullInterval: formData.pullInterval && formData.pullInterval !== 0 ? 1440 / formData.pullInterval : undefined, }; @@ -1012,7 +1012,7 @@ // 确认串联拉取 function handleConfirmChainPull() { if (!selectedServiceProviderId.value) { - $baseMessage('请选择服务å•?, 'warning'); + $baseMessage('请选择服务商', 'warning'); return; } // TODO: 这里可以添加串联拉取的具体逻辑 @@ -1043,7 +1043,7 @@ search-placeholder="请输入服务商名称或appkey" :refresh-title="$t('track.push.actions.refresh')" add-title="新增拉取" - loading-text="加载ä¸?.." + loading-text="加载中..." delete-label="删除" :show-method="false" :show-map-count="false" @@ -1162,7 +1162,7 @@ - +
@@ -1223,7 +1223,7 @@ >
- @@ -1239,7 +1239,7 @@
- + ({}); - /** 搜索关键å­?*/ + /** 搜索关键字 */ const searchKeyword = ref(''); const pushListData = ref([]); @@ -104,7 +104,7 @@ const items = res?.data?.items ?? res?.items ?? res?.data ?? []; pushListData.value = Array.isArray(items) ? items : []; } catch (e) { - $baseMessage('加载推送配置列表失è´?, 'error'); + $baseMessage('加载推送配置列表失败', 'error'); pushListData.value = []; } finally { pushLoading.value = false; @@ -117,12 +117,12 @@ return [ { key: 'category-1', - title: '推送配ç½?, + title: '推送配置', children: list.map((item: any) => { const time = item.createTime ? dayjs(item.createTime).format('YYYY-MM-DD HH:mm') : ''; const app = item.appName || (item.appKey != null ? (appMap.value?.[item.appKey] ?? '') : '') || item.appKey || '-'; - const appStr = app ? `ã€?{app}】` : ''; - const customerStr = item.customer ? `ã€?{item.customer}】` : ''; + const appStr = app ? `【${app}】` : ''; + const customerStr = item.customer ? `【${item.customer}】` : ''; const codeLine = [time, appStr, customerStr].filter(Boolean).join(' '); return { key: `item-${item.id}`, @@ -221,7 +221,7 @@ function addDraftColumn() { const name = newColumnName.value?.trim(); if (!name) { - $baseMessage('请输入列å�?, 'warning'); + $baseMessage('请输入列名', 'warning'); return; } if (draftColumns.value.some((c) => c.title === name)) { @@ -251,7 +251,7 @@ function saveDraftColumnTitle(col: CustomColumnItem, newTitle: string) { const title = newTitle?.trim(); if (!title) { - $baseMessage('请输入列å�?, 'warning'); + $baseMessage('请输入列名', 'warning'); return; } if (draftColumns.value.some((c) => c !== col && c.title === title)) { @@ -499,7 +499,7 @@ field: col.field, comp: 'AInput', compProps: { - placeholder: '请输å…?, + placeholder: '请输入', }, span: 12, })); @@ -868,7 +868,7 @@ } catch { /* ignore */ } } }); - // 根据接口返回çš?extraConfig 完全替换自定义表å¤? + // 根据接口返回的 extraConfig 完全替换自定义表头 customColumns.value = Array.from(extraKeys).map((key) => ({ field: key, title: key })); items.forEach((r: any) => { r.standardTrack = formatStandardTrack(r); @@ -919,7 +919,7 @@ :search-placeholder="$t('track.push.search.placeholder')" :refresh-title="$t('track.push.actions.refresh')" :add-title="$t('track.push.actions.addPush')" - loading-text="加载ä¸?.." + loading-text="加载中..." :delete-label="$t('track.push.actions.delete')" :show-method="false" :show-map-count="false" @@ -1043,7 +1043,7 @@ 取消 保存 -
请填写上游接å�?推送轨迹的字段名,用于传递入å�?/div> +
请填写上游接口推送轨迹的字段名,用于传递入参
@@ -1051,7 +1051,7 @@
{{ column.title }} - + ×
@@ -1098,7 +1098,7 @@ width: 100%; } - /* 左侧区域 - 符合设计规范:圆è§?8px */ + /* 左侧区域 - 符合设计规范:圆角 8px */ :deep(.trb-transform-left) { background: var(--app-sidebar-bg) !important; backdrop-filter: blur(20px) saturate(180%); @@ -1344,7 +1344,7 @@ } } - /* 新增、保存按钮间è·?*/ + /* 新增、保存按钮间距 */ .toolbar-add-save-btns { display: flex; align-items: center; @@ -1494,7 +1494,7 @@ } } - /* 左侧面板与轨迹拉取一è‡?*/ + /* 左侧面板与轨迹拉取一致 */ :deep(.trb-transform-left) { background: transparent !important; border: none !important; @@ -1530,7 +1530,7 @@ height: 100%; } - /* 输入æ¡?/ Select 焦点 - 符合设计规范 */ + /* 输入框 / Select 焦点 - 符合设计规范 */ .track-layout :deep(.arco-input:focus-within), .track-layout :deep(.arco-input-number:focus-within), .track-layout :deep(.arco-select-view-open) {