mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
Merge branch 'test20250220' into master_1202
This commit is contained in:
@@ -61,6 +61,8 @@ export const getUnSelectOrg = (isParent) => http.get(`/admin/affiliation/getUnSe
|
|||||||
export const getAffiliationCode = () => http.get('/admin/affiliation/getAffiliationCode')
|
export const getAffiliationCode = () => http.get('/admin/affiliation/getAffiliationCode')
|
||||||
//查看或编辑回显培训发生组织
|
//查看或编辑回显培训发生组织
|
||||||
export const getAffiliationById = (id) => http.get(`/admin/affiliation/queryById?id=${id}`)
|
export const getAffiliationById = (id) => http.get(`/admin/affiliation/queryById?id=${id}`)
|
||||||
|
|
||||||
|
export const getAffiliationModuleTypeById = (id,moduleType) => http.get(`/admin/affiliation/queryModelTypeById?id=${id}&moduleType=${moduleType}`)
|
||||||
//审核记录
|
//审核记录
|
||||||
export const getByBusinessIdList = (obj) => http.post(`/admin/approval/getByBusinessIdListPage?businessId=${obj.businessId}&businessType=${obj.businessType}&pageNo=${obj.pageNo}&pageSize=${obj.pageSize}`)
|
export const getByBusinessIdList = (obj) => http.post(`/admin/approval/getByBusinessIdListPage?businessId=${obj.businessId}&businessType=${obj.businessType}&pageNo=${obj.pageNo}&pageSize=${obj.pageSize}`)
|
||||||
//审批中心查看详情
|
//审批中心查看详情
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ export default {
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "开始时间",
|
title: "任务开始时间",
|
||||||
dataIndex: "taskStartTime",
|
dataIndex: "taskStartTime",
|
||||||
key: "taskStartTime",
|
key: "taskStartTime",
|
||||||
align: "center",
|
align: "center",
|
||||||
@@ -218,7 +218,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "完成时间",
|
title: "任务完成时间",
|
||||||
dataIndex: "finishTime",
|
dataIndex: "finishTime",
|
||||||
key: "finishTime",
|
key: "finishTime",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|||||||
@@ -106,6 +106,10 @@ const props = defineProps({
|
|||||||
type: String,
|
type: String,
|
||||||
default: ""
|
default: ""
|
||||||
},
|
},
|
||||||
|
moduleType:{
|
||||||
|
type: Number,
|
||||||
|
default: null
|
||||||
|
},
|
||||||
parentName: String,
|
parentName: String,
|
||||||
});
|
});
|
||||||
const emit = defineEmits({});
|
const emit = defineEmits({});
|
||||||
@@ -287,20 +291,40 @@ watch(visible, (val)=>{
|
|||||||
if(val){
|
if(val){
|
||||||
threeList.value = false
|
threeList.value = false
|
||||||
activeKey.value = '1'
|
activeKey.value = '1'
|
||||||
api.getAffiliationById(props.id).then(res=>{
|
if(!props.moduleType){
|
||||||
if(res.data.code == 200){
|
console.log("getAffiliationModuleTypeById props.moduleType",props.moduleType)
|
||||||
formData.value = res.data.data
|
api.getAffiliationModuleTypeById(props.id,props.moduleType).then(res=>{
|
||||||
formData.value.parentName = props.parentName
|
if(res.data.code == 200){
|
||||||
formData.value.act = filterList(formData.value.affiliationUserList,0)
|
formData.value = res.data.data
|
||||||
formData.value.one = filterList(formData.value.affiliationUserList,1)
|
formData.value.parentName = props.parentName
|
||||||
formData.value.two = filterList(formData.value.affiliationUserList,2)
|
formData.value.act = filterList(formData.value.affiliationUserList,0)
|
||||||
formData.value.three = filterList(formData.value.affiliationUserList,3)
|
formData.value.one = filterList(formData.value.affiliationUserList,1)
|
||||||
formData.value.tableData = res.data.data.affiliationOrgList
|
formData.value.two = filterList(formData.value.affiliationUserList,2)
|
||||||
}
|
formData.value.three = filterList(formData.value.affiliationUserList,3)
|
||||||
}).catch(err=>{
|
formData.value.tableData = res.data.data.affiliationOrgList
|
||||||
message.destroy()
|
}
|
||||||
message.error(err.data.msg)
|
}).catch(err=>{
|
||||||
})
|
message.destroy()
|
||||||
|
message.error(err.data.msg)
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
console.log("getAffiliationById props.moduleType")
|
||||||
|
api.getAffiliationById(props.id).then(res=>{
|
||||||
|
if(res.data.code == 200){
|
||||||
|
formData.value = res.data.data
|
||||||
|
formData.value.parentName = props.parentName
|
||||||
|
formData.value.act = filterList(formData.value.affiliationUserList,0)
|
||||||
|
formData.value.one = filterList(formData.value.affiliationUserList,1)
|
||||||
|
formData.value.two = filterList(formData.value.affiliationUserList,2)
|
||||||
|
formData.value.three = filterList(formData.value.affiliationUserList,3)
|
||||||
|
formData.value.tableData = res.data.data.affiliationOrgList
|
||||||
|
}
|
||||||
|
}).catch(err=>{
|
||||||
|
message.destroy()
|
||||||
|
message.error(err.data.msg)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// getTwoData()
|
// getTwoData()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -562,6 +562,7 @@ export default {
|
|||||||
key: "stdPositionName",
|
key: "stdPositionName",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
width: 400,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
return record.stdPosition
|
return record.stdPosition
|
||||||
? `${record.stdPositionName}(${record.stdPosition})`
|
? `${record.stdPositionName}(${record.stdPosition})`
|
||||||
@@ -599,7 +600,7 @@ export default {
|
|||||||
dataIndex: "ratio",
|
dataIndex: "ratio",
|
||||||
key: "ratio",
|
key: "ratio",
|
||||||
align: "center",
|
align: "center",
|
||||||
width:90,
|
width:100,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
return `${record.ratio * 100}%`;
|
return `${record.ratio * 100}%`;
|
||||||
@@ -610,7 +611,7 @@ export default {
|
|||||||
dataIndex: "isPublished",
|
dataIndex: "isPublished",
|
||||||
key: "isPublished",
|
key: "isPublished",
|
||||||
align: "center",
|
align: "center",
|
||||||
width:80,
|
width:100,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
return record.isPublished ? "已发布" : "未发布";
|
return record.isPublished ? "已发布" : "未发布";
|
||||||
@@ -621,12 +622,13 @@ export default {
|
|||||||
dataIndex: "updateTime",
|
dataIndex: "updateTime",
|
||||||
key: "updateTime",
|
key: "updateTime",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 180,
|
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
width: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
align: "right",
|
align: "right",
|
||||||
|
fixed: "right",
|
||||||
width: 200,
|
width: 200,
|
||||||
slots: { customRender: "listData" },
|
slots: { customRender: "listData" },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -550,6 +550,7 @@ export default {
|
|||||||
key: "stdPositionName",
|
key: "stdPositionName",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
width: 400,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
return record.stdPosition
|
return record.stdPosition
|
||||||
? `${record.stdPositionName}(${record.stdPosition})`
|
? `${record.stdPositionName}(${record.stdPosition})`
|
||||||
@@ -586,7 +587,7 @@ export default {
|
|||||||
title: "完成比例",
|
title: "完成比例",
|
||||||
dataIndex: "ratio",
|
dataIndex: "ratio",
|
||||||
key: "ratio",
|
key: "ratio",
|
||||||
width: 90,
|
width:100,
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
@@ -598,7 +599,7 @@ export default {
|
|||||||
dataIndex: "isPublished",
|
dataIndex: "isPublished",
|
||||||
key: "isPublished",
|
key: "isPublished",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 80,
|
width:100,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
return record.isPublished ? "已发布" : "未发布";
|
return record.isPublished ? "已发布" : "未发布";
|
||||||
@@ -609,12 +610,13 @@ export default {
|
|||||||
dataIndex: "updateTime",
|
dataIndex: "updateTime",
|
||||||
key: "updateTime",
|
key: "updateTime",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 180,
|
width: 200,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
align: "right",
|
align: "right",
|
||||||
|
fixed: "right",
|
||||||
width: 200,
|
width: 200,
|
||||||
slots: { customRender: "listData" },
|
slots: { customRender: "listData" },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -102,6 +102,7 @@
|
|||||||
:parentName="record.parentName"
|
:parentName="record.parentName"
|
||||||
:id="record.id"
|
:id="record.id"
|
||||||
:title="'培训发生组织详情'"
|
:title="'培训发生组织详情'"
|
||||||
|
:moduleType="1"
|
||||||
@searchList="searchList"
|
@searchList="searchList"
|
||||||
>
|
>
|
||||||
<div style="color: #1890ff; cursor: pointer">查看</div>
|
<div style="color: #1890ff; cursor: pointer">查看</div>
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
:parentName="record.parentName"
|
:parentName="record.parentName"
|
||||||
:id="record.id"
|
:id="record.id"
|
||||||
:title="'培训发生组织详情'"
|
:title="'培训发生组织详情'"
|
||||||
|
:moduleType="0"
|
||||||
@searchList="searchList"
|
@searchList="searchList"
|
||||||
>
|
>
|
||||||
<div style="color: #1890ff; cursor: pointer">查看</div>
|
<div style="color: #1890ff; cursor: pointer">查看</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user