修改接口

master
夜笙歌 9 months ago
parent 57c74529e3
commit 474eb526fc

@ -288,12 +288,13 @@ export default {
async created() { async created() {
if (this.$route.params != null) { if (this.$route.params != null) {
this.queryParams.productLineCode = this.$route.params && this.$route.params.productLineCode; this.queryParams.productLineCode = this.$route.params && this.$route.params.productLineCode;
}else{
this.queryParams.productLineCode = 'CX_02'
} }
this.loading = true; this.loading = true;
await findProductLineList({productLineType: 1}).then(response => { await findProductLineList({productLineType: 1}).then(response => {
this.productLineList = response.data; this.productLineList = response.data;
this.queryParams.productLineCode = 'CX_02'
}) })
await findProductLineList({productLineType: 2}).then(response => { await findProductLineList({productLineType: 2}).then(response => {
this.findStationList = response.data; this.findStationList = response.data;

Loading…
Cancel
Save