Commit 566ae5af authored by 何鹏程's avatar 何鹏程

修改bug

parent 875fd219
...@@ -6,8 +6,8 @@ module.exports = { ...@@ -6,8 +6,8 @@ module.exports = {
assetsPublicPath: '/', assetsPublicPath: '/',
proxyTable: { proxyTable: {
'/api': { '/api': {
// target: 'http://172.16.15.117:8084/', // 开发环境地址 target: 'http://172.16.15.117:8084/', // 开发环境地址
target: 'http://172.16.15.100:801', // target: 'http://172.16.15.100:801',
// target: 'http://122.51.94.140/teamwork', // 测试环境 // target: 'http://122.51.94.140/teamwork', // 测试环境
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<!-- 引入阿里云oss-sdk --> <!-- 引入阿里云oss-sdk -->
<!-- <script src="https://gosspublic.alicdn.com/aliyun-oss-sdk-4.4.4.min.js"></script> --> <!-- <script src="https://gosspublic.alicdn.com/aliyun-oss-sdk-4.4.4.min.js"></script> -->
<!-- 引入百度DuGIS --> <!-- 引入百度DuGIS -->
<script src="http://40.1.2.251:8219/bmapgl/"></script> <!-- <script src="http://40.1.2.251:8219/bmapgl/"></script> -->
</head> </head>
<body> <body>
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
class="avatar-uploader" class="avatar-uploader"
:action="uploadUrl" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:headers="{ token: token }"
accept="image/jpg, image/jpeg, image/png" accept="image/jpg, image/jpeg, image/png"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload" :before-upload="beforeAvatarUpload"
...@@ -282,6 +283,7 @@ ...@@ -282,6 +283,7 @@
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
:disabled="formDisabled"
@click="submitForm()" @click="submitForm()"
>确 定</el-button> >确 定</el-button>
</span> </span>
...@@ -290,6 +292,7 @@ ...@@ -290,6 +292,7 @@
<script> <script>
import { getDic } from '../../../util/dict' import { getDic } from '../../../util/dict'
import { Auth } from '@/util/auth'
import { saveOrUpdateEmergencyCar, queryTeamEmergencyCarInfo } from '@/api/emergencyCar' import { saveOrUpdateEmergencyCar, queryTeamEmergencyCarInfo } from '@/api/emergencyCar'
export default { export default {
name: 'emergencyCarDialog', name: 'emergencyCarDialog',
...@@ -327,6 +330,7 @@ export default { ...@@ -327,6 +330,7 @@ export default {
loading: false, loading: false,
uploadUrl: (process.env.NODE_ENV === 'production' ? process.env.BASE_API : '') + '/api/team/car/uploadEmergencyImage', uploadUrl: (process.env.NODE_ENV === 'production' ? process.env.BASE_API : '') + '/api/team/car/uploadEmergencyImage',
formDisabled: false, formDisabled: false,
token: Auth.getLoginInfo(),
dataForm: { dataForm: {
vehicleUsingUnit: '', vehicleUsingUnit: '',
area: '', area: '',
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
label="操作" label="操作"
align="left" align="left"
width="auto" width="auto"
min-width="200px" min-width="230px"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-link <el-link
......
...@@ -96,6 +96,7 @@ ...@@ -96,6 +96,7 @@
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
:disabled="formDisabled"
@click="submitForm()" @click="submitForm()"
>确 定</el-button> >确 定</el-button>
</span> </span>
......
...@@ -136,6 +136,7 @@ ...@@ -136,6 +136,7 @@
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
:disabled="formDisabled"
@click="submitForm()" @click="submitForm()"
>确 定</el-button> >确 定</el-button>
</span> </span>
......
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
:disabled="formDisabled"
@click="submitForm()" @click="submitForm()"
>确 定</el-button> >确 定</el-button>
</span> </span>
......
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
:disabled="formDisabled"
@click="submitForm()" @click="submitForm()"
>确 定</el-button> >确 定</el-button>
</span> </span>
......
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
:disabled="formDisabled"
@click="submitForm()" @click="submitForm()"
>确 定</el-button> >确 定</el-button>
</span> </span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment