فهرست منبع

科研成果看板

linweizeng 2 سال پیش
والد
کامیت
e7b57db332
1فایلهای تغییر یافته به همراه27 افزوده شده و 2 حذف شده
  1. 27 2
      src/views/scientificPayoffs/index.vue

+ 27 - 2
src/views/scientificPayoffs/index.vue

@@ -134,7 +134,7 @@ export default {
                     data: []
                 }
             },
-
+            // ie.STATUS_= 'actived' and ie.ID_ != '1' and ie.ID_ != '-1' and ie.ID_ != '702117247933480960' and ie.ID_ != '1115242459127873536' and ie.ID_ != '1115242765924433920' and ie.GROUP_ID_ not like '%1041786072788369408%' GROUP BY ie.id_
             likeParams: "ie.STATUS_= 'actived' and ie.ID_ != '1' and ie.ID_ != '-1' and ie.ID_ != '702117247933480960' and ie.ID_ != '1115242459127873536' and ie.ID_ != '1115242765924433920' and ie.GROUP_ID_ not like '%1041786072788369408%' GROUP BY ie.id_"
         }
     },
@@ -143,7 +143,10 @@ export default {
             this.allView()
         }
 
-        this.getInit()
+        this.getPosition().then(res => {
+            this.getInit()
+        })
+
         this.getKeYanChengGuoList()
 
         this.timer = setInterval(() => {
@@ -164,6 +167,28 @@ export default {
         clearInterval(this.timer3)
     },
     methods: {
+        getPosition () {
+            return new Promise((resolve, reject) => {
+                let sqlData = ``
+                const sql = `select ID_ from ibps_party_entity where party_type_ = 'position' and PATH_ like '%1136828146851512320%'`
+                curdPost('sql', sql).then((res2) => {
+                    if (res2.state === 200) {
+                        const datas = res2.variables.data
+                        if (datas.length > 0) {
+                            datas.forEach((item, index) => {
+                                if (index === 0) {
+                                    sqlData += `ie.POSITIONS_ like '%${item.ID_}%'`
+                                } else {
+                                    sqlData += ` or ie.POSITIONS_ like '%${item.ID_}%'`
+                                }
+                            })
+                            this.likeParams = `ie.STATUS_= 'actived' and (${sqlData}) GROUP BY ie.id_`
+                        }
+                        resolve()
+                    }
+                })
+            })
+        },
         // 初始化数据
         getInit () {
             const nowDate = new Date(new Date().getTime() + 8 * 60 * 60 * 1000)