更改接口

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({
// 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,
});

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

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

Loading…
Cancel
Save