xiejun
2023-08-24 3c3758573580e5da96ff501f111b038cb1fd8bc2
Source/UBCS-WEB/src/views/code/code.vue
@@ -1827,13 +1827,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: '取消'
@@ -1849,6 +1851,9 @@
            }
          })
          this.releadDisabled = false;
          }else {
            this.updateStatus(oid,update);
          }
        },
        /** 打开编码规则克隆对话框*/
        openCodeRuleDialog() {