diff --git a/src/api/mes/cal/team/member/index.ts b/src/api/mes/cal/team/member/index.ts index d854679b5..f6131e7b1 100644 --- a/src/api/mes/cal/team/member/index.ts +++ b/src/api/mes/cal/team/member/index.ts @@ -5,7 +5,6 @@ export interface CalTeamMemberVO { id: number teamId: number // 班组编号 userId: number // 用户编号 - userName: string // 用户名称(关联查询) nickname: string // 用户昵称(关联查询) telephone: string // 用户手机号(关联查询) remark: string // 备注 diff --git a/src/views/mes/cal/team/CalTeamForm.vue b/src/views/mes/cal/team/CalTeamForm.vue index e35981d4e..0ef9380ae 100644 --- a/src/views/mes/cal/team/CalTeamForm.vue +++ b/src/views/mes/cal/team/CalTeamForm.vue @@ -6,6 +6,7 @@ :rules="formRules" label-width="100px" v-loading="formLoading" + :disabled="isDetail" > @@ -38,19 +39,26 @@ - + - - + + - + @@ -73,6 +81,7 @@ const dialogTitle = ref('') // 弹窗的标题 const formLoading = ref(false) // 表单的加载中 const formType = ref('') // 表单的类型:create - 新增;update - 修改 const activeTab = ref('member') // 当前激活的资源 Tab +const isDetail = computed(() => formType.value === 'detail') // 是否详情模式(只读) const formData = ref({ id: undefined, code: undefined, diff --git a/src/views/mes/cal/team/index.vue b/src/views/mes/cal/team/index.vue index cbb07999a..c2bd587fd 100644 --- a/src/views/mes/cal/team/index.vue +++ b/src/views/mes/cal/team/index.vue @@ -26,8 +26,6 @@ class="!w-240px" /> - - - +