1
Surpriseplus
2022-10-08 50178aa6cf8abe1395f76c2d3e3cda55baddc3eb
src/views/userManage/roleManage.vue
@@ -294,10 +294,12 @@
  },
  methods: {
    formatTime(row, column) {
      let date = row[column.property]; // 我这里的crtime=1657528899所以这里*1000
      let date = row[column.property];
      if (date === undefined || date === null) {
        return '';
      }
      return moment(parseInt(date)).format('YYYY-MM-DD HH:mm:ss');
    },
    showDepTree(res) {
@@ -339,7 +341,6 @@
      this.listData.name = this.roleForm.username;
      this.listData.depName = this.roleForm.value;
      const data = await select_Role_ByPageAndCount(this.listData);
      console.log(data.result);
      if (data.code != 200) {
        this.$message.error('列表调用失败');
      }
@@ -438,7 +439,6 @@
      this.getRoleTabelData();
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
      this.listData.pageIndex = val;
      this.getRoleTabelData();
    },
@@ -449,7 +449,6 @@
      this.UpdateFormdialog = true;
    },
    onSubmit() {
      console.log(this.roleForm);
      this.getRoleTabelData();
    },
    resetForm(formName) {