| | |
| | | ENV = 'development' |
| | | |
| | | # base api |
| | | VUE_APP_BASE_API = 'http://192.168.137.138:1234/' |
| | | VUE_APP_BASE_API = 'http://localhost:1234/' |
| | |
| | | }) |
| | | |
| | | } |
| | | // |
| | | export function getContractsSampleInfo(params){ |
| | | return request({ |
| | | url: 'link-basic/getContractsSampleInfo', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | | //规格型号 |
| | | export function getModelSpecification(params){ |
| | | return request({ |
| | |
| | | otherSupplements: "无", |
| | | improvementRequirements: "无", |
| | | dialogVisible2: false, |
| | | path: 'http://192.168.110.254:1234/cnasSatisfactionSurvey/uploadFile', |
| | | path: 'http://localhost:1234/cnasSatisfactionSurvey/uploadFile', |
| | | ruleForm: { |
| | | surveyDate: '', |
| | | userUnit: '', |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | |
| | | // this.path=process.env.VUE_APP_BASE_API+"cnasSatisfactionSurvey/uploadFile" |
| | | }, |
| | | mounted() { |
| | | this.getData() |
| | |
| | | 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) => { |