From cd9dae5c7db49c3dba61609e7188a6b29a635c08 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期一, 12 十二月 2022 10:01:43 +0800
Subject: [PATCH] 修改绑定参数
---
src/views/systemManage/userManage/index.vue | 40 +++++++++++++++++++---------------------
1 files changed, 19 insertions(+), 21 deletions(-)
diff --git a/src/views/systemManage/userManage/index.vue b/src/views/systemManage/userManage/index.vue
index 719e7d8..9805a7c 100644
--- a/src/views/systemManage/userManage/index.vue
+++ b/src/views/systemManage/userManage/index.vue
@@ -25,7 +25,7 @@
v-model="queryForm.company"
class="filter-item"
placeholder=""
- style="width: 200px;"
+ style="width: 150px;"
@keyup.enter.native="queryHandle"
/>
</el-form-item>
@@ -180,9 +180,9 @@
<span>{{ scope.row.company }}</span>
</template>
</el-table-column>
- <el-table-column label="部门" prop="department" align="center" sortable="custom" width="100px">
+ <el-table-column label="部门" prop="departmentname" align="center" sortable="custom" width="100px">
<template slot-scope="scope">
- <span>{{ scope.row.department }}</span>
+ <span>{{ scope.row.departmentname }}</span>
</template>
</el-table-column>
<el-table-column label="职位" prop="job" align="center" sortable="custom" width="100px">
@@ -365,7 +365,7 @@
<el-option
v-for="item in departmentList"
:key="item.id"
- :value="item.department"
+ :value="item.id"
:label="item.department"
>
</el-option>
@@ -1187,23 +1187,21 @@
formData.append('file', files[0])
}
formData.append('action', 'import')
- importUser(formData)
- .then((response) => {
- const res = response.data
- if (res.code == 200) {
- _this.importDialogFormVisible = false
- _this.$message({
- message: '导入成功',
- type: 'success'
- })
- _this.getUserList()
- } else {
- parseError({ error: res.message, vm: _this })
- }
- })
- .catch((error) => {
- parseError({ error: error, vm: _this })
- })
+ importUser(formData).then((response) => {
+ const res = response.data
+ if (res.code == 200) {
+ _this.importDialogFormVisible = false
+ _this.$message({
+ message: '导入成功',
+ type: 'success'
+ })
+ _this.getUserList()
+ } else {
+ parseError({ error: res.message, vm: _this })
+ }
+ }).catch((error) => {
+ parseError({ error: error, vm: _this })
+ })
},
getProvince(){
const _this = this
--
Gitblit v1.9.2