master
zth 3 years ago
parent 21fcdd76e5
commit f55e9e80ed

@ -0,0 +1,3 @@
#.env.development 开发
NODE_ENV='development'
VUE_APP_AXIOS_BASEURL='/api'

@ -0,0 +1,3 @@
#.env.production 正式
NODE_ENV='production'
VUE_APP_AXIOS_BASEURL='/api'

@ -4,8 +4,9 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
"lint": "vue-cli-service lint",
"build": "vue-cli-service build --mode production",
"build:release": "vue-cli-service build"
},
"dependencies": {
"axios": "^0.26.1",

@ -1,7 +1,7 @@
import axios from "axios";
export default ({ data }) => {
const baseURL = "/api";
const baseURL = process.env.VUE_APP_AXIOS_BASEURL;
const server = axios.create({
baseURL,
timeout: 60000,

@ -1,7 +1,6 @@
import Index from "../views/AmsIndex.vue";
// import IndexEdit from "../views/AmsIndexEdit.vue";
export const routes = [
{ path: "/", redirect: "/Index" },
{ path: "/Index", component: Index },
{ path: "/", component: Index },
{ path: "*", redirect: "/" },
];

@ -42,7 +42,7 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<!-- <el-col :span="4">
<el-form-item label="起运模式">
<el-select
size="small"
@ -75,7 +75,7 @@
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-col> -->
<el-col :span="4">
<el-form-item label="箱型">
<el-input
@ -86,6 +86,38 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="开始时间">
<el-date-picker
type="date"
size="small"
placeholder="开始时间"
v-model="search_data.start_time"
value-format="yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="结束时间">
<el-date-picker
type="date"
size="small"
placeholder="结束时间"
v-model="search_data.end_time"
value-format="yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="3" class="SearchButtonBox">
<div class="SearchButton">
<el-button size="small" type="primary" @click="Search">
搜索
</el-button>
<el-button size="small" type="primary">重置</el-button>
</div>
</el-col>
<!-- <el-col :span="4">
<el-form-item label="箱重">
<el-input
placeholder="箱重"
@ -93,9 +125,9 @@
v-model="search_data.box_weight"
></el-input>
</el-form-item>
</el-col>
</el-col> -->
</el-row>
<el-row type="flex">
<!-- <el-row type="flex">
<el-col :span="4">
<el-form-item label="箱辆">
<el-input
@ -137,7 +169,7 @@
<el-button size="small" type="primary">重置</el-button>
</div>
</el-col>
</el-row>
</el-row> -->
</el-form>
</div>
<div class="table">

Loading…
Cancel
Save