licp
2024-12-25 7d3b5f5314493a77d520dc4ae53db8ca03b57ada
src/components/view/a8-periodic-document-review-records.vue
@@ -161,7 +161,7 @@
  },
  data() {
    return {
      activeName:'填写',
      activeName:'历史记录',
      title0:'新增',
      addPower:true,
      outPower:true,
@@ -189,12 +189,18 @@
          font: '删除',
          type: 'text',
          method: 'doDiy',
          disabFun:(row, index) => {
            return !this.addPower||!!this.currentInfo.ratifyUserName
          }
        }, {
          id: 'handleEdit',
          font: '修改',
          type: 'text',
          method: 'handleEdit',
          field:[],
          disabFun:(row, index) => {
            return !this.addPower||!!this.currentInfo.ratifyUserName
          }
        }],
        tagField: {
          // documentType:{
@@ -295,6 +301,17 @@
      return this.javaApi +this.$api.manageRecordIntervals.exportInManageRecordIntervals
    }
  },
  watch: {
    'activeName' (val1, val2) {
      if(val1=='填写'){
        this.componentData.do.forEach((item)=>{
          item.disabFun = (row, index) => {
            return !this.addPower||!!this.currentInfo.ratifyUserName
          }
        })
      }
    }
  },
  mounted() {
    this.entityCopy = this.HaveJson(this.componentData.entity);
    this.entityCopy0 = this.HaveJson(this.componentData0.entity);