licp
2024-12-25 7d3b5f5314493a77d520dc4ae53db8ca03b57ada
src/components/view/a7-sample-disposal.vue
@@ -206,7 +206,7 @@
  name: "SampleDisposal",
  data() {
    return {
      activeName:'填写',
      activeName:'历史记录',
      title:'新增',
      addDialogVisible:false,
      addLoading:false,
@@ -299,12 +299,18 @@
            id: 'handleAdd0',
            font: '修改',
            type: 'text',
            method: 'handleAdd0'
            method: 'handleAdd0',
            disabFun: (row, index) => {
                    return !this.addPower||this.currentInfo.examineState=='通过'
            }
          },{
            id: 'delete',
            font: '删除',
            type: 'text',
            method: 'doDiy'
            method: 'doDiy',
            disabFun: (row, index) => {
                    return !this.addPower||this.currentInfo.examineState=='通过'
            }
          }],
          tagField: {},
          selectField: {},
@@ -325,6 +331,17 @@
      addPower:false,
    };
  },
  watch: {
    'activeName' (val1, val2) {
      if(val1=='填写'){
        this.componentData0.do.forEach((item)=>{
          item.disabFun = (row, index) => {
            return !this.addPower||this.currentInfo.examineState=='通过'
          }
        })
      }
    }
  },
  mounted() {
    this.entityCopy = this.HaveJson(this.componentData.entity);
    this.getCustomPageList()