田源
2023-11-16 1a57e85833a971b825ba6d5d59d689766572d54c
主题库swtich修复
已修改2个文件
13 ■■■■■ 文件已修改
Source/UBCS-WEB/src/components/Theme/ThemeClassifyTreeform.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Theme/ThemeClassifyTreeform.vue
@@ -399,7 +399,6 @@
              activeColor: "#13ce66",
              inactiveColor: "#ff4949",
              labelWidth:160,
              value:1,
              dicData: [{
                label: '否',
                value: 0
Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
@@ -867,7 +867,7 @@
  methods: {
    // switch
    switchChange(){
      this.TreeAddform.isParticipateCheck = this.TreeAddform.codeKeyAttrValue ? 1 : 0;
      this.TreeAddform.isParticipateCheck = this.TreeAddform.codeKeyAttrValue === true ? 1 : 0;
      // console.log(this.TreeAddform.isParticipateCheck)
    },
    //存储的业务类型关闭
@@ -1154,10 +1154,14 @@
    },
    //树节点取消事件
    TreeEscHandler() {
      this.TreeAddform = {};
      this.TreeAddFormVisible = false;
      for (let key in this.TreeAddform) {
        if (key !== 'codeKeyAttrValue' && key !== 'isParticipateCheck') {
          this.TreeAddform[key] = "";
        }
      }
      this.TreeAddform.codeKeyAttrValue = true;
      this.TreeAddform.isParticipateCheck = 1;
      this.TreeAddFormVisible = false;
      // 关闭弹窗清空校验
      this.$refs.myForm.clearValidate();
    },
@@ -1371,7 +1375,7 @@
          this.crudOid = ''
        }
        this.TreeList = res3.data.data;
        if(!this.TreeList.isParticipateCheck){
        if(this.TreeList.isParticipateCheck === null || this.TreeList.isParticipateCheck === undefined ||this.TreeList.isParticipateCheck === ""){
          this.$set(this.TreeList,"isParticipateCheck",1)
          return
        }