Browse Source

[task-6774] 受控文件发放记录表中确认人的部门只显示主部门

cyy 4 days ago
parent
commit
d5f9ec2ff2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/platform/message/inner/detail/dialog.vue

+ 2 - 2
src/views/platform/message/inner/detail/dialog.vue

@@ -145,7 +145,7 @@ export default {
                 closeOnClickModal: false
                 closeOnClickModal: false
             }).then(() => {
             }).then(() => {
                 // TODO 受控文件逻辑处理
                 // TODO 受控文件逻辑处理
-                const { position, userId, name } = this.$store.getters || {}
+                const { mainPosition, position, userId, name } = this.$store.getters || {}
                 if (!position) {
                 if (!position) {
                     return this.$message.warning('系统所登录的账户并没有所属部门,请先在系统设置完再进行确认!')
                     return this.$message.warning('系统所登录的账户并没有所属部门,请先在系统设置完再进行确认!')
                 }
                 }
@@ -163,7 +163,7 @@ export default {
                         const tempObj = {
                         const tempObj = {
                             id_: this.$utils.guid(),
                             id_: this.$utils.guid(),
                             parent_id_: this.tableId,
                             parent_id_: this.tableId,
-                            tong_zhi_bu_men_: position,
+                            tong_zhi_bu_men_: mainPosition ? mainPosition.id : position,
                             que_ren_qian_ming: JSON.stringify([{
                             que_ren_qian_ming: JSON.stringify([{
                                 id: ryjbqkDatas[0].qian_zi_tu_wen_,
                                 id: ryjbqkDatas[0].qian_zi_tu_wen_,
                                 fileName: '确认签名'
                                 fileName: '确认签名'