update core-worker的全列表获取地址

This commit is contained in:
lb 2024-03-15 17:03:52 +08:00
parent e3133cef1f
commit ca129f5434
11 changed files with 27 additions and 12 deletions

View File

@ -251,7 +251,8 @@ export default {
select: true,
label: '负责人',
prop: 'responsiblePeopleId',
url: '/base/core-worker/listAll',
url: '/base/core-worker/workerList',
// url: '/base/core-worker/listAll',
},
],
[

View File

@ -244,7 +244,8 @@ export default {
select: true,
label: '负责人',
prop: 'responsiblePeopleId',
url: '/base/core-worker/listAll',
url: '/base/core-worker/workerList',
// url: '/base/core-worker/listAll',
},
],
[{ input: true, label: '备注', prop: 'remark' }],

View File

@ -120,7 +120,6 @@ import {
createEquipment,
updateEquipment,
deleteEquipment,
getEquipment,
getEquipmentPage,
exportEquipmentExcel,
} from '@/api/base/equipment';
@ -244,7 +243,7 @@ export default {
select: true,
label: '负责人',
prop: 'responsiblePeopleId',
url: '/base/core-worker/listAll',
url: '/base/core-worker/workerList',
},
],
[{ input: true, label: '备注', prop: 'remark' }],

View File

@ -164,7 +164,10 @@ export default {
}))
);
}
const workerlist = await this.$axios('/base/core-worker/listAll');
const workerlist = await this.$axios(
// '/base/core-worker/listAll'
'/base/core-worker/workerList'
);
if (workerlist.code == 0) {
inspectorList = inspectorList.concat(
workerlist.data.map((item) => ({

View File

@ -555,7 +555,10 @@ export default {
}))
);
}
const workerlist = await this.$axios('/base/core-worker/listAll');
const workerlist = await this.$axios(
'/base/core-worker/workerList'
// '/base/core-worker/listAll'
);
if (workerlist.code == 0) {
inspectorList = inspectorList.concat(
workerlist.data.map((item) => ({

View File

@ -356,7 +356,8 @@ export default {
async getRpList() {
this.formLoading = true;
const { code, data } = await this.$axios(
'/base/core-worker/listAll'
'/base/core-worker/workerList'
// '/base/core-worker/listAll'
);
// debugger;
if (code == 0) {

View File

@ -182,7 +182,10 @@ export default {
async getRpList() {
this.formLoading = true;
const { code, data } = await this.$axios('/base/core-worker/listAll');
const { code, data } = await this.$axios(
'/base/core-worker/workerList'
// '/base/core-worker/listAll'
);
// debugger;
if (code == 0) {
this.rpList = data;

View File

@ -390,7 +390,8 @@ export default {
const urls = [
'/base/core-production-line/listAll',
'/base/core-department/listAll',
'/base/core-worker/listAll',
'/base/core-worker/workerList',
// '/base/core-worker/listAll',
];
let res;
switch (source) {

View File

@ -639,7 +639,8 @@ export default {
);
/** worker */
const workerList = await this.$axios({
url: '/base/core-worker/listAll',
url: '/base/core-worker/workerList',
// url: '/base/core-worker/listAll',
});
list = list.concat(
(workerList.data || []).map((item) => ({

View File

@ -326,7 +326,8 @@ export default {
const urls = [
'/base/core-production-line/listAll',
'/base/core-department/listAll',
'/base/core-worker/listAll',
'/base/core-worker/workerList',
// '/base/core-worker/listAll',
];
let res;
switch (source) {

View File

@ -598,7 +598,8 @@ export default {
const urls = [
'/base/core-production-line/listAll',
'/base/core-department/listAll',
'/base/core-worker/listAll',
'/base/core-worker/workerList',
// '/base/core-worker/listAll',
];
let res;
switch (source) {