更改接口

master
杜函宇 2 years ago
parent 4805083c6d
commit 328474e8c0

@ -18,10 +18,10 @@ axios.defaults.headers["Content-Type"] = "application/json;charset=utf-8";
const service = axios.create({ const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分 // axios中请求配置有baseURL选项表示请求URL公共部分
// !本地使用 // !本地使用
// baseURL: process.env.VUE_APP_BASE_API, baseURL: process.env.VUE_APP_BASE_API,
// !外地使用 // !外地使用
baseURL: location.origin + process.env.VUE_APP_URL, // baseURL: location.origin + process.env.VUE_APP_URL,
// 超时 // 超时
timeout: 60000, timeout: 60000,
}); });

@ -128,6 +128,7 @@
:is="currentComponent" :is="currentComponent"
:descriptions="descriptions" :descriptions="descriptions"
:loading="load1" :loading="load1"
:ids="ids"
></component> ></component>
</dialog-title> </dialog-title>
<!-- 省抽 --> <!-- 省抽 -->
@ -171,8 +172,10 @@
<script> <script>
import blockHeader from "@/views/firmContent/components/blockHeader/index"; import blockHeader from "@/views/firmContent/components/blockHeader/index";
import dialogTitle from "@/views/firmContent/components/dialogTitle/index"; import dialogTitle from "@/views/firmContent/components/dialogTitle/index";
import basicInfo from "./basicInfo/basicInfo"; import basicInfo from "./basicInfo/basicInfo";
import chouYang from "./chouYang/chouYang"; import chouYang from "./chouYang/chouYang";
import chouyangInfo from "./chouyangInfo/index"; import chouyangInfo from "./chouyangInfo/index";
import medicalInfo from "./medical"; import medicalInfo from "./medical";
import samplingDetail from "./samplingDetail"; import samplingDetail from "./samplingDetail";
@ -209,6 +212,8 @@ export default {
current: 1, current: 1,
// //
cybh: "", cybh: "",
//
yppzwh:''
}, },
// //
ids: "", ids: "",
@ -574,6 +579,7 @@ export default {
}, },
// //
async listyp() { async listyp() {
this.form1.yppzwh = this.$store.state.app.urlA.data
this.loading = true; this.loading = true;
let msg1 = await this.$api.yaoPin.getYPList(this.form1); let msg1 = await this.$api.yaoPin.getYPList(this.form1);
this.tableData = msg1.data.records; this.tableData = msg1.data.records;
@ -592,6 +598,7 @@ export default {
// //
this.listyp(); this.listyp();
} else if (AA.type == "3") { } else if (AA.type == "3") {
//
} }
} }
}, },
@ -624,7 +631,6 @@ export default {
// //
handleEdit(index, row) { handleEdit(index, row) {
this.ids = row.id; this.ids = row.id;
console.log(this.ids);
// //
if (this.urlA.type == "1") { if (this.urlA.type == "1") {
} else if (this.urlA.type == "2") { } else if (this.urlA.type == "2") {

@ -86,6 +86,7 @@ export default {
form1: { form1: {
current: 1, current: 1,
size: 10, size: 10,
mainId:'',
}, },
}; };
}, },
@ -93,8 +94,15 @@ export default {
created() { created() {
this.arrData(); this.arrData();
}, },
props:{
ids:{
type:[Number,String],
default:''
}
},
methods: { methods: {
async arrData() { async arrData() {
this.form1.mainId = this.ids
this.loading = true; this.loading = true;
let msg1 = await this.$api.yaoPin.jyList(this.form1); let msg1 = await this.$api.yaoPin.jyList(this.form1);
this.tableData = msg1.data.records; this.tableData = msg1.data.records;
@ -115,7 +123,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import "@/assets/styles/utils.scss"; @import "@/assets/styles/utils.scss";
.tables { .tables {
min-height: 400px; min-height: 300px;
.button { .button {
display: flex; display: flex;
justify-content: center; justify-content: center;

Loading…
Cancel
Save