Commit 6718593f by chenwq1

fix: 路由

1 parent 3ab02e71
...@@ -29,7 +29,7 @@ export const DetectionRouter: Array<RouteRecordRaw> = [ ...@@ -29,7 +29,7 @@ export const DetectionRouter: Array<RouteRecordRaw> = [
breadcrumbs: [ breadcrumbs: [
{ name: "检测管理" }, { name: "检测管理" },
{ name: "检测工单管理", path: "/detection/order" }, { name: "检测工单管理", path: "/detection/order" },
{ name: "编辑检测报告" }, { name: "编辑检测项" },
], ],
}, },
}, },
...@@ -42,7 +42,7 @@ export const DetectionRouter: Array<RouteRecordRaw> = [ ...@@ -42,7 +42,7 @@ export const DetectionRouter: Array<RouteRecordRaw> = [
breadcrumbs: [ breadcrumbs: [
{ name: "检测管理" }, { name: "检测管理" },
{ name: "检测工单管理", path: "/detection/order" }, { name: "检测工单管理", path: "/detection/order" },
{ name: "查看检测报告" }, { name: "查看检测项" },
], ],
}, },
}, },
......
...@@ -82,7 +82,7 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> { ...@@ -82,7 +82,7 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
} }
get pageTitle(): string { get pageTitle(): string {
return this.readonly ? "查看检测报告" : "编辑检测报告"; return this.readonly ? "查看检测项" : "编辑检测项";
} }
created(): void { created(): void {
...@@ -209,7 +209,9 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> { ...@@ -209,7 +209,9 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
scrollCustomizeFormToTop() { scrollCustomizeFormToTop() {
this.$nextTick(() => { this.$nextTick(() => {
const el = this.$refs.customizeFormBoxRef as HTMLElement | undefined; const el = this.$refs.customizeFormBoxRef as
| HTMLElement
| undefined;
if (el) { if (el) {
el.scrollTop = 0; el.scrollTop = 0;
} }
......
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
type="link" type="link"
size="small" size="small"
@click="trackEnterEditMode(record)" @click="trackEnterEditMode(record)"
>编辑报告</a-button >编辑检测项</a-button
> >
</router-link> </router-link>
...@@ -288,9 +288,7 @@ ...@@ -288,9 +288,7 @@
}, },
}" }"
> >
<a-button type="link" size="small" <a-button type="link" size="small">查看检测项</a-button>
>查看检测详情</a-button
>
</router-link> </router-link>
</template> </template>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!