diff --git a/src/components/inputCom/inputUser.vue b/src/components/inputCom/inputUser.vue new file mode 100644 index 0000000..ea574e3 --- /dev/null +++ b/src/components/inputCom/inputUser.vue @@ -0,0 +1,147 @@ + + + + + +::v-depp .treeBox { +margin-top: 10px; +} + + diff --git a/src/utils/tools.js b/src/utils/tools.js index 943c4eb..09d446e 100644 --- a/src/utils/tools.js +++ b/src/utils/tools.js @@ -381,3 +381,21 @@ export function holographicProfileJump(szhm) { if (!szhm) return window.open(`https://tyyy.lz.dsj.xz/profile/people/person-manage?sfzhm=${szhm}&from=portal`) } + +/** + * 获取表单验证错误信息 + * @param fields 表单验证错误信息 + * @param {Object} msgObj 错误信息Ojb,没有就取message + */ +export function getErrMsg(fields, msgObj) { + if (!fields) return; + if (Object.keys(fields).length === 0) return; + /** 第一个错误字段 */ + const firstErrorField = Object.keys(fields)[0]; + if (msgObj && msgObj[firstErrorField]) return msgObj[firstErrorField]; + if (!firstErrorField) return; + /** 第一个错误字段的内容 @type{Object} - [message, field, fieldValue] */ + let firstErrorFieldObj = fields?.[firstErrorField]; + let errMsg = firstErrorFieldObj?.[0]?.message + return errMsg +} diff --git a/src/views/backOfficeSystem/HumanIntelligence/infoCollection/components/addForm.vue b/src/views/backOfficeSystem/HumanIntelligence/infoCollection/components/addForm.vue index 31aeedb..df22ae3 100644 --- a/src/views/backOfficeSystem/HumanIntelligence/infoCollection/components/addForm.vue +++ b/src/views/backOfficeSystem/HumanIntelligence/infoCollection/components/addForm.vue @@ -109,7 +109,7 @@ + diff --git a/src/views/backOfficeSystem/HumanIntelligence/infoCollection/index.vue b/src/views/backOfficeSystem/HumanIntelligence/infoCollection/index.vue index 6b02841..a9da34a 100644 --- a/src/views/backOfficeSystem/HumanIntelligence/infoCollection/index.vue +++ b/src/views/backOfficeSystem/HumanIntelligence/infoCollection/index.vue @@ -92,7 +92,8 @@ 转合成 - 转会商 + 转会商 肯定 关注部门 @@ -101,7 +102,9 @@ 删除 - 修改 + 修改 + 续报 详情 @@ -134,6 +137,10 @@ + + + +