田源
2023-07-31 0056b2bf68177e7bbb1f8d32dbbb5b0b3b281af1
Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
@@ -371,6 +371,24 @@
      deep:true,
      immediate:true
    },
    Formlist:{
      handler(newval,oldval){
        if(newval.length === 0){
          this.crudArrayFlag=false
          return
        }
      }
    },
    ProData:{
      handler(newval,oldval){
        if(newval){
          this.loading=true;
          setTimeout(() => {
            this.loading=false
          }, 1000);
        }
      }
    },
    'injectOption.classifyInvokeAttr': function(newVal) {
      console.log('newVal',newVal)
      if (newVal === "name") {
@@ -1448,11 +1466,14 @@
    //属性分组提交
    attrHandle() {
      console.log(this.attrSelectList)
      // this.$set(this.attrRow, 'attributeGroup', this.attrModel)
      // this.attrSelectList.attributeGroup=this.attrModel
      this.attrSelectList.forEach(item=>{
        item.attributeGroup=this.attrModel
      })
      if(this.CurrentCell){
        this.$set(this.CurrentCell, 'attributeGroup', this.attrModel)
      }else {
        this.$set(this.attrSelectList[0], 'attributeGroup', this.attrModel)
      }
      this.attrModel = "";
      this.attrVisible = false;
    },
@@ -1592,6 +1613,9 @@
    addsHandler() {
      batchAddSave(JSON.parse(JSON.stringify(this.ProData))).then(res => {
        this.$message.success('保存成功')
        this.editOpenFlag=false
      }).catch(()=>{
        this.$message.warning('保存失败,请查看控制台输出!')
      })
    },
@@ -1639,8 +1663,8 @@
         }else if(column.property == 'verifyRule'){
           this.RulesForm.expressionTextt=this.CurrentCell.verifyRule;
           this.rulesVisible=true;
           console.log(this.CurrentCell.verifyRule)
           console.log(this.RulesForm.expressionText)
         }else if(column.property == 'attributeGroup'){
           this.attrVisible = true;
         }
       }
    },
@@ -1782,8 +1806,10 @@
      // noinspection JSCheckFunctionSignatures
      if(this.CurrentCell){
        //如果是指定层赋值为数字
        if(this.CurrentCell.classifyInvokeLevel!== 'min'){
        if(this.injectOption.classifyInvokeLevel!== 'min'){
          this.CurrentCell.classifyInvokeLevel=this.injectOption.classifyNumber
        }else {
          this.CurrentCell.classifyInvokeLevel='min'
        }
        //其余正常赋值
        this.CurrentCell.classifyInvokeAttr=this.injectOption.classifyInvokeAttr,
@@ -1799,6 +1825,8 @@
          //如果是指定层赋值为数字
          if(this.injectOption.classifyInvokeLevel !== 'min'){
            this.attrSelectList[0].classifyInvokeLevel=this.injectOption.classifyNumber
          }else {
            this.attrSelectList[0].classifyInvokeLevel='min'
          }
          this.$set(this.attrSelectList[0],'classifyInvokeText',data)
        }
@@ -1903,11 +1931,9 @@
    sortChange(val) {
      console.log(val)
    },
    //开启编辑
    editOpen(){
      this.editOpenFlag=true;
      console.log('不等于',this.checkStatus)
      console.log('等于',this.editOpenFlag)
      console.log('等于',this.crudLCStatus)
    }
  }
}