chore: update eslint && lint code
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
<div style="margin-bottom:15px;">{{ $t('permission.roles') }}: {{ roles }}</div>
|
||||
{{ $t('permission.switchRoles') }}:
|
||||
<el-radio-group v-model="switchRoles">
|
||||
<el-radio-button label="editor"/>
|
||||
<el-radio-button label="admin"/>
|
||||
<el-radio-button label="editor" />
|
||||
<el-radio-button label="admin" />
|
||||
</el-radio-group>
|
||||
</div>
|
||||
</template>
|
||||
|
@@ -59,7 +59,7 @@ import permission from '@/directive/permission/index.js' // 权限判断指令
|
||||
import checkPermission from '@/utils/permission' // 权限判断函数
|
||||
import SwitchRoles from './components/SwitchRoles'
|
||||
|
||||
export default{
|
||||
export default {
|
||||
name: 'DirectivePermission',
|
||||
components: { SwitchRoles },
|
||||
directives: { permission },
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<script>
|
||||
import SwitchRoles from './components/SwitchRoles'
|
||||
|
||||
export default{
|
||||
export default {
|
||||
name: 'PagePermission',
|
||||
components: { SwitchRoles },
|
||||
methods: {
|
||||
|
@@ -21,19 +21,20 @@
|
||||
</el-table>
|
||||
|
||||
<el-dialog :visible.sync="dialogVisible" :title="dialogType==='edit'?'Edit Role':'New Role'">
|
||||
<el-form :model="role" label-width="80px" label-position="left" >
|
||||
<el-form :model="role" label-width="80px" label-position="left">
|
||||
<el-form-item label="Name">
|
||||
<el-input v-model="role.name" placeholder="Role Name"/>
|
||||
<el-input v-model="role.name" placeholder="Role Name" />
|
||||
</el-form-item>
|
||||
<el-form-item label="Desc">
|
||||
<el-input
|
||||
v-model="role.description"
|
||||
:autosize="{ minRows: 2, maxRows: 4}"
|
||||
type="textarea"
|
||||
placeholder="Role Description"/>
|
||||
placeholder="Role Description"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="Menus">
|
||||
<el-tree ref="tree" :check-strictly="checkStrictly" :data="routesData" :props="defaultProps" show-checkbox node-key="path" class="permission-tree"/>
|
||||
<el-tree ref="tree" :check-strictly="checkStrictly" :data="routesData" :props="defaultProps" show-checkbox node-key="path" class="permission-tree" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div style="text-align:right;">
|
||||
|
Reference in New Issue
Block a user