|
@@ -3,7 +3,7 @@
|
|
|
<div class="part-head">
|
|
|
<h2>获取相机编号</h2>
|
|
|
</div>
|
|
|
- <div class="camera-form">
|
|
|
+ <div class="camera-form" @keyup.enter="submit">
|
|
|
<Form
|
|
|
ref="modalFormComp"
|
|
|
:model="modalForm"
|
|
@@ -66,7 +66,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState("client", ["curSubject", "clientConfig"])
|
|
|
+ ...mapState("client", ["curSubject"])
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations("client", ["setCamera"]),
|
|
@@ -83,13 +83,8 @@ export default {
|
|
|
|
|
|
this.setCamera(this.modalForm.camera);
|
|
|
|
|
|
- const scanRouter = this.clientConfig.packageScan
|
|
|
- ? "GroupScan"
|
|
|
- : "LineScan";
|
|
|
const routerName = this.curSubject.collectConfig
|
|
|
- ? this.clientConfig.paperStage
|
|
|
- ? "CheckInfo"
|
|
|
- : scanRouter
|
|
|
+ ? "ScanWait"
|
|
|
: "ScanArea";
|
|
|
this.$router.push({ name: routerName });
|
|
|
}
|