fix: 编辑上报时主项目选项过滤当前项目
This commit is contained in:
@@ -520,7 +520,11 @@ const disabledDate = (time) => {
|
|||||||
const getProjectList = () => {
|
const getProjectList = () => {
|
||||||
getProjectOption().then(res => {
|
getProjectOption().then(res => {
|
||||||
if (res.code === 1000) {
|
if (res.code === 1000) {
|
||||||
masterProjectList.value = res.data
|
if(name.value === 'Summary/edit'){
|
||||||
|
masterProjectList.value = res.data.filter(item => item.value!=route.query.projectId)
|
||||||
|
}else{
|
||||||
|
masterProjectList.value = res.data
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user