0804
This commit is contained in:
parent
aa6d8ae5f8
commit
765b420a17
@ -81,7 +81,7 @@ export function delUser(userId) {
|
||||
// 导出用户
|
||||
export function exportUser(query) {
|
||||
return request({
|
||||
url: '/base/dl-drive-school-coach/export',
|
||||
url: '/system/rescueInfo/drviceExport',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
|
@ -26,10 +26,10 @@
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">新增
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button type="info" icon="el-icon-upload2" size="mini" @click="handleImport">导入
|
||||
</el-button>
|
||||
</el-col>
|
||||
</el-col>-->
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport"
|
||||
:loading="exportLoading">导出
|
||||
@ -73,7 +73,6 @@
|
||||
<!-- 添加或修改参数配置对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
|
||||
<el-row v-if="form.userId != null">
|
||||
<el-form-item label="头像" prop="avatar">
|
||||
<ImageUpload v-model="form.avatar" :limit="1"/>
|
||||
@ -152,7 +151,7 @@
|
||||
stripe
|
||||
style="width: 100%">
|
||||
<el-table-column
|
||||
prop="username"
|
||||
prop="realName"
|
||||
label="员工姓名"
|
||||
width="180">
|
||||
</el-table-column>
|
||||
@ -161,45 +160,17 @@
|
||||
label="失败原因">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="roleName"
|
||||
label="岗位">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="idCard"
|
||||
label="身份证号">
|
||||
prop="phonenumber"
|
||||
label="手机号码">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="age"
|
||||
label="年龄">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="mobile"
|
||||
label="电话号码">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="sex"
|
||||
label="性别">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="seniority"
|
||||
label="教龄">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="carId"
|
||||
label="车牌号">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="address"
|
||||
label="居住地址">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="regAddress"
|
||||
label="户籍地址">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="instructorDesc"
|
||||
label="个人简介">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitFileForm">确 定</el-button>
|
||||
@ -504,6 +475,10 @@ export default {
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.queryParams = {
|
||||
username: undefined,
|
||||
nickname: undefined,
|
||||
};
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
@ -658,47 +633,7 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
/* submitForm: function () {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
this.form.fileList = this.fileList
|
||||
const requestForm = {
|
||||
realName: this.form.nickName,
|
||||
phonenumber: this.form.mobile,
|
||||
age: this.form.age,
|
||||
sex: this.form.sex,
|
||||
|
||||
}
|
||||
if (this.form.userId !== undefined) {
|
||||
console.log(this.form)
|
||||
|
||||
updateUser(requestForm).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
let data = {
|
||||
userId: this.form.userId,
|
||||
roleIds: this.form.roleIds
|
||||
}
|
||||
permissionAssign(data)
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
this.form.username = this.form.mobile
|
||||
this.form.password = '123456'
|
||||
addUser(requestForm).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
let data = {
|
||||
userId: response.data,
|
||||
roleIds: this.form.roleIds
|
||||
}
|
||||
permissionAssign(data)
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
}, */
|
||||
/** 提交按钮(角色权限) */
|
||||
submitRole: function () {
|
||||
if (this.form.userId !== undefined) {
|
||||
|
Loading…
Reference in New Issue
Block a user