liujintao 1 ماه پیش
والد
کامیت
9b75fde6b2

+ 0 - 1
components.d.ts

@@ -19,7 +19,6 @@ declare module 'vue' {
     IconSelector: typeof import('./src/components/iconSelector/index.vue')['default']
     ImportButton: typeof import('./src/components/ImportButton/index.vue')['default']
     ImportExcel: typeof import('./src/components/importExcel/index.vue')['default']
-    InputNumberRange: typeof import('./src/components/inputNumberRange/index.vue')['default']
     List: typeof import('./src/components/iconSelector/list.vue')['default']
     ManyToMany: typeof import('./src/components/manyToMany/index.vue')['default']
     NoticeBar: typeof import('./src/components/noticeBar/index.vue')['default']

+ 16 - 16
src/views/product-manage/Columns.ts

@@ -240,14 +240,14 @@ export const ProductMonitorColumns = [
 		sortable: true,
 		slots: { default: 'reviews' },
 	},
-	{
-		field: 'all_reviews',
-		title: '亚马逊评论人数',
-		minWidth: 150,
-		align: 'center',
-		sortable: true,
-		slots: { default: 'all_reviews' },
-	},
+	// {
+	// 	field: 'all_reviews',
+	// 	title: '亚马逊评论人数',
+	// 	minWidth: 150,
+	// 	align: 'center',
+	// 	sortable: true,
+	// 	slots: { default: 'all_reviews' },
+	// },
 	{
 		field: 'launch_date',
 		title: '上架日期',
@@ -395,14 +395,14 @@ export const CompetitorMonitorColumns = [
 		sortable: true,
 		slots: { default: 'reviews' },
 	},
-	{
-		field: 'all_reviews',
-		title: '亚马逊评论人数',
-		minWidth: 150,
-		align: 'center',
-		sortable: true,
-		slots: { default: 'all_reviews' },
-	},
+	// {
+	// 	field: 'all_reviews',
+	// 	title: '亚马逊评论人数',
+	// 	minWidth: 150,
+	// 	align: 'center',
+	// 	sortable: true,
+	// 	slots: { default: 'all_reviews' },
+	// },
 	{
 		field: 'launch_date',
 		title: '上架日期',

+ 13 - 13
src/views/product-manage/competitor-monitor/index.vue

@@ -188,19 +188,6 @@ async function resetParameter() {
 									</template>
 								</number-range>
 							</el-col>
-							<el-col :span="6">
-								<number-range
-									v-model="formInline.CommentPeopleNumberRange"
-									v-model:min-value="formInline.minCommentNumber"
-									v-model:max-value="formInline.maxCommentNumber"
-									:valueRange="[0, 100000000]">
-									<template #prepend>
-										<span class="mr-2">亚马逊评论人数</span>
-									</template>
-								</number-range>
-							</el-col>
-            </el-row>
-						<el-row :gutter="20">
 							<el-col :span="6" class="flex">
 								<number-range
 									v-model="formInline.AsinScoreNumberRange"
@@ -212,6 +199,19 @@ async function resetParameter() {
 									</template>
 								</number-range>
 							</el-col>
+<!--							<el-col :span="6">-->
+<!--								<number-range-->
+<!--									v-model="formInline.CommentPeopleNumberRange"-->
+<!--									v-model:min-value="formInline.minCommentNumber"-->
+<!--									v-model:max-value="formInline.maxCommentNumber"-->
+<!--									:valueRange="[0, 100000000]">-->
+<!--									<template #prepend>-->
+<!--										<span class="mr-2">亚马逊评论人数</span>-->
+<!--									</template>-->
+<!--								</number-range>-->
+<!--							</el-col>-->
+            </el-row>
+						<el-row :gutter="20">
 							<el-col :span="6">
 								<number-range
 									v-model="formInline.AsinCommentNumberRange"

+ 7 - 2
src/views/product-manage/product-list/component/DataTableSlot.vue

@@ -29,8 +29,13 @@ const countryInfoStore = useCountryInfoStore();
 const country = countryInfoStore.Countries.find(c => c.code == row.country_code);
 const color = country ? country.color : '#3875F6';
 
-const statusText = row.status === 1 ? '在售' : '停售';
-const statusType = row.status === 1 ? 'success' : 'info';
+const statusMap: { [key: number]: { text: string, type: string } } = {
+	1: { text: '在售', type: 'success' },
+	2: { text: '停售', type: 'info' },
+	10: { text: '下架', type: 'danger' }
+};
+const { text: statusText, type: statusType } = statusMap[row.status] || { text: '未知', type: 'info' };
+
 
 function handleEdit() {
   emit('edit-row', row);

+ 11 - 11
src/views/product-manage/product-monitor/index.vue

@@ -204,17 +204,17 @@ async function resetParameter() {
 							</el-col>
             </el-row>
             <el-row :gutter="20">
-							<el-col :span="6">
-								<number-range
-									v-model="formInline.CommentPeopleNumberRange"
-									v-model:min-value="formInline.minCommentNumber"
-									v-model:max-value="formInline.maxCommentNumber"
-									:valueRange="[0, 100000000]">
-									<template #prepend>
-										<span class="mr-2">亚马逊评论人数</span>
-									</template>
-								</number-range>
-							</el-col>
+<!--							<el-col :span="6">-->
+<!--								<number-range-->
+<!--									v-model="formInline.CommentPeopleNumberRange"-->
+<!--									v-model:min-value="formInline.minCommentNumber"-->
+<!--									v-model:max-value="formInline.maxCommentNumber"-->
+<!--									:valueRange="[0, 100000000]">-->
+<!--									<template #prepend>-->
+<!--										<span class="mr-2">亚马逊评论人数</span>-->
+<!--									</template>-->
+<!--								</number-range>-->
+<!--							</el-col>-->
 							<el-col :span="6">
 								<number-range
 									v-model="formInline.AsinScoreNumberRange"

+ 4 - 0
src/views/store-manage/Columns.ts

@@ -24,6 +24,10 @@ export const MarketStoreColumns = [
     field: 'marketplace_id', title: '市场ID', align: 'center',
     slots: { default: 'marketplace_id' }
   },
+  {
+    field: 'status', title: '状 态', align: 'center',
+    slots: { default: 'status' }
+  },
   {
     field: 'create_datetime', title: '创建时间', width: 180, align: 'center',
     slots: { default: 'create_datetime' }

+ 9 - 0
src/views/store-manage/market-store/component/DataTableSlot.vue

@@ -19,6 +19,7 @@ const countryInfoStore = useCountryInfoStore();
 const country = countryInfoStore.Countries.find(c => c.code == row.country_code);
 const color = country ? country.color : '#3875F6';
 const region = countryInfoStore.Region.find(r => r.code == row.region);
+const status =  row.status === "open" ? "正常" : "关闭";
 </script>
 
 <template>
@@ -33,6 +34,14 @@ const region = countryInfoStore.Region.find(r => r.code == row.region);
         {{ country ? country.name : '-' }}
       </el-tag>
     </div>
+		<div v-else-if="field === 'status'">
+			<el-tag v-if="row.status === 'open'" :disable-transitions="true"  effect="plain" round>
+				{{status }}
+			</el-tag>
+			<el-tag v-else :disable-transitions="true" type="danger" effect="plain" round>
+				{{status }}
+			</el-tag>
+		</div>
     <!-- 动态获取 -->
     <div v-else>
       {{ row[field] || '-' }}