| | |
| | | }, |
| | | 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) { |
| | |
| | | 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('列表调用失败'); |
| | | } |
| | |
| | | this.getRoleTabelData(); |
| | | }, |
| | | handleCurrentChange(val) { |
| | | console.log(`当前页: ${val}`); |
| | | this.listData.pageIndex = val; |
| | | this.getRoleTabelData(); |
| | | }, |
| | |
| | | this.UpdateFormdialog = true; |
| | | }, |
| | | onSubmit() { |
| | | console.log(this.roleForm); |
| | | this.getRoleTabelData(); |
| | | }, |
| | | resetForm(formName) { |