diff --git a/src/api/xxcj.js b/src/api/xxcj.js index aec2618..514fec3 100644 --- a/src/api/xxcj.js +++ b/src/api/xxcj.js @@ -170,3 +170,19 @@ export const xxcjMjjfSelectPage = (params) => { params }) } +// 情报 续报和补充 参数: czlx 操作类型:01 续报、02 补充 ,id, ysnr +export const addEntity = (data) => { + return request({ + url: api + `/xxcj/bc/addEntity`, + method: "post", + data + }) +} +// 转会商 +export const xxcjXxzhs = (data) => { + return request({ + url: api + `/xxcj/xxzhs`, + method: "post", + data + }) +} 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/auth.js b/src/utils/auth.js index 9d49f3c..68a9e19 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -81,3 +81,19 @@ export function isShiQingZhi() { const Jb = deptLevel?.[0] == '2' ? '01' : deptLevel?.[0] == '3' ? '02' : '03' return deptBizType == '23' && Jb == '01' } + + +/** 获取当前角色 */ +export function getRole() { + const { deptBizType, deptLevel } = getItem('deptId')[0] + /** 是否是市情指领导 */ + const isShiQzLeader = getItem('roleList').find(item => item.roleCode == 'JS_666666') != undefined + if (isShiQzLeader) return {label: '市情指领导',value:'01',ename: 'shiQzLeader'} + /** 是否是市情指人员 */ + const isShiQz = getItem('roleList').find(item => item.roleCode == 'JS_777777') != undefined + if (isShiQz) return {label: '市情指挥人员',value:'02', ename: 'shiQz'} + /** 是否是县情指人员 */ + const isXianQz = getItem('roleList').find(item => item.roleCode == 'JS_888888') != undefined + if (isXianQz) return {label: '县情指人员',value:'03', ename: 'xianQz'} + return {label: '普通用户',value:'04', ename: 'common'} +} 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 @@ + + + + diff --git a/src/views/backOfficeSystem/HumanIntelligence/listView/index.vue b/src/views/backOfficeSystem/HumanIntelligence/listView/index.vue index 30f9b62..bbe07a2 100644 --- a/src/views/backOfficeSystem/HumanIntelligence/listView/index.vue +++ b/src/views/backOfficeSystem/HumanIntelligence/listView/index.vue @@ -40,10 +40,10 @@