From 5cd744dcc854a9203234fc95d55521c8caa8dd6d Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期三, 30 八月 2023 09:25:29 +0800
Subject: [PATCH] 委托查询信息
---
.env.development | 2 +-
src/api/inspection/commisioninspection.js | 8 ++++++++
src/views/CNAS/satisfactionSurveys/index.vue | 4 ++--
src/views/inspectionManagement/commissionInspection/addCommision.vue | 8 +++++++-
4 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/.env.development b/.env.development
index 92026e1..ab9be2d 100644
--- a/.env.development
+++ b/.env.development
@@ -2,4 +2,4 @@
ENV = 'development'
# base api
-VUE_APP_BASE_API = 'http://192.168.137.138:1234/'
+VUE_APP_BASE_API = 'http://localhost:1234/'
diff --git a/src/api/inspection/commisioninspection.js b/src/api/inspection/commisioninspection.js
index 275a65b..ac22b0c 100644
--- a/src/api/inspection/commisioninspection.js
+++ b/src/api/inspection/commisioninspection.js
@@ -25,6 +25,14 @@
})
}
+//
+export function getContractsSampleInfo(params){
+ return request({
+ url: 'link-basic/getContractsSampleInfo',
+ method: 'get',
+ params
+ })
+}
//瑙勬牸鍨嬪彿
export function getModelSpecification(params){
return request({
diff --git a/src/views/CNAS/satisfactionSurveys/index.vue b/src/views/CNAS/satisfactionSurveys/index.vue
index 05f49fe..c89b437 100644
--- a/src/views/CNAS/satisfactionSurveys/index.vue
+++ b/src/views/CNAS/satisfactionSurveys/index.vue
@@ -224,7 +224,7 @@
otherSupplements: "鏃�",
improvementRequirements: "鏃�",
dialogVisible2: false,
- path: 'http://192.168.110.254:1234/cnasSatisfactionSurvey/uploadFile',
+ path: 'http://localhost:1234/cnasSatisfactionSurvey/uploadFile',
ruleForm: {
surveyDate: '',
userUnit: '',
@@ -263,7 +263,7 @@
}
},
created() {
-
+ // this.path=process.env.VUE_APP_BASE_API+"cnasSatisfactionSurvey/uploadFile"
},
mounted() {
this.getData()
diff --git a/src/views/inspectionManagement/commissionInspection/addCommision.vue b/src/views/inspectionManagement/commissionInspection/addCommision.vue
index 58c57c0..d3888f7 100644
--- a/src/views/inspectionManagement/commissionInspection/addCommision.vue
+++ b/src/views/inspectionManagement/commissionInspection/addCommision.vue
@@ -229,7 +229,8 @@
getModelSpecification,
getlink,
addInspection,
- isIfViewUUID
+ isIfViewUUID,
+ getContractsSampleInfo
} from '@/api/inspection/commisioninspection'
export default {
data() {
@@ -324,6 +325,7 @@
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()
@@ -344,6 +346,10 @@
}
})
},
+ async getContractsSampleInfo(viewId){
+ let res=await getContractsSampleInfo({viewId})
+ console.log(res.data);
+ },
async getSampleName() {
const res = await getSampleName()
this.sampleoptions = res.data.map((item) => {
--
Gitblit v1.9.3