소스 검색

Merge remote-tracking branch 'origin/feature/v1.0.29' into feature/v1.0.29

zhangyuhan 1 년 전
부모
커밋
2242c2f51e
2개의 변경된 파일13개의 추가작업 그리고 4개의 파일을 삭제
  1. 12 4
      data/data-models/modules/article/model/expand.js
  2. 1 0
      data/data-models/modules/quick-monitor/plugins/project-api.js

+ 12 - 4
data/data-models/modules/article/model/expand.js

@@ -51,17 +51,21 @@ class ContentExpandModel extends BaseModel {
 
 
   preSortBiddingItem(item) {
   preSortBiddingItem(item) {
     let bidAmount = ''
     let bidAmount = ''
+    // 有中标金额取中标金额,没有取预算,预算没有置空
     if (item?.bidAmount) {
     if (item?.bidAmount) {
       bidAmount = formatMoney(item?.bidAmount - 0)
       bidAmount = formatMoney(item?.bidAmount - 0)
     } else if (item?.budget) {
     } else if (item?.budget) {
       bidAmount = formatMoney(item?.budget - 0)
       bidAmount = formatMoney(item?.budget - 0)
     }
     }
 
 
+    const area = item.area || '全国'
+    const type = item?.type || item?.subtype
+    const buyerclass = item.buyerClass || ''
+
     const tagList = [
     const tagList = [
-      item.area || '全国',
-      item.buyerClass,
-      item?.type || item?.subtype,
-      // 有中标金额取中标金额,没有取预算,预算没有置空
+      area,
+      buyerclass,
+      type,
       bidAmount
       bidAmount
     ].filter((v) => v)
     ].filter((v) => v)
 
 
@@ -69,6 +73,10 @@ class ContentExpandModel extends BaseModel {
       id: item.id,
       id: item.id,
       title: item.title,
       title: item.title,
       tags: tagList,
       tags: tagList,
+      area,
+      type,
+      buyerclass,
+      bidAmount,
       time: item.publishTime ? item.publishTime * 1000 : undefined,
       time: item.publishTime ? item.publishTime * 1000 : undefined,
       _o: item
       _o: item
     }
     }

+ 1 - 0
data/data-models/modules/quick-monitor/plugins/project-api.js

@@ -63,6 +63,7 @@ export default class MonitorProjectApi extends MonitorApiBase {
         result.success = res?.error_code === 0 && res?.data === 'success'
         result.success = res?.error_code === 0 && res?.data === 'success'
         result.data = res?.data
         result.data = res?.data
         if (result.success) {
         if (result.success) {
+          this.fid = ''
           this.model.expands.surplus += 1
           this.model.expands.surplus += 1
           this.model.expands.used = Math.max(this.model.expands.used - 1, 0)
           this.model.expands.used = Math.max(this.model.expands.used - 1, 0)
         } else {
         } else {