田源
2023-06-30 0f519667314c451c4267ba5d6c074ab91e5f2706
Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
@@ -60,6 +60,9 @@
            :prop="item.prop"
            :sortable="item.sortable"
            :formatter="formatBoolean"
            :width="item.label.length >=4 ?'150':item.label.length==3 ?'120':'90'"
            :show-overflow-tooltip="true"
            align="center"
          >
            <!-- 编辑和展示逻辑 -->
            <!--              <template slot-scope="{ row }">-->
@@ -249,6 +252,11 @@
    this.doLayout();
  },
  watch: {
     tableHeadDataFateher:{
      handler(newval,oldval){
        this.options=newval.tableDefineVO.seniorQueryColumns
      }
    },
    codeClassifyOid: {
      handler(newval, oldval) {
        this.codeClassifyOid = newval;
@@ -281,9 +289,9 @@
    // 转换数据true和false
    formatBoolean(row, column) {
      if (column.property === "xiaoshouwl"
        ||column.property === "shifoupihaoguanli"
        ||column.property === "caigouwl"
        ||column.property === "kucunwl"
        ||column.property === "shifoupihaoguanli"
        ||column.property === "caigouwl"
        ||column.property === "kucunwl"
        ||column.property === "passing") {
        return row[column.property] =='true'? "是" : "否";
      }
@@ -433,6 +441,7 @@
        this.rowOid = "";
      }
      this.selectRow = row;
      this.parameter.ids = [];
      row.forEach((item) => {
        this.parameter.ids.push(item.oid);
      });
@@ -461,6 +470,8 @@
        ...val,
      }).then((res) => {
        console.log(res);
        this.tableData=res.data.data;
        this.page.total=res.data.total
      });
    },
    //相似项查询
@@ -506,4 +517,10 @@
    background-color: #f5f7fa !important;
  }
}
/deep/ .el-button {
  margin: 0 10px 10px 0;
}
</style>