zhuzhuanzhuan
2023-08-10 9b3e7c3c47dc27e531a7b954aa2b3ba500c84b78
src/views/mdc/base/modules/ProductionManager/ProductionEquipment.vue
@@ -124,7 +124,11 @@
      handleSubmit() {
        let that = this;
        if(!that.departId){
          this.$message.warning('请点击选择一个部门!')
          // this.$message.warning('请点击选择一个部门!')
          this.$notification.warning({
            message:'消息',
            description:"请点击选择一个部门"
          });
        }
        let checkedKeys = [...that.checkedKeys, ...that.halfCheckedKeys]
        const permissionIds = checkedKeys.join(",")
@@ -136,11 +140,19 @@
        that.loading = true;
        saveDepartPermission(params).then((res)=>{
          if(res.success){
            that.$message.success(res.message);
            // that.$message.success(res.message);
            that.$notification.warning({
              message:'消息',
              description:res.message
            });
            that.loading = false;
            that.loadData();
          }else {
            that.$message.error(res.message);
            // that.$message.error(res.message);
            that.$notification.warning({
              message:'消息',
              description:res.message
            });
            that.loading = false;
          }
        })