createId为空删除参数
This commit is contained in:
parent
6b3d83979d
commit
5666af96cc
@ -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;
|
||||
});
|
||||
},
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user