From 50178aa6cf8abe1395f76c2d3e3cda55baddc3eb Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期六, 08 十月 2022 17:07:36 +0800 Subject: [PATCH] 1 --- src/views/userManage/roleManage.vue | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/userManage/roleManage.vue b/src/views/userManage/roleManage.vue index 6c5b752..f3d9e30 100644 --- a/src/views/userManage/roleManage.vue +++ b/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) { -- Gitblit v1.9.3