ludc
2023-10-25 7dad5e5e092380e7a69fe4abf5c883aac8bf3fa5
代码上传
已修改2个文件
22 ■■■■ 文件已修改
Source/UBCS-WEB/src/store/modules/user.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/system/PasswordManagement/passwords.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/store/modules/user.js
@@ -295,9 +295,9 @@
        }
        Vue.set(permission_new, item.code, children);
      });
      //console.log(permission_new)
      state.permission = permission_new;
      setStore({name: "saber-permission", content: permission_new});
      // console.log(state.permission)
      setStore({name: "permission", content: permission_new});
    },
  }
Source/UBCS-WEB/src/views/system/PasswordManagement/passwords.vue
@@ -185,7 +185,7 @@
            labelWidth:"22%",
            id:5,
            hide:true,
            change:this.handleCheckboxChange,
            change: this.handleCheckboxChange,
            rules: [{
              required: true,
              message: "请选择组合方法",
@@ -319,10 +319,8 @@
  created() {
    this.onLoad()
    combination().then(res=>{
      console.log("111",res)
      // console.log("111",res)
    })
  },
  mount() {
  },
  methods:{
    handleSelectChange(val){
@@ -332,8 +330,10 @@
      // }
    },
    handleCheckboxChange(val) {
      console.log("val",val);
      const arr = this.option.column[5];
      this.checkboxlength = val.value;
      console.log("this.checkboxlength",this.checkboxlength);
      this.checkboxedit = this.checkboxlength.toString().split(",");
      if (val.value != undefined && val.value != null) {
@@ -380,7 +380,7 @@
          });
          this.onLoad();
        }).catch(res=>{
        console.log(res)
        // console.log(res)
      })
    },
    rowSave(row,done){
@@ -400,7 +400,7 @@
      })
    },
    rowEdit(row){
      console.log("打开编辑edit",row)
      // console.log("打开编辑edit",row)
    },
    handleDel(row){
      this.$refs.crud.rowDel(row,row.$index);
@@ -411,7 +411,7 @@
      // const arr=this.option.column[5];
      this.checkboxNumber=row.combinationIds.split(",")
      this.selectNumber=row.requiredType
      console.log(this.checkboxNumber, this.selectNumber)
      // console.log(this.checkboxNumber, this.selectNumber)
    //  打开编辑首先判断,组合方法是否小于必填种类,如果小于给予提醒修改
        if(this.checkboxNumber.length<=this.selectNumber){
          this.$message({
@@ -429,7 +429,7 @@
        });
        done()
      }).catch(res=>{
        console.log(res)
        // console.log(res)
      })
    },
    onLoad(page, params = {}) {
@@ -440,7 +440,7 @@
        // this.data = data.records;
        // this.loading = false;
        // this.selectionClear();
        console.log(res)
        // console.log(res)
        this.page.total=res.data.data.total
        this.data=res.data.data.records
      });