ludc
2023-08-23 e6e375997692ac712eb43ca76b16752f6a9a1c67
Source/UBCS-WEB/src/views/code/code.vue
@@ -1811,13 +1811,15 @@
        },
        /** 发布编码规则 */
        async enableOrDeactivatse(oid,update){
          if(update==="release"){
          // 避免用户重复点击按钮
          this.releadDisabled = true;
          await checkLikeCodeRule(oid).then(res => {
              console.log(res)
            if(res.data.success){
              this.updateStatus(oid,update);
            }else{
              this.$confirm('test', '提示', {
                this.$confirm(res.data.msg, '提示', {
                distinguishCancelAndClose: true,
                confirmButtonText: '继续发布',
                cancelButtonText: '取消'
@@ -1833,6 +1835,9 @@
            }
          })
          this.releadDisabled = false;
          }else {
            this.updateStatus(oid,update);
          }
        },
        /** 打开编码规则克隆对话框*/
        openCodeRuleDialog() {