Просмотр исходного кода

工步编辑优化:修复团队ID类型判断及增加调试日志

yusheng 9 месяцев назад
Родитель
Сommit
86c9957664

+ 1 - 0
src/api/workforceManagement/team.js

@@ -100,6 +100,7 @@ export async function settingTeamTime(data) {
 
 // 根据班组ids查所有人信息
 export async function listUserByIds(data) {
+    console.log(data,'data')
     const res = await request.post(`/main/team/listUserByIds`, data);
     console.log(res.data.code == 0)
     if (res.data.code == 0) {

+ 1 - 2
src/views/factoryModel/station/components/edit.vue

@@ -860,10 +860,9 @@
             // }
           }
           this.form = Object.assign({}, this.form, res);
-          if (this.form?.extInfo?.teamId) {
+          if ( this.form?.extInfo?.teamId&&typeof(this.form?.extInfo?.teamId ) === 'string') {
             this.userListFn(this.form.extInfo.teamId);
           }
-
           if (res.taskList?.length) {
             this.form.taskNames = res.taskList.map((i) => i.name);
           }