Browse Source

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

zhangyuhan 1 year ago
parent
commit
2242c2f51e

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

@@ -51,17 +51,21 @@ class ContentExpandModel extends BaseModel {
 
   preSortBiddingItem(item) {
     let bidAmount = ''
+    // 有中标金额取中标金额,没有取预算,预算没有置空
     if (item?.bidAmount) {
       bidAmount = formatMoney(item?.bidAmount - 0)
     } else if (item?.budget) {
       bidAmount = formatMoney(item?.budget - 0)
     }
 
+    const area = item.area || '全国'
+    const type = item?.type || item?.subtype
+    const buyerclass = item.buyerClass || ''
+
     const tagList = [
-      item.area || '全国',
-      item.buyerClass,
-      item?.type || item?.subtype,
-      // 有中标金额取中标金额,没有取预算,预算没有置空
+      area,
+      buyerclass,
+      type,
       bidAmount
     ].filter((v) => v)
 
@@ -69,6 +73,10 @@ class ContentExpandModel extends BaseModel {
       id: item.id,
       title: item.title,
       tags: tagList,
+      area,
+      type,
+      buyerclass,
+      bidAmount,
       time: item.publishTime ? item.publishTime * 1000 : undefined,
       _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.data = res?.data
         if (result.success) {
+          this.fid = ''
           this.model.expands.surplus += 1
           this.model.expands.used = Math.max(this.model.expands.used - 1, 0)
         } else {