createId为空删除参数

This commit is contained in:
joylink_fanyuhong 2024-04-11 18:17:14 +08:00
parent 6b3d83979d
commit 5666af96cc
2 changed files with 10 additions and 3 deletions

View File

@ -107,12 +107,16 @@ export default {
this.onSubmit();
},
onSubmit() {
getPapaerListOfOrg({
const data = {
orgId: this.$store.state.user.companyId,
mapId: this.$route.query.mapId,
creatorId: this.form.creatorId,
findState: 3
}).then(resp => {
};
if(!data.creatorId) {
delete data.creatorId;
}
getPapaerListOfOrg(data).then(resp => {
this.paperList = resp.data.list;
});
},

View File

@ -193,7 +193,7 @@ export default {
this.creatorList = [];
const data = {};
if (!this.hasTeachingDataManage()) {
data.orgId = this.orgId
data.orgId = this.orgId;
}
queryPaperCreatorList(data).then(response => {
this.creatorList = response.data.map(item => {
@ -210,6 +210,9 @@ export default {
return this.$route.path.includes('/teachingDataManage/');
},
getListApi(obj) {
if(!obj.creatorId) {
delete obj.creatorId;
}
if (this.hasTeachingDataManage()) {
return getAllPapaerListOfOrg({ ...obj });
} else {