ludc
2023-08-23 e6e375997692ac712eb43ca76b16752f6a9a1c67
Source/UBCS-WEB/src/views/code/code.vue
@@ -1811,28 +1811,33 @@
        },
        /** 发布编码规则 */
        async enableOrDeactivatse(oid,update){
          // 避免用户重复点击按钮
          this.releadDisabled = true;
          await checkLikeCodeRule(oid).then(res => {
            if(res.data.success){
              this.updateStatus(oid,update);
            }else{
              this.$confirm('test', '提示', {
                distinguishCancelAndClose: true,
                confirmButtonText: '继续发布',
                cancelButtonText: '取消'
              }).then(() => {
                //this.updateStatus();
              })
              .catch(action => {
                this.$message({
                  type: 'info',
                  message: '取消发布!',
          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(res.data.msg, '提示', {
                  distinguishCancelAndClose: true,
                  confirmButtonText: '继续发布',
                  cancelButtonText: '取消'
                }).then(() => {
                  //this.updateStatus();
                })
              });
            }
          })
          this.releadDisabled = false;
                .catch(action => {
                  this.$message({
                    type: 'info',
                    message: '取消发布!',
                  })
                });
              }
            })
            this.releadDisabled = false;
          }else {
            this.updateStatus(oid,update);
          }
        },
        /** 打开编码规则克隆对话框*/
        openCodeRuleDialog() {