{{ scope.row.createTime | timestampFormatDate }}
@@ -118,9 +119,9 @@ export default {
columns: [],
buttons: [
{
- label: this.$t('commons.edit'), icon: 'el-icon-edit', type: 'primary', click: this.edit
+ label: this.$t('commons.edit'), icon: 'el-icon-edit', type: 'primary', click: this.edit, disabled: this.btnDisabled
}, {
- label: this.$t('commons.delete'), icon: 'el-icon-delete', type: 'danger', click: this.handleDelete
+ label: this.$t('commons.delete'), icon: 'el-icon-delete', type: 'danger', click: this.handleDelete, disabled: this.btnDisabled
}
],
searchConfig: {
@@ -156,7 +157,7 @@ export default {
const param = temp || {}
roleGrid(this.paginationConfig.currentPage, this.paginationConfig.pageSize, param).then(response => {
const data = response.data
- this.total = data.itemCount
+ this.paginationConfig.total = data.itemCount
this.tableData = data.listObject
})
},
@@ -251,18 +252,21 @@ export default {
this.$refs.menu.setCheckedKeys(this.menuIds)
},
handleDelete(row) {
- this.$confirm(this.$t('commons.confirm_delete') + ': ' + row.name + '?', this.$t('role.tips'), {
+ this.$confirm(this.$t('role.confirm_delete') + ': ' + row.name + '?', this.$t('role.tips'), {
confirmButtonText: this.$t('commons.confirm'),
cancelButtonText: this.$t('commons.cancel'),
type: 'warning'
}).then(() => {
delRole(row.roleId).then(res => {
- this.$success(this.$t('commons.modify_success'))
+ this.$success(this.$t('commons.delete_success'))
this.search()
})
}).catch(() => {
})
+ },
+ btnDisabled(row) {
+ return !row.updateTime
}
}
}
diff --git a/frontend/src/views/system/user/index.vue b/frontend/src/views/system/user/index.vue
index 6b5b9204d6..74fc75cf0c 100644
--- a/frontend/src/views/system/user/index.vue
+++ b/frontend/src/views/system/user/index.vue
@@ -25,6 +25,24 @@
{{ scope.row.dept && scope.row.dept.deptName }}