| | |
| | | getModelSpecification, |
| | | getlink, |
| | | addInspection, |
| | | isIfViewUUID |
| | | isIfViewUUID, |
| | | getContractsSampleInfo |
| | | } from '@/api/inspection/commisioninspection' |
| | | export default { |
| | | data() { |
| | |
| | | this.viewId = this.$route.params.viewId |
| | | this.$store.commit('settings/SAVE_LINK', this.viewId) |
| | | this.getlink(this.$route.params.viewId) |
| | | this.getContractsSampleInfo(this.$route.params.viewId) |
| | | }, |
| | | mounted() { |
| | | this.getSampleName() |
| | |
| | | } |
| | | }) |
| | | }, |
| | | async getContractsSampleInfo(viewId){ |
| | | let res=await getContractsSampleInfo({viewId}) |
| | | console.log(res.data); |
| | | }, |
| | | async getSampleName() { |
| | | const res = await getSampleName() |
| | | this.sampleoptions = res.data.map((item) => { |