|
@@ -489,7 +489,7 @@
|
|
|
<el-form-item label="填写部门" required>
|
|
|
<!-- <el-input v-model.trim="associationForm.department" class="selWidth"></el-input> -->
|
|
|
<el-select v-model="authForm.department" placeholder="填写部门" @change="getNameList">
|
|
|
- <el-option v-for="item in bmList" :key="item.name" :label="item.name" :value="item.name" ></el-option>
|
|
|
+ <el-option v-for="item in bmList" :key="item.id" :label="item.name" :value="item.id" ></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="真实姓名" required>
|
|
@@ -507,7 +507,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-
|
|
|
+
|
|
|
import {
|
|
|
userListApi,
|
|
|
tagAllListApi,
|
|
@@ -719,12 +719,21 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getNameList() {
|
|
|
+ // 处理部门
|
|
|
+ this.bmList.forEach(res =>{
|
|
|
+ if (res.id === this.authForm.department) {
|
|
|
+ console.log(res)
|
|
|
+ this.authForm.departId = res.id
|
|
|
+ this.authForm.departName = res.name
|
|
|
+ }
|
|
|
+ })
|
|
|
let data = {
|
|
|
id: this.authForm.department,
|
|
|
organizationId: this.authForm.name
|
|
|
}
|
|
|
otganizatonDepartmentUserList(data).then((res) => {
|
|
|
this.userList = res
|
|
|
+ this.authForm.realName = '';
|
|
|
})
|
|
|
},
|
|
|
// 认证
|
|
@@ -749,7 +758,8 @@ export default {
|
|
|
phone: that.userInfo.phone,
|
|
|
realName: that.authForm.realName,
|
|
|
userId: that.userInfo.id,
|
|
|
- department: that.authForm.department
|
|
|
+ department: that.authForm.departName,
|
|
|
+ departId: that.authForm.departId,
|
|
|
}
|
|
|
authentication(data).then((res) => {
|
|
|
this.$message.success('认证成功')
|
|
@@ -759,7 +769,7 @@ export default {
|
|
|
that.authForm.department = ''
|
|
|
that.authVisible = false
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
getTemplateRow(row) {
|
|
|
this.formExtension.spreadUid = row.id;
|