ludc
2023-10-13 e65e4b636bf4b4e22a2d44e5940e8ff6bb70cd6b
Source/UBCS-WEB/src/views/wel/Statistic.vue
@@ -21,7 +21,7 @@
        {
          click: this.handleItemAClick,
          title: '物品主数据',
          count: 0,
          count: 1723,
          icon: 'iconfont iconicon_doc',
          color: 'rgb(49, 180, 141)',
          uiUrl: "/MasterData/items?id=wupin@name=物品主数据",
@@ -30,7 +30,7 @@
        {
          click: this.handleItemBClick,
          title: '人员主数据',
          count: 0,
          count: 1225,
          icon: 'iconfont iconicon_dispose',
          color: 'rgb(56, 161, 242)',
          uiUrl:'/MasterData/items?id=renyuan@@name=人员主数据',
@@ -38,11 +38,11 @@
        },
        {
          click: this.handleItemCClick,
          title: '主题库定义',
          count: 0,
          title: 'Part',
          count: 523,
          icon: 'el-icon-setting',
          color: 'rgb(117, 56, 199)',
          uiUrl:'/modeling/classifyTree',
          uiUrl:'/MasterData/items?id=10@@name=Part',
          countUrl:'priceIndexController/countNeedFeedbackPlan'
        },
        {
@@ -59,7 +59,7 @@
  }
  },
  created() {
  // this.getList();
  this.getList();
  },
  computed(){
@@ -72,17 +72,19 @@
      this.$router.push({ path: '/MasterData/items?id=renyuan@@name=人员主数据'} );
    },
    handleItemCClick() {
      this.$router.push({ path: '/modeling/classifyTree'} );
      this.$router.push({ path: '/MasterData/items?id=10@@name=Part'} );
    },
    handleItemDClick() {
      this.$router.push({ path: '/MasterData/items?id=gongyingshang@@name=供应商主数据'} );
    },
    getList() {
      // debugger
      Object.values(this.option.data).map(record => {
        record.count = record.count || 0;
        if (!this.countByServer) {
          // 是前端查询
          getList(record.countUrl, {}).then(res => {
            // console.log('res',res)
            if (res.data.data.success) {
              record.count = res.data.data.obj;
            } else {