ludc
2023-07-06 abe9f2de85ff402a4c989dbc1427807b4e3a59f4
Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
@@ -199,7 +199,9 @@
        code: "",
        type: "PUBLIC",
        template: "",
        codeClassifyOid:""
        vars:{
          codeClassifyOid:""
        }
      },
      visibleFlow: false,
      transferData: [],
@@ -259,7 +261,7 @@
    codeClassifyOid: {
      handler(newval, oldval) {
        this.codeClassifyOid = newval;
        this.parameter.codeClassifyOid=newval
        this.parameter.vars.codeClassifyOid=newval
      },
      deep: true,
    },
@@ -277,7 +279,9 @@
          }else {
            if (record.templet && typeof (record.templet) == 'string' && !validatenull(record.templet) && record.templet.indexOf("function(row,column)")>-1) {
              record.formatter = eval("(" + record.templet + ")");
              //function(row,column){return row[column.property]=='true'?'是':'否'}
              //function(row,column){return row[column.property]=='true' || row[column.property]=='1'?'是':'否'}
            }else if(record.fieldType=="truefalse"){
              record.formatter = function(row,column){return row[column.property]=='true' || row[column.property]=='1'?'是':'否'}
            }
          }
        })
@@ -297,13 +301,6 @@
    },
  },
  methods: {
    // 转换数据true和false
    formatBoolean(row, column) {
      if (column.fieldType === "truefalse") {
        return row[column.property] =='true'? "是" : "否";
      }
      return row[column.property];
    },
    // 发布
    setHandler() {
      if (this.selectRow.length <= 0) {
@@ -461,6 +458,7 @@
        this.$message.warning("编码状态不是“编辑中”,不可编辑");
      } else {
        this.editvisible = true;
        this.rowOid = this.selectRow[0]['oid']
      }
    },
    //高级查询按钮