|
|
|
@ -31,6 +31,7 @@
|
|
|
|
|
<el-form style="margin-top: 20px">
|
|
|
|
|
<el-button @click="openEditDialog()">新增用户</el-button>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-main class="mainTable">
|
|
|
|
|
<el-table borer
|
|
|
|
|
style="width: 100%; margin-top: 10px;"
|
|
|
|
@ -44,17 +45,19 @@
|
|
|
|
|
label="姓名"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="roleName"
|
|
|
|
|
label="身份"></el-table-column>
|
|
|
|
|
label="角色"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="job"
|
|
|
|
|
label="工作"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="address"
|
|
|
|
|
label="地址"></el-table-column>
|
|
|
|
|
prop="skill"
|
|
|
|
|
label="技能"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="ip"
|
|
|
|
|
label="网站"></el-table-column>
|
|
|
|
|
prop="degree"
|
|
|
|
|
label="学历"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="lastLoginTime"
|
|
|
|
|
label="最后登录"
|
|
|
|
|
:formatter="dateFormat"></el-table-column>
|
|
|
|
|
prop="sal"
|
|
|
|
|
label="薪资"></el-table-column>
|
|
|
|
|
<el-table-column label="操作" v-if="user.role == 1">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="small" icon="el-icon-edit" @click="openEditDialog(scope.row)">编辑</el-button>
|
|
|
|
@ -95,11 +98,20 @@
|
|
|
|
|
<el-form-item label="密码" v-if="!userForm.id">
|
|
|
|
|
<el-input v-model="userForm.password"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="地址">
|
|
|
|
|
<el-input v-model="userForm.address"></el-input>
|
|
|
|
|
<el-form-item label="角色">
|
|
|
|
|
<el-input v-model="userForm.roleName"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="工作">
|
|
|
|
|
<el-input v-model="userForm.job"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="技能">
|
|
|
|
|
<el-input v-model="userForm.skill"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="学历">
|
|
|
|
|
<el-input v-model="userForm.degree"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="个人网站">
|
|
|
|
|
<el-input v-model="userForm.ip"></el-input>
|
|
|
|
|
<el-form-item label="薪资">
|
|
|
|
|
<el-input v-model="userForm.sal"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" @click="cancel('edit')">取消</el-button>
|
|
|
|
@ -143,8 +155,10 @@
|
|
|
|
|
name: '',
|
|
|
|
|
password: '',
|
|
|
|
|
role: '',
|
|
|
|
|
address: '',
|
|
|
|
|
ip: ''
|
|
|
|
|
sal: '',
|
|
|
|
|
degree: '',
|
|
|
|
|
skill:'',
|
|
|
|
|
job:''
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|