|
@@ -15,6 +15,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import {mapGetters} from 'vuex';
|
|
|
import { getEquipmentFamily } from "@/api/scan/request";
|
|
|
export default {
|
|
|
name: "getCode",
|
|
@@ -24,6 +25,11 @@ export default {
|
|
|
default: true
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters("layout", [
|
|
|
+ "projectId",
|
|
|
+ ])
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
value: [],
|
|
@@ -39,7 +45,11 @@ export default {
|
|
|
created() {
|
|
|
this.getData();
|
|
|
},
|
|
|
- mounted() { },
|
|
|
+ watch: {
|
|
|
+ projectId() {
|
|
|
+ this.value = ['']
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
setValue(val) {
|
|
|
this.value = val
|