🐛 超管业务列表默认查全部组织,并简化区划编号录入
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -490,7 +490,7 @@ export default {
|
||||
this.addressLoading = true;
|
||||
getCommonAddressList(this.addressPage.currentPage, this.addressPage.pageSize, {
|
||||
...this.addressQuery,
|
||||
allDept: 0,
|
||||
allDept: this.isAdmin ? 1 : 0,
|
||||
})
|
||||
.then(res => {
|
||||
const data = res.data.data || {};
|
||||
@@ -1028,7 +1028,11 @@ export default {
|
||||
onLoad(page, params = {}) {
|
||||
this.loading = true;
|
||||
api
|
||||
.getList(page.currentPage, page.pageSize, { ...params, ...this.query, allDept: 0 })
|
||||
.getList(page.currentPage, page.pageSize, {
|
||||
...params,
|
||||
...this.query,
|
||||
allDept: this.isAdmin ? 1 : 0,
|
||||
})
|
||||
.then(res => {
|
||||
const result = res.data.data;
|
||||
this.page.total = result.total;
|
||||
@@ -1042,7 +1046,7 @@ export default {
|
||||
buildExportParams() {
|
||||
return {
|
||||
...this.query,
|
||||
allDept: 0,
|
||||
allDept: this.isAdmin ? 1 : 0,
|
||||
ids: this.ids,
|
||||
[this.website.tokenHeader]: getToken(),
|
||||
};
|
||||
|
||||
@@ -1610,7 +1610,7 @@ export default {
|
||||
});
|
||||
},
|
||||
normalizeSearch(params = {}) {
|
||||
const query = { ...params };
|
||||
const query = { ...params, allDept: this.isAdmin ? 1 : 0 };
|
||||
if (query.organizationName) {
|
||||
const id = Array.isArray(query.organizationName)
|
||||
? query.organizationName.at(-1)
|
||||
|
||||
@@ -696,7 +696,7 @@ export default {
|
||||
return getProjectList(1, 50, {
|
||||
projectName: keyword,
|
||||
approvalStatus: 'approved',
|
||||
allDept: 0,
|
||||
allDept: this.isAdmin ? 1 : 0,
|
||||
})
|
||||
.then(res => {
|
||||
const data = res.data.data || {};
|
||||
|
||||
@@ -1364,6 +1364,9 @@ export default {
|
||||
},
|
||||
},
|
||||
created() {
|
||||
if (this.isAdmin) {
|
||||
this.allDept = 1;
|
||||
}
|
||||
if (this.isPublicViewPage) {
|
||||
this.isFormPageInstance = true;
|
||||
this.openPublicProjectForm();
|
||||
|
||||
@@ -537,7 +537,11 @@ export default {
|
||||
onLoad(page, params = {}) {
|
||||
this.loading = true;
|
||||
this.api
|
||||
.getList(page.currentPage, page.pageSize, { ...params, ...this.query })
|
||||
.getList(page.currentPage, page.pageSize, {
|
||||
...params,
|
||||
...this.query,
|
||||
allDept: this.isAdmin ? 1 : 0,
|
||||
})
|
||||
.then(res => {
|
||||
const result = res.data?.data || {};
|
||||
this.page.total = result.total || 0;
|
||||
@@ -942,7 +946,7 @@ export default {
|
||||
NProgress.start();
|
||||
exportBlob(
|
||||
this.config.exportUrl,
|
||||
{ ...this.query, ids: this.ids, [this.website.tokenHeader]: getToken() },
|
||||
{ ...this.query, allDept: this.isAdmin ? 1 : 0, ids: this.ids, [this.website.tokenHeader]: getToken() },
|
||||
{ feedback: true }
|
||||
)
|
||||
.then(res => {
|
||||
|
||||
Reference in New Issue
Block a user