Browse Source

bug优化

chenlei 5 months ago
parent
commit
9abb690267
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/views/order/OrderList.vue
  2. 1 1
      src/views/products/components/editSingle.vue

+ 2 - 2
src/views/order/OrderList.vue

@@ -205,8 +205,8 @@ async function downloadExcel() {
             SortType:tableQuery.sortType,
             PaymentDate:tableQuery.paymentDate,
             PaymentWay:tableQuery.paymentWay,
-            CreatedDate:tableQuery.createdDate,
-            ProductType:tableQuery.productType,
+            CreatedDate:tableQuery.productType,
+            ProductType:tableQuery.createdDate,
             RefundStatus:tableQuery.refundStatus,
             OrderStatus:tableQuery.orderStatus
         }

+ 1 - 1
src/views/products/components/editSingle.vue

@@ -13,7 +13,7 @@ async function handleSubmitForm() {
   if(!props.productInfo.Price) return ElMessage.warning('请输入商品价格')
   const res=await apiProductsConfig.postEditProduct({
     SourceId:props.productInfo.SourceId,
-    Type:props.productInfo.ProductType === '报告'?'report':'audio',
+    Type:props.productInfo.ProductType === '报告'?'report':props.productInfo.ProductType === '音频' ? 'audio' : 'video',
     Price:props.productInfo.Price,
     ProductId:props.productInfo.Id,
   })