mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-24 10:12:54 +08:00
讲师管理bug
This commit is contained in:
@@ -200,7 +200,7 @@
|
||||
<a-form-item label="">
|
||||
<!-- <a-textarea v-model:value="formParam.remark" showCount :maxlength="200"
|
||||
style="width: 100%; height: 100px; border-radius: 8px" placeholder="请输入" /> -->
|
||||
<a-table :dataSource="formParam?.affiliationOrgList" :columns="orgColumns"/>
|
||||
<a-table :dataSource="formParam?.affiliationOrgList" :scroll="{ x: '600' }" :columns="orgColumns"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@@ -391,15 +391,21 @@ const orgColumns = ref([
|
||||
title: '组织名称',
|
||||
dataIndex: 'orgName',
|
||||
key: 'orgName',
|
||||
ellipsis: true,
|
||||
width: '20%',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '是否被培训发生组织选择',
|
||||
dataIndex: 'isSelect',
|
||||
key: 'isSelect',
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
width: '30%',
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div>
|
||||
{text.record.isSelect == 1 ? `${text.record.isSelect} (${text.record.orgName})` : "否 (-)"}
|
||||
{text.record.isSelect == 1 ? `是 (${text.record.orgName})` : "否 (-)"}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -408,6 +414,9 @@ const orgColumns = ref([
|
||||
title: '担当',
|
||||
dataIndex: 'leaders',
|
||||
key: 'leaders',
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
width: '60%',
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div>
|
||||
@@ -572,6 +581,7 @@ const getTableDate = (obj) => {
|
||||
};
|
||||
});
|
||||
state.formParam.leveThreeValue = state.formParam.leveThreeArray.map(item => item.label).join(',');
|
||||
state.formParam.orglistName = state.formParam.affiliationOrgList?.map(item=>item.id).join(',')
|
||||
state.teacherdialog = true;
|
||||
state.teacherdialogtitle = '编辑培训发生组织'
|
||||
state.vf = false
|
||||
@@ -629,7 +639,7 @@ const getTableDate = (obj) => {
|
||||
console.log(state.formParam,'state.formParam')
|
||||
state.formParam.affiliationName = state.formParam.affiliationName?.trim()
|
||||
state.formParam.affiliationUserList = [...state.formParam?.actArray,...state.formParam?.leveOneArray,...state.formParam?.leveTwoArray,...state.formParam?.leveThreeArray]
|
||||
state.formParam.orglistName = state.formParam.affiliationOrgList?.map(item=>item.name).join(',')
|
||||
state.formParam.orglistName = state.formParam.affiliationOrgList?.map(item=>item.id).join(',')
|
||||
const formItemNames = Object.keys(rules);
|
||||
for(let i=0;i<formItemNames.length;i++){
|
||||
const result = await validateField(formItemNames[i]);
|
||||
|
||||
Reference in New Issue
Block a user