Browse Source

[FIX][UI ] security user state tenantCode User Type Display abnormal (#4255)

* fix user state error

* fix userType  error

* fix tenantCode  error
pull/3/MERGE
felix.wang 4 years ago committed by GitHub
parent
commit
3f7759ef64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/list.vue

12
dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/list.vue

@ -21,14 +21,18 @@
<el-table-column type="index" :label="$t('#')" width="50"></el-table-column> <el-table-column type="index" :label="$t('#')" width="50"></el-table-column>
<el-table-column prop="userName" :label="$t('User Name')"></el-table-column> <el-table-column prop="userName" :label="$t('User Name')"></el-table-column>
<el-table-column :label="$t('User Type')"> <el-table-column :label="$t('User Type')">
{{userType === 'GENERAL_USER' ? `${$t('Ordinary users')}` : `${$t('Administrator')}`}} <template slot-scope="scope">
<span>{{scope.row.userType === 'GENERAL_USER'? `${$t('Ordinary users')}` : `${$t('Administrator')}`}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="tenantName" :label="$t('Tenant')" width="160"></el-table-column> <el-table-column prop="tenantCode" :label="$t('Tenant')" width="160"></el-table-column>
<el-table-column prop="queue" :label="$t('Queue')"></el-table-column> <el-table-column prop="queue" :label="$t('Queue')"></el-table-column>
<el-table-column prop="email" :label="$t('Email')" min-width="120"></el-table-column> <el-table-column prop="email" :label="$t('Email')" min-width="120"></el-table-column>
<el-table-column prop="phone" :label="$t('Phone')" min-width="90"></el-table-column> <el-table-column prop="phone" :label="$t('Phone')" min-width="90"></el-table-column>
<el-table-column :label="$t('State')"> <el-table-column :label="$t('State')">
{{state === 1 ? `${$t('Enable')}` : `${$t('Disable')}`}} <template slot-scope="scope">
<span>{{scope.row.state === 1? `${$t('Enable')}` : `${$t('Disable')}`}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('Create Time')" min-width="120"> <el-table-column :label="$t('Create Time')" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">

Loading…
Cancel
Save