修改之后提交

main
bmpandlcm 11 months ago
parent 47dd8d86bd
commit 7c4d37d040

@ -4,8 +4,8 @@ import {ElMessage} from "element-plus";
// axios.defaults.staticBaseURL = '../'
//axios.defaults.baseURL = 'http://' + window.location.host //正式
axios.defaults.baseURL = 'http://' + window.location.hostname + ':9003' //测试
axios.defaults.baseURL = 'http://' + window.location.host //正式
//axios.defaults.baseURL = 'http://' + window.location.hostname + ':9003' //测试
//post请求头
//axios.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded;charset=UTF-8";

@ -207,11 +207,9 @@ export default{
this.updateSubRoadDate= this.updateSubRoadDate +1;
this.isShowRoadDetail=true
},getSubVehTableData(row){
console.log("分公司页面中,选中的分公司编码======="+this.subComNo);
this.subComNo=row.SUBCOMNO;
this.updateSubVehDate= this.updateSubVehDate +1;
this.isShowVehDetail=true
console.log("分公司页面中,选中的分公司编码======="+this.subComNo);
},closeEveryDayData(){
this.isShowDetail="false";
},closeSubData(){
@ -237,7 +235,7 @@ function getTableData(beginDate,endDate,dataType){
"beginDate":beginDate,
"endDate":beginDate,
"dataType":dataType,
"VEHICLETYPE":_this.queryVehcleType
"VEHICLETYPE":_this.vehcleType
}
getVehTypeSubComDataList(paramsObj).then(
res=>{

@ -404,7 +404,7 @@ function getTableDatas(){
let _subComNo=_this.$props.subComNo;
let _roadId=_this.$props.roadId;
let _vehcleType=_this.$props.vehcleType;
if(_this.SVEHICLEID.length>0 || _this.SPlateColor.toString().length > 0){
if(_this.SVEHICLEID.length>0 || (_this.SPlateColor !==undefined && _this.SPlateColor.toString().length > 0)){
if(_this.SVEHICLEID.length <1){
ElMessage({
type:"warning",
@ -412,7 +412,7 @@ function getTableDatas(){
duration:2000
})
return false;
}else if(_this.SPlateColor.toString() ==""){
}else if((_this.SPlateColor ===undefined || _this.SPlateColor.toString().length <= 0)){
ElMessage({
type:"warning",
message:"请选择车牌颜色",
@ -539,7 +539,7 @@ function searchTableDatas(){
console.log("明细数据的类型===="+_detailType);
//
if(_this.SVEHICLEID.length>0 || _this.SPlateColor.toString().length > 0){
if(_this.SVEHICLEID.length>0 || (_this.SPlateColor !==undefined && _this.SPlateColor.toString().length > 0)){
if(_this.SVEHICLEID.length <1){
ElMessage({
type:"warning",
@ -547,7 +547,7 @@ function searchTableDatas(){
duration:2000
})
return false;
}else if(_this.SPlateColor.toString() ==""){
}else if((_this.SPlateColor ===undefined || _this.SPlateColor.toString().length <= 0)){
ElMessage({
type:"warning",
message:"请选择车牌颜色",
@ -638,7 +638,7 @@ function searchTableDatas(){
function exportData(){
let paramDatas=_this.$props.params;
if(_this.SVEHICLEID.length>0 || _this.SPlateColor.toString().length > 0){
if(_this.SVEHICLEID.length>0 || (_this.SPlateColor !==undefined && _this.SPlateColor.toString().length > 0)){
console.log(_this.SVEHICLEID +"=======>"+ _this.SPlateColor )
if(_this.SVEHICLEID.length <1){
console.log("11111");
@ -648,7 +648,7 @@ function exportData(){
duration:2000
})
return false;
}else if(_this.SPlateColor.toString() ==""){
}else if((_this.SPlateColor ===undefined || _this.SPlateColor.toString().length <= 0)){
ElMessage({
type:"warning",
message:"请选择车牌颜色",

Loading…
Cancel
Save