Sfoglia il codice sorgente

feat:广东移动单位画像相关

yangfeng 3 anni fa
parent
commit
45fa6e4ac7

+ 10 - 0
src/api/modules/customer.js

@@ -71,3 +71,13 @@ export function getBuyerExpire (data) {
     data: data
   })
 }
+// 商机管理权限
+export function getEntNicheAuth (data) {
+  data = qs.stringify(data)
+  return request({
+    baseURL: '/front',
+    url: '/entExportAuth/getAuth?t=' + Date.now(),
+    method: 'GET',
+    data: data
+  })
+}

+ 12 - 0
src/router/router-interceptors.js

@@ -1,6 +1,7 @@
 import router from '@/router/router'
 import store from '@/store/'
 import { powerCheck } from '@/utils/bigmember/'
+import { getEntNicheAuth } from '@/api/modules'
 
 // 权限控制白名单-路由path
 const powerCheckPathWhiteRegList = [
@@ -29,6 +30,17 @@ router.beforeEach(async (to, from, next) => {
     info = await store.dispatch('user/getUserPower')
     power = info.power ? info.power : []
   }
+  // 判断是否进入画像分析系统页面
+  if (to.name.indexOf('custom_') > -1) {
+    const entNiche = await getEntNicheAuth()
+    // 调用商机管理权限接口 查用户有无画像分析系统权限 有则执行下一步 无则返回首页
+    if (entNiche.privatedata) {
+      next()
+    } else {
+      location.href = location.origin
+    }
+    return
+  }
   if (powerCheckWhiteList.includes(to.name) || regListCheck(powerCheckPathWhiteRegList, to.path)) {
     if (to.name === 'ent_ser_portrait') {
       if (info.memberStatus > 0 && (power.indexOf(4) !== -1 || power.indexOf(13) !== -1)) {

+ 3 - 0
src/views/customer/Buyer.vue

@@ -276,6 +276,9 @@ export default {
 }
 
 .unit-portrayal {
+  .unit-portrayal-content{
+    background: #fff;
+  }
   .empty-container.mtb60 {
     background: #fff;
     margin: 0 auto;

+ 0 - 1
src/views/customer/components/BidInfoActive.vue

@@ -288,7 +288,6 @@ export default {
       //     })
       //   }
       // })
-      console.log(tempArr)
       this.ScreenParams.scopeClass = tempArr.toString()
     },
     // 处理可筛选数据

+ 8 - 3
src/views/customer/components/UnitList.vue

@@ -9,11 +9,13 @@
             <span v-if="item.area" class="i-area">{{item.area}}</span>
             <span v-if="item.bidstatus" class="i-type">{{item.bidstatus}}</span>
             <span v-if="item.bidamount" class="i-type">{{item.bidamount}}</span>
+            <span v-if="!item.bidamount && item.budget" class="i-type">{{item.budget}}</span>
             <span v-if="item.tag_rule">
               <span  v-for="(v, index) in item.tag_rule.split(',')" class="i-type" :key="index">{{v}}</span>
             </span>
           </p>
-          <p class="i-time">{{item.firsttime}}</p>
+          <p class="i-time" v-if="title === '即将到期项目'">{{item.project_completedate}}到期</p>
+          <p class="i-time" v-else>{{item.firsttime}}</p>
         </div>
       </div>
       <div class="pages" :key="isUpdatePageNum">
@@ -133,6 +135,10 @@ export default {
           res.data.list.forEach((v, i) => {
             v.firsttime = new Date(Number(v.firsttime + '000')).pattern('yyyy/MM/dd')
             v.bidamount = v.bidamount ? moneyUnit(v.bidamount) : ''
+            v.budget = v.budget ? moneyUnit(v.budget) : ''
+            if (v.project_completedate) {
+              v.project_completedate = new Date(Number(v.project_completedate + '000')).pattern('yyyy/MM/dd')
+            }
           })
           this.showDt = true
           if (res.data.count >= 0) {
@@ -165,8 +171,7 @@ export default {
 </script>
 <style lang="scss" scoped>
 .dynamic{
-  margin-top: 32px;
-  padding: 32px 40px 0;
+  padding: 32px 40px 32px;
   background: #fff;
   .empty-container.mtb60 {
     margin: 0 auto;

+ 1 - 1
vue.config.js

@@ -73,7 +73,7 @@ module.exports = {
       },
       '^/privatedata': {
         // target: 'https://web2-jytest.jydev.jianyu360.com',
-        target: 'http://192.168.20.173:816',
+        target: 'http://127.0.0.1:829',
         changeOrigin: true,
         logLevel: 'debug'
       }