Commit 42f19441 by wangchunyang

人员保存失败内容清空调整,人员新增加载问题调整

parent f8a07e07
...@@ -2043,7 +2043,12 @@ export default { ...@@ -2043,7 +2043,12 @@ export default {
this.$refs.formPerson.resetFields() this.$refs.formPerson.resetFields()
this.title = '新增' this.title = '新增'
this.peopleForm = { this.peopleForm = {
...this.peopleForm, // ...this.peopleForm,
cityId: '',
areaId: '',
streetId: '',
communityId: '',
key_focus_personnel_type_json: {},
confirmButton: false, confirmButton: false,
show: true, show: true,
involvingConflictsDisputes: '2', involvingConflictsDisputes: '2',
...@@ -2589,7 +2594,7 @@ export default { ...@@ -2589,7 +2594,7 @@ export default {
formdata.append('cityId', this.peopleForm.cityId) formdata.append('cityId', this.peopleForm.cityId)
const ret = await importExcel(formdata) const ret = await importExcel(formdata)
if (ret != null && ret.success > 0) { if (ret && ret.data) {
this.importShow = false this.importShow = false
this.impBtnDisabled = false this.impBtnDisabled = false
let mobj = ret.data.data let mobj = ret.data.data
......
...@@ -2448,7 +2448,7 @@ export default { ...@@ -2448,7 +2448,7 @@ export default {
formdata.append('cityId', this.peopleForm.cityId) formdata.append('cityId', this.peopleForm.cityId)
const ret = await importExcel(formdata) const ret = await importExcel(formdata)
if (ret != null && ret.success > 0) { if (ret && ret.data) {
this.importShow = false this.importShow = false
this.impBtnDisabled = false this.impBtnDisabled = false
let mobj = ret.data.data let mobj = ret.data.data
......
...@@ -1855,7 +1855,11 @@ export default { ...@@ -1855,7 +1855,11 @@ export default {
this.$refs.formPerson.resetFields() this.$refs.formPerson.resetFields()
this.title = '新增' this.title = '新增'
this.peopleForm = { this.peopleForm = {
...this.peopleForm, cityId: '',
areaId: '',
streetId: '',
communityId: '',
key_focus_personnel_type_json: {},
confirmButton: false, confirmButton: false,
show: true, show: true,
involvingConflictsDisputes: '2' involvingConflictsDisputes: '2'
...@@ -1863,7 +1867,6 @@ export default { ...@@ -1863,7 +1867,6 @@ export default {
} }
// 重置当前用户层级 // 重置当前用户层级
this.currentUserLevel = '' this.currentUserLevel = ''
// 调用 getLoginUserAreaInfo 接口获取当前登录人的层级和区域码信息 // 调用 getLoginUserAreaInfo 接口获取当前登录人的层级和区域码信息
getLoginUserAreaInfo({ area_id: this.$store.state.user.otherUserInfo.area_id }).then(async (res) => { getLoginUserAreaInfo({ area_id: this.$store.state.user.otherUserInfo.area_id }).then(async (res) => {
if (res.data.errcode === 0) { if (res.data.errcode === 0) {
...@@ -2067,7 +2070,7 @@ export default { ...@@ -2067,7 +2070,7 @@ export default {
this.controlData.show = false this.controlData.show = false
this.$refs['formPerson'].resetFields() this.$refs['formPerson'].resetFields()
} else { } else {
this.$refs['formPerson'].resetFields() // this.$refs['formPerson'].resetFields()
this.$Notice.error({ this.$Notice.error({
title: '保存失败!', title: '保存失败!',
desc: ret.data.errmsg desc: ret.data.errmsg
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论