田源
2023-08-25 1f6c005d4446b0bdf40d1680c385e43bd53d963d
Source/UBCS-WEB/src/views/code/code.vue
@@ -845,7 +845,7 @@
  import fixedValueOption from "@/const/code/fixedValueMgrDialog";
  import {mapGetters} from "vuex";
  import {getByRoleUserList} from "@/api/system/user";
  import func from "@/util/func";
  import func from "@/util/func";
  export default {
      data() {
@@ -890,7 +890,7 @@
            visible:false,
          },
          /*使用范围对话框显示控制*/
          codeRangeSettingBox: false,
          useRangeData: [],
@@ -1827,28 +1827,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() {