田源
2023-10-18 91c536ab7544c466dd93e54d6ffc78646868cf6f
主数据页面不显示Bug
已修改3个文件
77 ■■■■■ 文件已修改
Source/UBCS-WEB/src/api/system/dept.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/wel/Statistic.vue 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/api/system/dept.js
@@ -83,8 +83,8 @@
export const updateUserStatus = (params) => {
  return request({
    url: '/api/ubcs-user/user/updateUserStatus ',
    method: 'get',
    url: '/api/ubcs-user/updateUserStatus  ',
    method: 'post',
    params:{
      ...params
    }
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -43,7 +43,7 @@
              <el-table-column v-if="tableData.length != 0" fixed type="selection" width="55"></el-table-column>
              <el-table-column v-if="tableData.length != 0" fixed label="序号" type="index" width="55">
              </el-table-column>
              <el-table-column v-for="item in CodeArray" v-if="!item.hidden" :label="item.label" :prop="item.prop"
              <el-table-column  v-for="item in CodeArray" v-if="CodeArray.length !== 0 && !item.hidden" :label="item.label" :prop="item.prop"
                               :show-overflow-tooltip="true" :sortable="item.sortable" :width="item.width"
                               align="center">
                <template slot-scope="scope">
@@ -61,7 +61,7 @@
                               :width="item.width"
                               align="center">
              </el-table-column>
              <el-table-column  v-for="item in lcstatusArray" v-if="!item.hidden" label="生命周期值" prop="lcstatus"
              <el-table-column v-for="item in lcstatusArray" v-if=" lcstatusArray.length !== 0 && !item.hidden" label="生命周期值" prop="lcstatus"
                                :show-overflow-tooltip="true" :sortable="item.sortable" :width="item.width"
                                align="center">
                <template slot-scope="scope">
@@ -381,14 +381,25 @@
          }
        })
        this.tableHeadFindDatas = newval;
        console.log('new',newval)
        if (!this.isCodeArrayPushed) {
          this.CodeArray.push(newval.find(item => item.prop === 'id'))
          this.isCodeArrayPushed = true
        };
          if (newval.find(item => item.prop === 'id')) {
            this.CodeArray.push(newval.find(item => item.prop === 'id'));
          } else {
            this.CodeArray.push([]);
          }
          console.log('CodeArray', this.CodeArray);
          this.isCodeArrayPushed = true;
        }
        if (!this.islcstatusPushed) {
          this.lcstatusArray.push(newval.find(item => item.prop === 'lcstatus'))
          this.islcstatusPushed = true
        };
          if (newval.find(item => item.prop === 'lcstatus')) {
            this.lcstatusArray.push(newval.find(item => item.prop === 'lcstatus'));
          } else {
            this.lcstatusArray.push([]);
          }
          console.log('lcstatusArray', this.lcstatusArray);
          this.islcstatusPushed = true;
        }
        // console.log('new',newval)
        this.WupinFindValue = ''
      },
Source/UBCS-WEB/src/views/wel/Statistic.vue
@@ -13,6 +13,7 @@
name: "Statistic",
  data(){
  return {
    userId:'',
    countByServer:true,
    // listMyTask:[]
    option: {
@@ -59,7 +60,10 @@
  }
  },
  created() {
  this.getList();
    this.userId=sessionStorage.userId
    getList('/api/ubcs-code/mdmCount/getMdmCounts',{id:this.userId}).then(res=>{
      console.log(res)
    })
  },
  computed(){
@@ -77,26 +81,26 @@
    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 {
              record.count = 0;
            }
          });
        }
        return {
          ...record
        };
      });
    },
    // 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 {
    //           record.count = 0;
    //         }
    //       });
    //     }
    //     return {
    //       ...record
    //     };
    //   });
    // },
  }
}
</script>