修改之后提交

main
bmpandlcm 11 months ago
parent 47dd8d86bd
commit 7c4d37d040

@ -4,8 +4,8 @@ import {ElMessage} from "element-plus";
// axios.defaults.staticBaseURL = '../' // axios.defaults.staticBaseURL = '../'
//axios.defaults.baseURL = 'http://' + window.location.host //正式 axios.defaults.baseURL = 'http://' + window.location.host //正式
axios.defaults.baseURL = 'http://' + window.location.hostname + ':9003' //测试 //axios.defaults.baseURL = 'http://' + window.location.hostname + ':9003' //测试
//post请求头 //post请求头
//axios.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded;charset=UTF-8"; //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.updateSubRoadDate= this.updateSubRoadDate +1;
this.isShowRoadDetail=true this.isShowRoadDetail=true
},getSubVehTableData(row){ },getSubVehTableData(row){
console.log("分公司页面中,选中的分公司编码======="+this.subComNo);
this.subComNo=row.SUBCOMNO; this.subComNo=row.SUBCOMNO;
this.updateSubVehDate= this.updateSubVehDate +1; this.updateSubVehDate= this.updateSubVehDate +1;
this.isShowVehDetail=true this.isShowVehDetail=true
console.log("分公司页面中,选中的分公司编码======="+this.subComNo);
},closeEveryDayData(){ },closeEveryDayData(){
this.isShowDetail="false"; this.isShowDetail="false";
},closeSubData(){ },closeSubData(){
@ -237,7 +235,7 @@ function getTableData(beginDate,endDate,dataType){
"beginDate":beginDate, "beginDate":beginDate,
"endDate":beginDate, "endDate":beginDate,
"dataType":dataType, "dataType":dataType,
"VEHICLETYPE":_this.queryVehcleType "VEHICLETYPE":_this.vehcleType
} }
getVehTypeSubComDataList(paramsObj).then( getVehTypeSubComDataList(paramsObj).then(
res=>{ res=>{

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

Loading…
Cancel
Save