✨ feat(mes): 移除冗余的班组类型枚举引用及相关注释
parent
f85979e025
commit
e0238243aa
|
|
@ -5,7 +5,6 @@ export interface CalTeamMemberVO {
|
|||
id: number
|
||||
teamId: number // 班组编号
|
||||
userId: number // 用户编号
|
||||
userName: string // 用户名称(关联查询)
|
||||
nickname: string // 用户昵称(关联查询)
|
||||
telephone: string // 用户手机号(关联查询)
|
||||
remark: string // 备注
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
:rules="formRules"
|
||||
label-width="100px"
|
||||
v-loading="formLoading"
|
||||
:disabled="isDetail"
|
||||
>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
|
|
@ -38,19 +39,26 @@
|
|||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="formData.remark" type="textarea" placeholder="请输入备注" :maxlength="250" />
|
||||
<el-input
|
||||
v-model="formData.remark"
|
||||
type="textarea"
|
||||
placeholder="请输入备注"
|
||||
:maxlength="250"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<!-- 编辑时显示成员管理 Tab -->
|
||||
<el-tabs v-if="formType === 'update'" v-model="activeTab" class="mt-10px">
|
||||
<!-- 编辑/查看时显示成员管理 Tab -->
|
||||
<el-tabs v-if="formType === 'update' || isDetail" v-model="activeTab" class="mt-10px">
|
||||
<el-tab-pane label="班组成员" name="member">
|
||||
<CalTeamMemberList :team-id="formData.id!" />
|
||||
<CalTeamMemberList :team-id="formData.id!" :form-type="formType" />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
<template #footer>
|
||||
<el-button @click="submitForm" type="primary" :disabled="formLoading">确 定</el-button>
|
||||
<el-button v-if="!isDetail" @click="submitForm" type="primary" :disabled="formLoading">
|
||||
确 定
|
||||
</el-button>
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
</template>
|
||||
</Dialog>
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -26,8 +26,6 @@
|
|||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- DONE @AI:查询下,mysql 对应的数据字典,然后对齐 -->
|
||||
<!-- 说明:已使用 mes_cal_calendar_type 数据字典,前后端对齐 -->
|
||||
<el-form-item label="班组类型" prop="calendarType">
|
||||
<el-select
|
||||
v-model="queryParams.calendarType"
|
||||
|
|
@ -91,16 +89,8 @@
|
|||
:formatter="dateFormatter"
|
||||
width="180px"
|
||||
/>
|
||||
<el-table-column label="操作" align="center" width="200">
|
||||
<el-table-column label="操作" align="center" width="150">
|
||||
<template #default="scope">
|
||||
<!-- TODO @AI:详情,有点无用;上面有了; -->
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
@click="openForm('detail', scope.row.id)"
|
||||
>
|
||||
详情
|
||||
</el-button>
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
|
|
|
|||
Loading…
Reference in New Issue