address-book-shell 0.0.44 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "address-book-shell",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "private": false,
5
5
  "author": "houdajian@163.com",
6
6
  "main": "lib/address-book-shell.umd.js",
@@ -253,7 +253,6 @@ export default {
253
253
  list: item,
254
254
  })
255
255
  })
256
- console.log()
257
256
  this.scene = 3
258
257
  } else {
259
258
  this.normalList = normalList
@@ -304,10 +303,16 @@ export default {
304
303
  //
305
304
  },
306
305
  submit4() {
307
- let arr = this.normalList.filter((item) => {
308
- return item.exist != '1'
306
+ // 过滤出新增的人员(exist != '1')
307
+ const newPersonnel = this.normalList.filter(item => item.exist !== '1')
308
+
309
+ // 为所有人员设置fdOrgType,默认为'8'(人员类型)
310
+ newPersonnel.forEach(item => {
311
+ item.fdOrgType = item.fdOrgType || '8'
309
312
  })
310
- this.$emit('nameSubmit', arr)
313
+
314
+ // 触发nameSubmit事件,传递新增人员列表
315
+ this.$emit('nameSubmit', newPersonnel)
311
316
  },
312
317
  },
313
318
  }
@@ -784,7 +784,7 @@ export default {
784
784
  this.selectedList = unique(this.selectedList, 'hrId')
785
785
  this.onlyNewPersonnelList = unique(this.onlyNewPersonnelList, 'hrId')
786
786
  this.$emit('add', deepClone(list), deepClone(this.selectedList))
787
- // this.$refs.addressContent.recoverySelect(true, list) //通讯录恢复勾选状态
787
+ this.$refs.addressContent.recoverySelect() //通讯录恢复勾选状态
788
788
  // this.$refs.addressContentMyFriend.recoverySelect(true, list) //我的好友恢复勾选状态
789
789
  },
790
790
  // 删除人员