diff --git a/src/api/Lecturer.js b/src/api/Lecturer.js
index f9480722..b9d872d0 100644
--- a/src/api/Lecturer.js
+++ b/src/api/Lecturer.js
@@ -57,3 +57,7 @@ export const getSelectOrg = (id) => http.get(`/admin/affiliation/getSelectOrg?id
export const getUnSelectOrg = () => http.get(`/admin/affiliation/getUnSelectOrg`)
//获取培训发生组织编号
export const getAffiliationCode = () => http.get('/admin/affiliation/getAffiliationCode')
+//查看或编辑回显培训发生组织
+export const getAffiliationById = (id) => http.get(`/admin/affiliation/queryById?id=${id}`)
+//删除培训发生组织
+export const affiliationDelById = (id)=>http.post(`/admin/affiliation/delById?id=${id}`)
\ No newline at end of file
diff --git a/src/components/project/AddOrgContent.vue b/src/components/project/AddOrgContent.vue
index 993dc3c6..fceb11e5 100644
--- a/src/components/project/AddOrgContent.vue
+++ b/src/components/project/AddOrgContent.vue
@@ -42,7 +42,7 @@
v-for="(item, index) in treeAddData"
:key="index"
>
-
{{ item?.name }} - (原:{{ item?.orgName || '-' }})
+ {{ item?.orgName }} - (原:{{ item?.updateName || '-' }})
+
@@ -104,7 +104,7 @@ import * as lecturerApi from "@/api/Lecturer.js";
}else{
console.log(props.AddContentList,'xixiixix')
treeAddData.value = props?.AddContentList
- checkedKeys.value = props?.AddContentList?.map(item=>item.id)
+ checkedKeys.value = props?.AddContentList?.map(item=>item.orgId)
}
});
const onCheck = (checkedKeys, {checked: bool, checkedNodes, node, event}) => {
@@ -119,15 +119,24 @@ import * as lecturerApi from "@/api/Lecturer.js";
}
})
}
+ checkedNodes = checkedNodes.map(item=>{
+ return {
+ orgId: item.id,
+ orgName: item.name,
+ affiliationId: item.id,
+ ...item
+ }
+ })
treeAddData.value = checkedNodes;
+ console.log(treeAddData.value,'checkedNodes')
}
const clearTree = () => {
treeAddData.value = [];
checkedKeys.value = [];
}
const deleteTree = (item) => {
- treeAddData.value = treeAddData.value.filter(node => node.id !== item.id);
- checkedKeys.value = treeAddData.value.map(item=>item.id)
+ treeAddData.value = treeAddData.value.filter(node => node.orgId !== item.orgId);
+ checkedKeys.value = treeAddData.value.map(item=>item.orgId)
}
const closeCodeModal = () => {
emit("update:showContent", false);
diff --git a/src/components/project/ProjectManagerLecturer.vue b/src/components/project/ProjectManagerLecturer.vue
index 960aca86..eae285a3 100644
--- a/src/components/project/ProjectManagerLecturer.vue
+++ b/src/components/project/ProjectManagerLecturer.vue
@@ -57,6 +57,9 @@ onMounted(()=>{
managerArray.value = props.arrayList
options.value = props.arrayList
})
+watch(()=>props.arrayList, ()=>{
+ managerArray.value = props.arrayList
+})
const options = ref([])
const getList = () => {
getUserList(keyword.value).then(res=>{
diff --git a/src/components/project/lockLecturer.vue b/src/components/project/lockLecturer.vue
new file mode 100644
index 00000000..5aaf86b7
--- /dev/null
+++ b/src/components/project/lockLecturer.vue
@@ -0,0 +1,251 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{formData?.affiliationCode||'-'}}
+ {{formData?.affiliationName||'-'}}
+ {{formData?.isParent==1?'否':'是'}}
+ {{formData?.act||'-'}}
+
+ {{['-','待审核', '审核中', '已完成', '审核失败'][formData?.type]}}
+
+
+
+
+
+
+
+
+
+ {{formData?.affiliationCode||'-'}}
+ {{formData?.affiliationName||'-'}}
+ {{formData?.isParent==1?'否':'是'}}
+ {{formData?.act||'-'}}
+ {{formData?.one||'-'}}
+ {{formData?.two||'-'}}
+ {{formData?.three||'-'}}
+
+ {{['-','待审核', '审核中', '已完成', '审核失败'][formData?.type]}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/lecturer/Organization.vue b/src/views/lecturer/Organization.vue
index 2db21cf5..2538a883 100644
--- a/src/views/lecturer/Organization.vue
+++ b/src/views/lecturer/Organization.vue
@@ -22,11 +22,13 @@
+ @expand="expandTable" :pagination="false">
- handleModify(record, String(record.courseform))">查看
+
+ 查看
+
handleModify(record, String(record.courseform))">编辑
deleteModal(record, String(record.courseform))">删除
@@ -86,15 +88,15 @@
-
-
+
-
-
+
@@ -126,14 +128,14 @@
-
+
-
+
@@ -142,7 +144,7 @@
-
+
@@ -194,7 +196,6 @@
-