|
@@ -168,7 +168,7 @@ import LineChart from "@/components/LineChart/index.vue";
|
|
import empty from "@/components/Empty/index.vue";
|
|
import empty from "@/components/Empty/index.vue";
|
|
import { downloadStrategy } from "@/api/index";
|
|
import { downloadStrategy } from "@/api/index";
|
|
import { downloadFile } from "@/utils/utils";
|
|
import { downloadFile } from "@/utils/utils";
|
|
-import { evaluateHealthStatus } from "@/api/index";
|
|
|
|
|
|
+import { evaluateHealthStatus, devicesAndCategories } from "@/api/index";
|
|
|
|
|
|
const { proxy } = getCurrentInstance()!;
|
|
const { proxy } = getCurrentInstance()!;
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
@@ -194,9 +194,18 @@ const getAllDomElements = async () => {
|
|
// debugger
|
|
// debugger
|
|
// })
|
|
// })
|
|
};
|
|
};
|
|
-const goAdvice = (name: string) => {
|
|
|
|
|
|
+const goAdvice = async (name: string) => {
|
|
if (route.query.source == 3) {
|
|
if (route.query.source == 3) {
|
|
- router.back();
|
|
|
|
|
|
+ const idArr = route.query.pageId.split(",");
|
|
|
|
+ const dc = await devicesAndCategories({});
|
|
|
|
+ const devices = dc.data.devices;
|
|
|
|
+ const newOrder = devices.findIndex((item) => item == name);
|
|
|
|
+ idArr[2] = newOrder;
|
|
|
|
+ router.push({
|
|
|
|
+ id: idArr.join('|'),
|
|
|
|
+ path: "/repair/MaintenanceStrategyAssistanceViewHis",
|
|
|
|
+ type: 'auto',
|
|
|
|
+ });
|
|
} else {
|
|
} else {
|
|
router.push({
|
|
router.push({
|
|
path: "/repair/MaintenanceStrategyAssistanceViewHis",
|
|
path: "/repair/MaintenanceStrategyAssistanceViewHis",
|