@@ -125,7 +125,7 @@ wh_content_item_tag { | |||||
color: #bfbfbf; | color: #bfbfbf; | ||||
} | } | ||||
.wh_content_item .wh_isToday { | .wh_content_item .wh_isToday { | ||||
background: yellow; | |||||
/* background: yellow; */ | |||||
border-radius: 100px; | border-radius: 100px; | ||||
} | } | ||||
.wh_content_item .wh_chose_day { | .wh_content_item .wh_chose_day { | ||||
@@ -146,12 +146,12 @@ wh_content_item_tag { | |||||
</li> | </li> | ||||
</div> | </div> | ||||
<div class="wh_content"> | <div class="wh_content"> | ||||
<div class="wh_content_item" v-for="tag in textTop"> | |||||
<div class="wh_content_item" v-for="(tag,i) in textTop" :key="i" > | |||||
<div class="wh_top_tag">{{tag}}</div> | <div class="wh_top_tag">{{tag}}</div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="wh_content"> | <div class="wh_content"> | ||||
<div class="wh_content_item" v-for="(item,index) in list" @click="clickDay(item,index)"> | |||||
<div class="wh_content_item" v-for="(item,index) in list" :key="index" @click="clickDay(item,index)"> | |||||
<div | <div | ||||
class="wh_item_date" | class="wh_item_date" | ||||
v-bind:class="[{ wh_isMark: item.isMark},{wh_other_dayhide:item.otherMonth!=='nowMonth'},{wh_want_dayhide:item.dayHide},{wh_isToday:item.isToday},{wh_chose_day:item.chooseDay},setClass(item)]" | v-bind:class="[{ wh_isMark: item.isMark},{wh_other_dayhide:item.otherMonth!=='nowMonth'},{wh_want_dayhide:item.dayHide},{wh_isToday:item.isToday},{wh_chose_day:item.chooseDay},setClass(item)]" | ||||
@@ -190,10 +190,7 @@ computed: { | |||||
}); | }); | ||||
}) | }) | ||||
.catch(() => { | .catch(() => { | ||||
this.$message({ | |||||
type: "info", | |||||
message: "已取消删除", | |||||
}); | |||||
}); | }); | ||||
}, | }, | ||||
//新增 | //新增 | ||||
@@ -130,21 +130,21 @@ | |||||
v-if="level == 0" | v-if="level == 0" | ||||
:label-width="formLabelWidth" | :label-width="formLabelWidth" | ||||
> | > | ||||
<el-input v-model="addForm.name" maxlength="16" autocomplete="off"></el-input> | |||||
<el-input v-model="addForm.name" maxlength="8" autocomplete="off"></el-input> | |||||
</el-form-item> | </el-form-item> | ||||
<el-form-item | <el-form-item | ||||
label="二级名称:" | label="二级名称:" | ||||
v-if="level == 2" | v-if="level == 2" | ||||
:label-width="formLabelWidth" | :label-width="formLabelWidth" | ||||
> | > | ||||
<el-input v-model="addForm.name" maxlength="16" autocomplete="off"></el-input> | |||||
<el-input v-model="addForm.name" maxlength="8" autocomplete="off"></el-input> | |||||
</el-form-item> | </el-form-item> | ||||
<el-form-item | <el-form-item | ||||
label="三级名称:" | label="三级名称:" | ||||
v-if="level == 3" | v-if="level == 3" | ||||
:label-width="formLabelWidth" | :label-width="formLabelWidth" | ||||
> | > | ||||
<el-input v-model="addForm.name" maxlength="16" autocomplete="off"></el-input> | |||||
<el-input v-model="addForm.name" maxlength="8" autocomplete="off"></el-input> | |||||
</el-form-item> | </el-form-item> | ||||
</el-col> | </el-col> | ||||
</el-row> | </el-row> | ||||
@@ -202,7 +202,7 @@ | |||||
类名: | 类名: | ||||
</div> | </div> | ||||
<div> | <div> | ||||
<el-input maxlength="20" | |||||
<el-input maxlength="8" | |||||
v-model="frosasd.name" | v-model="frosasd.name" | ||||
type="text" | type="text" | ||||
@@ -251,7 +251,7 @@ | |||||
label="名称:" | label="名称:" | ||||
:label-width="formLabelWidth" | :label-width="formLabelWidth" | ||||
> | > | ||||
<el-input style="width:300px;" v-model="addForm2.name" maxlength="16" autocomplete="off"></el-input> | |||||
<el-input style="width:300px;" v-model="addForm2.name" maxlength="8" autocomplete="off"></el-input> | |||||
</el-form-item> | </el-form-item> | ||||
</el-col> | </el-col> | ||||
</el-row> | </el-row> | ||||
@@ -1,5 +1,5 @@ | |||||
<template> | <template> | ||||
<div class="box-center"> | |||||
<div class="box-center" style="cursor:pointer;"> | |||||
<div class="topbox"> | <div class="topbox"> | ||||
<div class="topzuo"> | <div class="topzuo"> | ||||
@@ -850,10 +850,10 @@ export default { | |||||
message: '删除成功!' | message: '删除成功!' | ||||
}); | }); | ||||
}).catch(() => { | }).catch(() => { | ||||
this.$message({ | |||||
type: 'info', | |||||
message: '已取消删除' | |||||
}); | |||||
// this.$message({ | |||||
// type: 'info', | |||||
// message: '已取消删除' | |||||
// }); | |||||
}); | }); | ||||
}, | }, | ||||
//获取文本 | //获取文本 | ||||
@@ -886,10 +886,10 @@ export default { | |||||
this.init() | this.init() | ||||
}) | }) | ||||
}).catch(() => { | }).catch(() => { | ||||
this.$message({ | |||||
type: "info", | |||||
message: "已取消操作", | |||||
}); | |||||
// this.$message({ | |||||
// type: "info", | |||||
// message: "已取消操作", | |||||
// }); | |||||
}); | }); | ||||
}else{ | }else{ | ||||
this.dialogFormVisible13=true; | this.dialogFormVisible13=true; | ||||
@@ -939,10 +939,10 @@ export default { | |||||
this.init() | this.init() | ||||
}) | }) | ||||
}).catch(() => { | }).catch(() => { | ||||
that.$message({ | |||||
type: "info", | |||||
message: "已取消操作", | |||||
}); | |||||
// that.$message({ | |||||
// type: "info", | |||||
// message: "已取消操作", | |||||
// }); | |||||
}); | }); | ||||
}else{ | }else{ | ||||
that.$confirm("加精,是否继续?", "提示", { | that.$confirm("加精,是否继续?", "提示", { | ||||
@@ -958,10 +958,10 @@ export default { | |||||
this.init() | this.init() | ||||
}) | }) | ||||
}).catch(() => { | }).catch(() => { | ||||
that.$message({ | |||||
type: "info", | |||||
message: "已取消加精", | |||||
}); | |||||
// that.$message({ | |||||
// type: "info", | |||||
// message: "已取消加精", | |||||
// }); | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
@@ -160,7 +160,7 @@ | |||||
<el-dialog title="新增" :visible.sync="showVisible"> | <el-dialog title="新增" :visible.sync="showVisible"> | ||||
<div> | <div> | ||||
<div style="text-align: center;"> | <div style="text-align: center;"> | ||||
<Calendar v-on:choseDay="clickDay" ref="calendar" v-on:changeMonth="changeDate" :markDate='arr' /> | |||||
<Calendar v-on:choseDay="clickDay" ref="calendar" v-on:changeMonth="changeDate" :agoDayHide='timeAcc' :markDate='arr' /> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
@@ -218,7 +218,8 @@ export default { | |||||
total: 0, | total: 0, | ||||
roleId:'', | roleId:'', | ||||
arr1:[], | arr1:[], | ||||
showFlag:false | |||||
showFlag:false, | |||||
timeAcc:'' | |||||
}; | }; | ||||
}, | }, | ||||
computed: { | computed: { | ||||
@@ -236,6 +237,11 @@ export default { | |||||
}, | }, | ||||
mounted() { | mounted() { | ||||
this.getHouse(); | this.getHouse(); | ||||
let newSjc=new Date().getTime()-86400000+''; | |||||
this.timeAcc=newSjc.substr(0,10) | |||||
console.log(this.timeAcc,'sadasdasdas') | |||||
}, | }, | ||||
methods: { | methods: { | ||||
switchstatus(row,i){ | switchstatus(row,i){ | ||||
@@ -519,10 +525,10 @@ export default { | |||||
} | } | ||||
}) | }) | ||||
}).catch(() => { | }).catch(() => { | ||||
this.$message({ | |||||
type: 'info', | |||||
message: '已取消删除' | |||||
}); | |||||
// this.$message({ | |||||
// type: 'info', | |||||
// message: '已取消删除' | |||||
// }); | |||||
}); | }); | ||||
}, | }, | ||||
alldel(){ | alldel(){ | ||||
@@ -557,10 +563,10 @@ export default { | |||||
} | } | ||||
}) | }) | ||||
}).catch(() => { | }).catch(() => { | ||||
this.$message({ | |||||
type: 'info', | |||||
message: '已取消删除' | |||||
}); | |||||
// this.$message({ | |||||
// type: 'info', | |||||
// message: '已取消删除' | |||||
// }); | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
@@ -199,10 +199,7 @@ export default { | |||||
data() { | data() { | ||||
return { | return { | ||||
pickerOptions: { | pickerOptions: { | ||||
disabledDate(time) { | |||||
//根据当前日期 --- 禁止选中之后的日期 | |||||
// return time.getTime() > Date.now(); | |||||
}, | |||||
disabledDate(time) {}, | |||||
}, | }, | ||||
firstTab: {}, | firstTab: {}, | ||||
secondTab: {}, | secondTab: {}, | ||||
@@ -235,7 +232,6 @@ export default { | |||||
this.dateType = 4; | this.dateType = 4; | ||||
this.cardindex=1 | this.cardindex=1 | ||||
this.secindex=1 | this.secindex=1 | ||||
// console.log(this.choicValue); | |||||
this.dataOverViewWithSystem(); | this.dataOverViewWithSystem(); | ||||
this.dataOverviewWithSystemWithDay(); | this.dataOverviewWithSystemWithDay(); | ||||
this.dataOverviewWithSystemWithLook(); | this.dataOverviewWithSystemWithLook(); | ||||
@@ -372,9 +368,6 @@ export default { | |||||
let Strname = []; | let Strname = []; | ||||
let timeDate = []; | let timeDate = []; | ||||
let arr1 = []; | let arr1 = []; | ||||
// 判断是第几个然后对数据进行渲染 | |||||
// 先处理时间 | |||||
// console.log(timeDate); | |||||
if (idx == 1) { | if (idx == 1) { | ||||
Strname = ["购买服务楼盘数"]; | Strname = ["购买服务楼盘数"]; | ||||
this.thirdTab.buyHouseList.map((item) => { | this.thirdTab.buyHouseList.map((item) => { | ||||
@@ -451,63 +444,15 @@ export default { | |||||
}, | }, | ||||
confirmtime(e) { | confirmtime(e) { | ||||
this.dateType = null; | this.dateType = null; | ||||
if (!e) return; | |||||
console.log(e); | |||||
this.dataOverviewWithSystemWithLook(); | this.dataOverviewWithSystemWithLook(); | ||||
}, | }, | ||||
tabtimetap(i) { | tabtimetap(i) { | ||||
this.dateType = i; | this.dateType = i; | ||||
// this.getTableList() | |||||
this.checked = false; | |||||
this.selectTime = ""; | this.selectTime = ""; | ||||
this.selectTime1 = ""; | this.selectTime1 = ""; | ||||
//给时间选择器赋值 | |||||
let num = 24 * 3600 * 1000; | |||||
// 获取当前时间戳转换为日期格式 | |||||
if (this.dateType == 4) { | |||||
num = 24 * 3600 * 1000 * 6; | |||||
} | |||||
if (this.dateType == 5) { | |||||
num = 24 * 3600 * 1000 * 14; | |||||
} | |||||
if (this.dateType == 6) { | |||||
num = 24 * 3600 * 1000 * 29; | |||||
} | |||||
this.customtime = [ | |||||
this.timestampToTime(new Date().getTime() - num), | |||||
this.timestampToTime(new Date().getTime()), | |||||
]; | |||||
this.customtime=[] | |||||
this.dataOverviewWithSystemWithLook(); | this.dataOverviewWithSystemWithLook(); | ||||
// this.getTableList(); | |||||
// this.getdetail(); | |||||
}, | |||||
timestampToTime(timestamp) { | |||||
var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 | |||||
// var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000 | |||||
var yyyy = date.getFullYear() + "-"; | |||||
var MM = | |||||
(date.getMonth() + 1 < 10 | |||||
? "0" + (date.getMonth() + 1) | |||||
: date.getMonth() + 1) + "-"; | |||||
// var dd = date.getDate() + ' '; | |||||
var dd = | |||||
(date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " "; | |||||
// var HH = date.getHours() + ':'; | |||||
// var HH = (date.getHours() < 10 ? '0'+(date.getHours()) : date.getHours()) + ':'; | |||||
// | |||||
// // var mm = date.getMinutes() + ':'; | |||||
// var mm = (date.getMinutes() < 10 ? '0'+(date.getMinutes()) : date.getMinutes()) + ':'; | |||||
// | |||||
// // var ss = date.getSeconds(); | |||||
// var ss = (date.getSeconds() < 10 ? '0'+(date.getSeconds()) : date.getSeconds()); | |||||
// return yyyy+MM+dd+HH+mm+ss; | |||||
return yyyy + MM + dd; | |||||
}, | }, | ||||
//卡片下折线图 | //卡片下折线图 | ||||
SwitchCARDS(arr, str, timeDate, Strname) { | SwitchCARDS(arr, str, timeDate, Strname) { | ||||
@@ -529,63 +529,14 @@ export default { | |||||
}, | }, | ||||
confirmtime(e) { | confirmtime(e) { | ||||
this.dateType = null; | this.dateType = null; | ||||
if (!e) return; | |||||
console.log(e); | |||||
this.dataOverviewWithSystemWithLook(); | this.dataOverviewWithSystemWithLook(); | ||||
}, | }, | ||||
tabtimetap(i) { | tabtimetap(i) { | ||||
this.dateType = i; | this.dateType = i; | ||||
// this.getTableList() | |||||
this.checked = false; | |||||
this.selectTime = ""; | this.selectTime = ""; | ||||
this.selectTime1 = ""; | this.selectTime1 = ""; | ||||
//给时间选择器赋值 | |||||
let num = 24 * 3600 * 1000; | |||||
// 获取当前时间戳转换为日期格式 | |||||
if (this.dateType == 4) { | |||||
num = 24 * 3600 * 1000 * 6; | |||||
} | |||||
if (this.dateType == 5) { | |||||
num = 24 * 3600 * 1000 * 14; | |||||
} | |||||
if (this.dateType == 6) { | |||||
num = 24 * 3600 * 1000 * 29; | |||||
} | |||||
this.customtime = [ | |||||
this.timestampToTime(new Date().getTime() - num), | |||||
this.timestampToTime(new Date().getTime()), | |||||
]; | |||||
this.customtime=[] | |||||
this.dataOverviewWithSystemWithLook(); | this.dataOverviewWithSystemWithLook(); | ||||
// this.getTableList(); | |||||
// this.getdetail(); | |||||
}, | |||||
timestampToTime(timestamp) { | |||||
var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 | |||||
// var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000 | |||||
var yyyy = date.getFullYear() + "-"; | |||||
var MM = | |||||
(date.getMonth() + 1 < 10 | |||||
? "0" + (date.getMonth() + 1) | |||||
: date.getMonth() + 1) + "-"; | |||||
// var dd = date.getDate() + ' '; | |||||
var dd = | |||||
(date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " "; | |||||
// var HH = date.getHours() + ':'; | |||||
// var HH = (date.getHours() < 10 ? '0'+(date.getHours()) : date.getHours()) + ':'; | |||||
// | |||||
// // var mm = date.getMinutes() + ':'; | |||||
// var mm = (date.getMinutes() < 10 ? '0'+(date.getMinutes()) : date.getMinutes()) + ':'; | |||||
// | |||||
// // var ss = date.getSeconds(); | |||||
// var ss = (date.getSeconds() < 10 ? '0'+(date.getSeconds()) : date.getSeconds()); | |||||
// return yyyy+MM+dd+HH+mm+ss; | |||||
return yyyy + MM + dd; | |||||
}, | }, | ||||
//卡片下折线图 | //卡片下折线图 | ||||
SwitchCARDS(arr, str, timeDate, Strname) { | SwitchCARDS(arr, str, timeDate, Strname) { | ||||
@@ -52,28 +52,6 @@ | |||||
</el-select> | </el-select> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<!-- <div class="app-titel"> | |||||
<div class="titel-text">接待时间</div> | |||||
<div class="toptimeqhuan"> | |||||
<div :class="{ tophove: dateType == 4 }" @click="tabtimetap(4)">近7天</div> | |||||
<div :class="{ tophove: dateType == 5 }" @click="tabtimetap(5)"> 近15天 </div> | |||||
<div :class="{ tophove: dateType == 6 }" @click="tabtimetap(6)"> 近30天 </div> | |||||
</div> | |||||
<div style="margin-left: 26px"> | |||||
<el-date-picker | |||||
@change="confirmtime()" | |||||
v-model="customtime" | |||||
type="daterange" | |||||
range-separator="-" | |||||
:default-time="['00:00:00', '23:59:59']" | |||||
value-format="yyyy-MM-dd" | |||||
start-placeholder="开始日期" | |||||
end-placeholder="结束日期" | |||||
:picker-options="pickerOptions" | |||||
> | |||||
</el-date-picker> | |||||
</div> | |||||
</div> --> | |||||
</div> | </div> | ||||
<!-- 二 --> | <!-- 二 --> | ||||
@@ -554,63 +532,16 @@ export default { | |||||
}, | }, | ||||
confirmtime(e) { | confirmtime(e) { | ||||
this.dateType = null; | this.dateType = null; | ||||
if (!e) return; | |||||
console.log(e); | |||||
this.dataOverviewWithSystemWithLook(); | this.dataOverviewWithSystemWithLook(); | ||||
}, | }, | ||||
tabtimetap(i) { | tabtimetap(i) { | ||||
this.dateType = i; | this.dateType = i; | ||||
// this.getTableList() | |||||
this.checked = false; | |||||
this.selectTime = ""; | this.selectTime = ""; | ||||
this.selectTime1 = ""; | this.selectTime1 = ""; | ||||
//给时间选择器赋值 | |||||
let num = 24 * 3600 * 1000; | |||||
// 获取当前时间戳转换为日期格式 | |||||
if (this.dateType == 4) { | |||||
num = 24 * 3600 * 1000 * 6; | |||||
} | |||||
if (this.dateType == 5) { | |||||
num = 24 * 3600 * 1000 * 14; | |||||
} | |||||
if (this.dateType == 6) { | |||||
num = 24 * 3600 * 1000 * 29; | |||||
} | |||||
this.customtime = [ | |||||
this.timestampToTime(new Date().getTime() - num), | |||||
this.timestampToTime(new Date().getTime()), | |||||
]; | |||||
this.customtime=[] | |||||
this.dataOverviewWithSystemWithLook(); | this.dataOverviewWithSystemWithLook(); | ||||
// this.getTableList(); | |||||
// this.getdetail(); | |||||
}, | |||||
timestampToTime(timestamp) { | |||||
var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 | |||||
// var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000 | |||||
var yyyy = date.getFullYear() + "-"; | |||||
var MM = | |||||
(date.getMonth() + 1 < 10 | |||||
? "0" + (date.getMonth() + 1) | |||||
: date.getMonth() + 1) + "-"; | |||||
// var dd = date.getDate() + ' '; | |||||
var dd = | |||||
(date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " "; | |||||
// var HH = date.getHours() + ':'; | |||||
// var HH = (date.getHours() < 10 ? '0'+(date.getHours()) : date.getHours()) + ':'; | |||||
// | |||||
// // var mm = date.getMinutes() + ':'; | |||||
// var mm = (date.getMinutes() < 10 ? '0'+(date.getMinutes()) : date.getMinutes()) + ':'; | |||||
// | |||||
// // var ss = date.getSeconds(); | |||||
// var ss = (date.getSeconds() < 10 ? '0'+(date.getSeconds()) : date.getSeconds()); | |||||
// return yyyy+MM+dd+HH+mm+ss; | |||||
return yyyy + MM + dd; | |||||
}, | }, | ||||
//卡片下折线图 | //卡片下折线图 | ||||
SwitchCARDS(arr, str, timeDate, Strname) { | SwitchCARDS(arr, str, timeDate, Strname) { | ||||
@@ -1,5 +1,5 @@ | |||||
<template> | <template> | ||||
<div class="box-center" ref="boxcenter"> | |||||
<div class="box-center" ref="boxcenter" style="cursor:pointer;"> | |||||
<!-- 头 --> | <!-- 头 --> | ||||
<div class="app-top"> | <div class="app-top"> | ||||
<div class="app-titel2" style="margin-bottom: 10px"> | <div class="app-titel2" style="margin-bottom: 10px"> | ||||
@@ -269,10 +269,7 @@ export default { | |||||
} | } | ||||
}); | }); | ||||
}).catch(() => { | }).catch(() => { | ||||
this.$message({ | |||||
type: 'info', | |||||
message: '已取消' | |||||
}); | |||||
}); | }); | ||||
}, | }, | ||||
handleSizeChange(val) { | handleSizeChange(val) { | ||||
@@ -1,5 +1,5 @@ | |||||
<template> | <template> | ||||
<div class="box-center"> | |||||
<div class="box-center" style="cursor:pointer;"> | |||||
<!-- 头 --> | <!-- 头 --> | ||||
<div class="app-top"> | <div class="app-top"> | ||||
<div class="app-titel" style="margin-top: 5px"> | <div class="app-titel" style="margin-top: 5px"> | ||||
@@ -624,10 +624,12 @@ | |||||
</el-option> | </el-option> | ||||
</el-select> | </el-select> | ||||
</el-form-item> | </el-form-item> | ||||
<!-- <el-form-item label="部门:" prop="deptId" v-if="orgFlag"> | |||||
<el-form-item label="部门:" prop="deptId" v-if="orgFlag"> | |||||
<el-select | <el-select | ||||
@clear='cleartap()' | |||||
v-model="formTwo.deptId" | v-model="formTwo.deptId" | ||||
filterable | |||||
filterable | |||||
clearable | |||||
value-key="key" | value-key="key" | ||||
style="width: 370px" | style="width: 370px" | ||||
placeholder="请选择部门" | placeholder="请选择部门" | ||||
@@ -640,7 +642,7 @@ | |||||
> | > | ||||
</el-option> | </el-option> | ||||
</el-select> | </el-select> | ||||
</el-form-item> --> | |||||
</el-form-item> | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogFormVisibleTwo = false">取 消</el-button> | <el-button @click="dialogFormVisibleTwo = false">取 消</el-button> | ||||
@@ -1279,6 +1281,10 @@ export default { | |||||
); | ); | ||||
}, | }, | ||||
methods: { | methods: { | ||||
cleartap(){ | |||||
this.formTwo.deptId=''; | |||||
console.log(this.formTwo) | |||||
}, | |||||
// 区域改变 | // 区域改变 | ||||
managerChange() { | managerChange() { | ||||
console.log(this.managerStr); | console.log(this.managerStr); | ||||
@@ -158,10 +158,6 @@ | |||||
clearable | clearable | ||||
></el-cascader> | ></el-cascader> | ||||
</div> | </div> | ||||
<!-- <div class="div-lab"> | |||||
<div class="label">运营人:</div> | |||||
<el-input class="div-inp" v-model="searchForm.userName"></el-input> | |||||
</div> --> | |||||
</div> | </div> | ||||
<div class="app-titel" style="margin-top: 15px"> | <div class="app-titel" style="margin-top: 15px"> | ||||
<div style="margin-left: 20px"> | <div style="margin-left: 20px"> | ||||
@@ -460,45 +456,14 @@ export default { | |||||
this.searchForm.dateType = null; | this.searchForm.dateType = null; | ||||
this.searchForm.startDate = e[0]; | this.searchForm.startDate = e[0]; | ||||
this.searchForm.endDate = e[1]; | this.searchForm.endDate = e[1]; | ||||
// this.houseChange(); | |||||
this.houseStatistics(); | |||||
}, | }, | ||||
tabtimetap(idx) { | tabtimetap(idx) { | ||||
this.searchForm.startDate = ""; | this.searchForm.startDate = ""; | ||||
this.searchForm.endDate = ""; | this.searchForm.endDate = ""; | ||||
// this.$set(this, "time", null); | |||||
this.searchForm.dateType = idx; | this.searchForm.dateType = idx; | ||||
let num = 24 * 3600 * 1000; | |||||
// 获取当前时间戳转换为日期格式 | |||||
if (idx == 4) { | |||||
num = 24 * 3600 * 1000 * 6; | |||||
} | |||||
if (idx == 5) { | |||||
num = 24 * 3600 * 1000 * 14; | |||||
} | |||||
if (idx == 6) { | |||||
num = 24 * 3600 * 1000 * 30; | |||||
} | |||||
this.time = [ | |||||
this.timestampToTime(new Date().getTime() - num), | |||||
this.timestampToTime(new Date().getTime()), | |||||
]; | |||||
}, | |||||
timestampToTime(timestamp) { | |||||
var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 | |||||
// var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000 | |||||
var yyyy = date.getFullYear() + "-"; | |||||
var MM = | |||||
(date.getMonth() + 1 < 10 | |||||
? "0" + (date.getMonth() + 1) | |||||
: date.getMonth() + 1) + "-"; | |||||
// var dd = date.getDate() + ' '; | |||||
var dd = | |||||
(date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " "; | |||||
return yyyy + MM + dd; | |||||
this.time=[] | |||||
this.houseStatistics(); | |||||
}, | }, | ||||
locationsChange(e) { | locationsChange(e) { | ||||
console.log(e); | console.log(e); | ||||
@@ -3,9 +3,9 @@ | |||||
* https://cli.vuejs.org/zh/config/ | * https://cli.vuejs.org/zh/config/ | ||||
*/ | */ | ||||
// const url = 'http://pigx-gateway' | // const url = 'http://pigx-gateway' | ||||
// const url = 'http://39.97.167.65:9999' //测试 | |||||
const url = 'http://39.97.167.65:9999' //测试 | |||||
// const url = 'http://192.168.31.169:9999' //长龙 | // const url = 'http://192.168.31.169:9999' //长龙 | ||||
const url = 'http://192.168.31.134:9999' //嘉豪 | |||||
// const url = 'http://192.168.31.134:9999' //嘉豪 | |||||
// const url = 'http://192.168.31.100:9999' //王笑 | // const url = 'http://192.168.31.100:9999' //王笑 | ||||
// const url = 'http://nitu5e.natappfree.cc' //王笑 | // const url = 'http://nitu5e.natappfree.cc' //王笑 | ||||