|
@@ -196,15 +196,18 @@ const getAllDomElements = async () => {
|
|
};
|
|
};
|
|
const goAdvice = async (name: string) => {
|
|
const goAdvice = async (name: string) => {
|
|
if (route.query.source == 3) {
|
|
if (route.query.source == 3) {
|
|
- const idArr = route.query.pageId.split(",");
|
|
|
|
|
|
+ const idArr = route.query.pageId.split('|');
|
|
const dc = await devicesAndCategories({});
|
|
const dc = await devicesAndCategories({});
|
|
const devices = dc.data.devices;
|
|
const devices = dc.data.devices;
|
|
const newOrder = devices.findIndex((item) => item == name);
|
|
const newOrder = devices.findIndex((item) => item == name);
|
|
idArr[2] = newOrder;
|
|
idArr[2] = newOrder;
|
|
router.push({
|
|
router.push({
|
|
- id: idArr.join('|'),
|
|
|
|
path: "/repair/MaintenanceStrategyAssistanceViewHis",
|
|
path: "/repair/MaintenanceStrategyAssistanceViewHis",
|
|
- type: 'auto',
|
|
|
|
|
|
+ query: {
|
|
|
|
+ id: idArr.join('|'),
|
|
|
|
+ name,
|
|
|
|
+ type: 'auto',
|
|
|
|
+ }
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
router.push({
|
|
router.push({
|